[FFmpeg-user] Pixel average color filter

Pavel Koshevoy pkoshevoy at gmail.com
Mon Jul 24 06:47:32 EEST 2017

On Jul 23, 2017 11:54 AM, "Mikhail V" <mikhailwas at gmail.com> wrote:

Dear ffmpeg team,

I need a filter which fills output frame with average color of input.
Currently I need it to do row-wise average.

- take first pixel row
- calculate average color in this row and fill output row with this color
- take next row
- repeat same operation
and so for all input frame rows

So the output frame will be filled with the average color of input
frame row-wise.

Is there such filter or something similar so I can get similar results?

Mikhail V
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

Sounds like you could just scale the image horizontally down to 1 pixel


More information about the ffmpeg-user mailing list