I am running docker locally with dockerfile created for AWS LAMBDA. Moviepy performance in writing videofiles causes api request to time out, it is atleast 10x slower than running natively.
I tried increasing cpu and memory resources but performance is still the same
final_clip.write_videofile(output_file_path, codec="libx264", audio_codec="aac", fps=24, threads=8)