Kodi Community Forum

Full Version: [APPLE TV] M4V AC3/AAC Issue - Still even with Dharma
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm still getting the same M4V AC3/AAC issue as posted about a year ago where the M4V's are encoded with both 2-channel AAC and 6-channel AC3 pass-through audio tracks only display as 2.0 in the skin interface icons, and when played, are only playing the AAC 2-channel audio.

I've verified that I have proper audio tracks in my M4V with mediainfo:
Code:
Audio #1
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1h 26mn
Bit rate mode                    : Variable
Bit rate                         : 160 Kbps
Maximum bit rate                 : 327 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Stream size                      : 99.0 MiB (9%)
Language                         : English
Encoded date                     : UTC 2010-11-27 10:16:30
Tagged date                      : UTC 2010-11-27 11:32:28

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : ac-3
Duration                         : 1h 26mn
Bit rate mode                    : Constant
Bit rate                         : 448 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 277 MiB (24%)
Language                         : English
Encoded date                     : UTC 2010-11-27 10:16:30
Tagged date                      : UTC 2010-11-27 11:32:28

But when I run XBMC it only shows Dolby Digital 2.0 channels in the interface, and the xbmc.log skips the pass-through audio track:
Code:
17:05:16 T:52663296 M: 13905920  NOTICE: Opening audio stream: 1 source: 256
17:05:16 T:52663296 M: 13897728  NOTICE: Finding audio codec for: 86018
17:05:16 T:52663296 M: 13873152   ERROR: CDVDAudioCodecPassthroughFFmpeg::Open - FFmpeg SPDIF muxer does not support this codec
17:05:16 T:52663296 M: 13074432  NOTICE: Creating audio thread
17:05:16 T:53877248 M: 13070336  NOTICE: running thread: CDVDPlayerAudio::Process()
17:05:16 T:52663296 M: 13070336  NOTICE: Opening Subtitle stream: 3 source: 256
17:05:16 T:52663296 M: 13062144   ERROR: OpenStream - Unable to init overlay codec
17:05:16 T:52663296 M: 13062144 WARNING: OpenSubtitleStream - Unsupported stream 3. Stream disabled.
17:05:16 T:53330944 M: 13058048  NOTICE: running thread: video_thread
17:05:16 T:53330944 M: 11038720  NOTICE:  fps: 25.000000, pwidth: 720, pheight: 480, dwidth: 719, dheight: 405
17:05:16 T:53330944 M: 11034624  NOTICE: Display resolution DESKTOP : 1280x1080 @ 60.00 - Full Screen (12)
17:05:16 T:53877248 M: 11034624  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 48000, no pass-through

I have the outputs set to digital audio, 5.1, etc. and it plays the audio just fine, but I can never get it to play the pass-through 5.1 audio track, period. These have all been encoded with the latest HandBrake using the AppleTV preset.

What gives? Can someone please shed some light here?
Once again...XBMC only reads the 1st audio track when determining which flag to display. If you want the AC3 to display, stop using the AppleTV Preset or edit it to only include the AC3 track.

As far as playing the AC3 track, you have to go to the OSD and chose the 2nd audio track. This has nothing to do with the system settings.
Ok, I can understand the display portion issue, but why is the playback not using the pass-through audio track? Is XBMC hard-coded to only display and playback the first audio track only?
Also, where in the documentation for XBMC does it explicitly say only the 1st audio track information is displayed? I have searched and searched on this issue and could not find any information regarding this problem.
sceaga Wrote:Ok, I can understand the display portion issue, but why is the playback not using the pass-through audio track? Is XBMC hard-coded to only display and playback the first audio track only?

Have you tried selecting the second audio track whilst its playing?

Personally, if ripping something where i want multiple audio tracks, i make sure the first track is my main audio track - i.e the raw dts/ac3 track, and the second track is mp3/etc...
Ok, now I have to ask a stupid question, please forgive me: How do I select a different audio track whilst playing on an AppleTV XBMC setup?

I understand your methodology for making the 1st track the main pass-through audio track, and the 2nd the AAC encoded one. I wish I would have know this was an issue before I started encoding, as I think I'm going to have to go back and re-encode the 150 or so movies I've completed already to fix this. Bummer. Sad

Thanks for the help!

PS - It's too bad the HandBrake preset for AppleTV doesn't make the pass-through the 1st audio track ... DOH!
Ok, so I went and re-encoded a single chapter of a movie and reversed the audio tracks order. So the file looks like this now:
Code:
Audio #1
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : ac-3
Duration                         : 20s 832ms
Bit rate mode                    : Constant
Bit rate                         : 448 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 1.11 MiB (32%)
Language                         : English
Encoded date                     : UTC 2010-11-30 18:33:55
Tagged date                      : UTC 2010-11-30 18:34:05

Audio #2
ID                               : 3
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Codec ID                         : 40
Duration                         : 20s 842ms
Bit rate mode                    : Variable
Bit rate                         : 185 Kbps
Maximum bit rate                 : 238 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Stream size                      : 472 KiB (13%)
Language                         : English
Encoded date                     : UTC 2010-11-30 18:33:55
Tagged date                      : UTC 2010-11-30 18:34:05

I then placed this new encoding into my library and scanned it in. The icon still shows only Dolby Digital 2.0.

What gives?
Please note, with the swapped audio tracks, the audio does now automatically play the 6 channel pass-through audio now:
Code:
11:46:17 T:2953850880 M:725229568  NOTICE: Opening audio stream: 1 source: 256
11:46:17 T:2953850880 M:725229568  NOTICE: Finding audio codec for: 86020
11:46:17 T:2953850880 M:725225472  NOTICE: Creating audio thread
11:46:17 T:2959171584 M:725213184  NOTICE: running thread: CDVDPlayerAudio::Process()
11:46:17 T:2959171584 M:725204992  NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through

But the display still does not show 5.1 like it should. I'm either missing something here, or there is still some sort of bug with the skins and audio track display. I cannot get this to work right.

I'm going to try creating one with only the pass-through 6 channel audio track and see if the skin works properly with a single track (however, even if it does work, I don't like the idea of encoding these with only one audio track, as it prevents portability on playback from my laptop).
Nope, no luck with the single pass-through audio track. The skins still report only Dolby Digital 2.0, but playback does the proper thing.

Why is the skin not showing the proper Dolby Digital 5.1 tags?
Additional note, this problem of not displaying 5.1 in the info is also occurring on my MacBook Pro as well. This is not limited to the AppleTV.
Have you tried deleting the file from the library and rescanning? The library won't know you've changed the encoding unless it rescans...
Oh, yes, definitely. I have been very careful to remove the entry before updating and rescanning it in. I've verified that my steps are working, as I can put in a file that has just the AAC audio track instead and the display tag changes from Dolby Digital 2.0 to AAC 2.0.

I cannot for the life of me get XBMC to display the 6 channel icon at all.
If I encode the movie with AAC 6ch the skin will then show AAC 5.1, but I cannot get any AC3 6-channel pass-through audio track to list as AC3 5.1 / Dolby Digital 5.1. I've tried all available skins as well, so I know this is not a skin problem, it's something with the way XBMC is reading the media audio track information.

Does anyone have this working?
Works for me; both AC3 and DTS
D-Tyme: Then can you tell what I'm doing wrong or what you've done differently than what I show? Are you using an AppleTV/Mac build of XBMC also? Are you using single or dual audio tracks?
Pages: 1 2