Ffmpeg Documentation
Total Page:16
File Type:pdf, Size:1020Kb
2/9/2020 ffmpeg Documentation 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 4.1 Description 4.1.1 Automatic stream selection 4.1.2 Manual stream selection 4.1.3 Complex filtergraphs 4.1.4 Stream handling 4.2 Examples 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 https://www.ffmpeg.org/ffmpeg-all.html 1/706 2/9/2020 ffmpeg Documentation 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 11.2 libdav1d 11.2.1 Options 11.3 libdavs2 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 libaribb24 13.1.1 libaribb24 Decoder Options 13.2 dvbsub 13.2.1 Options 13.3 dvdsub 13.3.1 Options 13.4 libzvbi-teletext 13.4.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 https://www.ffmpeg.org/ffmpeg-all.html 2/706 2/9/2020 ffmpeg Documentation 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 librav1e 16.3.1 Options 16.4 libaom-av1 16.4.1 Options 16.5 libkvazaar 16.5.1 Options 16.6 libopenh264 16.6.1 Options 16.7 libtheora 16.7.1 Options 16.7.2 Examples 16.8 libvpx 16.8.1 Options 16.9 libwebp https://www.ffmpeg.org/ffmpeg-all.html 3/706 2/9/2020 ffmpeg Documentation 16.9.1 Pixel Format 16.9.2 Options 16.10 libx264, libx264rgb 16.10.1 Supported Pixel Formats 16.10.2 Options 16.11 libx265 16.11.1 Options 16.12 libxavs2 16.12.1 Options 16.13 libxvid 16.13.1 Options 16.14 mpeg2 16.14.1 Options 16.15 png 16.15.1 Private options 16.16 ProRes 16.16.1 Private Options for prores-ks 16.16.2 Speed considerations 16.17 QSV encoders 16.18 snow 16.18.1 Options 16.19 VAAPI encoders 16.20 vc2 16.20.1 Options 17 Subtitles Encoders 17.1 dvdsub 17.1.1 Options 18 Bitstream Filters 18.1 aac_adtstoasc 18.2 av1_metadata 18.3 chomp 18.4 dca_core 18.5 dump_extra 18.6 eac3_core 18.7 extract_extradata 18.8 filter_units 18.9 hapqa_extract 18.10 h264_metadata 18.11 h264_mp4toannexb 18.12 h264_redundant_pps 18.13 hevc_metadata 18.14 hevc_mp4toannexb 18.15 imxdump 18.16 mjpeg2jpeg 18.17 mjpegadump 18.18 mov2textsub 18.19 mp3decomp 18.20 mpeg2_metadata 18.21 mpeg4_unpack_bframes https://www.ffmpeg.org/ffmpeg-all.html 4/706 2/9/2020 ffmpeg Documentation 18.22 noise 18.23 null 18.24 prores_metadata 18.25 remove_extra 18.26 text2movsub 18.27 trace_headers 18.28 truehd_core 18.29 vp9_metadata 18.30 vp9_superframe 18.31 vp9_superframe_split 18.32 vp9_raw_reorder 19 Format Options 19.1 Format stream specifiers 20 Demuxers 20.1 aa 20.2 apng 20.3 asf 20.4 concat 20.4.1 Syntax 20.4.2 Options 20.4.3 Examples 20.5 dash 20.6 flv, live_flv 20.7 gif 20.8 hls 20.9 image2 20.9.1 Examples 20.10 libgme 20.11 libmodplug 20.12 libopenmpt 20.13 mov/mp4/3gp/QuickTime 20.14 mpegts 20.15 mpjpeg 20.16 rawvideo 20.17 sbg 20.18 tedcaptions 20.19 vapoursynth 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 https://www.ffmpeg.org/ffmpeg-all.html 5/706 2/9/2020 ffmpeg Documentation 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 Options 21.15.2 Examples 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, mxf_opatom 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 streamhash 21.27.1 Examples 21.28 fifo 21.28.1 Examples 21.29 tee 21.29.1 Options 21.29.2 Examples 21.30 webm_dash_manifest 21.30.1 Options 21.30.2 Example 21.31 webm_chunk https://www.ffmpeg.org/ffmpeg-all.html 6/706 2/9/2020 ffmpeg Documentation 21.31.1 Options 21.31.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 24.39 zmq https://www.ffmpeg.org/ffmpeg-all.html 7/706 2/9/2020 ffmpeg Documentation 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 dshow 26.6.1 Options 26.6.2 Examples 26.7 fbdev 26.7.1 Options 26.8 gdigrab 26.8.1 Options 26.9 iec61883 26.9.1 Options 26.9.2 Examples 26.10 jack 26.10.1 Options 26.11 kmsgrab 26.11.1 Options 26.11.2 Examples 26.12 lavfi 26.12.1 Options 26.12.2 Examples 26.13 libcdio 26.13.1 Options 26.14 libdc1394 26.14.1 Options 26.15 openal 26.15.1 Options 26.15.2 Examples 26.16 oss 26.16.1 Options 26.17 pulse 26.17.1 Options 26.17.2 Examples 26.18 sndio 26.18.1 Options 26.19 video4linux2, v4l2 26.19.1 Options 26.20 vfwcap https://www.ffmpeg.org/ffmpeg-all.html 8/706 2/9/2020 ffmpeg Documentation 26.20.1 Options 26.21 x11grab 26.21.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 fbdev 27.4.1 Options 27.4.2 Examples 27.5 opengl 27.5.1 Options 27.5.2 Examples 27.6 oss 27.7 pulse 27.7.1 Options 27.7.2 Examples 27.8 sdl 27.8.1 Options 27.8.2 Interactive commands 27.8.3 Examples 27.9 sndio 27.10 v4l2 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 Changing options at runtime with a command 35 Options for filters with several inputs (framesync) 36 Audio Filters 36.1 acompressor 36.1.1 Commands 36.2 acontrast 36.3 acopy 36.4 acrossfade 36.4.1 Examples 36.5 acrossover https://www.ffmpeg.org/ffmpeg-all.html 9/706 2/9/2020 ffmpeg Documentation 36.6 acrusher 36.7 acue 36.8 adeclick 36.9 adeclip 36.10 adelay 36.10.1 Examples 36.11 aderivative, aintegral 36.12 aecho 36.12.1 Examples 36.13 aemphasis 36.14 aeval 36.14.1 Examples 36.15 afade 36.15.1 Examples 36.16 afftdn 36.16.1 Commands 36.17 afftfilt 36.17.1 Examples 36.18 afir 36.18.1 Examples 36.19 aformat 36.20 agate 36.21 aiir 36.21.1 Examples 36.22 alimiter 36.23 allpass 36.23.1 Commands 36.24 aloop 36.25 amerge 36.25.1 Examples 36.26 amix 36.27 amultiply 36.28 anequalizer 36.28.1 Examples 36.28.2 Commands 36.29 anlmdn 36.29.1 Commands 36.30 anlms 36.30.1 Examples 36.30.2 Commands 36.31 anull 36.32 apad 36.32.1 Examples 36.33 aphaser 36.34 apulsator 36.35 aresample 36.35.1 Examples 36.36 areverse 36.36.1 Examples https://www.ffmpeg.org/ffmpeg-all.html 10/706 2/9/2020 ffmpeg Documentation 36.37 arnndn 36.38 asetnsamples 36.39 asetrate 36.40 ashowinfo 36.41 asoftclip 36.41.1 Commands 36.42 asr 36.43 astats 36.44 atempo 36.44.1 Examples 36.44.2 Commands 36.45 atrim 36.46 axcorrelate 36.46.1 Examples 36.47 bandpass 36.47.1 Commands 36.48 bandreject 36.48.1 Commands 36.49 bass, lowshelf 36.49.1 Commands 36.50 biquad 36.50.1 Commands 36.51 bs2b 36.52 channelmap 36.52.1 Examples 36.53 channelsplit 36.53.1 Examples 36.54 chorus 36.54.1 Examples 36.55 compand 36.55.1 Examples 36.56 compensationdelay 36.57 crossfeed 36.58 crystalizer 36.58.1 Commands 36.59 dcshift 36.60 deesser 36.61 drmeter 36.62 dynaudnorm 36.62.1 Commands 36.63 earwax 36.64 equalizer 36.64.1 Examples 36.64.2 Commands 36.65 extrastereo 36.65.1 Commands 36.66 firequalizer 36.66.1 Examples 36.67 flanger https://www.ffmpeg.org/ffmpeg-all.html 11/706 2/9/2020