Intel QSV - Not Found - Ver240829

OS - LinuxMint 22
CPU - i5-13600K

I havent gotten this to work for 2yrs since I built my system. Been Using Windows 11 pro … works fine. Thought maybe with the upgrade to LM22 from 21.3 would make a difference but still Encoder Detect: Not Found

If relevent: My vainfo is
ibva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.0 ()

The terminal output for video codecs
video_codecs:

  • a64multi
  • a64multi5
  • alias_pix
  • amv
  • apng
  • asv1
  • asv2
  • avrp
  • avui
  • bitpacked
  • bmp
  • cfhd
  • cinepak
  • cljr
  • dnxhd
  • dpx
  • dvvideo
  • dxv
  • exr
  • ffv1
  • ffvhuff
  • fits
  • flashsv
  • flashsv2
  • flv
  • gif
  • h261
  • h263
  • h263p
  • huffyuv
  • jpeg2000
  • jpegls
  • ljpeg
  • magicyuv
  • mjpeg
  • mpeg1video
  • mpeg2video
  • mpeg4
  • msmpeg4v2
  • msmpeg4
  • msrle
  • msvideo1
  • pam
  • pbm
  • pcx
  • pfm
  • pgm
  • pgmyuv
  • phm
  • png
  • ppm
  • prores
  • prores_aw
  • prores_ks
  • qoi
  • qtrle
  • r10k
  • r210
  • rawvideo
  • roqvideo
  • rpza
  • rv10
  • rv20
  • sgi
  • smc
  • snow
  • speedhq
  • sunrast
  • svq1
  • targa
  • tiff
  • utvideo
  • v210
  • v308
  • v408
  • v410
  • vbn
  • vc2
  • wbmp
  • wrapped_avframe
  • wmv1
  • wmv2
  • xbm
  • xface
  • xwd
  • y41p
  • yuv4
  • zlib
  • zmbv
  • hdr
  • libaom-av1
  • libsvtav1
  • libtheora
  • libvpx
  • libvpx-vp9
  • libwebp_anim
  • libwebp
  • libx264
  • libx264rgb
  • libx265
  • h263_v4l2m2m
  • av1_nvenc
  • h264_nvenc
  • h264_v4l2m2m
  • h264_vaapi
  • hevc_nvenc
  • hevc_v4l2m2m
  • hevc_vaapi
  • mjpeg_vaapi
  • mpeg2_vaapi
  • mpeg4_v4l2m2m
  • vp8_v4l2m2m
  • vp8_vaapi
  • vp9_vaapi
  • vnull

Application Log:

 <MainWindow::showStatusMessage> "Detecting hardware encoders..." 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "av1_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v av1_nvenc -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> av1 (av1_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[av1_nvenc @ 0x5b263a68cd80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x5b263a6acd00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5b263a6c7e00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5b263a6c7e00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5b263a6c7e00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x5b263a6acd00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x5b263a6acd00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x5b263a6acd00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x5b263a6ac5c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v h264_nvenc -f rawvideo pipe:" 
