Log in

View Full Version : A faster TemporalSoften


dividee
30th March 2002, 18:11
Some of you prefer TemporalSoften over TemporalSmoother, but TemporalSoften is slow and somewhat buggy.

Try this version (http://users.win.be/dividee/TemporalSoften2.zip), it should be faster and more stable. (sources included)

The filter is named TemporalSoften2 and takes the same arguments as the built-in filter (but radius is limited to 7).

Please report bugs here.

PS: I remember posts talking about bugs in TemporalSmoother, but I can't find any substantial claim with the search function in the forums. Temporalsoften2 may suffer from the same bugs since buffering is done in the same way. Any info appreciated.

Roginator
31st March 2002, 03:18
Never having used TemporalSoften before, what are good starting values for the threshholds?

dividee
31st March 2002, 03:26
Well, I haven't used it much either :o

For the tresholds, if pixels differs less than this value, they are averaged together.

I'd say start with something like (3,10,15) but you'll have to experiment

Dali Lama
31st March 2002, 08:06
I have never used this filter before, but I have used your Temporal Smoother a lot with a setting of (3) before resize...its reduced file size whith some light noise removal.

I have been working with some noisy material recently and I am trying to get it to fit on one cd with no luck. With the addition of your Temporal Soften 2 I am able to do it. Thanks!!

I used a setting of (3,5,7) with great results. The noise is gone and structure intact. No other "spatial" noise remover has been able to do the same. I guess even smaller values may be useful with clean sources, but I will try it soon enough.

Note: I am using both filters at the same time. First Temporal Soften then Temporal Smoother at the settings mentioned for noisy sources. For clean ones I would stick with Temporal Smoother @ a setting of 3. Maybe moderately noisy sources could use a (3,2,4) setting?

Good job Dividee,

Dali

movmasty
31st March 2002, 09:52
i think that temporal smoother is something to use with care
i use 1,7,11 mostly

Dividee, your lumafix keep warning me that im saving in uncompressed RGB,
fix this please,and while you are on, try to fix the ecf bug too please.

dividee
31st March 2002, 14:38
Thanks for testing it. You're right, the tresholds I gave above are too high for most sources.

@movmasty: First, this is off-topic. Second, my fix for Nandub has nothing to do with that warning. Third, a version with the ecf fix is available from doom9 (ok I should probably remove the version on my site, but as you can see I didn't update it for a while).

Octagon
31st March 2002, 19:32
Excuse me guys. But can you please post the Avisynth script to use this new filter? Is it just like the other temporal smoother?

dividee
1st April 2002, 13:55
Here is a sample script:
LoadPlugin("k:\temp\mpeg2dec.dll")
LoadPlugin("k:\temp\temporalsoften2.dll")

mpeg2source("I:\movie\movie.d2v")

TemporalSoften2(3,6,8)
crop(10,4,702,564)
BicubicResize(608,336,0,0.5)

The syntax is TemporalSoften2([clip,]radius,luma_treshold,chroma_treshold)
Read the avisynth doc at www.videotools.net for a description of TemporalSoften.

Octagon
1st April 2002, 16:47
Thanks. one more question. can I run temporal smoother along side Temporal soften in Avisynth. I cant seem to find temporal smoother for avisynth. I know Virtual dub has it. Do I have to use VD If I want temporal smoother?:)

ShinerSpoon
1st April 2002, 17:08
Temporalsmoother is built in to mpeg2dec. Just invoke it with:

LoadPlugin("drive:\yourpath\mpeg2dec.dll")
TemporalSmoother (2,1) (for instance)

Octagon
1st April 2002, 17:48
It say there is no such thing. It says there is no function named temporalsmoother. You sure? :confused:

ShinerSpoon
1st April 2002, 18:21
Yes, I am sure. The only way it would not be there is if you had an ancient, and I mean ancient, copy of mpeg2dec. Just to be sure, go to Dividee's site and download it.
http://users.win.be/dividee/
http://users.win.be/dividee/mpeg2dec_dll.zip

Octagon
1st April 2002, 20:58
Thank you very much. I was using 1.0 by accident :eek: I have one last question. Im trying to use Casbuki's 2d cleaner along side Deeveedee (sp)temporal smoother. I converting some anime. THis is my code:

LoadPlugin("c:\winnt\system32\vobsub.dll")
LoadPlugin("C:\vobfiles\mpeg2dec\mpeg2dec.dll")
LoadPlugin("C:\vobfiles\decomb.dll")
Loadplugin("C:\vobfiles\TemporalSoften2.dll")
Import("vdfilters.avs")
mpeg2source("C:\vobfiles\nadia.d2v")
VD_2DCleaner(12,2)
ConvertToYuY2()
Telecide()
Decimate(mode=1,threshold=50)
fieldDeinterlace
TemporalSmoother(2,1)
vobsub("C:\vobfiles\VTS_06_0")

MY problem is: TO use Telecide I must use YUY2 but to use 2D cleaner it must be RGB32. What should I do? Am I screwed? Im trying to IVTC the anime and let it remain as MPEG2 (Im going to put it on dvd). Also I want to run a 2d cleaner and the temporal smoother to get out the jaggies and the other artifacts. Thanks for your help.

manono
2nd April 2002, 07:55
Hi-

A couple of things, although I can't help with the main question. I use the 2D Cleaner in VDub-Nandub, but make sure you have the optimized version. It's way faster (for use only with Athlons-P3-P4).

Also, the FieldDeinterlace is now integrated into Telecide(), so you don't need that line. Just make sure you have a recent version (3.8 is the latest).

And you shouldn't really have jaggies left over, unless it's in the source material. I find that sometimes that this works:

Telecide(Guide=1,Gthresh=50,Chroma=true,Threshold=30)

dividee
2nd April 2002, 17:53
@Octagon:
I can't see the problem: just use ConvertToRGB() and ConvertToYUY2() as needed before the filters that only support those color spaces. Of course it will slow things down, but you're already stacking up a lot of filters so I guess speed isn't your main concern.

Octagon
3rd April 2002, 00:37
ACtually you guys speed is kind of a concern. You see I tried using 2d optimized and Warpsharp in Tmpeg (im making a dvd) and BAM! 20Hrs. I cant wait that long for 100 min on anime. So Instead Im trying to run the avs through Vdub and then use Vdub and avisynth and DVd2avi to framserve to CCESp2.50 and now its only taking about 7 hours. Thats a lot faster. I will report what happens.

@mamano. Im using 3.8 but I was told to leave it in just in case decomb didnt so some part correctly. I'll try your code next dvd i do.

Also: whats the difference between Vdub and nandub? Why is nandub all the rage these days?

manono
3rd April 2002, 04:50
Hey Octagon-

I was told to leave it in just in case decomb didnt so some part correctly.

You were told correctly, but it is in by default. No need to do it twice. But, the default setting of 15 is sometimes too strong for certain anime and may screw up good frames and make them jaggie. That's the reason for Threshold=30 in my sample line. If you ever wanted to disable the deinterlacer, you would add Post=false (not recommended for anime). This is explained in more detail in the Help file.

Nandub is a hacked version of VDub and is used to make .avis using the DivX 3.11 codec. Virtual Dub is used for DivX 4,5 and XviD. But I know nothing about making DVDs.

LigH
5th April 2002, 12:51
Could it be an option for you to use TemporalSoften with a higher radius, or SpatialSoftenMMX (from the GordianKnot package) instead of 2D-Cleaner? They are working in YUV color spaces, AFAIK.

Octagon
8th April 2002, 02:46
ITs cool guys.I got it working now. i dont know what was wrong with my comp. It works now by putting it in RGB.

Jenyok
12th June 2010, 10:41
From where I can download those plugins ?
[TemporalSoften2 plugin (by Dividee)]
[TemporalSmoother plugin (by Dividee)]