ffmpeg configure 参数翻译

17 篇文章 1 订阅
7 篇文章 0 订阅
已经测试,可以解码H264和RTP, LIB和DLL一共2.7M
./configure --disable-everything --disable-muxers --disable-avdevice --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-zlib --disable-bzlib --disable-debug --disable-ffmpeg --disable-ffserver --disable-ffplay --disable-muxers --disable-filters --disable-devices --disable-encoders --disable-hwaccels --enable-static --enable-memalign-hack --enable-small --enable-decoder=h264 --enable-demuxers --enable-parsers --enable-protocols

附1:
打包静态库的命令
gcc -shared -fPIC -o ffmpeg-0.8.dll -Wl,--whole-archive libswscale.a libavcodec.a libavfilter.a libavutil.a libavformat.a -Wl,--no-whole-archive -lwsock32 -lpthread -lSDL -lvfw32
附2:
打包静态库出现的BUG
1)若出现重复定义则找到avdecoec的makefile
OBJS-$(!CONFIG_SMALL)                           += inverse.o
编译时出现的BUG(编DLL时出现,或打包成DLL时也会出现)
1)  ff_svq3_add_idct_c等无法识别,link错误
用在h264.c里#if CONFIG_SVQ3_DECODER和#endif注释掉这些函数

 

 

小弟愚钝翻译的很不标准 将就着看吧
   --help                   print this message
  --logfile=FILE           log tests and output to FILE [config.err]          //测试和输出到文件记录
  --disable-logging        do not log configure debug information             //不要日志调试的信息
  --prefix=PREFIX          install in PREFIX []                               //安装在前缀
  --bindir=DIR             install binaries in DIR [PREFIX/bin]               //安装2进制文件
  --datadir=DIR            install data files in DIR [PREFIX/share/ffmpeg]    //安装数据文件目录
  --libdir=DIR             install libs in DIR [PREFIX/lib]                   //安装lib文件目录
  --shlibdir=DIR           install shared libs in DIR [PREFIX/lib]            //安装分享lib在目录
  --incdir=DIR             install includes in DIR [PREFIX/include]           //安装include在目录
  --mandir=DIR             install man page in DIR [PREFIX/share/man]         //安装手页册到目录

