Secure Reliable Transport SRT streaming in VLC

About encoding, codec settings, muxers and filter usage
postSysAdmin
New Cone
New Cone
Posts: 7
Joined: 06 Feb 2019 01:04

Secure Reliable Transport SRT streaming in VLC

Postby postSysAdmin » 09 Feb 2019 18:29

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)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Secure Reliable Transport SRT streaming in VLC

Postby Jean-Baptiste Kempf » 10 Feb 2019 22:42

Use exactly like http, but with srt. So, std (standard) output and dest=srt...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

postSysAdmin
New Cone
New Cone
Posts: 7
Joined: 06 Feb 2019 01:04

Re: Secure Reliable Transport SRT streaming in VLC

Postby postSysAdmin » 11 Feb 2019 09:02

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Secure Reliable Transport SRT streaming in VLC

Postby Jean-Baptiste Kempf » 16 Feb 2019 15:57

Are you sure it is not going to be std{dst=srt://..} ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ahmedahmed1223
New Cone
New Cone
Posts: 1
Joined: 13 Apr 2019 20:47

Re: Secure Reliable Transport SRT streaming in VLC

Postby ahmedahmed1223 » 13 Apr 2019 20:50

So Can anyone help in streaming Srt stream From Vlc software?
because i cant find any documentation about how to do that

postSysAdmin
New Cone
New Cone
Posts: 7
Joined: 06 Feb 2019 01:04

Re: Secure Reliable Transport SRT streaming in VLC

Postby postSysAdmin » 25 Apr 2019 16:47

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!

pcb105
New Cone
New Cone
Posts: 5
Joined: 12 Aug 2019 22:43

Re: Secure Reliable Transport SRT streaming in VLC

Postby pcb105 » 12 Aug 2019 23:13

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

postSysAdmin
New Cone
New Cone
Posts: 7
Joined: 06 Feb 2019 01:04

Re: Secure Reliable Transport SRT streaming in VLC

Postby postSysAdmin » 12 Aug 2019 23:37

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.

pcb105
New Cone
New Cone
Posts: 5
Joined: 12 Aug 2019 22:43

Re: Secure Reliable Transport SRT streaming in VLC

Postby pcb105 » 13 Aug 2019 01:44

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

postSysAdmin
New Cone
New Cone
Posts: 7
Joined: 06 Feb 2019 01:04

Re: Secure Reliable Transport SRT streaming in VLC

Postby postSysAdmin » 13 Aug 2019 01:52

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)

pcb105
New Cone
New Cone
Posts: 5
Joined: 12 Aug 2019 22:43

Re: Secure Reliable Transport SRT streaming in VLC

Postby pcb105 » 13 Aug 2019 02:40

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.

pcb105
New Cone
New Cone
Posts: 5
Joined: 12 Aug 2019 22:43

Re: Secure Reliable Transport SRT streaming in VLC

Postby pcb105 » 15 Aug 2019 13:11

Quick Question.... Does anyone know if VLC for Android supports SRT (Secure Reliable Transport)?
I can't seem to find it listed anywhere.

hughdemand
New Cone
New Cone
Posts: 2
Joined: 24 Dec 2019 02:14

Re: Secure Reliable Transport SRT streaming in VLC

Postby hughdemand » 24 Dec 2019 02:28

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

kreyo
New Cone
New Cone
Posts: 3
Joined: 31 Mar 2021 14:51

Re: Secure Reliable Transport SRT streaming in VLC

Postby kreyo » 01 Apr 2021 10:12

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests