[Libav-user] Why my ffmpeg libs are so large?

Stack Off stackoff at yahoo.com
Mon Apr 7 15:10:29 CEST 2014

Hello !

I compiled ffmpeg libs on my Ubuntu 64-bits using the following script:

   mkdir ~/ffmpeg_sources

   cd ~/ffmpeg_sources
   wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
   tar xjvf last_x264.tar.bz2
   cd x264-snapshot*
   ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --disable-asm
   make install
   make distclean

   cd ~/ffmpeg_sources
   wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
   tar xjvf ffmpeg-snapshot.tar.bz2
   cd ffmpeg
   ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" \
   --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --   enable-gpl \
  --enable-libx264 --enable-x11grab --disable-yasm                                                                                                                               
   make install
   make distclean
   hash -r

But the final libs are really large (For example, libavcodec.a > 140 Mo). Anybody know why my libs are so large ?

About libavcodec: I understand it contains many codecs but I only need one codec, H.264(x264). Is there a way to remove other codecs using compilation flags ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140407/5e895d9d/attachment.html>

More information about the Libav-user mailing list