Thursday, August 8, 2013

Converting music files to mp3

I copied my new Liquideep album; Welcome Aboard; on my Nexus 4, but the android Play Music app does display it to even play it.
I did a search and read that android Play Music does NOT play .wma files, which is what I ripped the CD with.
So I need a convenient way to convert the multiple music files. Luckily, I have a command line program called ffmpeg, and a little knowledge of windows scripting and internet.

for /R C:\Music %%v in (*.wmv *.aac, *.flv, *.m4a, *.wma) do ffmpeg -v quiet -i "%%v" -ab 128k "C:\Music\M\%%~nv.mp3"

This script converts every music file in the folder "C:\Music" with the extension name (*.wmv *.aac, *.flv, *.m4a, *.wma) to mp3 using the bitrate of 128k

Convenient ehh..

You can run this directly on windows command prompt, or put it in a file and run as a batch script

NB: I prefer putting the ffmpeg file into the windows path, or simply drop it in C:\Windows\System32

No comments: