jbilcke-hf HF staff commited on
Commit
b37b78f
1 Parent(s): 35d2d3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,8 +49,8 @@ def export_to_video_file(video_frames, output_video_path=None, fps=10):
49
  elif isinstance(video_frames[0], Image.Image):
50
  video_frames = [np.array(frame) for frame in video_frames]
51
 
52
- # Use VP8 codec
53
- fourcc = cv2.VideoWriter_fourcc(*'VP80')
54
  h, w, c = video_frames[0].shape
55
  video_writer = cv2.VideoWriter(output_video_path, fourcc, fps, (w, h), True)
56
 
 
49
  elif isinstance(video_frames[0], Image.Image):
50
  video_frames = [np.array(frame) for frame in video_frames]
51
 
52
+ # Use VP9 codec
53
+ fourcc = cv2.VideoWriter_fourcc(*'VP90')
54
  h, w, c = video_frames[0].shape
55
  video_writer = cv2.VideoWriter(output_video_path, fourcc, fps, (w, h), True)
56