freealise commited on
Commit
b595a57
·
verified ·
1 Parent(s): 68b5c92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):