FFmpeg3.4.2编译配置说明文档

Help options : 帮助选项

options
–help打印此消息rint this message
–quiet抑制显示丰富的输出Suppress showing informative output
–list-decoders显示所有可用的解码器show all available decoders
–list-encoders显示所有可用的编码器show all available encoders
–list-hwaccels显示所有可用的硬件加速器show all available hardware accelerators
–list-demuxers显示所有可用的分流器show all available demuxers
–list-muxers显示所有可用的muxersshow all available muxers
–list-parsers显示所有可用的解析器show all available parsers
–list-protocols显示所有可用的协议show all available protocols
–list-bsfs显示所有可用的比特流筛选器show all available bitstream filters
–list-indevs显示所有可用的输入设备show all available input devices
–list-outdevs显示所有可用的输出设备show all available output devices
–list-filters显示所有可用过滤器show all available filters

Standard options : 标准选项

options
–logfile=FILE记录测试并输出到FILE [ffbuild/config.log]log tests and output to FILE [ffbuild/config.log]
–disable-logging不要记录配置调试信息do not log configure debug information
–fatal-warnings如果生成任何配置警告,则失败fail if any configure warning is generated
–prefix=PREFIX安装在PREFIX [/usr/local]install in PREFIX [/usr/local]
–bindir=DIR在DIR中安装二进制文件[PREFIX/bin]install binaries in DIR [PREFIX/bin]
–datadir=DIR在DIR中安装数据文件[PREFIX/share/ffmpeg]install data files in DIR [PREFIX/share/ffmpeg]
–docdir=DIR在DIR中安装文档[PREFIX/share/doc/ffmpeg]install documentation in DIR [PREFIX/share/doc/ffmpeg]
–libdir=DIR在DIR中安装库[PREFIX/lib]install libs in DIR [PREFIX/lib]
–shlibdir=DIR在DIR [LIBDIR]中安装共享库install shared libs in DIR [LIBDIR]
–incdir=DIR安装包含在DIR [PREFIX/include]install includes in DIR [PREFIX/include]
–mandir=DIR在DIR中安装手册页[PREFIX/share/man]install man page in DIR [PREFIX/share/man]
–pkgconfigdir=DIR在DIR [LIBDIR/pkgconfig]中安装pkg-config文件install pkg-config files in DIR [LIBDIR/pkgconfig]
–enable-rpath使用rpath允许在路径中安装库不是动态链接器搜索路径的一部分链接程序时使用rpath(USE WITH CARE)not part of the dynamic linker search path use rpath when linking programs (USE WITH CARE)
–install-name-dir=DIR达尔文安装目标的目录名称.Darwin directory name for installed targets

Licensing options : 许可选项

options
–enable-gpl允许使用GPL代码,由此产生的库和二进制文件将在GPL [no]allow use of GPL code, the resulting libs and binaries will be under GPL [no]
–enable-version3升级(L)GPL到版本3 [否]upgrade (L)GPL to version 3 [no]
–enable-nonfree允许使用非自由代码,生成的库和二进制文件将是不可分发的[no]allow use of nonfree code, the resulting libs and binaries will be unredistributable [no]

Configuration options : 配置选项

options
–disable-static不建立静态库[no]do not build static libraries [no]
–enable-shared建立共享库[no]build shared libraries [no]
–enable-small优化大小而不是速度optimize for size instead of speed
–disable-runtime-cpudetect禁用在运行时检测CPU功能(较小的二进制)disable detecting CPU capabilities at runtime (smaller binary)
–enable-gray启用全灰度支持(较慢的颜色)enable full grayscale support (slower color)
–disable-swscale-alpha禁用swscale中的alpha通道支持disable alpha channel support in swscale
–disable-all禁用构建组件,库和程序disable building components, libraries and programs
–disable-autodetect禁用自动检测到的外部库[否]disable automatically detected external libraries [no]

Program options : 程序选项

options
–disable-programs不要建立命令行程序do not build command line programs
–disable-ffmpeg禁用ffmpeg构建disable ffmpeg build
–disable-ffplay禁用ffplay构建disable ffplay build
–disable-ffprobe禁用ffprobe构建disable ffprobe build

Documentation options : 文档选项

options
–disable-doc不要构建文档do not build documentation
–disable-htmlpages不要构建HTML文档页面do not build HTML documentation pages
–disable-manpages不要建立man文档页面do not build man documentation pages
–disable-podpages不要构建POD文档页面do not build POD documentation pages
–disable-txtpages不要构建文本文档页面do not build text documentation pages

Component options : 组件选项

options
–disable-avdevice禁用libavdevice构建disable libavdevice build
–disable-avcodec禁用libavcodec构建disable libavcodec build
–disable-avformat禁用libavformat构建disable libavformat build
–disable-swresample禁用libswresample构建disable libswresample build
–disable-swscale禁用libswscale构建disable libswscale build
–disable-postproc禁用libpostproc构建disable libpostproc build
–disable-avfilter禁用libavfilter构建disable libavfilter build
–enable-avresample启用libavresample构建(不建议使用)[no]enable libavresample build (deprecated) [no]
–disable-pthreads禁用pthreads [autodetect]disable pthreads [autodetect]
–disable-w32threads禁用Win32线程[autodetect]disable Win32 threads [autodetect]
–disable-os2threads禁用OS/2线程[autodetect]disable OS/2 threads [autodetect]
–disable-network禁用网络支持[no]disable network support [no]
–disable-dct禁用DCT代码disable DCT code
–disable-dwt禁用DWT代码disable DWT code
–disable-error-resilience禁用错误恢复代码disable error resilience code
–disable-lsp禁用LSP代码disable LSP code
–disable-lzo禁用LZO解码器代码disable LZO decoder code
–disable-mdct禁用MDCT代码disable MDCT code
–disable-rdft禁用RDFT代码disable RDFT code
–disable-fft禁用FFT代码disable FFT code
–disable-faan禁用浮点AAN(I)DCT代码disable floating point AAN (I)DCT code
–disable-pixelutils禁用libavutil中的像素实用程序disable pixel utils in libavutil

Individual component options : 单个组件选项

options
–disable-everything禁用下面列出的所有组件disable all components listed below
–disable-encoder=NAME禁用编码器名称disable encoder NAME
–enable-encoder=NAME启用编码器名称enable encoder NAME
–disable-encoders禁用所有编码器disable all encoders
–disable-decoder=NAME禁用解码器名称disable decoder NAME
–enable-decoder=NAME启用解码器名称enable decoder NAME
–disable-decoders禁用所有解码器disable all decoders
–disable-hwaccel=NAME禁用hwaccel名称disable hwaccel NAME
–enable-hwaccel=NAME启用hwaccel名称enable hwaccel NAME
–disable-hwaccels禁用所有hwaccelsdisable all hwaccels
–disable-muxer=NAME禁用muxer名称disable muxer NAME
–enable-muxer=NAME启用muxer名称enable muxer NAME
–disable-muxers禁用所有muxersdisable all muxers
–disable-demuxer=NAME禁用分路器名称disable demuxer NAME
–enable-demuxer=NAME启用分路器名称enable demuxer NAME
–disable-demuxers禁用所有分路器disable all demuxers
–enable-parser=NAME启用解析器名称enable parser NAME
–disable-parser=NAME禁用解析器名称disable parser NAME
–disable-parsers禁用所有解析器disable all parsers
–enable-bsf=NAME启用比特流筛选器名称enable bitstream filter NAME
–disable-bsf=NAME禁用比特流筛选器名称disable bitstream filter NAME
–disable-bsfs禁用所有比特流筛选器disable all bitstream filters
–enable-protocol=NAME启用协议名称enable protocol NAME
–disable-protocol=NAME禁用协议名称disable protocol NAME
–disable-protocols禁用所有协议disable all protocols
–enable-indev=NAME启用输入设备名称enable input device NAME
–disable-indev=NAME禁用输入设备名称disable input device NAME
–disable-indevs禁用输入设备disable input devices
–enable-outdev=NAME启用输出设备名称enable output device NAME
–disable-outdev=NAME禁用输出设备名称disable output device NAME
–disable-outdevs禁用输出设备disable output devices
–disable-devices禁用所有设备disable all devices
–enable-filter=NAME启用过滤器名称enable filter NAME
–disable-filter=NAME禁用过滤器名称disable filter NAME
–disable-filters禁用所有过滤器disable all filters

External library support : 外部库支持

  • 使用以下任何开关将允许FFmpeg链接到相应的外部库。 所有依赖于该库的组件都将被启用,如果所有其他依赖项都满足并且它们未被明确禁用。 例如。 –enable-libwavpack将启用链接到libwavpack并允许编译libwavpack编码器,除非它是通过–disable-encoder = libwavpack特别禁用的。
  • 请注意,只有系统库被自动检测到。 所有其他外部库必须明确启用。
  • 另请注意,以下帮助文本描述了库本身的用途,并非所有功能都必须由FFmpeg使用。

  • Using any of the following switches will allow FFmpeg to link to the corresponding external library. All the components depending on that library will become enabled, if all their other dependencies are met and they are not explicitly disabled. E.g. –enable-libwavpack will enable linking to libwavpack and allow the libwavpack encoder to be built, unless it is specifically disabled with –disable-encoder=libwavpack.

  • Note that only the system libraries are auto-detected. All the other external libraries must be explicitly enabled.
  • Also note that the following help text describes the purpose of the libraries themselves, not all their features will necessarily be usable by FFmpeg.

