Hi all! From my testing, it seems FFMS2 and Dss2 were slightly inaccurate when converting variable frame rate to constant frame rate videos in MKV. So I decided to write my own plugin. It still requires something like FFMS2 to retrieve all the frames without dups/drops and to grab the timecodes (though mkvextract could also do this). I hope this will be useful to someone.
Code:
VFRtoCFR
Converts a variable frame rate (VFR) video to a constant frame rate (CFR) video with the help of Matroska Version 2 Timecodes.
Usage:
VFRtoCFR(clip c, string times="times.txt", int numfps=30000, int denfps=1001, bool dropped=false)
Where:
c The clip to convert from VFR to CFR
times The path to Matroska timecodes (v2)
numfps The numerator of the CFR
denfps The denominator of the CFR
dropped If true, it will throws an error if there are frames dropped in the conversion. Good to figure out if the CFR is set too low.
Changelog:
2012/07/30:
-Rewrote the whole algorithm to be a lot smarter
2012/05/28:
- Initial release
Download:
http://www.mediafire.com/download.php?q6zfgpo5dhh50si
Edit: I'm not sure I posted this in the right forum. If not could some mod move it to the correct place?
Edit 2: Clarified that the inaccuracies of FFMS2 and Dss2 is only slight.