Easily Create Playlists for Mplayer!
Sunday, January 07, 2007
Here's a really simple way to add add all the files in a giving directory to a playlist that mplayer likes:
Change the "*.mp3" to whatever file extension matchs your media. Do not forget the "*". This denotes that everything with .mp3 at the end of the filename, should located and added to the playlist. You can leave off the path to the directory if you are already in the directory where the media is located. After that, simply issue the mplayer command with a -playlist extension, followed by the name of your playlist:
It's as easy as that! Enjoy!
$ find [/path/to/directory/] -name "*.mp3" -print > playlist.txt
Change the "*.mp3" to whatever file extension matchs your media. Do not forget the "*". This denotes that everything with .mp3 at the end of the filename, should located and added to the playlist. You can leave off the path to the directory if you are already in the directory where the media is located. After that, simply issue the mplayer command with a -playlist extension, followed by the name of your playlist:
$ mplayer -playlist playlist.txt
It's as easy as that! Enjoy!