CaptureFromFile - what does OpenCV exactly do?

asked 2012-08-27 09:47:17 -0500

Meehow gravatar image


My question is: What exactly happens under the hood in OpenCV when a video file is opened with CaptureFromFile and then RetrieveFrame is called?

In my particular case, I'm opening a H264 video file. When I call RetrieveFrame, I get decoded BGR images. But what exactly happens in between? I am using a Macports-installed OpenCV with Python bindings, so my intuition is that the decoding happens through ffmpeg. Is that correct? Is there documentation anywhere of the exact flow / calls that happen when CaptureFromFile / RetrieveFrame are called?



edit retag flag offensive close merge delete


Why don't you look into the source code? I think that any answer will be incomplete, because only the code says "what exactly happens".

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-09-30 03:17:47 -0500 )edit