ffmpeg:集成lame/X264

来源:互联网 发布:失落沙洲知乎 编辑:程序博客网 时间:2024/06/06 06:54
If you want to enable mp3 encode/decode, you need installlibmp3lame.

1. Install and build libmp3lame
   download libmp3lame3.98.4 from the url: 
     http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz/download
2. Extract it to any local folder you like, suppose ine:\liblame-3.98.4
3. in MinGW/msys, enter the dir and build
     $ ./configure --enable-shared
     $ make
     $ make install

   Tips:You may feelstrange, not like ffmpeg, you cannot find libmp3lame.dll inlibmp3lame
   dir. Actually they are ina hidden directory ".libs". The DLL file is in the directory:
  lame-3.98.4/lame-3.98.4/libmp3lame/.lib/libmp3lame.dll,the dir".lib" is not shown in MinGW,
   but you can enter it. and Itshows in IE.

4. Integrate ffmpeg/x264/lame using the following configureand commands
   
   $./configure--enable-memalign-hack --enable-ffserver --enable-network--enable-protocols --enable-muxers --disable-yasm --enable-shared--enable-w32threads --enable-libx264 --enable-libmp3lame--enable-gpl --extra-cflags=-I/usr/local/include--extra-ldflags=-L/usr/local/lib

   $make
   $make install

That's all.

0 0