- untar ffmpeg
- ./configure --enable-shared --enable-swscale --enable-gpl
- make
- sudo make install
- untar opencv
- sudo apt-get install patch ;if not already installed
- patch otherlibs/highgui/cvcap_ffmpeg.cpp ../nfs/opencv-1.0.0-cvcapffmpegundefinedsymbols.patch
- #4 from the page http://www.rainsoft.de/projects/ffmpeg_opencv.html
- su
cd /usr/local/include/
mkdir ffmpeg
cp libavcodec/* ffmpeg/
cp libavdevice/* ffmpeg/
cp libavformat/* ffmpeg/
cp libavutil/* ffmpeg/
cp libswscale/* ffmpeg/
exit - change FFMPEGLIBS="-lavcodec -lavformat" to FFMPEGLIBS="-lavcodec -lavformat -lswscale" in configure
- ./configure --enable-shared
- make
- sudo make install
- sudo ldconfig
Friday, October 31, 2008
Installing OpenCV with ffmpeg
Making it work took some time and effort and repetition owing to the 4 nodes being individually separate entities. Here's what we and the ffmpeg and opencv tarballs had to go through
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment