Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 13:27:12 +0930
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Giorgos Keramidas <>, Simon <>,  FreeBSD-questions <>
Subject:   Re: FFMpeg and FreeBSD
Message-ID:  <51CE5B18.6030302@ShaneWare.Biz>
In-Reply-To: <67um8rhagimbsb.fsf@saturn.laptop>
References:  <> <51CBA997.8040006@ShaneWare.Biz> <67um8rhagimbsb.fsf@saturn.laptop>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 29/06/2013 02:07, Giorgos Keramidas wrote:

>> I have had no problems using ffmpeg1 with my version of blender
>> for several months now. It has a cmake option for lib names and
>> then I added include/ffmpeg1 to C/CXXFLAGS and lib/ffmpeg1 to
> Hi Shane,
> This should probably be in the multimedi chapter of the Handbook or
> the FAQ, or in the UPDATING file of the ports.  Would you mind if I
> copied parts of the text and added them to e.g the FAQ?

sure - I'm thinking FAQ. Maybe start with the following -

To use ffmpeg1 with an existing port.

The first step is to get the ffmpeg1 headers and libs found, this should
be easily accomplished with the following (an easy way to first check
that the port compiles with ffmpeg1) -
CFLAGS+=    -I${LOCALBASE}/include/ffmpeg1
CXXFLAGS+=  -I${LOCALBASE}/include/ffmpeg1
LDFLAGS+=   -L${LOCALBASE}/lib/ffmpeg1

If the project source hasn't kept up with ffmpeg changes then you may be
able to replace some of the old functions to quickly keep it working
with the newer version. Blender can be source of inspiration for this -

The next step is to get it linking with the new lib names, these are
the ffmpeg lib names with a 1 appended to them eg. libavcodec1 instead
of libavcodec. Some ports may have options to make this easy for example
graphics/blender has a cmake variable called FFMPEG_LIBRARIES so adding
to the port Makefile handles that. Other ports may need a search and
replace such as sed 's|avcodec|avcodec1|g' or a patch manually made
for their Makefiles.

Want to link to this message? Use this URL: <>