Compile Mplayer

Use this script to compile the latest version of mplayer in Ubuntu and save yourself some headaches. Resolving compile dependencies in Ubuntu is daunting at best, especially when you’re dealing with multimedia apps. You might end up with some unneeded dependencies, but it’s better than resolving them individually when the configure commands complain.

Could not embed GitHub Gist 615286: Not Found

Resize Album Art

I use this to scale and crop my higher quality album art for embedding in my audio tags.

#!/bin/bash
# aa.sh
# Scale and crop album art for embedding in music tags

if [ -z $1 ]
	then
		echo "Usage: `basename $0` image_file"
else
	convert $1 -resize 300x300^ -gravity center -extent 300x300 folder.jpg
fi