Commit b8341c59 authored by stefano's avatar stefano

Add support to the -loglevel option.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20035 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 148fa6fb
...@@ -245,6 +245,20 @@ Show license. ...@@ -245,6 +245,20 @@ Show license.
Show available formats, codecs, protocols, ... Show available formats, codecs, protocols, ...
@item -h @item -h
Show help. Show help.
@item -loglevel @var{loglevel}
Set the logging level used by the library.
@var{loglevel} is a number or a string containing one of the following values:
@table @samp
@item quiet
@item panic
@item fatal
@item error
@item warning
@item info
@item verbose
@item debug
@end table
@item -f @var{configfile} @item -f @var{configfile}
Use @file{configfile} instead of @file{/etc/ffserver.conf}. Use @file{configfile} instead of @file{/etc/ffserver.conf}.
@item -n @item -n
......
...@@ -4528,6 +4528,7 @@ static const OptionDef options[] = { ...@@ -4528,6 +4528,7 @@ static const OptionDef options[] = {
{ "version", OPT_EXIT, {(void*)show_version}, "show version" }, { "version", OPT_EXIT, {(void*)show_version}, "show version" },
{ "L", OPT_EXIT, {(void*)show_license}, "show license" }, { "L", OPT_EXIT, {(void*)show_license}, "show license" },
{ "formats", OPT_EXIT, {(void*)show_formats}, "show available formats, codecs, protocols, ..." }, { "formats", OPT_EXIT, {(void*)show_formats}, "show available formats, codecs, protocols, ..." },
{ "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" },
{ "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" }, { "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" },
{ "d", 0, {(void*)opt_debug}, "enable debug mode" }, { "d", 0, {(void*)opt_debug}, "enable debug mode" },
{ "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" }, { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment