SickJumps
From Avisynth wiki
(Difference between revisions)
(SickJumps: add documentation) |
m (→Requirements) |
||
(3 intermediate revisions by one user not shown) | |||
Line 8: | Line 8: | ||
|6=[http://forum.doom9.org/showthread.php?t=175017 Doom9 Forum]}} | |6=[http://forum.doom9.org/showthread.php?t=175017 Doom9 Forum]}} | ||
== Description == | == Description == | ||
− | Speed ramping, aka time-remapping (smooth speed changes). | + | Speed ramping, aka time-remapping (smooth speed changes). |
+ | |||
This plugin: | This plugin: | ||
Line 16: | Line 17: | ||
* Optionally sets a script variable per-frame for the runtime environment, should you want to overlay the current input frame number, or the speed multiplier (sample script included with source) | * Optionally sets a script variable per-frame for the runtime environment, should you want to overlay the current input frame number, or the speed multiplier (sample script included with source) | ||
* Keeps no state between GetFrame or GetAudio calls, and should be MT friendly. | * Keeps no state between GetFrame or GetAudio calls, and should be MT friendly. | ||
− | |||
− | |||
<br> | <br> | ||
+ | |||
== Requirements == | == Requirements == | ||
* [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | * [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | ||
* [x64]: [[AviSynth+]] | * [x64]: [[AviSynth+]] | ||
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]] | * Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]] | ||
− | + | <br> | |
− | + | * [https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Microsoft Visual C++ 2015 Redistributable Package (x86 / x64)] | |
− | * [https:// | + | :<span style="color:red">***</span> <tt>vc_redist.x86.exe</tt> is required for <tt>SickJumps-x86</tt> |
− | :<span style="color:red">***</span> <tt> | + | :<span style="color:red">***</span> <tt>vc_redist.x64.exe</tt> is required for <tt>SickJumps-x64</tt> |
− | :<span style="color:red">***</span> <tt> | + | |
<br> | <br> | ||
+ | |||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
:{{Template:FuncDef|SickJumps(clip c, int "first_frame", int "last_frame", float "start_multiplier", float "full_multiplier", float "up_seconds", float "down_seconds", string "script_variable", float "end_multiplier") }} | :{{Template:FuncDef|SickJumps(clip c, int "first_frame", int "last_frame", float "start_multiplier", float "full_multiplier", float "up_seconds", float "down_seconds", string "script_variable", float "end_multiplier") }} |
Latest revision as of 15:55, 15 May 2020
Abstract | |
---|---|
Author | Robert Martens |
Version | v0.1.1 |
Download | SickJumps-0.1.1-AVS+-Windows-xXX.zip |
Category | Frame Rate Converters |
License | |
Discussion | Doom9 Forum |
Contents |
[edit] Description
Speed ramping, aka time-remapping (smooth speed changes).
This plugin:
- Processes both video and audio
- Lets you specify how long, in seconds, each output ramp should last
- Allows separate start and end speeds (e.g. start at 1x, speed up to 8x, then come back down to 3x on the way out)
- Optionally sets a script variable per-frame for the runtime environment, should you want to overlay the current input frame number, or the speed multiplier (sample script included with source)
- Keeps no state between GetFrame or GetAudio calls, and should be MT friendly.
[edit] Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: RGB24, RGB32, Y8, YV12, YV16, YV24
- *** vc_redist.x86.exe is required for SickJumps-x86
- *** vc_redist.x64.exe is required for SickJumps-x64
[edit] Syntax and Parameters
- SickJumps(clip c, int "first_frame", int "last_frame", float "start_multiplier", float "full_multiplier", float "up_seconds", float "down_seconds", string "script_variable", float "end_multiplier")
- clip =
- The input clip. Can be any colorspace and audio format.
- clip =
- int first_frame = 0
- The first frame of the ramp up to full speed.
- int first_frame = 0
- int last_frame = framecount-1
- The last frame of the ramp down to the ending speed.
- int last_frame = framecount-1
- float start_multiplier = 1.0
- The speed multiplier to use before the ramp up
- float start_multiplier = 1.0
- float full_multiplier = 2.0
- The speed multiplier to use between ramp up and ramp down.
- float full_multiplier = 2.0
- float up_seconds = c length / 4.0
- float down_seconds = c length / 4.0
- The resulting duration, in seconds, of the ramp up and ramp down.
- float up_seconds = c length / 4.0
- string script_variable =
- Assigns a string, containing some debug info, to the specified variable name. Said string is colon-delimited, and takes the following form:
- string script_variable =
"frame:X:multiplier:Y:section:Z"
- Respectively, it provides the current input frame number, multiplier, and a simple label describing what section ("before", "ramp up", "full speed", "ramp down", or "after") the current output frame resides in.
- The string is updated each frame, and is intended for use with AviSynth's runtime environment. Be sure to set ScriptClip's after_frame to true so the variable gets set properly.
- See the source distribution for an example script that demonstrates one approach to parsing the string and using some of its information.
- float end_multiplier = start_multiplier
- The speed multiplier to use after the ramp down.
- float end_multiplier = start_multiplier
[edit] Examples
[edit] External Links
- GitHub - Source code repository.
Back to External Filters ←