Skip to main content

Thread: Bash for playing directories full of music


i've been trying , trying figure out problem, have music in subdirectories due large amount or how have sorted or anything.

if process file names , remove spaces , special characters, works. don't want this.

go the directory want and:

code:
find . -type f -iname "*flac" | sort | while read filen; echo "$filen" | mplayer; done
this command start playing first piece goes strange behavior, skipping , jumping in file.

i've tried:

code:
mplayer `find . -type f -iname "*mp3" | sort`
this 1 doesn't work @ all

code:
find . -type f -iname "*flac" -exec mplayer
works fine except playlist isn't sorted based on filename.

ideas?

interesting. i've used similar 'find' commands , didn't have issues mplayer, don't once start playback. appear fine me, i've never sorted output.

have tried put intermediate output file , using feed mplayer
code:
mplayer -playlist
option?

or turning around
code:
find . -type f -iname "*mp3" | sort | mplayer -


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Bash for playing directories full of music


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues