Log in

View Full Version : IVTC with interpolating 'decimation' for hybrid content


Mawazi
26th October 2018, 20:20
Is there a way to ivtc/decimate hybrid footage that leaves either film or video sections at their correct framerate and then interpolates the other one to the same framerate? There are a number of filters that allow me to blend decimate, but it seems to me that interpolation quality has reached a point that I could use it to match the framerates without the ghosting of blends.

I can't find an existing filter/script that can do this. There are a few ntsc-to-pal scripts that seem to sort of do what I want, but with a different goal (I have no interest in PAL as a final format).

These are DVD mpeg2 NTSC VOBs, DGindex'd, mixture of (mostly) soft telecined film and 'progressive' video.

Any help appreciated. Thanks!

hello_hello
28th October 2018, 00:23
To not answer your question, would variable frame rate be better? There'd be no need to interpolate frames.
It's pretty easy to do with the TIVTC plugin.

You'd run an analysis pass with a script such as this to create the metrics files:

TFM(Output="D:\TFM Episode 1.txt")
TDecimate(mode=4, hybrid=2, Output="D:\TDecimate Episode 1.txt")

Then encode with a script like this:

TFM(Input="D:\TFM Episode 1.txt")
TDecimate(mode=5, hybrid=2, Input="D:\TDecimate Episode 1.txt", tfmin="D:\TFM Episode 1.txt", mkvout="D:\Timecodes Episode 1.txt")

If you're encoding with x264, add the following to the command line to encode in VFR mode:

--tcfile-in "D:\Timecodes Episode 1.txt"

If x264 is writing the output to MKV it will already have the correct timecodes, otherwise you can encode in VFR or CFR mode and mux the timecodes file into the output when it's done.