[PATCH] Add support to loglevel.

Stefano Sabatini stefano.sabatini-lala
Sun Sep 20 01:55:56 CEST 2009


---
 doc/ffplay-doc.texi |   14 ++++++++++++++
 ffplay.c            |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/doc/ffplay-doc.texi b/doc/ffplay-doc.texi
index 2c34890..e39aa72 100644
--- a/doc/ffplay-doc.texi
+++ b/doc/ffplay-doc.texi
@@ -67,6 +67,20 @@ Show the stream duration, the codec parameters, the current position in
 the stream and the audio/video synchronisation drift.
 @item -debug
 Print specific debug info.
+ at item -loglevel @var{loglevel}
+Set the logging level used by the library.
+ at var{loglevel} is a number or a string containing one of the following values:
+ at table @samp
+ at item quiet
+ at item panic
+ at item fatal
+ at item error
+ at item warning
+ at item info
+ at item verbose
+ at item debug
+ at end table
+
 @item -bug
 Work around bugs.
 @item -vismv
diff --git a/ffplay.c b/ffplay.c
index 814efc5..c47c4c2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2487,6 +2487,7 @@ static const OptionDef options[] = {
     { "sync", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_sync}, "set audio-video sync. type (type=audio/video/ext)", "type" },
     { "threads", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" },
     { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
+    { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" },
     { NULL, },
 };
 
-- 
1.5.6.5


--r5Pyd7+fXNt84Ff3--



More information about the ffmpeg-devel mailing list