Log in

View Full Version : A filter to manually specify a frame to be copied?


MDLuffy
6th June 2009, 03:15
Hello, I'm working with a cartoon and am using TIVTC to convert it from 29.970 FPS to 23.976 FPS. It's working great, but the source has a 2-3 really nasty frames scattered throughout the episode I'd like to duplicate from another frame somehow so that I can get rid of them. What I'd like to do is manually specify somehow or another to copy say frame 1532 (good frame) to frame 1533 (bad frame). In this particular instance, the frames are both still frames containing the same thing (except one frame is good and one is messed up). Does that make sense? If so, is there some way I can specify in my Avisynth script to do this, or is it not possible?

Guest
6th June 2009, 04:09
That's easy:

FreezeFrame (clip, int first_frame, int last_frame, int source_frame)

The FreezeFrame filter replaces all the frames between first_frame and last_frame with a copy of source_frame.

So, to copy frame 1532 (good frame) to frame 1533 (bad frame):

FreezeFrame(1533,1533,1532)

MDLuffy
6th June 2009, 04:30
I knew there had to be an easy way to do it, but I couldn't find anything when I searched. That works perfect though neuron2--exactly what I was looking for. Thanks!