Log in

View Full Version : deinterlacing & hdragc issues


EuropeanMan
1st August 2007, 18:01
hi guys,

i'm having problems properly deinterlacing & using hdragc on a terrible source (movie: Vivah ...2006 release...dvd9 region free)

i'm attaching my script below & also links for dvd9 sample & my test output.

DVD9 sample: http://maxupload.com/0753B0AF

test # 2 output: http://maxupload.com/853F7B86

script:

SetMemoryMax(1024)

DGDecode_mpeg2source(MOVIE,cpu=2,info=3)

ord = last.getparity() ? 1 : 0
leakkernelbob(order=ord,threshold=5,map=false)
RePal()

Vinverse()

...other script here
HDRAGC(min_sat=0.0,max_sat=2.0,coef_sat=1.15,min_gain=0.0,max_gain=1.0,coef_gain=.1)
...other script here related to HDRAGC

crop( 2, 62, -6, -62)
Lanczos4Resize(704,304)

aux=DeGrainMedian(mode=0, limity=7, interlaced=true)
VagueDenoiser(auxclip=aux,wiener=true)

...sharpening...

------------------

in the test output, you'll see green frames...then regular output...i'm scratching my head as to why.

if i can get some suggestions, would really be helpful. - Farooq

EuropeanMan
1st August 2007, 18:03
Also this source (dvd9) has colour bleeds & blending problems...which i think i've tried to rectify to NO real end :(

Guest
2nd August 2007, 02:50
Just serving with DGDecode and no other filters...I get no green frames. So start adding the filters one-by-one until the problem occurs. Then you will know which one is at fault. I can't help you with the blended fields because I hate that damn stuff and won't spend even a second bothering with it. :devil:

yimmie
4th August 2007, 21:43
About deinterlacing, in the past I used SmartDeinterlacer filter, but the threshold needed to be only 7 and even then the picture had those typical small left-behinds on some places, especially darker ones, and also, the overall picture was not 'calm' - i.e. an always present 'background' clutter.

So at some point, I used the filter only for stills, and used the common deinterlacer, blending the two fields together.
But sometimes, the 'interlacing' is restorable, the telecide filter.
Alot series/movies can so be deinterlaced without any vertical resolution loss.

But, I see alot material that seem to have occasional (ex 1 out of 5) intact frames (no artefacts), and where the telecide filter works for more, but still outputs so many interlaced ones that it is still far from an option to use it for video.

Also, it occurs (but very very rare) that, playing with Smart Deinterlacer's Advanced Processing settings, restores the original frame everytime, sometimes even in combination with telecide.

So I started to wonder: when frames regularly have no interlacing artefacts, would it be possible that some more complex field/frame manipulation (with Avisynth) can reconstruct all frames to original?

And if that is the case, are there known manipulation sequences that are likely to reconstruct most material?
Or are there so many possible messing up reasons and ways that it's mostly a waste of time or the amount manual work to try to find it out isn't worth it?

Guest
5th August 2007, 01:24
There are no recipes that work for everything. You have to study the specific source material by stepping through the fields to determine the required treatment.

EuropeanMan
6th August 2007, 18:15
Ok I think I have solved the deinterlacing issues now.

However, I am using a different HDRAGC command line now with different parameters that is refusing to work because:

HDRAGC(B,avg_lum=1078,mode=2,passes=4,shift_u=-15, shift_v=6,protect=2,coef_gain=0.22,max_gain=4.0,corrector=0.8,reducer=1.1,avg_window=30,black_clip=0.3,min_sat=0.4, max_sat=16, coef_sat=1.0)

passes, shift u & v, reducer are NOT recognised for whatever reason...it errors out in AVSp. Why? I have version 1.8.7...of agc!

~bT~
7th August 2007, 11:22
Ok I think I have solved the deinterlacing issues now.

However, I am using a different HDRAGC command line now with different parameters that is refusing to work because:

HDRAGC(B,avg_lum=1078,mode=2,passes=4,shift_u=-15, shift_v=6,protect=2,coef_gain=0.22,max_gain=4.0,corrector=0.8,reducer=1.1,avg_window=30,black_clip=0.3,min_sat=0.4, max_sat=16, coef_sat=1.0)

passes, shift u & v, reducer are NOT recognised for whatever reason...it errors out in AVSp. Why? I have version 1.8.7...of agc!
Whats the bit in red?

EuropeanMan
7th August 2007, 11:30
B, is a variable...

B=last
this is part of a 4-line script...

~bT~
7th August 2007, 11:32
^ should it be there..

EuropeanMan
8th August 2007, 00:19
i have a 4 line script, it will NOT work with or without 'B'.
the list of called arguments for AGC refuse to work.

superuser
8th August 2007, 03:14
^ should it be there..

If he is not modifying the clip thab "B" is not needed and will perform on "last"

i have a 4 line script, it will NOT work with or without 'B'.
the list of called arguments for AGC refuse to work.

hmm, it works for me fine. R u using Vista or some special environment? I m using avisynth 2.5.6, no MT plugin and works as champ on XP.

EuropeanMan
8th August 2007, 04:41
I am on Vista Ultimate, with MT plugins 2.5.6avisynth

superuser
8th August 2007, 04:48
^ u should pose this question in the hdragc thread itself. not sure how compatible are hdragc and mt are? may be rfmmars or peviko can help you out on this!

EuropeanMan
8th August 2007, 04:50
thanks superuser...will do.

i so really badly want to see this work :(