Skip to content

Commit

Permalink
import Zulko#679
Browse files Browse the repository at this point in the history
  • Loading branch information
oyama committed Nov 20, 2019
1 parent c962808 commit 9dcc54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions moviepy/video/VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def write_videofile(self, filename, fps=None, codec=None,
rewrite_audio=True, remove_temp=True,
write_logfile=False, verbose=True,
threads=None, ffmpeg_params=None,
logger='bar'):
logger='bar', withmask=False):
"""Write the clip to a videofile.
Parameters
Expand Down Expand Up @@ -323,7 +323,7 @@ def write_videofile(self, filename, fps=None, codec=None,
audiofile=audiofile,
verbose=verbose, threads=threads,
ffmpeg_params=ffmpeg_params,
logger=logger)
logger=logger, withmask=withmask)

if remove_temp and make_audio:
os.remove(audiofile)
Expand Down
3 changes: 2 additions & 1 deletion moviepy/video/io/ffmpeg_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def ffmpeg_write_video(clip, filename, fps, codec="libx264", bitrate=None,
with FFMPEG_VideoWriter(filename, clip.size, fps, codec = codec,
preset=preset, bitrate=bitrate, logfile=logfile,
audiofile=audiofile, threads=threads,
ffmpeg_params=ffmpeg_params) as writer:
ffmpeg_params=ffmpeg_params,
withmask=withmask) as writer:

nframes = int(clip.duration*fps)

Expand Down

0 comments on commit 9dcc54e

Please sign in to comment.