Stream capture and missing packets

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
rocky
Blank Cone
Blank Cone
Posts: 61
Joined: 13 Jan 2007 12:21
Contact:

Stream capture and missing packets

Postby rocky » 03 Nov 2012 10:10

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!

Lotesdelere
Cone Master
Cone Master
Posts: 10111
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Stream capture and missing packets

Postby Lotesdelere » 05 Nov 2012 10:13

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Stream capture and missing packets

Postby Rémi Denis-Courmont » 05 Nov 2012 13:13

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rocky
Blank Cone
Blank Cone
Posts: 61
Joined: 13 Jan 2007 12:21
Contact:

Re: Stream capture and missing packets

Postby rocky » 05 Nov 2012 21:36

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests