帮助信息

查看ffmpeg版本

通过ffmpeg -version查看ffmpeg的版本,这里所查看的版本,是详细的版本,包含libavformat、libavcodec、libavutil、libavfilter、libswscale、libswresample的版本,如图: ffmpeg.exe -version

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180722
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fon
tconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsna
ppy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidsta
b --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --ena
ble-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth
libavutil      56. 14.100 / 56. 14.100
libavcodec     58. 18.100 / 58. 18.100
libavformat    58. 12.100 / 58. 12.100
libavdevice    58.  3.100 / 58.  3.100
libavfilter     7. 16.100 /  7. 16.100
libswscale      5.  1.100 /  5.  1.100
libswresample   3.  1.100 /  3.  1.100
libpostproc    55.  1.100 / 55.  1.100

查看formats

有时候使用ffmpeg转码,发现无法解析视频文件,或者无法生成视频文件,报一些不支持生成对应的视频文件的错误,这个时候就需要查看当前使用的ffmpeg是否支对应的视频文件格式,需要使用ffmpeg -formats来查看:

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developersbuilt with gcc 7.3.1 (GCC) 20180722configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-f
ontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --e
nable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libs
nappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --ena
ble-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvids
tab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --e
nable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva
2 --enable-avisynthlibavutil      56. 14.100 / 56. 14.100libavcodec     58. 18.100 / 58. 18.100libavformat    58. 12.100 / 58. 12.100libavdevice    58.  3.100 / 58.  3.100libavfilter     7. 16.100 /  7. 16.100libswscale      5.  1.100 /  5.  1.100libswresample   3.  1.100 /  3.  1.100libpostproc    55.  1.100 / 55.  1.100
File formats:D. = Demuxing supported.E = Muxing supported--D  3dostr          3DO STRE 3g2             3GP2 (3GPP2 file format)E 3gp             3GP (3GPP file format)D  4xm             4X TechnologiesE a64             a64 - video for Commodore 64D  aa              Audible AA format filesD  aac             raw ADTS AAC (Advanced Audio Coding)DE ac3             raw AC-3D  acm             Interplay ACMD  act             ACT Voice file formatD  adf             Artworx Data FormatD  adp             ADPD  ads             Sony PS2 ADSE adts            ADTS AAC (Advanced Audio Coding)DE adx             CRI ADXD  aea             MD STUDIO audioD  afc             AFCDE aiff            Audio IFFD  aix             CRI AIXDE alaw            PCM A-lawD  alias_pix       Alias/Wavefront PIX imageDE amr             3GPP AMRD  amrnb           raw AMR-NBD  amrwb           raw AMR-WBD  anm             Deluxe Paint AnimationD  apc             CRYO APCD  ape             Monkey's AudioDE apng            Animated Portable Network GraphicsDE aptx            raw aptX (Audio Processing Technology for Bluetooth)DE aptx_hd         raw aptX HD (Audio Processing Technology for Bluetooth)D  aqtitle         AQTitle subtitlesDE asf             ASF (Advanced / Active Streaming Format)D  asf_o           ASF (Advanced / Active Streaming Format)E asf_stream      ASF (Advanced / Active Streaming Format)DE ass             SSA (SubStation Alpha) subtitleDE ast             AST (Audio Stream)DE au              Sun AUDE avi             AVI (Audio Video Interleaved)D  avisynth        AviSynth scriptE avm2            SWF (ShockWave Flash) (AVM2)D  avr             AVR (Audio Visual Research)D  avs             AVSD  bethsoftvid     Bethesda Softworks VIDD  bfi             Brute Force & IgnoranceD  bfstm           BFSTM (Binary Cafe Stream)D  bin             Binary textD  bink            BinkDE bit             G.729 BIT file formatD  bmp_pipe        piped bmp sequenceD  bmv             Discworld II BMVD  boa             Black Ops AudioD  brender_pix     BRender PIX imageD  brstm           BRSTM (Binary Revolution Stream)D  c93             Interplay C93DE caf             Apple CAF (Core Audio Format)DE cavsvideo       raw Chinese AVS (Audio Video Standard) videoD  cdg             CD GraphicsD  cdxl            Commodore CDXL videoD  cine            Phantom CineDE codec2          codec2 .c2 muxerDE codec2raw       raw codec2 muxerD  concat          Virtual concatenation scriptE crc             CRC testingDE dash            DASH MuxerDE data            raw dataDE daud            D-Cinema audioD  dcstr           Sega DC STRD  dds_pipe        piped dds sequenceD  dfa             Chronomaster DFADE dirac           raw DiracDE dnxhd           raw DNxHD (SMPTE VC-3)D  dpx_pipe        piped dpx sequenceD  dsf             DSD Stream File (DSF)D  dshow           DirectShow captureD  dsicin          Delphine Software International CIND  dss             Digital Speech Standard (DSS)DE dts             raw DTSD  dtshd           raw DTS-HDDE dv              DV (Digital Video)D  dvbsub          raw dvbsubD  dvbtxt          dvbtxtE dvd             MPEG-2 PS (DVD VOB)D  dxa             DXAD  ea              Electronic Arts MultimediaD  ea_cdata        Electronic Arts cdataDE eac3            raw E-AC-3D  epaf            Ensoniq Paris Audio FileD  exr_pipe        piped exr sequenceDE f32be           PCM 32-bit floating-point big-endianDE f32le           PCM 32-bit floating-point little-endianE f4v             F4V Adobe Flash VideoDE f64be           PCM 64-bit floating-point big-endianDE f64le           PCM 64-bit floating-point little-endianDE ffmetadata      FFmpeg metadata in textE fifo            FIFO queue pseudo-muxerE fifo_test       Fifo test muxerDE film_cpk        Sega FILM / CPKDE filmstrip       Adobe FilmstripDE fits            Flexible Image Transport SystemDE flac            raw FLACD  flic            FLI/FLC/FLX animationDE flv             FLV (Flash Video)E framecrc        framecrc testingE framehash       Per-frame hash testingE framemd5        Per-frame MD5 testingD  frm             Megalux FrameD  fsb             FMOD Sample BankDE g722            raw G.722DE g723_1          raw G.723.1DE g726            raw big-endian G.726 ("left-justified")DE g726le          raw little-endian G.726 ("right-justified")D  g729            G.729 raw format demuxerD  gdigrab         GDI API Windows frame grabberD  gdv             Gremlin Digital VideoD  genh            GENeric HeaderDE gif             GIF AnimationDE gsm             raw GSMDE gxf             GXF (General eXchange Format)DE h261            raw H.261DE h263            raw H.263DE h264            raw H.264 videoE hash            Hash testingE hds             HDS MuxerDE hevc            raw HEVC videoE hls             Apple HTTP Live StreamingD  hls,applehttp   Apple HTTP Live StreamingD  hnm             Cryo HNM v4DE ico             Microsoft Windows ICOD  idcin           id CinematicD  idf             iCE Draw FileD  iff             IFF (Interchange File Format)DE ilbc            iLBC storageDE image2          image2 sequenceDE image2pipe      piped image2 sequenceD  ingenient       raw Ingenient MJPEGD  ipmovie         Interplay MVEE ipod            iPod H.264 MP4 (MPEG-4 Part 14)DE ircam           Berkeley/IRCAM/CARL Sound FormatE ismv            ISMV/ISMA (Smooth Streaming)D  iss             Funcom ISSD  iv8             IndigoVision 8000 videoDE ivf             On2 IVFD  ivr             IVR (Internet Video Recording)D  j2k_pipe        piped j2k sequenceDE jacosub         JACOsub subtitle formatD  jpeg_pipe       piped jpeg sequenceD  jpegls_pipe     piped jpegls sequenceD  jv              Bitmap Brothers JVE latm            LOAS/LATMD  lavfi           Libavfilter virtual input deviceD  live_flv        live RTMP FLV (Flash Video)D  lmlm4           raw lmlm4D  loas            LOAS AudioSyncStreamDE lrc             LRC lyricsD  lvf             LVFD  lxf             VR native stream (LXF)DE m4v             raw MPEG-4 videoE matroska        MatroskaD  matroska,webm   Matroska / WebME md5             MD5 testingD  mgsts           Metal Gear Solid: The Twin SnakesDE microdvd        MicroDVD subtitle formatDE mjpeg           raw MJPEG videoD  mjpeg_2000      raw MJPEG 2000 videoE mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnixDE mlp             raw MLPD  mlv             Magic Lantern Video (MLV)D  mm              American Laser Games MMDE mmf             Yamaha SMAFE mov             QuickTime / MOVD  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOVE mp2             MP2 (MPEG audio layer 2)DE mp3             MP3 (MPEG audio layer 3)E mp4             MP4 (MPEG-4 Part 14)D  mpc             MusepackD  mpc8            Musepack SV8DE mpeg            MPEG-1 Systems / MPEG program streamE mpeg1video      raw MPEG-1 videoE mpeg2video      raw MPEG-2 videoDE mpegts          MPEG-TS (MPEG-2 Transport Stream)D  mpegtsraw       raw MPEG-TS (MPEG-2 Transport Stream)D  mpegvideo       raw MPEG videoDE mpjpeg          MIME multipart JPEGD  mpl2            MPL2 subtitlesD  mpsub           MPlayer subtitlesD  msf             Sony PS3 MSFD  msnwctcp        MSN TCP Webcam streamD  mtaf            Konami PS2 MTAFD  mtv             MTVDE mulaw           PCM mu-lawD  musx            Eurocom MUSXD  mv              Silicon Graphics MovieD  mvi             Motion Pixels MVIDE mxf             MXF (Material eXchange Format)E mxf_d10         MXF (Material eXchange Format) D-10 MappingE mxf_opatom      MXF (Material eXchange Format) Operational Pattern AtomD  mxg             MxPEG clipD  nc              NC camera feedD  nistsphere      NIST SPeech HEader REsourcesD  nsp             Computerized Speech Lab NSPD  nsv             Nullsoft Streaming VideoE null            raw null videoDE nut             NUTD  nuv             NuppelVideoE oga             Ogg AudioDE ogg             OggE ogv             Ogg VideoDE oma             Sony OpenMG audioE opus            Ogg OpusD  paf             Amazing Studio Packed Animation FileD  pam_pipe        piped pam sequenceD  pbm_pipe        piped pbm sequenceD  pcx_pipe        piped pcx sequenceD  pgm_pipe        piped pgm sequenceD  pgmyuv_pipe     piped pgmyuv sequenceD  pictor_pipe     piped pictor sequenceD  pjs             PJS (Phoenix Japanimation Society) subtitlesD  pmp             Playstation Portable PMPD  png_pipe        piped png sequenceD  ppm_pipe        piped ppm sequenceD  psd_pipe        piped psd sequenceE psp             PSP MP4 (MPEG-4 Part 14)D  psxstr          Sony Playstation STRD  pva             TechnoTrend PVAD  pvf             PVF (Portable Voice Format)D  qcp             QCPD  qdraw_pipe      piped qdraw sequenceD  r3d             REDCODE R3DDE rawvideo        raw videoD  realtext        RealText subtitle formatD  redspark        RedSparkD  rl2             RL2DE rm              RealMediaDE roq             raw id RoQD  rpl             RPL / ARMovieD  rsd             GameCube RSDDE rso             Lego Mindstorms RSODE rtp             RTP outputE rtp_mpegts      RTP/mpegts output formatDE rtsp            RTSP outputDE s16be           PCM signed 16-bit big-endianDE s16le           PCM signed 16-bit little-endianDE s24be           PCM signed 24-bit big-endianDE s24le           PCM signed 24-bit little-endianDE s32be           PCM signed 32-bit big-endianDE s32le           PCM signed 32-bit little-endianD  s337m           SMPTE 337MDE s8              PCM signed 8-bitD  sami            SAMI subtitle formatDE sap             SAP outputDE sbc             raw SBCD  sbg             SBaGen binaural beats scriptDE scc             Scenarist Closed CaptionsE sdl,sdl2        SDL2 output deviceD  sdp             SDPD  sdr2            SDR2D  sds             MIDI Sample Dump StandardD  sdx             Sample Dump eXchangeE segment         segmentD  sgi_pipe        piped sgi sequenceD  shn             raw ShortenD  siff            Beam Software SIFFE singlejpeg      JPEG single imageD  sln             Asterisk raw pcmDE smjpeg          Loki SDL MJPEGD  smk             SmackerE smoothstreaming Smooth Streaming MuxerD  smush           LucasArts SmushD  sol             Sierra SOLDE sox             SoX nativeDE spdif           IEC 61937 (used on S/PDIF - IEC958)E spx             Ogg SpeexDE srt             SubRip subtitleD  stl             Spruce subtitle formatE stream_segment,ssegment streaming segment muxerD  subviewer       SubViewer subtitle formatD  subviewer1      SubViewer v1 subtitle formatD  sunrast_pipe    piped sunrast sequenceDE sup             raw HDMV Presentation Graphic Stream subtitlesD  svag            Konami PS2 SVAGE svcd            MPEG-2 PS (SVCD)D  svg_pipe        piped svg sequenceDE swf             SWF (ShockWave Flash)D  tak             raw TAKD  tedcaptions     TED Talks captionsE tee             Multiple muxer teeD  thp             THPD  tiertexseq      Tiertex Limited SEQD  tiff_pipe       piped tiff sequenceD  tmv             8088flex TMVDE truehd          raw TrueHDDE tta             TTA (True Audio)D  tty             Tele-typewriterD  txd             Renderware TeXture DictionaryD  ty              TiVo TY StreamDE u16be           PCM unsigned 16-bit big-endianDE u16le           PCM unsigned 16-bit little-endianDE u24be           PCM unsigned 24-bit big-endianDE u24le           PCM unsigned 24-bit little-endianDE u32be           PCM unsigned 32-bit big-endianDE u32le           PCM unsigned 32-bit little-endianDE u8              PCM unsigned 8-bitE uncodedframecrc uncoded framecrc testingD  v210            Uncompressed 4:2:2 10-bitD  v210x           Uncompressed 4:2:2 10-bitD  vag             Sony PS2 VAGDE vc1             raw VC-1 videoDE vc1test         VC-1 test bitstreamE vcd             MPEG-1 Systems / MPEG program stream (VCD)D  vfwcap          VfW video captureD  vivo            VivoD  vmd             Sierra VMDE vob             MPEG-2 PS (VOB)D  vobsub          VobSub subtitle formatDE voc             Creative VoiceD  vpk             Sony PS2 VPKD  vplayer         VPlayer subtitlesD  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQDE w64             Sony Wave64DE wav             WAV / WAVE (Waveform Audio)D  wc3movie        Wing Commander III movieE webm            WebME webm_chunk      WebM Chunk MuxerDE webm_dash_manifest WebM DASH ManifestE webp            WebPD  webp_pipe       piped webp sequenceDE webvtt          WebVTT subtitleD  wsaud           Westwood Studios audioD  wsd             Wideband Single-bit Data (WSD)D  wsvqa           Westwood Studios VQADE wtv             Windows Television (WTV)DE wv              raw WavPackD  wve             Psion 3 audioD  xa              Maxis XAD  xbin            eXtended BINary text (XBIN)D  xmv             Microsoft XMVD  xpm_pipe        piped xpm sequenceD  xvag            Sony PS3 XVAGD  xwma            Microsoft xWMAD  yop             Psygnosis YOPDE yuv4mpegpipe    YUV4MPEG pipe

根据上图可以看到,在输出的内容中,分为三部分:

  • 第一列是多媒体文件格式的Demuxing支持与Muxing支持;

  • 第二列是多媒体文件格式;

  • 第三列是文件格式的详细说明。

【学习地址】:FFmpeg/WebRTC/RTMP/NDK/Android音视频流媒体高级开发
【文章福利】:免费领取更多音视频学习资料包、大厂面试题、技术视频和学习路线图,资料包括(C/C++,Linux,FFmpeg webRTC rtmp hls rtsp ffplay srs 等等)有需要的可以点击1079654574加群领取哦~

其他大类的查看

帮助参数 说明
-buildconf show build configuration 显示编译配置
-formats show available formats 可用的格式
-muxers show available muxers 可用的复用器
-demuxers show available demuxers可用的解复用器
-devices show available devices 可用的设备列表
-codecs show available codecs 可用的编解码器
-decoders show available decoders 可用的解码器
-encoders show available encoders可用的解码器
-bsfs show available bit stream filters 可用的bit流过滤器
-protocols show available protocols 可用的协议
-filters show available filters 可用的过滤器
-pix_fmts show available pixel formats 可用的像素格式
-layouts show standard channel layouts 可用的声道布局
-sample_fmts show available audio sample formats 可用的音频采样格式
-colors show available color names 可用的颜色名字
-sources device list sources of the input device 列出输入设备的sources
-sinks device list sinks of the output device 列出输出设备的sinks
-hwaccels show available HW acceleration methods 可用的硬件加速方法

查看具体demuxer/muxer/decoder/encoder/filter所支持的参数

举例

查看FLV封装器的参数支持

命令:ffmpeg -h muxer=flv

Muxer flv [FLV (Flash Video)]:Common extensions: flv.Mime type: video/x-flv.Default video codec: flv1.Default audio codec: mp3.
flv muxer AVOptions:-flvflags          <flags>      E........ FLV muxer flags (default 0)aac_seq_header_detect              E........ Put AAC sequence header based on stream datano_sequence_end              E........ disable sequence end for FLVno_metadata                  E........ disable metadata for FLVno_duration_filesize              E........ disable duration and filesize zero value metadata for FLVadd_keyframe_index              E........ Add keyframe index metadata

从输出的帮助信息可以看到,FLV的muxer的信息包含两大部分:

  • 第一部分为FLV封装的默认配置描述,如扩展名,MIME类型,默认的视频编码格式,默认的音频编码格式。

  • 第二部分为FLV封装时可以支持的配置参数及相关说明。

查看flv解封装器的参数支持

命令:ffmpeg -h demuxer=flv

Demuxer flv [FLV (Flash Video)]:Common extensions: flv.
flvdec AVOptions:-flv_metadata      <boolean>    .D.V..... Allocate streams according to the onMetaData array (default false)-missing_streams   <int>        .D.V..XR.  (from 0 to 255) (default 0)

从输出的帮助信息可以看到,FLV的demuxer的信息包含两大部分:

  • 第一部分为FLV解封装默认的扩展名。

  • 第二部分为FLV解封装时可以支持的配置参数及相关说明。

查看H264(AVC)的编码参数支持

命令:

  • ffmpeg -h encoder=h264 显示所有的h264编码器

  • ffmpeg -h encoder=libx264 只显示libx264 这里只显示libx264

Encoder libx264 [libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:General capabilities: delay threadsThreading capabilities: autoSupported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le y
uv444p10le nv20le
libx264 AVOptions:-preset            <string>     E..V..... Set the encoding preset (cf. x264 --fullhelp) (default "medium")-tune              <string>     E..V..... Tune the encoding params (cf. x264 --fullhelp)-profile           <string>     E..V..... Set profile restrictions (cf. x264 --fullhelp)-fastfirstpass     <boolean>    E..V..... Use fast settings when encoding first pass (default true)-level             <string>     E..V..... Specify level (as defined by Annex A)-passlogfile       <string>     E..V..... Filename for 2 pass stats-wpredp            <string>     E..V..... Weighted prediction for P-frames-a53cc             <boolean>    E..V..... Use A53 Closed Captions (if available) (default true)-x264opts          <string>     E..V..... x264 options-crf               <float>      E..V..... Select the quality for constant quality mode (from -1 to FLT_MAX) (default -
1)-crf_max           <float>      E..V..... In CRF mode, prevents VBV from lowering quality beyond this point. (from -1
to FLT_MAX) (default -1)-qp                <int>        E..V..... Constant quantization parameter rate control method (from -1 to INT_MAX) (de
fault -1)-aq-mode           <int>        E..V..... AQ method (from -1 to INT_MAX) (default -1)none                         E..V.....variance                     E..V..... Variance AQ (complexity mask)autovariance                 E..V..... Auto-variance AQautovariance-biased              E..V..... Auto-variance AQ with bias to dark scenes-aq-strength       <float>      E..V..... AQ strength. Reduces blocking and blurring in flat and textured areas. (from-1 to FLT_MAX) (default -1)-psy               <boolean>    E..V..... Use psychovisual optimizations. (default auto)-psy-rd            <string>     E..V..... Strength of psychovisual optimization, in <psy-rd>:<psy-trellis> format.-rc-lookahead      <int>        E..V..... Number of frames to look ahead for frametype and ratecontrol (from -1 to INT
_MAX) (default -1)-weightb           <boolean>    E..V..... Weighted prediction for B-frames. (default auto)-weightp           <int>        E..V..... Weighted prediction analysis method. (from -1 to INT_MAX) (default -1)none                         E..V.....simple                       E..V.....smart                        E..V.....-ssim              <boolean>    E..V..... Calculate and print SSIM stats. (default auto)-intra-refresh     <boolean>    E..V..... Use Periodic Intra Refresh instead of IDR frames. (default auto)-bluray-compat     <boolean>    E..V..... Bluray compatibility workarounds. (default auto)-b-bias            <int>        E..V..... Influences how often B-frames are used (from INT_MIN to INT_MAX) (default IN
T_MIN)-b-pyramid         <int>        E..V..... Keep some B-frames as references. (from -1 to INT_MAX) (default -1)none                         E..V.....strict                       E..V..... Strictly hierarchical pyramidnormal                       E..V..... Non-strict (not Blu-ray compatible)-mixed-refs        <boolean>    E..V..... One reference per partition, as opposed to one reference per macroblock (def
ault auto)-8x8dct            <boolean>    E..V..... High profile 8x8 transform. (default auto)-fast-pskip        <boolean>    E..V..... (default auto)-aud               <boolean>    E..V..... Use access unit delimiters. (default auto)-mbtree            <boolean>    E..V..... Use macroblock tree ratecontrol. (default auto)-deblock           <string>     E..V..... Loop filter parameters, in <alpha:beta> form.-cplxblur          <float>      E..V..... Reduce fluctuations in QP (before curve compression) (from -1 to FLT_MAX) (d
efault -1)-partitions        <string>     E..V..... A comma-separated list of partitions to consider. Possible values: p8x8, p4x
4, b8x8, i8x8, i4x4, none, all-direct-pred       <int>        E..V..... Direct MV prediction mode (from -1 to INT_MAX) (default -1)none                         E..V.....spatial                      E..V.....temporal                     E..V.....auto                         E..V.....-slice-max-size    <int>        E..V..... Limit the size of each slice in bytes (from -1 to INT_MAX) (default -1)-stats             <string>     E..V..... Filename for 2 pass stats-nal-hrd           <int>        E..V..... Signal HRD information (requires vbv-bufsize; cbr not allowed in .mp4) (from-1 to INT_MAX) (default -1)none                         E..V.....vbr                          E..V.....cbr                          E..V.....-avcintra-class    <int>        E..V..... AVC-Intra class 50/100/200 (from -1 to 200) (default -1)-me_method         <int>        E..V..... Set motion estimation method (from -1 to 4) (default -1)dia                          E..V.....hex                          E..V.....umh                          E..V.....esa                          E..V.....tesa                         E..V.....-motion-est        <int>        E..V..... Set motion estimation method (from -1 to 4) (default -1)dia                          E..V.....hex                          E..V.....umh                          E..V.....esa                          E..V.....tesa                         E..V.....-forced-idr        <boolean>    E..V..... If forcing keyframes, force them as IDR frames. (default false)-coder             <int>        E..V..... Coder type (from -1 to 1) (default default)default                      E..V.....cavlc                        E..V.....cabac                        E..V.....vlc                          E..V.....ac                           E..V.....-b_strategy        <int>        E..V..... Strategy to choose between I/P/B-frames (from -1 to 2) (default -1)-chromaoffset      <int>        E..V..... QP difference between chroma and luma (from INT_MIN to INT_MAX) (default -1)
​-sc_threshold      <int>        E..V..... Scene change threshold (from INT_MIN to INT_MAX) (default -1)-noise_reduction   <int>        E..V..... Noise reduction (from INT_MIN to INT_MAX) (default -1)-x264-params       <string>     E..V..... Override the x264 configuration using a :-separated list of key=value parame
ters

更多的x264参数 见 cf. x264 --fullhelp x264 参数详解

查看音频支持的PCM格式以及声道布局

1.ffmpeg.exe -sample_fmts

name   depth
u8        8
s16      16
s32      32
flt      32
dbl      64
u8p       8
s16p     16
s32p     32
fltp     32
dblp     64
s64      64
s64p     64

2.ffmpeg.exe -layouts

Individual channels:
NAME           DESCRIPTION
FL             front left
FR             front right
FC             front center
LFE            low frequency
BL             back left
BR             back right
FLC            front left-of-center
FRC            front right-of-center
BC             back center
SL             side left
SR             side right
TC             top center
TFL            top front left
TFC            top front center
TFR            top front right
TBL            top back left
TBC            top back center
TBR            top back right
DL             downmix left
DR             downmix right
WL             wide left
WR             wide right
SDL            surround direct left
SDR            surround direct right
LFE2           low frequency 2
​
Standard channel layouts:
NAME           DECOMPOSITION
mono           FC
stereo         FL+FR
2.1            FL+FR+LFE
3.0            FL+FR+FC
3.0(back)      FL+FR+BC
4.0            FL+FR+FC+BC
quad           FL+FR+BL+BR
quad(side)     FL+FR+SL+SR
3.1            FL+FR+FC+LFE
5.0            FL+FR+FC+BL+BR
5.0(side)      FL+FR+FC+SL+SR
4.1            FL+FR+FC+LFE+BC
5.1            FL+FR+FC+LFE+BL+BR
5.1(side)      FL+FR+FC+LFE+SL+SR
6.0            FL+FR+FC+BC+SL+SR
6.0(front)     FL+FR+FLC+FRC+SL+SR
hexagonal      FL+FR+FC+BL+BR+BC
6.1            FL+FR+FC+LFE+BC+SL+SR
6.1(back)      FL+FR+FC+LFE+BL+BR+BC
6.1(front)     FL+FR+LFE+FLC+FRC+SL+SR
7.0            FL+FR+FC+BL+BR+SL+SR
7.0(front)     FL+FR+FC+FLC+FRC+SL+SR
7.1            FL+FR+FC+LFE+BL+BR+SL+SR
7.1(wide)      FL+FR+FC+LFE+BL+BR+FLC+FRC
7.1(wide-side) FL+FR+FC+LFE+FLC+FRC+SL+SR
octagonal      FL+FR+FC+BL+BR+BC+SL+SR
hexadecagonal  FL+FR+FC+BL+BR+BC+SL+SR+TFL+TFC+TFR+TBL+TBC+TBR+WL+WR
downmix        DL+DR

FFMPEG进阶系列02-ffmpeg命令详解2相关推荐

  1. shell编程之进阶篇三常见命令详解

    常见命令详解 接下来我们介绍一些shell脚本中经常使用的linux命令:grep.sed.awk.find grep命令详解 grep命令是我们常用的一个强大的文本搜索命令. 命令格式详解 grep ...

  2. ffmpeg php 水平翻转,FFmpeg 视频画面旋转的命令详解及旋转失败的解决方法

    这两天在处理一段用 iPhone 拍摄的视频,在手机上看正常,导出到电脑上发现视频是倒的,或者说反的.没办法,剪辑之前必须先将它"转正".于是打算将它在 iPhone 里进行处理, ...

  3. 转载和积累系列 - Linux tcpdump命令详解

    简介 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具. tcpdump可以将网络中传送的数据包的 ...

  4. react进阶系列 - 高阶组件详解四:高阶组件的嵌套使用

    前面有讲到过很多页面会在初始时验证登录状态与用户角色.我们可以使用高阶组件来封装这部分验证逻辑.封装好之后我们在使用的时候就可以如下: export default withRule(Home); 但 ...

  5. MySQL进阶系列: 一文详解explain各字段含义

    explain有何用处呢:为了知道优化SQL语句的执行,需要查看SQL语句的具体执行过程,以加快SQL语句的执行效率. 可以使用explain+SQL语句来模拟优化器执行SQL查询语句,从而知道mys ...

  6. 【FFmpeg】ffmpeg命令详解(三)高级选项

    ffmpeg命令详解(三)高级选项 1.-map 2.-ignore_unknown 3.-copy_unknown 4.-map_channel 5.-map_metadata 6.-map_cha ...

  7. 【FFmpeg】ffmpeg命令详解(二)

    ffmpeg命令详解(二) 4.流选择 4.1 自动选择流 4.2 手动选择流 5.命令行选择详解 5.1 命令行选项的值说明: 5.2 流说明符 5.3 通用选项 5.4 主选项 5.5 视频相关选 ...

  8. 【FFmpeg】ffmpeg命令详解(一)

    ffmpeg命令详解(一) 1.命令格式 2.简述 3.详细说明 3.1 过滤器 3.1.1 简单的过滤器图 3.1.2 复杂的过滤器图 3.2 流拷贝 1.命令格式 ffmpeg [global_o ...

  9. ffmpeg命令详解(转)

    一.ffmpeg命令详解 ffmpeg非常强大,轻松几条命令就可以完成你的工作. 把darkdoor.[001-100].jpg序列帧和001.mp3音频文件利用mpeg4编码方式合成视频文件dark ...

  10. [老男孩笔记系列]-之linux定时任务crontab命令详解

    linux定时任务crontab命令详解 1.1指令语法 crontab [ -u user ] file crontab [ -u user ] { -l | -r | -e } 1.2指令说明 通 ...

最新文章

  1. Affinity Propagation+聚类
  2. 2021年春季学期-信号与系统-第八次作业参考答案-第一小题
  3. ebpf 学习-bpftrace 语法 入门
  4. 【JetPack】视图绑定 ( ViewBinding ) 各种应用 ( 视图绑定两种方式 | Activity 布局 | 对话框布局 | 自定义组件布局 | RecyclerView 列表布局 )
  5. linux内核唤醒过程,Linux内核启动过程分析
  6. Qt Creator和Visual Studio双环境开发技能攻略
  7. VB与Java颜色值的转换
  8. Linux下常用配置文件及常用命令介绍
  9. 【英语学习】【English L06】U01 Breakfast L3 I'm full from my brunch
  10. 董老师又双叒叕送书啦,8本《Python网络程序设计(微课版)》
  11. 推荐一种优秀的数据结构技巧
  12. 基于SSM的酒店客房管理系统的设计(包含数据库、完美运行、可远程调试)
  13. 在百度地图中获取当前点击 位置的 经纬度 和 地址信息
  14. Panda白话 - G1垃圾收集器 之 Refine线程
  15. 在Windows环境下编译VPX
  16. 服务器硬件基础设施,【通讯技术】细节定成败,NFV中的硬件基础设施管理
  17. C/C++ DLL反射式注入内存手动映射
  18. AXI2APB_bridge 设计
  19. 【SWAT水文模型】SWAT水文模型建立及应用第三期:基于世界土壤数据库HWSD建立土壤库
  20. Unity引擎游戏优化插件MeshSimplify使用说明

热门文章

  1. mysql分页查询遇到order by发生的血案
  2. (C语言)即时通讯系统
  3. 什么是“ Windows音频设备图形隔离”,为什么它在我的PC上运行?
  4. 算命的也要懂代码了?这个开源项目从黄历到八字都算得清清楚楚
  5. 编程好学吗,学完能做什么,怎么学才好?
  6. 不是汽车之家太牛,而是其他网站太懒
  7. oc引导win方法_安装win10+黑苹果双系统零基础教程(图文)
  8. html怎么写分页ajax,js实现ajax分页完整实例
  9. 启动mysql报错:mysql.service: Service hold-off time over, scheduling restart.
  10. https://dl.bintray.com/scalding/generic/waroverlay.gradle不能访问