View Full Version : To many artifacts. Need the suitable filters!!


plomon
30th January 2006, 03:50
Here are a few caps from 'The Silence of the Lambs'. Please suggest the suitable filters to eliminate them

Cap1
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap1.jpg


Cap2
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap2.jpg

Cap3
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap3.jpg


Cap4
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap4.jpg


Cap5
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap5.jpg

Revgen
30th January 2006, 04:00
These captures look predenoised.

I don't know if there is any way to make them look natural again.

plomon
30th January 2006, 04:06
These captures look predenoised.

I don't know if there is any way to make them look natural again.
what do you mean by predenoised. I haven't applied any noise filters. These caps are taken from VDubMod consisting the following script:

LoadPlugin("d:\program files\avisynth 2.5\plugins\TomsMoComp.dll")
mpeg2source("e:\sol\sol.d2v")
TomsMoComp(1,5,1)
Crop(4,14,-8,-14)
LancZosResize(640,344)

The only filter I applied before taking the captures is the TomsMoComp filter. However, despite the application of this filter(to remove interlacing), I still find a lot a artifacts(as shown in the above pictures).

There must be some way out.

foxyshadis
30th January 2006, 05:04
Not denoised by you. Denoised by the studio. This is the original movie, correct? 60's and 70's stock already smears a bit, and tends to be grainier than modern stock. If they used something like very strong smart smoother + strong temporalsoften on it in a misguided attempt to denoise it for dvd transfer, they've destroyed almost all detail across the film. It might as well be anime now.

There's no way to restore it, beyond reducing blocking and haloing. Find another release if you want anything better.

plomon
30th January 2006, 05:33
yes it the original movie. It was released very recently. It's theatrical release was in 1991. The DVD that I've now must had been released somewere around 2001, as it contains Dolby Surround 5.1 and DTS 5.1 tracks unlike it's previous DVD Releases which have only Dolby 2.0 track(refer here (http://www.imdb.com/title/tt0102926/dvd)).

So, it actually doesn't belong to the 60's or 70's category as it appears in these caps.

The video before applying the TomsMoComp filter has an Interlaced look. After applying TomsMoComp filter, it looked a little better.

Here's a small sample:

Before applying TomsMoComp Filter:
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap09.jpg

After applying TomsMoComp Filter:
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap10.jpg


Since TomsMoComp filter has succesfully created some difference, I'm unable to agree with the fact that other filters can't help in enhancing the picture in a better way.

There must be some way out.

foxyshadis
30th January 2006, 06:07
Definitely turn vertical blur (the third parameter) off. The second really looks like it's been hit by a hard sharpen filter. Still, the first looks very fuzzy, as if it's slightly out-of-focus, but doesn't have the cartoony xsharpen look of the other.

I should ask, you've already tried to IVTC this and failed for some reason? I can't think why a theatrical release would need plain deinterlacing.

plomon
30th January 2006, 06:58
Definitely turn vertical blur (the third parameter) off. The second really looks like it's been hit by a hard sharpen filter. Still, the first looks very fuzzy, as if it's slightly out-of-focus, but doesn't have the cartoony xsharpen look of the other.

I should ask, you've already tried to IVTC this and failed for some reason? I can't think why a theatrical release would need plain deinterlacing.
I did not use any IVTCing through AVISynth. The only IVTC I made is using Forced Film in DVD2AVI for saving the .d2v project. I think you're quite confused about 'why I used IVTC in DVD2AVI'. I guess I made a mistake there. I used 'Forced Film' for an Interlaced NTSC source. It's a big mistake.

I changed the d2v file now. I saved it without 'Forced Film' now. Thereafter, I applied same filter to remove interlacing artifacts and for 2:3 pulldown(IVTC).

Am I correct now ??

Revgen
30th January 2006, 07:08
Well if "Forced Film" isn't doing the job then you need to try avisynth filters like TIVTC or Decomb.

plomon
30th January 2006, 07:30
Well if "Forced Film" isn't doing the job then you need to try avisynth filters like TIVTC or Decomb.
What does a 'Forced Film' do ? It can IVTC an NTSC 29.97 source to 23.976 film. That's it. Isn't it ??

Can it improve the quality of my picture. I mean can it remove the artifacts shown in the above pictures. Even if I used a 'Non Force Film' option in DVD2AVI or DGIndex and saved my .d2v file, and then opened this non-IVTCed project in VDubMod using AVISynth, it does nothing to improve the quality of image.

"Even after opening a non-IVTCed .d2v project, I need to use some De-Interlacer like TomsMoComp to reduce the Interlacing Artifacts"

Anybody please tell me, is the above statement true or not(atleast after seeing the caps in Post#5) ??

foxyshadis
30th January 2006, 07:56
What revgen means is that you should skip force film and add an ivtc to the filter chain. They can typically do a better job of matching and removing artifacts, because force film doesn't work for all sources. In fact this DVD might be coded as a pure 30p video in which case force film has zero effect, and you have to IVTC anyway.

In this case you do not apply deinterlacing directly, you apply an IVTC with post-processing (or feed it a deinterlaced clip to pull from).

plomon
30th January 2006, 08:15
What revgen means is that you should skip force film and add an ivtc to the filter chain. They can typically do a better job of matching and removing artifacts, because force film doesn't work for all sources. In fact this DVD might be coded as a pure 30p video in which case force film has zero effect, and you have to IVTC anyway.

In this case you do not apply deinterlacing directly, you apply an IVTC with post-processing (or feed it a deinterlaced clip to pull from).
I think revgen is correct. Now, I'm using DGIndex v1.4.5 to save my project with 'No Force Film' settings. Then, I will have to IVTC this .d2v project using AVISynth filters. Can you guys suggest the best filter for IVTCing the NTSC Interlaced sources like mine.

I found two articles on the net describing two different methods of IVTCing an Interlaced NTSC source. They can be found here:

Performing IVTC Using AVISynth filters: http://www.inmatrix.com/articles/ivtcsynth.shtml

Performing IVTC Using TMPGEnc: http://www.inmatrix.com/articles/ivtc.shtml

Please do suggest the best method.

Now, after IVTCing the source using AVISynth filters, if I fail to agree with the image quality, what is the next alternative for quality enhancement. Should I opt for de-interlacing techniques then(like using TomsMoComp) at the least.

I said 'at the least', coz quality enhancement has no limits for trying our best with the AVISynth Filters, and I believe 'de-interlacing is the first step followed by other filters like noise removal, smoothening, sharpening etc..

foxyshadis
30th January 2006, 10:16
First try following that article. Add Telecide() and Decimate(), if you have problems add post=true and the other options. If it's still combed or jerky try TIVTC, which is slightly smarter by default and has many more options for repairing bad telecines. Or just try TFM and TDecimate (from TIVTC) first, they're my favorites.

Heh, you definitely won't need smoothing or noise removal, and you'll have to be very careful sharpening...

Mug Funky
30th January 2006, 10:20
this (to me) looks like you've got a filter running that you don't know about. are you grabbing these frames from virtualdub? if so, are there any filters running inside it? do the input and output panes look identical? or am i barking up the wrong tree? :)

