Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def create_alpha_video(frames, fps, type):
|
|
67 |
imgs.append(cv2.imread(img).astype(np.uint8))
|
68 |
|
69 |
APNG.from_files(frames, delay=1000).save(type + "_result.png")
|
70 |
-
mediapy.write_video(type + "_result.webm", imgs, fps=fps)
|
71 |
return type + "_result.webm"
|
72 |
|
73 |
def create_video(frames, fps, type):
|
|
|
67 |
imgs.append(cv2.imread(img).astype(np.uint8))
|
68 |
|
69 |
APNG.from_files(frames, delay=1000).save(type + "_result.png")
|
70 |
+
mediapy.write_video(type + "_result.webm", imgs, fps=fps, codec='vp9')
|
71 |
return type + "_result.webm"
|
72 |
|
73 |
def create_video(frames, fps, type):
|