Reputation: 4469
When trying to acquire a frame from a video file (I've tried several video formats) I am getting an error message "No accelerated colorspace conversion found from yuv420p to bgr24". The exact same code ran perfectly fine on a windows machine and I couldn't get it to run on a mac even after I recompiled and installed FFMPEG and OpenCV. I am using lion for my OS. Any ideas?
Upvotes: 1
Views: 4263
Reputation: 7171
The reason why ffmpeg worked fine on Windows but threw this warning message can be found in the code, line 576, of FFMPEG.
As can be seen, ffmpeg will always throw this warning if the OS does NOT run on PPC or X86.
link updated thanks to comment by Aperture Prometheus
Upvotes: 3
Reputation: 20056
OpenCV uses a specific video coding/decoding back-end for each OS. On windows, it uses ffmpeg, which in turn can use some codecs installed on the machine. On Mac it uses qTime, and I think it can be compiled with ffmpeg.
Make sure u have quickTime up-to-date, and maybe install some codecs (There is such a notion on Mac?)
Hope it helps!
Upvotes: -1