omarbajouk commited on
Commit
a1b31ab
·
verified ·
1 Parent(s): 371799a

Update src/video_utils.py

Browse files
Files changed (1) hide show
  1. 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=1,
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