i-rinat / libvdpau-va-gl

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

hardware accelerator failed to decode picture #69

Closed henryju closed 3 years ago

henryju commented 3 years ago

Hi,

Sorry if this is not the right place to report this issue, but I found a similar bug report that should have been fixed, so I guess this could be a similar issue.

I have a video that I can't read on vlc or using mpv out of the box.

VLC output:

$ vlc recording_IC-2020.1.3.mp4 
VLC media player 3.0.11.1 Vetinari (revision )
[0000563345bbbba0] main libvlc: Lancement de vlc avec l'interface par défaut. Utiliser « cvlc » pour démarrer VLC sans interface.
[00007f2590005ca0] gl gl: Initialized libplacebo v2.72.0 (API v72)
[00007f25a4c03950] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  460.39  Thu Jan 21 21:46:12 UTC 2021 for hardware decoding
[h264 @ 0x7f25a4c715c0] hardware accelerator failed to decode picture

I'm able to play the video with this command:

$ mpv --hwdec=vaapi --vo=gl recording_IC-2020.1.3.mp4 
Driver 'gl' has been replaced with 'gpu'!
 (+) Video --vid=1 (*) (h264 1280x960 10.000fps)
VO: [gpu] 1280x960 yuv444p
V: 00:08:04 / 00:12:33 (64%)

In VLC, forcing hardware acceleration to something else then vdpau works fine as well.

I'm on Fedora 33, with an NVidia Card (GTX 970, driver 460.39)

https://user-images.githubusercontent.com/281596/107631722-c3f45b00-6c65-11eb-9c9f-a1a930e271ec.mp4

henryju commented 3 years ago

My bad, I think my issue is unrelated to your project. It is more likely https://trac.videolan.org/vlc/ticket/24904#no1