This post is the continuation to my previous post here. Today we will compile Cinelerra to use external ffmpeg support. If you haven’t read previous post I strongly recommend you to do so now. This post picks up where I have left there.
1. Prerequisites
To compile Cinelerra we need to install:
$ sudo apt-get install automake1.9 autoconf g++ x11proto-xf86vidmode-dev libxxf86vm-dev
installing dependencies:
$ sudo apt-get install libasound2-dev libiec61883-dev libsndfile1-dev liba52-0.7.4-dev libfftw3-dev uuid-dev libdv4-dev libopenexr-dev libmjpegtools-dev
2. Getting Cinelerra sources
$ cd ~/video
$ git clone git://git.cinelerra.org/j6t/cinelerra.git cinelerra
$ cd cinelerra
3. Compiling
Before we can start compiling we have to make few modifications to the system files. Without modifications Cinelerra configuration and compilation scripts want be able to find
needed libraries. I bet there is other way to make it work but I have found this way to be the only way to do that with the newest Cinelerra and ffmpeg code. If you happen to know the proper
way to do that using FFMPEG_TEMP_CFLAGS, FFMPEG_TEMP_LIBS, FFMPEG_CFLAGS, FFMPEG_LIBS or any other flags please post a comment.
$ cd /usr/local/lib/pkgconfig
Copy following files to save place:
$ cp libavcodec.pc libavdevice.pc libavfilter.pc libavformat.pc libavutil.pc libpostproc.pc libswscale.pc ~/video
Now we have to edit those files. In each of this files edit the line starting with includedir=${prefix}/include and add the library name after backslash. For libavcodec.pl file your line should look like
includedir=${prefix}/include/libavcodec for libswscale.pc: includedir=${prefix}/include/libswscale. We are of course editing files in /usr/local/lib/pkgconfig.
now we are ready to configure and compile Cinelerra
$ ./autogen.sh
$ ./configure --prefix=/usr/local --enable-opengl --with-external-ffmpeg
$ make
$ sudo make install
$ sudo ldconfig
4. Clean up
Copy saved pkgconfig files back where they ware:
$ cd ~/video
$ sudo cp lib*.pc /usr/local/lib/pkgconfig/
Thats all! You can now test your new Cinelerra.
Tags: cinelerra, compilation

September 11th, 2009 at 10:21 am
To build with external ffmpeg create the environment variables before running configure:
#find /usr/ -type f |egrep ‘.*/include/libavcodec.*|.*/include/libswscale.*’
/usr/local/include/libavcodec/avcodec.h
/usr/local/include/libavcodec/opt.h
/usr/local/include/libswscale/swscale.h
…
# FFMPEG_CFLAGS=’-I/usr/local/include/libswscale -I/usr/local/include/libavcodec’;export FFMPEG_CFLAGS
# FFMPEG_TEMP_CFLAGS=’-I/usr/local/include/libswscale -I/usr/local/include/libavcodec’;export FFMPEG_TEMP_CFLAGS
# ./configure –with-external-ffmpeg