您的位置:首页 > 其它

ffmpeg compile

2016-07-09 19:03 459 查看


./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-version3
--disable-optimizations --disable-asm

ERROR: libfaac not found

ERROR: libmp3lame >= 3.98.3 not found

ERROR: libopencore_amrnb not found

If you think configure made a mistake, make sure you are using the latest

version from Git.  If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.log" produced by configure as this will help

solve the problem.

--enable-ffplay  -- 编译ffplay



二交叉编译

1

apt-get install gcc-mingw-w64

2. sudo apt-get install mingw-w64-tools

3.

 ./configure --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --disable-doc

make

./configure --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-nonfree --disable-static --enable-shared --disable-doc --prefix=/home/tianyu/Projects/ffmpeg_build/opensource/result/ffmpeg
--extra-cflags="-I/home/tianyu/Projects/ffmpeg_build/opensource/result/include --extra-ldflags="-L/home/tianyu/Projects/ffmpeg_build/opensource/result/lib

Projects/ffmpeg_build/opensource/result

 ./configure --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-nonfree --disable-doc --enable-static --prefix=/home/tianyu/Projects/ffmpeg_build/opensource/result/ffmpeg --extra-cflags=-I/home/tianyu/Projects/ffmpeg_build/opensource/result/include
--extra-ldflags=-L/home/tianyu/Projects/ffmpeg_build/opensource/result/lib

 ./configure --disable-static --enable-shared --enable-version3 --enable-gpl --enable-nonfree --disable-pthreads --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --enable-libfdk-aac --enable-libx264 --enable-zlib --enable-cross-compile
--target-os=mingw32 --arch=x86 --prefix=/home/tianyu/Projects/ffmpeg_build/opensdk/ffmpeg --cross-prefix=i686-w64-mingw32- --extra-cflags=-I/home/tianyu/Projects/ffmpeg_build/opensdk/include --extra-ldflags=-L/home/tianyu/Projects/ffmpeg_build/opensdk/lib

4.

./configure --enable-shared --enable-pic --disable-opencl --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: