Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 28th May 2012, 15:54   #1  |  Link
Aktan
Registered User
 
Join Date: Feb 2002
Posts: 303
VFRtoCFR

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.

Last edited by Aktan; 30th July 2012 at 20:07. Reason: Updated release
Aktan is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.