requirement:
avisynth with TIVTC plug-in
x264
mp4box
usage:
tc2mp4 -i [source CFR-mp4] -t [timecode file] -o [destination VFR-mp4]
example:
1. Prepare CFR-mp4 and timecode format v1 file.
- You can use AVISynth script like below.
:example.avs:
DGDecode_mpeg2source("example.d2v")
tfm(d2v="example.d2v").tdecimate(mode=3,hybrid=2,vfrDec=1,mkvOut="example_timecode.txt")
- Encode.
x264 --output example.mp4 example.avs
2. Merge timecode into mp4
tc2mp4 -i example.mp4 -t example_timecode.txt -o example_vfr.mp4
3. Merge audio into mp4
mp4box -add example.aac example_vfr.mp4
------------------------------------------
DTSRepair
http://pickup.mofile.com/4237218052561798------------------------------------------