plomon
30th January 2006, 10:38
this (to me) looks like you've got a filter running that you don't know about. are you grabbing these frames from virtualdub? if so, are there any filters running inside it? do the input and output panes look identical? or am i barking up the wrong tree? :)
I'm not grabbing frames from VDub, and neither are any filters running in the background.

@foxyshadis
I used the following script to IVTC the NTSC Interlaced Source and applied certain other filters too:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warp\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\Convolution3d.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\Deen.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\NoMoSmooth.dll")

mpeg2source("e:\sol\sol.d2v")
Telecide(Order=1,Guide=1,Post=0).Decimate()

ConvertToYV12()
Deen("c3d",0,10,12,3)

ConvertToYUY2()
Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
NoMoSmooth(motion_threshold=40, temporal_radius=1,temporal_threshold=6,spatial_radius=1,spatial_threshold=3,show=false)

WarpSharp (128, 3,128, -0.6)

Crop(4,14,-8,-14)
LancZosResize(640,344)

I'm quite satisfied with the way DeComb filter is performing the IVTC operation using Telecide() and Decimate() functions.

The result is good too. Watch the comparision here

Capture using IVTC on d2v project saved as 'No Forced Film' in DGIndex:
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap11.jpg

Captured without using IVTC on d2v project saved as 'Forced Film' in DGIndex:
http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap2.jpg

I observed some noticeable change. Hope u can observe it too.(watch the face of the person in the above captures). However, since you're suggesting TIVTC, I'll try that too.

