VFRtoCFR

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (category error)
m
Line 12: Line 12:
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* AviSynth 2.6 or [http://sourceforge.net/projects/avisynth2/ greater]
+
* [x86] [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6.0]
 
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
  
Line 18: Line 18:
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|TimecodeFPS (clip, string "times", int "numfps", int "denfps", bool "dropped") }}
+
:{{Template:FuncDef|VFRtoCFR (clip, string "times", int "numfps", int "denfps", bool "dropped") }}
 
<br>
 
<br>
 
::{{Par2| |clip|last}}
 
::{{Par2| |clip|last}}
Line 51: Line 51:
  
 
==External Links ==
 
==External Links ==
*[https://github.com/Aktanusa/VFRtoCFR GitHub] - Source code
+
*[https://github.com/Aktanusa/VFRtoCFR GitHub] - Source code repository.
*[https://github.com/Irrational-Encoding-Wizardry/Vapoursynth-VFRToCFR GitHub] - VapourSynth version
+
*[https://github.com/Irrational-Encoding-Wizardry/Vapoursynth-VFRToCFR GitHub] - VapourSynth version.
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Frame_Rate_Conversion|External Filters]] &larr;'''
 
'''Back to [[External_filters#Frame_Rate_Conversion|External Filters]] &larr;'''

Revision as of 13:17, 14 April 2020

Abstract
Author Aktan
Version 20120730
Download VFRtoCFR20120730.zip
Category Frame Rate Converters
License Open Source
Discussion Doom9 Forum

Contents

Description

Converts a variable frame rate (VFR) video to a constant frame rate (CFR) video with the help of Matroska Version 2 Timecodes.

Requirements


Syntax and Parameters

VFRtoCFR (clip, string "times", int "numfps", int "denfps", bool "dropped")


clip   = last
The clip to convert from VFR to CFR.


string  times = "times.txt"
The path to Matroska timecodes (v2).


int  numfps = 30000
The numerator of the CFR.


int  denfps = 0
The denominator of the CFR


bool  dropped = false
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.


Examples

Convert a VFR video clip to CFR FILM (23.976fps):

FFVideoSource("myclip.mp4", timecodes="timecodes.txt")
VFRtoCFR(times="timecodes.txt", numfps=24000, denfps=1001)

AudioDub(FFAudioSource("myclip.mp4"))


Changelog

Version         Date            Changes
20120730 2012-07-30 - Rewrote the whole algorithm to be a lot smarter 20120528 2012-05-28 - Initial release


External Links

  • GitHub - Source code repository.
  • GitHub - VapourSynth version.




Back to External Filters

Personal tools