[CLUE-Tech] more on recursive .mp3 playing

David Anselmi anselmi at americanisp.net
Fri Aug 30 10:59:01 MDT 2002


Here's another refinement to Jed's suggestion:

Dave Price wrote:
> 
> Here is the recursive script:
> 
> [davep at dp:~]$ cat `which mpr`
> #!/bin/bash
> #mpr - recursively play mp3's in a directory
> find $1 | grep .mp3 | sort > mpr.lst
> mpg123 -C -b 1024 -@ mpr.lst
> rm mpr.lst

Instead of:

find $1 | grep .mp3 | sort > mpr.lst

do:

find $1 -type f -name \*.mp3 | sort > mpr.lst

Also, perhaps this will work:

find $1 -type f -name \*.mp3 | sort | mpg123 -C -b 1024 -@ /dev/stdin

or instead of -@ use --list (if there's any difference).  You shouldn't 
need a temp file if you can get mpg123 to read its playlist from stdin.

Dave




More information about the clue-tech mailing list