[FFmpeg-devel] [PATCH] add colours to warnings and errors

Sebastian Vater cdgs.basty
Thu Apr 22 12:14:34 CEST 2010


Hey to all!

Vladimir Pantelic a ?crit :
> David Conrad wrote:
>> What about AV_LOG_FATAL?
>>
>>>  while RED and YELLOW might look good on a dark background (yes I know,
>>>  if I don't run my term in green on black I'm a useless n00b anyway)
>>>  yellow might not come out well for "black on white" setups ...
>>
>> The current code adds a black background.
>>
>> As long as we're bikeshedding, I want it not to change the
>> background, the entire line be in bold, and only the "[%s @ %p]" be
>> colorized if present.
>
> blink, slow or rapid? :)
My idea:

AV_LOG_FATAL: red blinking
AV_LOG_ERROR: red
AV_LOG_WARN: yellow

Regarding changing the background, we yesterday discussed in
#ffmpeg-devel that it's maybe the best idea to implement some high
contrast algorithm.

Another option would be one being able to set color with configure...

Sth. like that?
../configure --warn-fg-color=2 --warn-bg-color=3 --err-fg-color=4
--err-bg-color=5 --fatal-fg-color=6 --fatal-bg-color=7

-- 

Best regards,
                   :-) Basty/CDGS (-:




More information about the ffmpeg-devel mailing list