HLS input to SRT output - MediaLive to MediaConnect



We have a request from a client to redistribute a video service. The only source available to us is HLS and we have to output an SRT to several destinations.

I know we can take a MediaConnect input and output to MediaLive. If we bring in the HLS into MediaLive, can we output to MediaConnect and output the SRT?

I can't find anything to validate this.


asked 5 months ago483 views
3 Answers

Hi Jorge,

As you suggested, you can configure an UDP/RTP output of MediaLive (https://docs.aws.amazon.com/medialive/latest/ug/creating-udp-output-group.html) and use the ingest IP of the MediaConnect flow as the destination. Then you can create an SRT output (listener or caller) from that MediaConnect flow (https://docs.aws.amazon.com/mediaconnect/latest/ug/outputs-add-standard.html).

Step by step :

  • Create MediaConnect flow, take note of the input IP
  • Create a MediaLive channel with an UDP output group in which the destination is the previous IP
  • Create a MediaConnect SRT output
  • Start both the MediaConnect flow and the MediaLive channel

I recommend using FEC for the MediaLive output as a means of protection against packed drop (https://docs.aws.amazon.com/medialive/latest/ug/downstream-system-udp.html).


answered 5 months ago

Thanks for your question, Jorge:

I consulted the documentation for MediaLive and unfortunately, SRT is not one of the supported outputs, so we are not able to transcode your video inputs from HLS to SRT.

The only path forward I can see is to install FFMPEG on an EC2 instance and use that to transcode your video from HLS to SRT. Then it would be easy to distribute your video via a MediaConnect flow, as SRT is able to be used as an input and output.

answered 5 months ago
  • Thanks for your response, BCole. I did consider the option of standing up FFMPEG in EC2 as a work-around if there was no other alternative. Looks like Pedro may have provided a path, but will keep this option in mind.


I was able to get this working, but through a standard single pipeline source traversing the public internet.

I haven't been able to get it working via VPC, but as soon as I changed to standard source, it came right up.

UDP output group outputting RTP-FEC out of MediaLive into MediaConnect.

If this goes beyond PoC, it would be a 24x7 channel with at least 5 SRT output destinations to start.

answered 5 months ago
  • On further testing, whenever I configure the MediaLive channel as VPC output delivery, MediaLive starts throwing out alerts that it can't reach the input source. However, when I reconfig to public output delivery, it works as inte

    Update: VPC now working correctly. EIP wasn't associated.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions