Itay k
Itay k

Reputation: 4469

"No accelerated colorspace conversion found from yuv420p to bgr24" when using OpenCV with FFMPEG on mac

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

Answers (2)

Agile Bean
Agile Bean

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.

EDIT 2024-12-07:

link updated thanks to comment by Aperture Prometheus

Upvotes: 3

Sam
Sam

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

Related Questions