[FFmpeg-user] Problem with colorhold filter

Edward Park kumowoon1025 at gmail.com
Sat May 16 22:35:26 EEST 2020


Hi,

I think this might have been a typo? in vf_colorkey.c:48 the "diff" isn't normalized to 0 - 1, but to 0 - 3.
double diff = sqrt((dr * dr + dg * dg + db * db) / (255.0 * 255.0));

changing it to 
double diff = sqrt((dr * dr + dg * dg + db * db) / (3 * 255.0 * 255.0));
seems to fix it for me.

Regards,
Ted Park



More information about the ffmpeg-user mailing list