WMA Lossless

Need help? Post your questions here.

Moderator: moderators

WMA Lossless

Postby Anxst » Fri May 07, 2010 12:55 pm

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?
User avatar
Anxst
 
Posts: 4
Joined: Thu May 06, 2010 9:55 pm

Postby sindre_mehus » Fri May 07, 2010 1:50 pm

Try adding "-x" to the lame command.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Anxst » Fri May 07, 2010 2:20 pm

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.
User avatar
Anxst
 
Posts: 4
Joined: Thu May 06, 2010 9:55 pm

Postby sindre_mehus » Fri May 07, 2010 4:07 pm

No problem, glad I could help :-)
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: WMA Lossless

Postby BillLee3 » Fri Sep 03, 2010 3:22 am

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?
BillLee3
 
Posts: 1
Joined: Fri Sep 03, 2010 3:18 am

Re: WMA Lossless

Postby Frisco Bill » Sun Sep 12, 2010 4:16 pm

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.
Frisco Bill
 
Posts: 2
Joined: Sun Sep 12, 2010 4:11 pm

WMA Lossless - I must be entering the codes incorrectly

Postby bethesdaadk » Tue Oct 05, 2010 11:53 pm

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]
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

confirmation

Postby bpschroder » Sat Oct 09, 2010 12:26 am

I can confirm that changing the lame transcoding to these settings works for WMA losslesss after the 4.1 upgrade
bpschroder
 
Posts: 8
Joined: Sat Oct 09, 2010 12:17 am
Location: Denver

Postby bethesdaadk » Sat Oct 09, 2010 1:30 am

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.
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

still no luck with wma lossless

Postby bethesdaadk » Sat Oct 09, 2010 1:44 am

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.
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

Postby bethesdaadk » Sat Oct 09, 2010 1:52 am

I wonder if there is a conflict with SqueezeCenter on the same box? Never was before. Twonky is also running.
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

Postby bpschroder » Sat Oct 09, 2010 2:58 pm

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.
bpschroder
 
Posts: 8
Joined: Sat Oct 09, 2010 12:17 am
Location: Denver

vbr

Postby bpschroder » Sat Oct 09, 2010 3:00 pm

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 - -
bpschroder
 
Posts: 8
Joined: Sat Oct 09, 2010 12:17 am
Location: Denver

Here's how I fixed it...

Postby bethesdaadk » Sun Oct 10, 2010 12:36 pm

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.
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

did I speak too soon?

Postby bethesdaadk » Sun Oct 10, 2010 12:45 pm

It's working on some lossless. But others...nothing. Oh well, it's progress.
bethesdaadk
 
Posts: 24
Joined: Tue Oct 05, 2010 11:40 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests