Filling the MP3 player before going on vacation
Isn’t your MP3 player brand new? Would you like to go on vacation with a bunch of music but don’t have enough space?
It’s quite common to buy high definition MP3 today, but they take too much space especially if you don’t need such high quality while having your sun bath.
Lucky enough, you are a geek, so you know what’s a bash script.
So, create you collection, copying your MP3s in a dedicated folder, then run the following command
find -type f ! -name '*.low.mp3' -exec ffmpeg -i {} -ab 128K {}.low.mp3 \;
It will create 128k MP3 version of your collection (converting the format, if necessary)
When done, just delete the high quality version
find -type f ! -name '*.low.mp3' -exec rm {} \;
and copy the remaining on your MP3 player.
Wish you good vacation!