[MPlayer-users] MPlayer to run Daemon mode?
Krzysztof Duchnowski
amidk75 at gmail.com
Wed May 2 19:03:06 CEST 2012
On 02.05.2012 14:49, Maurizio Caloro wrote:
> Hello
> Please i wan't to play with Mplayer any possible Radio Stream but don't find any possibilites to run only for Deamon mode.
>
> possible switches found running -loop 0 or 1 and -quite,
>
> mplayer -loop 0 | -quite http://www.radioswissjazz.ch/live/mp3.m3u | cat >/dev/null &
> nohup mplayer -loop 0 | -quite http://www.radioswissjazz.ch/live/mp3.m3u | cat >/dev/null &
>
> but this are not that what i think....
> for possible help switches i'am Happy
>
> MPlayer SVN-r32219-snapshot-4.1.3 (C) 2000-2010 MPlayer Team 159 audio & 348 video codecs
>
> run happy with NetBSD 5.0.1
> Thanks for any Help
> Mauri
mkfifo /tmp/mplayer.fifo && mplayer -idle -slave -input
file=/tmp/mplayer.fifo 1&>/dev/null &
will start MPlayer in slave mode
after that whatever you write to /tmp/mplayer.fifo it will be passed as
command by mplayer, so:
echo "loadfile http://www.radioswissjazz.ch/live/mp3.m3u" >/tmp/mplayer.fifo
will start radio playback (if it broadcasting, since it didn't done it
for me - others did), and
echo "stop" >/tmp/mplayer.fifo
will stop it
Full synopsis here:
http://www.mplayerhq.hu/DOCS/tech/slave.txt
--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
More information about the MPlayer-users
mailing list