I'm trying to build OpenCV by following Kdenlive's compilation document. At cmake step, cmake cannot find ffmpeg's library. How can I address cmake to find ffmpeg?
$ git clone https://github.com/opencv/opencv.git $ git clone https://github.com/mltframework/mlt.git $ mkdir opencv/build $ cd opencv/build $ cmake .. -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
Output of cmake:
-- FFMPEG: NO -- avcodec: NO -- avformat: NO -- avutil: NO -- swscale: NO -- avresample: NO
Platform is Scientific Linux 7.4 and I have installed ffmeg and it's library under '/usr/local/lib' but it seems that cmake couldn't find it.