mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-03-01 12:27:27 +08:00
✨ feat: Add video transition effects (fadein, fadeout)
This commit is contained in:
parent
ee0d2371d5
commit
7a5b037ad8
11
app/services/utils/video_effects.py
Normal file
11
app/services/utils/video_effects.py
Normal file
@ -0,0 +1,11 @@
|
||||
from moviepy import Clip, vfx
|
||||
|
||||
|
||||
# FadeIn
|
||||
def fadein_transition(clip: Clip, t: float) -> Clip:
|
||||
return clip.with_effects([vfx.FadeIn(t)])
|
||||
|
||||
|
||||
# FadeOut
|
||||
def fadeout_transition(clip: Clip, t: float) -> Clip:
|
||||
return clip.with_effects([vfx.FadeOut(t)])
|
||||
Loading…
Reference in New Issue
Block a user