[FFmpeg-user] alternating checkerboard

Michael Koch astroelectronic at t-online.de
Tue Feb 9 10:14:41 EET 2021


Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):
> I don't know the details of the filters that work on pixels ('blend', 
> for example). I hope a knowledgeable person will respond with 
> suggestions.
>
> I'd like to experiment with a filter that mixes pixels from 2 
> progressive streams on an alternating checkerboard pattern. Got any 
> suggestions?
>  _________________    _________________    _________________
> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>
>

Have a look at the "maskedmerge" filter. In your case the mergemap file 
would contain a pattern of 0's and 255's. This file can be generated 
with "geq" filter (see the example in chapter 2.107).

Michael



More information about the ffmpeg-user mailing list