I'm playing around with the command line interface of
mplayer. I'd like to script it in the following way
find /some/path/ -type f | grep -vif blacklist | mplayer -shuffle -playlist -
blacklist is a text file with artist or song names I'd rather ignore when I have visitors or my son is around (lot's of swear words... :D)
mplayer encounters the
- character, it disables the console input. From the man page:
-noconsolecontrols Prevent MPlayer from reading key events from standard input. Useful when reading data from standard input. This is automatically enabled when - is found on the command line. [snip]
This blocks me from seeking in the file and skipping individual songs. Funnily, this works for videos, because the video window still accepts the usual keyboard inputs.
How can I have the regular console input back? I would like to avoid using a temporary file, although this is of course the easiest solution.
-input don't seem suited and trying
-consolecontroles does not work.