《FFmpeg Basics》中文版-02-显示帮助和功能
写在前面如果您对音视频技术感兴趣,可以订阅我的专题:音视频专辑也可以关注我的简书账户:张芳涛,我后期会发布更多的音视频以及图像处理方面的文章。正文关于FFmpeg程序的帮助和其他信息都显示在空格和连字符之后输入的各种选项,示例显示了FFmpeg工具的用法,但是相同的选项对于ffplay、ffprobe和ffserver是有效的。参数是区分大小写的。FFmpeg组件的开发速度很快,从2012年11月开始,一些可用项目列表很快就会不完整,比如X264的支持,不过你可以自己对里面的一些项目列表进行扩展。FFmpeg中的文本帮助FFmpeg工具有一个很大的控制台帮助,可以完整显示或关于特定元素 - 解码器,编码器等。下表介绍了可用选项,斜体文本将替换为要显示的项目。 ffplay和ffprobe也有类似的选项。(注意:有一些倾斜的命令行,我这边显示出来之后并不是倾斜的,请大家谅解)基础的助选中的项目的帮助ffmpeg -? or ffmpeg -hffmpeg -h decoder=decoder_name额外的帮助/扩展的帮助ffmpeg -h encoder=encoder_nameffmpeg -h long or ffmpeg -h fullffmpeg -h demuxer=demuxer_nameffmpeg –? topic or ffmpeg -h topicffmpeg -h muxer=muxer_name
ffmpeg -? or ffmpeg -h例如,要显示关于FLV解码器的信息,我们可以使用以下命令:ffmpeg -h decoder=flv控制台的输出是:Decoder flv [FLV / Sorenson Spark / Sorenson H.263 (Flash Video)]: Threading capabilities: no Supported pixel formats: yuv420p完整的帮助是非常长的,请参见本章末尾的格式化解决方案,下面我给大家接了一个图,这是在我的电脑上显示的结果:这是在我电脑上系那是出来的结果可用的比特流过滤器显示内置的比特流过滤器的命令是:ffmpeg -bsfs比特流控制器text2movsubremove_extranoisemov2textsubmp3decompmp3compmjpegadumpmjpeg2jpegimxdumph264_mp4toannexbdump_extrachompaac_adtstoasc我的电脑上显示的如下:我电脑上显示出来的结果可用的解码器可以使用-codecs选项显示可用的解码器,我们可以使用以下命令:ffmpeg -codecs解码器D..... = Decoding supported.E.... = Encoding supported..V... = Video codec..A... = Audio codec..S... = Subtitle codec...I.. = Intra frame-only codec....L. = Lossy compression.....S = Lossless compression------D.V.L. 4xm4X MovieD.VI.S 8bpsQuickTime 8BPS video.EVIL. a64_multiMulticolor charset for Commodore 64 (encoders: a64multi ).EVIL. a64_multi5Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 )D.V..S aascAutodesk RLEDEVIL. amvAMV VideoD.V.L. anmDeluxe Paint AnimationD.V.L. ansiASCII/ANSI artDEVIL. asv1ASUS V1DEVIL. asv2ASUS V2D.VIL. auraAuravision AURAD.VIL. aura2Auravision Aura 2D.V... avrnAvid AVI CodecDEVI.. avrpAvid 1:1 10-bit RGB PackerD.V.L. avsAVS (Audio Video Standard) videoDEVI.. avuiAvid Meridien UncompressedDEVI.. ayuvUncompressed packed MS 4:4:4:4D.V.L. bethsoftvidBethesda VID videoD.V.L. bfiBrute Force & IgnoranceD.V.L. binkvideoBink videoD.VI.. bintextBinary textDEVI.S bmpBMP (Windows and OS/2 bitmap)D.V..S bmv_videoDiscworld II BMV videoD.V.L. c93Interplay C93DEV.L. cavsChinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile) (encoders: libxavs )D.V.L. cdgraphicsCD Graphics videoD.VIL. cdxlCommodore CDXL videoD.V.L. cinepakCinepakDEVIL. cljrCirrus Logic AccuPakD.VI.S cllcCanopus Lossless CodecD.V.L. cmvElectronic Arts CMV video (decoders: eacmv )D.V... cpiaCPiA video formatD.V..S cscdCamStudio (decoders: camstudio )D.VIL. cyuvCreative YUV (CYUV)D.V.L. dfaChronomaster DFADEV.LS diracDirac (decoders: dirac libschroedinger) (encoders: libschroedinger)DEVIL. dnxhdVC3/DNxHDDEVIL. dpxDPX imageD.V.L. dsicinvideoDelphine Software International CIN videoDEVIL. dvvideoDV (Digital Video)D.V..S dxaFeeble Files/ScummVM DXAD.VI.S dxtoryDxtoryD.V.L. escape124Escape 124D.V.L. escape130Escape 130D.VILS exrOpenEXR imageDEV..S ffv1FFmpeg video codec #1DEVI.S ffvhuffHuffyuv FFmpeg variantDEV..S flashsvFlash Screen Video v1DEV.L. flashsv2Flash Screen Video v2D.V..S flicAutodesk Animator Flic videoDEV.L. flv1FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv) (encoders: flv )D.V..S frapsFrapsD.VI.S frwuForward Uncompressed..V... g2mGoToMeetingDEV..S gifGIF (Graphics Interchange Format)DEV.L. h261H.261DEV.L. h263H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2D.V.L. h263iIntel H.263DEV.L. h263pH.263+ / H.263-1998 / H.263 version 2DEV.LS h264H.264/AVC/MPEG-4 AVC/MPEG-4 part 10 (encoders: libx264 libx264rgb )DEVI.S huffyuvHuffYUVD.V.L. idcinid Quake II CIN video (decoders: idcinvideo )D.VI.. idfiCEDraw textD.V.L. iff_byterun1IFF ByteRun1D.V.L. iff_ilbmIFF ILBMD.V.L. indeo2Intel Indeo 2D.V.L. indeo3Intel Indeo 3D.V.L. indeo4Intel Indeo Video Interactive 4D.V.L. indeo5Intel Indeo Video Interactive 5D.V.L. interplayvideoInterplay MVE videoDEVILS jpeg2000JPEG 2000 (decoders: j2k libopenjpeg ) (encoders: j2k libopenjpeg )DEVILS jpeglsJPEG-LSD.VIL. jvBitmap Brothers JV videoD.V.L. kgv1Kega Game VideoD.V.L. kmvcKarl Morton's video codecD.VI.S lagarithLagarith lossless.EVI.S ljpegLossless JPEGD.VI.S locoLOCOD.V.L. madElectronic Arts Madcow Video (decoders: eamad )D.VIL. mdecSony PlayStation MDEC (Motion DECoder)D.V.L. mimicMimicDEVIL. mjpegMotion JPEGD.VIL. mjpegbApple MJPEG-BD.V.L. mmvideoAmerican Laser Games MM VideoD.V.L. motionpixelsMotion Pixels videoDEV.L. mpeg1videoMPEG-1 videoDEV.L. mpeg2videoMPEG-1 video (decoders: mpeg2video mpegvideo )DEV.L. mpeg4MPEG-4 part 2 (encoders: mpeg4 libxvid )..V.L. mpegvideo_xvmcMPEG-1/2 video XvMC (X-Video Motion Compensation)D.V.L. msa1MS ATC ScreenD.V.L. msmpeg4v1MPEG-4 part 2 Microsoft variant version 1DEV.L. msmpeg4v2MPEG-4 part 2 Microsoft variant version 2DEV.L. msmpeg4v3MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 )D.V..S msrleMicrosoft RLED.V.L. mss1MS Screen 1D.VIL. mss2MS Windows Media Video V9 ScreenDEV.L. msvideo1Microsoft Video 1D.VI.S mszhLCL (LossLess Codec Library) MSZHD.V.L. mts2MS Expression Encoder ScreenD.V.L. mxpegMobotix MxPEG videoD.V.L. nuvNuppelVideo/RTJPEGD.V.L. paf_videoAmazing Studio Packed Animation File VideoDEVI.S pamPAM (Portable AnyMap) imageDEVI.S pbmPBM (Portable BitMap) imageDEVI.S pcxPC Paintbrush PCX imageDEVI.S pgmPGM (Portable GrayMap) imageDEVI.S pgmyuvPGMYUV (Portable GrayMap YUV) imageD.VIL. pictorPictor/PC PaintDEV..S pngPNG (Portable Network Graphics) imageDEVI.S ppmPPM (Portable PixelMap) imageDEVIL. proresApple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_anatoliy prores_kostya )D.VIL. ptxV.Flash PTX imageD.VI.S qdrawApple QuickDrawD.V.L. qpegQ-team QPEGDEV..S qtrleQuickTime Animation (RLE) videoDEVI.S r10kAJA Kona 10-bit RGB CodecDEVI.S r210Uncompressed RGB 10-bitDEVI.S rawvideoraw videoD.VIL. rl2RL2 videoDEV.L. roqid RoQ video (decoders: roqvideo ) (encoders: roqvideo )D.V.L. rpzaQuickTime video (RPZA)DEV.L. rv10RealVideo 1.0DEV.L. rv20RealVideo 1.0(我怀疑这儿书上是不是错了)D.V.L. rv30RealVideo 3.0\D.V.L. rv40RealVideo 4.0D.V.L. sanmLucasArts SMUSH videoDEVIL. sgiSGI imageD.V.L. smackvideoSmacker video (decoders: smackvid )D.V.L. smcQuickTime Graphics (SMC)DEV.LS snowSnowD.VIL. sp5xSunplus JPEG (SP5X)DEVI.S sunrastSun Rasterfile imageDEV.L. svq1Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1D.V.L. svq3Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3DEVI.S targaTruevision Targa imageD.VI.. targa_y216Pinnacle TARGA CineWave YUV16D.V.L. tgqElectronic Arts TGQ video (decoders: eatgq )D.V.L. tgvElectronic Arts TGV video (decoders: eatgv )DEV.L. theoraTheora (encoders: libtheora )D.VIL. thpNintendo Gamecube THP videoD.V.L. tiertexseqvideoTiertex Limited SEQ videoDEVI.S tiffTIFF imageD.VIL. tmv8088flex TMVD.V.L. tqiElectronic Arts TQI video (decoders: eatqi )D.V.L. truemotion1Duck TrueMotion 1.0D.V.L. truemotion2Duck TrueMotion 2.0D.V..S tsccTechSmith Screen Capture Codec (decoders: camtasia )D.V.L. tscc2TechSmith Screen Codec 2D.VIL. txdRenderware TXD (TeXture Dictionary) imageD.V.L. ultiIBM UltiMotion (decoders: ultimotion )DEVI.S utvideoUt Video (decoders: utvideo libutvideo) (encoders: utvideo libutvideo)DEVI.S v210Uncompressed 4:2:2 10-bitD.VI.S v210xDEVI.. v308Uncompressed packed 4:4:4DEVI.. v408Uncompressed packed QT 4:4:4:4DEVI.S v410Uncompressed 4:4:4 10-bitD.V.L. vbBeam Software VBD.VI.S vbleVBLE Lossless CodecD.V.L. vc1SMPTE VC-1D.V.L. vc1imageWindows Media Video 9 Image v2D.VIL. vcr1ATI VCR1D.VIL. vixlMiro VideoXL (decoders: xl )D.V.L. vmdvideoSierra VMD videoD.V..S vmncVMware Screen Codec / VMware VideoD.V.L. vp3On2 VP3D.V.L. vp5On2 VP5D.V.L. vp6On2 VP6D.V.L. vp6aOn2 VP6 (Flash version, with alpha channel)D.V.L. vp6fOn2 VP6 (Flash version)DEV.L. vp8On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )DEV.L. wmv1Windows Media Video 7DEV.L. wmv2Windows Media Video 8D.V.L. wmv3Windows Media Video 9D.V.L. wmv3imageWindows Media Video 9 ImageD.VIL. wnv1Winnov WNV1D.V.L. ws_vqaWestwood Studios VQA (Vector Quantiz. Animation) video (decoders:vqavideo)D.V.L. xan_wc3Wing Commander III / XanD.V.L. xan_wc4Wing Commander IV / XxanD.VI.. xbineXtended BINary textDEVI.S xbmXBM (X BitMap) imageDEV... xfaceX-face imageDEVI.S xwdXWD (X Window Dump) imageDEVI.. y41pUncompressed YUV 4:1:1 12-bitD.V.L. yopPsygnosis YOP VideoDEVI.. yuv4Uncompressed packed 4:2:0D.V..S zerocodecZeroCodec Lossless VideoDEVI.S zlibLCL (LossLess Codec Library) ZLIBDEV..S zmbvZip Motion Blocks VideoD.A.L. 8svx_exp8SVX exponentialD.A.L. 8svx_fib8SVX fibonacci..A... 8svx_raw8SVX rawDEA.L. aacAAC (Advanced Audio Coding) (encoders: aac libvo_aacenc )D.A.L. aac_latmAAC LATM (Advanced Audio Coding LATM syntax)DEA.L. ac3ATSC A/52A (AC-3) (encoders: ac3 ac3_fixed )D.A.L. adpcm_4xmADPCM 4X MovieDEA.L. adpcm_adxSEGA CRI ADX ADPCMD.A.L. adpcm_ctADPCM Creative TechnologyD.A.L. adpcm_eaADPCM Electronic ArtsD.A.L. adpcm_ea_maxis_xaADPCM Electronic Arts Maxis CDROM XAD.A.L. adpcm_ea_r1ADPCM Electronic Arts R1D.A.L. adpcm_ea_r2ADPCM Electronic Arts R2D.A.L. adpcm_ea_r3ADPCM Electronic Arts R3D.A.L. adpcm_ea_xasADPCM Electronic Arts XASDEA.L. adpcm_g722G.722 ADPCM (decoders: g722 ) (encoders: g722 )DEA.L. adpcm_g726G.726 ADPCM (decoders: g726 ) (encoders: g726 )D.A.L. adpcm_ima_amvADPCM IMA AMVD.A.L. adpcm_ima_apcADPCM IMA CRYO APCD.A.L. adpcm_ima_dk3ADPCM IMA Duck DK3D.A.L. adpcm_ima_dk4ADPCM IMA Duck DK4D.A.L. adpcm_ima_ea_eacsADPCM IMA Electronic Arts EACSD.A.L. adpcm_ima_ea_seadADPCM IMA Electronic Arts SEADD.A.L. adpcm_ima_issADPCM IMA Funcom ISSDEA.L. adpcm_ima_qtADPCM IMA QuickTimeD.A.L. adpcm_ima_smjpegADPCM IMA Loki SDL MJPEGDEA.L. adpcm_ima_wavADPCM IMA WAVD.A.L. adpcm_ima_wsADPCM IMA WestwoodDEA.L. adpcm_msADPCM MicrosoftD.A.L. adpcm_sbpro_2ADPCM Sound Blaster Pro 2-bitD.A.L. adpcm_sbpro_3ADPCM Sound Blaster Pro 2.6-bitD.A.L. adpcm_sbpro_4ADPCM Sound Blaster Pro 4-bitDEA.L. adpcm_swfADPCM Shockwave FlashD.A.L. adpcm_thpADPCM Nintendo Gamecube THPD.A.L. adpcm_xaADPCM CDROM XADEA.L. adpcm_yamahaADPCM YamahaDEA..S alacALAC (Apple Lossless Audio Codec)DEA.L. amr_nbAMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb libopencore_amrnb ) (encoders: libopencore_amrnb )DEA.L. amr_wbAMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb libopencore_amrwb ) (encoders: libvo_amrwbenc )D.A..S apeMonkey's AudioD.A.L. atrac1Atrac 1 (Adaptive TRansform Acoustic Coding)D.A.L. atrac3Atrac 3 (Adaptive TRansform Acoustic Coding 3)..A.L. atrac3pSony ATRAC3+D.A.L. binkaudio_dctBink Audio (DCT)D.A.L. binkaudio_rdftBink Audio (RDFT)D.A.L. bmv_audioDiscworld II BMV audio..A.L. celtConstrained Energy Lapped Transform (CELT)DEA.L. comfortnoiseRFC 3389 Comfort NoiseD.A.L. cookCook / Cooker / Gecko (RealAudio G2)D.A.L. dsicinaudioDelphine Software International CIN audioDEA.LS dtsDCA (DTS Coherent Acoustics) (decoders: dca ) (encoders: dca ) ..A.L. dvaudioDEA.L. eac3ATSC A/52B (AC-3, E-AC-3)DEA..S flacFLAC (Free Lossless Audio Codec)DEA.L. g723_1G.723.1D.A.L. g729G.729DEA.L. gsmGSM (decoders: gsm libgsm ) (encoders: libgsm )DEA.L. gsm_msGSM Microsoft variant (decoders:gsm_ms libgsm_ms) (encoders: libgsm_ms)D.A.L. iacIAC (Indeo Audio Coder)..A.L. ilbciLBC (Internet Low Bitrate Codec)D.A.L. imcIMC (Intel Music Coder)D.A.L. interplay_dpcmDPCM InterplayD.A.L. mace3MACE (Macintosh Audio Compression/Expansion) 3:1D.A.L. mace6MACE (Macintosh Audio Compression/Expansion) 6:1D.A..S mlpMLP (Meridian Lossless Packing)D.A.L. mp1MP1 (MPEG audio layer 1) (decoders: mp1 mp1float )DEA.L. mp2MP2 (MPEG audio layer 2) (decoders: mp2 mp2float )DEA.L. mp3MP3 (MPEG audio layer 3) (decoders:mp3 mp3float) (encoders: libmp3lame)D.A.L. mp3aduADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat )D.A.L. mp3on4MP3onMP4 (decoders: mp3on4 mp3on4float )D.A..S mp4alsMPEG-4 Audio Lossless Coding (ALS) (decoders: als )D.A.L. musepack7Musepack SV7 (decoders: mpc7 )D.A.L. musepack8Musepack SV8 (decoders: mpc8 )DEA.L. nellymoserNellymoser AsaoDEA.L. opusOpus (Opus Interactive Audio Codec) (decoders:libopus) (encoders: libopus)D.A.L. paf_audioAmazing Studio Packed Animation File AudioDEA... pcm_alawPCM A-lawD.A..S pcm_blurayPCM signed 16/20/24-bit big-endian for Blu-ray mediaD.A..S pcm_dvdPCM signed 20/24-bit big-endianDEA..S pcm_f32bePCM 32-bit floating point big-endianDEA..S pcm_f32lePCM 32-bit floating point little-endianDEA..S pcm_f64bePCM 64-bit floating point big-endianDEA..S pcm_f64lePCM 64-bit floating point little-endianD.A..S pcm_lxfPCM signed 20-bit little-endian planarDEA... pcm_mulawPCM mu-lawDEA..S pcm_s16bePCM signed 16-bit big-endianDEA..S pcm_s16lePCM signed 16-bit little-endianD.A..S pcm_s16le_planarPCM 16-bit little-endian planarDEA..S pcm_s24bePCM signed 24-bit big-endianDEA..S pcm_s24daudPCM D-Cinema audio signed 24-bitDEA..S pcm_s24lePCM signed 24-bit little-endianDEA..S pcm_s32bePCM signed 32-bit big-endianDEA..S pcm_s32lePCM signed 32-bit little-endianDEA..S pcm_s8PCM signed 8-bitD.A..S pcm_s8_planarPCM signed 8-bit planarDEA..S pcm_u16bePCM unsigned 16-bit big-endianDEA..S pcm_u16lePCM unsigned 16-bit little-endianDEA..S pcm_u24bePCM unsigned 24-bit big-endianDEA..S pcm_u24lePCM unsigned 24-bit little-endianDEA..S pcm_u32bePCM unsigned 32-bit big-endianDEA..S pcm_u32lePCM unsigned 32-bit little-endianDEA..S pcm_u8PCM unsigned 8-bitD.A.L. pcm_zorkPCM ZorkD.A.L. qcelpQCELP / PureVoiceD.A.L. qdm2QDesign Music Codec 2..A.L. qdmcQDesign MusicDEA.L. ra_144RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 )D.A.L. ra_288RealAudio 2.0 (28.8K) (decoders: real_288 )D.A..S ralfRealAudio LosslessDEA.L. roq_dpcmDPCM id RoQD.A.L. s302mSMPTE 302MD.A..S shortenShortenD.A.L. siprRealAudio SIPR / ACELP.NETD.A.L. smackaudioSmacker audio (decoders: smackaud )D.A.L. sol_dpcmDPCM SolDEA... sonicSonic.EA... soniclsSonic losslessDEA.L. speexSpeex (decoders: libspeex ) (encoders: libspeex )D.A..S takTAK (Tom's lossless Audio Kompressor)D.A..S truehdTrueHDD.A.L. truespeechDSP Group TrueSpeechD.A..S ttaTTA (True Audio)D.A.L. twinvqVQF TwinVQD.A.L. vimaLucasArts VIMA audioD.A.L. vmdaudioSierra VMD audioDEA.L. vorbisVorbis (decoders: vorbis libvorbis ) (encoders: vorbis libvorbis )..A.L. voxwareVoxware RT29 MetasoundVoxware RT29 MetasoundWave synthesis pseudo-codecD.A.LS wavpackWavPackD.A.L. westwood_snd1Westwood Audio (SND1) (decoders: ws_snd1 )D.A..S wmalosslessWindows Media Audio LosslessD.A.L. wmaproWindows Media Audio 9 ProfessionalDEA.L. wmav1Windows Media Audio 1DEA.L. wmav2Windows Media Audio 2D.A.L. wmavoiceWindows Media Audio VoiceD.A.L. xan_dpcmDPCM XanDES... dvb_subtitleDVB subtitles (decoders: dvbsub ) (encoders: dvbsub )..S... dvb_teletextDVB teletextDES... dvd_subtitleDVD subtitles (decoders: dvdsub ) (encoders: dvdsub )..S... eia_608EIA-608 closed captionsD.S... hdmv_pgs_subtitleHDMV Presentation Graphic Stream subtitles (decoders: pgssub )D.S... jacosubJACOsub subtitleD.S... microdvdMicroDVD subtitleDES... mov_textMOV textD.S... realtextRealText subtitleD.S... samiSAMI subtitleDES... srtSubRip subtitle with embedded timingDES... ssaSSA (SubStation Alpha)/ ASS (Advanced SSA) subtitle (decoders: ass) (encoders: ass )DES... subripSubRip subtitleD.S... subviewerSubViewer subtitleD.S... textraw UTF-8 textD.S... webvttWebVTT subtitleDES... xsubXSUB写的我想吐。。妹的!这么多。。。。。。image.png可用的编码器要显示内置的ffmpeg编码器的列表,我们可以使用以下命令:ffmpeg -encoders编码器V..... = VideoA..... = AudioS..... = Subtitle.F.... = Frame-level multithreading..S... = Slice-level multithreading...X.. = Codec is experimental....B. = Supports draw_horiz_band.....D = Supports direct rendering method 1------V..... a64multiMulticolor charset for Commodore 64 (codec a64_multi)V..... a64multi5Multicolor charset for Commodore 64, extended with 5th color (colram) (codec a64_multi5)V..... amvAMV VideoV..... asv1ASUS V1V..... asv2ASUS V2V..... avrpAvid 1:1 10-bit RGB PackerV..X.. avuiAvid Meridien UncompressedV..... ayuvUncompressed packed MS 4:4:4:4V..... bmpBMP (Windows and OS/2 bitmap)V..... libxavslibxavs Chinese AVS (Audio Video Standard) (codec cavs)V..... cljrCirrus Logic AccuPakV..... libschroedingerlibschroedinger Dirac 2.2 (codec dirac)V.S... dnxhdVC3/DNxHDV..... dpxDPX imageV.S... dvvideoDV (Digital Video)V.S... ffv1FFmpeg video codec #1V..... ffvhuffHuffyuv FFmpeg variantV..... flashsvFlash Screen VideoV..... flashsv2Flash Screen Video Version 2V..... flvFLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)V..... gifGIF (Graphics Interchange Format)V..... h261H.261V..... h263H.263 / H.263-1996V.S... h263pH.263+ / H.263-1998 / H.263 version 2V..... libx264libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)V..... libx264rgblibx264 H.264 /AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)V..... huffyuvHuffyuv / HuffYUVV..X.. j2kJPEG 2000 (codec jpeg2000)V..... libopenjpegOpenJPEG JPEG 2000 (codec jpeg2000)V..... jpeglsJPEG-LSV..... ljpegLossless JPEGVFS... mjpegMJPEG (Motion JPEG)V..... mpeg1videoMPEG-1 videoV.S... mpeg2videoMPEG-2 videoV.S... mpeg4MPEG-4 part 2V..... libxvidlibxvidcore MPEG-4 part 2 (codec mpeg4)V..... msmpeg4v2MPEG-4 part 2 Microsoft variant version 2V..... msmpeg4MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)V..... msvideo1Microsoft Video-1V..... pamPAM (Portable AnyMap) imageV..... pbmPBM (Portable BitMap) imageV..... pcxPC Paintbrush PCX imageV..... pgmPGM (Portable GrayMap) imageV..... pgmyuvPGMYUV (Portable GrayMap YUV) imageVF.... pngPNG (Portable Network Graphics) imageV..... ppmPPM (Portable PixelMap) imageVF.... proresApple ProResVF.... prores_anatoliyApple ProRes (codec prores)V.S... prores_kostyaApple ProRes (iCodec Pro) (codec prores)V..... qtrleQuickTime Animation (RLE) videoV..... r10kAJA Kona 10-bit RGB CodecV..... r210Uncompressed RGB 10-bitV..... rawvideoraw videoV..... roqvideoid RoQ video (codec roq)V..... rv10RealVideo 1.0V..... rv20RealVideo 2.0V..... sgiSGI imageV..... snowSnowV..... sunrastSun Rasterfile imageV..... svq1Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1V..... targaTruevision Targa imageV..... libtheoralibtheora Theora (codec theora)V..... tiffTIFF imageV..... utvideoUt VideoV..... libutvideoUt Video (codec utvideo)V..... v210Uncompressed 4:2:2 10-bitV..... v308Uncompressed packed 4:4:4V..... v408Uncompressed packed QT 4:4:4:4V..... v410Uncompressed 4:4:4 10-bitV..... libvpxlibvpx VP8 (codec vp8)V..... wmv1Windows Media Video 7V..... wmv2Windows Media Video 8V..... xbmXBM (X BitMap) imageV..... xfaceX-face imageV..... xwdXWD (X Window Dump) imageV..... y41pUncompressed YUV 4:1:1 12-bitV..... yuv4Uncompressed packed 4:2:0V..... zlibLCL (LossLess Codec Library) ZLIBV..... zmbvZip Motion Blocks VideoA..X.. aacAAC (Advanced Audio Coding)A..... libvo_aacencAndroid VisualOn AAC (Advanced Audio Coding) (codec aac)A..... ac3ATSC A/52A (AC-3)A..... ac3_fixedATSC A/52A (AC-3) (codec ac3)A..... adpcm_adxSEGA CRI ADX ADPCMA..... g722G.722 ADPCM (codec adpcm_g722)A..... g726G.726 ADPCM (codec adpcm_g726)A..... adpcm_ima_qtADPCM IMA QuickTimeA..... adpcm_ima_wavADPCM IMA WAVA..... adpcm_msADPCM MicrosoftA..... adpcm_swfADPCM Shockwave FlashA..... adpcm_yamahaADPCM YamahaA..... alacALAC (Apple Lossless Audio Codec)A..... libopencore_amrnbOpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band) (codec amr_nb)A..... libvo_amrwbencAndroid VisualOn AMR-WB (Adaptive Multi-Rate WideBand) (codec amr_wb)A..... comfortnoiseRFC 3389 comfort noise generatorA..X.. dcaDCA (DTS Coherent Acoustics) (codec dts)A..... eac3ATSC A/52 E-AC-3A..... flacFLAC (Free Lossless Audio Codec)A..... g723_1G.723.1A..... libgsmlibgsm GSM (codec gsm)A..... libgsm_mslibgsm GSM Microsoft variant (codec gsm_ms)A..... mp2MP2 (MPEG audio layer 2)A..... libmp3lamelibmp3lame MP3 (MPEG audio layer 3) (codec mp3)A..... nellymoserNellymoser AsaoA..... libopuslibopus Opus (codec opus)A..... pcm_alawPCM A-law / G.711 A-lawA..... pcm_f32bePCM 32-bit floating point big-endianA..... pcm_f32lePCM 32-bit floating point little-endianA..... pcm_f64bePCM 64-bit floating point big-endianA..... pcm_f64lePCM 64-bit floating point little-endianA..... pcm_mulawPCM mu-law / G.711 mu-lawA..... pcm_s16bePCM signed 16-bit big-endianA..... pcm_s16lePCM signed 16-bit little-endianA..... pcm_s24bePCM signed 24-bit big-endianA..... pcm_s24daudPCM D-Cinema audio signed 24-bitA..... pcm_s24lePCM signed 24-bit little-endianA..... pcm_s32bePCM signed 32-bit big-endianA..... pcm_s32lePCM signed 32-bit little-endianA..... pcm_s8PCM signed 8-bitA..... pcm_u16bePCM unsigned 16-bit big-endianA..... pcm_u16lePCM unsigned 16-bit little-endianA..... pcm_u24bePCM unsigned 24-bit big-endianA..... pcm_u24lePCM unsigned 24-bit little-endianA..... pcm_u32bePCM unsigned 32-bit big-endianA..... pcm_u32lePCM unsigned 32-bit little-endianA..... pcm_u8PCM unsigned 8-bitA..... real_144RealAudio 1.0 (14.4K) (codec ra_144)A..... roq_dpcmid RoQ DPCMA..X.. sonicSonicA..X.. soniclsSonic losslessA..... libspeexlibspeex Speex (codec speex)A..X.. vorbisVorbisA..... libvorbislibvorbis (codec vorbis)A..... wmav1Windows Media Audio 1A..... wmav2Windows Media Audio 2S..... dvbsubDVB subtitles (codec dvb_subtitle)S..... dvdsubDVD subtitles (codec dvd_subtitle)S..... mov_text3GPP Timed Text subtitleS..... srtSubRip subtitle with embedded timingS..... assSSA (SubStation Alpha) subtitle (codec ssa)S..... subripSubRip subtitleS..... xsubDivX subtitles (XSUB)可用的过滤器要显示内置过滤器列表,我们可以使用下一个命令:ffmpeg -filters过滤器aconvertA->AConvert the input audio to sample_fmt:channel_layout.afifoA->ABuffer input frames and send them when they are requested.aformatA->AConvert the input audio to one of the specified formats.amerge| ->AMerge two audio streams into a single multi-channel stream.amix| ->AAudio mixing.anullA->APass the source unchanged to the output.aresampleA->AResample audio data.asendcmdA->ASend commands to filters.asetnsamplesA->ASet the number of samples for each output audio frames.asetptsA->ASet PTS for the output audio frame.asettbA->ASet timebase for the audio output link.ashowinfoA->AShow textual information for each audio frame.asplitA->|Pass on the audio input to N audio outputs.astreamsyncAA->AACopy two streams of audio data in a configurable order.atempoA->AAdjust audio tempo.channelmapA->ARemap audio channels.channelsplitA->|Split audio into per-channel streamsearwaxA->AWiden the stereo image.ebur128A->|EBU R128 scanner.join|->AJoin multiple audio streams into multi-channel outputpanA->ARemix channels with coefficients (panning).silencedetectA->ADetect silence.volumeA->AChange input volume.volumedetectA->ADetect audio volume.aevalsrc|->AGenerate an audio signal generated by an expressionanullsrc|->ANull audio source, return empty audio frames.anullsinkA->|Do absolutely nothing with the input audio.alphaextractV->VExtract an alpha channel as a grayscale image component.alphamergeVV->VCopy the luma value of the 2nd input to the alpha channel of the 1st input.assV->VRender subtitles onto input video using the libass library.bboxV->VCompute bounding box for each frame.blackdetectV->VDetect video intervals that are (almost) black.blackframeV->VDetect frames that are (almost) black.boxblurV->VBlur the input.colormatrixV->VColor matrix conversioncopyV->VCopy the input video unchanged to the output.cropV->VCrop the input video to width:height:x:y.cropdetectV->VAuto-detect crop size.decimateV->VRemove near-duplicate frames.delogoV->VRemove logo from input video.deshakeV->VStabilize shaky video.drawboxV->VDraw a colored box on the input video.drawtextV->VDraw text on top of video frames using libfreetype library.edgedetectV->VDetect and draw edge.fadeV->VFade in/out input video.fieldV->VExtract a field from the input video.fieldorderV->VSet the field order.fifoV->VBuffer input images and send them when they are requested.formatV->VConvert the input video to one of the specified pixel formats.fpsV->VForce constant framerateframestepV->VSelect one frame every N frames.gradfunV->VDebands video quickly using gradients.hflipV->VHorizontally flip the input video.hqdn3dV->VApply a High Quality 3D Denoiser.hueV->VAdjust the hue and saturation of the input video.idetV->VInterlace detect Filter.lutV->VCompute and apply a lookup table to the RGB/YUV input video.lutrgbV->VCompute and apply a lookup table to the RGB input video.lutyuvV->VCompute and apply a lookup table to the YUV input video.mpV->VApply a libmpcodecs filter to the input video.negateV->VNegate input video.noformatV->VForce libavfilter not to use any of the specified pixel formats for the input to the next filter.nullV->VPass the source unchanged to the output.overlayVV->VOverlay a video source on top of the input.padV->VPad input image to width:height[:x:y[:color]] (default x and y: 0, default color: black).pixdesctestV->VTest pixel format definitions.removelogoV->VRemove a TV logo based on a mask image.scaleV->VScale the input video to width:height size and/or convert the image format.selectV->VSelect frames to pass in output.sendcmdV->VSend commands to filters.setdarV->VSet the frame display aspect ratio.setfieldV->VForce field for the output video frame.setptsV->VSet PTS for the output video frame.setsarV->VSet the pixel sample aspect ratio.settbV->VSet timebase for the video output link.showinfoV->VShow textual information for each video frame.slicifyV->VPass the images of input video on to next video filter as multiple slices.smartblurV->VBlur the input video without impacting the outlines.splitV->|Pass on the input video to N outputs.super2xsaiV->VScale the input by 2x using the Super2xSaI pixel art algorithm.swapuvV->VSwap U and V components.thumbnailV->VSelect the most representative frame in a sequence of consecutive framestileV->VTile several successive frames together.tinterlaceV->VPerform temporal field interlacing.transposeV->VTranspose input video.unsharpV->VSharpen or blur the input video.vflipV->VFlip the input video vertically.yadifV->VDeinterlace the input image.cellauto|->VCreate pattern generated by an elementary cellular automaton.color|->VProvide an uniformly colored input.life|->VCreate life.mandelbrot|->VRender a Mandelbrot fractal.mptestsrc|->VGenerate various test pattern.nullsrc|->VNull video source, return unprocessed video frames.rgbtestsrc|->VGenerate RGB test pattern.smptebars|->VGenerate SMPTE color bars.testsrc|->VGenerate test pattern.nullsinkV->|Do absolutely nothing with the input video.concat|->|Concatenate audio and video streams.showspectrumA->VConvert input audio to a spectrum video output.showwavesA->VConvert input audio to a video output.amovie|->|Read audio from a movie source.movie|->|Read from a movie source.ffbuffersinkV->|Buffer video frames and make them available to the end of the filter graph.ffabuffersinkA->|Buffer audio frames and make them available to the end of the filter graph.buffersinkV->|Buffer video frames and make them available to the end of the filter graph.abuffersinkA->|Buffer audio frames and make them available to the end of the filter graph.buffer|->VBuffer video frames and make them accessible to the filterchain.abuffer|->ABuffer audio frames and make them accessible to the filterchain.buffersink_oldV->|Buffer video frames and make them available to the end of the filter graph.abuffersink_oldA->|Buffer audio frames and make them available to the end of the filter graph.可用的格式要显示内置的音频和视频格式,下一个命令是:ffmpeg -formats下面的内容我打算直接截图,大家将就着看吧:可用的音频通道布局要显示可用的音频通道布局列表,我们可以使用以下命令:ffmpeg -layouts个性化通道:名称分解(描述)FLfront leftFRfront rightFCfront centerLFElow frequencyBLback leftBRback rightFLCfront left-of-centerFRCfront right-of-centerBCback centerSLside leftSRside rightTCtop centerTFLtop front leftTFCtop front centerTFRtop front rightTBLtop back leftTBCtop back centerTBRtop back rightDLdownmix leftDRdownmix rightWLwide leftWRwide rightSDLsurround direct leftSDRsurround direct rightLFE2low frequency 2个性化通道标准通道布局:名称分解(描述)monoFCstereoFL+FR2.1FL+FR+LFE3.0FL+FR+FC3.0(back)FL+FR+BC4.0FL+FR+FC+BCquadFL+FR+BL+BRquad(side)FL+FR+SL+SR3.1FL+FR+FC+LFE5.0FL+FR+FC+BL+BR5.0(side)FL+FR+FC+SL+SR4.1FL+FR+FC+LFE+BC5.1FL+FR+FC+LFE+BL+BR5.1(side)FL+FR+FC+LFE+SL+SR6.0FL+FR+FC+BC+SL+SR6.0(front)FL+FR+FLC+FRC+SL+SRhexagonalFL+FR+FC+BL+BR+BC6.1FL+FR+FC+LFE+BC+SL+SR6.1FL+FR+FC+LFE+BL+BR+BC6.1(front)FL+FR+LFE+FLC+FRC+SL+SR7.0FL+FR+FC+BL+BR+SL+SR7.0(front)FL+FR+FC+FLC+FRC+SL+SR7.1FL+FR+FC+LFE+BL+BR+SL+SR7.1(wide)FL+FR+FC+LFE+FLC+FRC+SL+SRoctagonalFL+FR+FC+BL+BR+BC+SL+SRdownmixDL+DR标准化通道FFmpeg许可证关于FFmpeg许可的信息可以用大写L作为参数显示:ffmpeg -Lffmpeg -Lfmpeg是自由软件;您可以根据自由软件基金会发布的GNU通用公共许可证的条款重新分配和/或修改它;任何版本3的许可,或(在您的选择)以后的版本。ffmpeg是分布式的,希望它是有用的,但是没有任何保证;甚至没有对适销性或适合某一特定用途的适用性的默示保证。有关更多细节,请参见GNU通用公共许可证。您应该已经收到了一份GNU通用公共许可证和ffmpeg的副本。如果不是,见http://www.gnu.org/licenses可用的像素格式该命令可以显示内置的像素格式列表:ffmpeg -pix_fmts像素格式:标记名称NB_COMPONENTS(不知道该咋翻译)BITS_PER_PIXELIO... yuv420p312IO... yuyv422316IO... rgb24324IO... bgr24324IO... yuv422p316IO... yuv444p324IO... yuv410p39IO... yuv411p312IO... gray18IO..B monow11IO..B monob11I..P. pal818IO... yuvj420p312IO... yuvj422p316IO... yuvj444p324..H.. xvmcmc00..H.. xvmcidct00IO... uyvy422316..... uyyvyy411312IO... bgr838.O..B bgr434IO... bgr4_byte34IO... rgb838.O..B rgb434IO... rgb4_byte34IO... nv12312IO... nv21312IO... argb432IO... rgba432IO... abgr432IO... bgra432IO... gray16be116IO... gray16le116IO... yuv440p316IO... yuvj440p316IO... yuva420p420..H.. vdpau_h26400..H.. vdpau_mpeg100..H.. vdpau_mpeg200..H.. vdpau_wmv300..H.. vdpau_vc100IO... rgb48be348IO... rgb48le348IO... rgb565be316IO... rgb565le316IO... rgb555be315IO... rgb555le315IO... bgr565be316IO... bgr565le316IO... bgr555be315IO... bgr555le315..H.. vaapi_moco00..H.. vaapi_idct00..H.. vaapi_vld00IO... yuv420p16le324IO... yuv420p16be324IO... yuv422p16le332IO... yuv422p16be332IO... yuv444p16le348IO... yuv444p16be348..H.. vdpau_mpeg400..H.. dxva2_vld00IO... rgb444le312IO... rgb444be312IO... bgr444le312IO... bgr444be312I.... gray8a216IO... bgr48be348IO... bgr48le348IO... yuv420p9be313IO... yuv420p9le313\IO... yuv420p10be315IO... yuv420p10le315IO... yuv422p10be320IO... yuv422p10le320IO... yuv444p9be327IO... yuv444p9le327IO... yuv444p10be330IO... yuv444p10le330IO... yuv422p9be318IO... yuv422p9le318..H.. vda_vld00I.... gbrp324I.... gbrp9be327I.... gbrp9le327I.... gbrp10be330I.... gbrp10le330I.... gbrp16be348I.... gbrp16le348IO... yuva420p9be422IO... yuva420p9le422IO... yuva422p9be427IO... yuva422p9le427IO... yuva444p9be436IO... yuva444p9le436IO... yuva420p10be425IO... yuva420p10le440IO... yuva422p10be448IO... yuva422p10le448IO... yuva444p10be464IO... yuva444p10le464IO... yuva420p16be440IO... yuva420p16le440IO... yuva422p16be448IO... yuva422p16le448IO... yuva444p16be464IO... yuva444p16le464I.... rgba64be464I.... rgba64le464..... bgra64be464..... bgra64le464IO... 0rgb324IO... rgb0324IO... 0bgr324IO... bgr0324IO... yuva444p432IO... yuva422p424IO... yuv420p12be318IO... yuv420p12le318IO... yuv420p14be321IO... yuv420p14le321IO... yuv422p12be324IO... yuv422p12le324IO... yuv422p14be328IO... yuv422p14le328IO... yuv444p12be336IO... yuv444p12le336IO... yuv444p14be342IO... yuv444p14le342I.... gbrp12be336I.... gbrp12le336I.... gbrp14be342I.... gbrp14le342可用的协议对于显示可用的文件协议,下一个命令是:ffmpeg -protocols下面是支持的文件协议:Input:(输入)applehttpcacheconcatcryptofilegopherhlshttphttpproxymmshmmstpipertptcpudprtmprtmpertmpsrtmptrtmpteOutput:(输出)filegopherhttphttpproxymd5pipertptcpudprtmprtmpertmpsrtmptrtmpte可用的音频样本格式FFmpeg中包含的音频样本格式可以通过命令显示:ffmpeg -sample_fmts名称位深度u88s1616s3232flt32dbl64u8p8s16p16s32p32fltp32dblp64我电脑上显示出来的样本格式多了两个FFmpeg版本版本的ffmpeg可以显示为 -version 选项,下一个结果是在2012年11月25日创建的官方构建窗口的显示结果。ffmpeg -versionFFmpeg版本信息有关ffmpeg配置的详细信息,请参见词汇表。使用MORE命令来实现输出格式。由于help命令、可用过滤器命令、格式命令等的输出很长并且通常不适合一个屏幕,所以可以使用更多命令来显示从一开始就按顺序将输出文本进行格式化,下一个屏幕由 按下空格键,按Enter键后显示下一行(只会多显示一行),按Q或q将退出预览。 语法是ffmpeg -help | more想看更多信息的,敲Enter键就可以或使用更短的形式:ffmpeg -h|more还可以使用更多的命令来显示文本文件,内容再次被划分为适合一个屏幕,语法是:more filename.txt可以通过输入显示更多命令的附加参数:help more重定向输出到文件有时需要精确研究帮助命令,可用过滤器命令,格式命令等,为了将这些信息保存到文本文件中,可以使用下一个命令:ffmpeg -help > help.txt该命令将在当前目录中创建一个名为help.txt的新文件,并将其保存到ffmpeg help的内容中。 如果具有相同名称的文件已经存在,它将被覆盖。 要将输出文本附加到现有文件而不覆盖其内容,请使用两个大于符号">":ffmpeg -help > data.txtffmpeg -filters >> data.txt现在文件data.txt包含ffmpeg帮助,后面跟着可用过滤器列表。下图是我打印出来的data.txt信息: