Page 1 of 1

Bug? "Error writing mp3 output"

PostPosted: Wed May 12, 2010 4:35 pm
by amiantos
4.0beta2 here... Trying to listen to an album I listened to previously through Subair and the web client, but now it won't play any of the tracks. The log shows this:

[2010-05-12 09:29:10,270] INFO PlaylistInputStream - admin listening to "Treats\01 Tell 'Em.m4a"
[2010-05-12 09:29:10,278] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\faad] [-w] [C:\Users\Brad\Music\Sleigh Bells\Treats\01 Tell 'Em.m4a]
[2010-05-12 09:29:10,281] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\lame] [-b] [128] [-x] [-] [-]
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) Assuming raw pcm input file : Forcing byte-swapping
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) LAME version 3.96.1 (http://lame.sourceforge.net/)
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) CPU features: MMX (ASM used), SSE, SSE2
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) Encoding <stdin> to <stdout>
[2010-05-12 09:29:10,299] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
[2010-05-12 09:29:10,775] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\lame) Error writing mp3 output


My theory is that there's a cache of transcoded songs somewhere and it doesn't see it and can't overwrite it or something. I can't locate the cached songs to test it.

PostPosted: Wed May 12, 2010 4:39 pm
by sindre_mehus
Can you please see if c:/subsonic/transcode/faad.exe exists? If not, please upgrade to 4.0 and you should be fine.

PostPosted: Wed May 12, 2010 4:43 pm
by amiantos
sindre_mehus wrote:Can you please see if c:/subsonic/transcode/faad.exe exists? If not, please upgrade to 4.0 and you should be fine.


I'm on 4.0beta2. faad.exe exists. Transcoding this/these files has worked before, but not now.

PostPosted: Wed May 12, 2010 4:51 pm
by amiantos
sindre_mehus wrote:Can you please see if c:/subsonic/transcode/faad.exe exists? If not, please upgrade to 4.0 and you should be fine.


Oh, I see! 4.0 is out. I'll upgrade and let you know what happens.

PostPosted: Wed May 12, 2010 4:54 pm
by sindre_mehus
Good, thanks!

PostPosted: Wed May 12, 2010 4:55 pm
by amiantos
sindre_mehus wrote:Good, thanks!


Same error on 4.0. It's not happening just on this album either, but all M4A tracks now. Hmm.

What can I try next?

PostPosted: Wed May 12, 2010 5:01 pm
by sindre_mehus
Could you please email me one of your m4a files?

Thanks!

PostPosted: Wed May 12, 2010 5:06 pm
by amiantos
sindre_mehus wrote:Could you please email me one of your m4a files?

Thanks!


Sent!

PostPosted: Wed May 12, 2010 5:15 pm
by amiantos
I rebooted the whole server, no change. Same exact error in the log.

PostPosted: Wed May 12, 2010 5:30 pm
by amiantos
When trying to save new cover art, I'm getting:

java.lang.Exception: Permission denied: C:\Users\Brad\Music\Archie Bronson Outfit\Fur\cover.jpg

I have a feeling there is some sort of permissions issue going on. I'll try fiddling with my windows permissions.

PostPosted: Wed May 12, 2010 5:41 pm
by amiantos
Yeah nothing I can do will get

java.lang.Exception: Permission denied: C:\Users\Brad\Music\Archie Bronson Outfit\Fur\cover.jpg


to stop coming up. Don't know if these two issues are related or what.

PostPosted: Wed May 12, 2010 5:42 pm
by amiantos
The plot thickens!

The .m4a file I sent you decodes fine on other user accounts, just not mine ("admin").

EDIT: The music transcodes fine when playing with SubAir but when using the web player it does not work.

PostPosted: Wed May 12, 2010 6:02 pm
by sindre_mehus
Ah, I think I found the error. It's in the web player code, not on the server side. I'll try to come up with a bugfix asap.

An excellent work-around is to simply disable the m4a>mp3 transcoding altogether, as Subsonic now supports native streaming of m4a :-)

Oh, and the cover art error is unrelated - I'm working on a fix for that too.

Thanks for helping out!

PostPosted: Wed May 12, 2010 6:07 pm
by amiantos
sindre_mehus wrote:Thanks for helping out!


Great, you'll see a lot of me around!