How to losslessly replace a specific area in a range of frames I have a short screen recording of an old video game (duration 1:38.72, 2468 frames, 25 fps, 320×200 px, 4 colours only, bgr24, CamStudio Lossless Codec, no sound, AVI).
The video contains an incorrect area (static, 16×16 px, top left corner at [136, 144]) in a range of frames (starting at 0:43.88 and ending at 1:38.44).
I'd like to replace that area in that range with correct data, everything losslessly.
I searched for &quot;replace area in range of frames&quot; on this server but didn't find anything.
Would you know how to do that with free software on Windows please? Maybe FFmpeg?
I don't know if FFmpeg supports the Camstudio Lossless Codec, but if it would. Then replacing the area with a PNG file (hence: adding a logo) could be a solution.
The explanation is done here at &quot;Timing the overlay&quot;.
https://superuser.com/questions/683643/how-to-add-my-logo-for-the-first-30-seconds-in-a-video-with-ffmpeg
In that example codec:a copy was already given (for audio). If you would take any lossless videocodec the result will be lossless.