熟悉多种视频标准,如h.264, MPEG-2/MPEG-4, AVS.
全部博文(47)
分类: LINUX
2014-04-17 10:45:26
[root@localhost ffmpeg-2.1.1]# ./configure --prefix=/usr/local/ffmpeg --disable-optimizations --enable-gpl --enable-shared --enable-nonfree --enable-libvorbis --enable-libx264 --enable-libfaac --enable-pthreads --disable-ffserver --disable-ffplay --disable-asm --enable-bsf=h264_mp4toannexb
ERROR: libx264 not found
[root@localhost ffmpeg-2.1.1]# vim config.log
1 #include
2 int x;
END /tmp/ffconf.ERJY9494.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -O2 -mcpu=i686 -march=i6
86 -std=c99 -pthread -E -o /tmp/ffconf.QOQv9502.o /tmp/ffconf.ERJY9494.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/tmp/ffconf.ERJY9494.c:1:18: error: x264.h: No such file or directory
ERROR: libx264 not found
solution: 将/usr/local/ffmpeg/lib/下libx264目录下的库文件复制到/usr/local/lib下面,以及将/usr/local/ffmpeg/include/下libx264目录下的库文件复制到/usr/local/include下面
[root@localhost ffmpeg-2.1.1]# ./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-shared --enable-nonfree --enable-libvorbis --enable-libx264 --enable-libfaac --enable-pthreads --disable-ffserver --disable-ffplay
ERROR: libfaac not found
solution: 将/usr/local/ffmpeg/lib下的libfaac的库文件复制到/usr/local/lib下面。