Spaces:
Sleeping
Sleeping
Update src/video_utils.py
Browse files- src/video_utils.py +1 -1
src/video_utils.py
CHANGED
|
@@ -105,7 +105,7 @@ def write_video_with_fallback(final_clip, out_path_base, fps=25):
|
|
| 105 |
audio=True,
|
| 106 |
ffmpeg_params=ffmpeg_params,
|
| 107 |
logger=None,
|
| 108 |
-
threads=
|
| 109 |
)
|
| 110 |
if os.path.exists(out) and os.path.getsize(out) > 150000:
|
| 111 |
return out
|
|
|
|
| 105 |
audio=True,
|
| 106 |
ffmpeg_params=ffmpeg_params,
|
| 107 |
logger=None,
|
| 108 |
+
threads=os.cpu_count(), # ✅ multi-threading activé
|
| 109 |
)
|
| 110 |
if os.path.exists(out) and os.path.getsize(out) > 150000:
|
| 111 |
return out
|