i-rinat / libvdpau-va-gl

VDPAU driver with OpenGL/VAAPI backend
MIT License
161 stars 26 forks source link

Vlc using vdpau, no decoding #54

Open promeneur opened 8 years ago

promeneur commented 8 years ago

opensuse 13.1 x86_64 vlc 2.2.2 libvdpau-va-gl1 0.3.6 Mesa 11.1 Xorg X11 7.6 (no sure where to find the version)

Asus 24 " screen

vlc pref > input/codecs > hardware decoding = automatic

vlc launch vdpau then no image

see vainfo, vdpauinfo and vlc log

vlc.txt vainfo.txt vdpauinfo.txt

vlc pref > input/codecs > hardware decoding = VA-API via X11

video is displayed but no full screen , you can't change the image ratio

if i uninstall libvdpau-va-gl then no more pb

i-rinat commented 8 years ago

Hi. Could you check again with VLC of version 2.2.3 or later, please? I believe that VLC 2.2.2 had an issue with creating/destroying/using VDPAU decoder resource.

promeneur commented 8 years ago

opensuse 13.1 x86_64 vlc 2.2.4 libvdpau-va-gl1 0.3.6

there is progress

this time video is displayed but no full screen , you can't change the image ratio hardware decoding is used:


...

core debug: using hw decoder module "vdpau_avcodec"

avcodec info: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.

... vdpau_display debug: using back-end OpenGL/VAAPI/libswscale backend for VDPAU

...


i can suspend the video but if i stop the video then vlc crashes

i-rinat commented 8 years ago

Could you try with libvdpau-va-gl from master branch? I've pushed changes regarding fullscreen scaling some time ago. But that was long after v0.3.6, so there's no point in testing with that version. Also, does it still crash with newer libvdpau-va-gl?

promeneur commented 8 years ago

with master branch version 0.39

with vlc pref > input/codecs > hardware decoding = automatic

it seems there is no hw decoding

see the log


...

core debug: Buffering 0%

avcodec debug: available hardware decoder output format 109 (vdpau)

faad warning: decoded zero sample

core debug: Buffering 0%

core debug: Buffering 7%

...

...

core debug: Buffering 40%

core debug: reusing audio output

core debug: Buffering 49%

...

core debug: Buffering 99%

core debug: Stream buffering done (320 ms in 0 ms)

avcodec debug: available hardware decoder output format 53 (vaapi_vld)

avcodec debug: available software decoder output format 0 (yuv420p)

core debug: looking for hw decoder module matching "any": 4 candidates

dbus debug: Getting property CanSeek dbus debug: Getting property Position dbus debug: Getting property CanSeek dbus debug: Getting property Position

core debug: no hw decoder modules matched

...


it is very different from the previous test where we see clearly that hw decoding is used

with vlc pref > input/codecs > hardware decoding = VA-API via X11 we get

... core debug: using hw decoder module "vaapi_x11" avcodec info: Using Intel i965 driver for Intel(R) Haswell Desktop - 1.7.1 for hardware decoding. ...


how to uninstall ?

promeneur commented 8 years ago

opensuse 13.1 x86_64 vlc 2.2.4 libvdpau-va-gl1 0.4.0

vlc pref > input/codecs > hardware decoding = automatic

first test with a flv video result: vlc crash

second test with a ts video result : sound but no picture

vlc_crash.log.txt vlc_nopicture.log.txt

promeneur commented 7 years ago

opensuse 42.2 x86_64 VLC 2.2.4 opengl 3.0 intel graphical adapter

libvdpau_va_gl1 is installed by default(not very sure if it is me or the opensuse installer). what is sure is that libvdpau_va_gl1 is supplied in standard opensuse repo openSUSE-leap-42.2-oss

there is no more problem with Vlc: no more crash or video sizing problem