Skip to content

Video editing with Python

fixed (?) bug in ffmpeg_write_image.

Zulko378a60bb801d
diff --git a/moviepy/video/io/ffmpeg_writer.py b/moviepy/video/io/ffmpeg_writer.py
index 73150733..2ae12c42 100644
--- a/moviepy/video/io/ffmpeg_writer.py
+++ b/moviepy/video/io/ffmpeg_writer.py
@@ -118,9 +118,9 @@ def ffmpeg_write_image(filename, image):
'-i','-', filename]
proc = sp.Popen( cmd, stdin=sp.PIPE, stderr=sp.PIPE)
- proc.stdin.write(image.tostring())
- proc.stdin.close()
- proc.communicate() # proc.wait()
+ #proc.stdin.write()
+ #proc.stdin.close()
+ proc.communicate(image.tostring()) # proc.wait()
if proc.returncode:
err = "\n".join(["MoviePy running : %s"%cmd,