OpenCV with Intel Media SDK
we are just programming a little VideoCapture node to read a stream from a camera and write it down to file with H.264 encoding. We're using OpenCV with it's functions
cv::VideoWriter("DestinationFile", cv::fourCC('H','2','6,''4'), ...)
It's just a simple OpenCV Code processing reading and writing in a Loop. The input of the camera shall be 1920x1080. Capturing this with GStreamer is no problem!
The Problem that occoured
We felt very sad after programming this, because the writing is very slow... The maximum was about 10 fps, even with 1280x720. But we did not dispair!
The possible solution
OpenCV is supporting the 'Intel Media SDK'. You can use it with
cv::VideoWriter("DestinationFile", apiReference="INTEL_MFX", ...).
This API Reference will directly adress the Intel Chipset to encode/decode your stuff. Before your are able to use the API Reference the Intel Media SDK has to be installed.
Here is detailled description: https://github.com/opencv/opencv/wiki/MediaSDK-encode-decode-backend
But we have a problem building OpenCV with the MediaSDK: CMake is Unable to find the SDK. In CMake it is allways telling
-- Intel MEdia SDK: NO
no matter which flags are set.
Is there somebody that have experiences with installing OpenCV with Media SDK?