VFRtoCFR
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (redirect for convenient searching) |
m (→Requirements) |
||
(6 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{FilterCat5|External_filters|Plugins|Plugins_x64|Adjustment_filters|Frame_Rate_Conversion}} | |
− | {{ | + | {{Filter3 |
+ | |Aktan | ||
+ | |20180118 | ||
+ | |[https://github.com/Aktanusa/VFRtoCFR/releases VFRtoCFR20180118.zip] | ||
+ | |Frame Rate Converters | ||
+ | |Open Source | ||
+ | |6=[https://forum.doom9.org/showthread.php?t=165045 Doom9 Forum]}} | ||
+ | == Description == | ||
+ | Converts a variable frame rate (VFR) video to a constant frame rate (CFR) video with the help of Matroska Version 2 Timecodes. | ||
+ | <br> | ||
+ | <br> | ||
+ | == Requirements == | ||
+ | * [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | ||
+ | * [x64]: [[AviSynth+]] | ||
+ | * Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]] | ||
+ | |||
+ | <br> | ||
+ | |||
+ | == [[Script variables|Syntax and Parameters]] == | ||
+ | :{{Template:FuncDef|VFRtoCFR (clip, string "times", int "numfps", int "denfps", bool "dropped") }} | ||
+ | <br> | ||
+ | ::{{Par2| |clip|last}} | ||
+ | :::The clip to convert from VFR to CFR. | ||
+ | <br> | ||
+ | ::{{Par2|times|string|"times.txt"}} | ||
+ | :::The path to Matroska timecodes (v2). | ||
+ | <br> | ||
+ | ::{{Par2|numfps|int|30000}} | ||
+ | :::The numerator of the CFR. | ||
+ | <br> | ||
+ | ::{{Par2|denfps|int|0}} | ||
+ | :::The denominator of the CFR | ||
+ | <br> | ||
+ | ::{{Par2|dropped|bool|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. | ||
+ | <br> | ||
+ | == Examples == | ||
+ | Convert a VFR video clip to CFR FILM (23.976fps): | ||
+ | <pre> | ||
+ | FFVideoSource("myclip.mp4", timecodes="timecodes.txt") | ||
+ | VFRtoCFR(times="timecodes.txt", numfps=24000, denfps=1001) | ||
+ | |||
+ | AudioDub(FFAudioSource("myclip.mp4")) | ||
+ | </pre> | ||
+ | <br> | ||
+ | ==Changelog== | ||
+ | Version Date Changes<br> | ||
+ | 20180118 2018-01-18 - Minor text change | ||
+ | - Compiled 64-bit DLL | ||
+ | 20120730 2012-07-30 - Rewrote the whole algorithm to be a lot smarter | ||
+ | 20120528 2012-05-28 - Initial release | ||
+ | <br> | ||
+ | == Archived Downloads == | ||
+ | {| class="wikitable" border="1"; width="600px" | ||
+ | |- | ||
+ | !!width="100px"| Version | ||
+ | !!width="150px"| Download | ||
+ | !!width="150px"| Mirror | ||
+ | |- | ||
+ | !20120730 | ||
+ | |[http://www.mediafire.com/file/q6zfgpo5dhh50si/VFRtoCFR20120730.zip/file VFRtoCFR20120730.zip] | ||
+ | |[https://web.archive.org/web/20200421033133if_/http://s000.tinyupload.com/download.php?file_id=00583875088715259081&t=0058387508871525908198006 VFRtoCFR20120730.zip] | ||
+ | |} | ||
+ | <br> | ||
+ | ==External Links == | ||
+ | *[https://github.com/Aktanusa/VFRtoCFR GitHub] - Source code repository. | ||
+ | *[https://github.com/Irrational-Encoding-Wizardry/Vapoursynth-VFRToCFR GitHub] - VapourSynth version. | ||
+ | <br> | ||
+ | <br> | ||
+ | ----------------------------------------------- | ||
+ | '''Back to [[External_filters#Frame_Rate_Conversion|External Filters]] ←''' |
Latest revision as of 00:46, 22 May 2020
Abstract | |
---|---|
Author | Aktan |
Version | 20180118 |
Download | VFRtoCFR20180118.zip |
Category | Frame Rate Converters |
License | Open Source |
Discussion | Doom9 Forum |
Contents |
[edit] Description
Converts a variable frame rate (VFR) video to a constant frame rate (CFR) video with the help of Matroska Version 2 Timecodes.
[edit] Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: RGB24, RGB32, Y8, YV12, YV16, YV24
[edit] Syntax and Parameters
- VFRtoCFR (clip, string "times", int "numfps", int "denfps", bool "dropped")
- clip = last
- The clip to convert from VFR to CFR.
- clip = last
- string times = "times.txt"
- The path to Matroska timecodes (v2).
- string times = "times.txt"
- int numfps = 30000
- The numerator of the CFR.
- int numfps = 30000
- int denfps = 0
- The denominator of the CFR
- int denfps = 0
- 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.
- bool dropped = false
[edit] 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"))
[edit] Changelog
Version Date Changes
20180118 2018-01-18 - Minor text change - Compiled 64-bit DLL 20120730 2012-07-30 - Rewrote the whole algorithm to be a lot smarter 20120528 2012-05-28 - Initial release
[edit] Archived Downloads
Version | Download | Mirror |
---|---|---|
20120730 | VFRtoCFR20120730.zip | VFRtoCFR20120730.zip |
[edit] External Links
Back to External Filters ←