Home of the Squeezebox™ & Transporter® network music players.

WMA

From SqueezeboxWiki

Jump to: navigation, search

Contents

WMA on Linux:

First make sure that you have both FFMpeg and LAME installed. These may come pre-packaged and configured for your particular flavour of Linux, or else they can be compiled from source from the individual projects' websites.

Once you have those installed and are sure they are available in your path, create, or add these lines to, the file /usr/local/squeezecenter/squeezecenter-convert.conf (path is your installation path for slimserver). (NB on Ubuntu this should be /etc/squeezecenter/squeezecenter-convert.conf). This file allows for future upgrades to slimserver not overwritting your convert file.

Add these lines

wma mp3 * *
	[ffmpeg] -v 0 -i $FILE$ -f wav - | [lame] -x -m s -r -S -q 5 -s 44.1 - -

Note:

After doing this, I still was only getting alot of click click click sounds when I played the WMA files. I 'downgraded' my version of ffmpeg and it worked fine after that. Unfortunately I did not keep track of which version worked and which didn't. Keep this in mind if you have similar symptoms.

Note:

Lossless WMA is not currently supported on Linux.

Alternative with mplayer

I could never make the above method work with mms://-urls. I wrote the following wrapper-script around mplayer instead:

#!/bin/bash
FIFO=`mktemp -u`
mkfifo $FIFOmplayer $1 -really-quiet -vo null -vc null -ao pcm:fast:file=$FIFO > /tmp/mplayer.out 2>&1 &
cat $FIFOrm $FIFO

I named it mplayer-fifo, put it in /usr/local/bin/ and added the following to convert.conf:

wma wav * *
	[mplayer-fifo] $FILE$

I can now listen to streaming wma via mms://-url on my Squeezebox.

Alternative with mplayer without wrapper

wma wav * *
	[mplayer] -really-quiet -vc null -vo null -cache 64 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null


AlienBBC might be required

As suggested here, installing the AlienBBC extension might be required. Only after the installation of AlienBBC, both mplayer conversion methods outlined above worked for me.