Skip to content

Video editing with Python

Merge pull request #549 from mbeacom/dev-tests-cleanup

Mark Beacomec9959a2f735
diff --cc moviepy/video/VideoClip.py
index dda16da1,bd231e21..b1c9089d
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@@ -261,9 -237,9 +237,9 @@@ class VideoClip(Clip)
If true, will write log files for the audio and the video.
These will be files ending with '.log' with the name of the
output file in them.
-
+
verbose
- Boolean indicating whether to print infomation
+ Boolean indicating whether to print infomation.
progress_bar
Boolean indicating whether to show the progress bar.
diff --cc tests/test_issues.py
index 8eeccf00,5c5c4ebe..9ff789dc
--- a/tests/test_issues.py
+++ b/tests/test_issues.py
@@@ -180,21 -222,11 +222,20 @@@ def test_issue_416()
def test_issue_417():
# failed in python2
-
cad = u'media/python_logo.png'
- myclip = ImageClip(cad).fx(vfx.resize, newsize=[1280, 660])
- final = CompositeVideoClip([myclip], size=(1280, 720))
+ myclip = ImageClip(cad).fx(resize, newsize=[1280, 660])
+ CompositeVideoClip([myclip], size=(1280, 720))
#final.set_duration(7).write_videofile("test.mp4", fps=30)
+def test_issue_464():
+ import numpy as np
+ original_frames = [i*np.ones((32, 32, 3), dtype=np.uint8) for i in range(50)]
+ clip = ImageSequenceClip(original_frames, fps=30)
+ for original_frame, clip_frame in zip(original_frames, clip.iter_frames()):
+ # The retrieved frames should be equal to the original ones
+ # Since the frames are constant color, it suffices to compare one pixel
+ assert original_frame[0,0,0] == clip_frame[0,0,0]
+
def test_issue_467():
cad = 'media/python_logo.png'
clip = ImageClip(cad)