Ffmpeg Documentation Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
ffmpeg Documentation Table of Contents 1 Synopsis 2 Description 3 Detailed description 3.1 Filtering 3.1.1 Simple filtergraphs 3.1.2 Complex filtergraphs 3.2 Stream copy 4 Stream selection 5 Options 5.1 Stream specifiers 5.2 Generic options 5.3 AVOptions 5.4 Main options 5.5 Video Options 5.6 Advanced Video options 5.7 Audio Options 5.8 Advanced Audio options 5.9 Subtitle options 5.10 Advanced Subtitle options 5.11 Advanced options 5.12 Preset files 5.12.1 ffpreset files 5.12.2 avpreset files 6 Examples 6.1 Video and Audio grabbing 6.2 X11 grabbing 6.3 Video and Audio file format conversion 7 Syntax 7.1 Quoting and escaping 7.1.1 Examples 7.2 Date 7.3 Time duration 7.3.1 Examples 7.4 Video size 7.5 Video rate 7.6 Ratio 7.7 Color 7.8 Channel Layout 8 Expression Evaluation 9 OpenCL Options 10 Codec Options 11 Decoders 12 Video Decoders 12.1 hevc 12.2 rawvideo 12.2.1 Options 13 Audio Decoders 13.1 ac3 13.1.1 AC-3 Decoder Options 13.2 flac 13.2.1 FLAC Decoder options 13.3 ffwavesynth 13.4 libcelt 13.5 libgsm 13.6 libilbc 13.6.1 Options 13.7 libopencore-amrnb 13.8 libopencore-amrwb 13.9 libopus 14 Subtitles Decoders 14.1 dvbsub 14.1.1 Options 14.2 dvdsub 14.2.1 Options 14.3 libzvbi-teletext 14.3.1 Options 15 Encoders 16 Audio Encoders 16.1 aac 16.1.1 Options 16.2 ac3 and ac3_fixed 16.2.1 AC-3 Metadata 16.2.1.1 Metadata Control Options 16.2.1.2 Downmix Levels 16.2.1.3 Audio Production Information 16.2.1.4 Other Metadata Options 16.2.2 Extended Bitstream Information 16.2.2.1 Extended Bitstream Information - Part 1 16.2.2.2 Extended Bitstream Information - Part 2 16.2.3 Other AC-3 Encoding Options 16.2.4 Floating-Point-Only AC-3 Encoding Options 16.3 flac 16.3.1 Options 16.4 opus 16.4.1 Options 16.5 libfdk_aac 16.5.1 Options 16.5.2 Examples 16.6 libmp3lame 16.6.1 Options 16.7 libopencore-amrnb 16.7.1 Options 16.8 libopus 16.8.1 Option Mapping 16.9 libshine 16.9.1 Options 16.10 libtwolame 16.10.1 Options 16.11 libvo-amrwbenc 16.11.1 Options 16.12 libvorbis 16.12.1 Options 16.13 libwavpack 16.13.1 Options 16.14 mjpeg 16.14.1 Options 16.15 wavpack 16.15.1 Options 16.15.1.1 Shared options 16.15.1.2 Private options 17 Video Encoders 17.1 Hap 17.1.1 Options 17.2 jpeg2000 17.2.1 Options 17.3 libkvazaar 17.3.1 Options 17.4 libopenh264 17.4.1 Options 17.5 libtheora 17.5.1 Options 17.5.2 Examples 17.6 libvpx 17.6.1 Options 17.7 libwebp 17.7.1 Pixel Format 17.7.2 Options 17.8 libx264, libx264rgb 17.8.1 Supported Pixel Formats 17.8.2 Options 17.9 libx265 17.9.1 Options 17.10 libxvid 17.10.1 Options 17.11 mpeg2 17.11.1 Options 17.12 png 17.12.1 Private options 17.13 ProRes 17.13.1 Private Options for prores-ks 17.13.2 Speed considerations 17.14 QSV encoders 17.15 snow 17.15.1 Options 17.16 vc2 17.16.1 Options 18 Subtitles Encoders 18.1 dvdsub 18.1.1 Options 19 Bitstream Filters 19.1 aac_adtstoasc 19.2 chomp 19.3 dca_core 19.4 dump_extra 19.5 h264_mp4toannexb 19.6 hevc_mp4toannexb 19.7 imxdump 19.8 mjpeg2jpeg 19.9 mjpegadump 19.10 mov2textsub 19.11 mp3decomp 19.12 mpeg4_unpack_bframes 19.13 noise 19.14 remove_extra 19.15 text2movsub 19.16 vp9_superframe 20 Format Options 20.1 Format stream specifiers 21 Demuxers 21.1 aa 21.2 applehttp 21.3 apng 21.4 asf 21.5 concat 21.5.1 Syntax 21.5.2 Options 21.5.3 Examples 21.6 flv, live_flv 21.7 gif 21.8 image2 21.8.1 Examples 21.9 libgme 21.10 libopenmpt 21.11 mov/mp4/3gp/QuickTime 21.12 mpegts 21.13 mpjpeg 21.14 rawvideo 21.15 sbg 21.16 tedcaptions 22 Muxers 22.1 aiff 22.1.1 Options 22.2 asf 22.2.1 Options 22.3 avi 22.3.1 Options 22.4 chromaprint 22.4.1 Options 22.5 crc 22.5.1 Examples 22.6 flv 22.7 framecrc 22.7.1 Examples 22.8 framehash 22.8.1 Examples 22.9 framemd5 22.9.1 Examples 22.10 gif 22.11 hash 22.11.1 Examples 22.12 hls 22.12.1 Options 22.13 ico 22.14 image2 22.14.1 Examples 22.14.2 Options 22.15 matroska 22.15.1 Metadata 22.15.2 Options 22.16 md5 22.16.1 Examples 22.17 mov, mp4, ismv 22.17.1 Options 22.17.2 Example 22.17.3 Audible AAX 22.18 mp3 22.19 mpegts 22.19.1 Options 22.19.2 Example 22.20 mxf, mxf_d10 22.20.1 Options 22.21 null 22.22 nut 22.23 ogg 22.24 segment, stream_segment, ssegment 22.24.1 Options 22.24.2 Examples 22.25 smoothstreaming 22.26 fifo 22.26.1 Examples 22.27 tee 22.27.1 Examples 22.28 webm_dash_manifest 22.28.1 Options 22.28.2 Example 22.29 webm_chunk 22.29.1 Options 22.29.2 Example 23 Metadata 24 Protocol Options 25 Protocols 25.1 async 25.2 bluray 25.3 cache 25.4 concat 25.5 crypto 25.6 data 25.7 file 25.8 ftp 25.9 gopher 25.10 hls 25.11 http 25.11.1 HTTP Cookies 25.12 Icecast 25.13 mmst 25.14 mmsh 25.15 md5 25.16 pipe 25.17 prompeg 25.18 rtmp 25.19 rtmpe 25.20 rtmps 25.21 rtmpt 25.22 rtmpte 25.23 rtmpts 25.24 libsmbclient 25.25 libssh 25.26 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte 25.27 rtp 25.28 rtsp 25.28.1 Examples 25.29 sap 25.29.1 Muxer 25.29.2 Demuxer 25.30 sctp 25.31 srtp 25.32 subfile 25.33 tee 25.34 tcp 25.35 tls 25.36 udp 25.36.1 Examples 25.37 unix 26 Device Options 27 Input Devices 27.1 alsa 27.1.1 Options 27.2 avfoundation 27.2.1 Options 27.2.2 Examples 27.3 bktr 27.3.1 Options 27.4 decklink 27.4.1 Options 27.4.2 Examples 27.5 dshow 27.5.1 Options 27.5.2 Examples 27.6 dv1394 27.6.1 Options 27.7 fbdev 27.7.1 Options 27.8 gdigrab 27.8.1 Options 27.9 iec61883 27.9.1 Options 27.9.2 Examples 27.10 jack 27.10.1 Options 27.11 lavfi 27.11.1 Options 27.11.2 Examples 27.12 libcdio 27.12.1 Options 27.13 libdc1394 27.14 openal 27.14.1 Options 27.14.2 Examples 27.15 oss 27.15.1 Options 27.16 pulse 27.16.1 Options 27.16.2 Examples 27.17 qtkit 27.17.1 Options 27.18 sndio 27.18.1 Options 27.19 video4linux2, v4l2 27.19.1 Options 27.20 vfwcap 27.20.1 Options 27.21 x11grab 27.21.1 Options 28 Output Devices 28.1 alsa 28.1.1 Examples 28.2 caca 28.2.1 Options 28.2.2 Examples 28.3 decklink 28.3.1 Options 28.3.2 Examples 28.4 fbdev 28.4.1 Options 28.4.2 Examples 28.5 opengl 28.5.1 Options 28.5.2 Examples 28.6 oss 28.7 pulse 28.7.1 Options 28.7.2 Examples 28.8 sdl 28.8.1 Options 28.8.2 Interactive commands 28.8.3 Examples 28.9 sndio 28.10 xv 28.10.1 Options 28.10.2 Examples 29 Resampler Options 30 Scaler Options 31 Filtering Introduction 32 graph2dot 33 Filtergraph description 33.1 Filtergraph syntax 33.2 Notes on filtergraph escaping 34 Timeline editing 35 Audio Filters 35.1 acompressor 35.2 acrossfade 35.2.1 Examples 35.3 acrusher 35.4 adelay 35.4.1 Examples 35.5 aecho 35.5.1 Examples 35.6 aemphasis 35.7 aeval 35.7.1 Examples 35.8 afade 35.8.1 Examples 35.9 afftfilt 35.9.1 Examples 35.10 aformat 35.11 agate 35.12 alimiter 35.13 allpass 35.14 aloop 35.15 amerge 35.15.1 Examples 35.16 amix 35.17 anequalizer 35.17.1 Examples 35.17.2 Commands 35.18 anull 35.19 apad 35.19.1 Examples 35.20 aphaser 35.21 apulsator 35.22 aresample 35.22.1 Examples 35.23 areverse 35.23.1 Examples 35.24 asetnsamples 35.25 asetrate 35.26 ashowinfo 35.27 astats 35.28 asyncts 35.29 atempo 35.29.1 Examples 35.30 atrim 35.31 bandpass 35.32 bandreject 35.33 bass 35.34 biquad 35.35 bs2b 35.36 channelmap 35.37 channelsplit 35.38 chorus 35.38.1 Examples 35.39 compand 35.39.1 Examples 35.40 compensationdelay 35.41 crystalizer 35.42 dcshift 35.43 dynaudnorm 35.44 earwax 35.45 equalizer 35.45.1 Examples 35.46 extrastereo 35.47 firequalizer 35.47.1 Examples 35.48 flanger 35.49 hdcd 35.50 highpass 35.51 join 35.52 ladspa 35.52.1 Examples 35.52.2 Commands 35.53 loudnorm 35.54 lowpass 35.55 pan 35.55.1 Mixing examples 35.55.2 Remapping examples 35.56 replaygain 35.57 resample 35.58 rubberband 35.59 sidechaincompress 35.59.1 Examples 35.60 sidechaingate 35.61 silencedetect 35.61.1 Examples 35.62 silenceremove 35.62.1 Examples 35.63 sofalizer 35.63.1 Examples 35.64 stereotools 35.64.1 Examples 35.65 stereowiden 35.66 treble 35.67 tremolo 35.68 vibrato 35.69 volume 35.69.1 Commands 35.69.2 Examples 35.70 volumedetect 35.70.1 Examples 36 Audio Sources 36.1 abuffer 36.1.1 Examples 36.2 aevalsrc 36.2.1 Examples 36.3 anullsrc 36.3.1 Examples 36.4 flite 36.4.1 Examples 36.5 anoisesrc 36.5.1 Examples 36.6 sine 36.6.1 Examples 37 Audio Sinks 37.1 abuffersink 37.2 anullsink 38 Video Filters 38.1 alphaextract 38.2 alphamerge 38.3 ass 38.4 atadenoise 38.5 avgblur 38.6 bbox 38.7 bitplanenoise 38.8 blackdetect 38.9 blackframe 38.10 blend, tblend 38.10.1 Examples 38.11 boxblur 38.11.1 Examples 38.12 bwdif 38.13 chromakey 38.13.1 Examples 38.14 ciescope 38.15 codecview 38.15.1 Examples 38.16 colorbalance 38.16.1 Examples 38.17 colorkey 38.17.1 Examples 38.18 colorlevels 38.18.1 Examples 38.19 colorchannelmixer 38.19.1 Examples 38.20 colormatrix 38.21 colorspace 38.22 convolution 38.22.1 Examples 38.23 copy 38.24 coreimage 38.24.1 Examples 38.25 crop 38.25.1 Examples 38.25.2 Commands 38.26 cropdetect 38.27 curves 38.27.1 Examples 38.28 datascope 38.29 dctdnoiz 38.29.1 Examples 38.30 deband 38.31 decimate 38.32 deflate 38.33 dejudder 38.34 delogo 38.34.1 Examples 38.35 deshake 38.36 detelecine 38.37 dilation 38.38 displace 38.38.1 Examples 38.39 drawbox 38.39.1 Examples 38.40 drawgrid 38.40.1 Examples 38.41 drawtext 38.41.1 Syntax 38.41.2 Text expansion 38.41.3 Examples 38.42 edgedetect 38.42.1 Examples 38.43 eq 38.43.1 Commands 38.44 erosion 38.45 extractplanes 38.45.1 Examples 38.46 elbg 38.47 fade 38.47.1 Examples 38.48 fftfilt 38.48.1 Examples 38.49 field 38.50 fieldhint 38.51 fieldmatch 38.51.1 p/c/n/u/b meaning 38.51.1.1 p/c/n 38.51.1.2 u/b 38.51.2 Examples 38.52 fieldorder 38.53 fifo, afifo 38.54 find_rect 38.54.1 Examples 38.55 cover_rect 38.55.1 Examples 38.56 format 38.56.1 Examples 38.57 fps 38.57.1 Examples 38.58 framepack 38.59 framerate 38.60 framestep 38.61 frei0r 38.61.1 Examples 38.62 fspp 38.63 gblur 38.64 geq 38.64.1