Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def encode_to_video_fast(frames, fps):
|
|
51 |
size = (width, height)
|
52 |
|
53 |
# Define the codec and create VideoWriter object
|
54 |
-
fourcc = cv2.VideoWriter_fourcc(*'
|
55 |
out = cv2.VideoWriter(video_clip_path, fourcc, fps, size)
|
56 |
|
57 |
for frame in frames:
|
|
|
51 |
size = (width, height)
|
52 |
|
53 |
# Define the codec and create VideoWriter object
|
54 |
+
fourcc = cv2.VideoWriter_fourcc(*'h264') # You can also try 'XVID', 'MJPG', etc.
|
55 |
out = cv2.VideoWriter(video_clip_path, fourcc, fps, size)
|
56 |
|
57 |
for frame in frames:
|