[Info   ] <MainWindow::showStatusMessage> "Detecting hardware encoders..." 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "av1_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v av1_nvenc -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> av1 (av1_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[av1_nvenc @ 0x56f7613bdd80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x56f7613ddd00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x56f7613f8e00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x56f7613f8e00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x56f7613f8e00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x56f7613ddd00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x56f7613ddd00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/av1_nvenc @ 0x56f7613ddd00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x56f7613dd5c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v h264_nvenc -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[h264_nvenc @ 0x6337cb74fd80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x6337cb76fd00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x6337cb78ae00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x6337cb78ae00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x6337cb78ae00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x6337cb76fd00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x6337cb76fd00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x6337cb76fd00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x6337cb76f5c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "hevc_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v hevc_nvenc -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> hevc (hevc_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[hevc_nvenc @ 0x634e0508dd80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x634e050add00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x634e050c8e00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x634e050c8e00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x634e050c8e00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x634e050add00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x634e050add00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x634e050add00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x634e050ad5c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v h264_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5acd77969880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5acd77969880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5acd77969880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "hevc_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v hevc_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x61cfa27cc880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x61cfa27cc880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x61cfa27cc880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "av1_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v av1_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5c4351438880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5c4351438880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5c4351438880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <MainWindow::showStatusMessage> "Nothing found" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[h264_nvenc @ 0x5d5a1bb14d80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x5d5a1bb34d00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5d5a1bb4fe00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5d5a1bb4fe00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5d5a1bb4fe00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x5d5a1bb34d00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x5d5a1bb34d00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/h264_nvenc @ 0x5d5a1bb34d00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x5d5a1bb345c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "hevc_nvenc" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -c:v hevc_nvenc -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> hevc (hevc_nvenc))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[hevc_nvenc @ 0x5a91ac940d80] Cannot load libcuda.so.1" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x5a91ac960d00] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5a91ac97be00] Error sending frames to consumers: Operation not permitted" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5a91ac97be00] Task finished with error code: -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vf#0:0 @ 0x5a91ac97be00] Terminating thread with return code -1 (Operation not permitted)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x5a91ac960d00] Could not open encoder before EOF" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x5a91ac960d00] Task finished with error code: -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_nvenc @ 0x5a91ac960d00] Terminating thread with return code -22 (Invalid argument)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x5a91ac9605c0] Nothing was written into output file, because at least one of its streams received no packets." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v h264_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5ea37705e880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5ea37705e880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5ea37705e880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "hevc_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v hevc_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5958c2c5e880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5958c2c5e880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5958c2c5e880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "av1_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v av1_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x63afa4aae880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/iHD_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x63afa4aae880] libva: /tmp/.mount_shotcumUrD7u/usr/bin/lib/va/i965_drv_video.so init failed" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x63afa4aae880] Failed to initialise VAAPI connection: -1 (unknown libva error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Device creation failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Failed to set value 'vaapi=vaapi0:' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <MainWindow::showStatusMessage> "Nothing found" 
[Debug  ] <EncodeDock::defaultFormatExtension> "/tmp/.mount_shotcumUrD7u/usr/bin/bin/ffmpeg" "-hide_banner -h muxer=mp4" 
[Debug  ] <EncodeDock::defaultFormatExtension> "Muxer mp4 [MP4 (MPEG-4 Part 14)]:" 
[Debug  ] <EncodeDock::defaultFormatExtension> "    Common extensions: mp4." 
[Debug  ] <EncodeDock::defaultFormatExtension> extension = "mp4"

…looking at this a bit …does this indicate that the program is looking for the Intel driver in /usr/bin/lib/va/ when vainfo shows it is in /usr/lib/x86_64-linux-gnu/dri/ ? Or is it just a temp place the program puts the driver in its on file structure?

Looks like you are using the AppImage. Our portable binaries are a very mixed bag with respect to VA-API due to its difficult version dependencies between its multiple components. We bundle libva and some corresponding userspace drivers such as iHD_drv_video.so. Maybe that driver’s version is not working your GPU driver. In the portable (not AppImage), you can remove our Shotcut.app/lib/va/iHD_drv_video.so and see if it works. But it might then fail on a version conflict between the distro’s userspace VA driver and our bundled libva. You can remove our bundled libva, but then the app might have a version conflict with the distro’s libva version! The bundled VA-API lib and driver in the AppImage works with my AMD Radeon on Pop!_OS 22.04. I have exhausted my ability to get this working for many distros and versions. Can you figure it out and provide the solution?

Interestingly, I think the Flatpak is more reliable in this regard. Will you try it?

Yes was using AppImage … sorry forgot to mention that.
Not a big fan of flatpak … huge install size …
I am currently using Handbrake flatpak … although qsv is recognized it does not give same results (inferior speed,cpu utilization) as the windows 11 version

So I did make some progress with the portable binaries. I was able to get the h264_vaapi to be found but the h265_vaapi was not found.
When I did an export with h264_vaapi it looked like it did not use qsv as it was doing about 22fps and my cpu threads were all pretty busy.

The files I replaced/added are

added:
libigdgmm.so.12.3.0
libigdgmm.so.12 (link)
replaced:
libva.so.2_orig
libva-drm.so.2_orig
libva-x11.so.2_orig

i965_drv_video.so
iHD_drv_video.so

Let me know it there are other files I can replace/add to make further progress.

App log for the encoder detection:

Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/home/mrmanny/Downloads/PortablePgms/Shotcut/Shotcut.app/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v h264_vaapi -f rawvideo pipe:" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "hevc_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/home/mrmanny/Downloads/PortablePgms/Shotcut/Shotcut.app/bin/ffmpeg -hide_banner -f lavfi -i color=s=640x360 -frames 1 -an -init_hw_device vaapi=vaapi0: -filter_hw_device vaapi0 -vf format=nv12,hwupload -c:v hevc_vaapi -f rawvideo pipe:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Input #0, lavfi, from 'color=s=640x360':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Duration: N/A, start: 0.000000, bitrate: N/A" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: wrapped_avframe, yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Stream mapping:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> hevc (hevc_vaapi))" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Press [q] to stop, [?] for help" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[hevc_vaapi @ 0x58c23fe4bd00] No quality level set; using default (25)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Output #0, rawvideo, to 'pipe:':" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Metadata:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "    encoder         : Lavf61.1.100" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "  Stream #0:0: Video: hevc (Main), vaapi(progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbn" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "      Metadata:" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "        encoder         : Lavc61.3.100 hevc_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[hevc_vaapi @ 0x58c23fe4bd00] Failed to end picture encode issue: 24 (internal encoding error)." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[hevc_vaapi @ 0x58c23fe4bd00] Encode failed: -5." 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_vaapi @ 0x58c23fe6b180] Error submitting video frame to the encoder" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_vaapi @ 0x58c23fe6b180] Error flushing encoder: Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_vaapi @ 0x58c23fe6b180] Task finished with error code: -5 (Input/output error)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[vost#0:0/hevc_vaapi @ 0x58c23fe6b180] Terminating thread with return code -5 (Input/output error)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x58c23fe6aa40] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[out#0/rawvideo @ 0x58c23fe6aa40] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    " 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Conversion failed!" 
[Info   ] <EncodeDock::detectHardwareEncoders> checking for "av1_vaapi" 

h264_vaapi Export log:

mlt_repository_init: failed to dlopen /home/mrmanny/Downloads/PortablePgms/Shotcut/Shotcut.app/lib/mlt-7/libmltsox.so
  (libsox.so.3: cannot open shared object file: No such file or directory)
[AVHWDeviceContext @ 0x7461440042c0] Trying to use DRM render node for device 0.
[AVHWDeviceContext @ 0x7461440042c0] libva: VA-API version 1.20.0
[AVHWDeviceContext @ 0x7461440042c0] libva: Trying to open /home/mrmanny/Downloads/PortablePgms/Shotcut/Shotcut.app/lib/va/iHD_drv_video.so
[AVHWDeviceContext @ 0x7461440042c0] libva: Found init function __vaDriverInit_1_20
[AVHWDeviceContext @ 0x7461440042c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x7461440042c0] Initialised VAAPI connection: version 1.20
[AVHWDeviceContext @ 0x7461440042c0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.1.0 ().
[AVHWDeviceContext @ 0x7461440042c0] Driver not found in known nonstandard list, using standard behaviour.
[mlt_buffer @ 0x746144031880] w:1920 h:1080 pixfmt:nv12 tb:1/25 fr:25/1 sar:0/1 csp:unknown range:unknown
[h264_vaapi @ 0x746144001a40] Input surface format is nv12.
[h264_vaapi @ 0x746144001a40] Using VAAPI profile VAProfileH264Main (6).
[h264_vaapi @ 0x746144001a40] Using VAAPI entrypoint VAEntrypointEncSliceLP (8).
[h264_vaapi @ 0x746144001a40] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x746144001a40] RC mode: CBR.
[h264_vaapi @ 0x746144001a40] Block Level bitrate control: OFF.
[h264_vaapi @ 0x746144001a40] RC target: 100% of 5000000 bps over 2457 ms.
[h264_vaapi @ 0x746144001a40] RC buffer: 12288000 bits, initial fullness 9216000 bits.
[h264_vaapi @ 0x746144001a40] RC framerate: 25/1 (25.00 fps).
[h264_vaapi @ 0x746144001a40] Using intra and P-frames (supported references: 3 / 0).
[h264_vaapi @ 0x746144001a40] All wanted packed headers available (wanted 0xd, found 0x1f).
[h264_vaapi @ 0x746144001a40] Using level 4.
[mlt_buffer @ 0x746144031880] video frame properties congruent with link at pts_time: NOPTS
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 0x746130022280] Statistics: 315027 bytes read, 2 seeks
[chain avformat-novalidate] /media/mrmanny/NTFS_226GB/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3760
[chain avformat-novalidate] /media/mrmanny/NTFS_226GB/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3739
[chain avformat-novalidate] /media/mrmanny/NTFS_226GB/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3759
[chain avformat-novalidate] /media/mrmanny/NTFS_226GB/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3749
[swscaler @ 0x7460a4000900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x74609c000900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7460b4000900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x746098000900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7460ac000900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7460a4000900] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0x74609c000900] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0x7460b4000900] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
..........
AVIOContext @ 0x7461440204c0] Statistics: 92869819 bytes written, 4 seeks, 359 writeouts

