Ask Your Question

Revision history [back]

Python binding plays video very slow

I readed some topics like this but there is a solution for me. I'm processing and showing result of a video in python with opencv 2.4.4 (and 2.4.5), but frame speed is 1fps instead 30fps (I called cv2.waitKey(1000 / 30) ). I tried to play video without processing but result is the same. If I try to play the same video with c++ I can wath it with 30fps, but I want this result in python! My computer is a Mac Os X 10.8.3 with python 2.7.2 and opencv 2.4.4, I tried also ubuntu with python 2.7.3 and opencv 2.4.5 but no changes in results. I'm thinking to use a separate thread to play video or using scipy weave conversion to run only imshow code but I prefer a more clean and definitive solution.

Thanks in advance!

Python binding plays video very slow

I readed some topics like this but there is isn't a solution for me. I'm processing and showing result of a video in python with opencv 2.4.4 (and 2.4.5), but frame speed is 1fps instead 30fps (I called cv2.waitKey(1000 / 30) ). I tried to play video without processing but result is the same. If I try to play the same video with c++ I can wath it with 30fps, but I want this result in python! My computer is a Mac Os X 10.8.3 with python 2.7.2 and opencv 2.4.4, I tried also ubuntu with python 2.7.3 and opencv 2.4.5 but no changes in results. I'm thinking to use a separate thread to play video or using scipy weave conversion to run only imshow code but I prefer a more clean and definitive solution.

Thanks in advance!