Page 1 of 2

WMA Lossless

PostPosted: Fri May 07, 2010 12:55 pm
by Anxst
Okay, I nearly have everything I want working. The only remaining issue is my WMA Losless files. As far as I'm aware, ffmpeg does not support WMA lossless decoding.

I downloaded the Windows Codec pack you linked to, and attempted to use wmadec to do the decoding for me. As far as I'm aware, wmadec will output a PCM file that I'll need to transcode with LAME.

However, at this point all I get is static. If I set the wmadec decode to use only 8 bits per sample, I can hear the music, sped up as if being sung by the Chipmunks.

Here's what I'm doing:

wmadec -b 16 %s -
lame -b %b - -

Where's my error? Any thoughts?

PostPosted: Fri May 07, 2010 1:50 pm
by sindre_mehus
Try adding "-x" to the lame command.

PostPosted: Fri May 07, 2010 2:20 pm
by Anxst
Perfect! I should have looked harder at the LAME documentation.

Thanks so much for a great bunch of code, Sindre. I'm glad I donated. Also, thanks for taking the time to answer.

PostPosted: Fri May 07, 2010 4:07 pm
by sindre_mehus
No problem, glad I could help :-)

Re: WMA Lossless

PostPosted: Fri Sep 03, 2010 3:22 am
by BillLee3
Anxst wrote:Okay, I nearly have everything I want working. The only remaining issue is my WMA Losless files. As far as I'm aware, ffmpeg does not support WMA lossless decoding.

I downloaded the Windows Codec pack you linked to, and attempted to use wmadec to do the decoding for me. As far as I'm aware, wmadec will output a PCM file that I'll need to transcode with LAME.

However, at this point all I get is static. If I set the wmadec decode to use only 8 bits per sample, I can hear the music, sped up as if being sung by the Chipmunks.

Here's what I'm doing:

wmadec -b 16 %s -
lame -b %b - -

Where's my error? Any thoughts?


I'm in the same boat. Tried adding a "-x" to end of lame command line and right after lame, but didn't work. I'm getting a

DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Warning: unsupported audio format

on all .wma files if i use the "wmadec - b 16 %s -" command line you used. What am I doing wrong?

Re: WMA Lossless

PostPosted: Sun Sep 12, 2010 4:16 pm
by Frisco Bill
BillLee3 wrote:I'm in the same boat. Tried adding a "-x" to end of lame command line and right after lame, but didn't work. I'm getting a

DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Warning: unsupported audio format

on all .wma files if i use the "wmadec - b 16 %s -" command line you used. What am I doing wrong?


Lame added a command line option (-r) for pcm input.

Code: Select all
cbr:

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

or vbr:
wmadec -b 16 %s -
lame -v -b %b -r - -


The above works for me.

WMA Lossless - I must be entering the codes incorrectly

PostPosted: Tue Oct 05, 2010 11:53 pm
by bethesdaadk
I just upgraded my ESX470 with Media Smart v 3 and reinstalled Subsonic which I had used for years for streaming my wma lossless. All of a sudden, it won't stream wma lossless anymore and adding a transcoding line is something I never remember doing, so I'm not sure why it's worked all of these years. Regular WMA and MP3 files are streaming, but not WMA Lossless. This is new. Based on these posts I did the following

I created a transcoding entry for wma lossless:

Name: wma lossless>mp3
Convert from: wma lossless
Convert to: mp3
Step 1: wmadec -b 16 %s -
Step 2: lame -b %b -r - -

I thought I had it fixed when I saw you have to enable the transcode in the player, but that didn't do it.

I also disabled the stock wma>mp3 because looking at the log shows me that the wmadec is never even used. It's always the ffmpeg. I can tell this by the log entries:

[10/5/10 7:34:50 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Decoder (codec id 86057) not found for input stream #0.0
[10/5/10 7:34:50 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Warning: unsupported audio format

Shouldn't it be using the correct codec? Even when I disable the regular wma to mp3 to force the custom one, I get nothing.

I guess there is something to the answers you've given to the other posters that they must have inherently understood that I'm completely missing. Thanks for your advice.[/img]

confirmation

PostPosted: Sat Oct 09, 2010 12:26 am
by bpschroder
I can confirm that changing the lame transcoding to these settings works for WMA losslesss after the 4.1 upgrade

PostPosted: Sat Oct 09, 2010 1:30 am
by bethesdaadk
Thanks for the reply. I checked and I am running 4.1 from Sept 2010. Is there some other setting you can think of that you got to get this running?

I think I will try and replace all the transcoders in case they are not working right.

still no luck with wma lossless

PostPosted: Sat Oct 09, 2010 1:44 am
by bethesdaadk
I replaced all the transcoders. The log has little activity as opposed to the ffmpeg:

[10/8/10 9:36:33 PM EDT] INFO VersionService Resolved local Subsonic version to: 4.1
[10/8/10 9:36:33 PM EDT] INFO VersionService Resolved latest Subsonic final version to: 4.1
[10/8/10 9:36:33 PM EDT] INFO VersionService Resolved latest Subsonic beta version to: 4.1.beta1
[10/8/10 9:37:58 PM EDT] INFO PlaylistInputStream admin listening to "The Beatles - Abbey Road\The Beatles - Abbey Road - 01. Come Together.wma"

And that's it. Nothing about the new codec or lame. No sound. The flash player appears to start to play, but just stays at 0:00.

Appreciate any suggestions. It could be the syntax is wrong, or I've set it up wrong or it doesn't like this new version of WHS - as this didn't happen on my old WHS server setup.

Thanks again.

PostPosted: Sat Oct 09, 2010 1:52 am
by bethesdaadk
I wonder if there is a conflict with SqueezeCenter on the same box? Never was before. Twonky is also running.

PostPosted: Sat Oct 09, 2010 2:58 pm
by bpschroder
bethesdaadk

I had the same log file and the problem with the flash player loading but no music stream. The lame setting have to be exact. Sorry if that doesn't do it I'm not sure what the problem is. I'm running on WHS as well, but I don't have those other services running.

vbr

PostPosted: Sat Oct 09, 2010 3:00 pm
by bpschroder
Sorry bethesdaadk

these are the setting I am using slightly different than yours...

step 1

wmadec -b 16 %s -

step 2

lame -v -b %b -r - -

Here's how I fixed it...

PostPosted: Sun Oct 10, 2010 12:36 pm
by bethesdaadk
I uninstalled Subsonic however, the subsonic folder would always stay behind, so with any reinstall, the problem remained because the old bad properties were still in the folder...whatever the problem was. So, after my last uninstall, I renamed the C:\Subsonic folder to C:\Subsonic.OLD.

Then, I installed 3.8. The transcoders were all different than what I had been seeing with the original setup. And WMA Lossless actually worked. I made a backup of the Subsonic folder and then I upgraded to 4.1. Again, the transcoders page was completely different than my very first attempt because this time it had the correct properties.

When I first installed 4.1 and couldn't get lossless to work, every transcoder was setup for ffmpeg. After a more complete uninstall and reinstall, I now see transcoders setup that are more unique to each file type...and, of course, wma lossless now works.

So I have to chalk this up to a bad initial install, and not realizing that a full uninstall required a manual removal or renaming of the C:\subsonic folder.

Thanks to those who tried to help.

did I speak too soon?

PostPosted: Sun Oct 10, 2010 12:45 pm
by bethesdaadk
It's working on some lossless. But others...nothing. Oh well, it's progress.