Newsroom Update

Apple is introducing a new Apple Watch Pride Edition Braided Solo Loop, matching watch face, and dynamic iOS and iPadOS wallpapers as a way to champion global movements to protect and advance equality for LGBTQ+ communities. Learn more >

Announcement

Introducing the iPad Pro with Apple M4 chip, the redesigned iPad Air in two sizes, and the all‑new Apple Pencil Pro. Watch the event >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how can I play video with multiple audio tracks on iOS?

Hi,


Suppose I have a video track with multiple alternate audio tracks (say for different languages), how can I play this on a native iOS player?


Thanks,

Apurva

iPhone 4S, iOS 5

Posted on Jun 5, 2012 11:49 PM

Reply
12 replies

Jun 6, 2012 6:27 AM in response to Menneisyys

It is .ts format. I have created an m3u8 as so :

#EXTM3U

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",DEFAULT=YES,AUTOSELECT=YES ,LANGUAGE="en",URI="http://<ip>/alternate/prog_index.m3u8"

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsche",DEFAULT=NO,AUTOSELECT=YES ,LANGUAGE="de",URI="http://<ip>/alternate2/prog_index.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=150000,AUDIO="aac"

http://<ip>/low/prog_index.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=65000

http://<ip>/alternate/prog_index.m3u8


It's playing the selected tag but not giving me the option to select the alternate2 track.


I'm playing this in safari. Requesting for the Set-level m3u8

Jun 6, 2012 6:33 AM in response to apurva0612

Use GoodPlayer unless it's a Full HD stream. GP has the best TS support, including changing the audio track. (Make sure you wipe from let to right - or vica versa - while playing to change the track.)


If it's a Full HD video, then, currently, no player will play it back correctly. TS is a very scarcely supported container and needs to be converted. Let me know if it's Full HD.


BTW, we've discussed TS file playback at https://discussions.apple.com/thread/3968958?answerId=18462843022#18462843022&ac_cid=tw123456#18462843

Jun 6, 2012 6:40 AM in response to apurva0612

My problem is not playback of .ts files. That is happening fine. My problem is if I have a video with alternate audio tracks can Safari/Quicktime play this? If yes how does the user select which audio file to play?

Currently Safari is just playing the first audio stream mentioned. Where can the user select the audio stream?

Also, can this be done with HLS? If yes, how should the Set level manifest look like?


Thanks!

Jun 6, 2012 6:58 AM in response to apurva0612

If you dowload the file (can you download, or only stream?), then, better players (including the stock Videos) will be able to select between the tracks in MP4 files.


There's a complete section on all these q's at http://www.iphonelife.com/blog/87/review-multimedia-player-playerxtreme (look for the paragraphs starting with "M4V's with more than one audio track").


If you can't directly download, enter the URL in GoodPlayer. Hopefully it WILL be able to download the file instead of just streaming it. Then, you'll be able to play it in any player capable of track switching.

Jun 6, 2012 7:26 AM in response to apurva0612

apurva0612 wrote:


Quick time is not recognizing the alternate audio tracks when I use the set-level manifest as mentioned above.

This is why I asked about downloading the videos (if possible). THEN, it will be able to switch.


Did you try the bilingual video linked from the above article? http://dl.dropbox.com/u/13100693/html/042012RetinaHDVideoPlayers/2AACAudioAndMan ySubs.mov

how can I play video with multiple audio tracks on iOS?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.