AVHWDeviceContext: Failed to query surface attributes

Bug #1899965 reported by Laurent Bonnaud
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ffmpeg (Ubuntu)
Invalid
Undecided
Unassigned
intel-media-driver (Ubuntu)
Invalid
Undecided
Unassigned
intel-media-driver-non-free (Ubuntu)
Fix Released
Undecided
Unassigned
mpv (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

using mpv to view a h264 video displays the following error message:

$ mpv foo.mkv
 (+) Video --vid=1 (*) (h264 1440x924 25.000fps)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Using hardware decoding (vaapi).
[...]

The video is correctly displayed, though.

There are 2 drivers, a free (i915) and a non-free (iHD):

-rw-r--r-- 1 root root 8098968 Feb 6 2020 /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
-rw-r--r-- 1 root root 35102696 Apr 21 08:50 /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so

Using the free driver with

  LIBVA_DRIVER_NAME=i965 mpv foo.mkv

gives no error, whereas using the non-free driver with

  LIBVA_DRIVER_NAME=iHD mpv foo.mkv

leads to the above error.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: intel-media-va-driver-non-free 20.1.1+ds1-1build1
Uname: Linux 5.8.15-050815-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.10
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Thu Oct 15 14:11:45 2020
SourcePackage: intel-media-driver-non-free
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

The error message still exists in groovy in version 20.2.0+ds1-1.

tags: added: groovy
tags: added: hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ffmpeg (Ubuntu):
status: New → Confirmed
Changed in intel-media-driver (Ubuntu):
status: New → Confirmed
Changed in intel-media-driver-non-free (Ubuntu):
status: New → Confirmed
Changed in mpv (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

groovy and hirsute are no longer supported.

https://wiki.ubuntu.com/Releases

tags: removed: groovy hirsute
tags: added: impish
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Still the same in jammy:

$ mpv foo.mkv
 (+) Video --vid=1 (*) (vp9 3840x2160 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 6ch 48000Hz)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Cannot load libcuda.so.1
Using hardware decoding (vaapi).

tags: added: jammy
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

The bug is fixed is lunar.
Thanks!

Changed in ffmpeg (Ubuntu):
status: Confirmed → Invalid
Changed in mpv (Ubuntu):
status: Confirmed → Invalid
tags: added: kinetic
removed: impish
Changed in intel-media-driver (Ubuntu):
status: Confirmed → Invalid
Changed in intel-media-driver-non-free (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Peter Passchier (peter-passchier) wrote :

Backport to Jammy possible..?

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.