Bug 4876 - AAC support broken with OSX 10.4.9 upgrade
: AAC support broken with OSX 10.4.9 upgrade
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.5.1
: Macintosh MacOS X 10.4
: P2 major (vote)
: ---
Assigned To: Spies Steven
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-29 06:35 UTC by Lewis Tsalis
Modified: 2012-02-27 17:33 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Sample of affected AAC encoded file (606.74 KB, application/octet-stream)
2007-03-29 06:37 UTC, Lewis Tsalis
Details
Log with only AAC format *on* (99.91 KB, text/plain)
2007-03-30 08:17 UTC, Lewis Tsalis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lewis Tsalis 2007-03-29 06:35:29 UTC
A few weeks ago I upgraded from OSX 10.4.8 to 10.4.9. With this upgrade I've found that all my AAC encoded (unencrypted) files produce nothing but static when played through my SB3 and SoftSqueeze. These same files worked before the upgrade. The files sound fine if I play them through iTunes or QuickTime player. FYI my MP3 encoded files play just fine.

I will attach a small m4a file that worked with OSX 10.4.8. The same file with OSX 10.4.9 plays only static.

iTunes v7.1.1
QuickTime v7.1.5
SlimServer v6.5.1
SB3 Firmware v72
Mac OSX 10.4.9

