I am familiar with the UNIX command jpegtran
which supports the wipe
(1) command line option for JPEG (ITU.81) format.
Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video.
I was wondering if ffmpeg would support the same wipe
implementation for h264 ? I could not find anything related to lossless-editing of video other than this. Looking at the features page, I do not see anything related to 'wipe' or 'mask' image.
I am looking for masking of a rectangular region, replacement color is not important (eg. neutral gray as in jpegtran implementation is acceptable).
(1)
$ man jpegtran [...]
A complementary lossless wipe option is provided to discard (gray out) data inside a given image region while losslessly preserving what is outside:
-wipe WxH+X+Y
Wipe (gray out) a rectangular region of width W and height H from the input image, starting at point X,Y.
Attaching an 'f' character ("flatten") to the width number will cause the region to be filled with the average of adjacent blocks rather than grayed out. If the wipe region and the region outside
the wipe region, when adjusted to the nearest iMCU boundary, form two horizontally adjacent rectangles, then attaching an 'r' character ("reflect") to the width number will cause the wipe region
to be filled with repeated reflections of the outside region rather than grayed out.