OptionalparseParse -progress blocks into progress events.
OptionaltotalKnown total duration in microseconds, used to compute info.percent.
OptionaltimeoutKill the encode after this many milliseconds.
OptionalsignalCancel the encode from the outside.
OptionalkillMilliseconds between SIGTERM and the SIGKILL escalation. Defaults to 2000.
OptionalkillKill the child's whole process group. Defaults to true on POSIX.
OptionalretryRetry the run on failure. Off by default: an ffmpeg failure is nearly always deterministic, so retrying usually just burns the same CPU twice.
Only safe when the output is written atomically — otherwise a retry operates on the truncated file the failed attempt left behind.
OptionalloggerLog lifecycle events. Defaults to the library-wide logger.
OptionalonReceives structured lifecycle events. Defaults to the library-wide hook.
OptionalvalidateReject before spawning when an input path does not exist, is unreadable, or is a directory. Defaults to false.
Off by default because this library accepts ffmpeg input syntax — URLs,
pipe:0, lavfi: graphs, concat: lists — that is not a filesystem path,
and guessing wrong would break working calls. Turn it on for a service that
only ever accepts local paths.
Options accepted by FFmpegBuilder.run and FFmpegBuilder.spawn.