• Home
  • Assertions
  • Poetry
  • Programming

Record and Reverie

General things I find interesting

Feed on
Posts
Comments
« Expensive Hotels internet access
Java in Xcode »

Limited Real AC3 Passthrough

Apr 23rd, 2008 by Graham Booker

Well, I got to fiddling around with the existing passthrough on the AppleTV. I found where it works, and where it doesn’t. AC3 passthrough does work in .mov files with 48KHz files, of any bit rate. I did this with importing a .ac3 file into .mov, and adding a video track (ATV doesn’t like playing audio only files). I still need to test 44.1KHz, and 32KHz, but they are a bit harder to find. I have still to come across one of them.

My tests did turn up one interesting fact. I spent forever trying to figure out why an .avi file I had would refuse to passthrough using Apple’s method. I eventually concluded that the difference is that the brilliant people who decided to stuff AC3 into a format never designed to handle anything of the sort, also decided that it was acceptable to destroy the whole point of the format. AC3 is comprised of a frame of data, which is entirely self contained, and must be complete to decode. AVI (and other formats), have the concept of a packet of audio data for decode. Now the “brilliant people” decided there was no need to make the packet and frame have a 1 to 1 correspondence. Result, badly packetized AC3 frames, where several frames are in a single packet, and some frames span two packets.

Apple’s passthrough requires that a packet begin with a frame, and a frame not be split across two packets. I haven’t tested multiple frames in a packet, but I really don’t care to since the above is a deal breaker. This means that Apple’s passthrough will never work with AVI files, hence commit r858 to perian. Since I figured I had nothing to loose, I filed a ticket with Apple about this issue, number 5876598. Maybe they’ll care to fix it, but since it has no bearing on the consumer AppleTV, I doubt it. Since they haven’t done anything yet about passthrough on the desktop (see my other post on this topic), I doubt they will do anything about this either.

Guess we can always hope that they will surprise us all someday.

Tags: AC3, Perian

Posted in Programming

