VCR.avsi
— VCR effects¶
Effects that attempt to mimic VCR distortions.
-
VCRTweak
(c, amount)¶ Parameters: - c (clip) – the clip to do the effect on
- amount (float) – a number between 0 and 1.0 that indicates “how much” of the effect should be applied.
Applies a VCR “tweak” effect, desaturating and brightening the image.
-
VCREffect_WrapLine
(c, y, shift_x)¶ Parameters: - c (clip) – the clip to do the effect on
- y (int) – the y coordinate shift a line on
- shift_x (int) – the (currently positive only) number of pixels to shift the given line by
- vcr_tweak (float) – a value to give to
VCRTweak
to alter the given line. Defaults to 0.0 (does nothing).
Wraps a given line around by the given
shift_x
amount.
-
VCREffect_Loop
(c, y, amount, decay)¶ Parameters: - c (clip) – the clip to do the effect on
- y (int) – the y coordinate to start the effect on
- amount (float) – floating point number indicating number of pixels to shift by
- max_amount (float) – the initial amount value, used to compute a value for
vcr_tweak
in theVCREffect_WrapLine
call. - decay (float) – the decay amount - the “header” will shift down by this percentage each line. Closer to 1.0 makes it much taller, closer to 0.0 makes it shorter.
Implementation of
VCREffect
, this deals with looping (via recursion) to create all the necessary layers to generate the effect.
-
VCREffect
(c, y, start[, decay])¶ Parameters: - c (clip) – the clip to do the effect on
- y (int) – the y coordinate to start the effect on
- amount (int) – the starting number of pixels to shift the header by
- decay (float) – the decay amount - the “header” will shift down by this percentage each line. Closer to 1.0 makes it much taller, closer to 0.0 makes it shorter.
Do a simple VCR effect. Note that this effect currently requires an RGB32 input clip because you can’t adjust by a single pixel on YUV clips.
-
VCRFastForward
(c, speed[, decay])¶ Parameters: - c (clip) – the clip to speed up
- speed (int) – the number of times faster to make the video (so 2 is twice as fast, 3 is three times, etc.)
- decay (float) – the decay amount for the bars, given to
VCREffect
Speeds up the given clip, increasing the pitch of the underlying sound while doing it. (If you don’t want to do that, see
Speed.avsi
for functions that speed up a clip without altering pitch.)This applies several different effects to make it look like the effect is being done by a VCR. (Which translates to it being very slow because it’s creating a stupidly complicated filter-chain in order to achieve the effect.)
-
VCRFastForwardRange
(c, start, end, speed[, decay])¶ Parameters: - c (clip) – the clip to speed up
- start (int) – the first frame to speed up (inclusive)
- end (int) – the last frame to speed up (inclusive)
- speed (int) – the number of times faster to make the video (so 2 is twice as fast, 3 is three times, etc.)
- decay (float) – the decay amount for the bars, given to
VCREffect
Speeds up the range of a given section of a video, increasing the pitch of the underlying sound while doing it. (If you don’t want to do that, see
Speed.avsi
for functions that speed up a clip without altering pitch.)This applies several different effects to make it look like the effect is being done by a VCR. (Which translates to it being very slow because it’s creating a stupidly complicated filter-chain in order to achieve the effect.)