Configuration options:
  --disable-static         do not build static libraries [no]                 //不建立静态库
  --enable-shared          build shared libraries [no]                        // 建立共享库
  --enable-gpl             allow use of GPL code, the resulting libs          //允许GPL代码 生成在lib 和2进制文件
                           and binaries will be under GPL [no]               
  --enable-nonfree         allow use of nonfree code, the resulting libs      //允许nonfree代码生成lib 和2进制文件
                           and binaries will be unredistributable [no]
  --disable-ffmpeg         disable ffmpeg build                                //取消建立ffmpeg
  --disable-ffplay         disable ffplay build                                //
  --disable-ffserver       disable ffserver build                              //
  --enable-postproc        enable GPLed postprocessing support [no]            //使GPled后置处理支持        
  --enable-avfilter        video filter support [no]                           //视频过滤支持
  --enable-avfilter-lavf   video filters dependent on avformat [no]            //依赖avformat过滤器
  --enable-beosthreads     use BeOS threads [no]                               //使用BeOS线程                            
  --enable-os2threads      use OS/2 threads [no]                               //使用OS/2线程
  --enable-pthreads        use pthreads [no]                                   //pthreads
  --enable-w32threads      use Win32 threads [no]                              //win32
  --enable-x11grab         enable X11 grabbing [no]                            //使用X11夺走
  --disable-network        disable network support [no]                        //禁用网络支持                     
  --disable-ipv6           disable IPv6 support [no]                            //禁用ipv6支持
  --disable-mpegaudio-hp   faster (but less accurate) MPEG audio decoding [no]   //快(但不准确)的音频解码
  --enable-gray            enable full grayscale support (slower color)          //使全灰度支持(慢,颜色)    
  --disable-swscale-alpha  disable alpha channel support in swscale              //使alpha管道在swscale失去支持
  --disable-fastdiv        disable table-based division                          //禁用table-based的分工
  --enable-small           optimize for size instead of speed                     //优化尺寸代替速度
  --disable-aandct         disable AAN DCT code                                   //禁用AAN dct编码
  --disable-fft            disable FFT code                                       //禁用FFT代码
  --disable-golomb         disable Golomb code                                    //禁用Golomb代码
  --disable-mdct           disable MDCT code                                      //取消MDCT代码
  --disable-rdft           disable RDFT code                                      //取消RDFT代码
  --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)   //检测cpu的能力在运行时(更大的2进制)
  --enable-hardcoded-tables use hardcoded tables instead of runtime generation    //使用编码表替换运行时产生
  --enable-memalign-hack   emulate memalign, interferes with memory debuggers     //模仿memalign影响记忆的调试器
  --enable-beos-netserver  enable BeOS netserver                                  //使用beos netserver
  --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   disable hwaccel NAME                                   //禁用hwaccel名字
  --enable-hwaccel=NAME    enable hwaccel NAME                                    //启用hwaccel名字
  --disable-hwaccels       disable all hwaccels                                   //禁用所有hwaccel        
  --disable-muxer=NAME     disable muxer NAME                                     //muxer
  --enable-muxer=NAME      enable muxer NAME
  --disable-muxers         disable all muxers
  --disable-demuxer=NAME   disable demuxer NAME                                   //demuxer
  --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
  --disable-indevs         disable input devices                                //禁用输入设备                                            
  --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                                   //禁用所有过滤器
  --list-decoders          show all available decoders                           //显示所有可用的解码器
  --list-encoders          show all available encoders                           //显示所有可用的编码器
  --list-hwaccels          show all available hardware accelerators              //显示所有可用的硬件加速器            
  --list-muxers            show all available muxers                            
  --list-demuxers          show all available demuxers
  --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                            //显示所有可用的过滤器

External library support:   外部库的支持
  --enable-avisynth        enable reading of AVISynth script files [no]          //使阅读AVISYnth脚本文件           
  --enable-bzlib           enable bzlib [autodetect]                             //设置bzuilb(自动检测)
  --enable-libamr-nb       enable libamr-nb floating point audio codec [no]      //设置libamr-nb浮点音频解码
  --enable-libamr-wb       enable libamr-wb floating point audio codec [no]      //设置libamr-wb浮点音频解码
  --enable-libdc1394       enable IIDC-1394 grabbing using libdc1394        
                           and libraw1394 [no]
  --enable-libdirac        enable Dirac support via libdirac [no]
  --enable-libfaac         enable FAAC support via libfaac [no]
  --enable-libfaad         enable FAAD support via libfaad [no]
  --enable-libfaadbin      open libfaad.so.0 at runtime [no]
  --enable-libgsm          enable GSM support via libgsm [no]
  --enable-libmp3lame      enable MP3 encoding via libmp3lame [no]
  --enable-libnut          enable NUT (de)muxing via libnut,
                           native (de)muxer exists [no]
  --enable-libopenjpeg     enable JPEG 2000 decoding via OpenJPEG [no]
  --enable-libschroedinger enable Dirac support via libschroedinger [no]
  --enable-libspeex        enable Speex decoding via libspeex [no]
  --enable-libtheora       enable Theora encoding via libtheora [no]
  --enable-libvorbis       enable Vorbis encoding via libvorbis,
                           native implementation exists [no]
  --enable-libx264         enable H.264 encoding via x264 [no]
  --enable-libxvid         enable Xvid encoding via xvidcore,
                           native MPEG-4/Xvid encoder exists [no]
  --enable-mlib            enable Sun medialib [no]
  --enable-zlib            enable zlib [autodetect]

