PDA

View Full Version : Apple Lossless (.m4a) files don't play?



forddonald
2007-06-14, 20:09
OK, strange behavior from SServer regarding Apple Lossless file playback. Here's what I see:

Under GA release v6.5.2, a file chosen to play from the SqueezeBox UI will cue up and appear to be ready to play, but no audio emerges and the countdown timer doesn't decrement. If I leave it, it seems to just sit there for about the length of time the song would be, then move on to the next one, and do the same thing (cue but play nothing).

So, I try a nightly build of v6.5.3. Different stuff: I cue an album to play, it cues up the first song an immediatly skips on to the next one, and the next, until it's reached the end of the album, and displays 'stopped'.

I try the same thing from SoftSqueeze, and get the same results (but very rapidly; 15 songs cued and skipped in a second). These same files, from the same source, play nicely in iTunes, QuickTime Player and Fission.

Some details, if they help:

SlimServer is Mac OS X 10.4.9 via a mini, files are all .m4a made by Audio Hijack Pro, stored on Infrant NAS. One album is iTunes Plus DRM-free upgraded.

Any thoughts?

alZmtbr
2007-06-14, 20:16
Ya got your volume turned up?

How are you connected to your stereo? Analog RCA's or thru an external DAC?

A mystery to solve -- good luck!

~A

forddonald
2007-06-15, 07:20
SqueezeBox is set up and working nomally. All the FLACs play as expected. The only difference is if I cue one of these .m4a files, nothing happens. It *looks* like it wants to play, and under v6.5.2 acts as if it is playing (but no progress on the progress bar or time change).

Just checked, and the Mac mini has QuickTime 7.1.6 installed. I seem to remember this all working fine before Apple's latest QT update, but I couldn't say for sure.

Siduhe
2007-06-15, 07:54
Maybe try turning on the debugging flag 'd_formats', open up the log file, and then line up a few files to play.

The output in the logfile may give you a better idea what is happening, or you can post it here.

Have you ever got these files to play before via SB? I don't know Audio Hijack Pro, it is possible it puts some kind of restriction on the files (like WMP does for its 'secure' ripping) ?

Are the AAC files stored separately from the FLACs ? Couldn't be a permissions issue at all?

alZmtbr
2007-06-15, 10:08
If you haven't indicated "use iTunes" then does SS know enough to use quicktime to transcode the m4a files?

~A

bpa
2007-06-15, 10:25
The mov123 app used to decode aac/m4a file is linked into the Quicktime libraries and has nothing to do with "use iTunes" checkbox.

mmonacel
2007-06-15, 13:38
This is probably related to the issue I was having: [Bug 4019] SB2 plays wrong track ,says it's playing correct track.

The issue there is that the file length is too long and is unsupported by SlimServer (only for m4a files though). Try to copy your files to c:\temp, add them to your library and see if they play.

forddonald
2007-06-16, 13:35
OK, an update: I was wong before; iTunes Plus non-DRM files play correctly. These are 128k files updated via the iTunes Plus update offer to 256k, plucked right out of the iTunes Library directory and copied to the directory (on the NAS) where all audio files for SqueezeBox are stored. I don't distinguish between file types in the Music directory (so permissions, access, etc is all the same).

Turning on 'd_format' debug sounds like a good try, but doing so yeilds no additional output in the log file. I've reverted back to GA v6.5.2 for testing, as I want to catch the bug (should there be one) in the release version. I've tried cueing up working and non-working files with 'd_format' on, and nothing. Perhaps this means there no format issue here at all?

Just for S&G I turned on the v6.5.2 SlimServer module on the Infrant box and pointed a SqueezeBox at it rather than the Mac. Same testing approach as above, with identical results. Since there's no QuickTime installed on the NAS OS, this leads me more towards a file-related issue rather than a serving lib or connector issue.

The thing I can't justify is why these same files play normally via desktop apps and not via SlimServer? If the files are bad, or locked in some way, why would QuickTime Player play it?

Audio Hijack Pro is a handy tool for capturing audio streams in a Mac and producing a sound file from it. Lots of folks use it to create DRM-free sound files from iTunes Store masters. Check it out at rogueamoeba.com.

forddonald
2007-06-16, 13:49
After some searching, I tried turning on debug mode 'd-source' and I finally got some results in the log file.

Here's what I get when playing a .m4a non-DRM file from iTunes Plus (audio plays normally via Squeezebox):

