Fade
AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io
- The sound track (if present) also fades linearly to and/or from silence.
- The fading affects only the first/last num_frames frames of the video.
- The first/last frame of the video becomes almost-but-not-quite color.
An additional color frame is added at the start/end, thus increasing the total frame count by one (or for FadeIO, by two).
- FadeIn0 / FadeOut0 / FadeIO0 do not add the extra color frames, leaving the end(s) almost-but-not-quite color.
- FadeIn2 / FadeOut2 / FadeIO2 add two extra color frames at the start/end instead of one.
Syntax and Parameters
FadeIn(clip clip, int num_frames [, int color , float fps ] )
FadeOut(clip clip, int num_frames [, int color , float fps ] )
FadeIO(clip clip, int num_frames [, int color , float fps ] )
FadeIn0(clip clip, int num_frames [, int color , float fps ] )
FadeOut0(clip clip, int num_frames [, int color , float fps ] )
FadeIO0(clip clip, int num_frames [, int color , float fps ] )
FadeIn2(clip clip, int num_frames [, int color , float fps ] )
FadeOut2(clip clip, int num_frames [, int color , float fps ] )
FadeIO2(clip clip, int num_frames [, int color , float fps ] )
- clip clip =
- Source clip; all AviSynth color formats accepted.
- int num_frames =
- Fade duration.
- int color = 000000ドル
- Specifies the start/end color; black by default.
- See Color presets for preset (named) colors.
- See Colors for more information on specifying colors numerically.
- Specifies the start/end color; black by default.
- float fps = 24.0
- Provides a reference for num_frames in audio only clips. It is ignored if a video stream is present.
- Set fps=AudioRate if sample exact audio positioning is required.
- Provides a reference for num_frames in audio only clips. It is ignored if a video stream is present.
Notes
FadeOut(clip, num_frames)
is just a shorthand for
(with num_frames+2 instead of num_frames+1 for FadeOut2, and num_frames+0 for FadeOut0).