[FFmpeg-devel] [PATCH] Add support to the loglevel option in ffserver

Baptiste Coudurier baptiste.coudurier
Sat Sep 26 22:10:04 CEST 2009


On 09/26/2009 10:22 AM, Stefano Sabatini wrote:
> On date Sunday 2009-09-20 02:35:10 +0200, Stefano Sabatini encoded:
> [...]
>>   doc/ffserver-doc.texi |   14 ++++++++++++++
>>   ffserver.c            |    1 +
>>   2 files changed, 15 insertions(+), 0 deletions(-)
>>
>> diff --git a/doc/ffserver-doc.texi b/doc/ffserver-doc.texi
>> index 7bdeb6a..0feface 100644
>> --- a/doc/ffserver-doc.texi
>> +++ b/doc/ffserver-doc.texi
>> @@ -245,6 +245,20 @@ Show license.
>>   Show available formats, codecs, protocols, ...
>>   @item -h
>>   Show help.
>> + 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 -f @var{configfile}
>>   Use @file{configfile} instead of @file{/etc/ffserver.conf}.
>>   @item -n
>> diff --git a/ffserver.c b/ffserver.c
>> index 5cbdc39..ed9fe0d 100644
>> --- a/ffserver.c
>> +++ b/ffserver.c
>> @@ -4528,6 +4528,7 @@ static const OptionDef options[] = {
>>       { "version", OPT_EXIT, {(void*)show_version}, "show version" },
>>       { "L", OPT_EXIT, {(void*)show_license}, "show license" },
>>       { "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" },
>>       { "d", 0, {(void*)opt_debug}, "enable debug mode" },
>>       { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" },
>
> Ping?

Sorry, patch ok.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list