Video editing with Python
fixing back python 2.7 ffmpeg autodownload
Zulko2d8b1f54b4b2
diff --git a/moviepy/editor.py b/moviepy/editor.pyindex 2c067329..1803ffc3 100644--- a/moviepy/editor.py+++ b/moviepy/editor.py@@ -18,11 +18,17 @@ clip.preview().# file, but this would make the loading of moviepy slower.import os+import sys# Downloads ffmpeg if it isn't already installedimport imageio# Checks to see if the user has set a place for their own version of ffmpeg+if os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio') == 'ffmpeg-imageio':+ if sys.version_info[0] < (3, 4):+ #uses an old version of imageio with ffmpeg.download.+ imageio.plugins.ffmpeg.download()+# Clipsfrom .video.io.VideoFileClip import VideoFileClipfrom .video.io.ImageSequenceClip import ImageSequenceClip