Public bug reported:

[ Impact ]

 * Users cannot use iGPU for video codec (encode/decode) on Intel Arrowlake CPUs
   on Ubuntu Noble 24.04

 * To enable this support, we need to backport this commit 
   
https://github.com/intel/media-driver/commit/95cbfce81cafa3c24d9d4601d41a855093bc51fb
    
 * This commit has been added in the media driver 24.2.0, as a consequence, it 
   is already available starting from Plucky. This SRU only affects Ubuntu 
Noble 
   24.04.  

[ Test Plan ]

 * sudo apt install -y intel-media-va-driver ffmpeg vainfo
 * sudo vainfo

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

 * wget -O input.mp4 
https://www.sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4
 * sudo ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -c:v 
h264_vaapi output.mp4

ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
...
[AVHWDeviceContext @ 0x5eb7598e5e40] libva: 
/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[AVHWDeviceContext @ 0x5eb7598e5e40] libva: 
/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
[AVHWDeviceContext @ 0x5eb7598e5e40] Failed to initialise VAAPI connection: -1 
(unknown libva error).
Device creation failed: -5.
No device available for decoder: device type vaapi needed for codec h264.
[vist#0:0/h264 @ 0x5eb759938540] Hardware device setup failed for decoder: 
Input/output error
[vost#0:0/h264_vaapi @ 0x5eb75993e880] Error initializing a simple filtergraph
Error opening output file output.mp4.
Error opening output files: Input/output error

[ Where problems could occur ]

  * Since we backport only a commit that adds some device IDs, no
agressions are expected

[ Other Info ]

** Affects: intel-media-driver (Ubuntu)
     Importance: Undecided
     Assignee: Hector CAO (hectorcao)
         Status: New

** Changed in: intel-media-driver (Ubuntu)
     Assignee: (unassigned) => Hector CAO (hectorcao)

** Description changed:

  [ Impact ]
  
-  * Users cannot use iGPU for video codec (encode/decode) on Intel Arrowlake 
CPUs
-    on Ubuntu Noble 24.04
+  * Users cannot use iGPU for video codec (encode/decode) on Intel Arrowlake 
CPUs
+    on Ubuntu Noble 24.04
+ 
+  * To enable this support, we need to backport this commit 
+    
https://github.com/intel/media-driver/commit/95cbfce81cafa3c24d9d4601d41a855093bc51fb
+     
+  * This commit has been added in the media driver 24.2.0, as a consequence, 
it 
+    is already available starting from Plucky. This SRU only affects Ubuntu 
Noble 
+    24.04.  
  
  [ Test Plan ]
  
-  * sudo apt install -y intel-media-va-driver ffmpeg vainfo
-  * sudo vainfo
+  * sudo apt install -y intel-media-va-driver ffmpeg vainfo
+  * sudo vainfo
  
  error: XDG_RUNTIME_DIR is invalid or not set in the environment.
  error: can't connect to X server!
  libva info: VA-API version 1.22.0
  libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
  libva info: Found init function __vaDriverInit_1_22
  libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
  libva info: va_openDriver() returns 1
  libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
  libva info: Found init function __vaDriverInit_1_20
  libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
  libva info: va_openDriver() returns -1
  vaInitialize failed with error code -1 (unknown libva error),exit
  
-  * wget -O input.mp4 
https://www.sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4
-  * sudo ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -c:v 
h264_vaapi output.mp4
+  * wget -O input.mp4 
https://www.sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4
+  * sudo ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -c:v 
h264_vaapi output.mp4
  
  ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
-   built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
+   built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
  ...
  [AVHWDeviceContext @ 0x5eb7598e5e40] libva: 
/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
  [AVHWDeviceContext @ 0x5eb7598e5e40] libva: 
/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
  [AVHWDeviceContext @ 0x5eb7598e5e40] Failed to initialise VAAPI connection: 
-1 (unknown libva error).
  Device creation failed: -5.
  No device available for decoder: device type vaapi needed for codec h264.
  [vist#0:0/h264 @ 0x5eb759938540] Hardware device setup failed for decoder: 
Input/output error
  [vost#0:0/h264_vaapi @ 0x5eb75993e880] Error initializing a simple filtergraph
  Error opening output file output.mp4.
  Error opening output files: Input/output error
  
- 
  [ Where problems could occur ]
  
-   * Since we backport only a commit that adds some device IDs, no
+   * Since we backport only a commit that adds some device IDs, no
  agressions are expected
  
  [ Other Info ]
- 
-  * Arrowlake support has been added in the media driver 24.2.0, as a 
consequence, it is already available 
-    starting from Plucky. This SRU only affects Ubuntu Noble 24.04.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to intel-media-driver in Ubuntu.
https://bugs.launchpad.net/bugs/2116923

Title:
  [SRU] video hardware acceleration codec fails for Intel Arrow lake

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/intel-media-driver/+bug/2116923/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to