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
  1. untar ffmpeg
  2. ./configure --enable-shared --enable-swscale --enable-gpl
  3. make
  4. sudo make install
  5. untar opencv
  6. sudo apt-get install patch ;if not already installed
  7. patch otherlibs/highgui/cvcap_ffmpeg.cpp ../nfs/opencv-1.0.0-cvcapffmpegundefinedsymbols.patch
  8. #4 from the page http://www.rainsoft.de/projects/ffmpeg_opencv.html
  9. su
    cd /usr/local/include/
    mkdir ffmpeg
    cp libavcodec/* ffmpeg/
    cp libavdevice/* ffmpeg/
    cp libavformat/* ffmpeg/
    cp libavutil/* ffmpeg/
    cp libswscale/* ffmpeg/
    exit
  10. change FFMPEGLIBS="-lavcodec -lavformat" to FFMPEGLIBS="-lavcodec -lavformat -lswscale" in configure
  11. ./configure --enable-shared
  12. make
  13. sudo make install
  14. sudo ldconfig
Sandy instead made a patch file for both step #8 and #10 so if anyone ever reads this and needs them, can contact him.

No comments:

IEEE Transactions on Parallel and Distributed Systems : latest TOC