Bug#737838: [vo/vdpau] Error when calling vdp_device_create_x11: 1

Mathieu Malaterre malat at debian.org
Mon Feb 10 14:34:13 UTC 2014


Hi,

On Sun, Feb 9, 2014 at 4:23 PM, Alessandro Ghedini <ghedo at debian.org> wrote:
> Sorry for the delay, I seem to have missed the report.

np :)

> On gio, feb 06, 2014 at 12:59:25 +0100, Mathieu Malaterre wrote:
>> Package: mpv
>> Version: 0.3.4-1
>>
>> I am trying to use mpv on a wheezy system. It does build nicely
>> however I cannot get the vdpau from amy AMD/ATI card to work.
>>
>> [...]
>>
>> $ mpv The\ Simpsons\ Movie\ -\ Trailer.mp4
>> Playing: The Simpsons Movie - Trailer.mp4
>> Detected file format: QuickTime / MOV (libavformat)
>> Clip info:
>>  major_brand: isom
>>  minor_version: 1
>>  compatible_brands: isomavc1
>>  creation_time: 2007-02-19 05:03:04
>> [stream] Video (+) --vid=1 (h264)
>> [stream] Audio (+) --aid=1 --alang=und (aac)
>> Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared
>> object file: No such file or directory
>
> If the video card has been misdetected, it would be a bug in libvdpau1... I
> think. Can you please run "glxinfo | grep OpenGL"?
>

$ glxinfo | grep OpenGL
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 7800M Series
OpenGL version string: 4.3.12618 Compatibility Profile Context FireGL 8.982.13
OpenGL shading language version string: 4.30
OpenGL extensions:


>> However:
>>
>> $ dpkg -S /usr/lib/x86_64-linux-gnu/dri/xvba_drv_video.so
>> xvba-va-driver: /usr/lib/x86_64-linux-gnu/dri/xvba_drv_video.so
>
> I think you are confusing VA-API and VDPAU here. They are two different things,
> and xvba-va-driver only provides a backend for VA-API.

Yes indeed I messed-up for a moment.

> Incidentally mpv suports VA-API as well, so you may want to try to enable it
> using "-vo=opengl" (or "-vo=opengl-hq") and "-hwdec=vaapi", or directly using
> the vaapi vo ("-vo=vaapi") and "-hwdec=vaapi" (but the opengl one should be
> better).

The opengl* family seems to be working nicely. However -hwdec=vaapi
does not seems to be working for me:


$ mpv -hwdec=vaapi The\ Simpsons\ Movie\ -\ Trailer.mp4
Playing: The Simpsons Movie - Trailer.mp4
Detected file format: QuickTime / MOV (libavformat)
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2007-02-19 05:03:04
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=und (aac)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared
object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
libva: VA-API version 0.32.0
Xlib:  extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
AO: [pulse] 48000Hz stereo 2ch float
[vaapi] Decoder profile 'VAProfileH264Main' not available.
[libav/video] h264: get_buffer() failed (-1 0 (nil))
[libav/video] h264: decode_slice_header error
[libav/video] h264: no frame!
Error while decoding frame!
Error using hardware decoding, falling back to software decoding.


With:

$ vainfo
libva: VA-API version 0.32.0
Xlib:  extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD


I am guessing VAProfileH264High is not compatible with VAProfileH264Main

> On gio, feb 06, 2014 at 01:05:44 +0100, Mathieu Malaterre wrote:
>> Hum, googl'ing the issue I finally found:
>>
>> https://wiki.archlinux.org/index.php/VDPAU#Configuration
>>
>> Steps:
>>
>> $ VDPAU_DRIVER=va_gl mpv The\ Simpsons\ Movie\ -\ Trailer.mp4
>
> Yeah, but it's kinda convoluted (VDPAU frontend that uses VAAPI frontend that
> uses XvBA hardware... assuming thet it actually uses the xvba-va driver instead
> of just falling back to opengl). Using VAAPI/XvBA directly should be better (if
> anything it's one package less to have installed).

Make sense, but it made the symptoms go away :)

> If you do want to use vdpau instead of vaapi/xvba, and it is supported by your
> video card, you need a working vdpau driver (which, AFAICT, is not available in
> Debian for fglrx).

What do you mean ? What's broken about fglrx and vaapi in debian ?

Thx



More information about the pkg-multimedia-maintainers mailing list