8 Responses to “Limited Real AC3 Passthrough”

  1. on 24 Apr 2008 at 4:58 am1EndlessRuin

    I actually discovered that AC3 passthrough in xvid files had an issue this weekend when I tried to play a television show. There was a loud obnoxious buzzing sound, like a chainsaw just less appealing instead of words and sounds as I am used to encountering. It took me a while to figure out what was wrong but, eventually I narrowed it down to the AC3 audio. It was the only difference between that xvid file and other ones that had been playing correctly. However, the difference between knowing something doesn’t work and knowing why it doesn’t work is immense. Thank you for explaining the process and the problems with the different types of codecs and containers.

  2. on 25 Apr 2008 at 10:01 pm2Pipermalibu

    I am still one of the many that have had to downgrade to 7.4.1 Quicktime, to keep the passthru working on files ripped with Handbrake and having just the AC3 to get DD5.1 – As soon as 7.4.5 is applied (with Perian installed)…immediate buzzing instead of soundtrack out of the digital output on a mini. My ATV has worked with these same files all along. Now I can not play my purchased tv shows and movie selections from iTunes, because they require 7.4.5 now. ANY input would be appreciated 🙂

  3. on 25 Apr 2008 at 10:35 pm3Graham Booker

    Don’t know what to tell you, but if it worked in 7.4.1, it works in 7.4.5. Apple didn’t break anything in 7.4.5, instead they actually fixed things.

  4. on 28 Apr 2008 at 9:27 pm4NeuralSpark

    Very informative, many thanks. I’ve been trying to find a platform-neutral way to store my DVD collection, and I think this has pushed me to .mp4.

  5. on 28 Apr 2008 at 9:36 pm5Graham Booker

    Yes, .mp4 is likely the most cross platform. VLC now supports AC3 in that container. The best alternative that I know of .mkv, but that isn’t natively supported on the ATV. I have yet to test its AC3 samples to see if their frames are properly translated into packets.

  6. on 29 Apr 2008 at 7:07 pm6NeuralSpark

    VLC will play an AVI with x264 and AC3 in it (which I already have about 50 rips in, poor choice on my part) but it won’t play find the AC3 stream in a MP4…even though they were both made by Handbrake 0.9.2. Even the standard codec packs on Windows won’t find the AC3 steam. Yet Quicktime on the MacBook and ATV have no problem.

    I’m trying to avoid having to re-rip the AVIs, so I’ve investigated using VLC to transcode them but it complains about putting AC3 into a MP4, I think this is because the ISO has deemed AC3 an unsupported format for the MP4 standard, but that’s just an educated guess.

    I played some with ffmpeg on Linux, trying to straight copy the x264 and AC3 streams from the AVIs into a MP4, but it messes up the timecodes and nothing will play it.

  7. on 30 Apr 2008 at 2:46 pm7Pipermalibu

    Graham, are you saying that you have no problem with a handbrake ripped 0.9.2 DVD that has ONLY the AC3 stream in it? Mine are .M4V files. Again on 7.4.1 plays them fine, but 7.4.5 plays just hash.
    Several others are reporting the same… any ideas?

  8. on 30 Apr 2008 at 9:58 pm8Graham Booker

    Guys, in this post I was talking about the AppleTV, as clearly stated by the first sentence. The ATV has QT 7.1, not 7.4.x. It is also a completely different animal when it comes to AC3. Nothing in this post has any bearing to playing files on a Mac.

  • Recent Posts

    • Fighting with Sync by Microsoft
    • How to Not Recruit
    • Thrashing Server
    • Firewall Ban Activated
    • Turn the Firewall Around
    • Decline of Local Bookstores
  • Archives

    2022
    April 2022 (1)
    2021
    May 2021 (1)August 2021 (1)
    2020
    March 2020 (1)
    2019
    November 2019 (1)
    2018
    June 2018 (1)July 2018 (1)December 2018 (1)
    2017
    January 2017 (2)June 2017 (1)August 2017 (1)
    2016
    June 2016 (1)August 2016 (1)
    2015
    January 2015 (1)February 2015 (1)December 2015 (1)
    2014
    June 2014 (1)July 2014 (1)August 2014 (2)
    2013
    February 2013 (2)March 2013 (1)April 2013 (1)June 2013 (1)November 2013 (1)
    2012
    April 2012 (2)May 2012 (1)June 2012 (1)November 2012 (1)
    2011
    January 2011 (1)October 2011 (1)November 2011 (1)December 2011 (1)
    2010
    February 2010 (2)April 2010 (1)June 2010 (1)July 2010 (1)August 2010 (1)September 2010 (1)October 2010 (2)December 2010 (3)
    2009
    January 2009 (1)February 2009 (1)March 2009 (2)May 2009 (1)July 2009 (3)September 2009 (1)
    2008
    January 2008 (1)February 2008 (4)March 2008 (1)April 2008 (6)May 2008 (1)June 2008 (3)August 2008 (1)September 2008 (2)October 2008 (2)December 2008 (1)
    2007
    January 2007 (1)February 2007 (4)March 2007 (5)April 2007 (4)May 2007 (1)June 2007 (6)August 2007 (3)September 2007 (3)November 2007 (3)December 2007 (4)
    2006
    January 2006 (4)February 2006 (10)March 2006 (4)April 2006 (6)May 2006 (2)June 2006 (4)July 2006 (1)August 2006 (1)September 2006 (4)October 2006 (6)November 2006 (3)December 2006 (3)
    2005
    October 2005 (6)November 2005 (13)December 2005 (1)
    2004
    February 2004 (2)March 2004 (1)April 2004 (1)May 2004 (6)June 2004 (6)July 2004 (3)August 2004 (2)September 2004 (1)November 2004 (5)
    2003
    September 2003 (1)October 2003 (3)November 2003 (1)December 2003 (1)
  • Categories

    • Breakaway (5)
    • Family (4)
    • Friends (2)
    • General (151)
    • Nature Pictures (8)
    • Politics (2)
    • Programming (41)
    • School (11)
    • SysAdmin (8)
    • Teaching (2)
  • Tags

    AC3 Ads Code Frontrow Java Objective-C Open Source Perian Perl permissions plex plugin RSS Sapphire School Servers ZFS

  • Pages

    • Assertions
      • Female Friends Who Won’t Date You
      • Not Dating Friends
    • Poetry
      • Curtis Staying Over
      • Girl Questions
      • Scaring Girls Off
      • Summer’s End
    • Programming
      • Fire Development
      • Kyocera Ringtone Converter for the Mac
      • Perian
      • Text Compression

Record and Reverie © 2022 All Rights Reserved.

WordPress Themes | Web Hosting Bluebook