Below is a typical debug log when playing these AAC files.
---------------------------
2007-03-20 01:03:36.7615 Found command: [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-03-20 01:03:36.7620 Matched Format: flc Type: mov Command: [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - 
2007-03-20 01:03:36.7624 playing out before starting next song. (old format: flc, new: flc)
2007-03-20 01:03:36.7626 00:04:20:07:31:fa: Switching to mode playout-play from play
2007-03-20 01:03:36.7635 00:04:20:07:31:fa New play mode: playout-play
2007-03-20 01:03:36.7657 00:04:20:07:31:fa: Current playmode: playout-play
2007-03-20 01:03:36.7665 No pending chunks - we're dropping the streaming connection
2007-03-20 01:03:36.7676 00:04:20:07:31:fa: Can't opennext, returning no chunk.
2007-03-20 01:03:56.1607 00:04:20:07:31:fa: Decoder underrun while this mode: playout-play
2007-03-20 01:03:56.1614 the next song is number 9, was 8
2007-03-20 01:03:56.1622 **skipahead: opening next song
2007-03-20 01:03:56.1628 opening next song...
2007-03-20 01:03:56.1636 the next song is number 9, was 8
2007-03-20 01:03:56.1647 undermax = 1, type = mov, squeezebox2 = 00:04:20:07:31:fa
2007-03-20 01:03:56.1653 checking formats for: mov-wma-squeezebox2-00:04:20:07:31:fa
2007-03-20 01:03:56.1657 checking formats for: mov-wma-*-00:04:20:07:31:fa
2007-03-20 01:03:56.1659 checking formats for: mov-wma-squeezebox2-*
2007-03-20 01:03:56.1661 checking formats for: mov-wma-*-*
2007-03-20 01:03:56.1663 checking formats for: mov-ogg-squeezebox2-00:04:20:07:31:fa
2007-03-20 01:03:56.1665 checking formats for: mov-ogg-*-00:04:20:07:31:fa
2007-03-20 01:03:56.1666 checking formats for: mov-ogg-squeezebox2-*
2007-03-20 01:03:56.1668 checking formats for: mov-ogg-*-*
2007-03-20 01:03:56.1672 checking formats for: mov-flc-squeezebox2-00:04:20:07:31:fa
2007-03-20 01:03:56.1674 checking formats for: mov-flc-*-00:04:20:07:31:fa
2007-03-20 01:03:56.1677 checking formats for: mov-flc-squeezebox2-*
2007-03-20 01:03:56.1681 checking formats for: mov-flc-*-*
2007-03-20 01:03:56.1683 Checking to see if mov-flc-*-* is enabled
2007-03-20 01:03:56.1685 enabled
----------------------------------
Comment 1 Lewis Tsalis 2007-03-29 06:37:39 UTC
Created attachment 1891 [details]
Sample of affected AAC encoded file
Comment 2 Spies Steven 2007-03-29 10:26:45 UTC
Lewis, I was not able to reproduce the problem you describe here. Are you using a PowerPC based Mac perhaps? I only have access to a Intel based Mac at the moment. In the mean time you may want to try changing some of the File Types options in Server Settings to see if it makes a difference. The "Apple AAC, Lossless or Movie File" would be the ones to change. I suggest leaving only AIFF checked and turing on d_source in Debugging and then try playing the track again. This will at least take LAME and FLAC out of the picture. You may also want to attach the new log to this bug.
Comment 3 Spies Steven 2007-03-29 12:17:07 UTC
Just tried with a PowerPC based Mac and was not able to reproduce. As a long shot have you tried Repair Disk Permissions from Disk Utility?
Comment 4 Lewis Tsalis 2007-03-30 08:16:30 UTC
Yes, have repaired permissions, reinstalled SlimServer, trashed prefs and caches, deleted and rescanned music library. Static remains in AAC files. Also tried your other suggestion of disabling file types. The only *on* format was Apple AAC, Lossless or Movie File--AIFF--mov123. Still static only. I'll attached a text file of the log. See if that offers any clues as to what's going on. Thanks.
Comment 5 Lewis Tsalis 2007-03-30 08:17:59 UTC
Created attachment 1892 [details]
Log with only AAC format *on*
Comment 6 Spies Steven 2007-03-30 12:51:54 UTC
Lewis, would you be willing to run the transcoding command in the terminal to try to isolate the problem? To do this, run terminal from the utilities folder on your mac. Then paste in the following command I created from your log into the terminal window on one line and hit return. Be sure to include the quotes:

"/Users/lewist/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov123" "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.m4a" > "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.pcm"

This should create a raw pcm file in the same folder as the original file. You can change the command to use a different file if you wish. Then we can open the file and check for static. You can do this by using the free program Audacity, starting a new project and using the Import Raw Data option under the Project menu and using the default options when opening the pcm file. You can get Audacity here: http://audacity.sourceforge.net/ otherwise you can attach the raw pcm file to this bug if you wish.
Comment 7 Lewis Tsalis 2007-03-31 07:30:21 UTC
Is the ">" character supposed to end the second line?

If it is then I get the following response in Terminal:

Last login: Sun Apr  1 00:17:25 on ttyp2
Welcome to Darwin!
Lewis-Mac:~ lewist$ "/Users/lewistsalis/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov123"
Bus error
Lewis-Mac:~ lewist$ "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.m4a" >
-bash: syntax error near unexpected token `newline'
Lewis-Mac:~ lewist$ "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.pcm"
-bash: /Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.pcm: No such file or directory
Lewis-Mac:~ lewist$ 



If I remove the ">" character I get:

Last login: Sun Apr  1 00:17:13 on ttyp1
Welcome to Darwin!
Lewis-Mac:~ lewist$ "/Users/lewist/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov123"
Bus error
Lewis-Mac:~ lewist$ "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.m4a"
-bash: /Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.m4a: Permission denied
Lewis-Mac:~ lewist$ "/Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.pcm"
-bash: /Documents/iTunes Music/Compilations/Gold/08 The Winner Takes It All.pcm: No such file or directory
Lewis-Mac:~ lewist$

Either way no pcm file is produced.
Comment 8 Spies Steven 2007-03-31 08:24:00 UTC
Sorry Lewis, the very long command needs to be all on one line but was broken up by bugzilla. So it should look like this in the terminal:

"path to mov123" "path to m4a" > "path to pcm"

Once entered on a single line in the terminal hit return and it should produce the pcm file. I really appreciate your patients while we try and diagnose the issue.
Comment 9 Lewis Tsalis 2007-03-31 08:53:10 UTC
Thanks for your patience!! I read again comment #6 and you did say to put it all on one line. Sorry about that. Well, it did produce a PCM file this time. Running it through Audacity produces a static free clean file. What does that mean?

Just for a laugh I reinstalled OSX 10.4.8 and SlimServer on another volume and loaded my iTunes muisc library. Playing the AAC files through SB3 produces clean static free files. Maybe the solution is to do just that -- revert to 10.4.8.
Comment 10 Spies Steven 2007-04-02 10:04:04 UTC
Lewis, since you were able to successfully transcode the ACC file means that the static is being introduced somewhere else in the process. Reverting to Mac OS X 10.4.8 is not an ideal solution and not always easy to do. Have you tried updating your new working build of 10.4.8 to 10.4.9? Have you tried a nightly version of SlimServer?
Comment 11 Lewis Tsalis 2007-04-13 05:59:01 UTC
(In reply to comment #10)
> Lewis, since you were able to successfully transcode the ACC file means that
> the static is being introduced somewhere else in the process. Reverting to Mac
> OS X 10.4.8 is not an ideal solution and not always easy to do. Have you tried
> updating your new working build of 10.4.8 to 10.4.9? Have you tried a nightly
> version of SlimServer?
> 
I downloaded a nightly build (SlimServer_6.5_v2007-04-10). My firmware also needed updating after installing the nighlty build -- up from v72 to v81. Reimported my library and the static in AAC was still there. If I have time this weekend I'll upgrade my fresh copy of 10.4.8 to 10.4.9 and see if that fixes things.
Comment 12 Lewis Tsalis 2007-06-29 21:56:14 UTC
Issue is resolved. The problem was a bug with the iWow plug-in for iTunes. More specifically the iTea component. See response below:

----------------------------------
iTea is part of iWOW that enables it to work inside of iTunes. We (Rogue Amoeba) provide it to SRS, and they provide the rest of the plugin (the user interface, audio processing, etc).
Today we looked into this bug, and we believe we have found both the cause and a solution for it. Thankfully SlimDevices had provided us with SqueezeBoxes in the past, so it was easy for us to track down.
The short of it is, debugging versions of iWOW (or any iTea-powered product) would corrupt the output of "mov123", causing invalid audio to be sent on the SqueezeBox. 
We've sent off the permanent fix to SRS, so hopefully you can contact them sometime next week and they'll have a new build of iWOW for you to use. A temporary fix also exists, by setting the "iTeaDebugging" flag in the Info.plist file to false.
- Quentin D. Carnicelli, Software Engineer, Rogue Amoeba Software, LLC

----------------------------------
Comment 13 Spies Steven 2007-07-02 09:15:49 UTC
This is fantastic news!  I'm curious, how did you figure out it was the iWOW plug-in for iTunes?
Comment 14 Lewis Tsalis 2007-07-03 05:15:09 UTC
Joe Barrett on the Slim Devices forums identified the iWow plug-in as the source of the problem. I just did a bit of snooping and found that an earlier version of iWow worked fine (v1.1.3). Version history showed that iTea was really the only significant change to the version that stopped working. I contacted SRS with the news. They said they were not aware of any issues and would have an engineer look into it. And then we have the reply from Rogue Amoeba with the fix.

Link to forums regarding this issue: http://forums.slimdevices.com/showthread.php?p=211633#post211633
Comment 15 James Richardson 2012-02-27 17:33:34 UTC
Closing resolved bugs - if you feel this bug still exists please first re-test
with the latest SW/FW version.  If you are able to reproduce then feel free to
reopen and attach new logs / steps to reproduce.