Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def encode_to_video_fast(frames, fps):
|
|
77 |
size = (width, height)
|
78 |
|
79 |
# Define the codec and create VideoWriter object
|
80 |
-
fourcc = cv2.VideoWriter_fourcc(*
|
81 |
out = cv2.VideoWriter(video_clip_path, fourcc, fps, size)
|
82 |
|
83 |
for frame in frames:
|
|
|
77 |
size = (width, height)
|
78 |
|
79 |
# Define the codec and create VideoWriter object
|
80 |
+
fourcc = cv2.VideoWriter_fourcc(*"mp4v") # You can also try 'XVID', 'MJPG', etc.
|
81 |
out = cv2.VideoWriter(video_clip_path, fourcc, fps, size)
|
82 |
|
83 |
for frame in frames:
|