Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def get_frames(video_in, step, name, resize_w):
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
-
clip = ImageSequenceClip(frames, fps=fps)
|
91 |
clip.write_videofile(type + "_result.mp4", fps=fps, codec='libx265', ffmpeg_params=['-c:v', 'libx265', '-x265-params', 'crf=28' ], audio = False)
|
92 |
|
93 |
return type + "_result.mp4"
|
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
+
clip = ImageSequenceClip(frames, fps=fps, ismask=True)
|
91 |
clip.write_videofile(type + "_result.mp4", fps=fps, codec='libx265', ffmpeg_params=['-c:v', 'libx265', '-x265-params', 'crf=28' ], audio = False)
|
92 |
|
93 |
return type + "_result.mp4"
|