[MPlayer-users] -dumpstream with duration?

Bryan Field-Elliot bryan_lists at netmeme.org
Mon Feb 26 19:45:11 CET 2007


Thank you Thomas, that's a good idea and seems like it should work fine.



On Mon, 2007-02-26 at 19:36 +0100, Tomáš Janoušek wrote:

> 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 ..."
> 
> 



More information about the MPlayer-users mailing list