I used the other filters(apart from IVTC one's) hoping to enhance the picture quality. If you find any mistakes in using them, please suggest a solution.

Didée
30th January 2006, 10:56
For my eyes, what you're achieving with all those noise filters is just a scene of destruction.

edit: give a try on FFT3DFilter, with something like

mpeg2source( ... )

WhateverIVTC( ... ) # whatever fits your needs the best here

fft3dfilter(sigma=8,sigma2=2,sigma3=2,sigma4=2, bt=4,plane=4,sharpen=0.7)

foxyshadis
30th January 2006, 11:14
Well, if nothing else, it certainly has an extremely high compressibility, with none of those pesky "details" to encode....

I've only seen the one source snap, but you absolutely do not need denoisers, let alone three in a row. IVTC, crop, resize with limitedsharpen(smode=4,dest_x=640,dest_y=344), and be done.

Of course, it's your encode, up to you how you want it.

plomon
30th January 2006, 11:52
@Didée
If you don't think otherwise, can you explain what's the relevance and advantage of using the FFT3DFilter over other denoisers and sharpening filters. here. I don't know much about the usage of these softening, denoising and sharpening filters. So, basically I would like to learn the usage of right filter in the right place at the right time.

I've only seen the one source snap, but you absolutely do not need denoisers, let alone three in a row. IVTC, crop, resize with limitedsharpen(smode=4,dest_x=640,dest_y=344), and be done.

Thank You for the suggestion a lot. But, please do explain the advantage of LimitedSharpen over MSharpen or WarpSharp filters. I'm eager to know where I went wrong in choosing the right filters for the movie. Where can I download LimitedSharpen filter ?

To both Didée & foxyshadis:
None of you suggested a softener/smoother. why is it so, coz, I thought of using Convolution3d.

foxyshadis
30th January 2006, 12:14
Limitedsharpen doesn't create bad halos, like most sharpeners do, while retaining soft edges, which xsharpen doesn't. Now that I think about it, Didée's other function, Seesaw (search for it) may help even more, if the source is soft but not smeared or too noisy.

At most use one denoiser, or several very restricted ones. You're throwing three at full strength on it, when each is made to fully denoise a normal movie on its own. FFT3dfilter is specifically better at killing more random, tiny noise, though it's about as slow as any of the other three you picked. (Degrainmedian or undot is good if you need fast denoising on a decent source.) There's a thread in sticky all about denoising.

If you post a vob clip it would help determine what you really need, it's very hard to work from heavily filtered snaps.

plomon
30th January 2006, 12:20
fft3dfilter(sigma=8,sigma2=2,sigma3=2,sigma4=2, bt=4,plane=4,sharpen=0.7)

plane=4 is an error. I guess only 3 planes exist - 0,1,2. Which one shall I use ?

Didée
30th January 2006, 12:33
plane=4 is an error. I guess only 3 planes exist - 0,1,2. Which one shall I use ?
Latest official version of FFT3D supports plane=4 (multiplane) operation:
http://forum.doom9.org/showthread.php?p=772801#post772801

With a version <v1.8.4, just use plane=0.

plomon
30th January 2006, 13:13
If you post a vob clip it would help determine what you really need, it's very hard to work from heavily filtered snaps.

Well, your idea is good, but, a small clip of 30 secs having only the video (i.e., an m2v file) costs 10MB. So, it is difficult to post a clip.

krieger2005
30th January 2006, 13:47
I had sometime ago this movie. I was a PAL-one. It was progressive (i think) and does not look that bad like yours. It was grainy but no so smeared like your shoots show yours...

plomon
30th January 2006, 16:22
Gotcha. I learnt how to use LimitedSharpen here (http://www.avsforum.com/avs-vb/showthread.php?t=469464). However, there isn't much noticeable change in issues like sharpness of the image or elimination of certain artifacts.
The new script used is here.

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\fft3Dfilter.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warp\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")

mpeg2source("e:\sol\sol.d2v")
Telecide(Order=1,Guide=1,Post=0).Decimate()

ConvertToYUY2()
fft3dfilter(sigma=8,sigma2=2,sigma3=2,sigma4=2, bt=4,plane=4,sharpen=0.7)

Crop(4,14,-8,-14)
import("d:\program files\avisynth 2.5\plugins\limitedsharpen.avs")
limitedsharpen(ss_x=1.0,

ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=40)
LancZosResize(640,344)

It's in lines with Didée's and foxyshadis's suggestions. The LimitedSharpen.avs file has been created from the script available in Didée's thread(http://forum.doom9.org/showthread.php?s=&threadid=84196&perpage=20&pagenumber=1). The new screencaptures taken from VDubMod with the above script loaded into it, still consisting a few artifacts are shown below:

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap13.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap14.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap15.jpg

Despite using the best available filters, I falied to improve the quality. Actually, I'm a bit disappointed. If any changes in the values of the existing filters is needed to be made, or if any additional filters are needed, please suggest them.

If more screencaptures are required, please let me know. I'll try my best to post as many relevant captures as possible.

Chainmax
30th January 2006, 18:13
I'd recommend you to try using FFT3DFilter(sigma=1,bw=32,bh=32,bt=3,ow=16,oh=16,sharpen=0.7) right after IVTCing/Deinterlacing and LimitedSharpen(SMode=4,LMode=3,Strength=200,wide=true) right after the resize (use Lanczos4Resize), followed by Soothe, SeeSaw and AddGrain(2,0,0). That might help.

Guest
30th January 2006, 18:31
Please do suggest the best method. Please do not ask for the "best" anything, per forum rule 12. Thank you.

plomon
31st January 2006, 05:09
Considering the ideas of Didée and foxyshadis, the script written is given below:

Script 1
## Loading Plugins ##
LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\fft3Dfilter.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warp\warpsharp.dll") ## These are needed ##
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll") ## for Limited Sharpen ##

## Loading Scripts ##
import("d:\program files\avisynth 2.5\plugins\limitedsharpen.avs")

## IVTCing the source using DeComb ##
mpeg2source("e:\sol\sol.d2v")
Telecide(Order=1,Guide=1,Post=0).Decimate()

## Denoising using fft3dfilter ##
fft3dfilter(sigma=8,sigma2=2,sigma3=2,sigma4=2, bt=4,plane=4,sharpen=0.7)

## Crop & Resize ##
Crop(4,14,-8,-14)
LancZosResize(640,344)

## Applying Custom Script - LimitedSharpen.avs for better results ##
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=40)

The result of the above script as captured from VDub is here:

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap17_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap19_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap21_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap24_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap25_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap28_solscript.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap29_solscript.jpg

Well, now considering the suggestion of ChainMax, I wrote another script(it doesn't have SeeSaw function, as it closes VDub abruptly). The script is here:

Script 2

## Loading Plugins ##
LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\fft3Dfilter.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warp\warpsharp.dll") ## These both are ##
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll") ## needed for Limited Sharpen ##
LoadPlugin("d:\program files\avisynth 2.5\plugins\Addgrain.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\Removegrain.dll") ## Needed for Soothe ##

## Loading Scripts ##
import("d:\program files\avisynth 2.5\plugins\limitedsharpen.avs")
import("d:\program files\avisynth 2.5\plugins\seesaw.avs")
import("d:\program files\avisynth 2.5\plugins\soothe.avs")

## IVTCing source with DeComb ##
mpeg2source("e:\sol\sol.d2v")
Telecide(Order=1,Guide=1,Post=0).Decimate()

## fft3dfilter used for denoising & sharpening ##
FFT3DFilter(sigma=1,bw=32,bh=32,bt=3,ow=16,oh=16,sharpen=0.7)

## Cropping & Suitable Resizing ##
Crop(4,14,-8,-14)
LancZosResize(640,344)

## Additional Sharpening with custom scripts ##

ConvertToYV12()
Soothe(LimitedSharpen(SMode=4,LMode=3,Strength=200,wide=true),last,20)
AddGrain(2,0,0)

The result of the above script as captured from VDubMod is here:

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap16_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap18_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap22_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap23_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap26_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap27_sample_script.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/sol_cap30_sample_script.jpg

I personally found extremely small difference in the images produced due to the above two scripts.

For a little surprise, let me show you the results of the following script:

Script 3
LoadPlugin("d:\programs\dgindex\dgdecode.dll")
mpeg2source("e:\sol\sol.d2v")
Telecide(Order=1,Guide=1,Post=0).Decimate()
Crop(4,14,-8,-14)
LancZosResize(640,344)

The result of the above script is here:

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_1.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_2.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_3.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_4.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_5.jpg

Script 1 takes 2 hrs. 26 minutes to encode 5minutes video in XviD - 2pass
Script 2 takes >2 hrs. 26 minutes to encode 5minutes video in XviD - 2pass

Now, obviously Script3 would take abosultely less time compared to the above two scripts.

I couldn't find the usage of the filters in Scripts 1&2 advantageous, although they show a minor difference.

My question is, Can I expect something to change if I learn more about these filters:

1.) Denoisers like RemoveGrain, DeGrainMedian, FFT3dFilter
2.) Sharpeners like LimitedSharpen, WarpSharp
3.) Custom Scripts like Soothe

