Page 1 of 1

How to set command line parameter for streaming in vlc

Posted: 17 Apr 2009 13:01
by parthmankad
Hello everybody

i have a webcam on my laptop and i want to multicast the stream. please can you help me how to do this through command line. what parameters do i need to give from command line for streaming. i also want to set the ttl value.

Thanks
Parth Mankad

Re: How to set command line parameter for streaming in vlc

Posted: 17 Apr 2009 14:48
by Arkanis
I've exactly the same problem and the same question.

I can stream my webcam from my computer (vista64) but i'd like to stream it automaticaly each time windows start up. And i'd like that to be like a hidden service, without having on the screen any sign of vlc.

I've tried several things without success.

Do you have an idea to help me?

Thanks a lot :)

Re: How to set command line parameter for streaming in vlc

Posted: 17 Apr 2009 15:03
by VLC_help
You can copy the parameters from GUI. So something like

Code: Select all

vlc.exe dshow:// :dshow-vdev="Panasonic MPEG2TS Tape Subunit Device" :dshow-adev="" :dshow-size="" :sout=#transcode{vcodec=mp4v,vb=800,scale=1}:duplicate{dst=std{access=udp,mux=ts,dst=:1234}}

Re: How to set command line parameter for streaming in vlc

Posted: 17 Apr 2009 15:11
by Arkanis
Thanks for your answer :) Where do i need to copy these lines? Is there something to write there to tell vlc to stream in background and not show any interface?

Re: How to set command line parameter for streaming in vlc

Posted: 18 Apr 2009 07:40
by parthmankad
hello

thanks for your answer. one more thing i wanted was that i am using the vlc plugin in c# application. i have copied the parameters from the gui. however i dont know where to set the ttl parameter. in the gui if we set the ttl paremeter we cannot copy it like the rest of them. how to set the ttl paremter from outside.

thanx
parth mankad

Re: How to set command line parameter for streaming in vlc

Posted: 18 Apr 2009 13:52
by VLC_help
Is there something to write there to tell vlc to stream in background and not show any interface?
Use dummy interface. -I dummy
however i dont know where to set the ttl parameter
--sout-rtp-ttl=<integer> Hop limit (TTL)
This is the hop limit (also known as "Time-To-Live" or TTL) of the
multicast packets sent by the stream output (0 = use operating system
built-in default).
http://wiki.videolan.org/VLC_command-line_help

in case you rtp.

Re: How to set command line parameter for streaming in vlc

Posted: 19 Apr 2009 11:56
by parthmankad
hello

thanx a lot for the reply. i placed the ttl as mentioned by you in my code below. i have set the value to maximum coz the steream has to pass through multiple routers.howerver i am not able to view the stream at the client end. if i set the same parameters from the wizard then i am able to view the stream at other end. i think i am not setting the ttl parameter at a proper place. plase help me with this.

Dim vlc_opt As String() = New String() {":dshow-vdev=Acer crystel eye webcam" , ":dshow-adev=Realket audio input" , ":dshow-size=320x240", " :dshow-fps=30.000000", ":sout=#transcode{vcodec=h264,vb=256",scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=display,dst=std{access=udp,ttl=255,mux=ts,dst=239.255.12.14:1234}""}"}

Re: How to set command line parameter for streaming in vlc

Posted: 20 Apr 2009 12:49
by VLC_help
I assume you are using 0.8.6 series. In that case you can try --ttl= so for example
":ttl=255 :dshow-vdev=Acer crystel eye webcam" , ":dshow-adev=Realket audio input" , ":dshow-size=320x240", " :dshow-fps=30.000000", ":sout=#transcode{vcodec=h264,vb=256",scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=239.255.12.14:1234}""}"

Re: How to set command line parameter for streaming in vlc

Posted: 20 Apr 2009 14:02
by parthmankad
hello

thanx for the reply.will give it a try and get back with the result.


thanx
parth mankad

Re: How to set command line parameter for streaming in vlc

Posted: 25 Apr 2009 07:49
by parthmankad
hello everybody

thanx a lot for the help.the problem is solved


parth mankad