[AVIOContext @ 0x746130003780] Statistics: 44804507 bytes read, 6 seeks
[AVIOContext @ 0x746130408cc0] Statistics: 45209748 bytes read, 11 seeks
Completed successfully in 00:01:38

It did use QSV, but it is normal that CPU is still used; Shotcut does not use GPU for everything. This is explained in our FAQ.

In Windows 11 it completed in 38 secs vs 98 secs in LM22. The video is about 70secs long 25fps. so in Win it runs 70x25/38=46fps LM22= 70x25/98= 18fps
Which makes me suspicious the qsv is not being used. Plus very little cpu/thread use …maybe 10x less than on LM22.

This afternoon I will run LM22 with just h264 and see what I get.

Win11 Export log

[h264_qsv @ 0000023609a9dc40] Encoder: input is system memory surface
[h264_qsv @ 0000023609a9dc40] Use Intel(R) oneVPL to create MFX session, the required implementation version is 1.1
[h264_qsv @ 0000023609a9dc40] Initialized an internal MFX session using hardware accelerated implementation
[h264_qsv @ 0000023609a9dc40] Using the constant bitrate (CBR) ratecontrol method
[h264_qsv @ 0000023609a9dc40] profile: avc high; level: 40
[h264_qsv @ 0000023609a9dc40] GopPicSize: 125; GopRefDist: 4; GopOptFlag: closed; IdrInterval: 0
[h264_qsv @ 0000023609a9dc40] TargetUsage: 5; RateControlMethod: CBR
[h264_qsv @ 0000023609a9dc40] BufferSizeInKB: 1536; InitialDelayInKB: 1152; TargetKbps: 5000; MaxKbps: 5000; BRCParamMultiplier: 1
[h264_qsv @ 0000023609a9dc40] NumSlice: 1; NumRefFrame: 3
[h264_qsv @ 0000023609a9dc40] RateDistortionOpt: OFF
[h264_qsv @ 0000023609a9dc40] RecoveryPointSEI: OFF
[h264_qsv @ 0000023609a9dc40] VDENC: OFF
[h264_qsv @ 0000023609a9dc40] Entropy coding: CABAC; MaxDecFrameBuffering: 3
[h264_qsv @ 0000023609a9dc40] NalHrdConformance: ON; SingleSeiNalUnit: ON; VuiVclHrdParameters: OFF VuiNalHrdParameters: ON
[h264_qsv @ 0000023609a9dc40] FrameRateExtD: 1; FrameRateExtN: 25 
[h264_qsv @ 0000023609a9dc40] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0
[h264_qsv @ 0000023609a9dc40] MaxFrameSize: 0; MaxSliceSize: 0
[h264_qsv @ 0000023609a9dc40] BitrateLimit: ON; MBBRC: OFF; ExtBRC: OFF
[h264_qsv @ 0000023609a9dc40] Trellis: auto
[h264_qsv @ 0000023609a9dc40] RepeatPPS: OFF; NumMbPerSlice: 0; LookAheadDS: 2x
[h264_qsv @ 0000023609a9dc40] AdaptiveI: OFF; AdaptiveB: OFF; BRefType:pyramid
[h264_qsv @ 0000023609a9dc40] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0
[h264_qsv @ 0000023609a9dc40] DisableDeblockingIdc: 0 
[h264_qsv @ 0000023609a9dc40] SkipFrame: no_skip
[h264_qsv @ 0000023609a9dc40] PRefType: default
[h264_qsv @ 0000023609a9dc40] TransformSkip: unknown 
[h264_qsv @ 0000023609a9dc40] IntRefCycleDist: 0
[h264_qsv @ 0000023609a9dc40] LowDelayBRC: OFF
[h264_qsv @ 0000023609a9dc40] MaxFrameSizeI: 0; MaxFrameSizeP: 0
[h264_qsv @ 0000023609a9dc40] ScenarioInfo: 0
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 0000023609d32b80] Statistics: 315027 bytes read, 2 seeks
[chain avformat-novalidate] G:/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3760
[chain avformat-novalidate] G:/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3739
[chain avformat-novalidate] G:/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3759
[chain avformat-novalidate] G:/vids/VID_20190521_111721.mp4
    checking VFR: pkt.duration 3749
