Log in

View Full Version : Would need info about deinterlace with avisynth


RathO
15th January 2003, 11:39
I just got a miniDV camcorder and wanna use Avisynth to deinterlace and de-noise my avi. I capped using Studio 8 and created my avi with some great effects using the Mainconcept DV Codec.

Ive been trying lots of stuff from this forum (from the FAQ and guides) like crop, resize. Wouldnt be great to have a website (like a repertory) where we can find almost everything about that? just askin..

I read that Bob is the best deinterlacer.. but i still cant figure how Avisynth really works since i cant write the code line for it.

If anyone can show me how to "write the code line" for:
1- Bob deinterlace
2- De-noise

id appreciate!

RathO

hakko504
15th January 2003, 13:38
You're not saying what computer you have: bob doubles the framerate and will require a lot of both computing power and bitrate. Do not consider bob unless you have a method that uses b-frames! (DivX5.02Pro, XviD)

Avisynth 2.07 have two possibilities for bob: the native Bob() and Xesdeeni's Smoothdeinterlacer in doublerate mode. The latter is clearly recommended as it will try to use as much as possible of the original frame for both new frames.

As for denoising it slightly depends on what kind of noise you have, but Convolution3D is usually a good choise.

A simple and efficient script for bobbing and denoising an DV.avi would be like this:LoadPlugin("<path>\Smoothdeinterlace.dll")
LoadPlugin("<path>\Convolution3D.dll")
AviSource("DV.avi") #Some DV needs Directshowsource instead
#I always get an error at the first frame when using doublerate=true.
Smoothdeinterlace(doublerate=true).trim(1,0)
Convolution3D(preset="movieLQ")

More help about AviSynth, and links to the plugins, can be found at www.avisynth.org if you look in the FAQ, section3

bb
15th January 2003, 14:06
AviSource("DV.avi") #Some DV needs Directshowsource instead
You can use AviSource, if you have a VfW DV codec installed, and your AVI has the correct four-CC (if not, you can easily change it, see Doom9's download section and look for FourCC Changer).

By the way: you may want to walk by the DV forum.

bb

onesoul
15th January 2003, 14:53
quote: trim(1,0)
Why cut off the first frame?

hakko504
15th January 2003, 14:57
@onesoulOriginally posted by hakko504
#I always get an error at the first frame when using doublerate=true.
I've been meaning to ask Xesdeeni about it, but I haven't got around to it yet.

onesoul
15th January 2003, 15:03
warning: Brain malfunction!
Sorry, I read it but I didn't process it :)

hakko504
15th January 2003, 15:31
@onesoul

Don't worry, it happens to everybody once in a while. :D :cool:

RathO
15th January 2003, 20:55
I have a P4@2.8gHz w/512ram, running WinXPpro.
My DV camcorder is a Sony miniDV DCR TRV-25. I capt with Studio 8 and use Mainconcept Codec 2.04 to create avi file with effects. Yes i saw alot of noise...

I want to encode to XviD. Ill do 2 pass using vdub.

Thanx ill do some tests and come back to u guys with it.

RathO
16th January 2003, 06:17
Im using AVIsynth 2.07
Smoothdeinterlace works fine :) but not Convolution3DYV12.dll

Heres the code i use:
-------------
LoadPlugin("<path>\decomb.dll")
LoadPlugin("<path>\SmoothDeinterlacer.dll")
LoadPlugin("<path>\Convolution3DYV12.dll")

AVIsource("<path>\MyFile.avi")
Crop(8,0,704,480)
BilinearResize(640,480)
Smoothdeinterlace(doublerate=true).trim(1,0)
Convolution3D(preset="movieLQ")
-------------

I get this error: Convolution3D supports YV12 color format only.

Why?

bb
16th January 2003, 07:49
Because your DV file is in YUV2 format. Either convert to YV12 (and loose quality) or (better) use Convolution3D V1.01.

bb

hakko504
16th January 2003, 08:18
...or in other words, Convolution3DYV12 requires AviSynth v2.5a, and one more thing: always deinterlace before any resize. Sllightly slower, but will produce better quality. Hence:LoadPlugin("<path>\SmoothDeinterlacer.dll")
LoadPlugin("<path>\Convolution3D.dll")

AVIsource("<path>\MyFile.avi")
Smoothdeinterlace(doublerate=true).trim(1,0)
Crop(8,0,704,480)
BilinearResize(640,480)
Convolution3D(preset="movieLQ") (And you're not using decomb, so no point in loading it)