[FFmpeg-devel] [PATCH] Add -timelimit option
Mon Nov 16 15:26:16 CET 2009
On Sun, Nov 15, 2009 at 12:38:25PM +0000, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> > On Sat, Nov 14, 2009 at 04:49:22PM +0000, Mans Rullgard wrote:
> >> This option limits the CPU time used by ffmpeg to the number of seconds
> >> specified. After this time, the OS sends a SIGXCPU signal, which we
> >> handle and attempt to exit cleanly. If the process is stuck, the OS
> >> will deliver a SIGKILL one second later, forcibly terminating the
> >> process.
> >> This functionality is useful in automated setups where a runaway ffmpeg
> >> process would otherwise go undetected.
> >> ---
> >> ffmpeg.c | 18 ++++++++++++++++++
> >> 1 files changed, 18 insertions(+), 0 deletions(-)
> > iam fine with this, but maybe the new function would be better put in
> > cmdutils.c ?
> > that way other tools (ffserver maybe?) could also use it
> Well, ffserver probably doesn't want it, and ffplay isn't likely to be
> used unattended (nor do I see much use for it there). That said, I'm
i think it could be usefull for regression testing ffplay, if the output could
be redirected to files.
ffplay is different from ffmpeg in several ways like being multithtreaded ...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel