VfrToCfr

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(add documentation)
m (Requirements)
Line 15: Line 15:
 
== Requirements ==
 
== Requirements ==
 
* AviSynth 2.6 or [http://sourceforge.net/projects/avisynth2/ greater]
 
* AviSynth 2.6 or [http://sourceforge.net/projects/avisynth2/ greater]
 +
* [[AviSynth+]] is required for 64-bit version.
 
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
  
 
<br>
 
<br>
 +
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|TimecodeFPS (clip, string "timecodes", int "fpsnum", int "fpsden", bool "debug") }}
 
:{{Template:FuncDef|TimecodeFPS (clip, string "timecodes", int "fpsnum", int "fpsden", bool "debug") }}

Revision as of 18:50, 16 August 2019

Abstract
Author joyje
Version v1.1.1
Download vfrtocfr-1.1.1.zip
Category Frame Rate Converters
License BSD
Discussion

Contents

Description

This plugin converts variable frame rate clips to constant frame rate by introducing null frames.

By specifying a constant target frame rate (CFR) in the form of a numerator and denominator that yield a frame rate higher than the average frame rate of variable frame rate (VFR) clip, the plugin will insert null frames (exact copies of previous frame(s)) where needed to keep the framerate constant.

Requirements


Syntax and Parameters

TimecodeFPS (clip, string "timecodes", int "fpsnum", int "fpsden", bool "debug")


clip   = last
Input clip. Can be any AviSynth supported colorspace. Must have exactly the same number of frames as lines in timecodes.


string  timescodes = ""
Path to a matroska v2 timecodes file. Only matroska v2 timecodes files are supported.


int  fpsnum = 0
Numerator of the target FPS.


int  fpsden = 0
Denominator of the target FPS.


bool  debug = false
Whether or not to show internal information (render it on top of the video). This parameter is optional and defaults to false.


Examples

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

FFVideoSource( "myclip.mp4", timecodes="timecodes.txt" )
vfrtocfr( timecodes="timecodes.txt", fpsnum=24000, fpsden=1001 )

audiodub( FFAudioSource("myclip.mp4") )


Changelog

Version         Date            Changes
v1.0 2013-01-15 - Initial release


External Links




Back to External Filters

Personal tools