New FFMpeg Changes Headers Location; Breaks Stuff
Recently, and it’s hard to say exactly which SVN snapshot this occured in, the FFMpeg project changed the location of a number of its header files. This has caused soem havoc with other applications that use FFmpeg for video decoding or encoding.
Amongst other things, Open Movie Editor complained that certain libraries were not installed, which they plainly were. This could be seen from running a simple “ffmpeg -i” command to see what which libraries FFmpeg had been configured again.
Trying to re-compile Open Movie Editor from source struck some problems, in that OME was looking for FFmpeg headers in the wrong place. To overcome this issue, so that OME would compile and then install correctly, I made the following changes.
The first crash will be with regards to avformat.h in the file nle_main.cxx
and the other two files you need to make some small edits to can be
found in the “src” directory created when OME is unpacked.
There are three files you’ll need to edit in the text editor of your choice:
Open each of those files and near the beginning (around line 35) will be references that look something like this:
You’ll need to find where avformat.h, avcodec.h and swscale.h are residing on your machine.
You can do this by using the following command:
>sudo find / avformat.h
On my machine, a build of Debian Lenny, these files can all be found in /usr/local/include
I edited the files so the code looks like this (example from VideoFileFfmpeg.H):
Once you’ve saved those files, OME should now be able to find the FFmpeg header files and build correctly.
Hopefully a new version of Open Movie Editor will soon be available where these issues have been rectified in the source.