Page 1 of 1

Stream capture and missing packets

Posted: 03 Nov 2012 10:10
by rocky
Hi! I'm trying to capture udp stream that has some problems with consistency. Some packets seem to be missing and when I plain watch this stream I see glitches and even missing video and audio frames.
When watching live stream it seems that missing frames are replaced with silence or black screen, but when capturing into a file they are just dropped. In result it shortenes resulting file and then I have troubles with synchronising that file to another from good source.
Is there a way to tell vlc not to just drop missing frames and to fill such gaps with silence when capturing into a file? Or with UDP streams there is no way of knowing what frames are missing?
Thank you!

Re: Stream capture and missing packets

Posted: 05 Nov 2012 10:13
by Lotesdelere
You need to give more info about your OS, your VLC version, your hardware, the source stream, the method and the command line you are using.

Re: Stream capture and missing packets

Posted: 05 Nov 2012 13:13
by RĂ©mi Denis-Courmont
I don't really see how VLC could fill the gaps (at least without decoding and re-encoding). It's best to record the stream to MPEG-TS as it comes in that case.

Re: Stream capture and missing packets

Posted: 05 Nov 2012 21:36
by rocky
Okay thanks for replies.
So I have Win7 and VLC 2.0.4 and my execute line is "vlc.exe -vvv udp://@239.1.100.1:1234 --sout file/ts:"D:\movie.ts" --sout-all"
Stream is pretty corrupted, in the captured file many video frames and audio samples are missing, and to synchronise output sound with good video I need to fill gaps with silence manually.
One way to solve the problem is to change source stream, but it's not easy to find another one.
I really do not think you guys can help me, but still.
Stream info: mpeg2 video and mpeg1 layer 2 audio.