# deinterlace help

1. Hi, these 3 samples:

https://www.dropbox.com/sh/bya3hfrw8887xgw/AAAB3JSsTKs7Wc7qp06vN1UXa?dl=0

number 1 and 2 seems they use the same interlace mode. 3 frames are ok + 3 interlaced.
number 3 seems it has 5 frames interlaced + 1 frame ok.

in both cases I have tried all the commands I've learned until now, but still cant fix them correctly.
2. 1 and 3 are field blended PAL to NTSC conversions. Use

Code:
AssumeTFF()
SRestore()
to restore the progressive 25p frames.

2 is more complicated. It will take something different...

<edit>
Try this with #2:

Code:
AssumeTFF()
TDecimate(Cycle=6, CycleR=1)
Spline36Resize(720,288)
QTGMC(InputType=2)
nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1080)
That will leave you with 24.975 fps. Use TDecimate(mode=2, rate=25) for 25p.

</edit>
3. ok thanks, I'm trying right now, as soon as I use the QTGMC() command,
avspmod hangs, get stuck in the "wait for frame" window..

It seems Yadif is not recognized as a command.

the same, there's no function called Yadif..
also, why "Spline36Resize(720,288)" in the middle of the script?

I always used QTGMC(), but this time it makes all loading for long time..

https://www.dropbox.com/s/zkhhj7y1a8a6brq/stuck.png?dl=0

5. hi jagabo, sry for the delay.

just to make all clear:
samples 1 and 2 have the same interlace mode.
the number 3 has a different one.

anyway I've tried the script you mentioned:

AssumeTFF()
SRestore()

and it works good for 1 and 2.
then I tried the same script with the sample 3 and seems it works too.

thanks dude, you have been very precious.
6. No, 1 and 3 are the same. 2 is different. Here's what 2 looks like with the script I gave in post #2 (using TDecimate(mode=2, rate=25)):
7. Originally Posted by jagabo
No, 1 and 3 are the same. 2 is different. Here's what 2 looks like with the script I gave in post #2 (using TDecimate(mode=2, rate=25)):
hi jagabo,

sorry for the delay, all these instructions make the process very slow, only for change frame it takes 10s or more, anyway..
..you're right 1 and 3 are the same, 2 is different..

I'll use this script for the sample 1:

Code:
AssumeTFF()
SRestore()

crop(2,10,-2,-6)
bbmod(2,2,2,2,128,8)

and the same but with this crop for the sample 3

Code:
crop(0,2,-0,-2)
bbmod(2,2,0,0,128,8)
only one question: better to put crop and bbmod lines before or after the deinterlace code?
or is the same?

-----------------

about the sample 2, it is quite complicated, I don't pretend to understand it. I just copy and paste it.
but please tell me if the code below is correct, specifically are both the Spline36Resize parameters correct?
I don't know how this resolution has been calculated but maybe have I to change (720,288) with other values?
again: better to put crop and bbmod lines before or after the deinterlace code?

Code:
crop(20,22,-16,-30)
bbmod(2,2,2,2,128,8)

AssumeTFF()
TDecimate(mode=2, rate=25)
Spline36Resize(720,288)
QTGMC(InputType=2)
nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1884, fheight=1028)
thanks
8. Originally Posted by maudit
about the sample 2, it is quite complicated, I don't pretend to understand it. I just copy and paste it.
but please tell me if the code below is correct, specifically are both the Spline36Resize parameters correct?
I don't know how this resolution has been calculated but maybe have I to change (720,288) with other values?
again: better to put crop and bbmod lines before or after the deinterlace code?

Code:
crop(20,22,-16,-30)
bbmod(2,2,2,2,128,8)

AssumeTFF()
nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1884, fheight=1028)