Advanced options (experts only):高级的选项
  --source-path=PATH       path to source code [/root/ffmpeg-r18656-iphone]                 //源代码路径
  --cross-prefix=PREFIX    use PREFIX for compilation tools []                              //作为编译工具使用的前缀                            
  --enable-cross-compile   assume a cross-compiler is used                                  //假设交叉编译的使用                                
  --sysroot=PATH           root of cross-build tree                                         //
  --sysinclude=PATH        location of cross-build system headers                           //cross—build系统位置的标题
  --target-os=OS           compiler targets OS [linux]                                      //
  --target-exec=CMD        command to run executables on target                            //编译器目标OS(linux)
  --target-path=DIR        path to view of build directory on target                       //建立目录的路径来查看目标上
  --nm=NM                  use nm tool                                                     //使用um工具                  
  --as=AS                  use assembler AS []                                             //使用汇编语言AS                                                       
  --cc=CC                  use C compiler CC [gcc]                                         //用c编译器cc                                     
  --host-cc=HOSTCC         use host C compiler HOSTCC                                      //  使用主机C编译器hostcc                                    
  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host                             //
  --host-ldflags=HLDFLAGS  use HLDFLAGS when linking for host                              //当链接主机的时候使用libs库                     
  --host-libs=HLIBS        use libs HLIBS when linking for host                             //lib时使用HLIBS主机链接                    
  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS [ -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112] 
  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []                               
  --extra-libs=ELIBS       add ELIBS []
  --extra-version=STRING   version string suffix []                                          //版本字符串后缀
  --build-suffix=SUFFIX    library name suffix []                                            //库名字后缀                          
  --arch=ARCH              select architecture [i686]                                        //选择建筑
  --cpu=CPU                select the minimum required CPU (affects                          选择最低需要cpu(影响指令的选择可能坠毁在更老的cpu)
                           instruction selection, may crash on older CPUs) 
  --enable-powerpc-perf    enable performance report on PPC                                 //设置绩效报告的ppc(需要使用pmc)
                           (requires enabling PMC)
  --disable-altivec        disable AltiVec optimizations                                     //禁用Altivec优化
  --disable-amd3dnow       disable 3DNow! optimizations                                      //禁用3DNOW优化
  --disable-amd3dnowext    disable 3DNow! extended optimizations                             //禁用3DNOW扩展优化
  --disable-mmx            disable MMX optimizations                                         //禁用MMX优化
  --disable-mmx2           disable MMX2 optimizations                                        //禁用MMX2优化
  --disable-sse            disable SSE optimizations                                         //禁用SSE优化
  --disable-ssse3          disable SSSE3 optimizations                                       //禁用SSSE3优化
  --disable-armv5te        disable armv5te optimizations                                     //禁用armv5te优化
  --disable-armv6          disable armv6 optimizations                                       //armv6
  --disable-armv6t2        disable armv6t2 optimizations                                     //armv6t2
  --disable-armvfp         disable ARM VFP optimizations                                     //arm vfp
  --disable-iwmmxt         disable iwmmxt optimizations                                      //iwmmxt
  --disable-mmi            disable MMI optimizations                                          //mmi
  --disable-neon           disable neon optimizations                                         //neon
  --disable-vis            disable VIS optimizations                                          //vis
  --disable-yasm           disable use of yasm assembler                                      //禁用yasm伤残汇编                      

Developer options (useful when working on FFmpeg itself): 开发者选项 当工作在FFmpeg本身的时候有用
  --disable-debug          disable debugging symbols                                              //禁止调试符号
  --enable-debug=LEVEL     set the debug level []                                                  //设置调试等级
  --enable-gprof           enable profiling with gprof []                                         //设置剖析和性能分析
  --disable-optimizations  disable compiler optimizations                                        //禁用编译器优化选项
  --enable-extra-warnings  enable more compiler warnings                                         //使更多的编译器选项
  --disable-stripping      disable stripping of executables and shared libraries                 //禁用剥夺可执行文件和共享库

NOTE: Object files are built at the place where configure is launched.                          //提示 :不表文件的地方是建在配置发射

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值