[MPlayer-users] stopping a dumpstream after a specified amount of time
Ulrich Schweitzer
us- at gmx.de
Tue Oct 19 22:17:43 CEST 2004
On Tuesday 19 October 2004 05:26, james houston wrote:
> I want to use the Linux mplayer's dumpstream option to
> capture an online radio station, but it needs to stop
> after a specified amount of time (when the radio
> program is over).
I'd suggest doing something like that from a script:
LENGTH="60m" # or whatever time you need
mplayer -quiet -dumpstream -dumpfile /test.mp3 -playlist \
http://64.236.34.67:80/stream/8018&
echo $! >~/.mplayer-dumpstream.pid
sleep $LENGTH && kill `cat ~/.mplayer-dumpstream.pid`
rm ~/.mplayer-dumpstream.pid
Ulrich
--
PGP key ID: 0xDF6FC4FA
"A mouse is a device used to select the xterm you want to type in."
Author unknown
More information about the MPlayer-users
mailing list