Page 1 of 1

Start RTP streaming from the command line on Windows

Posted: 14 Jul 2017 22:08
by DonMcL
Hi,

I have been successful getting vlc to start streaming an RTP on linux using the following command:

vlc -vvv filename.mp4 --sout '#rtp{mux=ts,dst=142.92.38.100,sdp=sap,name="TestStream"}'

Using this verbatim on Windows did not work.

By using the4 GUI media->stream I was able to manually start the stream.
Copying the Src and Dst, and stream parameters from the media->stream dialog box my Windows command line is now:

vlc -vvv file:///C:Program%20Files%20%28x86%29/VideoLAN/VLC/filename.mp4 :sout=#rtp{dst=169.254.129.26,port=5004,mux=ts,ttl=1} :sout-all :sout-keep

I've used versions of vlc from 2.0.8 up to current.
None of the versions complain about the format of this command, but none of them start streaming.
Is there something like a :start, :play, or :stream command that will force it to start streaming? (I tried those, no joy.)

Or is there another way to get vlc on Windows to start streaming when the program starts?

Thanks,
Don

Re: Start RTP streaming from the command line on Windows

Posted: 16 Jul 2017 22:28
by berkely
Hi Don,

We're streaming on Windows. maybe you can check out the command we use, it's described in the following post.
https://forum.videolan.org/viewtopic.ph ... 27#p458170

Regards.
B.

Re: Start RTP streaming from the command line on Windows

Posted: 17 Jul 2017 16:47
by DonMcL
Hi Berkely,

On Windows the command I posted pops open the VLC GUI and gets all the setting right and will start streaming if in the GUI I click the play button in the GUI.
But we need this to be started from a script (so there will be no user to press play).

Are you saying if we set this up as a playlist it will start streaming automatically?

Thanks,
Don

Re: Start RTP streaming from the command line on Windows

Posted: 27 Jul 2017 20:48
by berkely
Hi,

It should. We're using .ahk scripts to have a bit more control but using a .bat file works just fine.
In general we're streaming a complete directory.

Re: Start RTP streaming from the command line on Windows

Posted: 03 Aug 2017 20:27
by oceanmaster
And? Did it work?