Linux: NVIDIA: VDPAU long video freeze after seeking
The H264 video freeze completely on the new image about 9 seconds when seeking at arbitrary location with click on the progress bar. The audio plays fine. After that it starts to decode again but with wrong keyframe, and finally works fine when a new keyframe arrives.
Operating System: GNU/Linux (Archlinux x86_64 with 4.11.5 kernel)
VLC media-player version: 3.0 git master (875f844c) built with gcc 7.1.1
Graphic card: 2x NVIDIA Geforce GTX 1080 with SLI enabled
Driver: official NVIDIA proprietary drivers version 381.22
Libraries: FFmpeg fully enabled version 3.3.2 built with gcc 7.1.1, all VLC dynamic dependencies up-to-date
Step to reproduce:
-
Open a H264 video file in VLC, and play it with VDPAU hardware decoding
-
Seek at any point
Reproducibility: 100% of my tests
Severity justification: I this this is a major issue since hardware decoding is now enabled by default, and a lot of GNU/Linux uses VLC at some point. And the impacted fonctionnality (seeking) is used by nearly everybody.
When seeking this pop-up in the log:
[00007f94e4c0a7f0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f94e4cbc140] get_buffer() failed
[h264 @ 0x7f94e4cbc140] thread_get_buffer() failed
[h264 @ 0x7f94e4cbc140] decode_slice_header error
[h264 @ 0x7f94e4cbc140] no frame!
[00007f94e4c0a7f0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f94e4c399e0] get_buffer() failed
[h264 @ 0x7f94e4c399e0] thread_get_buffer() failed
[h264 @ 0x7f94e4c399e0] decode_slice_header error
[h264 @ 0x7f94e4c399e0] no frame!
[00007f94e4c0a7f0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f94e4c81760] get_buffer() failed
[h264 @ 0x7f94e4c81760] thread_get_buffer() failed
[h264 @ 0x7f94e4c81760] decode_slice_header error
[h264 @ 0x7f94e4c81760] no frame!
[00007f94e4c0a7f0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f94e4cc5b80] get_buffer() failed
[h264 @ 0x7f94e4cc5b80] thread_get_buffer() failed
[h264 @ 0x7f94e4cc5b80] decode_slice_header error
[h264 @ 0x7f94e4cc5b80] no frame!
[00007f94e4c0a7f0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f94e4cbc140] get_buffer() failed
[h264 @ 0x7f94e4cbc140] thread_get_buffer() failed
[h264 @ 0x7f94e4cbc140] decode_slice_header error
[h264 @ 0x7f94e4cbc140] no frame!
[h264 @ 0x7f94e4c81760] reference picture missing during reorder
[h264 @ 0x7f94e4c81760] reference picture missing during reorder
[h264 @ 0x7f94e4c81760] Missing reference picture, default is 65842
[h264 @ 0x7f94e4c81760] Missing reference picture, default is 65842
[h264 @ 0x7f94e4c81760] reference picture missing during reorder
[h264 @ 0x7f94e4c81760] Missing reference picture, default is 65858
[h264 @ 0x7f94e4c81760] reference picture missing during reorder
[h264 @ 0x7f94e4c81760] Missing reference picture, default is 65866
[h264 @ 0x7f94e4cbc140] reference picture missing during reorder
[h264 @ 0x7f94e4cbc140] Missing reference picture, default is 65870
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007f94e4c0a7f0] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
Full logs attached to this ticket.