Spaces:
Sleeping
Sleeping
Commit ·
71cf493
1
Parent(s): bef9145
fix: try changing codec
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def process_video(video_path, output_path):
|
|
| 36 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
| 37 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 38 |
|
| 39 |
-
fourcc = cv2.VideoWriter_fourcc(*'
|
| 40 |
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
| 41 |
|
| 42 |
progress_text = "Processing video... Please wait."
|
|
|
|
| 36 |
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
| 37 |
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 38 |
|
| 39 |
+
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
|
| 40 |
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
| 41 |
|
| 42 |
progress_text = "Processing video... Please wait."
|