Log in

View Full Version : A newbie needs some support for deinterlace


neutrogenik
26th March 2006, 17:24
I've been told on another topic that avisynth is really better than virtualdubmod filter for deinterlacing a vid so i'm looking for some explanations on how to do it, i read the wikipedia article and looked over the FAQs but i still don't see how to do it.

Do i have to write some code in a textfile and open it with virtualdubmod or so ?

DirectShowSource("C:\...\myvid.m2v")
TDeint()


Is that right ?

What i'm currently doing :

1°) Opening an Mpeg2 PS file (from usb TV stick) with virtualdubmod

2°) Using filters in this right order :

a) brightness +1%
b) deinterlace, blend mode
c) cropping
d) resizing

3°) Deleting some parts of the vid with "suppr" key

4°) Saving the file with xvid codec 1pass and "eqm_v3uhr_rev2" matrix

I'd like to do the same but using Avisynth for deinterlacing the video.

:thanks: in advance :)

Mug Funky
27th March 2006, 03:21
you can encode interlaced with xvid, but of course that depends on your target dimensions (and bitrate - interlace is a little less efficient). also it makes resizing a lot more fiddly. for computer viewing it's probably easier to deinterace, and i would recommend tdeint for that purpose.

your script approach seems fine. just make sure you actually have tdeint - it's a plugin. you can find it here if you don't have it.

[edit]

btw, you can crop and resize in avisynth too. slightly faster and more precise (no colourspace conversions like virtualdub does). make sure you use "fast recompress" mode in VDM if you're going to do all your processing in avisynth - again, faster and more precise that way, as there's no unnecessary colourspace conversion going on.

Boulder
27th March 2006, 11:55
your script approach seems fine. just make sure you actually have tdeint - it's a plugin. you can find it here if you don't have it.

The field order is most likely TFF which should be taken care of either by using AssumeTFF() before TDeint or using order=1 in TDeint.