Thursday, September 22, 2005

problem transcoding AAC files to mp3


I am having a problem getting AAC files to work with Jinzora. By default, Jinzora attempts to transcode all AAC files into MP3 files. (Which I think is reasonable, as not many players can support AAC.



The command that it attempts to use to transcode the file is:




/usr/bin/mplayer -ao pcm:file=/dev/stdout "/data/music/Daft Punk/Discovery/Daft Punk-Discovery-10 - Voyager.m4a" | /usr/local/bin/lame -S --silent --quiet -h -m j -b 128 -f - > /tmp/test.mp3



This puts noise in the resulting mp3 file. Here is the first 100KB of the file that has the noise in it.



But if I do the two commands seperately, the resulting sound file sounds great. These commands work great:




/usr/bin/mplayer -ao pcm:file=/dev/stdout "/data/music/Daft Punk/Discovery/Daft Punk-Discovery-10 - Voyager.m4a" > /tmp/test.wav
/usr/local/bin/lame -S --silent --quiet -h -m j -b 128 -f /tmp/test.wav > /tmp/test.mp3


Here a sample of the transcode that worked perfectly


I haven't been able to find a solution for this, but I will keep looking


Technorati Tags: ,