Spaces:
Sleeping
Sleeping
add .mov file format
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def process_video_in_background(video_data: bytes, video_guid: str, filename: st
|
|
| 71 |
except Exception as e:
|
| 72 |
print(f"DB Error on video insert: {str(e)}")
|
| 73 |
return
|
| 74 |
-
with tempfile.NamedTemporaryFile(delete=False, suffix=".
|
| 75 |
temp_video_file.write(video_data)
|
| 76 |
temp_path = temp_video_file.name
|
| 77 |
cap = cv2.VideoCapture(temp_path)
|
|
|
|
| 71 |
except Exception as e:
|
| 72 |
print(f"DB Error on video insert: {str(e)}")
|
| 73 |
return
|
| 74 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=".mov") as temp_video_file:
|
| 75 |
temp_video_file.write(video_data)
|
| 76 |
temp_path = temp_video_file.name
|
| 77 |
cap = cv2.VideoCapture(temp_path)
|