Skip to content

Video editing with Python

small recipe

Andres Vargas3ae11f5be276
diff --git a/docs/examples/quick_recipes.rst b/docs/examples/quick_recipes.rst
index ec92577d..736d29ce 100644
--- a/docs/examples/quick_recipes.rst
+++ b/docs/examples/quick_recipes.rst
@@ -63,3 +63,12 @@ Getting the average frame of a video
average_image = ImageClip(total_image/ nframes)
average_image.save_frame("average_test.png")
+Mirroring a video
+""""""""""""""""""
+ ::
+ import sys
+ from moviepy.editor import *
+
+ clip = VideoFileClip(sys.argv[1])
+ clip = clip.fx(vfx.mirror_x)
+ clip.write_videofile(sys.argv[2]