[swscaler @ 000002362467edc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000002362467edc0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 00000236246b5d80] deprecated pixel format used, make sure you did set range correctly
****************************
[swscaler @ 0000023629210040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000023629cfb3c0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[mp4 @ 0000023609918b80] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 0000023609918b80] Encoder did not produce proper pts, making some up.
[mp4 @ 0000023609918b80] Starting second pass: moving the moov atom to the beginning of the file
[AVIOContext @ 00000236375e14c0] Statistics: 44695416 bytes read, 0 seeks
[aac @ 00000236099e6040] Qavg: 8689.285
[AVIOContext @ 0000023609884080] Statistics: 89443858 bytes written, 4 seeks, 345 writeouts

Completed successfully in 00:00:38

W11 results seem reasonable
W11 h264 39sec 45fps
W11 h264-qsv 27sec 65fps

LM22 results not so reasonable
LM22 h264 46sec 38fps
LM22 h264-vaapi 98sec 18fps

Attached images show the cpu/thread utilization of the above scenarios

Since nothing much is happening with this I will continue to use Shotcut in windows as qsv seems to work great with that version. Want to thank you for creating/improving this program as it enables me to put my vacation vids in a presentable form …can’t say I am stressing its capabilities all that much since I have pretty basic editing demands.

If at somepoint in the future you want me to test some qsv code in the portable version I would be happy to do that. QSV is an amazing technology … I did some tests using Handbrake about a year ago and it gave a nearly 10x improvement in efficiency (fps-watts) compared to software hevc encoders with approx equivalent quality

There is a bug in the Windows version UI for which I will post a separate bug report.