Another thing that's been troubling me regarding audio files is those damn .wma-s that cannot be played by my iPod. So it's time for a handy script that will convert .wma into .mp3:
for x in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$x" ; lame -m s audiodump.wav -o "${x%wma}mp3" ; rm audiodump.wav ; done
Pretty impressive – lame's manual page deserves a good read.
Thanks man that post was exactly what I was looking for.
ReplyDeleteI also blogged about the problem I experienced on FreeBSD and included a link to your nice blog.
You can check it out here:
http://www.pc-freak.net/blog/fix-weird-problem-with-apache-default-encoding-adddefaultcharset-not-taking-effect-on-freebsd-with-apache-version-2-0-63/