I have 20k images that I want to compile into a video using Python. It takes unacceptably long to do this with a single process: having a for loop to load images one by one into RAM and finally writing them into a video.
Therefore, I'm looking for a parallel approach that gets the job done faster.
This sounded impossible the first time I thought about this, because this would mean multiple processes simultaneously writing to a single file (i.e., the output video file).
But on a second thought, maybe there exist some tools in Python that allow me to create a "placeholder video," and each frame of which can be safely written by one thread. That way I could create a video using all my cores much more quickly.
Is this possible at all?