Skip to content

Video editing with Python

Minor Modifications to paint example (#515)

George Pantelis6c2ca833adcb
diff --git a/examples/painting_effect.py b/examples/painting_effect.py
index db607bab..8dda7720 100644
--- a/examples/painting_effect.py
+++ b/examples/painting_effect.py
@@ -5,7 +5,7 @@ from moviepy.editor import *
# WE TAKE THE SUBCLIPS WHICH ARE 2 SECONDS BEFORE & AFTER THE FREEZE
charade = VideoFileClip("../../videos/charade.mp4")
-tfreeze = cvsecs(19,21) # Time of the freeze, 19'21
+tfreeze = cvsecs(19.21) # Time of the freeze, 19'21
# when using several subclips of a same clip, it can be faster
# to create 'coreaders' of the clip (=other entrance points).
@@ -17,7 +17,7 @@ clip_after = charade.coreader().subclip(tfreeze ,tfreeze +2)
im_freeze = charade.to_ImageClip(tfreeze)
painting = (charade.fx( vfx.painting, saturation = 1.6,black = 0.006)
- .to_ImageClip(tfreeze)
+ .to_ImageClip(tfreeze))
txt = TextClip('Audrey',font='Amiri-regular',fontsize=35)