VfrToCfr

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Undo revision 7677 by Raffriff42 (talk))
m
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
#REDIRECT [[External_filters#Frame_Rate_Conversion]]
+
{{FilterCat5|External_filters|Plugins|Plugins_x64|Adjustment_filters|Frame_Rate_Conversion}}
{{FilterCat|External_filters|Adjustment_filters|Frame_Rate_Conversion}}
+
{{Filter3
 +
|joyje
 +
|v1.1.1
 +
|[https://github.com/jojje/VfrToCfr-the-other-one/releases vfrtocfr-1.1.1.zip]
 +
|Frame Rate Converters
 +
|BSD
 +
|6=}}
 +
== 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.
 +
<br>
 +
<br>
 +
== Requirements ==
 +
* [x86] [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6.0]
 +
* [x64] [[AviSynth+]]
 +
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 +
 
 +
<br>
 +
 
 +
== [[Script variables|Syntax and Parameters]] ==
 +
:{{Template:FuncDef|VfrToCfr (clip, string "timecodes", int "fpsnum", int "fpsden", bool "debug") }}
 +
<br>
 +
::{{Par2| |clip|last}}
 +
:::Input clip.  Can be any AviSynth supported colorspace.  Must have exactly the same number of frames as lines in timecodes.
 +
<br>
 +
::{{Par2|timescodes|string|""}}
 +
:::Path to a matroska v2 timecodes file.  Only matroska v2 timecodes files are supported.
 +
<br>
 +
::{{Par2|fpsnum|int|0}}
 +
:::Numerator of the target FPS.
 +
<br>
 +
::{{Par2|fpsden|int|0}}
 +
:::Denominator of the target FPS.
 +
<br>
 +
::{{Par2|debug|bool|false}}
 +
:::Whether or not to show internal information (render it on top of the video). This parameter is optional and defaults to false.
 +
<br>
 +
== Examples ==
 +
Convert a VFR video clip to CFR FILM (23.976fps):
 +
<pre>
 +
FFVideoSource( "myclip.mp4", timecodes="timecodes.txt" )
 +
vfrtocfr( timecodes="timecodes.txt", fpsnum=24000, fpsden=1001 )
 +
 
 +
audiodub( FFAudioSource("myclip.mp4") )
 +
</pre>
 +
<br>
 +
==Changelog==
 +
Version        Date            Changes<br>
 +
v1.1.1          2017-02-25      - Minor multi threading improvement
 +
v1.1.0          2017-02-21      - Support for 64bit and VapourSynth
 +
v1.0.0          2013-01-15      - Initial release [http://web.archive.org/web/20130430033132/http://snarl.zapto.org/files/vfrtocfr-1.0.zip]
 +
<br>
 +
 
 +
==External Links ==
 +
*[https://github.com/jojje/VfrToCfr-the-other-one GitHub] - Source code repository.
 +
*[http://griffeltavla.wordpress.com/2013/01/18/convert-vfr-to-cfr-using-avisynth/ WordPress] - Convert VFR to CFR using AviSynth
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Frame_Rate_Conversion|External Filters]] &larr;'''

Latest revision as of 14:15, 14 April 2020

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

Contents

[edit] 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.

[edit] Requirements


[edit] Syntax and Parameters

VfrToCfr (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.


[edit] 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") )


[edit] Changelog

Version         Date            Changes
v1.1.1 2017-02-25 - Minor multi threading improvement v1.1.0 2017-02-21 - Support for 64bit and VapourSynth v1.0.0 2013-01-15 - Initial release [1]


[edit] External Links

  • GitHub - Source code repository.
  • WordPress - Convert VFR to CFR using AviSynth




Back to External Filters

Personal tools