View Single Post
Old 18th April 2017, 01:10   #5  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
DeDup, as far as I know, doesn't produce the type of variable frame rate you (probably) want. It simply deletes duplicate frames. How are you processing the video before it gets to Dedup? With an IVTC filter etc?

TIVTC will do variable frame rate, although it'll only do a mixture of 23.976 (film) and 29.970 (de-interlaced video etc).. I don't think there's any way to get it to deinterlace to 60fps. If there's a lot of interlaced content you can go the other way and convert the whole lot to 60fps, but for hybrid DVDs I just get it to de-interlace the interlaced bits to 29.940fps myself.

There's instructions in the TIVTC help files, but the gist is you run it like this in a script to run an analysis pass first (no encoding required).

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

That'll create a couple of metrics files (text files) which you use for the encoding pass.

TFM().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 do it right, TIVTC will create a timecodes file before encoding begins. Ideally you'd give the timecodes file to x264 to play with so it can encode in variable frame rate mode, or you can encode in constant frame rate mode and add the timecodes file when muxing instead. If you're encoding subtitles, it's probably better to encode in VFR mode though, otherwise the subtitle timing will change if you add the timecodes file when muxing.

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

The timecodes file doesn't have to exist when you configure the encoder (assuming you're using a GUI). You just need to plan ahead so each encode uses a unique timecodes file, and add the appropriate timecodes file to the x264 command line, even if it doesn't exist at that point. It'll be created as soon as the script is run.

If you're encoding with DeDup in constant frame rate mode (I've barely used it so I can't remember much about it) and adding the timecodes file it creates when muxing, that's probably messing with the subtitle timings. Once again, even if you don't need to use TIVTC, I'd still use the timecodes file to Dedup creates to encode in variable frame rate mode if possible, assuming you really have to delete duplicate frames. Generally, I can't see the point myself.
hello_hello is offline   Reply With Quote