[FFmpeg-cvslog] ffprobe: make -of an alias for -print_format.

Clément Bœsch git at videolan.org
Tue May 29 18:51:16 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue May 29 18:50:13 2012 +0200| [dae8505492748d619753b1949123a7ca3680cc3d] | committer: Clément Bœsch

ffprobe: make -of an alias for -print_format.

This is for interoperability purpose with the fork.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dae8505492748d619753b1949123a7ca3680cc3d
---

 doc/ffprobe.texi |    2 +-
 ffprobe.c        |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/ffprobe.texi b/doc/ffprobe.texi
index 1f65668..a725c37 100644
--- a/doc/ffprobe.texi
+++ b/doc/ffprobe.texi
@@ -80,7 +80,7 @@ Use sexagesimal format HH:MM:SS.MICROSECONDS for time values.
 Prettify the format of the displayed values, it corresponds to the
 options "-unit -prefix -byte_binary_prefix -sexagesimal".
 
- at item -print_format @var{writer_name}[=@var{writer_options}]
+ at item -of, -print_format @var{writer_name}[=@var{writer_options}]
 Set the output printing format.
 
 @var{writer_name} specifies the name of the writer, and
diff --git a/ffprobe.c b/ffprobe.c
index afc0883..d86ff0b 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1904,6 +1904,7 @@ static const OptionDef options[] = {
       "prettify the format of displayed values, make it more human readable" },
     { "print_format", OPT_STRING | HAS_ARG, {(void*)&print_format},
       "set the output printing format (available formats are: default, compact, csv, ini, json, xml)", "format" },
+    { "of", OPT_STRING | HAS_ARG, {(void*)&print_format}, "alias for -print_format", "format" },
     { "show_error",   OPT_BOOL, {(void*)&do_show_error} ,  "show probing error" },
     { "show_format",  OPT_BOOL, {(void*)&do_show_format} , "show format/container info" },
     { "show_frames",  OPT_BOOL, {(void*)&do_show_frames} , "show frames info" },



More information about the ffmpeg-cvslog mailing list