Thursday, November 13, 2008

playing subdirectories with mplayer ver. 2 :)

#!/bin/bash
find `pwd`$1 > /tmp/playlist
mplayer -loop 0 -shuffle -playlist /tmp/playlist


it works better.

2 comments:

  1. On the contrary, doesn't work. :)
    ReplyDelete
  2. let mplayer play just mp3, ogg and wma

    #!/bin/bash
    find "`pwd`$1" -regex '.+\.\(mp3\|ogg\|wma\)' > /tmp/playlist
    mplayer -loop 0 -shuffle -playlist /tmp/playlist
    ReplyDelete