VAAPI decoding fails on Jammy

Bug #1971463 reported by Florian Echtler
86
This bug affects 17 people
Affects Status Importance Assigned to Milestone
gstreamer-vaapi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

For the linked video, if I try to play it through playbin on Jammy (`gst-launch-1.0 playbin uri=file:///home/floe/Downloads/big_buck_bunny_720p_surround.mp4`), I get only a black window with the audio track playing in the background. This happens for most H.264 encoded videos (which also can't play in Totem, see https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1969512).

Running with GST_DEBUG=3 gives a lot of
```
0:00:00.381581482 183712 0x7f5f6c05b640 ERROR vaapivideomemory gstvaapivideomemory.c:254:map_vaapi_memory: failed to make image current
0:00:00.381663666 183712 0x7f5f6c05b640 ERROR default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 0
0:00:00.381711318 183712 0x7f5f6c05b640 WARN xvimagesink xvimagesink.c:1038:gst_xv_image_sink_show_frame:<xvimagesink0> could not map image
```

This issue can be worked around by uninstalling gstreamer1.0-vaapi package, or by downgrading to 1.16.2-2.

vlc seems to be using VAAPI on the same machine & distro without issues:

```
$ vlc big_buck_bunny_720p_surround.mp4
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055cebcc6f580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f9b1c003e50] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[00007f9b39141220] avcodec decoder: Using Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 () for hardware decoding
```

[1] https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4

Tags: jammy
tags: added: jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gstreamer-vaapi (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.