Log in

View Full Version : How to change this small piece of QTGMC+TCombMask script for double frame rate?


cagali
11th April 2019, 06:05
The source is interlaced, 30i DVD vob.
This script works and outputs a single frame rate clip:

deint = mt_merge(last, QTGMC(Preset="Fast", FPSDivisor=2), TCombMask(lcLinked=true, athreshL=2, mthreshL=2).RemoveGrain(4, -1).mt_expand(mode=mt_square(2)).mt_inflate(), luma=true)
deint


I tried to change this script to output a double frame rate clip like this:

__q = QTGMC(Preset="Fast")

__d = SelectEvery(last,1,0,0)
__d

deint = mt_merge(last, __q, TCombMask(lcLinked=true, athreshL=2, mthreshL=2).RemoveGrain(4, -1).mt_expand(mode=mt_square(2)).mt_inflate(), luma=true)
deint


Obviously this did not work.
I compare the mask in single rate and double rate, and found that the mask in double rate is always DEEP GREEN, i.e. not a proper mask.

cagali
11th April 2019, 11:02
Actually I also tried TDeint and use QTGMC for the edeint clip.
TMM supports double frame rate so there is no problem.
However this solution leaves more residual combing than the TCombMask solution above.

As many people handle deinterlacing with TDeint + external deinterlaced clip,
maybe it is safer to stick to it?

Izuchi
12th April 2019, 07:21
Remove "FPSDivisor=2"

cagali
12th April 2019, 12:49
Remove "FPSDivisor=2"

Thanks for reminding me that I forget to mention the source type.
Removing "FPSDivisor=2" from the first script prompts something like "frame rates are not the same" error, by trying to merge a 30fps clip with a 60fps one.