HA6Bots / Automatic-Youtube-Reddit-Text-To-Speech-Video-Generator-and-Uploader

A series of 3 programs that will automatically receive scripts from Reddit, allow the user to edit them, then be sent off to a video generator where they will be uploaded to YouTube automatically.
MIT License
616 stars 182 forks source link

This is not using all cpus in processing #57

Open nikhilesh12045 opened 3 years ago

nikhilesh12045 commented 3 years ago

I tried to run the video generator on a 16 vcpus windows machine. But the cpu utilization is only 32% while the script is generating video. Is there a way to use all cpu while processing/rendering the video in the script. Do we have to program the script separately to use parallelism. Can any assist.Thanks.

HA6Bots commented 3 years ago

All rendering is handled by moviepy which is a wrapper for ffmpeg. There's an option to specify the amount threads in generatemovie.py for write_video, try changing that value and see if makes any difference.