Skip to content

Video editing with Python

Merge branch 'master' into scroll_fix

Gloin1313d3838730db8d
diff --cc tests/test_PR.py
index c93cb31e,790c65c4..aba1c3e5
--- a/tests/test_PR.py
+++ b/tests/test_PR.py
@@@ -89,14 -89,9 +89,19 @@@ def test_PR_515()
clip = VideoFileClip("media/fire2.mp4", fps_source='fps')
assert clip.fps == 10.51
+
+def test_PR_528():
+ clip = ImageClip("media/vacation_2017.jpg")
+ new_clip = vfx.scroll(clip, w=1000, x_speed=50)
+ new_clip = new_clip.set_duration(20)
+ new_clip.fps = 24
+ new_clip.write_videofile(os.path.join(TMP_DIR, "pano.mp4"))
+
-
++
+ def test_PR_529():
+ video_clip = VideoFileClip("media/fire2.mp4")
+ assert video_clip.rotation ==180
+
++
if __name__ == '__main__':
pytest.main()