Page 1 of 1

VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 13 Jun 2021 18:44
by Dosperado
Just after updating my raspian to VLC media player 3.0.12 Vetinari (revision 1.0.6-1618-g917488b78) my .mp4 (h.264) files recorded from a Logitech C920 with cvlc on linux command line I get corrupted files after around 30 seconds of recording time.
This never happened before. When i only record a few seconds the files can be played normally. If I record a longer amount of time they get corrupted. This happens on all my Raspbery Pi 4s. So this must be a VLC bug!!

I start my Cam record(s) with the following command :

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=1 --set-ctrl=focus_auto=0 --set-ctrl=exposure_auto=3
cvlc --no-audio v4l2:///dev/video0:chroma=h264:width=1920:height=1080:fps=30 --sout '#standard{access=file,dst="/capture/'$(date +"%Y-%m-%dT%H-%M-%S")'-USBCAM.mp4"}' &

And I stop the Cam with:

killall -SIGTERM vlc

This worked flawlessly the last 2-3 years! When I record a longer time (eg. 2-3 hours) the vlc process is still alive for about 2-4 minutes AFTER killall -SIGTERM vlc and the .mp4 files are all working. Looks like if the process is still writing some additional data after being killed by the killall command. But thats fine for me.
NOW after the VLC update the vlc process stops immediately after killall -SIGTERM vlc (even when i record a longer time) and the files are corrupted and NOT PLAYABLE. Tested on different Raspian Pi4s with diifferent Logitech C920s! The .mp4 records are only playable if I record a very short amount of time.

Please fix this asap! If you need additional testing to get this bug fixed just contact me.

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 21 Jun 2021 15:53
by Dosperado
Latest addition to that bug:

I tested this behaviour with older raspian versions with older kernels but the bug with the corrupted .mp4 files still remains. So it is quite obvious that this is a VLC issue!!

Please please fix that!!

Or is there any way to install a previous VLC version on Raspian?

Please i need to get my capture files working again!!

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 29 Jul 2021 14:02
by Dosperado
No new vlc version for raspian right now, when does this bug get fixed??

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 29 Jul 2021 16:05
by Rémi Denis-Courmont
When somebody fixes it? This is not a Raspian forum, so not exactly the best venue to get answer on Raspian development.

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 12 Aug 2021 11:36
by Dosperado
That does not matter, same happens on Ubuntu after latest VLC update...so do you still think this is raspian related? I think NOT
That has NOTHING to do with raspian development...nothing. It's a VLC BUG, so nobody is interested in hearing about that in raspian forums....

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 12 Aug 2021 12:10
by Rémi Denis-Courmont
Point is that Raspian (also Ubuntu) update VLC on their own schedule. Shouting on the VLC fora achieves nothing in this respect.

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 06 Dec 2021 00:25
by Dosperado
Push, the problem still exists! As i mentioned this is NOT an OS problem...the corrupted video files happened after a VLC update and this is persistent on all Linux distributions i tested.
They are not developing vlc, they are just integrating it in their distributions/repositories. But this is a bug in the vlc core, nobody except the vlc developers can fix this and so this is exactly the correct forum for this.

Re: VLC 3.0.12 buggy on Raspian! h.264 recordings get corrupted!

Posted: 06 Feb 2022 17:25
by Dosperado
Hey, nevermind! Switched my code for the webcam streaming captures to disk/ssd on my 4 Raspberry Pi's to ffmpeg and now it's working flawlessly again!
My advice to all who want to save continous streams to disk: Avoid! cvlc, that command line version is not working anymore for that. Every video file gets corrupted after a short period of time.
Use ffmpeg instead!!

Cheers and thx 4 no help. Maybe this is again too much information for arrogant developers that don't care about their own software...