[FFmpeg-devel] [PATCH] ffmpeg: add -no_stdin option.

Stefano Sabatini stefasab at gmail.com
Thu Jul 12 01:17:58 CEST 2012


On date Wednesday 2012-07-11 21:29:33 +0200, Nicolas George encoded:
> Allows to disable interaction from standard input.
> Useful, for example, if ffmpeg is in the background process group.
> Roughly the same result can be achieved with "ffmpeg ... < /dev/null"
> but it requires a shell.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  Changelog |    1 +
>  ffmpeg.c  |    2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/Changelog b/Changelog
> index 5b86bbc..f86629d 100644
> --- a/Changelog
> +++ b/Changelog
> @@ -22,6 +22,7 @@ version next:
>  - Heart Of Darkness PAF playback support
>  - iec61883 device
>  - asettb filter
> +- ffmpeg -no_stdin option
>  
>  
>  version 0.11:
> diff --git a/ffmpeg.c b/ffmpeg.c
> index cf53b91..fde004b 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -5804,6 +5804,8 @@ static const OptionDef options[] = {
>        "add timings for benchmarking" },
>      { "benchmark_all", OPT_BOOL | OPT_EXPERT, {(void*)&do_benchmark_all},
>        "add timings for each task" },
> +    { "no_stdin", OPT_BOOL | OPT_EXPERT, {(void*)&using_stdin},
> +      "disable interaction on standard input" },

http://ffmpeg.org/ffmpeg.html#Options-8

>From what I understand -no_stdin would set "using_stdin" to 1, which
seems backward, I suppose you could just add the -stdin option, and
use -nostdin to force it to 0.

Also missing doc/ffmpeg.texi update.
-- 
FFmpeg = Fostering Fabulous Magical Proud Elegant Governor


More information about the ffmpeg-devel mailing list