0

I am writing video after concatenating different clips using moviepy. On writing that video file it takes too much time to write that and sometimes it stuck on writing.

enter image description here

I have also used options like threads, bitrate, fps, logger but still facing this issue. Video length can be 15 minutes. But it should not take more than 1 hour. I am using Azure App Service Plan with 16 gb memory and 4 vCPU. How can I handle this issue? Is there any best alternative for this?

Hunzla Ali
  • 383
  • 2
  • 5
  • 22

1 Answers1

0
  • One of the workarounds is to pass the parameter progress_bar = False to the write_videofile(), Because the progress bar printing every time refreshes IDLE which uses a lot of memory results in decelerating your program until it crashes.
  • Making progress_bar = False prevents the bar from being written to the shell and improves performance on the system.

REFERENCES: write_videofile function get slower and slower

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18