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

2014-02-10 Thread Mathieu Malaterre
Hi,

On Sun, Feb 9, 2014 at 4:23 PM, Alessandro Ghedini gh...@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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2014-02-10 Thread Alessandro Ghedini
On lun, feb 10, 2014 at 03:34:13 +0100, Mathieu Malaterre wrote:
 $ 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:

So I looked into libvdpau code and the problem here is just that libvdpau can't
find a proper VDPAU driver, so it defaults to nvidia. It's not really a
problem here, since you don't have a vdpau driver installed anyway (that is,
unless you use libvdpau-va-gl1, but in that case you have to manually set
VDPAU_DRIVER anyway).

The error you see from mpv is harmless, since it falls back automatically to
using the opengl vo if vdpau doesn't work. But if it bothers you, you can
silence it by defaulting to opengl manually (e.g. via the command-line or in the
configuration file)... or by using libvdpau-va-gl1.

 The opengl* family seems to be working nicely. However -hwdec=vaapi
 does not seems to be working for me:
 
 [...]
 
 [vaapi] Decoder profile 'VAProfileH264Main' not available.
 
 [...]
 
 I am guessing VAProfileH264High is not compatible with VAProfileH264Main

Yeah, I think so. It depends on how the video was encoded though, so other files
may work fine (the h264 high profile is used for HD movies and such).

  On gio, feb 06, 2014 at 01:05:44 +0100, Mathieu Malaterre wrote:
  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 ?

fglrx and *vdpau* :) The problem is just that there is no VDPAU driver for fglrx
(even one that uses XvBA as backend like xvba-va-driver), unless you go the
libvdpau-va-gl1 - xvba-va-driver route (the open-source Mesa Gallium3D drivers
do include vdpau drivers, but they don't seem to be built in Debian).

So um, overall I don't think there's really a bug in mpv here, so I'm closing
this report. Feel free to ask if you have any doubt, or reopen the report if you
think there's something to be fixed in mpv.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;inidehG ordnasselA;eg;say~~reverse'


signature.asc
Description: Digital signature


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

2014-02-09 Thread Alessandro Ghedini
Sorry for the delay, I seem to have missed the report.

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?

 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.

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).

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).

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).

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;inidehG ordnasselA;eg;say~~reverse'


signature.asc
Description: Digital signature


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

2014-02-06 Thread Mathieu Malaterre
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.

Steps:
Go to : http://www.h264info.com/clips.html
I picked the simpson one:

$ wget 
http://downloads.dvdloc8.com/trailers/divxdigest/simpsons_movie_trailer.zip
$ unzip simpsons_movie_trailer.zip
$ 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
[vo/vdpau] Error when calling vdp_device_create_x11: 1
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
VO: [opengl] 1280x544 = 1280x544 420p
AV: 00:00:04 / 00:02:17 (3%) A-V: -0.004

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

And

$ 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

Building seems to be fine (it is not picking the new VDPAU API):

$ grep vdpau mpv-0.3.4/build/config.log
['/usr/bin/pkg-config', 'vdpau = 0.2', '--libs', '--cflags', 'vdpau']
out:  -lvdpau
Checking for libavcodec new vdpau API
avcodec-new-vdpau-api not found

Even using mpv --msglevel=all=trace does not reveals what is going on
wrong (why is it searching for nvidia anyway!).


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org