[Cin] Hardware acceleration methods

Terje J. Hanssen terjejhanssen at gmail.com
Sat Sep 14 14:50:20 CEST 2024



Den 14.09.2024 14:23, skrev Andrew Randrianasulu:
>
>
> сб, 14 сент. 2024 г., 15:07 Terje J. Hanssen via Cin 
> <cin at lists.cinelerra-gg.org>:
>
>
>
>     Den 14.09.2024 07:55, skrev Андрей Спицын via Cin:
>>     >Is there something that prevent typical QSV to be prebuilt in the
>>     CinGG/FFmpeg rpm?
>>
>>     The ffmpeg not installed on my suse build host. If you how to
>>     enable QSV, I'll change the build script.
>
>     Interesting.
>
>     I know how to install FFmpeg and other packages to work with QSV,
>     latest SVT-AV1 etc. on openSUSE.
>     Primarly it is by adding the third party Packman and OBS
>     multimedia libs and apps, repos and packages.
>     The Open Build Service may contain the same packages for distros too.
>     https://build.opensuse.org/
>
>     But I am not sure what this implies with regards to CinGG use, I
>     expect Andrew know(?)
>
>
> cingg uses libav* libraries, and optionally can pipe output to 
> external ffmpeg binary.
>
> But for hw acceleration via qsv I think I need someone to test patch, 
> because right now it not mapped anywhere, unlike vaapi/vdpau. There 
> might be surprizes about what kind of buffer data it returns ....
>
>
>     If this will be a bundled static build which includes the above
>     system FFmpeg and other packages,
>     I wonder if the additional features i.e QSV can be accessed from
>     CinGG without including presets etc?
>     And possibly other current CinGG features won't be available
>     without its usual bundled FFmpeg?
>
>
> there are bluray muxing patches, and few cosmetical (for example 
> selecting pixel formats in y4m muxer).

The current ffmpeg package(s) from Packman on Slowroll:

zypper se -is ffmpeg
Loading repository data...
Reading installed packages...

S  | Name           | Type    | Version            | Arch   | Repository
---+----------------+---------+--------------------+--------+-----------
i  | ffmpeg-7       | package | 7.0-1699.6.pm.2    | x86_64 | Packman
i  | libheif-ffmpeg | package | 1.18.2-1699.5.pm.3 | x86_64 | Packman



ffmpeg
ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers
   built with gcc 14 (SUSE Linux)
   configuration: --prefix=/usr --libdir=/usr/lib64 
--shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 
-Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong 
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection 
-Werror=return-type -flto=auto -ffat-lto-objects -g' --optflags='-O2 
-Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong 
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection 
-Werror=return-type -flto=auto -ffat-lto-objects -g' --disable-htmlpages 
--enable-pic --disable-stripping --enable-shared --disable-static 
--enable-gpl --enable-version3 --enable-libsmbclient --disable-openssl 
--enable-gnutls --enable-ladspa --enable-libshaderc --enable-vulkan 
--enable-libplacebo --enable-libaom --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d 
--enable-libdc1394 --enable-libdrm --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgsm 
--enable-libjack --enable-libjxl --enable-librist --enable-libmp3lame 
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt 
--enable-libopenh264-dlopen --enable-libopus --enable-libpulse 
--enable-librav1e --enable-librubberband --enable-libsvtav1 
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt 
--enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp 
--enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi 
--enable-lto --enable-lv2 --enable-libvpl --enable-vaapi --enable-vdpau 
--enable-version3 --enable-libfdk-aac-dlopen --enable-nonfree 
--enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libvo-amrwbenc --enable-libx264 --enable-libx265 --enable-libxvid
   libavutil      59.  8.100 / 59.  8.100
   libavcodec     61.  3.100 / 61.  3.100
   libavformat    61.  1.100 / 61.  1.100
   libavdevice    61.  1.100 / 61.  1.100
   libavfilter    10.  1.100 / 10.  1.100
   libswscale      8.  1.100 /  8.  1.100
   libswresample   5.  1.100 /  5.  1.100
   libpostproc    58.  1.100 / 58.  1.100
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile 
options] outfile}...


>
>
>     To be sure not to break the current working CinGG rpm build for
>     openSUSE Leap15.6, possibly using
>     Slowroll as a testbed and learning workshop beside would be a
>     better idea for this, if you have the opportunity?
>     I myselfe have both distros installed in dual-boot setups on my
>     machines, but Slowroll has the benefit of the most
>     current versions of the most. Besides, I have installed the
>     "6.6.49-1-longterm" kernel on Slowroll.
>
>     Installation and setup of the latest Slowroll iso is similar to
>     and as easy as Leap 15.6.
>     In principle it is to follow tit new Portal wiki with a few
>     modifications and addons as mentioned above:
>     https://en.opensuse.org/Portal:Slowroll
>
>     Hear back about this.
>
>
>>
>>
>>     Best regards,
>>     Andrey
>>
>>     пт, 13 сент. 2024 г., 20:17 Terje J. Hanssen via Cin
>>     <cin at lists.cinelerra-gg.org>:
>>
>>         The CinGG manual mentions VAAPI and VDPAU.
>>         https://cinelerra-gg.org/download/CinelerraGG_Manual/Hardware_video_acceleration.html
>>
>>         https://cinelerra-gg.org/download/CinelerraGG_Manual/GPU_hardware_encoding.html
>>
>>         My prebuild system FFmpeg lists
>>
>>         ffmpeg -hide_banner -hwaccels
>>         Hardware acceleration methods:
>>
>>             vdpau
>>             cuda
>>             vaapi
>>             qsv
>>             drm
>>             vulkan
>>
>>
>>         Among these, Vulkan has recently been discussed here.
>>
>>         Is there something that prevent typical QSV to be prebuilt in
>>         the CinGG/FFmpeg rpm?
>>
>>
>>         References:
>>         Compiling FFmpeg with QSV on Linux Intel Platform:
>>         https://www.intel.com/content/www/us/en/content-details/728030/building-ffmpeg-with-qsv-on-windows-and-linux-intel-platform.html?wapkw=ffmpeg
>>         Arc: Intel QuickSync (QSV):
>>         https://wiki.archlinux.org/title/FFmpeg#Intel_QuickSync_(QSV)
>>
>>
>>
>>         refer
>>
>>
>>         -- 
>>         Cin mailing list
>>         Cin at lists.cinelerra-gg.org
>>         https://lists.cinelerra-gg.org/mailman/listinfo/cin
>>
>>
>
>     -- 
>     Cin mailing list
>     Cin at lists.cinelerra-gg.org
>     https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240914/c368e802/attachment-0001.htm>


More information about the Cin mailing list