[FFmpeg-trac] #8587(ffmpeg:new): Background color is black instead of default background color
FFmpeg
trac at avcodec.org
Sun Mar 29 08:22:49 EEST 2020
#8587: Background color is black instead of default background color
-----------------------------------+----------------------------------
Reporter: Kerndog73 | Type: defect
Status: new | Priority: minor
Component: ffmpeg | Version: 4.2
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+----------------------------------
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 `"\x1B[40m"`.
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.
{{{
ffmpeg --version
}}}
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
}}}
[[Image(https://i.imgur.com/AwcCmhl.png)]]
----
An even shorter way to reproduce this issue is invoke ffmpeg without an
arguments
{{{
ffmpeg
}}}
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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8587>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list