paulpacifico / shutter-encoder

A professional video compression tool accessible to all, mostly based on FFmpeg.
https://www.shutterencoder.com
GNU General Public License v3.0
998 stars 60 forks source link

Hardware acceleration doesn't show up for Intel GPU #78

Closed archerallstars closed 1 year ago

archerallstars commented 2 years ago

I can't enable the hardware acceleration feature no matter the output codec that I am choosing, as shown in the screenshot below:

Screenshot from 2022-08-09 18-09-42

According to the official docs, it should work on all GPUs, on any OS.

I use the latest Linux AppImage version 16.2 on openSUSE Tumbleweed.

This is my FFMPEG console output inside Shutter Encoder ``` Command: -hwaccels vdpau cuda Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x6a3cc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x6b5ec00] Could not find a valid device [h264_v4l2m2m @ 0x6b5ec00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x514bc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x6ab5c00] Could not find a valid device [h264_v4l2m2m @ 0x6ab5c00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x554dc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x6844c00] Could not find a valid device [h264_v4l2m2m @ 0x6844c00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x5e22c00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x5315c00] Could not find a valid device [h264_v4l2m2m @ 0x5315c00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x5c6fc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x6171c00] Could not find a valid device [h264_v4l2m2m @ 0x6171c00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v vp9_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'vp9_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v vp9_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'vp9_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v vp9_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'vp9_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v vp9_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'vp9_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0x5aafc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_vaapi' Command: -f lavfi -i nullsrc -t 1 -c:v h264_v4l2m2m -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x592bc00] Could not find a valid device [h264_v4l2m2m @ 0x592bc00] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v h264_omx -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'h264_omx' Command: -f lavfi -i nullsrc -t 1 -c:v hevc_nvenc -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (hevc_nvenc)) Press [q] to stop, [?] for help [hevc_nvenc @ 0x5a9fc00] Cannot load libcuda.so.1 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Command: -f lavfi -i nullsrc -t 1 -c:v hevc_vaapi -s 640x360 -f null - ffmpeg version N-107058-g38df63f967 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --extra-libs='-lpthread -lm -lz' --extra-ldexeflags=-static --enable-pic --disable-shared --disable-sdl2 --disable-ffplay --disable-ffprobe --enable-static --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-vdpau --enable-amf libavutil 57. 26.100 / 57. 26.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 24.100 / 59. 24.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 40.100 / 8. 40.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Input #0, lavfi, from 'nullsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Unknown encoder 'hevc_vaapi' ```

I noticed that the FFMPEG command -hwaccels inside Shutter Encorder only shows vdpau and cuda, which doesn't support in FFMPEG for hardware acceleration on Intel GPUs.

However, in my system, ffmpeg -hwaccels returns the hardware acceleration methods:

vdpau
cuda
vaapi
qsv
drm
vulkan

I don't know about the .deb version. But the AppImage version definately can't use all the avilable hardware acceleration methods, hence can't use hardware accelation with my Intel GPU.

I am using Intel i-8250u, UHD 620 (KBL GT2) - Mesa 22.1.4, Intel Media Driver 22.4.4-1.1, openSUSE Tumbleweed.

paulpacifico commented 2 years ago

Hi,

Unfortunately I'm compiling FFmpeg builds for Linux on a virtual machine which does not allow to use any GPU acceleration.

I have to say I'm not an expert on Linux, so i struggle to find a solution to enable GPU encoding when compiling FFmpeg.

However you can use externals FFmpeg builds which allows GPU encoding like this one: https://johnvansickle.com/ffmpeg/

Replace FFmpeg binary into the SE's Library folder, it should recognizes your graphic card.

Keep me informed, Paul.

archerallstars commented 2 years ago

Hi, thanks for your support. However, the static build available on https://johnvansickle.com/ffmpeg/ is compiled with only vdpau available as a hardware acceleration method. At least, with the default one in Shutter Encoder, there's also cuda available.

It seems, in order to make Shutter Encoder work with Intel or AMD GPUs, one needs to compile a static build of ffmpeg from source. I will update again if I am able to do that, and repack the AppImage to see the result.

archerallstars commented 2 years ago

Hi, I compiled a static build of ffmpeg for myself with VA-API as a hardware acceleration method. I used it to replace the one in Shutter Encoder's AppImage version. I can confirm that hardware acceleration is working now through VA-API, as shown in the screen recording below:

https://user-images.githubusercontent.com/1403194/184466059-eafc0b67-91fd-411a-90f7-4a0a6deb8553.mp4

The GPU video process is triggered before I started the encoding in Shutter Encoder because I recorded the screen recording with OBS, which also uses VA-API encoder. I check my Intel GPU usage with intel_gpu_top which is part of intel-gpu-tools.

I use Intel CPU with iGPU. But, I believe that my ffmpeg build should also work on AMD GPUs since the build supports VA-API. I don't have an AMD GPU to test, though.

--

Here's how to compile a static build of ffmpeg with VA-API hardware acceleration supported!

I compiled ffmpeg on openSUSE Tumbleweed.

  1. You need to install all the package needed in the terminal:
