ffmpeg video filter with RGB -
i need filter mp4 video ffmpeg using rgb values. example opengl this
void main() {         vec4 color = texture2d(stexture, vtexturecoord);         float colorr = (1.0 - color.r) / 2.0;         float colorg = (1.0 - color.g) / 2.0;         float colorb = (1.0 - color.b) / 2.0;         gl_fragcolor = vec4(colorr, colorg, colorb, color.a);     }   can ffmpeg command ?
if ffmpeg compiled libx264, can use
ffmpeg -i input.mp4 -vf extractplanes=r -c:v libx264rgb -pix_fmt rgb24 output.mp4   you can specify bgr24 or bgr0 (32-bit; has unused 4th channel)
Comments
Post a Comment