so that I can customize them more and expect better results,
OR
shall I go for Script 3(the basic & simple script).

Lil' Jer
31st January 2006, 09:30
Could you maybe post pngs or 100% quality jpegs, cause those screenshots look horrible with all the blocking and mosquito noise. It's hard to make any real comparisons with the pictures being covered with jpeg artifacts.

plomon
31st January 2006, 11:27
I promise, there will be absolutely 0% difference even if I posted a png image. What you see, even I see on my computer, and it is absolutely true.

What you said is correct. There's a lot of blocking and mosquito noise present in the screenshots. And the fact is, it is present in the original movie too. I'm in fact ready to agree with the fact that I purchased a bad quality DVD.

None of the Denoisers - fft3dfilter, deen, degrainmedian,removegrain are working on this dirty source.

The best thing I'm able to do is this :

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\TomsMoComp.dll")
mpeg2source("e:\sol\sol.d2v")
chroma=blur(1.0)
Mergechroma(chroma)
Telecide(order=1,post=0,guide=1).TomsMoComp(0,-1,1).Decimate(cycle=5,mode=0)
Crop(4,14,-8,-14)
LancZosResize(640,344)

Application of any other filters produces absolutely no change at all, or, it is another way to say that 'I don't know much about applying filters'.

plomon
2nd February 2006, 07:59
After getting a brief idea of a few AVISynth filters, I came up with a comfortable solution to the noise problem existing in my video. Although I tried the strongest denoisers like fft3dfilter(), deen(), denoiser(), I wasn't able to remove any noise.

For a while even RemoveGrain() failed to work. However, then I made a final trial on RemoveGrain() filter. All the time, I wan't concentrating on the stronger modes in RemoveGrain() filter. I read the manual for a while calmly, and decided to tryout mode 17 on my video.

Like a miracle, the change occured. An excellent amount of denoising has been done with this filter in it's mode 17.

Let us see the following scripts (one doesn't use RemoveGrain filter, and the other does) and their corresponding captures from VDubMod:

Script 1(without using RemoveGrain() filter):

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=40)
Crop(4,14,-8,-14)
LancZosResize(640,344)

The corresponding capture is below:

Capture 1(without using RemoveGrain() filter):

http://i5.photobucket.com/albums/y189/plomon/Superficial/cap_no_removegrain.jpg

Now, here's the script which uses strong degraining and denoising:

Script 2(using RemoveGrain() filter):

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\LoadPluginEX.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\RemoveGrain.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)
ConvertToYV12()
RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17)
RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17)
Crop(4,14,-8,-14)
LancZosResize(640,344)
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=0)

Capture 2(using RemoveGrain() filter):

http://i5.photobucket.com/albums/y189/plomon/Superficial/cap_removegrain.jpg

I found some satisfactory difference in the video captures. I guess, the filter did a great job. However, in sharpening the video, I'm still not succesful completely. I need a better sharpener and better settings. Any suggestions are widely accepted.

Mug Funky
2nd February 2006, 08:19
what do you have against this source?

capture without filters. only run denoisers if you have to.

is your target format DVD? if so, then no denoising is needed at all, and probably no sharpening.

i haven't yet seen an un processed screengrab or sample of your source. everything i've seen has been strongly filtered, and it's hard for us to help you if you're destroying your source before you show us what it's really like.

Boulder
2nd February 2006, 08:27
RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17)
RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17).RemoveGrain(mode=17)

Yeah right..

Why not use eDeen to vacuum away all the details:D

plomon
2nd February 2006, 08:29
@Mug Funky
First Point --> My Target format is not DVD, but , it is AVI
Second --> What do expect me to show, when u'r saying without filtering?

Give me the script you want me load into VDub and I'll show you captures from that script. Moreover, what filters did I use except IVTCing and denoising. If you believe, I'm hiding something, then I want to ask you, can I atleast show you captures by loading atleast the .d2v project without cropping and resizing i.e., the capture taken from the following script:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
mpeg2source("e:\sol\sol.d2v")

Can I capture from the above script atleast. If you don't allow me to load even that script, then I'm not a magician to show you captures without loading a video into VDub.

plomon
2nd February 2006, 08:31
Yeah right..

Why not use eDeen to vacuum away all the details:D
are you mocking ??

do you mean to say, i'm running short of image detail.

or

do you seriously advice me to run a eDeen() filter.

Mug Funky
2nd February 2006, 08:42
LoadPlugin("d:\programs\dgindex\dgdecode.dll")
mpeg2source("e:\sol\sol.d2v")

this will do nicely.

[edit]

also, if possible upload a png file instead of a jpeg. i'm seeing DCT blocks in some of those screenshots where the script output posted would not contain them. png files are lossless and (reasonably) small, so perfect for posting.

Boulder
2nd February 2006, 08:44
are you mocking ??

No. (note the smiley, that's what they're there for)

do you mean to say, i'm running short of image detail.

Yes, due to excessive filtering (that many RemoveGrain(mode=17)'s will practically remove all details along with the noise)

do you seriously advice me to run a eDeen() filter.
I would never suggest that;) To me eDeen is the greatest detail remover ever..

plomon
2nd February 2006, 09:12
LoadPlugin("d:\programs\dgindex\dgdecode.dll")
mpeg2source("e:\sol\sol.d2v")

this will do nicely.

[edit]

also, if possible upload a png file instead of a jpeg. i'm seeing DCT blocks in some of those screenshots where the script output posted would not contain them. png files are lossless and (reasonably) small, so perfect for posting.
May be these will give you some idea.

