digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Problems with interlacing (http://www.digitalfaq.com/archives/avisynth/12238-avisynth-problems-interlacing.html)

Leksa 09-21-2004 02:57 PM

Problems with interlacing
 
Iīm doing a DVD to KVCD conversion of Dracula 2001. The problem is that thereīs combing in the upper parts of the movie and I canīt get rid of it. So now itīs time for you interlacing gurus to step in and give a helping hand how to proceed... :wink:

Hereīs the script i used:

Code:

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
LoadPlugin("C:\Filters25\kerneldeint.dll")
LoadPlugin("C:\Filters25\VSFilter.dll")
#
####
## Main section and static filters ###
MPEG2Source("H:\dracula.d2v")
#SeparateFields()
KernelBob(order=1,sharp=true,threshold=7)
#
#
undot()
asharp(1, 4)
GripCrop(528, 576,source_anamorphic= true, dest_anamorphic= true)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)  ")


Textsub("H:\draku.srt")
GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!

#
#
## Functions ###

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}
 
#
####

SeparateFields()
SelectEvery(4,0,3) # SelectEvery(4,0,3) for bottom field first video (4,1,2)
Weave()


Thanks in advance!

incredible 09-21-2004 04:21 PM

Shure!
You keep your source interlaced as you do all your filtering in a purpose to KEEP the source treaten and kept interlaced!

Get rid of
Code:

KernelBob(order=1,sharp=true,threshold=7)
and ...
Code:

SeparateFields()
SelectEvery(4,0,3) # SelectEvery(4,0,3) for bottom field first video (4,1,2)
Weave()

and use instead just ...
Code:

MPEG2Source("H:\dracula.d2v")
Fielddeinterlace(full=false,blend=false) # or blend = true
....
...
..


Leksa 09-26-2004 12:40 PM

Thanks for the tip Incredible!

Now I got another problem, I can't get the right parameters for the GripCrop- line. I just keep getting an error message: invalid arguments to function "GripCrop". I used FitCD for finding the "right" parameters. What am I doing wrong? :?

Prodater64 09-26-2004 12:47 PM

Quote:

Originally Posted by Leksa
Thanks for the tip Incredible!

Now I got another problem, I can't get the right parameters for the GripCrop- line. I just keep getting an error message: invalid arguments to function "GripCrop". I used FitCD for finding the "right" parameters. What am I doing wrong? :?

Perhaps withdrawing blank spaces inside gripcrop function?

Leksa 09-26-2004 01:25 PM

Quote:

Originally Posted by Prodater64

Perhaps withdrawing blank spaces inside gripcrop function?

Blank spaces or not, the problem still remains.

fabrice 09-27-2004 12:02 AM

Hi,

By default source_anamorphic is true, so you can get rid of this parameter.
You don't have overscan in your parameters. Can you try adding overscan=0, and leave gripcrop line like this:
GripCrop(528, 576, overscan=0, dest_anamorphic=true)

If it don't work, can you post your last script?

Salu2
Fabrice

Peter1234 09-27-2004 12:20 AM

Leksa,
I do not know if this will help, but I always put my functions after the script. You have them before the end of the script. Try moving the last 3 lines before the functions.

Dialhot 09-27-2004 03:42 AM

Functions can be anywhere in the script.

incredible 09-27-2004 05:21 AM

Quote:

Originally Posted by Leksa
.....I can't get the right parameters for the GripCrop- line. I just keep getting an error message: invalid arguments to function "GripCrop". I used FitCD for finding the "right" parameters. What am I doing wrong? :?

Decide WHAT to use:

- GripCrop (where you put your target size just in the GripCrop() line, so GripCrop will find the "right" parameters internally by itself! )

or

- FitCD (where you ONLY use the conventional commands WITHOUT the usage of GripCrop)


So DONT use FitCD parameters WITHIN GripCrop as GripCrop only handles correct mpeg-input-resolutions/output-resolutions

Leksa 09-27-2004 01:04 PM

Quote:

Originally Posted by incredible
Decide WHAT to use:

- GripCrop (where you put your target size just in the GripCrop() line, so GripCrop will find the "right" parameters internally by itself! )

or

- FitCD (where you ONLY use the conventional commands WITHOUT the usage of GripCrop)


So DONT use FitCD parameters WITHIN GripCrop as GripCrop only handles correct mpeg-input-resolutions/output-resolutions

And these are the magic words! You're the man, Inc! Thanks a lot!

Now everything works like charm. Maybe now and in the future I will be able to understand the world of interlacing, KVCD and avisynth a little bit better. :D


All times are GMT -5. The time now is 11:15 PM  —  vBulletin Đ Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.