Linux / UNIX: mplayer Play mp3s From a Playlist File

Linux / UNIX: mplayer Play mp3s From a Playlist File

To play MP3s from a playlist file using mplayer on a Unix or Linux system, you can use the -playlist option.

Here is the basic syntax for using the mplayer command to play MP3s from a playlist file:

mplayer -playlist playlist.m3u
Source‮l.www:‬autturi.com

The -playlist option tells mplayer to read the list of files to be played from the specified playlist file.

The playlist file should be in M3U format, which is a simple text file that contains a list of file names, one per line.

For example, a playlist file might look something like this:

song1.mp3
song2.mp3
song3.mp3

To play the MP3s in the playlist file, you can use the mplayer command with the -playlist option, like this:

mplayer -playlist playlist.m3u

This will start mplayer and begin playing the MP3s in the playlist file.

You can use the -shuffle option to shuffle the order of the songs in the playlist.

For example:

mplayer -shuffle -playlist playlist.m3u

This will play the songs in the playlist file in a random order.

Created Time:2017-10-29 22:08:57  Author:lautturi