All the captures below are UnFiltered caps in PNG format. I hope these pictures will help you guys give me more suggestions regarding the usage of correct filters.

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap01.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap02.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap03.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap04.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap05.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap06.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap07.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap08.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap09.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap10.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap11.png

http://i5.photobucket.com/albums/y189/plomon/Superficial/unfiltered_cap12.png

I tried my best to post as many as possible. Even then, if anyone of feels that I need to post more, please let me know. I'll do it.

Mug Funky
2nd February 2006, 09:21
hmm. from the look of those, you probably only need a little deblocking, and perhaps limitedsharpen (use it's "dest_x" and "dest_y" args to resize down to your desired resolution).

search the forum for deblocking scripts/plugins. i think "deblock_QED" does a pretty good job on tough samples.

you can also perform deblocking within mpeg2source: mpeg2source("source.d2v", cpu=4) should give you an idea.

Lil' Jer
2nd February 2006, 09:24
May be these will give you some idea.

All the captures below are UnFiltered caps in PNG format. I hope these pictures will help you guys give me more suggestions regarding the usage of correct filters.

...

I tried my best to post as many as possible. Even then, if anyone of feels that I need to post more, please let me know. I'll do it.

Okay I'm seeing no blocking or any excessive noise, but maybe that's due to the shots being resized. Honestly I don't see any need for filtering at all and as I suspected the blocks and noise was due to you compressing the pics and the not source itself... Maybe unresized pictures will show something those pics aren't.

plomon
2nd February 2006, 09:27
I'm sorry for the picture size. The server(www.photobucket.com) to which I uploaded them has automatically resized the pictures, coz of their relatively larger size compared to JPEG images. Pictures of large size will be automatically resized. Please wait patiently. I'll repost all of them in JPEG format. There's no other alternative left for me. Or else please suggest a photo uploading server which doesn't resize large size pictures.

Lil' Jer
2nd February 2006, 09:28
I'm sorry for the picture size. The server to which I uploaded them has automatically resized the pictures, coz, it's their rule. Pictures of large will be automatically resized. Please wait patiently. I'll repost all of them in JPEG format. There's no other alternative left for me. Or else please suggest a photo uploading server which doesn't resize large size pictures.

No don't repost them in jpeg format because they will just look as bad as the previous ones. Post them in png format to Imageshack.us as they don't require resizing and they can accept pics up to 1 meg.

plomon
2nd February 2006, 09:37
No. (note the smiley, that's what they're there for)

Yes, due to excessive filtering (that many RemoveGrain(mode=17)'s will practically remove all details along with the noise)

I would never suggest that;) To me eDeen is the greatest detail remover ever..
I didn't know anything about eDeen() till now. It's simply superb. It's equivalent to a 100 RemoveGrain() filters. Here's are the captures from eDeen() filtering.

Script is here:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\eDeen.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)
ConvertToYV12()

edeen(7,14,21,2,3,true)
Crop(4,14,-8,-14)
LancZosResize(640,344)
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=0)

These are the captures:

http://i5.photobucket.com/albums/y189/plomon/Superficial/eDeen_filter_cap01.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/eDeen_filter_cap02.jpg

You can see the unfiltered caps & script here:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)
ConvertToYV12()

Crop(4,14,-8,-14)
LancZosResize(640,344)
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=0)

http://i5.photobucket.com/albums/y189/plomon/Superficial/basic_4.jpg

http://i5.photobucket.com/albums/y189/plomon/Superficial/without_filter_cap01.jpg

Thanks for the good suggestion.

plomon
2nd February 2006, 09:40
No don't repost them in jpeg format because they will just look as bad as the previous ones. Post them in png format to Imageshack.us as they don't require resizing and they can accept pics up to 1 meg.
imageshack.us doesn't support multiple picture posts, unlike photobucket.com. Anyways I'll post them on imageshack.us.

However, I may not be posting all the 12 pictures. I'll post about 6 of them. It'll take a while from now. Please wait till I post them. I'll post the remaining later.

Lil' Jer
2nd February 2006, 09:40
You can see the unfiltered caps & script here:

...

Thanks for the good suggestion.

How can you call something unfiltered when you obviously filtered it. And again, please post pngs, not these low quality jpegs. Use Imageshack.us and post unresized and unfiltered screenshots.

Lil' Jer
2nd February 2006, 09:41
imageshack.us doesn't support multiple picture posts, unlike photobucket.com. Anyways I'll post them on imageshack.us.

Yes it does. You can post as many pics to imageshack as you like. If you are wanting to do batch uploading though you need a membership.


However, I may not be posting all the 12 pictures. I'll post about 6 of them. It'll take a while from now. Please wait till I post them. I'll post the remaining later.

It doens't matter if you post them all, all I want to see is unfiltered, unresized screenshots that don't have tons of jpeg artifacts.

plomon
2nd February 2006, 09:52
Here are the PNG caps reposted :

http://img85.imageshack.us/img85/5104/unfilteredcap016ew.png

http://img85.imageshack.us/img85/4508/unfilteredcap029ul.png

http://img215.imageshack.us/img215/22/unfilteredcap034na.png

http://img85.imageshack.us/img85/9373/unfilteredcap043xq.png

http://img215.imageshack.us/img215/3953/unfilteredcap057xa.png

http://img85.imageshack.us/img85/5509/unfilteredcap064em.png

plomon
2nd February 2006, 10:16
Here are more unfiltered, uncropped, non-resized PNG captures:

http://img63.imageshack.us/img63/1652/unfiltered_cap10.png

http://img63.imageshack.us/img63/9095/unfiltered_cap09.png

http://img63.imageshack.us/img63/6901/unfiltered_cap12.png

http://img63.imageshack.us/img63/4086/unfiltered_cap07.png

http://img63.imageshack.us/img63/7753/unfiltered_cap08.png

http://img63.imageshack.us/img63/7636/unfiltered_cap11.png

plomon
2nd February 2006, 10:33
Now, after loading a few filters like DeComb, eDeen, and LimitedSharpen, this is the result

