[FFmpeg-devel] foo -> libfoo changes

Aurelien Jacobs aurel
Mon Jun 11 18:05:39 CEST 2007


On Mon, 11 Jun 2007 15:45:19 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> Hi
> 
> On Mon, Jun 11, 2007 at 04:14:20PM +0300, Ismail D?nmez wrote:
> > On Monday 11 June 2007 16:12:43 Michael Niedermayer wrote:
> > > Hi
> > >
> > > On Mon, Jun 11, 2007 at 04:26:02PM +0400, Pavlov Konstantin wrote:
> > > > On Thu, Jun 07, 2007 at 07:47:16PM +0300, Ismail D?nmez wrote:
> > > > > [...]
> > > > >
> > > > > >  @item example command line
> > > > > > -ffmpeg -i input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2
> > > > > > -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X
> > > > > > output.mp4 +ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4
> > > > > > -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180
> > > > > > -title X output.mp4 @end table
> > > > >
> > > > > This _is_ bad. The code name is AAC not libfaac, same for mp3 there is
> > > > > no codec called libmp3lame. Changes in configure script is ok but
> > > > > changing codec name is a very bad idea and breaking backward
> > > > > compatibility for no apparent reason.
> > > >
> > > > Sure it is. Strange to see such a change in the ABI breaking all the
> > > > stuff linked to older ffmpeg.
> > >
> > > feel free to send a patch for avcodec_find_encoder_by_name() so it
> > > selects libfaac/libmp3lame if no aac/mp3 is found
> > 
> > As seen on #ffmpeg :
> > 
> > <thresh> xdtv: symbol lookup error: xdtv: undefined symbol: x264_encoder
> > 
> > So the abi is broken not just command line.
> 
> i see no av prefix in it so i would say its not supposed to be part of the
> public api, the corresponding ones in libavformat are also not in a public
> header
> its a mere bug that these are in avcodec.h, they shouldnt be
> 
> also they cannot be part of the public ABI as x264_encoder depends on x264
> and x264 is optional
> 
> a patch to move these into allcodecs.h is welcome

Done and applied.

Aurel




More information about the ffmpeg-devel mailing list