以下库提供了各种硬件加速功能

options
–disable-amf禁用AMF视频编码代码[autodetect]disable AMF video encoding code [autodetect]
–disable-audiotoolbox禁用Apple AudioToolbox代码[autodetect]disable Apple AudioToolbox code [autodetect]
–enable-cuda-sdk启用需要CUDA SDK的CUDA功能[否]enable CUDA features that require the CUDA SDK [no]
–disable-cuvid禁用Nvidia CUVID支持[autodetect]disable Nvidia CUVID support [autodetect]
–disable-d3d11va禁用Microsoft Direct3D 11视频加速代码[autodetect]disable Microsoft Direct3D 11 video acceleration code [autodetect]
–disable-dxva2禁用Microsoft DirectX 9视频加速代码[autodetect]disable Microsoft DirectX 9 video acceleration code [autodetect]
–disable-ffnvcodec禁用动态链接的Nvidia代码[autodetect]disable dynamically linked Nvidia code [autodetect]
–enable-libdrm启用DRM代码(Linux)[no]enable DRM code (Linux) [no]
–enable-libmfx通过libmfx启用Intel MediaSDK(AKA快速同步视频)代码[no]enable Intel MediaSDK (AKA Quick Sync Video) code via libmfx [no]
–enable-libnpp启用基于Nvidia Performance Primitives的代码[no]enable Nvidia Performance Primitives-based code [no]
–enable-mmal通过MMAL启用Broadcom多媒体抽象层(树莓派)[no]enable Broadcom Multi-Media Abstraction Layer (Raspberry Pi) via MMAL [no]
–disable-nvdec禁用Nvidia视频解码加速(通过hwaccel)[autodetect]disable Nvidia video decoding acceleration (via hwaccel) [autodetect]
–disable-nvenc禁用Nvidia视频编码代码[autodetect]disable Nvidia video encoding code [autodetect]
–enable-omx启用OpenMAX IL代码[no]enable OpenMAX IL code [no]
–enable-omx-rpi为Raspberry Pi启用OpenMAX IL代码[no]enable OpenMAX IL code for Raspberry Pi [no]
–enable-rkmpp启用瑞芯微媒体处理平台代码[no]enable Rockchip Media Process Platform code [no]
–disable-v4l2-m2m禁用V4L2 mem2mem代码[autodetect]disable V4L2 mem2mem code [autodetect]
–disable-vaapi禁用Video Acceleration API(主要是Unix / Intel)代码[autodetect]disable Video Acceleration API (mainly Unix/Intel) code [autodetect]
–disable-vdpau禁用用于Unix代码的Nvidia视频解码和演示API [autodetect]disable Nvidia Video Decode and Presentation API for Unix code [autodetect]
–disable-videotoolbox禁用VideoToolbox代码[autodetect]disable VideoToolbox code [autodetect]

Toolchain options : 工具链选项

Advanced options (experts only): 高级选项(仅限专家)

Optimization options (experts only): 优化选项(仅限专家)

options
–disable-asm禁用所有程序集优化disable all assembly optimizations
–disable-altivec禁用AltiVec优化disable AltiVec optimizations
–disable-vsx禁用VSX优化disable VSX optimizations
–disable-power8禁用POWER8优化disable POWER8 optimizations
–disable-amd3dnow禁用3DNow!优化disable 3DNow! optimizations
–disable-amd3dnowext禁用3DNow!扩展优化disable 3DNow! extended optimizations
–disable-mmx禁用MMX优化disable MMX optimizations
–disable-mmxext禁用MMXEXT优化disable MMXEXT optimizations
–disable-sse禁用SSE优化disable SSE optimizations
–disable-sse2禁用SSE2优化disable SSE2 optimizations
–disable-sse3禁用SSE3优化disable SSE3 optimizations
–disable-ssse3禁用SSSE3优化disable SSSE3 optimizations
–disable-sse4禁用SSE4优化disable SSE4 optimizations
–disable-sse42禁用SSE4.2优化disable SSE4.2 optimizations
–disable-avx禁用AVX优化disable AVX optimizations
–disable-xop禁用XOP优化disable XOP optimizations
–disable-fma3禁用FMA3优化disable FMA3 optimizations
–disable-fma4禁用FMA4优化disable FMA4 optimizations
–disable-avx2禁用AVX2优化disable AVX2 optimizations
–disable-avx512禁用AVX-512优化disable AVX-512 optimizations
–disable-aesni禁用AESNI优化disable AESNI optimizations
–disable-armv5te禁用armv5te优化disable armv5te optimizations
–disable-armv6禁用armv6优化disable armv6 optimizations
–disable-armv6t2禁用armv6t2优化disable armv6t2 optimizations
–disable-vfp禁用VFP优化disable VFP optimizations
–disable-neon禁用NEON优化disable NEON optimizations
–disable-inline-asm禁用内联汇编的使用disable use of inline assembly
–disable-x86asm禁用独立x86程序集的使用disable use of standalone x86 assembly
–disable-mipsdsp禁用MIPS DSP ASE R1优化disable MIPS DSP ASE R1 optimizations
–disable-mipsdspr2禁用MIPS DSP ASE R2优化disable MIPS DSP ASE R2 optimizations
–disable-msa禁用MSA优化disable MSA optimizations
–disable-mipsfpu禁用浮点MIPS优化disable floating point MIPS optimizations
–disable-mmi禁用龙芯SIMD优化disable Loongson SIMD optimizations
–disable-fast-unaligned考虑未对齐的访问速度缓慢consider unaligned accesses slow

Developer options (useful when working on FFmpeg itself): 开发人员选项(在FFmpeg本身工作时很有用)

options
–disable-debug禁用调试符号disable debugging symbols
–enable-debug=LEVEL设置调试级别[]set the debug level []
–disable-optimizations禁用编译器优化disable compiler optimizations
–enable-extra-warnings启用更多编译器警告enable more compiler warnings
–disable-stripping禁用可执行文件和共享库的剥离disable stripping of executables and shared libraries
–assert-level=level0(默认),1或2,断言测试的数量,2在运行时导致减速。0(default), 1 or 2, amount of assertion testing, 2 causes a slowdown at runtime.
–enable-memory-poisoning用任意数据填充堆未初始化的分配空间fill heap uninitialized allocated space with arbitrary data
–valgrind=VALGRIND使用指定的valgrind二进制文件,通过valgrind运行“make fate”测试来检测内存泄漏和错误。不能与–target-exec结合使用run “make fate” tests through valgrind to detect memory leaks and errors, using the specified valgrind binary. Cannot be combined with –target-exec
–enable-ftrapv陷阱算术溢出Trap arithmetic overflows
–samples=PATHFATE的测试样本的位置,如果未设置,则在调用时使用 FATESAMPLES|locationoftestsamplesforFATE,ifnotsetuse F A T E S A M P L E S 。 | l o c a t i o n o f t e s t s a m p l e s f o r F A T E , i f n o t s e t u s e FATE_SAMPLES at make invocation time.
–enable-neon-clobber-test检查NEON寄存器是否存在破坏(应仅用于调试目的)check NEON registers for clobbering (should be used only for debugging purposes)
–enable-xmm-clobber-test检查XMM寄存器是否存在破坏(仅适用于Win64;应仅用于调试目的)check XMM registers for clobbering (Win64-only; should be used only for debugging purposes)
–enable-random启用随机组件randomly enable/disable components
–disable-random禁用随机组件
–enable-random=LIST随机启用/禁用特定组件或randomly enable/disable specific components or
–disable-random=LIST组件组。 LIST是NAME [:PROB]条目的逗号分隔列表,其中NAME是组件,PROB是与NAME相关的概率(默认值为0.5)。component groups. LIST is a comma-separated list of NAME[:PROB] entries where NAME is a component (group) and PROB the probability associated with NAME (default 0.5).
–random-seed=VALUE种子值为–enable / disable-randomseed value for –enable/disable-random
–disable-valgrind-backtrace不要在Valgrind下打印回溯(仅适用于–disable-optimizations构建)do not print a backtrace under Valgrind (only applies to –disable-optimizations builds)
–enable-osfuzz启用构建模糊工具Enable building fuzzer tool
–libfuzzer=PATH通往libfuzzer的路径path to libfuzzer
–ignore-tests=TESTS以逗号分隔的列表(名称中没有“命运 - ”前缀),其结果被忽略comma-separated list (without “fate-” prefix in the name) of tests whose result is ignored
–enable-linux-perf启用Linux性能监视器APIenable Linux Performance Monitor API

NOTE: Object files are built at the place where configure is launched.

注:对象文件是在启动配置的位置构建的。

  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值