Log in

View Full Version : Deinterlace question


naughty21
12th March 2009, 22:42
Hi can any one help me in deinterlacing and how can you do the deinterlace and what are good filters for it ....how can we decide which filter is used for particular source ....can you provide example with code for it ...

I need to do deinterlace for a movie ...672x272 size

sorry if this is a repost ... this is my 1st thread here plz ignore the mistakes

Thanks

Blue_MiSfit
12th March 2009, 23:06
Welcome to Doom9!

A few things:

1) There is no "best" here :)

Deinterlacing can be a lot to comprehend at first.

First of all, we need to know what the file is, and where you got it from.

A sample is helpful,

~MiSfit

deets
12th March 2009, 23:11
Welcome to Doom9!


First of all, we need to know what the file is, and where you got it from.



~MiSfit

do we really?


my personal current fave is yadif for my HD caps. megui and ripbot both handle it without too much issue.

http://forum.doom9.org/showthread.php?t=124284

Sagekilla
12th March 2009, 23:15
Yes, we do deets. It seems very odd that he would have a video @ 624x272 that's interlaced. I don't know of any sources that are normally like that. DVD is 720x480 progressive or interlaced, and Blu-ray is 1080i/p. Only other possibility is through capture card but why not capture at 720x480(576)?

Reason for why we need to know. (http://forum.doom9.org/forum-rules.htm)

deets
12th March 2009, 23:18
Yes, we do deets. It seems very odd that he would have a video @ 624x272 that's interlaced. I don't know of any sources that are normally like that. DVD is 720x480 progressive or interlaced, and Blu-ray is 1080i/p. Only other possibility is through capture card but why not capture at 720x480(576)?

Reason for why we need to know. (http://forum.doom9.org/forum-rules.htm)

maybe its odd, odd is fine :)

i know the forum rules and utterly respect them, yet i do get a little worried when it seems there is zero reason to suspect something is dodgy apart from a video size and its frame format

naughty21
12th March 2009, 23:30
here is script for it ...if you want i will provide the sample tooo



DGDecode_mpeg2source("C:\Documents and Settings\Admin\My Documents\Ddi - 2008\VTS_01_1.d2v", info=3)
ColorMatrix(hints=true,interlaced=true,threads=0)
tfm(order=1).tdecimate(hyberid=3)
crop( 6, 60, -8, -64)
degrainmedian(mode=4)
tweak(bright=5,hue=6, cont=1.0,sat=1.15)
VagueDenoiser(threshold=2, nsteps=6, chromaT=0.6, percent=75)
Spline36Resize(672,288) # Spline36 (Neutral)
#denoise
limitedsharpenfaster(smode=2, strength=80)

Guest
12th March 2009, 23:31
Gents, discussion of rules is OT here. Please desist.

Inspector.Gadget
12th March 2009, 23:32
You're already IVTCing there, why do you need to deinterlace?

The #denoise line indicates that you're working from MeGUI's AVS Script Creator, but it looks like you have a typical case of the noob overfiltering flu. :confused:

naughty21
12th March 2009, 23:36
here is the sample (http://www.megaupload.com/?d=D21MIYMC)

naughty21
12th March 2009, 23:38
You're already IVTCing there, why do you need to deinterlace?

The #denoise line indicates that you're working from MeGUI's AVS Script Creator, but it looks like you have a typical case of the noob overfiltering flu. :confused:

I didnt get it ...where i am doing ivtcing ? i just added tweak,vague and degrain ....remaining thing came in megui

Inspector.Gadget
12th March 2009, 23:53
Don't delete your AVS script! That's the main thing we need to discuss the problem!

Blue_MiSfit
13th March 2009, 00:05
My question was simply to figure out the original source. Knowing so makes it easier to offer advice :)

Simply put, you've got blended fields.

Here's my usual solution. Simple and imperfect, but usually ends up looking okay:


edi=nnedi(-2)
yadifmod(mode=1, edeint=edi)

repal


Your source is in fact an NTSC DVD, probably transferred from a PAL master (Which originally came from a 24p film telecine). The best you can hope for is just recovering the PAL as best you can. With blended fields it's impossible to do this perfectly, but smart-bobbing, and using repal seems to work pretty well to me.

I assume you mean you wanted to create an encode at 672x272. If so, fine. Just add a resize line to the end :)

~MiSfit

Mounir
13th March 2009, 17:42
I begin with avisynth and i'm in the same situation i want to deinterlace a video (yeah just that to begin) because i seem to have troubles with vdub & smart deinterlace so if someone could help me.
I want to deinterlace it (make it 720x480 progressive) and frameserve it to vdub, it's an mpeg file (vid/audio) (no .d2v)
Here is the sample (http://www.megaupload.com/?d=WARKC1MV)
Thanks in advance

2Bdecided
13th March 2009, 18:15
That's 24p with 3-2 pulldown (which you could simply IVTC), but there's a fully interlaced (60i) effect applied to the clip near the start. You can make it all 24p, all 60p, real/virtual 120p(!) or use VFR (not easy).

The help files of this...
http://neuron2.net/decomb/decombnew.html
...are quite instructive, especially Appendix B of DecombReferenceManual.html

Hope this helps.

Cheers,
David.

Mounir
13th March 2009, 18:30
My sample is 24p with pulldown?? There has to be a mistake it's from a vhs ntsc recorded through a pal vcr which deliver pal60 then i used the codec huffyuv 720x480/interlaced and converted in mpeg with procoder dvd ntsc / interlaced TFF

2Bdecided
13th March 2009, 21:13
24p with 3-2 pulldown = 60i (which includes some repeated fields).

Which you can get from VHS tape.

Or maybe someone will be along in a moment to tell me I'm wrong...

Cheers,
David.

naughty21
18th March 2009, 17:43
thanks for the help ....how can I calculate the FPs based on the source

Guest
18th March 2009, 18:25
I didnt get it ...where i am doing ivtcing ? tfm/tdecimate is doing the IVTC.

JeanMarc
25th March 2009, 17:01
@ Blue_Misfit

I have been struggling with NTSC video made from PAL telecined material.
Your three lines work better than anything I have tried so far!
:thanks: