Chinaunix首页 | 论坛 | 博客
  • 博客访问: 388927
  • 博文数量: 55
  • 博客积分: 1907
  • 博客等级: 上尉
  • 技术积分: 869
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-04 19:30
文章分类

全部博文(55)

文章存档

2011年(32)

2010年(23)

分类: 嵌入式

2011-02-15 20:55:07

ffmpeg的版本为 0.6
 
在控制台输入如下命令可看到 ffmpeg 详细的编译选项。
[root@localhost ffmpeg]# ./configure --help
 
 
Usage: configure [options]
Options: [defaults in brackets after descriptions]
Standard options:
  --help                   print this message
  --logfile=FILE           log tests and output to FILE [config.log]
  --disable-logging        do not log configure debug information
------------------------------------------------------------------------------
这几个参数重要,决定了ffmpeg编译出来的文件放在系统的什么地方。
                        
  --prefix=PREFIX          install in PREFIX []
  --bindir=DIR             install binaries in DIR [PREFIX/bin]
  --datadir=DIR            install data files in DIR [PREFIX/share/ffmpeg]
  --libdir=DIR             install libs in DIR [PREFIX/lib]
  --shlibdir=DIR           install shared libs in DIR [PREFIX/lib]
  --incdir=DIR             install includes in DIR [PREFIX/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
                           and binaries will be under GPL [no]
  --enable-version3        upgrade (L)GPL to version 3 [no]
  --enable-nonfree         allow use of nonfree code, the resulting libs
                           and binaries will be unredistributable [no]
------------------------------------------------------------------------------
这些文ffmpeg目录下的文件
  --disable-doc            do not build documentation
  --disable-ffmpeg         disable ffmpeg build
  --disable-ffplay         disable ffplay build
  --disable-ffprobe        disable ffprobe build
  --disable-ffserver       disable ffserver build
  --disable-avdevice       disable libavdevice build
  --disable-avcodec        disable libavcodec build
  --disable-avcore         disable libavcore build
  --disable-avformat       disable libavformat build
  --disable-swscale        disable libswscale build
  --enable-postproc        enable GPLed postprocessing support [no]
  --disable-avfilter       disable video filter support [no]
-------------------------------------------------------------------------------
  --disable-pthreads       disable pthreads [auto]
  --enable-w32threads      use Win32 threads [no]
  --enable-x11grab         enable X11 grabbing [no]
  --disable-network        disable network support [no]
  --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
  --disable-fastdiv        disable table-based division
  --enable-small           optimize for size instead of speed
  --disable-aandct         disable AAN DCT code
  --disable-dct            disable DCT code
  --disable-fft            disable FFT code
  --disable-golomb         disable Golomb code
  --disable-huffman        disable Huffman code
  --disable-lpc            disable LPC code
  --disable-mdct           disable MDCT code
  --disable-rdft           disable RDFT code
  --disable-vaapi          disable VAAPI code
  --disable-vdpau          disable VDPAU code
  --disable-dxva2          disable DXVA2 code
  --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)
  --enable-hardcoded-tables use hardcoded tables instead of runtime generation
  --enable-memalign-hack   emulate memalign, interferes with memory debuggers
  这个选项 牛B 啊!
  --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   disable hwaccel NAME
  --enable-hwaccel=NAME    enable hwaccel NAME
  --disable-hwaccels       disable all hwaccels
  --disable-muxer=NAME     disable muxer NAME
  --enable-muxer=NAME      enable muxer NAME
  --disable-muxers         disable 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
  --disable-indev=NAME     disable input device NAME
  --disable-outdev=NAME    disable output device NAME
  --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
----------------------------------------------------------------------------------
ffmpeg支持的外部解码库。ffmpeg为我们保留了这些解码库的swap(空壳子)。
当ffmpeg要支持这些文件格式时,那个这些解码库需我们手动的添加。当然ffmpeg也为我们自带
了 avi 这种常见视频格式的解码库,这样就不需要我们手动添加了。
External library support:
  --enable-avisynth        enable reading of AVISynth script files [no]
  --enable-bzlib           enable bzlib [autodetect]
  --enable-frei0r          enable frei0r video filtering
  --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
  --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
  --enable-libopencv       enable video filtering via libopencv [no]
  --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-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-librtmp         enable RTMP[E] support via librtmp [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-libvpx          enable VP8 support via libvpx [no]
 
  x264为新一代H.264标准的编解码器,它与2003年发布。在同行中编解码的效率是可是相当之高 。
  质量可超 rmvb。
  2011年又宣布支持蓝光编解码,可谓相当给力。
  --enable-libx264         enable H.264 encoding via x264 [no]
  --enable-libxavs         enable AVS encoding via xavs [no]
  xvid 为老一代的编解码器。
  --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 [/opt/friendlyarm/video/ffmpeg]
  --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
  --target-os=OS           compiler targets OS []
  --target-exec=CMD        command to run executables on target
  --target-path=DIR        path to view of build directory on target
  --nm=NM                  use nm tool
  --ar=AR                  use archive tool AR [ar]
  --as=AS                  use assembler AS []
  --cc=CC                  use C compiler CC [gcc]
  --ld=LD                  use linker LD
  --host-cc=HOSTCC         use host C compiler HOSTCC
  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host
  --host-ldflags=HLDFLAGS  use HLDFLAGS when linking for host
  --host-libs=HLIBS        use libs HLIBS when linking for host
  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS []
  --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 []
  --cpu=CPU                select the minimum required CPU (affects
                           instruction selection, may crash on older CPUs)
  --disable-asm            disable all assembler optimizations
  --disable-altivec        disable AltiVec optimizations
  --disable-amd3dnow       disable 3DNow! optimizations
  --disable-amd3dnowext    disable 3DNow! extended optimizations
  --disable-mmx            disable MMX optimizations
  --disable-mmx2           disable MMX2 optimizations
  --disable-sse            disable SSE optimizations
  --disable-ssse3          disable SSSE3 optimizations
  --disable-armv5te        disable armv5te optimizations
  --disable-armv6          disable armv6 optimizations
  --disable-armv6t2        disable armv6t2 optimizations
  --disable-armvfp         disable ARM VFP optimizations
  --disable-iwmmxt         disable iwmmxt optimizations
  --disable-mmi            disable MMI optimizations
  --disable-neon           disable neon optimizations
  --disable-vis            disable VIS optimizations
  --disable-yasm           disable use of yasm assembler
  --enable-pic             build position-independent code
  --malloc-prefix=PFX      prefix malloc and related names with PFX
  --enable-sram            allow use of on-chip SRAM
  --disable-symver         disable symbol versioning
Developer options (useful when working on FFmpeg itself):
  --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
  --samples=PATH           location of test samples for FATE
NOTE: Object files are built at the place where configure is launched.
-----------------------------------------------------------------------------------
以下翻译来自网络,ffmpeg的版本未知,放在一起只是为了参考下。

[root@web ffmpeg]# ./configure --help
Usage: configure [options]
Options: [defaults in brackets after descriptions]
Standard options:          基本选项参数
  --help                   显示此帮助信息|print this message
  --log[=FILE|yes|no]      记录测试并输出到config.err文件|log tests and output to FILE [config.err]
  --prefix=PREFIX          安装程序到指定目录(默认/usr/local)|install in PREFIX [/usr/local]
  --libdir=DIR             安装库到指定目录(默认prefix/lib)|install libs in DIR [PREFIX/lib]
  --shlibdir=DIR           指定共享库路径(默认prefix/lib)|install shared libs in DIR [PREFIX/lib]
  --incdir=DIR             指定includes路径(默认prefix/include/ffmpeg)|install includes in DIR[PREFIX/include/ffmpeg]
  --mandir=DIR             指定man page路径(默认prefix/man)install man page in DIR [PREFIX/man]
  --enable-mp3lame         启用mp3编码libmp3lame(默认关闭)enable MP3 encoding via libmp3lame[default=no]
  --enable-libogg          启用ogg支持libogg(默认关闭)enable Ogg support via libogg [default=no]
  --enable-vorbis          启用Vorbis支持libvorbis(默认关闭)enable Vorbis support via libvorbis [default=no]
  --enable-faad            启用faad支持libfaad(默认关闭)enable FAAD support via libfaad [default=no]
  --enable-faadbin         启用faad运行时链接支持(默认关闭)build FAAD support with runtime linking[default=no]
  --enable-faac            启用faac支持libfaac(默认关闭)enable FAAC support via libfaac [default=no]
  --enable-libgsm          启用GSM支持libgsm(默认关闭)enable GSM support via libgsm [default=no]
  --enable-xvid            启用xvid支持xvidcore(默认关闭)enable XviD support via xvidcore [default=no]
  --enable-x264            启用H.264编码(默认关闭)enable H.264 encoding via x264 [default=no]
  --enable-mingw32         启用MinGW本地/交叉win环境编译|enable MinGW native/cross Windows compile
  --enable-mingwce         启用MinGW本地/交叉winCE环境编译enable MinGW native/cross WinCE compile
  --enable-a52             启用A52支持(默认关闭)enable GPLed A52 support [default=no]
  --enable-a52bin          启用运行时打开liba52.so.0(默认关闭)open liba52.so.0 at runtime [default=no]
  --enable-dts             启用DTS支持(默认关闭)enable GPLed DTS support [default=no]
  --enable-pp              启用后加工支持(默认关闭)enable GPLed postprocessing support [default=no]
  --enable-static          构建静态库(默认启用)build static libraries [default=yes]
  --disable-static         禁止构建静态库(默认关闭)do not build static libraries [default=no]
  --enable-shared          构建共享库(默认关闭)build shared libraries [default=no]
  --disable-shared         禁止构建共享库(默认启用)do not build shared libraries [default=yes]
  --enable-amr_nb          启用amr_nb float音频编解码器|enable amr_nb float audio codec
  --enable-amr_nb-fixed    启用fixed amr_nb codec | use fixed point for amr-nb codec
  --enable-amr_wb          启用amr_wb float音频编解码器|enable amr_wb float audio codec
  --enable-amr_if2         启用amr_wb IF2音频编解码器|enable amr_wb IF2 audio codec
  --enable-sunmlib         启用Sun medialib(默认关闭) | use Sun medialib [default=no]
  --enable-pthreads        启用pthreads(多线程)(默认关闭)use pthreads [default=no]
  --enable-dc1394          启用libdc1394、libraw1394抓取IIDC-1394(默认关闭)enable IIDC-1394 grabbing using libdc1394
and
libraw1394 [default=no]
  --enable-swscaler        启用计数器支持?(默认关闭)software scaler support [default=no]
  --enable-avisynth        允许读取AVISynth脚本本件(默认关闭)allow reading AVISynth script files [default=no]
  --enable-gpl             允许使用GPL(默认关闭)allow use of GPL code, the resulting libav* and ffmpeg will be under
GPL
[default=no]
Advanced options (experts only): 高级选项参数(供专业人员使用)
  --source-path=PATH       源码的路径(当前为/root/flv/ffmpeg)| path to source code [/root/flv/ffmpeg]
  --cross-prefix=PREFIX    为编译工具指定路径 | use PREFIX for compilation tools []
  --cross-compile          假定使用了交叉编译 | assume a cross-compiler is used
  --cc=CC                  指定使用何种C编译器(默认gcc)use C compiler CC [gcc]
  --make=MAKE              使用特定的make | use specified make [make]
  --extra-cflags=ECFLAGS   添加ECFLAGS到CFLAGS | add ECFLAGS to CFLAGS []
  --extra-ldflags=ELDFLAGS 添加ELDFLAGS到LDFLAGS(默认-Wl,--as-needed)| add ELDFLAGS to LDFLAGS [ -Wl,--as-needed]
  --extra-libs=ELIBS       添加ELIBS | add ELIBS []
  --build-suffix=SUFFIX    为专用程序添加后缀 | suffix for application specific build []
  --arch=ARCH              选择机器架构(默认x86)select architecture  [x86]
  --cpu=CPU                选用最低的cpu(影响指令的选择,可以在老CPU上出错) | selects the minimum cpu required
(affects
instruction selection, may crash on older CPUs)
  --powerpc-perf-enable    启用PPC上面的性能报告(需要启用PMC)enable performance report on PPC
                           (requires enabling PMC)
  --disable-mmx            禁用MMX | disable MMX usage
  --disable-armv5te        禁用armv5te | disable armv5te usage
  --disable-iwmmxt         禁用iwmmxt | disable iwmmxt usage
  --disable-altivec        禁用AltiVec | disable AltiVec usage
  --disable-audio-oss      禁用OSS音频支持(默认启用)disable OSS audio support [default=no]
  --disable-audio-beos     禁用BeOS音频支持(默认启用)disable BeOS audio support [default=no]
  --disable-v4l            禁用video4linux提取(默认启用)disable video4linux grabbing [default=no]
  --disable-v4l2           禁用video4linux2提取(默认启用)disable video4linux2 grabbing [default=no]
  --disable-bktr           禁用bktr视频提取(默认启用)disable bktr video grabbing [default=no]
  --disable-dv1394         禁用DV1394提取(默认启用)disable DV1394 grabbing [default=no]
  --disable-network        禁用网络支持(默认支持)disable network support [default=no]
  --disable-ipv6           禁用ipv6支持(默认支持)disable ipv6 support [default=no]
  --disable-zlib           禁用zlib(默认支持)disable zlib [default=no]
  --disable-simple_idct    禁用simple IDCT例程(默认启用)disable simple IDCT routines [default=no]
  --disable-vhook          禁用video hooking支持 | disable video hooking support
  --enable-gprof           enable profiling with gprof [no]
  --disable-debug          禁用调试符号 | disable debugging symbols
  --disable-opts           禁用编译器最优化 | disable compiler optimizations
  --disable-mpegaudio-hp   启用更快的解码MPEG音频(但精确度较低)(默认禁用)faster (but less accurate) MPEG audio
decoding
[default=no]
  --disable-protocols      禁用 I/O 协议支持(默认启用)disable I/O protocols support [default=no]
  --disable-ffserver       禁用生成ffserver | disable ffserver build
  --disable-ffplay         禁用生成ffplay | disable ffplay build
  --enable-small           启用优化文件尺寸大小(牺牲速度)optimize for size instead of speed
  --enable-memalign-hack   启用模拟内存排列,由内存调试器干涉? | emulate memalign, interferes with memory debuggers
  --disable-strip          禁用剥离可执行程序和共享库 | disable stripping of executables and shared libraries
  --disable-encoder=NAME   禁用XX编码器 | disables encoder NAME
  --enable-encoder=NAME    启用XX编码器 | enables encoder NAME
  --disable-decoder=NAME   禁用XX解码器 | disables decoder NAME
  --enable-decoder=NAME    启用XX解码器 | enables decoder NAME
  --disable-encoders       禁用所有编码器 | disables all encoders
  --disable-decoders       禁用所有解码器 | disables all decoders
  --disable-muxer=NAME     禁用XX混音器 | disables muxer NAME
  --enable-muxer=NAME      启用XX混音器 | enables muxer NAME
  --disable-muxers         禁用所有混音器 | disables all muxers
  --disable-demuxer=NAME   禁用XX解轨器 | disables demuxer NAME
  --enable-demuxer=NAME    启用XX解轨器 | enables demuxer NAME
  --disable-demuxers       禁用所有解轨器 | disables all demuxers
  --enable-parser=NAME     启用XX剖析器 | enables parser NAME
  --disable-parser=NAME    禁用XX剖析器 | disables parser NAME
  --disable-parsers        禁用所有剖析器 | disables all parsers
 
 
 
阅读(24778) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~