How to Play a File with Two Audio Tracks: DTS & AC3 on i.MX6/Android

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Play a File with Two Audio Tracks: DTS & AC3 on i.MX6/Android

How to Play a File with Two Audio Tracks: DTS & AC3 on i.MX6/Android

Overview:

This document is written for Freescale customers who have Freescale AC3 release packages (excluded package). (If you did not have the AC3 release package, you can disregard this document.)

Freescale OMX Player in Android release supports audio track selection when playing files with multiple audio tracks. However, most customers don't use this enhanced API to select the audio track even if current audio codec is not supported. To avoid a soundless output when partial audio track can be played, this document provides the method to select the available audio track automatically to play. The patch in this document is not included in our current release because it did not match with our track selection rule - play the first track.

If you have any idea with this issue, feel free to add comments into this document.

Issue description:

Software: R13.4-GA or R13.4.1 Android releases

Hardware: MX6Dual/Quad SabreSD board

Test source: 1.mkv

Test Step:

1. Lunch Gallery from main menu.

2. Play the video And you can see the watch the video without any sound

Root Reason:

The file has 2 audio track DTS & AC3: audio track 1 is DTS and track 2 is AC3. OMX Player will choose the first audio track to play as default audio track, which is DTS audio. However, the software only supports the AC3 audio codec, so it could not set up audio decoder for DTS track. If we choose to play the AC3 track, sounds could be heard.

How to fix:

The audio track index is set in GMPlayer::LoadParser().

You can get audio format to check whether it is supported by decoder.

Please see the patch audio_track_slection.diff

Labels (3)
Attachments
Comments

1. can you change the title to "How to play a file  with 2 audio tracks:DTS & AC3 on i.MX6x/Android"

2. Please let reader knows that we post this on the community because we will not include this in our mainline or the future release, and explain why.

3. Please highlight that this can only work for customers has our AC3 release (excluded package)

From: Mark ARCEDERA [mailto:mark.arcedera@pciltd.com.sg]
In https://community.freescale.com/docs/DOC-94116, it mentions:

Freescale OMX Player in Android release supports audio track selection when playing files with multiple audio tracks. However, most customers don't use this enhanced API to select the audio track even if current audio codec is not supported

I cannot find a sample usage of this enhanced API. Can you help find out how we can use this to select audio tracks.

I’m not after the patch described by the forum (which modifies the android player to automatically select a valid audio track). I’m looking at using the enhanced API mentioned that supposedly selects manually the audio track

Thanks

Version history
Revision #:
1 of 1
Last update:
‎02-21-2013 10:56 PM
Updated by: