These decorators are implemented to ease the writing of methods and effects in MoviePy
all decorators used in moviepy go there
Add a mask to the clip if there is none.
This decorator will apply the function f to the audio of the clip created with f
This decorator will apply the same function f to the mask of the clip created with f
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.
If the clip is a mask, convert it to RGB before running the function
Converts the specified variables to seconds
- moviepy.decorators.preprocess_args(fun, varnames)¶
Applies fun to variables in varnames before launching the function
Raise an error if the clip has no duration.