1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffmpeg: add -(no)stdin option.

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.
This commit is contained in:
Nicolas George 2012-07-11 21:10:17 +02:00
parent 52ab418588
commit 0fe8acf2d6
3 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,7 @@ version next:
- new option: -progress - new option: -progress
- 3GPP Timed Text decoder - 3GPP Timed Text decoder
- GeoTIFF decoder support - GeoTIFF decoder support
- ffmpeg -(no)stdin option
version 0.11: version 0.11:

View File

@ -361,6 +361,14 @@ the encoding process. It is made of "@var{key}=@var{value}" lines. @var{key}
consists of only alphanumeric characters. The last key of a sequence of consists of only alphanumeric characters. The last key of a sequence of
progress information is always "progress". progress information is always "progress".
@item -stdin
Enable interaction on standard input. On by default unless standard input is
used as an input.
Useful, for example, if ffmpeg is in the background process group. Roughly
the same result can be achieved with @code{ffmpeg ... < /dev/null} but it
requires a shell.
@item -debug_ts (@emph{global}) @item -debug_ts (@emph{global})
Print timestamp information. It is off by default. This option is Print timestamp information. It is off by default. This option is
mostly useful for testing and debugging purposes, and the output mostly useful for testing and debugging purposes, and the output

View File

@ -5878,6 +5878,8 @@ static const OptionDef options[] = {
"add timings for each task" }, "add timings for each task" },
{ "progress", HAS_ARG | OPT_EXPERT, {(void*)opt_progress}, { "progress", HAS_ARG | OPT_EXPERT, {(void*)opt_progress},
"write program-readable progress information", "url" }, "write program-readable progress information", "url" },
{ "stdin", OPT_BOOL | OPT_EXPERT, {(void*)&stdin_interaction},
"enable or disable interaction on standard input" },
{ "timelimit", HAS_ARG, {(void*)opt_timelimit}, "set max runtime in seconds", "limit" }, { "timelimit", HAS_ARG, {(void*)opt_timelimit}, "set max runtime in seconds", "limit" },
{ "dump", OPT_BOOL | OPT_EXPERT, {(void*)&do_pkt_dump}, { "dump", OPT_BOOL | OPT_EXPERT, {(void*)&do_pkt_dump},
"dump each input packet" }, "dump each input packet" },