Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x

Fix interlaced footage previously saved as progressive?

20 Replies, 14770 Views

Just wondered if anyone can chime in and let me know if it is an any way possible to fix progressive footage that wasn't properly IVTC or de-interlaced before.

I have a lot of frames that look like this:

[Image: ZUak59n.jpg]

My gut tells me no, but I know the avisynth wizards may have some tricks I don't know about.
(This post was last modified: 2017-03-16, 10:21 AM by Booshman.)
Hi, post a sample clip please and I'll have a look.
Here you go, cheers.

(This post was last modified: 2017-01-02, 04:35 PM by Booshman.)
Yes it can be corrected somewhat. It's a motion-adaptive transfer or standards conversion of some kind, not the result of NTSC pulldown. There are no repeated fileds, they've interpolated new frames into the movie. Your clip has not been deinterlaced which is good. Here is the method I found that works perfectly for this clip (restores to 24.000fps):

mpeg2source("ABC RIC 2.d2v")


Function FixBlend(clip orig){
  return last

Further info on that method is here. I can't tell with the short clip whether to go to 24.000 or 23.976fps, that's something you'll need to figure out by trial and error. Basically just change the line AssumeFPS(60000,1001) to AssumeFPS(60) and check which version stays in sync longer. If AssumeFPS(60) does then add the line AssumeFPS(24000,1001) to the end of the script. You'll also need to find the correct value for FixBlend (try selectevery(4,0) ... (4,1) ... (4,2) ... (4,3) until you find the right value), and you'll probably need to call the function two times as it'll likely loose sync at some point (I know where it looses sync when going to 25.000 fps, but I'm not sure about 24.000 fps), meaning you'll need to do something like this:

Part1 ++ Part2


Actually it doesn't do a perfect job for this clip, this fixes it:

trim(0,840).FixBlend(0) ++ trim(841,0).FixBlend(2)

Function FixBlend(clip orig, int n){
   return last

Given the change in synchronicity in such a short clip it could indicate that you'd have to go through the whole movie splitting it into 20 second chunks or something and switch the select every value. Still, it is doable.
(This post was last modified: 2017-01-03, 10:18 AM by Valeyard.)
Thanks very much for all the info, that's a lot to get my head around!

Maybe a very noobish issue, but I'm having trouble just getting the plugin to load. I'm getting error:

Avisynth open failure:
FFT3DFilter. Can not load FFTW3.DLL!
(QTGMC.avsi, line 467)
("I:\vdub\fixRIC.avs, line 13)

I've tried to fix it by manually loading the plugin in the code, like this, but still no luck:

DGDecode_mpeg2source("I:\vdub\ABC RIC 2.d2v")

I've looked online but can't find a solution, any idea where I'm going wrong?
I suspect the problem is you're using virtualdub. Load it up in AvsPmod.

Here's my complete plugins folder: https://mega.nz/#!PU8WUZZR!lHjC5YzQ4bNuX...IJLnwh3eio
Thanks for all the plugins. I gave it a go and I got the same error in AvsPmod.
Here are the versions in my SysWOW64 folder:


Rename your existing files and use those. Also, if they exist in the System32 folder delete them.
(2017-01-05, 02:47 AM)Valeyard Wrote: Here are the versions in my SysWOW64 folder:


Rename your existing files and use those. Also, if they exist in the System32 folder delete them.

Thanks again for the assistance. I know there is something not right but damned if I know what it is. I put those in the SysWOW64 folder and removed the one from the system 32 folder. I get the same error message as before. Do I need to load the plugin manually? I have an issue with mpeg2source, which only works if I put

Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode\DGDecode.dll") at the beginning.

I've tried adding :


but this results in errors too.

If I use the code without the line, QTGMC(Preset="Placebo",TR2=0,NoiseProcess=2,NoiseRestore=0.3,GrainRestore=0.8), the video then opens. So I know the only issue within the script now is getting the FFTW3.dll to load.
The only reason why you need to load DGDecode.dll is if it isn't in the avisynth folder (which, by the way it wasn't in the plugins I sent you - you find it, of course, in the folder with the DGDindex program that you use to make the .d2v file). If you put DGDecode.dll into the avisynth folder it should load automatically. I have a feeling you're using the wrong folder, my folder is C:\Program Files (x86)\AviSynth\plugins\ and I'm running version 2.60. You can tell what folder is being used because it will lock the files. Although it should certainly work if you launch the file explicitly. It could also be an issue if you're running the MT version or 2.58... you can always uninstall and re-install avisynth though. And I'm pretty sure that if you did that you'd find it installs to C:\Program Files (x86)\AviSynth not C:\Program Files (x86)\AviSynth 2.5.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Don't capture interlaced video in 4:2:0 TomArrow 9 3,902 2019-04-22, 11:49 PM
Last Post: spoRv
Photo Deriving a method for aligning footage Synnove 7 5,151 2017-12-01, 01:04 AM
Last Post: Chewtobacca

Users browsing this thread: 1 Guest(s)