Page 1 of 1

Secure Reliable Transport SRT streaming in VLC

Posted: 09 Feb 2019 18:29
by postSysAdmin
Does anyone have an idea of how to start an SRT stream output from VLC?

I can see the module is present in the latest version of VLC on Mac by going to:
/Applications/VLC.app/Contents/MacOS/VLC --module srt
module is called "access_output_srt"

I can receive an srt stream just fine in vlc by going to srt://192.168.1.1:8888 (or any ip address and port where a proper SRT server is setup using another program or hardware - i just want to be able to use VLC end-to-end if possible)

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 10 Feb 2019 22:42
by Jean-Baptiste Kempf
Use exactly like http, but with srt. So, std (standard) output and dest=srt...

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 11 Feb 2019 09:02
by postSysAdmin
Here is what I have so far that is not working:

/Applications/VLC.app/Contents/MacOS/VLC -v avcapture://<HardwareIDforFacetimeCamera> --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=8000,ab=128,deinterlace}:srt{mux=ts}}'

I clearly need to specify some things like the port to listen on and the fact that it should be in listener mode. Do you mind posting a terminal command that works for you?
Thanks!

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 16 Feb 2019 15:57
by Jean-Baptiste Kempf
Are you sure it is not going to be std{dst=srt://..} ?

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 13 Apr 2019 20:50
by ahmedahmed1223
So Can anyone help in streaming Srt stream From Vlc software?
because i cant find any documentation about how to do that

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 25 Apr 2019 16:47
by postSysAdmin
Jean-Baptiste Kempf, I am relatively new to VLC command line, so could you (or anyone else reading this) please provide the full command that one might use to start an SRT stream using an h.264 + AAC encode at 8000mbit/sec?
Thanks!

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 12 Aug 2019 23:13
by pcb105
Hello All,

This is the first time I have posted on this forum.
I am trying to get the following to work.

VLC stream out a ts file from one PC and then receive the stream with VLC on the other side.

Video File ---->VLC --SRT Out-->Network---->VLC----> Video playback. (for this test I am using the same PC for both sides).
My OS is Win 10

For the source side I have the following command line (using VLC 3.0.7.1)
vlc c:\users\paul\Downloads\VID_20190531_192258.ts --sout=#srt{dst=10.205.107.105,port=5004,mux=ts}

This appears to work (as it looks like it is streaming out (counter increases etc)

For the receive side I am using the following command
vlc srt://10.205.107.105:5004

I do not get any indication of anything happening just

I have the following set in the perfernces
SRT input
SRT Chunk size: 1316
Return poll wait....: -1
SRT latency: 125ms
Password: <<blank>>
Cryptokey length in bytes: 16 bytes

SRT
SRT Chunk size: 1316
Return poll wait....: -1
SRT latency: 125ms
Password: <<blank>>
Cryptokey length in bytes: 16 bytes

Any ideas would be appreciated. Thanks

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 12 Aug 2019 23:37
by postSysAdmin
Hey pcb105
I still don't have a solution to this problem, however, I wanted to add a diagnostic tool to your toolkit. If you want to test creating/sending or receiving SRT streams outside of VLC, the Haivision Play app for Android and iOS works well to test your streams. It will either create/send a stream from whatever is in front of the camera or receive a stream, and it also supports the various handshakes that SRT does, such as Listener, Receiver or Rendezvous. It does encryption too, if you need to test that.

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 13 Aug 2019 01:44
by pcb105
Hello postSysAdmin,

Thanks for the help. I am able to connect Haivision Play app to vlc. So now I have a way to test. Thanks a lot, I would still like to be able to use VLC on both sides.

pcb105

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 13 Aug 2019 01:52
by postSysAdmin
Can you explain a bit more? Did you just get the Haivision Play app working as the encoder (in other words, you still don't have VLC working as an encoder)? This has been my experience - I can use VLC only as the decoder using the url format like you had (srt://10.205.107.105:5004)

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 13 Aug 2019 02:40
by pcb105
Yes, I have the play app working as the encoder. I do not have VLC working as an encoder. I have the same experience as you.

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 15 Aug 2019 13:11
by pcb105
Quick Question.... Does anyone know if VLC for Android supports SRT (Secure Reliable Transport)?
I can't seem to find it listed anywhere.

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 24 Dec 2019 02:28
by hughdemand
My issue, as a newbie... I want to use VLC as a "caller" to vMix to receive the stream from vMix. I cant seem to unblock a port to use for something like this
srt://70.26.32.125:38532

Using Wireshark I only see a handshake.

If I change vMix from a "listener" to "rendezvous" I believe it will circumvent any port blocking.

What do I type in the url section when I "OPEN NETWORK STREAM" if I want to use rendezvous and not a specific port?

Thanks

Whit

Re: Secure Reliable Transport SRT streaming in VLC

Posted: 01 Apr 2021 10:12
by kreyo
I found a solution for me which works with VLC 3.0.12

The following MRL starts a stream in caller mode while displaying the camera in VLC:

On Windows:

Code: Select all

dshow:// :sout=#transcode{vcodec=h264,vb=800,scale=Automatisch,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=srt{mux=ts,dst=localhost:9000?mode=caller},dst=display} :no-sout-all :sout-keep
On Mac:

Code: Select all

avcapture:// :sout=#transcode{vcodec=h264,vb=800,scale=Automatisch,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=srt{mux=ts,dst=localhost:9000?mode=caller},dst=display} :no-sout-all :sout-keep