Server: SRT support for output and input streams

Created on 4 Feb 2020  路  7Comments  路  Source: CasparCG/server

Description

SRT seems the way to get stable in and output streams.
Maybe to nice to have with CasparCG?
please see
https://medium.com/@eyevinntechnology/using-ffmpeg-and-srt-to-transport-video-signal-to-the-cloud-7160960f846a

typenhancement

Most helpful comment

Yeah, it turns out the ffmpeg 4.2.x builds from https://ffmpeg.zeranoe.com/builds/ arent built with libsrt support.
The unstable builds there do, so you might be build casparcg 2.3 yourself against those (and save building ffmpeg), but we wont be including those in the 2.3 releases, but they will be included at some point in the future.

All 7 comments

FFmpeg in CCGv2.3 should support some form of SRT (it's from 2019-02-21 and SRT was added in late '17 or early '18).

However keep in mind that since ffmpeg would be running as a listener and most likely not producing any output until it receives a connection so it might not be handled correctly in CCG. Also it probably doesn't handle disconnects/reconnects like we'd want.

You can easily run ffmpeg in another process, receiving the SRT and moving it over to UDP/RTP unicast or multicast for consumption in CCG.

Hi,
Can we get fully srt support in LTS version please ?

Have you tested it? I think it should be available through ffmpeg by using "srt://" as the output protocol.

If we were to add something like SRT I would much prefer using a protocol designed by and for professionals, like RIST.

Unfortunately, it is too late in the development cycle to get anything new like this into 2.3.
But hopefully it will work through ffmpeg already, as 2.3 is using a very new release

Yes, I tried with srt:// but getting exception ..
I think srt protocol is not supported in this ffmpeg version

I haven't checked the version bundled with casparcg but afaik you have to use a manually compiled version of ffmpeg to get srt-support. Perhaps the final 2.3 version could at least have ffmpeg with libsrt enabled, if it is currently not.

You can easily run ffmpeg in another process, receiving the SRT and moving it over to UDP/RTP unicast or multicast for consumption in CCG.

You wouldn't necessarily need ffmpeg for that but could use srt-live-transmit

Yeah, it turns out the ffmpeg 4.2.x builds from https://ffmpeg.zeranoe.com/builds/ arent built with libsrt support.
The unstable builds there do, so you might be build casparcg 2.3 yourself against those (and save building ffmpeg), but we wont be including those in the 2.3 releases, but they will be included at some point in the future.

Was this page helpful?
0 / 5 - 0 ratings