Wowza Community

Is it possible to pull a SRT-Stream and provide it as a HLS-stream for others?

Hi everyone,

I’m trying to pull a SRT stream in order to provide it as a HLS-stream which others can pull.

But I can’t seem to get it right.

I added a stream file for the SRT and connected it with the mediacaster type SRT. That’s not working. Any suggestions?

Thanks in advance

Steffen

When you set up SRT on Wowza and start the MediaCaster, it’ll start in LISTENER mode. Make sure you specify IP address 0.0.0.0 (for all interfaces) and specify a port. That UDP port must of course be open on any firewall.

On your encoder, start SRT in CALLER mode, and for the address, specify the public IP address of the Wowza server, and the port.

Hi Karel,

thanks for your answer. It work’s this way. I somehow thought wowza would be the Caller.
Do you know if this also works with 4 audio layers (2 stereo pairs)?

Thank you

Steffen

SRT is just a pipeline that will transport anything you push through it. In this case, the data between encoder and Wowza is MPEG-TS, which supports multiple audio channels/tracks. On the Wowza side, you should treat this as a normal MPEG-TS stream, so you should be able to specify the PIDs of the programs that you want to pull (e.g. srt://0.0.0.0:10000?audioPID=23, or specify it in the properties of the .stream file)

Hi Karel,

thanks again. Not sure how I can specify the PIDs. The input has four audio layers. Could you tell me how to configure stream file?

Thanks a lot

Not out of my head, but I know 100% sure it’s somewhere in the documentation about how to specify which audioPID and videoPID you want to pull from an MPEG-TS stream.

A trick: create a new stream file, with protocol “udp” instead of “srt” as URL. Save that stream file, and you’ll see that there are more properties available in the Streaming Engine Panel than when you specify SRT. These props should include videoPID and audioPID. Set these props, save, and then go to the /content folder of your installation, and open the .stream file with your favorite text reader - unless your favorite is vim, then switch to nano :wink: You’ll see the JSON format that you must use. Now switch the URL back to SRT and start the .stream file.