View Full Version : bad frame removal with avisynth help needed.
thegame
4th July 2011, 00:41
Hi Everyone,
I was wondering if avisynth can help me remove bad frames? here is an example of what I would like to do, let's say that frame # 13588 is bad, I would like to remove it and replace it with 13587, so essentially I would have 2, 13587 frames(13587,13588 same frame) then go to 13589 as normal, I don't want to delete frames because of potential audio sync issues.
Thanks in advance for any and all help.
poisondeathray
4th July 2011, 01:14
http://avisynth.org.ru/badframes/badframes.html
use blend=false for a duplicate of the previous frame
other options: mvtools2 for a motion interpolated frame
Gavino
4th July 2011, 01:24
There's also the internal FreezeFrame (http://avisynth.org/mediawiki/FreezeFrame)().
Your example could be done by
FreezeFrame(13588, 13588, 13587)
but BadFrames is simpler if you have a list of frames to replace.
thegame
4th July 2011, 14:54
Thanks for the info and links, I will look into them.
johnmeyer
4th July 2011, 16:36
Search for filldrops, written by MugFunky. IT does exactly what you want, except that it replaces the frame with a motion-estimated frame. I have used it extensively and it works well in most situations. His function is designed to replace duplicate frames with an estimated frame. You would have to replace his duplicate detection script lines with whatever you are using to detect a bad frame.
If you search on my user name and "filldropsI" you'll find a re-write of MugFunky's function that uses the more modern MVTools2, and will handle interlaced as well as progressive footage (his function is for progressive only).
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.