网上很多的资料都比较老,主要参考以下链接:
http://blog.csdn.net/q506616671/article/details/7080407
http://www.cnblogs.com/acloud/archive/2011/11/04/ffmpeg.html
http://blog.csdn.net/professorsheep/article/details/6254467
编译ffmpeg时的配置命令:
$ ./configure --enable-shared --enable-memalign-hack >c:/1.log
输出结果便于查看配置:
使用ffplay.exe 播放各种格式视频结果:
install prefix /usr/local
source path .
C compiler gcc
ARCH x86 (generic)
big-endian no
runtime cpu detection no
yasm yes
MMX enabled yes
MMX2 enabled yes
3DNow! enabled yes
3DNow! extended enabled yes
SSE enabled yes
SSSE3 enabled yes
AVX enabled yes
CMOV enabled no
CMOV is fast no
EBX available yes
EBP available yes
debug symbols yes
strip symbols yes
optimize for size no
optimizations yes
static yes
shared yes
postprocessing support no
new filter support yes
network support yes
threading support w32threads
safe bitstream reader yes
SDL support yes
libdxva2 enabled no
libva enabled no
libvdpau enabled no
AVISynth enabled no
frei0r enabled no
gnutls enabled no
libaacplus enabled no
libass enabled no
libcdio support no
libcelt enabled no
libdc1394 support no
libfaac enabled no
libgsm enabled no
libmodplug enabled no
libmp3lame enabled no
libnut enabled no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support no
libopenjpeg enabled no
libpulse enabled no
librtmp enabled no
libschroedinger enabled no
libspeex enabled no
libstagefright-h264 enabled no
libtheora enabled no
libutvideo enabled no
libv4l2 enabled no
libvo-aacenc support no
libvo-amrwbenc support no
libvorbis enabled no
libvpx enabled no
libx264 enabled no
libxavs enabled no
libxvid enabled no
openal enabled no
openssl enabled no
zlib enabled no
bzlib enabled no
Enabled decoders:
aac cinepak mace3
aac_latm cljr mace6
aasc cook mdec
ac3 cscd microdvd
adpcm_4xm cyuv mimic
adpcm_adx dca mjpeg
adpcm_ct dfa mjpegb
adpcm_ea dirac mlp
adpcm_ea_maxis_xa dnxhd mmvideo
adpcm_ea_r1 dpx motionpixels
adpcm_ea_r2 dsicinaudio mp1
adpcm_ea_r3 dsicinvideo mp1float
adpcm_ea_xas dvbsub mp2
adpcm_g722 dvdsub mp2float
adpcm_g726 dvvideo mp3
adpcm_ima_amv dxtory mp3adu
adpcm_ima_apc eac3 mp3adufloat
adpcm_ima_dk3 eacmv mp3float
adpcm_ima_dk4 eamad mp3on4
adpcm_ima_ea_eacs eatgq mp3on4float
adpcm_ima_ea_sead eatgv mpc7
adpcm_ima_iss eatqi mpc8
adpcm_ima_qt eightbps mpeg1video
adpcm_ima_smjpeg eightsvx_exp mpeg2video
adpcm_ima_wav eightsvx_fib mpeg4
adpcm_ima_ws escape124 mpegvideo
adpcm_ms escape130 msmpeg4v1
adpcm_sbpro_2 exr msmpeg4v2
adpcm_sbpro_3 ffv1 msmpeg4v3
adpcm_sbpro_4 ffvhuff msrle
adpcm_swf ffwavesynth msvideo1
adpcm_thp flac mszh
adpcm_xa flic mxpeg
adpcm_yamaha flv nellymoser
alac fourxm nuv
als fraps pam
amrnb frwu pbm
amrwb g723_1 pcm_alaw
amv g729 pcm_bluray
anm gif pcm_dvd
ansi gsm pcm_f32be
ape gsm_ms pcm_f32le
ass h261 pcm_f64be
asv1 h263 pcm_f64le
asv2 h263i pcm_lxf
atrac1 h264 pcm_mulaw
atrac3 huffyuv pcm_s16be
aura idcin pcm_s16le
aura2 idf pcm_s16le_planar
avrp iff_byterun1 pcm_s24be
avs iff_ilbm pcm_s24daud
avui imc pcm_s24le
ayuv indeo2 pcm_s32be
bethsoftvid indeo3 pcm_s32le
bfi indeo4 pcm_s8
bink indeo5 pcm_s8_planar
binkaudio_dct interplay_dpcm pcm_u16be
binkaudio_rdft interplay_video pcm_u16le
bintext jacosub pcm_u24be
bmp jpeg2000 pcm_u24le
bmv_audio jpegls pcm_u32be
bmv_video jv pcm_u32le
c93 kgv1 pcm_u8
cavs kmvc pcm_zork
cdgraphics lagarith pcx
cdxl loco pgm
pgmyuv sol_dpcm vmdvideo
pgssub sonic vmnc
pictor sp5x vorbis
ppm srt vp3
prores sunrast vp5
prores_lgpl svq1 vp6
ptx svq3 vp6a
qcelp targa vp6f
qdm2 theora vp8
qdraw thp vqa
qpeg tiertexseqvideo wavpack
qtrle tiff wmalossless
r10k tmv wmapro
r210 truehd wmav1
ra_144 truemotion1 wmav2
ra_288 truemotion2 wmavoice
ralf truespeech wmv1
rawvideo tta wmv2
rl2 twinvq wmv3
roq txd wmv3image
roq_dpcm ulti wnv1
rpza utvideo ws_snd1
rv10 v210 xan_dpcm
rv20 v210x xan_wc3
rv30 v308 xan_wc4
rv40 v408 xbin
s302m v410 xbm
sgi vb xl
shorten vble xsub
sipr vc1 xwd
smackaud vc1image y41p
smacker vcr1 yop
smc vmdaudio yuv4
snow
Enabled encoders:
a64multi h263p pgm
a64multi5 huffyuv pgmyuv
aac jpeg2000 ppm
ac3 jpegls prores
ac3_fixed ljpeg prores_anatoliy
adpcm_adx mjpeg prores_kostya
adpcm_g722 mp2 qtrle
adpcm_g726 mpeg1video r10k
adpcm_ima_qt mpeg2video r210
adpcm_ima_wav mpeg4 ra_144
adpcm_ms msmpeg4v2 rawvideo
adpcm_swf msmpeg4v3 roq
adpcm_yamaha msvideo1 roq_dpcm
alac nellymoser rv10
amv pam rv20
ass pbm sgi
asv1 pcm_alaw snow
asv2 pcm_f32be sonic
avrp pcm_f32le sonic_ls
avui pcm_f64be srt
ayuv pcm_f64le sunrast
bmp pcm_mulaw svq1
cljr pcm_s16be targa
dca pcm_s16le tiff
dnxhd pcm_s24be v210
dpx pcm_s24daud v308
dvbsub pcm_s24le v408
dvdsub pcm_s32be v410
dvvideo pcm_s32le vorbis
eac3 pcm_s8 wmav1
ffv1 pcm_u16be wmav2
ffvhuff pcm_u16le wmv1
flac pcm_u24be wmv2
flv pcm_u24le xbm
g723_1 pcm_u32be xsub
gif pcm_u32le xwd
h261 pcm_u8 y41p
h263 pcx yuv4
Enabled hwaccels:
Enabled parsers:
aac dvdsub mpegvideo
aac_latm flac png
ac3 gsm pnm
adx h261 rv30
cavsvideo h263 rv40
cook h264 vc1
dca mjpeg vorbis
dirac mlp vp3
dnxhd mpeg4video vp8
dvbsub mpegaudio
Enabled demuxers:
aac iff pcm_u24be
ac3 image2 pcm_u24le
act image2pipe pcm_u32be
adf ingenient pcm_u32le
adx ipmovie pcm_u8
aea iss pmp
aiff iv8 pva
amr ivf qcp
anm jacosub r3d
apc jv rawvideo
ape latm rl2
asf lmlm4 rm
ass loas roq
au lxf rpl
avi m4v rso
avs matroska rtp
bethsoftvid mgsts rtsp
bfi microdvd sap
bink mjpeg sbg
bintext mlp sdp
bit mm segafilm
bmv mmf shorten
c93 mov siff
caf mp3 smacker
cavsvideo mpc smjpeg
cdg mpc8 sol
cdxl mpegps sox
daud mpegts spdif
dfa mpegtsraw srt
dirac mpegvideo str
dnxhd msnwc_tcp swf
dsicin mtv thp
dts mvi tiertexseq
dv mxf tmv
dxa mxg truehd
ea nc tta
ea_cdata nsv tty
eac3 nut txd
ffm nuv vc1
ffmetadata ogg vc1t
filmstrip oma vmd
flac pcm_alaw voc
flic pcm_f32be vqf
flv pcm_f32le w64
fourxm pcm_f64be wav
g722 pcm_f64le wc3
g723_1 pcm_mulaw wsaud
g729 pcm_s16be wsvqa
gsm pcm_s16le wtv
gxf pcm_s24be wv
h261 pcm_s24le xa
h263 pcm_s32be xbin
h264 pcm_s32le xmv
hls pcm_s8 xwma
ico pcm_u16be yop
idcin pcm_u16le yuv4mpegpipe
idf
Enabled muxers:
a64 ipod pcm_mulaw
ac3 ismv pcm_s16be
adts ivf pcm_s16le
adx jacosub pcm_s24be
aiff latm pcm_s24le
amr m4v pcm_s32be
asf matroska pcm_s32le
asf_stream matroska_audio pcm_s8
ass md5 pcm_u16be
au microdvd pcm_u16le
avi mjpeg pcm_u24be
avm2 mkvtimestamp_v2 pcm_u24le
bit mlp pcm_u32be
caf mmf pcm_u32le
cavsvideo mov pcm_u8
crc mp2 psp
daud mp3 rawvideo
dirac mp4 rm
dnxhd mpeg1system roq
dts mpeg1vcd rso
dv mpeg1video rtp
eac3 mpeg2dvd rtsp
ffm mpeg2svcd sap
ffmetadata mpeg2video segment
filmstrip mpeg2vob smjpeg
flac mpegts sox
flv mpjpeg spdif
framecrc mxf srt
framemd5 mxf_d10 swf
g722 null tg2
g723_1 nut tgp
gif ogg truehd
gxf oma vc1t
h261 pcm_alaw voc
h263 pcm_f32be wav
h264 pcm_f32le webm
image2 pcm_f64be wtv
image2pipe pcm_f64le yuv4mpegpipe
Enabled protocols:
applehttp hls pipe
cache http rtmp
concat httpproxy rtp
crypto md5 tcp
file mmsh udp
gopher mmst
Enabled filters:
abuffersink earwax pan
aconvert fade pixdesctest
aevalsrc fieldorder removelogo
aformat fifo rgbtestsrc
amerge format select
amix fps setdar
amovie gradfun setfield
anull hflip setpts
anullsink idet setsar
anullsrc life settb
aresample lut showinfo
ashowinfo lutrgb silencedetect
asplit lutyuv slicify
astreamsync mandelbrot split
bbox movie swapuv
blackdetect negate testsrc
buffersink noformat thumbnail
cellauto null tile
color nullsink transpose
copy nullsrc unsharp
crop overlay vflip
deshake pad volume
drawbox
Enabled bsfs:
aac_adtstoasc mjpeg2jpeg mp3_header_decompress
chomp mjpega_dump_header noise
dump_extradata mov2textsub remove_extradata
h264_mp4toannexb mp3_header_compress text2movsub
imx_dump_header
Enabled indevs:
lavfi vfwcap
Enabled outdevs:
sdl
License: LGPL version 2.1 or later
Creating config.mak and config.h...
libavutil/avconfig.h is unchanged
WARNING: pkg-config not found, library detection may fail.