Translate

Samstag, 20. Februar 2010

How to organize your MP3 with bash and mp3info

I had all my loved songs in my mp3 collection but with one big problem:
I had no index and had to serach for all the songs, using more time to navigate the through my collection than listening to it.

THE Solution:
Creating m3u indexes on the filesystem, compatible with mostly any player.

Here is an example:
I wish to sort my songs by genre, so i did this small script to create one m3u file by genre:
find . -name *.mp3 | while read lg; do echo "$lg" >> $(mp3info -p%g "$lg").m3u; done
And another one to create one m3u per year:

find . -name *.mp3 | while read lg; do echo "$lg" >> $(mp3info -p%y "$lg").m3u; done


This saves me a lot of time, now i can fully enjoy my collection.

Keine Kommentare: