mac版本10.6.6。
首先利用svn下载最新的ffmpeg,如下命令:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpegcd ffmpeg进入文件夹,输入如下命令,配置ffmpeg:
./configure --arch=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --disable-encoders --disable-debug --disable-mmx
make
sudo make install
完成,在终端输入ffmpeg进行测试,不出意外的话会出现几行字:
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 10 2011 21:47:56 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --arch=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --disable-encoders --disable-debug --disable-mmx
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
关于ffmpeg的更多消息可以参看http://www.ffmpeg.com.cn