2007-06-16 15:43:17.8141 openSong on: file:///Volumes/media/Music/The%20Specials/01%20A%20Message%20to%20You%20Rudy.m4a
2007-06-16 15:43:17.8149 openSong: duration: [173] size: [5521993] endian [] offset: [0] for file:///Volumes/media/Music/The%20Specials/01%20A%20Message%20to%20You%20Rudy.m4a
2007-06-16 15:43:17.8159 undermax = 1, type = mov, squeezebox2 = 00:04:20:06:f5:db
2007-06-16 15:43:17.8161 checking formats for: mov-wma-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:43:17.8162 checking formats for: mov-wma-*-00:04:20:06:f5:db
2007-06-16 15:43:17.8162 checking formats for: mov-wma-squeezebox2-*
2007-06-16 15:43:17.8163 checking formats for: mov-wma-*-*
2007-06-16 15:43:17.8163 checking formats for: mov-ogg-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:43:17.8163 checking formats for: mov-ogg-*-00:04:20:06:f5:db
2007-06-16 15:43:17.8164 checking formats for: mov-ogg-squeezebox2-*
2007-06-16 15:43:17.8164 checking formats for: mov-ogg-*-*
2007-06-16 15:43:17.8165 checking formats for: mov-flc-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:43:17.8165 checking formats for: mov-flc-*-00:04:20:06:f5:db
2007-06-16 15:43:17.8166 checking formats for: mov-flc-squeezebox2-*
2007-06-16 15:43:17.8166 checking formats for: mov-flc-*-*
2007-06-16 15:43:17.8167 Checking to see if mov-flc-*-* is enabled
2007-06-16 15:43:17.8168 enabled
2007-06-16 15:43:17.8169 Found command: [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-06-16 15:43:17.8170 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-06-16 15:43:17.8171 openSong: this is an mov file: file:///Volumes/media/Music/The%20Specials/01%20A%20Message%20to%20You%20Rudy.m4a
2007-06-16 15:43:17.8171 file type: mov format: flc inrate: 249 maxRate: 0
2007-06-16 15:43:17.8172 command: [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-06-16 15:43:17.8180 Using command for conversion: "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov123" "/Volumes/media/Music/The Specials/01 A Message to You Rudy.m4a" | "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/flac" -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - & |
2007-06-16 15:43:17.8259 openSong: Streaming with format: flc
2007-06-16 15:43:17.8433 00:04:20:06:f5:db New play mode: play
2007-06-16 15:43:17.8526 00:04:20:06:f5:db: Current playmode: play
2007-06-16 15:43:18.2232 Got a track starting event
2007-06-16 15:43:18.2237 Song 0 has now started playing
2007-06-16 15:43:18.2254 Song queue is now 0

---*****----
End of dump
---*****----

Here's what I see when trying to play a problem song (cues normally but no audio or progress):

2007-06-16 15:44:18.7734 openSong on: file:///Volumes/media/Music/The%20English%20Beat/Beat%20This!%20The%20Best%20of%20The%20English%20B eat/01%20Mirror%20In%20The%20Bathroom.m4a
2007-06-16 15:44:18.7741 openSong: duration: [186] size: [18837676] endian [] offset: [0] for file:///Volumes/media/Music/The%20English%20Beat/Beat%20This!%20The%20Best%20of%20The%20English%20B eat/01%20Mirror%20In%20The%20Bathroom.m4a
2007-06-16 15:44:18.7747 undermax = 1, type = mov, squeezebox2 = 00:04:20:06:f5:db
2007-06-16 15:44:18.7749 getConvertCommand: track is alac - updating type!
2007-06-16 15:44:18.7750 checking formats for: alc-wma-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:44:18.7750 checking formats for: alc-wma-*-00:04:20:06:f5:db
2007-06-16 15:44:18.7750 checking formats for: alc-wma-squeezebox2-*
2007-06-16 15:44:18.7751 checking formats for: alc-wma-*-*
2007-06-16 15:44:18.7751 checking formats for: alc-ogg-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:44:18.7752 checking formats for: alc-ogg-*-00:04:20:06:f5:db
2007-06-16 15:44:18.7752 checking formats for: alc-ogg-squeezebox2-*
2007-06-16 15:44:18.7753 checking formats for: alc-ogg-*-*
2007-06-16 15:44:18.7753 checking formats for: alc-flc-squeezebox2-00:04:20:06:f5:db
2007-06-16 15:44:18.7754 checking formats for: alc-flc-*-00:04:20:06:f5:db
2007-06-16 15:44:18.7754 checking formats for: alc-flc-squeezebox2-*
2007-06-16 15:44:18.7754 checking formats for: alc-flc-*-*
2007-06-16 15:44:18.7755 Checking to see if alc-flc-*-* is enabled
2007-06-16 15:44:18.7756 enabled
2007-06-16 15:44:18.7756 Found command: [alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-06-16 15:44:18.7757 Matched Format: flc Type: alc Command: [alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-06-16 15:44:18.7758 openSong: this is an alc file: file:///Volumes/media/Music/The%20English%20Beat/Beat%20This!%20The%20Best%20of%20The%20English%20B eat/01%20Mirror%20In%20The%20Bathroom.m4a
2007-06-16 15:44:18.7758 file type: alc format: flc inrate: 790 maxRate: 0
2007-06-16 15:44:18.7759 command: [alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
2007-06-16 15:44:18.7766 Using command for conversion: "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac" "/Volumes/media/Music/The English Beat/Beat This! The Best of The English Beat/01 Mirror In The Bathroom.m4a" | "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/flac" -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - & |
2007-06-16 15:44:18.7848 openSong: Streaming with format: flc
2007-06-16 15:44:18.7965 00:04:20:06:f5:db New play mode: play
2007-06-16 15:44:18.8052 00:04:20:06:f5:db: Current playmode: play
2007-06-16 15:44:18.9100 Read to end of file or pipe
2007-06-16 15:44:18.9103 end of file or error on socket, opening next song, (song pos: 4186(tell says: . ), totalbytes: 0)
2007-06-16 15:44:18.9104 opening next song...
2007-06-16 15:44:18.9106 00:04:20:06:f5:db: Switching to mode playout-stop from play
2007-06-16 15:44:18.9108 00:04:20:06:f5:db New play mode: playout-stop
2007-06-16 15:44:18.9113 00:04:20:06:f5:db: Current playmode: playout-stop
2007-06-16 15:44:18.9114 No pending chunks - we're dropping the streaming connection
2007-06-16 15:44:18.9132 00:04:20:06:f5:db: Can't opennext, returning no chunk.
2007-06-16 15:44:18.9227 00:04:20:06:f5:db: Decoder underrun while this mode: playout-stop
2007-06-16 15:44:18.9228 the next song is number 0, was 0

y360
2007-06-16, 23:18
Perhaps you don't have latest socketwrapper, see this thread
http://forums.slimdevices.com/showthread.php?t=36144

Also make sure that your scanned db refs & file system files match