I get the i/o error by running:
VideoFileClip(file_path).subclip(start, end).to_gif(gif_temp_path, fps=fps, fuzz=2)
This is the error output:
File "/Users/alexandervodovoz/.virtualenvs/hampton/lib/python2.7/site-packages/moviepy-0.2.1.7.09-py2.7.egg/moviepy/video/VideoClip.py", line 116, in save_frame
ffmpeg_write_image(filename, im)
File "/Users/alexandervodovoz/.virtualenvs/hampton/lib/python2.7/site-packages/moviepy-0.2.1.7.09-py2.7.egg/moviepy/video/io/ffmpeg_writer.py", line 122, in ffmpeg_write_image
proc.communicate() # proc.wait()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 806, in communicate
return self._communicate(input)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1377, in _communicate
self.stdin.flush()
ValueError: I/O operation on closed file
I am seeing 'ValueError: I/O operation on closed file' in the latest build of the master branch. I had to go back to using this commit to get things working again: https://github.com/Zulko/moviepy/commit/954516a4e6b5a954faee4c392e0a303e58d68837
I get the i/o error by running: VideoFileClip(file_path).subclip(start, end).to_gif(gif_temp_path, fps=fps, fuzz=2)
This is the error output: File "/Users/alexandervodovoz/.virtualenvs/hampton/lib/python2.7/site-packages/moviepy-0.2.1.7.09-py2.7.egg/moviepy/video/VideoClip.py", line 116, in save_frame ffmpeg_write_image(filename, im) File "/Users/alexandervodovoz/.virtualenvs/hampton/lib/python2.7/site-packages/moviepy-0.2.1.7.09-py2.7.egg/moviepy/video/io/ffmpeg_writer.py", line 122, in ffmpeg_write_image proc.communicate() # proc.wait() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 806, in communicate return self._communicate(input) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1377, in _communicate self.stdin.flush() ValueError: I/O operation on closed file