Page 1 of 2

Subsonic cannot play wma files

PostPosted: Tue Apr 19, 2011 1:00 pm
by mxgods
I'm running subsonic 4.4 on windows server 2008 x64 (which is a virtual machine running under hyper-v server 2008 r2). Everything seems to play fine except for wma files. FFMPEG gives me an error of:

Error while decoding stream #0.0
Last message repeated 1 times
[wmav2 @ 03346160]block_len_bits 6 out of range

PostPosted: Tue Apr 19, 2011 2:43 pm
by GJ51
What's your transcoding?

PostPosted: Tue Apr 19, 2011 2:45 pm
by mxgods
Stage 1:
ffmpeg -i %s -v 0 -f wav -

Stage 2:
lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -



It fails on stage 1

PostPosted: Tue Apr 19, 2011 2:53 pm
by GJ51
That looks correct. I've seen others have trouble with WMA's before, but I've never had trouble with mine. Do all WMA files give the same result, or do some work?

PostPosted: Tue Apr 19, 2011 2:54 pm
by mxgods
All wma files do. This only happened since i moved my subsonic install from an old desktop to a vm that i use to host all my web applications.

PostPosted: Tue Apr 19, 2011 2:57 pm
by GJ51
Java up-to-date?

Other users use

wmadec %s -
lame -b %b -r - -

successfully.

PostPosted: Tue Apr 19, 2011 3:02 pm
by GJ51
Here are some other option that others use:

Step 1 : ffmpeg -v 0 -i %s -f mp3 -acodec libmp3
Step 2 : lame -ar 44100 -aq 0 -ac 2 -map_meta_data 0:0 -

Another one:

Step 1: wmadec -b 16 %s -
Step 2: lame -v -b %b -r - -

another claims removing the v helps

Step 1: wmadec -b 16 %s -
Step 2: lame -b %b -r - -

One step settings:

ABR:

ffmpeg -v 0 -i %s -f mp3 -acodec libmp3lame -ar 44100 -ab %bk -ac 2 -map_meta_data 0:0 -

VBR:

ffmpeg -v 0 -i %s -f mp3 -acodec libmp3lame -ar 44100 -aq 0 -ac 2 -map_meta_data 0:0 -


Not having problems myself, I have not tested these transcodings, nut others claim these settings work on their systems.

http://forum.subsonic.org/forum/viewtop ... hlight=wma

PostPosted: Tue Apr 19, 2011 3:04 pm
by mxgods
Java is up to date. When i changed the decoder this is what came up in the log:

[4/19/11 11:02:28 AM EDT] INFO PlaylistInputStream admin listening to "A Beautiful Lie\1 - Attack - 30 SECONDS TO MARS.wma"
[4/19/11 11:02:28 AM EDT] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\wmadec] [C:\Music\30 Seconds to Mars\A Beautiful Lie\1 - Attack - 30 SECONDS TO MARS.wma] [-]
[4/19/11 11:02:28 AM EDT] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\lame] [-b] [128] [-r] [-] [-]
[4/19/11 11:02:28 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\wmadec) Opening stream failed with error code 0xc00d0bbd
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Assuming raw pcm input file
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) LAME 3.98.4 32bits (http://www.mp3dev.org/)
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) CPU features: MMX (ASM used), 3DNow! (ASM used), SSE (ASM used), SSE2
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Encoding to
[4/19/11 11:02:29 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3

PostPosted: Tue Apr 19, 2011 3:09 pm
by mxgods
Forgot to say, when i tried the first suggestion, it worked up untill the last line:

[4/19/11 11:08:11 AM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) At least one output file must be specified

PostPosted: Tue Apr 19, 2011 3:10 pm
by GJ51
Here's what Sindre posted last year:

Sounds like that ffmpeg doesn't support wma lossless. If it worked with your previous setup you can change the transcoding settings for wma as follows:

Go to Settings > Transcoding, and specify:
Step 1: wmadec %s
Step 2: lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 -x - -

http://forum.subsonic.org/forum/viewtop ... hlight=wma

The OP got it working using:

Step 1: wmadec %s
Step 2: lame -v -V 0 -b 96 -B 320 -x - -

PostPosted: Tue Apr 19, 2011 3:23 pm
by mxgods
Neither worked. The second gave me an error message of invalid file type.

PostPosted: Tue Apr 19, 2011 3:26 pm
by mxgods
I'm guessing it is a problem with windows media player. Since the vm does not have a sound card, maybe its causing issues with Windows Media Player.

PostPosted: Tue Apr 19, 2011 3:28 pm
by mxgods
I looked up the error message I was getting: error code 0xc00d0bbd. It said there was a problem with DRM (assuming its because the audio was ripped with windows media player.)

PostPosted: Tue Apr 19, 2011 3:29 pm
by GJ51
One idea, can you rename one of the files you're having trouble with to test.wma and place it in a directory that is very simple in it's structrure, e.g. C:\WMAtests\tests\test.wma

Reading the log output, I'm wondering if you may be having issues parsing the filename.

PostPosted: Tue Apr 19, 2011 3:41 pm
by mxgods
Still nothing. If i try to play the file on the server it fails due to not having an audio card. These files played when i had subsonic installed on a vista physical computer.