Hardware acceleration on Intel without FlatPak

Hello, I’ve reinstalled recently (from Ubuntu to POP OS!) and tried Shotcut (.appImage version) with hardware encoding enabled on my Intel machine, but still, not working :frowning:

Last time (mid-year 2020) I’ve already addressed this issue:

Question:
Will hardware encoding on Intel work in Ubuntu-derivate OS’s when using non-FlatPak Shotcut version? Anybody achieved to have it working?

vainfo here:

$ vainfo 
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.8.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.2.0 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP

relevant part from application log:

[Info   ] <EncodeDock::detectHardwareEncoders> checking for "h264_vaapi" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "/tmp/.mount_shotcuyEMunP/usr/bin/bin/ffmpeg" ("-hide_banner", "-f", "lavfi", "-i", "color=s=640x360", "-frames", "1", "-an", "-init_hw_device", "vaapi=vaapi0:,connection_type=x11", "-filter_hw_device", "vaapi0", "-vf", "format=nv12,hwupload", "-c:v", "h264_vaapi", "-f", "rawvideo", "pipe:") 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x558d4aabdb00] 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:,connection_type=x11' 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_shotcuyEMunP/usr/bin/bin/ffmpeg" ("-hide_banner", "-f", "lavfi", "-i", "color=s=640x360", "-frames", "1", "-an", "-init_hw_device", "vaapi=vaapi0:,connection_type=x11", "-filter_hw_device", "vaapi0", "-vf", "format=nv12,hwupload", "-c:v", "hevc_vaapi", "-f", "rawvideo", "pipe:") 
[Debug  ] <EncodeDock::detectHardwareEncoders> "[AVHWDeviceContext @ 0x5591f203ab00] 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:,connection_type=x11' for option 'init_hw_device': Input/output error" 
[Debug  ] <EncodeDock::detectHardwareEncoders> "Error parsing global options: Input/output error" 
[Info   ] <MainWindow::showStatusMessage> "Nothing found" 

… or am I doing something wrong?

Thanks a lot! #McZ

You might be interested in these if you have not seen them:


This topic was automatically closed after 90 days. New replies are no longer allowed.