Start RTP streaming from the command line on Windows

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.
DonMcL
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Apr 2017 16:59

Start RTP streaming from the command line on Windows

Postby DonMcL » 14 Jul 2017 22:08

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

berkely
New Cone
New Cone
Posts: 3
Joined: 12 Jul 2017 20:17

Re: Start RTP streaming from the command line on Windows

Postby berkely » 16 Jul 2017 22:28

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.

DonMcL
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Apr 2017 16:59

Re: Start RTP streaming from the command line on Windows

Postby DonMcL » 17 Jul 2017 16:47

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

berkely
New Cone
New Cone
Posts: 3
Joined: 12 Jul 2017 20:17

Re: Start RTP streaming from the command line on Windows

Postby berkely » 27 Jul 2017 20:48

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.

oceanmaster
New Cone
New Cone
Posts: 4
Joined: 03 Aug 2017 19:46

Re: Start RTP streaming from the command line on Windows

Postby oceanmaster » 03 Aug 2017 20:27

And? Did it work?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 96 guests