Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create an MPlayer playlist with a shell script? [closed]

Tags:

linux

mplayer

I am trying to create a shell script in Linux that when executed searches a directory for all media files then creates a playlist and plays it with MPlayer.

like image 362
RoundRobin Avatar asked Apr 08 '12 20:04

RoundRobin


1 Answers

Use this command :

find /PATH/TO/MUSIC/DIRECTORY/ -type f -iname "*.mp3" > playlist.m3u

Now play with mplayer :

mplayer -playlist playlist.m3u
like image 146
mah454 Avatar answered Nov 15 '22 08:11

mah454