View Full Version : Easy way to disable filters for portions of the video?
Lyris
16th September 2009, 00:31
Here's my problem: I'm using RemoveDirtMC to kill dirt and scratches on a video transfer. But there are some scenes where this causes artefacts (erasing sparks, etc).
Is there a simple AviSynth command I can feed frame numbers to to disable the filter on specific ranges?
thewebchat
16th September 2009, 01:04
Trim()
MatLz
16th September 2009, 04:24
Yoursource
Cleaned=removedirtmc(yoursource)
Trim(cleaned,0,100)+trim(101,158)+trim(cleaned,159,169).........+trim(xxxxxx,0)
It's just an example of course and more usefull than just 'trim()'
Lyris
16th September 2009, 17:50
Got it - thanks!
stickboy
16th September 2009, 18:44
Or ApplyRange.
Or, if you need to do this a lot, you should use ReplaceFramesSimple from my RemapFrames plug-in (http://www.avisynth.org/stickboy/).
canuckerfan
16th September 2009, 18:55
you could also use condition reader. this also avoids splitting up the video.
Lyris
17th September 2009, 01:27
Stickboy: absolutely perfect, thank you. A nice clean way to get the job done.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.