Skip to content

Video editing with Python

Fix no audio bug (#968)

ThePhonon628e79d97130
diff --git a/moviepy/video/io/ffmpeg_writer.py b/moviepy/video/io/ffmpeg_writer.py
index a4ab5194..7fdd1dd6 100644
--- a/moviepy/video/io/ffmpeg_writer.py
+++ b/moviepy/video/io/ffmpeg_writer.py
@@ -86,7 +86,7 @@ class FFMPEG_VideoWriter:
'-s', '%dx%d' % (size[0], size[1]),
'-pix_fmt', 'rgba' if withmask else 'rgb24',
'-r', '%.02f' % fps,
- '-i', '-', '-an',
+ '-an', '-i', '-'
]
if audiofile is not None:
cmd.extend([