sudo zypper install autoconf automake bzip2 libbz2-devel cmake freetype-devel freetype2-devel gcc gcc-c++ git libtool make pkgconf pkgconf-pkg-config zlib-devel nasm libx264 libx264-devel libx265 libx265-devel x265 libnuma libnuma-devel libfdk-aac fdk-aac-devel libvpx libvpx-devel libvorbis libvorbis-devel libopus libopus-devel libmp3lame libmp3lame-devel intel-media-driver intel-vaapi-driver libva libva-devel libva-utils

Alternatively, you can install all of these packages through GUI with YaST Software Management.

  1. Create a folder called ffmpeg_sources. Then, copy ffmpeg source code into the folder with (you can right-click in the folder and Open in Terminal):
git clone https://github.com/FFmpeg/FFmpeg -b master
  1. Go to FFmpeg folder, then set up the build config:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs=-lpthread \
  --extra-libs=-lm \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-vaapi \
  --enable-libvorbis \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-opengl \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree

There shouldn't be an error. If there's an error, then check whether you installed all the packages in step 1.

  1. Make our desired ffmpeg static build with VA-API supported:
make

The static build of ffmpeg that you need to replace in Shutter Encoder will be in the ffmpeg_sources folder, as shown in the screenshot below:

Screenshot from 2022-08-13 01-35-27

You can check whether your ffmpeg build supports VA-API with:

./ffmpeg  -hide_banner -encoders | grep vaapi

It should return something like this:

 V....D h264_vaapi           H.264/AVC (VAAPI) (codec h264)
 V....D hevc_vaapi           H.265/HEVC (VAAPI) (codec hevc)
 V....D mjpeg_vaapi          MJPEG (VAAPI) (codec mjpeg)
 V....D mpeg2_vaapi          MPEG-2 (VAAPI) (codec mpeg2video)
 V....D vp8_vaapi            VP8 (VAAPI) (codec vp8)
 V....D vp9_vaapi            VP9 (VAAPI) (codec vp9)

--

Let's replace ffmpeg inside Shutter Encoder's AppImage.

  1. Extract the AppImage contents with --appimage-extract. For example, you can rename Shutter Encoder's AppImage to se.AppImage, then:
./se.AppImage --appimage-extract

You should get a folder called squashfs-root, as shown in the screenshot below:

image

  1. Replace the default ffmpeg in /squashfs-root/usr/bin/Library/ with our ffmpeg build, as shown in the screenshot below:

image

  1. To repack Shutter Encoder's AppImage with VA-API supported, you need the appimagetool first, which you can download from here.

  2. Repack the AppImage:

ARCH=x86_64 ./appimagetool.AppImage squashfs-root

Now, your Shutter Encoder should work with Intel GPUs and, hopefully, AMD GPUs too through VA-API.

I hope this helps.

Tokobotenkai commented 1 year ago

I have a similar issue but it is on the deb package.

The console output for shows the same vdpau and cuda only.

From the deb package file, it seems like it has its own version of ffmpeg rather than using the system version?

Can it point to the system version of FFMPEG instead?

EDIT: I kinda enabled it by replacing the ffmpeg, ffplay and ffprobe files inside (not sure if I need to replace all of them) with symlinks to Ubuntu files in /usr/bin

But in hardware aceleration I can't check the box to select QSV instead of NVENC.

carnager commented 1 year ago

Replaced the ffmpeg binary with the one from above link. running that ffmpeg binary directly shows that vaapi support is baked in. But shutter encoder still says no hardware encoding is possible.

Seriously, this should either work out of the box or the description on the homepage should be changed, it's very misleading.

Milor123 commented 1 year ago

Replaced the ffmpeg binary with the one from above link. running that ffmpeg binary directly shows that vaapi support is baked in. But shutter encoder still says no hardware encoding is possible.

Seriously, this should either work out of the box or the description on the homepage should be changed, it's very misleading.

I try it and many things here, https://github.com/paulpacifico/shutter-encoder/issues/150

Try compile with ffmpeg of different authors and versions with --enable-vaapi --enable-amf --enable-nonfree and replace in shutterencoder, try user appimage, try use flatpak version but nothing works in my 6700xt of AMD, the i am no sure if the problem is shutterencoder or my ubuntu 22.04, because handbrake neither detecs it. However if i use manually ffmpeg Vaapi works very nice.

what should i do? I try change the kernel, clean install AMD drivers, test OpenSource and propietary drivers (Note: i always install the ROCm package that i need use for IA)

jacksoneyton commented 2 months ago

To anyone who installed the deb package. I ran the following to solve the encoding issue: sudo cp /usr/bin/ffmpeg /usr/lib/Shutter\ Encoder/usr/bin/Library/ffmpeg -f

This overwrites the Shutter Encoder packaged ffmpeg binary with the locally installed copy. Being a deb package installer I think the ffmpeg component probably should be a dependency that gets installed and symlinked to wherever Shutter Encoder needs it? I know nothing about packaging for linux though :-/