Script:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\eDeen.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)
ConvertToYV12()

edeen(7,14,21,2,3,true)
Crop(4,14,-8,-14)
LancZosResize(640,344)
limitedsharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=0)

Captures:

Cap01
http://img52.imageshack.us/img52/3139/edeen_filtered_cap04.png

Cap02
http://img52.imageshack.us/img52/1957/edeen_filtered_cap07.png

Cap03
http://img52.imageshack.us/img52/8256/edeen_filtered_cap09.png

Cap04
http://img52.imageshack.us/img52/4242/edeen_filtered_cap03.png

Cap05
http://img52.imageshack.us/img52/1122/edeen_filtered_cap08.png

Cap06
http://img52.imageshack.us/img52/3497/edeen_filtered_cap06.png

Cap07
http://img52.imageshack.us/img52/8499/edeen_filtered_cap02.png

Cap08
http://img52.imageshack.us/img52/179/edeen_filtered_cap10.png

Cap09
http://img52.imageshack.us/img52/9471/edeen_filtered_cap01.png

Cap10
http://img52.imageshack.us/img52/8933/edeen_filtered_cap05.png

Even after the application of a good and strong denoiser like eDeen(), there are a lot of artifacts left out.

plomon
2nd February 2006, 10:38
If I apply more denoising, I'm loosing detail terribly. What to do next ??

Boulder
2nd February 2006, 11:28
You are already losing all the details. I do not recommend using eDeen, ever!

You could try using Didée's MCNR_simple2.

Didée
2nd February 2006, 11:44
From what we've seen so far, what I would try is:

- load source (no deblocking)
- IVTC
- FFT3D (with exactly the settings as posted above)
- LimitedSharpen, but perhaps alittle stronger than strength=0 ... ;)

plomon
2nd February 2006, 11:45
You are already losing all the details. I do not recommend using eDeen, ever!

You could try using Didée's MCNR_simple2.
I don't know the settings of MCNR_simple2. Please help me by specifying the correct settings. What's it's purpose & ow do I use it ?

My next question is - Even after removing noise, a lot of artifacts are still present like small size blocking, faces looking like they are bleeding at some places - especially the edges bleed a lot(Cap 02, Cap03, Cap 05 in Post#47 describe them best).

plomon
2nd February 2006, 12:37
@Didée
Well here is the script using fft3dfilter and the corresponding captures:

LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeComb.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\fft3dfilter.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")

mpeg2source("e:\sol\sol.d2v")
Telecide(order=1,post=0,guide=1).Decimate(cycle=5,mode=0)

fft3dfilter(sigma=8,sigma2=2,sigma3=2,sigma4=2, bt=4,plane=4,sharpen=0.7)

Crop(4,14,-8,-14)
LancZosResize(640,344)
LimitedSharpen(ss_x=1.0,ss_y=1.0,smode=3,dest_x=640,dest_y=344,strength=0)

Caps for the above script :

http://img75.imageshack.us/img75/231/fft3d_cap04.png

http://img75.imageshack.us/img75/9837/fft3d_cap10.png

http://img75.imageshack.us/img75/6816/fft3d_cap06.png

http://img75.imageshack.us/img75/5830/fft3d_cap09.png

Well, it surely does retain maximum detail, but is quite ineffective in removing certain noise as compared to the previous filters. However, ruling out the eDeen() filter(since it's too strong), RemoveGrain() emerges as the best according to me, coz, if one RemoveGrain() cannot remove noise, then I'll use4 in a series, and make sure that noise is removed. And I'll try not to loose too much detail by reducing the no. of consecutive usages of RemoveGrain(). I prefer this filter for two reasons:

1.) It's much faster than fft3dfilter.
2.) It's easier to understand and use. So, more flexible. fft3dfilter looks very complex to me.

With the above settings for fft3dfilter, it's clear that a lot of noise still remains. If I try strengthening this filter more and more, it will take huge amount of time to encode. But, that's not the case with RemoveGrain(). Moreover, I feel that all I've to look after in RemoveGrain() is about which mode I'm using. I prefer modes 1,2,3,4 & 17(4 & 17 for strong denoising). I guess, a combination of RemoveGrain()'s consecutive filters using the above modes may help in retaining detail and yet remove fair amount of noise.

My imageshack.us credits ran out. So, the next posts with pictures may be delayed.W

Boulder
2nd February 2006, 12:48
Remove LanczosResize and add some strength for LimitedSharpen. With strength 0 you do no sharpening whatsoever.

foxyshadis
2nd February 2006, 13:37
I d'no, he obviously loves filtering the hell out of it, and can't even see results with more subtle filters, so what's wrong with that? It may go against the sensibilities of the rest of us, but it's his encode.

But plomon, if you proceed with such heavy, fast filtering you're guaranteed to kill edges and cause bleeding; unfortunately there's not really any way to have the one without the other.

Oh, and you may want to turn your monitor's brightness down. I can't be sure if that's it, but jacking the brightness up is a sure way to spot all kinds of "artifacts" that wouldn't show in a normal playback brightness at all.

plomon
2nd February 2006, 14:12
It may go against the sensibilities of the rest of us, but it's his encode.

I don't understand, how you arrived at such a conclusion, but I apologize for any irrelevant discussion I lifted up.

But plomon, if you proceed with such heavy, fast filtering you're guaranteed to kill edges and cause bleeding; unfortunately there's not really any way to have the one without the other.

I guess, finally you're indirectly insisting upon a single statement - "Don't use any filter!!"

Anyway, let me tell you, if I were to proceed with the fastest filtering, I obviously wouldn't have taken help of this forum and, that would have resulted in the most careless encode. Please think. I care about what I do, and I respect people's suggestions. But, without trying out on my system what has been suggested, how can you expect me to follow everything. I'm considering ideas, posting as many caps as possible, and was never in a rush to fix my mind upon a particular filtering process.

