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 6 Tips 7 Examples 7.1 Preset files 7.2 Video and Audio grabbing 7.3 X11 grabbing 7.4 Video and Audio file format conversion 8 Syntax 8.1 Quoting and escaping 8.1.1 Examples 8.2 Date 8.3 Time duration 8.3.1 Examples 8.4 Video size 8.5 Video rate 8.6 Ratio 8.7 Color 8.8 Channel Layout 9 Expression Evaluation 10 OpenCL Options 11 Codec Options 12 Decoders 13 Video Decoders 13.1 rawvideo 13.1.1 Options 14 Audio Decoders 14.1 ac3 14.1.1 AC-3 Decoder Options 14.2 ffwavesynth 14.3 libcelt 14.4 libgsm 14.5 libilbc 14.5.1 Options 14.6 libopencore-amrnb 14.7 libopencore-amrwb 14.8 libopus 15 Subtitles Decoders 15.1 dvdsub 15.1.1 Options 15.2 libzvbi-teletext 15.2.1 Options 16 Encoders 17 Audio Encoders 17.1 aac 17.1.1 Options 17.2 ac3 and ac3_fixed 17.2.1 AC-3 Metadata 17.2.1.1 Metadata Control Options 17.2.1.2 Downmix Levels 17.2.1.3 Audio Production Information 17.2.1.4 Other Metadata Options 17.2.2 Extended Bitstream Information 17.2.2.1 Extended Bitstream Information - Part 1 17.2.2.2 Extended Bitstream Information - Part 2 17.2.3 Other AC-3 Encoding Options 17.2.4 Floating-Point-Only AC-3 Encoding Options 17.3 libfaac 17.3.1 Options 17.3.2 Examples 17.4 libfdk_aac 17.4.1 Options 17.4.2 Examples 17.5 libmp3lame 17.5.1 Options 17.6 libopencore-amrnb 17.6.1 Options 17.7 libshine 17.7.1 Options 17.8 libtwolame 17.8.1 Options 17.9 libvo-aacenc 17.9.1 Options 17.10 libvo-amrwbenc 17.10.1 Options 17.11 libopus 17.11.1 Option Mapping 17.12 libvorbis 17.12.1 Options 17.13 libwavpack 17.13.1 Options 17.14 wavpack 17.14.1 Options 17.14.1.1 Shared options 17.14.1.2 Private options 18 Video Encoders 18.1 libtheora 18.1.1 Options 18.1.2 Examples 18.2 libvpx 18.2.1 Options 18.3 libwebp 18.3.1 Pixel Format 18.3.2 Options 18.4 libx264, libx264rgb 18.4.1 Supported Pixel Formats 18.4.2 Options 18.5 libx265 18.5.1 Options 18.6 libxvid 18.6.1 Options 18.7 mpeg2 18.7.1 Options 18.8 png 18.8.1 Private options 18.9 ProRes 18.9.1 Private Options for prores-ks 18.9.2 Speed considerations 19 Subtitles Encoders 19.1 dvdsub 19.1.1 Options 20 Bitstream Filters 20.1 aac_adtstoasc 20.2 chomp 20.3 dump_extra 20.4 h264_mp4toannexb 20.5 imxdump 20.6 mjpeg2jpeg 20.7 mjpega_dump_header 20.8 movsub 20.9 mp3_header_decompress 20.10 noise 20.11 remove_extra 21 Format Options 21.1 Format stream specifiers 22 Demuxers 22.1 applehttp 22.2 apng 22.3 asf 22.4 concat 22.4.1 Syntax 22.4.2 Options 22.5 flv 22.6 libgme 22.7 libquvi 22.8 gif 22.9 image2 22.9.1 Examples 22.10 mpegts 22.11 rawvideo 22.12 sbg 22.13 tedcaptions 23 Muxers 23.1 aiff 23.1.1 Options 23.2 crc 23.2.1 Examples 23.3 framecrc 23.3.1 Examples 23.4 framemd5 23.4.1 Examples 23.5 gif 23.6 hls 23.6.1 Options 23.7 ico 23.8 image2 23.8.1 Examples 23.8.2 Options 23.9 matroska 23.9.1 Metadata 23.9.2 Options 23.10 md5 23.11 mov, mp4, ismv 23.11.1 Options 23.11.2 Example 23.12 mp3 23.13 mpegts 23.13.1 Options 23.13.2 Example 23.14 null 23.15 nut 23.16 ogg 23.17 segment, stream_segment, ssegment 23.17.1 Options 23.17.2 Examples 23.18 smoothstreaming 23.19 tee 23.19.1 Examples 23.20 webm_dash_manifest 23.20.1 Options 23.20.2 Example 24 Metadata 25 Protocols 25.1 bluray 25.2 cache 25.3 concat 25.4 crypto 25.5 data 25.6 file 25.7 ftp 25.8 gopher 25.9 hls 25.10 http 25.10.1 HTTP Cookies 25.11 Icecast 25.12 mmst 25.13 mmsh 25.14 md5 25.15 pipe 25.16 rtmp 25.17 rtmpe 25.18 rtmps 25.19 rtmpt 25.20 rtmpte 25.21 rtmpts 25.22 libsmbclient 25.23 libssh 25.24 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte 25.25 rtp 25.26 rtsp 25.26.1 Examples 25.27 sap 25.27.1 Muxer 25.27.2 Demuxer 25.28 sctp 25.29 srtp 25.30 subfile 25.31 tcp 25.32 tls 25.33 udp 25.33.1 Examples 25.34 unix 26 Device Options 27 Input Devices 27.1 alsa 27.2 avfoundation 27.2.1 Options 27.2.2 Examples 27.3 bktr 27.4 dshow 27.4.1 Options 27.4.2 Examples 27.5 dv1394 27.6 fbdev 27.7 gdigrab 27.7.1 Options 27.8 iec61883 27.8.1 Options 27.8.2 Examples 27.9 jack 27.10 lavfi 27.10.1 Options 27.10.2 Examples 27.11 libcdio 27.12 libdc1394 27.13 openal 27.13.1 Options 27.13.2 Examples 27.14 oss 27.15 pulse 27.15.1 Options 27.15.2 Examples 27.16 qtkit 27.17 sndio 27.18 video4linux2, v4l2 27.18.1 Options 27.19 vfwcap 27.20 x11grab 27.20.1 Options 27.21 decklink 27.21.1 Options 27.21.2 Examples 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 adelay 35.1.1 Examples 35.2 aecho 35.2.1 Examples 35.3 aeval 35.3.1 Examples 35.4 afade 35.4.1 Examples 35.5 aformat 35.6 allpass 35.7 amerge 35.7.1 Examples 35.8 amix 35.9 anull 35.10 apad 35.10.1 Examples 35.11 aphaser 35.12 aresample 35.12.1 Examples 35.13 asetnsamples 35.14 asetrate 35.15 ashowinfo 35.16 astats 35.17 astreamsync 35.17.1 Examples 35.18 asyncts 35.19 atempo 35.19.1 Examples 35.20 atrim 35.21 bandpass 35.22 bandreject 35.23 bass 35.24 biquad 35.25 bs2b 35.26 channelmap 35.27 channelsplit 35.28 compand 35.28.1 Examples 35.29 earwax 35.30 equalizer 35.30.1 Examples 35.31 flanger 35.32 highpass 35.33 join 35.34 ladspa 35.34.1 Examples 35.34.2 Commands 35.35 lowpass 35.36 pan 35.36.1 Mixing examples 35.36.2 Remapping examples 35.37 replaygain 35.38 resample 35.39 silencedetect 35.39.1 Examples 35.40 silenceremove 35.40.1 Examples 35.41 treble 35.42 volume 35.42.1 Commands 35.42.2 Examples 35.43 volumedetect 35.43.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 sine 36.5.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 bbox 38.5 blackdetect 38.6 blackframe 38.7 blend 38.7.1 Examples 38.8 boxblur 38.8.1 Examples 38.9 codecview 38.9.1 Examples 38.10 colorbalance 38.10.1 Examples 38.11 colorchannelmixer 38.11.1 Examples 38.12 colormatrix 38.13 copy 38.14 crop 38.14.1 Examples 38.15 cropdetect 38.16 curves 38.16.1 Examples 38.17 dctdnoiz 38.17.1 Examples 38.18 decimate 38.19 dejudder 38.20 delogo 38.20.1 Examples 38.21 deshake 38.22 drawbox 38.22.1 Examples 38.23 drawgrid 38.23.1 Examples 38.24 drawtext 38.24.1 Syntax 38.24.2 Text expansion 38.24.3 Examples 38.25 edgedetect 38.25.1 Examples 38.26 extractplanes 38.26.1 Examples 38.27 elbg 38.28 fade 38.28.1 Examples 38.29 field 38.30 fieldmatch 38.30.1 p/c/n/u/b meaning 38.30.1.1 p/c/n 38.30.1.2 u/b 38.30.2 Examples 38.31 fieldorder 38.32 fifo 38.33 format 38.33.1 Examples 38.34 fps 38.34.1 Examples 38.35 framepack 38.36 framestep 38.37 frei0r 38.37.1 Examples 38.38 geq 38.38.1 Examples 38.39 gradfun 38.39.1 Examples 38.40 haldclut 38.40.1 Workflow examples 38.40.1.1 Hald CLUT video stream 38.40.1.2 Hald CLUT with preview 38.41 hflip 38.42 histeq 38.43 histogram 38.43.1 Examples 38.44 hqdn3d 38.45 hqx 38.46 hue 38.46.1 Examples 38.46.2 Commands 38.47 idet 38.48 il 38.49 interlace 38.50 kerndeint 38.50.1 Examples 38.51 lenscorrection 38.51.1 Options 38.52 lut3d 38.53 lut, lutrgb, lutyuv 38.53.1 Examples 38.54 mergeplanes 38.54.1 Examples 38.55 mcdeint 38.56 mp 38.56.1 Examples 38.57 mpdecimate 38.58 negate 38.59 noformat 38.59.1 Examples 38.60 noise 38.60.1 Examples 38.61 null 38.62 ocv 38.62.1 dilate 38.62.2 erode 38.62.3 smooth 38.63 overlay 38.63.1 Commands 38.63.2 Examples 38.64 owdenoise 38.65 pad 38.65.1 Examples 38.66 perspective 38.67 phase 38.68 pixdesctest 38.69 pp 38.69.1 Examples 38.70 psnr 38.71 pullup 38.72 removelogo 38.73 rotate 38.73.1 Examples 38.73.2 Commands 38.74 sab 38.75 scale 38.75.1 Options 38.75.2 Examples 38.76 separatefields 38.77 setdar, setsar 38.77.1 Examples 38.78 setfield 38.79 showinfo 38.80 shuffleplanes 38.81 signalstats 38.81.1 Examples 38.82 smartblur 38.83 stereo3d 38.83.1 Examples 38.84 spp 38.85 subtitles 38.86 super2xsai 38.87 swapuv 38.88 telecine 38.89 thumbnail 38.89.1 Examples 38.90 tile 38.90.1 Examples 38.91 tinterlace 38.92 transpose 38.93 trim 38.94 unsharp 38.94.1 Examples 38.95 vidstabdetect 38.95.1 Examples 38.96 vidstabtransform 38.96.1 Options 38.96.2 Examples 38.97 vflip 38.98 vignette 38.98.1 Expressions 38.98.2 Examples 38.99 w3fdif 38.100 xbr 38.101 yadif 38.102 zoompan 38.102.1 Examples 39 Video Sources 39.1 buffer 39.2 cellauto 39.2.1 Examples 39.3 mandelbrot 39.4 mptestsrc 39.5 frei0r_src 39.6 life 39.6.1 Examples 39.7 color, haldclutsrc, nullsrc, rgbtestsrc, smptebars, smptehdbars, testsrc 39.7.1 Commands 40 Video Sinks 40.1 buffersink 40.2 nullsink 41 Multimedia Filters 41.1 avectorscope 41.1.1 Examples 41.2 concat 41.2.1 Examples 41.3 ebur128 41.3.1 Examples 41.4 interleave, ainterleave 41.4.1 Examples 41.5 perms, aperms 41.6 select, aselect 41.6.1 Examples 41.7 sendcmd, asendcmd 41.7.1 Commands syntax 41.7.2 Examples 41.8 setpts, asetpts 41.8.1 Examples 41.9 settb, asettb 41.9.1 Examples 41.10 showcqt 41.10.1 Examples 41.11 showspectrum 41.11.1 Examples 41.12 showwaves 41.12.1 Examples 41.13 split, asplit 41.13.1 Examples 41.14 zmq, azmq 41.14.1 Examples 42 Multimedia Sources 42.1 amovie 42.2 movie 42.2.1 Examples 43 See Also 44 Authors 1 Synopsis ffmpeg [global_options] {[input_file_options] -i input_file} ..