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

Nicolas George nicolas.george at normalesup.org
Wed Jul 11 21:29:33 CEST 2012


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" },
     { "timelimit", HAS_ARG, {(void*)opt_timelimit}, "set max runtime in seconds", "limit" },
     { "dump", OPT_BOOL | OPT_EXPERT, {(void*)&do_pkt_dump},
       "dump each input packet" },
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list