Commands for streaming from windows startup

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
chris0409
New Cone
New Cone
Posts: 4
Joined: 06 May 2011 21:53

Commands for streaming from windows startup

Postby chris0409 » 06 May 2011 22:03

I am trying to setup a stream that allows a person to view a stream that is captured from a capture card and output to http stream, i have done this by using the vlc player but what i want to acheive now is if the pc is switched off i can simply turn the pc back on and the stream will start back up again

i have tried going through the gui and copying the code into notepad and creating a startup command line but when i run it it says that the commands are not valid

here is a sample commandline i am playing with which doesnt work,

"C:\Program Files\VideoLAN\VLC\vlc.exe" --:dshow-vdev=WebCam SCB-0340N :dshow-adev=Realtek HD Audio Input :dshow-caching=200 :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=asf,dst=:8080/},ds

i am going quite wrong somewhere but cant quite see my issue

Can anyone help

Thanks in advance
chris

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Commands for streaming from windows startup

Postby Greg » 06 May 2011 23:27

Missing and inappropriate syntax-quotations around devices & sout command string, also a --: ( -- or : Not both)

Example of GUI to command line here in Appendix section

http://wiki.videolan.org/Stream_VLC_to_ ... h#Appendix

chris0409
New Cone
New Cone
Posts: 4
Joined: 06 May 2011 21:53

Re: Commands for streaming from windows startup

Postby chris0409 » 07 May 2011 23:26

Hi Greg

Thanks for the help, have done quite a bit of reading today and have got the following command line

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" dshow://:dshow-vdev="713x BDA Analog Capture":dshow-adev="Capture (Creatix SAA7131, Hybri" :dshow-caching="200" input_stream :sout="#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}" "#standard{access=http,mux=asf,dst=192.168.1.3:8080}"

I can run this is a cmd prompt and get the video running as a dshow but it doesnt say streaming at the bottom of the window just dshow so i am assuming this is only playing the video and not streaming the video fo other pc's to view

also when i try and access from another pc on the lan it says unable to open the MRL http://192.168.1.3:8080

most of the code above is taken from the gui when setting up a stream and the guide you pointed me to.

Hope you can help

thanks
chris

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Commands for streaming from windows startup

Postby Greg » 08 May 2011 02:32

Your input section looks a bit ?? Extra ""? But if it is working/playing, then....

The sout has syntax errors eg extra "" ....

Something like this should work (direct copy from GUI + one pair of "")

Code: Select all

:sout="#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=asf,dst=:8080/},dst=display}"
Suggest you prove out input (to play), then prove out Sout to transcode/stream .. Keep it simple and basic while you are troubleshooting command line. ... Step by step.

Use the messages box GUI (log) at verbosity 2 for info or --vvv prefix for command line info/errors

chris0409
New Cone
New Cone
Posts: 4
Joined: 06 May 2011 21:53

Re: Commands for streaming from windows startup

Postby chris0409 » 08 May 2011 10:13

Hi Greg

Thanks so much for the help

i know have a working stream, one little snag is that it is playing in black and white now,

i know the issue is the video crossbar properties as if i use the gui to setup a stream and goto advanced properties and select device properties just before the stream it lets me select the composite input, as by default the svideo input is selected

is there a commandline for this or do i just go and buy a composite to svideo converter?

Regards

Chris

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Commands for streaming from windows startup

Postby Greg » 08 May 2011 14:38

Should be able to select & save Video input in Preferences - Show Settings " All" button checked

Input / codecs
Access Modules
Direct Show
Video Input pin

chris0409
New Cone
New Cone
Posts: 4
Joined: 06 May 2011 21:53

Re: Commands for streaming from windows startup

Postby chris0409 » 08 May 2011 23:38

Hi Greg

I think i am there, i have purchased a svideo cable and converter so i just have it now using the svideo input,

Thanks for all of your help, the stream is now working great.

One last thing, on the pc i am using to connect to the stream i am getting a break in the audio every 2-3 seconds, shouldnt be a big issue as it is only being used to watch a bird nest but would be good to find out what may be causing it.

Chris

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Commands for streaming from windows startup

Postby Greg » 09 May 2011 17:19

Difficult to say, could be some other process on your pc interupting, especially if your cpu is a bit stretched.

Could try increasing caching to say 2000

WMV/WMA is a somewhat less than best for encoding and streaming. If you need .asf output you could try divx/mp3.
Otherwise try some of the others Eg h264/mp3 or 4a etc

grayson
New Cone
New Cone
Posts: 6
Joined: 26 Feb 2012 20:41

Re: Commands for streaming from windows startup

Postby grayson » 26 Feb 2012 20:46

Newbie here... having the same issue Chris was...

Attempting to stream audio only. My command line is:
"C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="none" :dshow-adev="SoundMAX Digital Audio" :dshow-caching="200" input_stream :sout="#transcode{vcodec=none,acodec=mp3,ab=96,channels=1,samplerate=44100}:duplicate{dst=http{dst=:8080/stream.mp3},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep"

I can get a dshow display locally, but can not seem to get a stream rolling.

Not quite sure what I'm missing.
Thanks in advance!
--Grayson


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 37 guests