eXTReMe Tracker
Aug 082012

Here’s a nifty little script I found.

You need to run it within the directory containing the wma files:


current_directory=$( pwd )

#remove spaces
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done

#Rip with Mplayer / encode with LAME
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -ao pcm:waveheader $i && lame -m s audiodump.wav -o $i; done

#convert file names
for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done

rm audiodump.wav

If you aren’t happy with underscores and want your spaces back, run this on the command line:

for i in `ls *.mp3`; do p=`echo $i | tr '_'  ' '`; mv $i "$p"; done

They will be in the proper format now, and google music compatible.

Feb 112009

There were unmet dependencies (libx264-59) for vlc and mplayer in the latest release of Jaunty Alpha. A bug report was filed by several users on launchpad.net

One of the users posted this workaround to get both mplayer and VLC working in Ubuntu (9.04) Alpha 4.

To solve the problem, just get libx264 here:
Just installed it manually (sudo dpkg -i libx264-59_0.svn20080408-0.0ubuntu1_i386.deb)
I then installed mplayer and vlc using medibuntu repos.


sudo apt-get install mplayer vlc

Gets these packages working!

Feb 092009

Some of the repositories which hold the libraries for mplayer seem to be broken in the Alpha 4 release of Ubuntu 9.04 (Jaunty Jackalope). What’s surprising is that the mplayer installation in Alpha 3 meets all the dependencies and fetches the files correctly, however that for Alpha 4 don’t.

One workaround for vlc is to install libx264-dev, and then install VLC:

$sudo apt-get install libx264-dev vlc

This still leaves unmet dependencies for mplayer.

rick@lithium:~$ sudo apt-get install mplayer
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mplayer: Depends: libx264-59 (>= 1:0.svn20080408) but it is not installable
E: Broken packages