Capturing udp stream using vlc : misformed pictured n sound

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
nour
Blank Cone
Blank Cone
Posts: 28
Joined: 19 Apr 2011 11:39

Capturing udp stream using vlc : misformed pictured n sound

Postby nour » 19 Apr 2011 12:22

Hi there,

I'm trying to capture udp stream using vlc in batch.
the test go ok

I use the following command :

vlc udp://@233.60.75.2:2000 :udp-caching=800 :sout=#transcode{vcodec=mp2v,vb=3072,fps=25,scale=1,acodec=mpga,ab=128,channels=2,samplerate=48000}:std{access=file,mux=ps,dst=d:\\tvmonitor\\Journaal_16u00_dagelijks.mpg} --run-time 600 vlc://quit

the problem that I have is when playing the capurted file I see sometimes a second or 2 of "garbidge" : misformed picture and sound !

I though that it may had to do with the delay in UDP stream, but that is not the case , when playing the stream and not captring no problems to be seen.

Please your help.
Nour

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capturing udp stream using vlc : misformed pictured n so

Postby VLC_help » 19 Apr 2011 16:36

I would just do demuxdump and encode after that.

kamal
New Cone
New Cone
Posts: 3
Joined: 19 Apr 2011 18:38

Re: Capturing udp stream using vlc : misformed pictured n so

Postby kamal » 19 Apr 2011 19:01

Hi

I have a requirement where in I need to capture the Mpeg4 streams from an IP Camera and transcode it to H264 format and mux it to .mp4 container.

Can you please help with the command?

Regards
Kamal

nour
Blank Cone
Blank Cone
Posts: 28
Joined: 19 Apr 2011 11:39

Re: Capturing udp stream using vlc : misformed pictured n so

Postby nour » 20 Apr 2011 09:50

Hi Vlc_help,

many thanks

I have tired this vlc udp://@233.60.75.3:2000 :udp-caching=800 --demux=dump --demuxdump-file=d:\\tvmonitor\\De_Wereld_draait_door_ma-vr.mpg --run-time 30 vlc://quit

the problem is that file if very big !

any idea's how to do this,

Regards

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capturing udp stream using vlc : misformed pictured n so

Postby VLC_help » 20 Apr 2011 13:23

the problem is that file if very big !
You can transcode it to smaller one (assuming VLC play it). Something like

Code: Select all

vlc De_Wereld_draait_door_ma-vr.mpg :sout=#transcode{vcodec=h264,acodec=mp4a,ab=128,channels=2,samplerate=44100}:file{dst=output.mp4}

nour
Blank Cone
Blank Cone
Posts: 28
Joined: 19 Apr 2011 11:39

Re: Capturing udp stream using vlc : misformed pictured n so

Postby nour » 20 Apr 2011 15:41

thanks,

one more question the switch --run-time 30 vlc://quit doesnot work ?!!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capturing udp stream using vlc : misformed pictured n so

Postby VLC_help » 21 Apr 2011 13:32

So it doesn't stop after 30 seconds?

nour
Blank Cone
Blank Cone
Posts: 28
Joined: 19 Apr 2011 11:39

Re: Capturing udp stream using vlc : misformed pictured n so

Postby nour » 21 Apr 2011 17:07

no it does not that only when I use dump ! as shown i command above

if I use a command like :
vlc udp://@233.60.75.3:2000 :udp-caching=800 --demux=dump --demuxdump-file=d:\\tvmonitor\\myfile.mpg --run-time 30 vlc://quit

vlc doesn't quit !

but when I use a command like:
vlc udp://@233.60.75.3:2000 :udp-caching=800 :sout=#transcode{vcodec=mp2v,vb=4400,scale=1,acodec=mpga,ab=384,channels=2,samplerate=48000}:std{access=file,mux=ps,dst=d:\\tvmonitor\\myfile.mpg} --run-time 3200 vlc://quit

vlc quits perfectly.

the conclusion is :

when using RAW dump "vlc quit" option doesn't work !
but when using transcode "vlc quit" works !


how come ??!

regards,
Nour Eddine

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capturing udp stream using vlc : misformed pictured n so

Postby VLC_help » 22 Apr 2011 17:37

It might be a bug in VLC.

If the input is MPEG-2 video, you could try something like

Code: Select all

vlc udp://@233.60.75.3:2000 :udp-caching=800 --sout=#std{access=file,mux=ps,dst=output.mpg} --run-time 30 vlc://quit

nour
Blank Cone
Blank Cone
Posts: 28
Joined: 19 Apr 2011 11:39

Re: Capturing udp stream using vlc : misformed pictured n so

Postby nour » 11 May 2011 12:20

problem solved,
thanks


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 47 guests