Python binding plays video very slow

asked 2013-04-22 09:53:05 -0500

updated 2013-04-29 01:08:28 -0500

I readed some topics like this but there 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!

edit retag flag offensive close merge delete