CaptureFromFile - what does OpenCV exactly do? [closed]

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-27 05:52:35.787147


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 -0600 )edit