Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > (Auto) Gordian Knot

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th April 2010, 18:03   #1  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
how to remove ghosting, missing frames with gknot / how to make good ivtc

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.

Last edited by rhaz; 19th October 2010 at 17:09. Reason: updated. new problems
rhaz is offline   Reply With Quote
Old 18th April 2010, 18:20   #2  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
Quote:
Originally Posted by rhaz View Post
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.
manono is offline   Reply With Quote
Old 18th April 2010, 18:56   #3  |  Link
CWR03
Custom User Title
 
CWR03's Avatar
 
Join Date: Mar 2005
Posts: 3,739
Try IVTC. Make sure you select "Honor Pulldown Flags" in DGIndex.
CWR03 is offline   Reply With Quote
Old 18th April 2010, 20:05   #4  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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>>

Last edited by rhaz; 5th May 2010 at 08:38.
rhaz is offline   Reply With Quote
Old 19th April 2010, 01:16   #5  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
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
manono is offline   Reply With Quote
Old 19th April 2010, 08:46   #6  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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 -_-
rhaz is offline   Reply With Quote
Old 19th April 2010, 19:32   #7  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
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.
manono is offline   Reply With Quote
Old 20th April 2010, 08:11   #8  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
I cant find that 'C' plugin :/
rhaz is offline   Reply With Quote
Old 20th April 2010, 23:03   #9  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
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.
manono is offline   Reply With Quote
Old 20th April 2010, 23:04   #10  |  Link
CWR03
Custom User Title
 
CWR03's Avatar
 
Join Date: Mar 2005
Posts: 3,739
Maybe you should just throw the video at AutoGK and see if it handles it.
CWR03 is offline   Reply With Quote
Old 21st April 2010, 15:38   #11  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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 :/

Last edited by rhaz; 23rd April 2010 at 07:31.
rhaz is offline   Reply With Quote
Old 22nd April 2010, 22:56   #12  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
Quote:
Originally Posted by rhaz View Post
...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.

Last edited by manono; 22nd April 2010 at 22:59.
manono is offline   Reply With Quote
Old 23rd April 2010, 18:43   #13  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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.
rhaz is offline   Reply With Quote
Old 23rd April 2010, 22:28   #14  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
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!
manono is offline   Reply With Quote
Old 25th April 2010, 21:49   #15  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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
rhaz is offline   Reply With Quote
Old 25th April 2010, 23:54   #16  |  Link
CWR03
Custom User Title
 
CWR03's Avatar
 
Join Date: Mar 2005
Posts: 3,739
What version of Xvid are you using?
CWR03 is offline   Reply With Quote
Old 26th April 2010, 11:53   #17  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
CWR03 its Xvid 1.2.1 and why fps drops from 25.000 to 23.976?

Last edited by rhaz; 26th April 2010 at 22:44.
rhaz is offline   Reply With Quote
Old 27th April 2010, 00:41   #18  |  Link
CWR03
Custom User Title
 
CWR03's Avatar
 
Join Date: Mar 2005
Posts: 3,739
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.
CWR03 is offline   Reply With Quote
Old 28th April 2010, 12:38   #19  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
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?
rhaz is offline   Reply With Quote
Old 28th April 2010, 13:29   #20  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,249
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.
Quote:
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.
Quote:
...how to fix that?
It's not broken. There's nothing to fix.
Quote:
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.
manono is offline   Reply With Quote
Reply

Tags
deinterlace, ghosting, interlace, shifted field

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.