# Testing Alternative audio or video feature with Apple HLS: working also for rtmp ?

**URL:** <https://community.wowza.com/t/testing-alternative-audio-or-video-feature-with-apple-hls-working-also-for-rtmp/33854>\
**Category:** Wowza Streaming Engine\
**Created:** [December 6, 2015, 2:10am UTC](https://community.wowza.com/t/testing-alternative-audio-or-video-feature-with-apple-hls-working-also-for-rtmp/33854 "2015-12-06T02:10:29Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [December 6, 2015, 2:10am UTC](https://community.wowza.com/t/testing-alternative-audio-or-video-feature-with-apple-hls-working-also-for-rtmp/33854/1 "2015-12-06T02:10:29Z")

</div>

Hello

i’m testing what is described here:

[https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-apple-hls-streams&postid=156753](https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-apple-hls-streams&postid=156753)

My goal is to be able to stream **live** content with different audio channels corresponding to different languages.

I have a mpeg-ts source with 5 audio channels simulated by ffmpeg streaming to a udp port:

ffmpeg -re -i source.ts -map 0:0 -vcodec copy -map 0:1 -acodec copy -map 0:2 -acodec copy -map 0:3 -acodec copy -map 0:4 -acodec copy -map 0:5 -acodec copy -f mpegts udp://[server IP]:10000?pkt\_size=1316

I followed the guide above and I’m quite surprised because when I tested the various .stream files created for each language (lang1.stream, lang2.stream , etc), I find that they work with rtmp: I get 5 streams with same video but different languages that I can play on any flash or html5 player.

:o

This is quite unexpected and wonderful.

Has there been some upgrade on the server explaining that ? I did not see anything reported on the Release Notes of the latest updates. I’m on 4.2.0 (build 15089).

Thanks.

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [December 7, 2015, 11:54pm UTC](https://community.wowza.com/t/testing-alternative-audio-or-video-feature-with-apple-hls-working-also-for-rtmp/33854/2 "2015-12-07T23:54:23Z")

</div>

Hi,

This has been possible for quite a while. Reference this [old guide](https://www.wowza.com/docs/how-to-select-mpeg-ts-stream-by-program-id-and-also-audio-language-by-pid) or this more [recent guide](https://www.wowza.com/docs/how-to-specify-per-stream-settings-in-stream-files) regarding the selection of video and audio PIDs.

The difference with HLS is that the video/audio can be selected across a smil file.

Daren

---

<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:** [December 8, 2015, 5:49pm UTC](https://community.wowza.com/t/testing-alternative-audio-or-video-feature-with-apple-hls-working-also-for-rtmp/33854/3 "2015-12-08T17:49:12Z")

</div>

> Hi,
> 
> This has been possible for quite a while. Reference this [old guide](https://www.wowza.com/docs/how-to-select-mpeg-ts-stream-by-program-id-and-also-audio-language-by-pid) or this more [recent guide](https://www.wowza.com/docs/how-to-specify-per-stream-settings-in-stream-files) regarding the selection of video and audio PIDs.
> 
> The difference with HLS is that the video/audio can be selected across a smil file.
> 
> Daren

:hello: 🙂

thanks Darren.

ok, I had presumed that the selection of programs, audio etc, in mpeg-ts was possible only for VOD (as it is for mp4). My mistake.

Another related question, it doesn’t seem possible at the moment to publish mpeg-ts over tcp with wowza? I’d rather send over tcp than udp for better reliability.

At the moment I’m considering work-arounds with ffmpeg in tcp relaying to wowza in udp, or sending udp over a vpn tunnel.

Thanks

edit: confirmation that wowza can not ingest at the time mpeg-ts over tcp. But workarounds are simple with ffmpeg
