[FFmpeg-devel] [PATCH] ffprobe: implement -i FILE option

Stefano Sabatini stefano.sabatini-lala at poste.it
Sun Jun 5 00:10:25 CEST 2011


Useful for mimicing the ffmpeg -i FILE syntax.
---
 doc/ffprobe.texi |    3 +++
 ffprobe.c        |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/doc/ffprobe.texi b/doc/ffprobe.texi
index ee4ffb9..6f7e83b 100644
--- a/doc/ffprobe.texi
+++ b/doc/ffprobe.texi
@@ -108,6 +108,9 @@ multimedia stream.
 Each media stream information is printed within a dedicated section
 with name "STREAM".
 
+ at item -i @var{input_file}
+Read @var{input_file}.
+
 @end table
 @c man end
 
diff --git a/ffprobe.c b/ffprobe.c
index 44252e5..3139c28 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -385,6 +385,7 @@ static const OptionDef options[] = {
     { "show_packets", OPT_BOOL, {(void*)&do_show_packets}, "show packets info" },
     { "show_streams", OPT_BOOL, {(void*)&do_show_streams}, "show streams info" },
     { "default", HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
+    { "i", HAS_ARG, {(void *)opt_input_file}, "read specified file", "input_file"},
     { NULL, },
 };
 
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list