Mplayer: Hide playlist filenames from process list

From FVue
Jump to: navigation, search


When playing music via the command:

mplayer -shuffle *

the filenames of the playlist become visible in the process list, for everyone to see:

$ ps -aocmd | grep mplayer
mplayer foo.mp3 bar.mp3

I want to hide the filenames from the process list. How can I do so?


Use the `playlist' option of mplayer and pass it a dynamically generated list:

mplayer -playlist <(find "$PWD" -type f)

Now only a file descriptor is seen in the process list:

$ ps -aocmd  | grep mplayer
mplayer -playlist /dev/fd/63



Tech tip #2: MPlayer play music recursively in a directory. - thinkMoult
Blog entry with playlist trick because of subdirectories


blog comments powered by Disqus