News:

--

Main Menu

HW Accel(LIBVA) cannot be enabled.

Started by comienzo2093, October 15, 2023, 02:53:03 AM

Previous topic - Next topic

comienzo2093

Hi,

I am using Avidemux v2.8.2 (231015_e2b1ad2b27e) on ubuntu 22.04.3.
But I can't seem to enable hw accel on my intel n100 cpu.
When I was using an INTEL J6412(ubuntu 23.04), I was able to enable this from the GUI without any problem.

The error log is shown below.

Probing for LIBVA...
 [libvaProbe] 02:39:31-463  Probing for libVA support...
 [libvaProbe] 02:39:31-463  LIBVA_DRI3_DISABLE not set yet, doing it now.
 [init] 02:39:31-463  [LIBVA] Initializing LibVA library ...
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
 [displayXError] 02:39:31-463  LibVA Error : <vaInitialize(ADM_coreLibVA::display,&majv,&minv):unknown libva error:-1>
-1 =<unknown libva error>
 [init] 02:39:31-463  VA: init failed
LIBVA not available

[ADM_vd6_plugin] Scanning directory /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoDecoders
[videoDecoder6]Name :aom ApiVersion :1 Description :Decoder using libaom (c) mean 2010 / eumagga0x2a 2019
[VideoDecoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoDecoders/libADM_vd_aom.so as  Decoder using libaom (c) mean 2010 / eumagga0x2a 2019
[ADM_vd6_plugin] Scanning done
[ADM_ve6_plugin] Scanning directory /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders
[videoEncoder6]Name :av1 ApiVersion :7 Description :libaom-based AV1 Encoder
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_av1aom.so as  libaom-based AV1 Encoder
[videoEncoder6]Name :ffDv ApiVersion :7 Description :Simple ffmpeg based DV Encoder (c) 2013 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffDv.so as  Simple ffmpeg based DV Encoder (c) 2013 Mean
[videoEncoder6]Name :ffFlv1 ApiVersion :7 Description :Simple ffmpeg based Flv1 Encoder (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffFlv1.so as  Simple ffmpeg based Flv1 Encoder (c) 2009 Mean
[videoEncoder6]Name :ffMpeg2 ApiVersion :7 Description :Simple ffmpeg based Mpeg2 Encoder (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffMpeg2.so as  Simple ffmpeg based Mpeg2 Encoder (c) 2009 Mean
[videoEncoder6]Name :ffMpeg4 ApiVersion :7 Description :Simple ffmpeg based mpeg4 Encoder (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffMpeg4.so as  Simple ffmpeg based mpeg4 Encoder (c) 2009 Mean
[videoEncoder6]Name :ffVAEncH264 ApiVersion :7 Description :Intel hw encoder
 [vaEncProbe] 02:39:31-509  No H264 encoding support
/home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffVaEncH264.so:ProbingFailed
[videoEncoder6]Name :ffVAEncHEVC ApiVersion :7 Description :Intel hw encoder
 [vaEncHevcProbe] 02:39:31-510  No HEVC encoding support
/home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffVaEncHEVC.so:ProbingFailed
[videoEncoder6]Name :FFV1 ApiVersion :7 Description :FFV1 (c) 2021 szlldm
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_ffv1.so as  FFV1 (c) 2021 szlldm
[videoEncoder6]Name :HUFFYUV ApiVersion :7 Description :FF Huffyuv (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_huff.so as  FF Huffyuv (c) 2009 Mean
[videoEncoder6]Name :Mjpeg ApiVersion :7 Description :Simple jpeg Encoder (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_jpeg.so as  Simple jpeg Encoder (c) 2009 Mean
[videoEncoder6]Name :LibVaEncoder (HW) ApiVersion :7 Description :Simple Libva Encoder (c) 2018 Mean
 [ADM_libvaEncoder_probe] 02:39:31-513  No H264 encoding support
/home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_libva.so:ProbingFailed
[videoEncoder6]Name :null ApiVersion :7 Description :Null Encoder (c) 2010 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_null.so as  Null Encoder (c) 2010 Mean
[videoEncoder6]Name :utvideo ApiVersion :7 Description :Ut Video (c) 2020 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_utvideo.so as  Ut Video (c) 2020 Mean
[videoEncoder6]Name :vp9 ApiVersion :7 Description :libvpx based VP9 Encoder
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_vp9.so as  libvpx based VP9 Encoder
[videoEncoder6]Name :x264 ApiVersion :7 Description :x264 based mpeg4 AVC Encoder (c) 2010 Mean/Gruntster
/home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x264_other.so:WrongUI
[videoEncoder6]Name :x265 ApiVersion :7 Description :x265 based HEVC Encoder (c) 2014 Mean/Gruntster
/home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x265_other.so:WrongUI
[videoEncoder6]Name :xvid4 ApiVersion :7 Description :Xvid4 based mpeg4 Encoder (c) 2010 Mean/Gruntster
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_xvid4.so as  Xvid4 based mpeg4 Encoder (c) 2010 Mean/Gruntster
[videoEncoder6]Name :YV12Encoder ApiVersion :7 Description :Simple YV12 Encoder (c) 2009 Mean
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_yv12.so as  Simple YV12 Encoder (c) 2009 Mean
[ADM_ve6_plugin] Scanning done
[ADM_ve6_plugin] Scanning directory /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/qt5
[videoEncoder6]Name :x264 ApiVersion :7 Description :x264 based mpeg4 AVC Encoder (c) 2010 Mean/Gruntster
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/qt5/libADM_ve_x264_QT5.so as  x264 based mpeg4 AVC Encoder (c) 2010 Mean/Gruntster
[videoEncoder6]Name :x265 ApiVersion :7 Description :x265 based HEVC Encoder (c) 2014 Mean/Gruntster
[VideoEncoder6] Registered filter /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoEncoders/qt5/libADM_ve_x265_QT5.so as  x265 based HEVC Encoder (c) 2014 Mean/Gruntster
[ADM_ve6_plugin] Scanning done
[ADM_vf_plugin] Scanning directory /home/hoon/dev/fix_video/avidemux2/install/usr/lib/ADM_plugins6/videoFilters


Is there any way to fix this? Please help me, thank you.

comienzo2093

It could also be a linux kernel issue, so I'll test again after installing ubuntu 23.10.

eumagga0x2a

Quote from: comienzo2093 on October 15, 2023, 09:47:01 AMI'll test again after installing ubuntu 23.10.

Please also make sure that intel-media-va-driver-non-free is installed, you run Avidemux in an X11 session, not on Wayland, and post the output of

vainfo

comienzo2093

#3
The build failed on Ubuntu 23.10, but succeeded on Ubuntu 23.04.
And on 23.04, HW accel works fine!


Sorry, I didn't see your comment until late.
I didn't check to see if intel-media-va-driver-non-free was installed on my system.
Here is the result of vainfo(ubuntu 23.04):

vainfo
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.2 ()
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
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

eumagga0x2a

Thank you,

Quote from: comienzo2093 on October 15, 2023, 01:35:11 PMThe build failed on Ubuntu 23.10

Please provide the error messages (the CMake output in the terminal and the last /tmp/logbuild* file).

comienzo2093

Okay I see, I'll be updating my system to 23.10 in the near future, I'll post the results again at that time.

eumagga0x2a

Thanks,

Quote from: comienzo2093 on October 16, 2023, 04:55:09 AMI'll be updating my system to 23.10 in the near future

Either that or I actually set up a VM before that. I'll let you know then.

comienzo2093

#7
Sorry for the delay, I confirmed today that the build completes fine on Ubuntu 23.10.

However, there is an issue with HW Accel not being supported in Ubuntu 23.10. As mentioned above, it was working fine in Ubuntu 23.04.
Package intel-media-va-driver-non-free is already the latest version (23.2.3+ds1-1).
I am using an intel n100 cpu.

Probing for LIBVA...
 [libvaProbe] 05:13:56-766 Probing for libVA support...
 [libvaProbe] 05:13:56-766 LIBVA_DRI3_DISABLE not set yet, doing it now.
 [init] 05:13:56-767 [LIBVA] Initializing LibVA library ...
libva info: VA-API version 1.19.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
 [displayXError] 05:13:56-767 LibVA Error : <vaInitialize(ADM_coreLibVA::display,&majv,&minv):unknown libva error:-1>.
-1 =<unknown libva error>
 [init] 05:13:56-767 VA: init failed
LIBVA not available


I wanted to post my vainfo results, but I couldn't because my post was detected as spam. Could you please lift the restriction, thank you.

comienzo2093

#8
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.19 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
...

eumagga0x2a

Quote from: comienzo2093 on December 04, 2023, 05:29:56 AMHowever, there is an issue with HW Accel not being supported in Ubuntu 23.10. As mentioned above, it was working fine in Ubuntu 23.04.

Just to be sure: you have verified that you run Avidemux in an Xorg session (not in a Wayland one!), haven't you?

comienzo2093

#10
I didn't know what wayland and xorg were.
I checked it out after seeing your reply, and yes, I was running the program in a wayland session.
Thanks, I will run it in xorg and report the results.

comienzo2093

[libvaProbe] 12:47:32-422  Probing for libVA support...
 [libvaProbe] 12:47:32-422  LIBVA_DRI3_DISABLE not set yet, doing it now.
 [init] 12:47:32-422  [LIBVA] Initializing LibVA library ...
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
 [init] 12:47:32-426  VA 1.19, Vendor = Intel iHD driver for Intel(R) Gen Graphics - 23.2.3 ()
 [init] 12:47:32-426  The driver has been reported to crash in vaPutImage.


After changing the session from Wayland to Xorg, I was able to enable hardware acceleration correctly. Thanks for your help!