Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CaptureFromFile - what does OpenCV exactly do?


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?