# Live alternative audio with SRT /mpeg-ts

**URL:** <https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690>\
**Category:** Wowza Streaming Engine\
**Created:** [July 22, 2019, 4:47am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690 "2019-07-22T04:47:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [July 22, 2019, 4:47am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/1 "2019-07-22T04:47:05Z")

</div>

I’m investigating live alternaive language audio with HLS using a custom medialist module. However I’m trying to figure out the workflow for ingest.

The documentation states it needs to ingest a udp mpeg-ts stream. I’m not sure yet how to achieve that with a software encoder yet like gstreamer for testing this. Its easy to probe a VOD file for these generated audio and video PID’s. But I’m confused how it’spossible to identify these tracks for ingest for a live encode ?

Seeing that it’s an mpeg-ts stream, would it be possible to select these PID tracks from an SRT encoder ingest also ?

Right now, I’m investigating the option of two rtmp encodes for the seperate audio also. Would this work ?

---

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [July 22, 2019, 6:55am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/2 "2019-07-22T06:55:57Z")

</div>

Is there anyway to demux audio tracks from an rtmp published stream ? Like the VOD module I suppose ? It seems mpeg-ts is unusuitable as an option as is somehow publishing two rtmp streams.

---

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [July 24, 2019, 8:06am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/3 "2019-07-24T08:06:03Z")

</div>

If I setup an mpeg-ts stream target for an RTMP stream back to the server host, would this be a possible hack to ingest to the multiple audio tracks ?

I’m investigating this option now, so publish with two audio tracks,but I would have no idea about PID’s. Mpeg-ts encoders are not easily accessible for end users, I can’t seem to find suitable software encoders for this setup either ?

I’m trying to find ways to publish multi channel mpeg-ts with software as a test also but no luck.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [July 25, 2019, 10:09pm UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/4 "2019-07-25T22:09:09Z")

</div>

We’re not sure since @Daniel Rossi since we have not tested this workflow to the point we officially support it, but would be happy to take a closer look through a support ticket and test it out with you.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)

---

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [July 29, 2019, 6:25am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/5 "2019-07-29T06:25:27Z")

</div>

PID’s are being delivered over SRT mpeg-ts. I am trying to work on some tests. But trying to get UDP mpeg-ts working first which I’ve successfully done via OBS.

---

<div class="post-metadata">

**Author:** ![kv\_pham](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kv\_pham](https://community.wowza.com/u/kv_pham)\
**Post date:** [August 3, 2019, 6:26pm UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/6 "2019-08-03T18:26:47Z")

</div>

FYI there is already this suggestion for srt: /users/Daniel\_Rossi

---

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [August 4, 2019, 11:48am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/7 "2019-08-04T11:48:22Z")

</div>

I was able to properly run a encoder test using ffmpeg as gstreamer has bugs. audio PID’s are sent with the mpegts

ffmpeg -fflags +genpts -re -i sintel\_lang\_2000k.mp4 -acodec copy -vcodec copy -map 0:v:0 -map 0:a:0 -map 0:a:2 -strict -2 -y -f mpegts ‘srt://192.168.4.43:8081?pkt\_size=1316&mode=caller’

Audio languages can be ingested uring SRT, after the stream file is modified

{ uri : “srt://0.0.0.0:8081”, mpegtsVideoPID : “0”, mpegtsAudioPID : “258” }

My custom media list generates a rendition for the language stream file and the one with both video and default language audio.

Works like UDP mpegts.

---

<div class="post-metadata">

**Author:** ![Daniel\_Rossi](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Daniel\_Rossi](https://community.wowza.com/u/Daniel_Rossi)\
**Post date:** [August 5, 2019, 4:16am UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/8 "2019-08-05T04:16:27Z")

</div>

It was working now nothing. Only one of the ports opens !

---

<div class="post-metadata">

**Author:** ![mark\_rump](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mark\_rump](https://community.wowza.com/u/mark_rump)\
**Post date:** [August 19, 2020, 10:16pm UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/9 "2020-08-19T22:16:11Z")

</div>

Did you make it work? I have the same issue … UDP port sharing not working with SRT. Restreaming the SRT via UDP to the same instance loses my additional 2nd and 3rd audio tracks.

---

<div class="post-metadata">

**Author:** ![Nathan\_Ihlenfeldt](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nathan\_Ihlenfeldt](https://community.wowza.com/u/Nathan_Ihlenfeldt)\
**Post date:** [August 20, 2020, 2:07pm UTC](https://community.wowza.com/t/live-alternative-audio-with-srt-mpeg-ts/53690/10 "2020-08-20T14:07:27Z")

</div>

I did.I ran a ffmpeg docker container on the WSE server to convert SRT to MPEG-TS UDP. FFMpeg handles the SRT negotiation, and you’ll create udp:// stream files in WSE. This is not possible with WSE alone at this time
