PDA

View Full Version : Replacing single frames


lupus11
13th March 2006, 18:21
Hello avisynth experts,

is there a possibility in avisynth to dynamically replace single frames with their previous frame, based on the frame content ?

Sounds complicated ? Well, I rushed over an old VHS captured video, that due to slow capture hardware has now and then dropouts that result in completely empty pure blue frames.
This is very disturbing, when watching the video. So I thought there should be a possibility to replace these frames by copies of there previous frames which would result in small stuttering but not in blue flashes during the video ? I have done quite some processing (filtering cutting rendering) with avisynth over the last few years, but I have no clue if my current problem can be fixed with this fantastic tool. Can anybody help me or just confirm that it will not work.

Thank you in advance
lupus

unskinnyboy
14th March 2006, 15:45
You could remove those frames containing the blue flashes, which would be a better option I think.

For e.g: If frames 101, 205, 336 & 445 are the ones with the blue flashes, then:

Trim(0,100)+Trim(102,204)+Trim(206,335)+Trim(337,444)+Trim(446,..)

You get the idea..[?]

MOmonster
14th March 2006, 16:29
It should be no big deal to create a small function for your problem, but I have no pc I can work with before next week.
So or so a small sample would be nice.