freealise commited on
Commit
da7b564
·
verified ·
1 Parent(s): 8781f40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def create_video(frames, fps, type):
90
  for j, img in enumerate(frames):
91
  frames[j] = cv2.cvtColor(cv2.imread(img).astype(np.uint8), cv2.COLOR_RGB2RGBA)
92
 
93
- mediapy.write_video(type + "_result.mp4", frames, fps=fps)
94
 
95
  #https://zulko.github.io/moviepy/getting_started/videoclips.html#mask-clips
96
  #clip = ImageSequenceClip(frames, fps=fps)
 
90
  for j, img in enumerate(frames):
91
  frames[j] = cv2.cvtColor(cv2.imread(img).astype(np.uint8), cv2.COLOR_RGB2RGBA)
92
 
93
+ mediapy.write_video(type + "_result.mp4", frames, fps=fps, codec='hevc', encoded_format='rgba')
94
 
95
  #https://zulko.github.io/moviepy/getting_started/videoclips.html#mask-clips
96
  #clip = ImageSequenceClip(frames, fps=fps)