If I won't try what has been suggested, I can't post the results of that method, and consequently, nobody can suggest an alternative thereafter. That's the only reason I'm making so many attempts.

Regarding the brightness issue, it is completely normal.

foxyshadis
2nd February 2006, 14:55
The source is hardly perfect; it has some chroma noise and blocking, and a rather unusual lack of sharpness. (Most DVDs are oversharpened rather than under.) Of course filtering can help it. But our definitions of 'noise' differ, so while most of us would rather preserve most every wrinkle and texture under the grain in the original, you seem to prefer a much smoother, cleaner look. That's why our softer filters don't seem to work. For instance, you might something like
fft3dfilter(sigma=12,sigma2=5,sigma3=4,sigma4=4, bt=4,plane=4,sharpen=0.7)
which doubles the strength.

It's hard to give suggestions unless we know what you're looking for, and it's hard to know what you're looking for without having it to show us, so I can understand the difficulty. :p

Chainmax
2nd February 2006, 15:04
Would it really be that much of a trouble cutting a 10sec vob sample with something like ChopperXP (http://www.inchwest.com/digital-miner.com/chopperxp.html) and upload it to RapidShare (http://www.rapidshare.de/)?

plomon
2nd February 2006, 16:06
Here are a few clips from the movie:

http://rapidshare.de/files/12383031/sol_sample1.m2v.html
http://rapidshare.de/files/12383439/sol_sample2.m2v.html
http://rapidshare.de/files/12384438/sol_sample3.m2v.html
http://rapidshare.de/files/12385427/sol_sample4.m2v.html
http://rapidshare.de/files/12385103/sol_sample5.m2v.html

These may help understand about the quality in a better way.

Chainmax
2nd February 2006, 17:27
Thanks, now it will be much easier for us to help you.

Chainmax
3rd February 2006, 03:22
plomon, what do you think about this (http://rapidshare.de/files/12427861/SotLTest.avi.html)?

By the way, I haven't checked ther other samples, but sample 4 has an average bitrate of 1400-1500kbps! :scared:

plomon
3rd February 2006, 05:09
plomon, what do you think about this (http://rapidshare.de/files/12427861/SotLTest.avi.html)?

By the way, I haven't checked ther other samples, but sample 4 has an average bitrate of 1400-1500kbps! :scared:
i think there's not much difference compared to the orig., well, although some detail is removed(max. is preserved), noise(grainy noise) still exists. mainly the film still looks like what we call "the old reel"(which infact is the property of the orig clip). may be a bit of sharpness increase in the overall frame or in the chroma part will do some more good.

another problem if you noticed is that all parts of the movie are not the same. some are good and the other not. compare executing the same script on other clips. you may find irrelevancy of filter usage. i myself felt, i should use different filters for different parts of the movie.

can u post the script used for the clip u posted.

Chainmax
3rd February 2006, 12:47
My encode has some grain because I used a grain filter at the end of the script. Your source is horrible, and removal of the artifacts will always leave a very soft picture. The little extra grain helps mask that and whatever remaining artifacts there might be. Here's my script:

AssumeTFF()
Interp = SeparateFields().SelectEven().EEDI2(field=1)
Deinted=TDeint(order=1,field=1,edeint=interp)
TFM(mode=1,order=1,clip2=deinted)
TDecimate(mode=1)
FunkyDeblock()
DeGrainMedian()
Crop(6,18,704,448,align=true)
Lanczos4Resize(656,352)
DeHalo_Alpha()
dull=last
sharp=dull.LimitedSharpen()
Soothe(sharp,dull,20)
AddGrain(2,0,0)

plomon
3rd February 2006, 14:50
My encode has some grain because I used a grain filter at the end of the script. Your source is horrible, and removal of the artifacts will always leave a very soft picture. The little extra grain helps mask that and whatever remaining artifacts there might be. Here's my script:

AssumeTFF()
Interp = SeparateFields().SelectEven().EEDI2(field=1)
Deinted=TDeint(order=1,field=1,edeint=interp)
TFM(mode=1,order=1,clip2=deinted)
TDecimate(mode=1)
FunkyDeblock()
DeGrainMedian()
Crop(6,18,704,448,align=true)
Lanczos4Resize(656,352)
DeHalo_Alpha()
dull=last
sharp=dull.LimitedSharpen()
Soothe(sharp,dull,20)
AddGrain(2,0,0)

How much time did it take to encode the video with the above script ?? I guess it takes a very long time with so many filters in the script. The script looks extremely complex to me, especially in the deinterlacing region. Isn't Decomb enough for deinterlacing and pulldown ?? Because the above method uses some other filters like TDeint, TDecimate, which I need to learn now to understand their usage. Please use them only if Decomb is totally incapable of doing it's job for the current video source. Otherwise, usage of filters in your script needs me to learn again about all those.

Coming to other filters like FunkyDeblock() & DeHalo_Alpha() - they are not available with me. Please tell me, where I can download them.

plomon
3rd February 2006, 16:32
In the above script TDeint doesn't seem to have any parameter called as "edeint". Are you referring to the parameter "clip2" instead. The version of TDeint I'm using is 1.0b4, and my AVISynth version is 2.56(build Oct 28, 2005). Am I using the correct combo of Deint and AVISynth ??

I searched and downloaded a few plugins and scripts you used in the above script. I loaded all of 'em, and then this is what has happened:

After loading the following script, VDubMod v1.5.10.2 automatically closes off:


LoadPlugin("d:\programs\dgindex\dgdecode.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\TIVTC.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\TDeInt.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\LoadPluginEX.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\warpsharp.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\masktools.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\EEDI2.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\AddGrain.dll")
LoadPlugin("d:\program files\avisynth 2.5\plugins\DeGrainMedian.dll")

import("d:\program files\avisynth 2.5\plugins\LimitedSharpen.avs")
import("d:\program files\avisynth 2.5\plugins\Soothe.avs")
import("d:\program files\avisynth 2.5\plugins\FunkyDeblock.avs")
import("d:\program files\avisynth 2.5\plugins\Dehalo_alpha.avs")

mpeg2source("e:\sol\sol.d2v")
AssumeTFF()
Interp = SeparateFields().SelectEven().EEDI2(field=1)
Deinted=TDeint(order=1,field=1,clip2=interp)
TFM(mode=1,order=1,clip2=deinted)
TDecimate(mode=1)
FunkyDeblock()
DeGrainMedian()
Crop(6,18,704,448,align=true)
Lanczos4Resize(656,352)
DeHalo_Alpha()
dull=last
sharp=dull.LimitedSharpen()
Soothe(sharp,dull,20)
AddGrain(2,0,0)

The only change made in the above script is in the Deint() function - I replaced "edeint" parameter with "clip2", b'coz, the "edeint" parameter doesn't exist according to my AVISynth manual.

Did I load any wrong plugins or scripts ??

plomon
3rd February 2006, 16:54
hooray!! I found the problem. The script without the DeHalo_Alpha() filter is loading fine into VDubMod.

Now, I don't know what's wrong with the DeHalo_Alpha.avs script that I've. But this is what I've in the DeHalo_Alpha.avs script:


function DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")
{
rx = default( rx, 1.0 )
ry = default( ry, 1.0 )
darkstr = default( darkstr, 0.5 )
brightstr = default( brightstr, 0.5 )
lowsens = default( lowsens, 25 )
highsens = default( highsens, 25 )
ss = default( ss, 1.0 )

LOS = string(lowsens)
HIS = string(highsens/100.0)
DRK = string(darkstr)
BRT = string(brightstr)
ox = clp.width()
oy = clp.height()
uv = 0
uv2 = (uv==3) ? 3 : 2

halos = clp.bicubicresize(m4(ox/rx),m4(oy/ry)).bicubicresize(ox,oy,1,0)
are = mt_lutxy(clp.mt_expand(U=uv,V=uv),clp.mt_inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
ugly = mt_lutxy(halos.mt_expand(U=uv,V=uv),halos.mt_inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
so = mt_lutxy( ugly, are, "y x - y 0.001 + / 255 * "+LOS+" - y 256 + 512 / "+HIS+" + *" )
lets = mt_merge(halos,clp,so,U=uv,V=uv)
remove = (ss==1.0) ? clp.repair(lets,1,0)
\ : clp.lanczosresize(m4(ox*ss),m4(oy*ss))
\ .mt_logic(lets.mt_expand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"min",U=uv2,V=uv2)
\ .mt_logic(lets.mt_inpand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"max",U=uv2,V=uv2)
\ .lanczosresize(ox,oy)
them = mt_lutxy(clp,remove,"x y < x x y - "+DRK+" * - x x y - "+BRT+" * - ?",U=2,V=2)

return( them )
}

function m4(float x) {return(x<16?16:int(round(x/4.0)*4))}

Did I download the wrong script for DeHalo_Alpha. This is where I downloaded the script from:

http://www.filefactory.com/get/v2.1/f2.php?f=2233f12daa16708d5d3d0a28

The above link is present in this site (http://www.hardwarexl.com/index.php?option=com_content&task=view&id=1192&Itemid=41&limit=1&limitstart=3&lang=en).

Well on an overall basis, keeping in mind that my source is a nasty one, usage of any number of filters may not help in making it better. May be, I should be content with whatever I've.

On the brighter side, I learnt a good deal of scripting.

foxyshadis
3rd February 2006, 17:07
Your Tdeint is old. Update. (http://bengal.missouri.edu/~kes25c/) Clip2 will work, but incorectly.

There's nothing wrong with dehalo_alpha, I made that mod (damn, that got around fast). Most likely you need up update masktools 2 and removegrain.

TDeint/TFM definitely game me better results than decomb. (Part of why it's my default now.) Otherwise I'll refrain from commenting on a few things.

plomon
4th February 2006, 07:24
Your Tdeint is old. Update. (http://bengal.missouri.edu/~kes25c/) Clip2 will work, but incorectly.

There's nothing wrong with dehalo_alpha, I made that mod (damn, that got around fast). Most likely you need up update masktools 2 and removegrain.

TDeint/TFM definitely game me better results than decomb. (Part of why it's my default now.) Otherwise I'll refrain from commenting on a few things.
Thanks a lot for the updated version of TDeint. I downloaded it, and this plugin is accepting "edeint" parameter. However, DeHalo() still poses trouble. The VDubMod still closes when DeHalo_Alpha plugin script is loaded. I loaded mt_masktools.dll(Is this what you were referring to as masktools 2 ?)

I attached the masktools 2 plugin that I'm using. Please check if I loaded the correct masktools plugin.

Guest
4th February 2006, 15:08
I attached the masktools 2 plugin that I'm using. Please check if I loaded the correct masktools plugin. I deleted the huge attachment because you can simply state the version you are using.

plomon
6th February 2006, 03:24
I deleted the huge attachment because you can simply state the version you are using.

it's okay if you deleted the attachment, but am I using the right version or not ?

Moreover, I took a big decision which I wasn't able to post, b'coz, yesterday doom9 site did not open at all.

I decided to get a new DVD, that's it! However, all the things I've learnt about repairing a bad video would not had been possible without the support and co-operation of you guys. So, thx a lot for all the help.

Chainmax
6th February 2006, 18:01
Yeah, you made the right choice by buying another DVD release. Yours was simply to bad to fix properly. In any case, read the documents and tutorials I linked for you, as they will greatly help in your future projects.

plomon
7th February 2006, 01:41
read the documents and tutorials I linked for you

What tutorials ?? You did not post any. If you like to, then u can.

Chainmax
7th February 2006, 13:21
The ones I linked to in your other thread (http://forum.doom9.org/showthread.php?t=106734).