Decorators¶
These decorators are implemented to ease the writing of methods and effects in MoviePy
all decorators used in moviepy go there
-
moviepy.decorators.
add_mask_if_none
(f, clip, *a, **k)[source]¶ Add a mask to the clip if there is none.
-
moviepy.decorators.
apply_to_audio
(f, clip, *a, **k)[source]¶ This decorator will apply the function f to the audio of the clip created with f
-
moviepy.decorators.
apply_to_mask
(f, clip, *a, **k)[source]¶ This decorator will apply the same function f to the mask of the clip created with f
-
moviepy.decorators.
audio_video_fx
(f, clip, *a, **k)[source]¶ Use an audio function on a video/audio clip
This decorator tells that the function f (audioclip -> audioclip) can be also used on a video clip, at which case it returns a videoclip with unmodified video and modified audio.
-
moviepy.decorators.
convert_masks_to_RGB
(f, clip, *a, **k)[source]¶ If the clip is a mask, convert it to RGB before running the function
-
moviepy.decorators.
convert_to_seconds
(varnames)[source]¶ Converts the specified variables to seconds
-
moviepy.decorators.
preprocess_args
(fun, varnames)[source]¶ Applies fun to variables in varnames before launching the function