'How to interpolate destoyed frames of video file

I captured a video from an analog source. In the resulting file, frames 1 to 3 are clear, frames 4 to 6 are noisy, frames 7 to 9 clear again, and so on. Is it possible to keep the clean frames and interpolate the noisy ones? For example, using ffmpeg. The following picture illustrates what I am trying to achieve:

improving video



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source