Milor123 commented 2 months ago

To anyone who installed the deb package. I ran the following to solve the encoding issue: sudo cp /usr/bin/ffmpeg /usr/lib/Shutter\ Encoder/usr/bin/Library/ffmpeg -f

This overwrites the Shutter Encoder packaged ffmpeg binary with the locally installed copy. Being a deb package installer I think the ffmpeg component probably should be a dependency that gets installed and symlinked to wherever Shutter Encoder needs it? I know nothing about packaging for linux though :-/

sure, I've changed to nvidia but i need do it always that updated shutter-encoder

my script is it: (If is instaled in the system, else change /opt/shu.... by yourself location.)

sudo rm -r /opt/shutter-encoder/usr/bin/Library/ffmpeg
sudo rm -r /opt/shutter-encoder/usr/bin/Library/ffprobe
sudo rm -r /opt/shutter-encoder/usr/bin/Library/ffplay
sudo ln -s $(which ffmpeg) /opt/shutter-encoder/usr/bin/Library/ffmpeg
sudo ln -s $(which ffprobe) /opt/shutter-encoder/usr/bin/Library/ffprobe
sudo ln -s $(which ffmpeg) /opt/shutter-encoder/usr/bin/Library/ffplay
ZOMGsheikh commented 2 months ago

Hi, I compiled a static build of ffmpeg for myself with VA-API as a hardware acceleration method. I used it to replace the one in Shutter Encoder's AppImage version. I can confirm that hardware acceleration is working now through VA-API, as shown in the screen recording below:

2022-08-12.22-52-34.mp4 The GPU video process is triggered before I started the encoding in Shutter Encoder because I recorded the screen recording with OBS, which also uses VA-API encoder. I check my Intel GPU usage with intel_gpu_top which is part of intel-gpu-tools.

I use Intel CPU with iGPU. But, I believe that my ffmpeg build should also work on AMD GPUs since the build supports VA-API. I don't have an AMD GPU to test, though.

--

Here's how to compile a static build of ffmpeg with VA-API hardware acceleration supported!

I compiled ffmpeg on openSUSE Tumbleweed.

  1. You need to install all the package needed in the terminal:
sudo zypper install autoconf automake bzip2 libbz2-devel cmake freetype-devel freetype2-devel gcc gcc-c++ git libtool make pkgconf pkgconf-pkg-config zlib-devel nasm libx264 libx264-devel libx265 libx265-devel x265 libnuma libnuma-devel libfdk-aac fdk-aac-devel libvpx libvpx-devel libvorbis libvorbis-devel libopus libopus-devel libmp3lame libmp3lame-devel intel-media-driver intel-vaapi-driver libva libva-devel libva-utils

Alternatively, you can install all of these packages through GUI with YaST Software Management.

  1. Create a folder called ffmpeg_sources. Then, copy ffmpeg source code into the folder with (you can right-click in the folder and Open in Terminal):
git clone https://github.com/FFmpeg/FFmpeg -b master
  1. Go to FFmpeg folder, then set up the build config:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs=-lpthread \
  --extra-libs=-lm \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-vaapi \
  --enable-libvorbis \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-opengl \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree

There shouldn't be an error. If there's an error, then check whether you installed all the packages in step 1.

  1. Make our desired ffmpeg static build with VA-API supported:
make

The static build of ffmpeg that you need to replace in Shutter Encoder will be in the ffmpeg_sources folder, as shown in the screenshot below:

Screenshot from 2022-08-13 01-35-27

You can check whether your ffmpeg build supports VA-API with:

./ffmpeg  -hide_banner -encoders | grep vaapi

It should return something like this:

 V....D h264_vaapi           H.264/AVC (VAAPI) (codec h264)
 V....D hevc_vaapi           H.265/HEVC (VAAPI) (codec hevc)
 V....D mjpeg_vaapi          MJPEG (VAAPI) (codec mjpeg)
 V....D mpeg2_vaapi          MPEG-2 (VAAPI) (codec mpeg2video)
 V....D vp8_vaapi            VP8 (VAAPI) (codec vp8)
 V....D vp9_vaapi            VP9 (VAAPI) (codec vp9)

--

Let's replace ffmpeg inside Shutter Encoder's AppImage.

  1. Extract the AppImage contents with --appimage-extract. For example, you can rename Shutter Encoder's AppImage to se.AppImage, then:
./se.AppImage --appimage-extract

You should get a folder called squashfs-root, as shown in the screenshot below:

image

  1. Replace the default ffmpeg in /squashfs-root/usr/bin/Library/ with our ffmpeg build, as shown in the screenshot below:

image

  1. To repack Shutter Encoder's AppImage with VA-API supported, you need the appimagetool first, which you can download from here.
  2. Repack the AppImage:
ARCH=x86_64 ./appimagetool.AppImage squashfs-root

Now, your Shutter Encoder should work with Intel GPUs and, hopefully, AMD GPUs too through VA-API.

I hope this helps.

Thank you so much, used this and @jacksoneyton 's method to get NVENC working with Shutter encoder