[FFmpeg-devel] [PATCH] Add -timelimit option
Sat Nov 14 18:47:14 CET 2009
2009/11/14 M?ns Rullg?rd <mans at mansr.com>
> Kostya <kostya.shishkov at gmail.com> 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.
> > You can name FATE explicitly, there's nothing to be ashamed of.
> FATE is only one case. Anyone doing automated processing with ffmpeg
> (e.g. video upload sites) might find it useful.
I approve of this addition. It's a good idea and while one could keep track
of execution time of all PIDs they've launched, this would certainly make it
an easier "turn key" solution.
More information about the ffmpeg-devel