Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 2.4.4 build always fails at ffmpeg portion

This is the start of the error messages:

[ 19%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o

In file included from home/opencv-2.4.5/modules/highgui/src/cap_ffmpeg_impl.hpp:60:0, from home/opencv-2.4.5/modules/highgui/src/cap_ffmpeg.cpp:45: home/Desktop/opencv-2.4.5/modules/highgui/src/ffmpeg_codecs.hpp:104:7: error: ‘CODEC_ID_H264’ was not declared in this scope

There are then about 100+ very similar lines saying that codecs were not declared in this scope. What's going on? I even installed all of the codec libraries recommended by the installation guide here: http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html

Any ideas?