Sunday, September 13, 2009

How to play sound files recursively with mplayer in cli?

Ever wondered how to play your entire music archive with mplayer, preferably shuffled?

I finally got around and played a bit with the command line, and the result is:

find ~/Music \( -iname "*\.mp3" -o -iname "*.ogg" -o -iname "*.wma" \) -exec mplayer -shuffle '{}' +


This will do the magic, and play all your mp3's, ogg's and wma's shuffled in the ~/Music folder (change path to where your music folder is).

No comments:

Post a Comment