moviepy.audio.fx.AudioFadeIn#
- class moviepy.audio.fx.AudioFadeIn.AudioFadeIn(duration: float)[source]#
Return an audio (or video) clip that is first mute, then the sound arrives progressively over
duration
seconds.- Parameters:
duration (float) – How long does it take for the sound to return to its normal level.
Examples
clip = VideoFileClip("media/chaplin.mp4") clip.with_effects([afx.AudioFadeIn("00:00:06")])
- copy()#
Return a shallow copy of an Effect.
You must always copy an
Effect
before applying, because some of them will modify their own attributes when applied. For example, setting a previously unset property by using target clip property.If we was to use the original effect, calling the same effect multiple times could lead to different properties, and different results for equivalent clips.
By using copy, we ensure we can use the same effect object multiple times while maintaining the same behavior/result.
In a way, copy makes the effect himself being kind of idempotent.