Process sections of video simultaneously

Hi I was wondering if anyone has experience with multiprocessing or threading to process multiple parts of a video simultaneously (first quarter, second quarter etc…) I tried using pythons multiprocessing library but it is slowing down my runtime from just processing the whole video at once, so I don’t think I’m doing it right.

I have a function that takes the video (or part of the video) as a parameter to process it. Lets just call it process(vid). I want to process(first_quarter), process(second_quarter), process(third_quarter) and process(fourth_quarter) at the same time, but can’t figure out how to.

first you should figure out how to decode video. do you have that checked off the list?

next you should evaluate what your “process” costs per frame in terms of CPU or whatever.