编译选项说明
./configure
--prefix=/d/project/OpenSource/ffmpeg_mingwBuild/install-h264-win32 //指定安装位置
--disable-static //禁用静态库
--enable-shared //启用动态库
--disable-debug //禁用debug符号调试
--enable-memalign-hack //启用内存对齐,必选项
--extra-cflags="-fno-common"
--cpu=i686 //指定cpu类型
--disable-encoders //禁用所有编码器
--disable-decoders //禁用所有解码器
--enable-decoder=h264 //启用h264解码器
--disable-hwaccels //禁用所有硬件加速(本机不存在硬件加速器,所有不需要)
--disable-muxers //禁用所有音视频复用器
--enable-muxer=h264 //启用h264音视频复用器(编码时需要)
--disable-demuxers //禁用所有音视频解复用器
--enable-demuxer=h264//启用h264文件个数的音视频解复用器
--disable-parsers //禁用所有解析分离器
--enable-parser=h264 //启用h264解析分离器
--disable-bsfs //禁用所有比特流滤波器
--enable-bsf=h264_mp4toannexb //启用h264_mp4的比特流滤波器
--disable-protocols //禁用所有协议(如果只是想取消网络支持,可以禁用网络支持即可)
--disable-network //禁用网络支持
--disable-indevs //禁用对所有输入设备的支持
--disable-outdevs //禁用对所有输出设备的支持(sdl,启用这个选项将无法使用sdl生成ffplay)
--disable-filters //禁用所有滤波器(可能会导致编译错误,可能h264需要其中某一项内容)
--disable-everything //禁用上面列出的从encoder到filter的所有功能组件;之后可以在使用--enable选项单独开启某个组件;
--disable-symver
>configH264_Decode_sdlLog.txt 将配置信息输入到指定文件
1、视频解码库仅包含h264解码库,编译运行成功
--cpu=i686 得写上,要不会提示:
Threading is enabled, but there is no implementation of atomic operations available
相关错误错误解决方式:
1、error C3861: 'UINT64_C': identifier not found
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
2、
Threading is enabled, but there is no implementation of atomic operations available
--cpu=i686 得写上 ,以
指定cpu型号
3、ffmpeg的 编译选项存在顺序,应该先写disable项,再写enable项。
Buildh264Only.sh的编译选项是ok的。。