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 Codec Options 10 Decoders 11 Video Decoders 11.1 rawvideo 11.1.1 Options 12 Audio Decoders 12.1 ac3 12.1.1 AC-3 Decoder Options 12.2 flac 12.2.1 FLAC Decoder options 12.3 ffwavesynth 12.4 libcelt 12.5 libgsm 12.6 libilbc 12.6.1 Options 12.7 libopencore-amrnb 12.8 libopencore-amrwb 12.9 libopus 13 Subtitles Decoders 13.1 dvbsub 13.1.1 Options 13.2 dvdsub 13.2.1 Options 13.3 libzvbi-teletext 13.3.1 Options 14 Encoders 15 Audio Encoders 15.1 aac 15.1.1 Options 15.2 ac3 and ac3_fixed 15.2.1 AC-3 Metadata 15.2.1.1 Metadata Control Options 15.2.1.2 Downmix Levels 15.2.1.3 Audio Production Information 15.2.1.4 Other Metadata Options 15.2.2 Extended Bitstream Information 15.2.2.1 Extended Bitstream Information - Part 1 15.2.2.2 Extended Bitstream Information - Part 2 15.2.3 Other AC-3 Encoding Options 15.2.4 Floating-Point-Only AC-3 Encoding Options 15.3 flac 15.3.1 Options 15.4 opus 15.4.1 Options 15.5 libfdk_aac 15.5.1 Options 15.5.2 Examples 15.6 libmp3lame 15.6.1 Options 15.7 libopencore-amrnb 15.7.1 Options 15.8 libopus 15.8.1 Option Mapping 15.9 libshine 15.9.1 Options 15.10 libtwolame 15.10.1 Options 15.11 libvo-amrwbenc 15.11.1 Options 15.12 libvorbis 15.12.1 Options 15.13 libwavpack 15.13.1 Options 15.14 mjpeg 15.14.1 Options 15.15 wavpack 15.15.1 Options 15.15.1.1 Shared options 15.15.1.2 Private options 16 Video Encoders 16.1 Hap 16.1.1 Options 16.2 jpeg2000 16.2.1 Options 16.3 libkvazaar 16.3.1 Options 16.4 libopenh264 16.4.1 Options 16.5 libtheora 16.5.1 Options 16.5.2 Examples 16.6 libvpx 16.6.1 Options 16.7 libwebp 16.7.1 Pixel Format 16.7.2 Options 16.8 libx264, libx264rgb 16.8.1 Supported Pixel Formats 16.8.2 Options 16.9 libx265 16.9.1 Options 16.10 libxvid 16.10.1 Options 16.11 mpeg2 16.11.1 Options 16.12 png 16.12.1 Private options 16.13 ProRes 16.13.1 Private Options for prores-ks 16.13.2 Speed considerations 16.14 QSV encoders 16.15 snow 16.15.1 Options 16.16 VAAPI encoders 16.17 vc2 16.17.1 Options 17 Subtitles Encoders 17.1 dvdsub 17.1.1 Options 18 Bitstream Filters 18.1 aac_adtstoasc 18.2 chomp 18.3 dca_core 18.4 dump_extra 18.5 eac3_core 18.6 extract_extradata 18.7 filter_units 18.8 hapqa_extract 18.9 h264_metadata 18.10 h264_mp4toannexb 18.11 h264_redundant_pps 18.12 hevc_metadata 18.13 hevc_mp4toannexb 18.14 imxdump 18.15 mjpeg2jpeg 18.16 mjpegadump 18.17 mov2textsub 18.18 mp3decomp 18.19 mpeg2_metadata 18.20 mpeg4_unpack_bframes 18.21 noise 18.22 null 18.23 remove_extra 18.24 text2movsub 18.25 trace_headers 18.26 vp9_superframe 18.27 vp9_superframe_split 18.28 vp9_raw_reorder 19 Format Options 19.1 Format stream specifiers 20 Demuxers 20.1 aa 20.2 applehttp 20.3 apng 20.4 asf 20.5 concat 20.5.1 Syntax 20.5.2 Options 20.5.3 Examples 20.6 dash 20.7 flv, live_flv 20.8 gif 20.9 hls 20.10 image2 20.10.1 Examples 20.11 libgme 20.12 libopenmpt 20.13 mov/mp4/3gp/QuickTime 20.14 mpegts 20.15 mpjpeg 20.16 rawvideo 20.17 sbg 20.18 tedcaptions 21 Muxers 21.1 aiff 21.1.1 Options 21.2 asf 21.2.1 Options 21.3 avi 21.3.1 Options 21.4 chromaprint 21.4.1 Options 21.5 crc 21.5.1 Examples 21.6 flv 21.7 dash 21.8 framecrc 21.8.1 Examples 21.9 framehash 21.9.1 Examples 21.10 framemd5 21.10.1 Examples 21.11 gif 21.12 hash 21.12.1 Examples 21.13 hls 21.13.1 Options 21.14 ico 21.15 image2 21.15.1 Examples 21.15.2 Options 21.16 matroska 21.16.1 Metadata 21.16.2 Options 21.17 md5 21.17.1 Examples 21.18 mov, mp4, ismv 21.18.1 Options 21.18.2 Example 21.18.3 Audible AAX 21.19 mp3 21.20 mpegts 21.20.1 Options 21.20.2 Example 21.21 mxf, mxf_d10 21.21.1 Options 21.22 null 21.23 nut 21.24 ogg 21.25 segment, stream_segment, ssegment 21.25.1 Options 21.25.2 Examples 21.26 smoothstreaming 21.27 fifo 21.27.1 Examples 21.28 tee 21.28.1 Examples 21.29 webm_dash_manifest 21.29.1 Options 21.29.2 Example 21.30 webm_chunk 21.30.1 Options 21.30.2 Example 22 Metadata 23 Protocol Options 24 Protocols 24.1 async 24.2 bluray 24.3 cache 24.4 concat 24.5 crypto 24.6 data 24.7 file 24.8 ftp 24.9 gopher 24.10 hls 24.11 http 24.11.1 HTTP Cookies 24.12 Icecast 24.13 mmst 24.14 mmsh 24.15 md5 24.16 pipe 24.17 prompeg 24.18 rtmp 24.19 rtmpe 24.20 rtmps 24.21 rtmpt 24.22 rtmpte 24.23 rtmpts 24.24 libsmbclient 24.25 libssh 24.26 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte 24.27 rtp 24.28 rtsp 24.28.1 Examples 24.29 sap 24.29.1 Muxer 24.29.2 Demuxer 24.30 sctp 24.31 srt 24.32 srtp 24.33 subfile 24.34 tee 24.35 tcp 24.36 tls 24.37 udp 24.37.1 Examples 24.38 unix 25 Device Options 26 Input Devices 26.1 alsa 26.1.1 Options 26.2 android_camera 26.2.1 Options 26.3 avfoundation 26.3.1 Options 26.3.2 Examples 26.4 bktr 26.4.1 Options 26.5 decklink 26.5.1 Options 26.5.2 Examples 26.6 kmsgrab 26.6.1 Options 26.6.2 Examples 26.7 libndi_newtek 26.7.1 Options 26.7.2 Examples 26.8 dshow 26.8.1 Options 26.8.2 Examples 26.9 fbdev 26.9.1 Options 26.10 gdigrab 26.10.1 Options 26.11 iec61883 26.11.1 Options 26.11.2 Examples 26.12 jack 26.12.1 Options 26.13 lavfi 26.13.1 Options 26.13.2 Examples 26.14 libcdio 26.14.1 Options 26.15 libdc1394 26.16 openal 26.16.1 Options 26.16.2 Examples 26.17 oss 26.17.1 Options 26.18 pulse 26.18.1 Options 26.18.2 Examples 26.19 sndio 26.19.1 Options 26.20 video4linux2, v4l2 26.20.1 Options 26.21 vfwcap 26.21.1 Options 26.22 x11grab 26.22.1 Options 27 Output Devices 27.1 alsa 27.1.1 Examples 27.2 caca 27.2.1 Options 27.2.2 Examples 27.3 decklink 27.3.1 Options 27.3.2 Examples 27.4 libndi_newtek 27.4.1 Options 27.4.2 Examples 27.5 fbdev 27.5.1 Options 27.5.2 Examples 27.6 opengl 27.6.1 Options 27.6.2 Examples 27.7 oss 27.8 pulse 27.8.1 Options 27.8.2 Examples 27.9 sdl 27.9.1 Options 27.9.2 Interactive commands 27.9.3 Examples 27.10 sndio 27.11 xv 27.11.1 Options 27.11.2 Examples 28 Resampler Options 29 Scaler Options 30 Filtering Introduction 31 graph2dot 32 Filtergraph description 32.1 Filtergraph syntax 32.2 Notes on filtergraph escaping 33 Timeline editing 34 Options for filters with several inputs (framesync) 35 Audio Filters 35.1 acompressor 35.2 acontrast 35.3 acopy 35.4 acrossfade 35.4.1 Examples 35.5 acrusher 35.6 adelay 35.6.1 Examples 35.7 aecho 35.7.1 Examples 35.8 aemphasis 35.9 aeval 35.9.1 Examples 35.10 afade 35.10.1 Examples 35.11 afftfilt 35.11.1 Examples 35.12 afir 35.12.1 Examples 35.13 aformat 35.14 agate 35.15 aiir 35.15.1 Examples 35.16 alimiter 35.17 allpass 35.17.1 Commands 35.18 aloop 35.19 amerge 35.19.1 Examples 35.20 amix 35.21 anequalizer 35.21.1 Examples 35.21.2 Commands 35.22 anull 35.23 apad 35.23.1 Examples 35.24 aphaser 35.25 apulsator 35.26 aresample 35.26.1 Examples 35.27 areverse 35.27.1 Examples 35.28 asetnsamples 35.29 asetrate 35.30 ashowinfo 35.31 astats 35.32 atempo 35.32.1 Examples 35.33 atrim 35.34 bandpass 35.34.1 Commands 35.35 bandreject 35.35.1 Commands 35.36 bass 35.36.1 Commands 35.37 biquad 35.37.1 Commands 35.38 bs2b 35.39 channelmap 35.39.1 Examples 35.40 channelsplit 35.40.1 Examples 35.41 chorus 35.41.1 Examples 35.42 compand 35.42.1 Examples 35.43 compensationdelay 35.44 crossfeed 35.45 crystalizer 35.46 dcshift 35.47 drmeter 35.48 dynaudnorm 35.49 earwax 35.50 equalizer 35.50.1 Examples 35.50.2 Commands 35.51 extrastereo 35.52 firequalizer 35.52.1 Examples 35.53 flanger 35.54 haas 35.55 hdcd 35.56 headphone 35.56.1 Examples 35.57 highpass 35.57.1 Commands 35.58 join 35.59 ladspa 35.59.1 Examples 35.59.2 Commands 35.60 loudnorm 35.61 lowpass 35.61.1 Examples 35.61.2 Commands 35.62 lv2 35.62.1 Examples 35.63 mcompand 35.64 pan 35.64.1 Mixing examples 35.64.2 Remapping examples 35.65 replaygain 35.66 resample 35.67 rubberband 35.68 sidechaincompress 35.68.1 Examples 35.69 sidechaingate 35.70 silencedetect 35.70.1 Examples 35.71 silenceremove 35.71.1 Examples 35.72 sofalizer 35.72.1 Examples 35.73 stereotools 35.73.1 Examples 35.74 stereowiden 35.75 superequalizer 35.76 surround 35.77 treble 35.77.1 Commands 35.78 tremolo 35.79 vibrato 35.80 volume 35.80.1 Commands 35.80.2 Examples 35.81 volumedetect 35.81.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 hilbert 36.7 sine 36.7.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 convolve 38.24 copy 38.25 coreimage 38.25.1 Examples 38.26 crop 38.26.1 Examples 38.26.2 Commands 38.27 cropdetect 38.28 curves 38.28.1 Examples