Posts Tagged ‘cinelerra’

Cinelerra with external ffmpeg

Saturday, March 7th, 2009

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.