ffmpeg:集成lame/X264

If you want to enable mp3 encode/decode, you need install libmp3lame.

1. Install and build libmp3lame
    download libmp3lame 3.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 in e:\liblame-3.98.4
3. in MinGW/msys, enter the dir and build
        $ ./configure --enable-shared
        $ make
        $ make install

    Tips:You may feel strange, not like ffmpeg, you cannot find libmp3lame.dll in libmp3lame
    dir. Actually they are in a 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 It shows in IE.

4. Integrate ffmpeg/x264/lame using the following configure and 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值