[MPlayer-users] -dumpstream with duration?
Tomáš Janoušek
tomi at nomi.cz
Mon Feb 26 19:36:44 CET 2007
Hi,
Mon, Feb 26, 2007 at 10:33:03AM -0800 Bryan Field-Elliot napsal:
> We'd like to use mplayer to dump a video stream for a specified number
> of seconds (i.e. 15 seconds), and then exit. I have not found a way to
> do this yet, dumpstream will by default keep on dumping until the stream
> ends. Is there a command-line option I missed somewhere?
I think mplayer can't and probably should be able to do it.
I use a script like this:
#!/bin/bash
TIME=$1
shift
"$@" &
PID=$!
sleep $TIME
kill $PID
wait
and then "runfor 15 mplayer -dumpstream ..."
--
Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
More information about the MPlayer-users
mailing list