[APPLE TV] M4V AC3/AAC Issue
#1
I've searched these forums and although I've seen some postings with some issues with AC3 I could not find anything pertaining to AC3 and the AppleTV.

Running my movies on my AppleTV through say ATVFiles, my Handbraked files play fine. Movies with an AC3 track switch my 10 yr old Yamaha receiver (hooked up through toslink cable to ATV) into Dolby Digital surround sound as soon as they start. Yet when I try to use XBMC on my AppleTV all I get is stereo sound (or no sound as detailed below).

In System/Audio Hardware I've made sure the Audio Output is set to Digital and I have both Dolby Digital (AC3) Capable Receiver and DTS Capable Receiver selected (I've also tried both separately). Audio Output device is set to Built-in Line Output (only option).

When a movie starts, and I see/hear no surround sound) I pull up the Audio setting and while the Audio Output is set to Digital the Audio Stream is set to English Stereo (w/stereo sound coming through my speakers). If I change this setting to English-AC3 5.1 I then get no sound (and my stereo indicator doesn't change either).

Other notes:
- These movies are ripped with MTR then encoded with Handbrake with the AppleTV preset including AC3 + AAC audio.
- As I said previously these play fine on both my AppleTV through my stereo in AC3 and on my MBP in stereo AAC.

Thoughts? Ideas? Thx
Reply
#2
i get the same problem too... no sound, and i double checked my settings... i am using a 720p mkv file with AAC+AC3
Reply
#3
Please post the log file located at ~/Library/Logs/xbmc.log to pastebin.com and provide a link here.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#4
http://pastebin.com/m12758444
Reply
#5
Well, haven't heard anything so I did some more digging around and stumbled on a thread on the Plex forums. Sounds like they're saying it might be a receiver issue, which I find strange as some people are able to play movies with AC3 through VLC (on a Mac) but not through Plex. Kinda like me as I'm able to get AC3 surround sound playing my movies through Sapphire and ATVFiles on my ATV but not through XBMC. So I know AC3 is doable on my ATV & receiver, it's why not with XBMC??

http://forums.plexapp.com/index.php?show...128&hl=ac3

On a side note, I believe both Sapphire and ATVFiles use QuickTime to play videos and they also use the Perian plugin. They both also have a setting you have to check to enable AC3 Passthrough within their apps.

Has anybody else had success playing a Handbraked AppleTV preset (AC3+AAC) file and get 5.1 Dolby Digital Surround Sound through their receiver? Or is this an universal issue with these files?
Reply
#6
It looks like there's definitely an issue passing through AC3/DTS specifically on the Apple TV. The issue is not related to your receiver. It needs further investigation. Most likely related to how PortAudio handles ATV's audio device.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#7
Please submit a new ticket on trac for the "[APPLE TV] AC3/DTS Digital Audio Pass-through to SP/DIF" issue http://trac.xbmc.org
http://wiki.xbmc.org/index.php?title=HOW...Bug_Report
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#8
Done

http://trac.xbmc.org/ticket/5188
Reply
#9
I believe the decoding of AC3 does infact work
The issue lies in the fact that the AAC audio is track 1 and AC3 is track 2. XBMC by default appears to be selecting track 1. Which is of course the AAC 2 channel file. We need XBMC to auto detect the AC3 file (track 2) if the Dolby Digital passthrough mode is enabled in the settings for xbmc. I have messed around with this alot and I see no way of getting XBMC by default to use track 2 without either manually selecting it while watching a movie or to reencode all my files and not have the AAC file be part of my m4v file. Or if you reencode the m4v file make sure the AC3 is track 1 and AAC is track 2. I have some movies for some reason have the AC3 as track 1 and I can tell on my reciever that its decoding the AC3 track. For all other movies if I manually select track 2 my reciever see's the AC3 track and decodes it just fine. Hope my findings will help in solving this huge problem.
Reply
#10
matt: I have tried to encode with just ac3 audio using Handbrake 0.9.2 for windows. (resulting in an mp4 file) using the Apple TV defaults + 2 pass encoding.

I have also tried encoding with Apple TV defaults (AAC + AC3 in an m4v container).

I am getting similar results to tuck. AAC track will play fine (xbmc labels it as stereo). AC3 track plays video fine, but audio is silent. Tried Digital and analog outputs with no luck.

AC3 in an .avi container plays fine.

Any other information i can provide that may help? (Using latest version of t3ch and mediastream 10-13-08)
Reply
#11
igeekus:

Have you verified that you have a good fiber optic cable connected to your receiver? Have you tested it with a DVD player? What reciever are you using to decode the audio?

I myself have actually broke the fiber cable by accidently bending it to much.
That is one thing I would try. If it works with a DVD player then I guess there is something wrong with your particurlar amp recognizing the signal. From my understanding the audio coming from the fiber optic port is a RAW AC3 signal which any reciever today should be able to decode with no problems at all.

Are their other users on here that are having the same problem as you?

Does anybody else have problems decoding AC3 from a movie when the settings on the apple tv have digital out enabled?
Reply
#12
Additionally, what version of XBMC are you using?

I see you put (Using latest version of t3ch and mediastream 10-13-08)
at the end of you reply.

Are you using xbmc beta 2 atlantis on an apple tv?
I think the t3ch versions were only released for the original xbox.
Reply
#13
Sorry... I should have been more specific....

I am currently running xbmc Atlantis Beta 2 on an original xbox connected to a standard def tv by s-video. Audio is connected to a panasonic all-in-one system via optical cable (I can get model numbers if you think that would help).

Because of this, combined with tuck's issue, I think it either has something to do with handbrake's encoding of ac3 in an mp4 or m4v container or the xbmc decoding ac3 in the mp4/m4v container properly.

We are running similar builds on different hardware. Plus if I play an avi file with ac3 5.1, it registers and plays fine. That pretty much takes the hardware out of the equation.

Am I allowed to just rename .m4v into .avi? or I could try converting it using Super? If so I could try that and see if the ac3 information is there. Not sure what the best way to help is, but let me know if you have any other questions or suggestions Smile

Thanks!!!
Reply
#14
Why are you posting this in the appletv/OSX Forum?
Should this not be posted in the original Xbox Forum?

The .avi and .m4v containers can't be interchanged. If you rename the file it will not work correctly. I have no idea why it is not working for you on the original xbox. I only have an apple TV and everything is working fine for me except for the fact that I have to select the AC3 track in order to get the surround sound working. Additionally, handbrake does not "encode" AC3 it takes the raw audio right from the DVD and puts in in the M4v file. Also XBMC does not decode the AC3 audio it passes the RAW audio from the m4v file and then the reciever does the decoding for you. Somebody in the xbmc xbox forum may be having issues that you are having. Maybe it is a bug in the xbox version of the software. I am not really sure. A developer may be able to tell you more. But you are correct in stating that if the 5.1 audio from an avi works then its not your hardware.

You may try and tweak your settings in handbrake and not use the default appletv settings. I know if you search on here or the handbrake forums you can find the recommended settings for use on the original xbox. The original xbox does not have as powerfull hardware as the appletv. If you use the appletv preset you may run into problems with frames skipping in your movies, etc.

Also, why don't you just use the avi container since its working for you? the m4v file contaner was specifically made for the appletv. (pretty much the same as the .mp4 extension).

Best option if I where you, is to use the .mkv extension because that allows for chapter support. Don't know if the chapters will work in xbmc but the mkv format allows you to do chapters which the .avi container does not. I think you can use .mkv with ac3 audio in handbrake.
Reply
#15
matthoffman Wrote:Why are you posting this in the appletv/OSX Forum?
Should this not be posted in the original Xbox Forum?

I am posting this here because tuckbodi appeared to be having the exact same issue on appletv hardware that I was having on xbox hardware.

I was just trying to help.

I'm researching this issue and encoding in m4v because I just purchased an appletv. If it was just an issue in the xbox version of the software, why is tuck having the same issue? Anyway, I thought the handbrake settings might be the issue also, but the video isn't skipping at all and I thought that might be the first to go? I dunno... it's wacky.

Thanks for the suggestion with mkv. Hopefully someone will come up with a container that takes the best of all worlds (for support, chapters, audio, etc) Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[APPLE TV] M4V AC3/AAC Issue0