[vlc-devel] [PATCH 0/2] Support SRT input/ouput
    Justin Kim 
    justin.kim at collabora.com
       
    Tue Aug  8 20:49:16 CEST 2017
    
    
  
SRT is another transport technology across unpredictable network.
Recently, SRT Library has been released version 1.2.0.
 - https://github.com/Haivision/srt/releases
Although SRT is UDP-based protocol, it works similar to connection
oriented protocol. In these patches, input/ouput modules work as
client mode.
Once SRT is installed, you can get 'stransmit' executable which is a
converter from UDP to SRT, and vice versa. For testing these modules,
here are brief sequence.
Testing for SRT input
1. Getting UDP stream
In this command line, I assume that UDP feeds through '127.0.0.1:5000'.
In addition, transcoding is not mandatory but I used this option to be sure
what type of stream is fed.
 $ vlc -I dummy /path/to/media-file \
   --sout '#transcode{vcodec=h264,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100}:udp{mux=ts,dst=127.0.0.1:5000}' \
   --sout-keep  \
   --loop
2. Converting UDP to SRT stream
 $ stransmit -v udp://:5000 srt://:7002?mode=listener
3. Playing with SRT input
 $ vlc srt://127.0.0.1:7002
Testing for SRT ouput
1. Getting SRT stream
This is almost same with getting UDP stream, but the uri prefix is 'srt' instead of 'udp'.
 $ vlc -I dummy /path/to/media-file \
   --sout '#transcode{vcodec=h264,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100}:srt{mux=ts,dst=127.0.0.1:7002}' \
   --sout-keep  \
   --loop
2. Converting SRT to UDP stream
 $ stransmit -v srt://:7002?mode=listener udp://127.0.0.1:5000 
3. Playing with UDP input
 $ vlc udp/ts://@:5000
Justin Kim (2):
  access{_out}:srt: introduce SRT input/ouput
  stream_out: standard: add 'srt'
 configure.ac                      |  30 +++
 modules/access/Makefile.am        |   8 +
 modules/access/srt.c              | 237 +++++++++++++++++++++
 modules/access_output/Makefile.am |   7 +
 modules/access_output/srt.c       | 428 ++++++++++++++++++++++++++++++++++++++
 modules/stream_out/standard.c     |   4 +
 6 files changed, 714 insertions(+)
 create mode 100644 modules/access/srt.c
 create mode 100644 modules/access_output/srt.c
-- 
2.14.0
    
    
More information about the vlc-devel
mailing list