Log in

View Full Version : Idea that might work for many artifacts


Witzig
15th January 2015, 11:57
Old video often has many different types of artifacts so I just thought of a solution that might work. It might be useful for someone looking for a new project to start or maybe it already exists. I don't know.

Many artifacts of old footage exist on single or just a couple of frames which got me thinking. There are many frame doubling scripts such as Interframe that work by prediction. Say one has three frames, 1, 2 and 3. And he would use frame 1 and three to predict how frame 2 would look like, just like Interframe does. If he would then compare the prediction frame number 2 with the real frame 2 and see if there are any major differences. If there are real big differences such as artifacts he could use prediction frame 2 instead of the real frame 2 to correct the artifacts.

This would be a problem if there is a shift in scenes between the two frames but this could be solved by not comparing if the frames differ too much.

Would this method work? Does it already exist?

joka
15th January 2015, 13:05
Already exists (MDegrain, RemoveDirtMC)

StainlessS
16th January 2015, 01:17
Generate 1 or more clips of same length as source (using SelectEvery if necessary), and use StackHorizontal/Vertical to view side by side.
Select the prettiest frame and note it down.
Later use either ReplaceFramesSimple (if only a single replacement clip in use) or ClipClop(up to 255 replacement clips).

EDIT: Joka suggestion is quite valid although would affect all frames unless ReplaceFramesSimple or ClipClop used (or Trim).
The suggested interframe method is not a good one, it would use the bad frame as part of the interpolation and
probably just produce multiple bad frame (to some degree). MvTools allows you to 'skip' the problem frame when
generating interpolated frames. My suggestion useful for situation where you try multiple alternative filters(EDIT: or settings).
Also, DoctorFrames script in ClipClop zip allows you to replace a frame with the one before/after it, OR,
to replace with interpolated frame (mvtools), allows interpolation of up to 22 consecutive frames (where bad frames are
not used in interpolation).