ffmpeg convert non transparent pixel to white I'm trying to convert all non-transparent pixels of an image to white using the geq filter in ffmpeg:
ffmpeg -y -i in.png -vf "format=rgba,geq='r=if(lt(alpha(X,Y),10),255):g=if(lt(alpha(X,Y),10),255):b=if(lt(alpha(X,Y),10),255):a=alpha(X,Y)'" x.png


But ffmpeg is giving me black pixels instead of white. Any ideas what is going on?

in.png: 



out.png:
The two operand if expression returns 0 if the condition isn't met. You need the three operand version.

if(lt(alpha(X,Y),10),255,p(X,Y))