Page 1 of 1

VLC 3.0.16 can't play MKV file from Linux camera app Motion

Posted: 14 Mar 2022 16:33
by doctorhok
I recorded videos using a Raspberry PI as a surveillance camera with 1 fps and motion detection.
The video is stored as MKV in seperate files (one file per motion, i.e. sequence of consecutive frames with differences).

When I transfer the files to Windows 10 I can't watch them using VLC.
VLC opens the file and displays only the first frame; the time line ticks away every second of the video, but the video never changes.
The messages window shows:
avcodec info: Using D3D11VA (Intel(R) UHD Graphics, vendor 8086(Intel), device 9b41, revision 2) for hardware decoding
main error: buffer deadlock prevented
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
The last line is repeated several times.

The computer is surely not too slow to play a 1 fps video.
Windows Media Player can play the file, but it can't skip or change playback speed.

Re: VLC 3.0.16 can't play MKV file from Linux camera app Motion

Posted: 14 Mar 2022 18:04
by InTheWings
That's the frame drop algorithm going in because next frame is considered late.

you can try playing with hurry-up parameter in avcodec.

VLC can't play low fps movies since the beginning.