Skip to content

Commit

Permalink
Fix thread count in video generation
Browse files Browse the repository at this point in the history
  • Loading branch information
FujiwaraChoki authored and phuongnt committed Feb 11, 2024
1 parent 6722ffb commit d9914ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ def generate_video(combined_video_path: str, tts_path: str, subtitles_path: str,
audio = AudioFileClip(tts_path)
result = result.set_audio(audio)

result.write_videofile("../temp/output.mp4", threads=2)
result.write_videofile("../temp/output.mp4", threads=threads or 2)

return "output.mp4"

0 comments on commit d9914ed

Please sign in to comment.