Ask Your Question

Revision history [back]

Control VideoCapture Multithreading

Is there a way to limit the number of threads (or even just cpu cores) that VideoCapture().read() can use?

I am processing h264 encoded videos in a parallelized program and want to be able to control how much system resources my calls to VideoCapture().read() use. It's running on a shared server and to stay friends with my peers, I need to avoid hogging cpus.

I'm running OpenCV 3.1.0 with Python 3 bindings on a Debian machine