[FFmpeg-user] drawgraph filter, color formats

Michael Koch astroelectronic at t-online.de
Sun Nov 3 10:39:16 EET 2019

Am 03.11.2019 um 06:55 schrieb Carl Eugen Hoyos:
> Am So., 3. Nov. 2019 um 00:08 Uhr schrieb Michael Koch
> <astroelectronic at t-online.de>:
>> I'm just making some experiments with the drawgraph filter and it took
>> me more than one hour to figure out what was wrong:
>> The colors of the graphs must be specified in format 0xAABBGGRR, but the
>> background color must be in format 0xRRGGBBAA.
>> That's very confusing!
> Sounds like a bug to me but changing the code will break existing scripts;-(

Well, in the documentation is a chapter about colors and the format is 
described as 0xRRGGBB[AA].
However in the documentation for the drawgraph filter is written "The 
color is defined as 0xAABBGGRR". So it's impossible to use the 
predefined colors in this filter.
In the documentation should be a warning that the "bg" parameter must be 
in 0xRRGGBBAA format.
But in my opinion changing the code is the better solution.


More information about the ffmpeg-user mailing list