Background color is black instead of default background color
|Reported by:||Indiana Kernick||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
The following snippet has a black background color. It stands out as wrong in the output of the ffmpeg command-line tool.
[libx264 @ 0x7fddb3011a00]
All other text in the output has the default background color but this snippet has a black background color. The background color of the terminal is not necessarily black. It might be gray or some other color.
To be clear:
Black background "\x1B[40m" Default background "\x1B[49m"
"\x1B[49m" should be used instead of
I believe that the snippet is produced whenever the H.264 codec is used. The snippet also has a cyan foreground color so it stands out as the only colored text in the log. I don't have a problem with the foreground color but as I've already said, the background color stands out as very wrong.
Upon checking the version I was using, I found another instance of this issue.
I realise that I should use a single dash but the error message that I got had a black background color.
Unrecognized option '-version'. Error splitting the argument list: Option not found
An even shorter way to reproduce this issue is invoke ffmpeg without an arguments
The message at the end of the log has a black background color.
Use -h to get full help or, even better, run 'man ffmpeg'
To summarise, there are some instances where
"\x1B[40m" is being used when
"\x1B[49m" would be more appropriate.