View Full Version : how to remove ghosting, missing frames with gknot / how to make good ivtc
rhaz
18th April 2010, 18:03
hi, i am a new user here and i found these forums through google in search of a solution for my problem.
i want to make a dvdrip from a dvd disc, but i get that rip with some bad quality with ghosting in entire movie. here's a screenie:
<<edited>>
the dvd source is dvd5 and its interlaced. i use gknot. progressive source dvds rips are fine. i tried kernel deinterlace, field deinterlace and field deinterlace (no blend) - same result - ghosting.
so i wonder is that possible to remove that ghosting or is there no way to do that? please help. thank you.
manono
18th April 2010, 18:20
so i wonder is that possible to remove that ghosting or is there no way to do that?.
If it's a result of a PAL2NTSC or NTSC2PAL conversion using field blending, then you use an unblender on it, ones such as RePAL or SRestore. To be sure though, we'll need a small piece of the source, maybe 10 seconds showing steady movement. A picture alone is next to useless.
CWR03
18th April 2010, 18:56
Try IVTC. Make sure you select "Honor Pulldown Flags" in DGIndex.
rhaz
18th April 2010, 20:05
i don't quite understand what you mean manono 'result of a PAL2NTSC or NTSC2PAL'. i just demux dvd to m2v with pgcdemux and rip it with gknot to .avi. the dvd is pal. settings are the same you said CWR03.
the source/sample <<edited>>
manono
19th April 2010, 01:16
I said 10 seconds was plenty and you give me 47 seconds with 3 unneeded audio tracks still attached. It's field blended NTSC to PAL and this handles it fine:
Yadif(Order=1,Mode=1)#or your favorite bobber
SRestore()
You'll have to edit the GKnot produced AviSynth script to add in the new filters before sending it to be encoded:
http://forum.doom9.org/showthread.php?t=95924
http://avisynth.org/mediawiki/Srestore
rhaz
19th April 2010, 08:46
Okay... I read both links you gave and I have no idea how to make it work, where is that script at all and where to put those files... yea I am a newbie -_-
manono
19th April 2010, 19:32
Here's a sample script:
LoadPlugin("C:\Path\To\DGDecode.dll")
LoadPlugin("C:\Path\To\MaskTools2.dll")
LoadCPlugin("C:\Path\To\Yadif.dll")
LoadPlugin("C:\Path\To\TIVTC.dll")
LoadPlugin("C:\Path\To\Average.dll")
LoadPlugin("C:\Path\To\RemoveGrain.dll")
Import("C:\Path\To\SRestore.avs")
MPEG2Source("C:\Path\To\Movie.d2v")
Yadif(Order=1,Mode=1)
SRestore()
Note that for Yadif you're loading a 'C' plugin. It can be found here:
http://avisynth.org/warpenterprises/
The other needed filters you either already have because of GKnot, or are linked at the AviSynth SRestore page. Test your scripts in VDub(Mod), and if you get errors you don't understand or can't fix, report them together with the complete script you're using.
rhaz
20th April 2010, 08:11
I cant find that 'C' plugin :/
manono
20th April 2010, 23:03
It's regular old Yadif for which I gave you the link. You just have to write in 'LoadCPlugin' instead of the regular 'LoadPlugin'. Actually, there are 2 ways to load Yadif. Read the enclosed doc for more information.
CWR03
20th April 2010, 23:04
Maybe you should just throw the video at AutoGK and see if it handles it.
rhaz
21st April 2010, 15:38
ok there's a script:
LoadPlugin("C:\Program Files\GordianKnot\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\UnDot.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\mt_masktools-25.dll")
LoadCPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\Yadif.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\TIVTC\TIVTC.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\Average_v11\src\Release\Average.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\RemoveGrain.dll")
Import("C:\Program Files\GordianKnot\AviSynthPlugins\SRestore.avs")
MPEG2Source("C:\movie\VideoFile.d2v")
Yadif(Order=1,Mode=1)
SRestore()
mpeg2source("C:\movie\VideoFile.d2v")
crop(2,72,716,430)
LanczosResize(640,256)
Undot()
and the final result is 1.05gb instead of 700mb :/
manono
22nd April 2010, 22:56
...and the final result is 1.05gb instead of 700mb :/
Since the original question was about the ghosting, can we assume there's no more (or very little) ghosting remaining? You have 2 MPEG2Source lines in there and I'm not sure what happens there. In any event, the second one should have been removed.
And now you're switching questions to one about why you came out oversized? If so, post the log.
Oh, and the next time you post a GKnot generated AviSynth script, delete all lines beginning with '#' since they've been commented out and do nothihng.
rhaz
23rd April 2010, 18:43
ok i removed that second line as you told and reriped and its all fine, no ghosting, good size. thanks manono for lots of help. really thank you.
manono
23rd April 2010, 22:28
Oh, so it was the second MPEG2Source line that was responsible somehow for ballooning the size? Yeah, your script looks good now. And by removing the commented out lines it makes it easier for you to understand that's going on. Good going!
rhaz
25th April 2010, 21:49
okay im here again. seems its not all. im still having problems with the size. i tried to rip another movie with size settings 700mb and i got first time 838mb and another time 752mb. why?
LoadPlugin("C:\Program Files\GordianKnot\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\UnDot.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\mt_masktools-25.dll")
LoadCPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\Yadif.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\TIVTC\TIVTC.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\Average_v11\src\Release\Average.dll")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\RemoveGrain.dll")
Import("C:\Program Files\GordianKnot\AviSynthPlugins\SRestore.avs")
mpeg2source("C:\movie\VideoFile.d2v")
Yadif(Order=1,Mode=1)
SRestore()
crop(14,0,692,572)
LanczosResize(480,368)
Undot()
and here is the log file: http://pastebin.com/BCRhEN3H
CWR03
25th April 2010, 23:54
What version of Xvid are you using?
rhaz
26th April 2010, 11:53
CWR03 its Xvid 1.2.1 and why fps drops from 25.000 to 23.976?
CWR03
27th April 2010, 00:41
Try simply running your source through DGIndex and set Video > Field Operation > Honor Pulldown Flags, then in Gordian Knot use Kernel Deint, but click Edit and change the line "KernelDeInt(order=1,sharp=true)" to read "KernelDeInt(order=0,sharp=true)". You should get smooth playback and no blended frames.
rhaz
28th April 2010, 12:38
ok thanks for info CWR03 but which script makes fps to drop from original 25fps to 23fps? and why so and how to fix that? i mean, how to keep original 25fps?
manono
28th April 2010, 13:29
Both scripts change the framerate from 25 to 23.976fps because the DVDs took an NTSC film source and converted it to PAL DVD by field blending it. Are you sure the second one is of the same type as the first? You should only use scripts like that if you know what you're doing. If you're not sure what you have, post another sample.
which script makes fps to drop from original 25fps to 23fps?
After bobbing the source, the default behavior for SRestore with a PAL DVD is to return a 23.976 framerate.
...how to fix that?
It's not broken. There's nothing to fix.
i mean, how to keep original 25fps?
Because an NTSC film master was used for the PAL DVD, the original framerate is 23.976. I thought you were complaining about the ghosting. It was caused in the increase from 23.976fps to 25fps. SRestore removed the blending and restored it to the original 23.976fps. Is there something wrong with that? Or do you prefer the blending? If so, just deinterlace it.
here is the new source sample:
<<edited>>
i did use same script as previous and everything seems to be fine but when watching .avi its like lagging, i mean that the frames are missing or something. and do you know how to fix that and is it possible to keep it at 25fps?
manono
4th May 2010, 11:22
I hate MegaUpload with a passion. I can't even get this sample. Unless you're willing to upload to a better site (Sendspace, MediaFire), someone else will have to help.
I was bombarded with threat alerts when I tried to get the file.
Did you try what I suggested before? I had no trouble getting a smooth 25fps file.
CWR03 do you mean "KernelDeInt(order=0,sharp=true)"? It will deinterlace and remove ghosting? and keep it at 25fps?
i failed to upload to SendSpace or Mediafire so there's Rapidshare: <<edited>> (first sample you downloaded from megaupload ;))
CWR03 do you mean "KernelDeInt(order=0,sharp=true)"? It will deinterlace and remove ghosting? and keep it at 25fps?
I guess that's a "no" to my question of whether or not you tried it.
manono
5th May 2010, 05:03
The second sample isn't field blended and using SRestore on it wrecks it (as you discovered, there's a unique frame missing every second). It just has phase-shifted fields and just needs to have the fields realigned. Using Decomb from the GKnot script, a simple:
Telecide(Guide=2)
will fix it.
actually i tried that KernelDeInt(order=0,sharp=true) and it worked fine ;) no ghosting no interlacing.
thanks for help for both of you ;)
manono could write a small guide how to identify what source is what and what does it need to make good rip ;)
thanks again!
manono
5th May 2010, 10:59
actually i tried that KernelDeInt(order=0,sharp=true) and it worked fine ;)
No it didn't; it deinterlaced it, a very bad thing to do when it's not necessary. A field matcher (Decomb's Telecide or TIVTC's TFM) is a much better way to go as it'll restore the original progressive frames without the damage a deinterlacer does.
manono could write a small guide how to identify what source is what and what does it need to make good rip
No. Separate the fields or put on a bobber and have a look. In your first example doing that would have showed you the blended fields, an indication that no IVTC will work. With your second example separating the fields will show you each field being followed by a duplicate field, a sure indication it's not really interlaced, but just needs the fields realigned.
rhaz
19th October 2010, 13:45
fixed
<edited>
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.