FFMPEG-FILTERS(1) FFMPEG-FILTERS(1) (NAME) ffmpeg-filters - FFmpeg (DESCRIPTION) () () libavfilter . (FILTERING INTRODUCTION) FFmpeg libavfilter . libavfilter . (filtergraph) . [main] input --> split ---------------------> overlay --> output | ^ |[tmp] [flip]| +-----> crop --> vflip -------+ crop vflip overlay . : ffmpeg -i INPUT -vf "split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2" OUTPUT . ( ) () . crop,vflip split overlay . . split [main] [tmp] . split [tmp] crop (flip) . overlay split ( [main] ) crop,vflip . : () . (source filters) / (sink filters) / . (GRAPH) graph2dot tools FFmpeg dot . : graph2dot -h graph2dot . dot dot ( graphviz) . : echo | \ tools/graph2dot -o graph.tmp && \ dot -Tpng graph.tmp -o graph.png && \ display graph.png GRAPH_DESCRIPTION . . : ffmpeg -i infile -vf scale=640:360 outfile GRAPH_DESCRIPTION : nullsrc,scale=640:360,nullsink nullsrc format . (FILTERGRAPH SYNTAX) (filtergraph) . () . . . "" (source) "" (sink) . (Filtergraph syntax) -filter/-vf/-af -filter_complex ffmpeg -vf/-af ffplay avfilter_graph_parse_ptr() libavfilter/avfilter.h . (filterchain) . (",") . . (";") . : [in_link_1]...[in_link_N]filter_name@id=arguments[out_link_1]...[out_link_M] filter_name "@id" . "=arguments" . arguments . : o key=value ':' . o value ':' . . "fade" : type start_frame nb_frames. in:0:30 in type 0 start_frame 30 nb_frames . o ':' value key=value . value key=value . key=value . ( "format" ) | . ' \ (escape) ( []=;,) . ffmpeg . '/' . : ffmpeg -i -vf drawtext=/text=/tmp/some_text /tmp/some_text . API "avfilter_graph_segment_*()" / . (link labels) . . in_link_1 ... in_link_N out_link_1 ... out_link_M . . . : nullsrc, split[L1], [L2]overlay, nullsink split overlay . split "L1" overlay "L2" split overlay . "in" "out" . . . ( ) (tokens) . . : testsrc,split[L1],hflip[L2];[L1][L2] hstack : testsrc, split [L1], hflip [L2]; [L1][L2] hstack Libavfilter scale . swscale "sws_flags=flags;" . BNF : ::= sequence of alphanumeric characters and '_' ::= ["@"] ::= "[" "]" ::= [] ::= sequence of chars (possibly quoted) ::= [] ["=" ] [] ::= [,] ::= [sws_flags=;] [;] (Notes on filtergraph escaping) (escaping) . " " ffmpeg-utils(1) . ":" "\'" . "\'" "[],;" . . text drawtext : this is a 'string': may contain one, or more, special characters "'" ":" : text=this is a \'string\'\: may contain one, or more, special characters . : drawtext=text=this is a \\\'string\\\'\\: may contain one\, or more\, special characters ( "\'" "," ). . "\" "\" : -vf "drawtext=text=this is a \\\\\\'string\\\\\\'\\\\: may contain one\\, or more\\, special characters" . drawtext textfile text . (TIMELINE EDITING) enable . . . : t NAN n 0 pos NAN w h enable . enable . (smartblur) 10 3 (curves) 3: smartblur = enable='between(t,10,3*60)', curves = enable='gte(t,3)' : preset=cross_process "ffmpeg -filters" . (CHANGING OPTIONS AT RUNTIME WITH A COMMAND) . ffmpeg -h filter=< > 'T' . . (OPTIONS FOR FILTERS WITH SEVERAL INPUTS) . . eof_action (EOF) : repeat (). endall . pass . shortest 1 . 0 . repeatlast 1 . 0 . 1 . ts_sync_mode : default . nearest . (AUDIO FILTERS) FFmpeg "--disable-filters" . configure . . aap (Affine Projection) . . . . order . projection (projection). mu mu . delta . out_mode . : i . d . o . n . e . o . precision . auto . float (single-floating point) . double (double-floating point) . acompressor . . " " "" . "" " " ( ). . . "threshold" "ratio" . -12dB -6dB 2:1 -9dB . . "Attack" "Release" . "attack" "release" . (attack) . "makeup" . 6dB makeup . "knee" . : level_in (gain) . 1 . 0.015625 64 . mode . "upward" ( ) "downward" ( ) . "downward" . threshold . 0.125 . 0.00097563 1 . ratio . 1:2 4dB 2dB . 2 . 1 20 . attack . 20 . 0.01 2000 . release . 250 . 0.01 9000 . makeup . 1 . 1 64 . knee . 2.82843 . 1 8 . link ("average") ("maximum") . "average" . detection "peak" RMS "rms". "rms" . mix . 1 . 0 1 . (Commands) . acontrast / . : contrast . 33 . 0 100 . acopy . . acrossfade (cross fade) . . : inputs, n . concat. 2 . nb_samples, ns . . 44100 . duration, d . ffmpeg-utils(1) . nb_samples . nb_samples . overlap, o . . curve1 . curve2 . afade . o : ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:c1=exp:c2=exp output.flac o : ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac : ffmpeg -i first.flac -i second.flac -i third.flac -filter_complex acrossfade=n=3 output.flac acrossover . . . : split . . order . (roll-off) . : 2nd 12 dB . 4th 24 dB . 6th 36 dB . 8th 48 dB . 10th 60 dB . 12th 72 dB . 14th 84 dB . 16th 96 dB . 18th 108 dB . 20th 120 dB . 4th . level . 0 1 . 1 . gains . 1 . precision . auto . float . double . "auto" . o ( ) 1500 Hz : ffmpeg -i in.flac -filter_complex 'acrossover=split=1500[LOW][HIGH]' -map '[LOW]' low.wav -map '[HIGH]' high.wav o : ffmpeg -i in.flac -filter_complex 'acrossover=split=1500:order=8th[LOW][HIGH]' -map '[LOW]' low.wav -map '[HIGH]' high.wav o ( 1500 8000): ffmpeg -i in.flac -filter_complex 'acrossover=split=1500 8000:order=8th[LOW][MID][HIGH]' -map '[LOW]' low.wav -map '[MID]' mid.wav -map '[HIGH]' high.wav acrusher (bit resolution). (bit crusher) . . . "" . . D/C . (Anti-Aliasing) "" . . . "" (gate) . . . : level_in . level_out . bits . mix (mix). mode : "lin" : "log" . dc (DC). aa (anti-aliasing). samples . lfo (LFO). . lforange LFO. lforate LFO. (Commands) . acue . cue . adeclick (impulsive noise / ) . (autoregressive) . window, w . 10 100 . 55 . . overlap, o . 50 95 . 75 . . arorder, a . 0 25 . 2 . . threshold, t . 1 100 . 2 . . . burst, b (burst fusion) . 0 10 . 2 . . method, m . : add, a (overlap-add). . save, s (overlap-save). . "a" . adeclip (clipped) . . window, w . 10 100 . 55 . . overlap, o . 50 95 . 75 . arorder, a . 0 25 . 8 . . threshold, t . 1 100 . 10 . . hsize, n . 100 9999 . 1000 . . method, m . : add, a overlap-add. . save, s overlap-save. . "a" . adecorrelate (decorrelation) . : stages . 1 16 . 6 . seed () . adelay . . : delays '|' . . . 'S' . 's' . all . . "delays" . o 1.5 0.5 ( ): adelay=1500|0|500 o 500 700 ( ): adelay=0|500S|700S o : adelay=delays=64S:all=1 adenorm (denormals) . . . level . -351 . -451 -90 . type . dc DC. ac AC. square . pulse . "dc" . (Commands) . aderivative, aintegral / . . adrc . . transfer (transfer expression). : ch sn nb_channels t sr p dB f Hz "p" . attack (attack) . 50 . 1 1000 . release (release) . 100 . 5 2000 . channels ("all") . (Commands) . o -50 dB 1:6: adrc=transfer='if(gt(p,-50),-50+(p-(-50))/6,p)':attack=50:release=100 o 1:2 (front center): adrc=transfer='if(gt(p,-50),-50+(p-(-50))/2,p)':attack=50:release=100:channels=FC o -85 dB : adrc=transfer='if(lte(p,-85),p-800,p)':attack=1:release=5 o (expansion) -10 dB 1:2: adrc=transfer='if(lt(p,-10),-10+(p-(-10))*2,p)':attack=50:release=100 o (limiter) -60 dB 2 10 : adrc=transfer='min(p,-60)':attack=2:release=10 adynamicequalizer . . threshold . . 0 . 0 100 . dfrequency . 1000 Hz . 2 1000000 Hz . dqfactor () . 1 . 0.001 1000 . tfrequency . 1000 Hz . 2 1000000 Hz . tqfactor . 1 . 0.001 1000 . attack . 20 . 1 2000 . release . 200 . 1 2000 . ratio . 1 . 0 30 . makeup (makeup) . 0 . 0 100 . range / (cut/boost). 50 . 1 200 . mode : listen . cutbelow . cutabove . boostbelow . boostabove . cutbelow . dftype : bandpass lowpass highpass peak bandpass . tftype : bell lowshelf highshelf bell . auto . (disabled) . . : disabled . off . on . adaptive . precision . auto . float . double . (Commands) . adynamicsmooth . . sensitivity . 2 . 0 1e+06 . basefreq . 22050 . 2 1e+06 . (Commands) . aecho () . ( ) . ("delay") / ("decay") . . . in_gain . 0.6 . out_gain . 0.3 . delays '|' . "delay" "(0 - 90000.0]" . 1000 . decays '|' . "decay" "(0 - 1.0]" . 0.5 . o : aecho=0.8:0.88:60:0.4 o () : aecho=0.8:0.88:6:0.4 o : aecho=0.8:0.9:1000:0.3 o : aecho=0.8:0.9:1000|1800:0.3|0.25 aemphasis (audio emphasis) (LP) CD . . . : level_in . level_out . mode . "reproduction" () "production" () . "reproduction" . type . . : col Columbia. emi EMI. bsi BSI (78RPM). riaa RIAA. cd (CD). 50fm 50s (FM). 75fm 75s (FM). 50kf 50s (FM-KF). 75kf 75s (FM-KF). (Commands) . aeval . ( ) . : exprs '|' . . channel_layout, c . . same . exprs : ch n 0 s t nb_in_channels nb_out_channels val(CH) CH : . . o : aeval=val(ch)/2:c=same o : aeval=val(0)|-val(1) aexciter (Exciter) . . "" "" . : level_in . 0 64 . 1 . level_out . 0 64 . 1 . amount . 0 64 . 1 . drive . 0.1 10 . 8.5 . blend . -10 10 . 0 . freq . 2000 12000 . 7500 . ceil . 9999 20000 . 10000 . listen . . (Commands) . afade / (fade-in/out) . . type, t "in" fade-in "out" fade-out . "in" . start_sample, ss . 0 . nb_samples, ns . fade-in fade-out . 44100 . start_time, st . 0 . ffmpeg-utils(1) . start_sample . duration, d . ffmpeg-utils(1) . fade-in fade-out . nb_samples . nb_samples . curve . : tri () qsin hsin esin log ipar qua (quadratic) cub ( / cubic) squ () cbr ( ) par exp iqsin ihsin dese (double-exponential seat) desi losi sinc (sine cardinal) isinc quat (quartic) quatr qsin2 hsin2 nofade silence fade-in fade-out. 0.0 . unity fade-out fade-in. 1.0 . (Commands) . o (Fade in) : afade=t=in:ss=0:d=15 o (Fade out) : afade=t=out:st=875:d=25 afftdn FFT. . noise_reduction, nr 0.01 97 . 12 dB . noise_floor, nf (noise floor) -80 -20 . -50 dB . noise_type, nt . : white, w . vinyl, v (). shellac, s ( ). custom, c "bn". . band_noise, bn . ' ' '|' . residual_floor, rf (residual floor) -80 -20 . -38 dB . track_noise, tn . . . track_residual, tr . . output_mode, om . : input, i . output, o . noise, n . output . adaptivity, ad (frequency bin) . 0 . 0 1 . 0.5 . floor_offset, fo . . . -2.0 2.0 . 1.0 . noise_link, nl . : none . min . max . average . min . band_multiplier, bm . 0.2 5 . 1.25 . sample_noise, sn . : start, begin . stop, end . "none" . gain_smooth, gs . . . 0 50 . 0 . (Commands) . o 10dB -40dB: afftdn=nr=10:nf=-40 o 10dB -80dB : afftdn=nr=10:nf=-80:tn=1 o 20dB -40dB 0.4 : asendcmd=0.0 afftdn sn start,asendcmd=0.4 afftdn sn stop,afftdn=nr=20:nf=-40 afftfilt . real (real) '|'. "re" . . imag (imaginary) '|'. "im" . real imag : sr b (bin) nb ch chs pts pts re im real(b, ch) (bin,channel) imag(b, ch) (bin,channel) win_size . 16 131072 . 4096 . win_func . : rect bartlett hann, hanning hamming blackman welch flattop bharris bnuttall bhann sine nuttall lanczos gauss tukey dolph cauchy parzen poisson bohman kaiser "hann" . overlap . 1 . 0.75 . (Examples) o : afftfilt="'real=re * (1-clip((b/nb)*b,0,1))':imag='im * (1-clip((b/nb)*b,0,1))'" o : afftfilt="real='hypot(re,im)*sin(0)':imag='hypot(re,im)*cos(0)':win_size=512:overlap=0.75" o (): afftfilt="real='hypot(re,im)*cos((random(0)*2-1)*2*3.14)':imag='hypot(re,im)*sin((random(1)*2-1)*2*3.14)':win_size=128:overlap=0.8" o : afftfilt="real=re*cos(1)-im*sin(1):imag=re*sin(1)+im*cos(1)" afir (FIR). FIR . () (cross talk) (wavefield synthesis) (auralization) (spatialization) . FIR . . : dry (dry). . wet (wet). . length (IR). 1 IR . gtype . irnorm IR . -1 2 . IR . IR . 1 . irlink IR true IR IR "irnorm" . IR IR . true . irgain IR . 0 1 . irnorm . irfmt IR. "mono" "input" . "input" . maxir . 30 . 0.1 60 . response . channel . size . rate . minp . 8192 . 1 65536 . CPU . maxp . 8192 . 8 65536 . CPU . nbirs . 1 32 . 1 . ir IR 0 "nbirs" . 0 . commands . precision . auto . float (single-floating point). double (double-floating point). auto . irload IR. "init" "access" . IR IR . "init" . (Examples) o IR ffmpeg: ffmpeg -i input.wav -i middle_tunnel_1way_mono.wav -lavfi afir output.wav o l_ir.wav r_ir.wav irnorm : "pan=4C|c0=FL|c1=FL|c2=FR|c3=FR[a];amovie=l_ir.wav[LIR];amovie=r_ir.wav[RIR];[LIR][RIR]amerge[ir];[a][ir]afir=irfmt=input:irnorm=1.2,pan=stereo|FL "irgain" "irnorm": "pan=4C|c0=FL|c1=FL|c2=FR|c3=FR[a];amovie=l_ir.wav[LIR];amovie=r_ir.wav[RIR];[LIR][RIR]amerge[ir];[a][ir]afir=irfmt=input:irgain=-5dB:irnom=-1,pan=stereo|FL . . : sample_fmts, f '|' . sample_rates, r '|' . channel_layouts, cl '|' . Channel Layout ffmpeg-utils(1) . . 8 16 : aformat=sample_fmts=u8|s16:channel_layouts=stereo afreqshift (frequency shift) . : shift . -INT_MAX INT_MAX . 0.0 . level . 0.0 1.0 . 1.0 . order . 1 16 . 8 . (Commands) commands . afwtdn (Wavelets). . sigma 0 1 . 0 . . -45dB. levels . 1 12 . 10 . . wavet . . . : sym2 sym4 rbior68 deb10 sym10 coif5 bl3 percent . 0 100 . 85 . profile () . . adaptive . . samples . 512 65536 . 8192 . softness . 0 10 . 1 . (Commands) commands . agate (gate) . . threshold () ratio . range . . attack release . attack release . . level_in . 1 . 0.015625 64 . mode . "upward" "downward" . "downward" . "upward" . "downward" . range . 0.06125 . 0 1 . 0 . threshold () . 0.125 . 0 1 . ratio . 2 . 1 9000 . attack . 20 . 0.01 9000 . release . 250 . 0.01 9000 . makeup . 1 . 1 64 . knee . 2.828427125 . 1 8 . detection RMS. "rms" . "peak" "rms" . link . "average" . "average" "maximum" . (Commands) commands . aiir (IIR). : zeros, z B/// (reflection). poles, p A/// (ladder). gains, k . dry_gain ( ). wet_gain ( ). format, f . ll - (lattice-ladder function) sf tf zp / Z () pr / Z pd / Z sp / S process, r . d (direct) s (serial) p (parallel) precision, e . dbl () flt i32 i16 normalize, n . DC 0dB . mix . 1 . 0 1 . response IR () () () . . channel IR . . response . size . response . "tf" "sf" . "zp" . "zp" i . '|' . . (Examples) o (notch) : aiir=k=1:z=7.957584807809675810E-1 -2.575128568908332300 3.674839853930788710 -2.57512875289799137 7.957586296317130880E-1:p=1 -2.86950072432325953 3.63022088054647218 -2.28075678147272232 6.361362326477423500E-1:f=tf:r=d o "zp": aiir=k=0.79575848078096756:z=0.80918701+0.58773007i 0.80918701-0.58773007i 0.80884700+0.58784055i 0.80884700-0.58784055i:p=0.63892345+0.59951235i 0.63892345-0.59951235i 0.79582691+0.44198673i 0.79582691-0.44198673i:f=zp:r=s o : aiir=z=1.3057 0 0 0:p=1.3057 2.3892 2.1860 1:f=sf:r=d alimiter . (lookahead) . . (attack) . : level_in . 1 . level_out . 1 . limit . 1 . attack . 5 . release 1.0 . 50 . asc (ASC) 0 . asc_level ASC 0 1 . level . . 0dB . latency attack . (EOF) . aresample 2x 4x . allpass ( ) frequency width. . : frequency, f . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . order, o 1 2 . 2 . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 16 . s32 32 . f32 32 . f64 64 . (Commands) : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" mix, m mix . : "mix" aloop . : loop . -1 . 0 . size . 0 . start . 0 . time . start -1 . amerge . . . : inputs . 2 . layout_mode . legacy . (disjoint) . ambisonics . 2.1 (FL+FR+LF) FC+BL+BR 5.1 : a1, a2, b1, a3, b2, b3 ( a1 b1 ). : a1, a2, b1, b2 4.0 . reset . . . normal . . (Examples) o : amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge o input.mkv: ffmpeg -i input.mkv -filter_complex "[0:1][0:2][0:3][0:4][0:5][0:6] amerge=inputs=6" -c:a pcm_s16le output.mkv amix . ( amerge pan ). amix aresample . : inputs . 2 . duration (end- of-stream). longest . () shortest . first . dropout_transition . 2 . weights . . 1 . normalize . (heavy clipping) . . (Examples) o : ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT o . : ffmpeg -i VOCALS -i MUSIC -filter_complex amix=inputs=2:duration=longest:dropout_transition=0:weights="1 0.25":normalize=0 OUTPUT (Commands) : weights normalize . amultiply . . (element-wise) (amplitude fades) (amplitude modulations) . anequalizer . : params : "cchn f=cf w=w g=g t=f | ..." '|' . chn . . f . . w . g (dB). t : 0 (Butterworth) . 1 (Chebyshev type 1). 2 (Chebyshev type 2). curves anequalizer . size . curves . mgain . curves . . fscale . (linear) (logarithmic) . . colors . '|' . . (Examples) o 10 200 100 : anequalizer=c0 f=200 w=100 g=-10 t=1|c1 f=200 w=100 g=-10 t=1 (Commands) : change . : "fN|f=freq|w=width|g=gain" fN 0 . freq . width . gain . asendcmd : asendcmd=c='4.0 anequalizer change 0|f=200|w=50|g=1',anequalizer=... anlmdn (Non-Local Means). . (patches) p . r . : strength, s . 0.00001 10000 . 0.00001 . patch, p . 1 100 . 2 . research, r . 2 300 . 6 . output, o . : i . o . n . o . smooth, m . 11 . 1 1000 . (Commands) commands . anlmf, anlms (| ) . ( ). . order . mu mu . eps eps . leakage (leakage) . out_mode : i . d . o . n . e . o . precision . auto . float (single-floating point). double (double-floating point). (Examples) o : asplit[a][b],[a]adelay=32S|32S[a],[b][a]anlms=order=128:leakage=0.0005:mu=.5:out_mode=o (Commands) "order" . anull . apad . -shortest ffmpeg . . packet_size . 4096 . pad_len . . whole_len . whole_len . . pad_len . pad_dur . Time duration ffmpeg-utils(1) . . whole_dur . Time duration ffmpeg-utils(1) . . . pad_dur . pad_len whole_len pad_dur whole_dur . ffmpeg 4.4 pad_dur whole_dur . (Examples) o : apad=pad_len=1024 o : apad=whole_len=10000 o ffmpeg shortest : ffmpeg -i VIDEO -i AUDIO -filter_complex "[1:0]apad" -shortest OUTPUT aphaser (phasing) . . (sweeping) . . in_gain . 0.4 . out_gain . 0.74 . delay . 3.0 . decay (decay). 0.4 . speed . 0.5 . type . (triangular) . : triangular, t sinusoidal, s aphaseshift . : shift . -1.0 1.0 . 0.0 . level . 0.0 1.0 . 1.0 . order . 1 16 . 8 . (Commands) commands . apsnr (Audio Peak Signal- to-Noise Ratio). . (dB) . apsyclip (Psychoacoustic clipper) . : level_in . 1 . [0.015625 - 64] . level_out . 1 . [0.015625 - 64] . clip . 0dBFS 1 . diff . . adaptive . 0.5 . 0 1 . iterations . 1 20 . 10 . level . . 0dBFS . (Commands) commands . apulsator (autopanner) (tremolo) . . (LFO) . . 0 LFO . - . 50% ( ) - . 1 . "" . 1 ( 0.5) . : level_in . 1 . [0.015625 - 64] . level_out . 1 . [0.015625 - 64] . mode LFO . : sine triangle square sawup sawdown . sine . amount . LFO . offset_l . 0 . [0 - 1] . offset_r . 0.5 . [0 - 1] . width . 1 . [0 - 2] . timing . : bpm ms hz . hz . bpm (bpm). 120 . [30 - 300] . timing bpm . ms . 500 . [10 - 2000] . timing ms . hz . 2 . [0.01 - 100] . timing hz . aresample (resample) libswresample. . / . [sample_rate:]resampler_options sample_rate resampler_options key=value ":" . "Resampler Options" ffmpeg-resampler(1) . (Examples) o : aresample=44100 o / : aresample=async=1000 areverse . : (trimming) . (Examples) o . atrim=end=5,areverse arls (Recursive Least Squares) . ( ). . order . lambda (forgetting factor). delta . out_mode . : i . d . o . n . e . o . precision . auto . float (single-floating point). double (double-floating point). arnndn (RNN). : model, m . . mix . -1 1 . 1 . . -1 . (Commands) commands . asdr (Audio Signal-to-Distortion Ratio). . (dB) . asetnsamples . (flush) . : nb_out_samples, n . . 1024 . pad, p 1 . 1 . : asetnsamples=n=1234:p=0 asetrate PCM. (pitch) . : sample_rate, r . 44100 . ashowinfo . . / key:value . : n () 0. pts (PTS) 1/sample_rate . pts_time . fmt . chlayout (channel layout). rate . nb_samples ( ) . checksum Adler-32 ( ) . (planar) . plane_checksums Adler-32 . asisdr (Audio Scaled-Invariant Signal-to-Distortion Ratio). . (dB) . asoftclip (soft clipping). (hard- clipping). : type . : hard tanh atan cubic exp alg quintic sin erf threshold . 0dB 1 . output . 0dB 1 . param . oversample (oversampling factor). (Commands) commands . aspectralstats . . : win_size . 2048 . 32 65536 . win_func . : rect bartlett hann, hanning hamming blackman welch flattop bharris bnuttall bhann sine nuttall lanczos gauss tukey dolph cauchy parzen poisson bohman kaiser "hann" . overlap . 0 1 . 0.5 . measure . all . none . : mean variance centroid spread skewness kurtosis entropy flatness crest flux slope decrease rolloff asr (Automatic Speech Recognition). PocketSphinx . FFmpeg "--enable-pocketsphinx" . : rate . 16000 . . hmm (acoustic model). dict . lm . lmctl . lmname . logfn . "lavfi.asr.text" . astats . (overall) . : length RMS . 0.05 ( ) . "[0 - 10]" . metadata . "lavfi.astats.X" "X" 1 "Overall" . . : Bit_depth Crest_factor DC_offset Dynamic_range Entropy Flat_factor Max_difference Max_level Mean_difference Min_difference Min_level Noise_floor Noise_floor_count Number_of_Infs Number_of_NaNs Number_of_denormals Peak_count Abs_Peak_count Peak_level RMS_difference RMS_peak RMS_trough Zero_crossings Zero_crossings_rate "Overall": Bit_depth DC_offset Entropy Flat_factor Max_difference Max_level Mean_difference Min_difference Min_level Noise_floor Noise_floor_count Number_of_Infs Number_of_NaNs Number_of_denormals Number_of_samples Peak_count Abs_Peak_count Peak_level RMS_difference RMS_level RMS_peak RMS_trough "lavfi.astats.1.DC_offset" "lavfi.astats.Overall.Peak_count" . . reset . . measure_perchannel . all . none . measure_overall . all . none . : none all Bit_depth Crest_factor RMS (: ) DC_offset Dynamic_range (dB) Entropy 1.0 Flat_factor ( ) ( Min_level Max_level) Max_difference Max_level Mean_difference Min_difference Min_level Noise_floor dBFS Noise_floor_count ( ) Noise floor Number_of_Infs Number_of_NaNs NaN () Number_of_denormals (subnormal) Number_of_samples Peak_count ( ) Min_level Max_level Abs_Peak_count Min_level Max_level Peak_level dBFS RMS_difference RMS_level RMS dBFS RMS_peak RMS_trough RMS dBFS. Zero crossings Zero crossings rate asubboost . : dry . 0 1 . 1.0 . wet . 0 1 . 1.0 . boost . 1 12 . 2 . decay . 0 1 . 0.0 . feedback . 0 1 . 0.9 . cutoff . 50 900 . 100 . slope . 0.0001 1 . 0.5 . delay . 1 100 . 20 . channels . . (Commands) commands . asubcut . . : cutoff . 2 200 . 20 . order . 3 20 . 10 . level . 0 1 . 1 . (Commands) commands . asupercut (super frequencies). : cutoff . 20000 192000 . 20000 . order . 3 20 . 10 . level . 0 1 . 1 . (Commands) commands . asuperpass . : centerf . 2 999999 . 1000 . order . 4 20 . 4 . qfactor (Q-factor). 0.01 100 . 1 . level . 0 2 . 1 . (Commands) commands . asuperstop . : centerf . 2 999999 . 1000 . order . 4 20 . 4 . qfactor (Q-factor). 0.01 100 . 1 . level . 0 2 . 1 . (Commands) commands . atempo (tempo) . . 1.0 . [0.5, 100.0] . 2 . atempo . (Examples) o 80% : atempo=0.8 o 300% : atempo=3 o 300% atempo: atempo=sqrt(3),atempo=sqrt(3) (Commands) : tempo . : "tempo" atilt (spectral tilt) . . : freq . 10000 . slope . 0 . -1 1 . width . 1000 . 100 10000 . order . level . 0 4 . 1 . (Commands) commands . atrim . : start ( ) . start . end end . start_pts start . end_pts end . duration . start_sample . end_sample . start end duration Time duration ffmpeg-utils(1) . start/end duration _sample . start/end_pts start/end_sample . . asetpts atrim . (greedy) . atrim . . . : o : ffmpeg -i INPUT -af atrim=60:120 o : ffmpeg -i INPUT -af atrim=end_sample=1000 axcorrelate . -1 1 ( ) . 1 . 0 . -1 . : size . 256 . 2 131072 . algo . "slow" "fast" "best" . "best" . . . (Examples) o : ffmpeg -i stereo.wav -af channelsplit,axcorrelate=size=1024:algo=fast correlation.wav bandpass frequency ( 3dB) width. csg ( = Q) 0dB . 6dB (20dB ) . : frequency, f . 3000 . csg (constant skirt gain) 1. 0 . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 16 . s32 32 . f32 32 . f64 64 . block_size, b IIR. ( ) . . (Commands) : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" mix, m mix . : "mix" bandreject frequency ( 3dB) width. 6dB (20dB ) . : frequency, f . 3000 . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 16 . s32 32 . f32 32 . f64 64 . block_size, b IIR. ( ) . . (Commands) : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" mix, m mix . : "mix" bass, lowshelf () - (hi-fi) . (shelving EQ) . : gain, g 0 . -20 ( ) +20 ( ) . (clipping) . frequency, f . 100 . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w . poles, p . 2 . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 16 . s32 32 . f32 32 . f64 64 . block_size, b IIR. ( ) . . (Commands) : frequency, f bass. : "frequency" width_type, t width_type bass. : "width_type" width, w bass. : "width" gain, g bass. : "gain" mix, m mix bass. : "mix" biquad IIR (biquad) . b0 b1 b2 a0 a1 a2 channels c . (Commands) : a0 a1 a2 b0 b1 b2 . : "value" mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 16 . s32 32 . f32 32 . f64 64 . block_size, b IIR. ( ) . . bs2b (binaural) . FFmpeg "--enable-libbs2b" . : profile (crossfeed) . default (fcut=700, feed=50). cmoy (Chu Moy) (fcut=700, feed=60). jmeier (Jan Meier) (fcut=650, feed=95). fcut ( Hz). feed ( Hz). channelmap . : map . '|' "in_channel-out_channel" "in_channel" . in_channel ( FL ) . out_channel . out_channel . . channel_layout . out_channel . . . o MOV 5.1+downmix: ffmpeg -i in.mov -filter 'channelmap=map=DL-FL|DR-FR' out.wav WAV downmix . o WAV 5.1 AAC : ffmpeg -i in.wav -filter 'channelmap=1|2|0|5|3|4:5.1' out.wav channelsplit . : channel_layout . "stereo" . channels "all" . "all" . . o MP3 : ffmpeg -i in.mp3 -filter_complex channelsplit out.mkv . o WAV 5.1 : ffmpeg -i in.wav -filter_complex 'channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]' -map '[FL]' front_left.wav -map '[FR]' front_right.wav -map '[FC]' front_center.wav -map '[LFE]' lfe.wav -map '[SL]' side_left.wav -map '[SR]' side_right.wav o LFE WAV 5.1: ffmpeg -i in.wav -filter_complex 'channelsplit=channel_layout=5.1:channels=LFE[LFE]' -map '[LFE]' lfe.wav chorus (chorus) . . (echo) . . (off-key) . : in_gain . 0.4 . out_gain . 0.4 . delays . 40ms 60ms . decays (decays). speeds . depths . o : chorus=0.7:0.9:55:0.4:0.25:2 o : chorus=0.6:0.9:50|60:0.4|0.32:0.25|0.4:2|1.3 o : chorus=0.5:0.9:50|60|40:0.4|0.32|0.3:0.25|0.4|0.3:2|2.3|1.3 compand (compress) (expand) . : attacks decays . attacks decays . ( ) . 0.3 0.8 . / . points dB . : "x0/y0|x1/y1|x2/y2|...." "x0/y0 x1/y1 x2/y2 ...." . "0/0" ( "0/out-dBn"). "-70/-70|-60/-20|1/0". soft-knee dB . 0.01 . gain dB . . 0 . volume dB . compand . -90 dB . 0 . delay . . / . 0 . o : compand=.3|.3:1|1:-90/-60|-60/-40|-40/-30|-20/-20:6:0:-90:0.2 : compand=0|0:1|1:-90/-900|-70/-70|-30/-9|0/-3:6:0:0:0 o : compand=.1|.1:.2|.2:-900/-900|-50.1/-900|-50/-50:.01:0:-90:.1 o ( ): compand=.1|.1:.1|.1:-45.1/-45.1|-45/-900|0/-900:.01:45:-90:.1 o 2:1 -6dB: compand=points=-80/-80|-6/-6|0/-3.8|20/3.5 o 2:1 -9dB: compand=points=-80/-80|-9/-9|0/-5.3|20/2.9 o 2:1 -12dB: compand=points=-80/-80|-12/-12|0/-6.8|20/1.9 o 2:1 -18dB: compand=points=-80/-80|-18/-18|0/-9.8|20/0.7 o 3:1 -15dB: compand=points=-80/-80|-15/-15|0/-10.8|20/-5.2 o /: compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6 o (): compand=attacks=0:points=-80/-169|-54/-80|-49.5/-64.6|-41.1/-41.1|-25.8/-15|-10.8/-4.5|0/0|20/8.3 o (hard limiter) -6dB: compand=attacks=0:points=-80/-80|-6/-6|20/-6 o -12dB: compand=attacks=0:points=-80/-80|-12/-12|20/-12 o -35 dB: compand=attacks=0:points=-80/-115|-35.1/-80|-35/-35|20/20 o (soft limiter): compand=attacks=0:points=-80/-80|-12.4/-12.4|-6/-8|0/-6.8|20/-2.8 compensationdelay (Compensation Delay Line) . . . () . (antiphase) . . . . / . . : mm . . 0 . cm . . 0 . m . . 0 . dry . (). 0 . wet . (). 1 . temp . . 20 . . crossfeed (crossfeed) . . . . : strength . 0.2 . 0 1 . low-shelf . -6dB . 1 -30db . range (soundstage). 0.5 . 0 1 . low-shelf . 1550 Hz . range 1 2100 Hz . slope low- shelf. 0.5 . 0.01 1 . level_in . 0.9 . level_out . 1 . block_size IIR. ( ) . . . crystalizer / . . : i (: 2.0). -10.0 0 ( ) 10.0 ( ) . . c (clipping). . . dcshift DC . DC ( ) . DC (headroom) . astats DC . shift DC [-1, 1] . . limitergain . 1 ( 0.05 0.02) (clipping) . deesser (de-essing) . i de-essing. 0 1 . 0 . m ( ) (treble) . 0 1 . 0.5 . f de-essing . 0 1 . 0.5 . s . : i . o (ess). e (ess). o . dialoguenhance . (surround 3.0) . (front center) . . : original . 0 1 . 1 . enhance . 0 3 . 1 . voice (voice). 2 32 . 2 . . drmeter (DR). DR 14 . DR 8 13 . 8 . : length . 3 . dynaudnorm (Dynamic Audio Normalizer). (gain) (peak magnitude) ( 0 dBFS) . <<>> * * . <<>> (clipping) <<>> . : <<>> . ** << >> . ** . framelen, f . 10 8000 . 500 . . . . <<>> . . 500 . . gausssize, g . 3 301 . 31 . " " . . . 31 15 15 . . . <<>> . . peak, p . . . . 0.95 . . maxgain, m . 1.0 100.0. 10.0 . () (clipping) . . () . <<>> . 10.0 . . . <<>> ( ). <<>> . . targetrms, r RMS . 0.0 1.0. 0.0 - . <<>> (peak) . () . . RMS . RMS . RMS << >> . RMS << >> . RMS RMS . . coupling, n ( ) . . . <<>> . <<>> () . . . . correctdc, c DC ( DC). . ( ) . -1.0 1.0 . << >> . 0.0 . 0.0 DC DC . DC DC . DC << DC>> 0.0 . <<>> DC . altboundary, b . . . . <<>> . . . <<>> . . 1.0 << >> (fade in) << >> (fade out) . compress, s . 0.0 30.0. 0.0 . <<>> . . <<>> . ( ) . ( ) (soft knee) . . . . . 3.0 . threshold, t . . . . 0 . . channels, h . overlap, o . 0 () . >0 <1 framelen framelen . curve, v . . : ch sn nb_channels t sr p . earwax . (cues) 44.1kHz ( CD ) ( ) ( ) . SoX. equalizer (two-pole peaking EQ). ( ) . . : frequency, f Hz. width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. gain, g dB. (clipping) . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 . s32 . f32 . f64 . block_size, b IIR. ( ) . . o 10 dB 1000 Hz 200 Hz: equalizer=f=1000:t=h:width=200:g=-10 o 2 dB 1000 Hz Q 1 5 dB 100 Hz Q 2: equalizer=f=1000:t=q:w=1:g=2,equalizer=f=100:t=q:w=2:g=-5 : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" gain, g . : "gain" mix, m . : "mix" extrastereo <<>> (live) . : m (: 2.5). 0.0 ( ) 1.0 -1.0 . c (clipping). . . firequalizer FIR . : gain ( dB). : f sr ch 0 chid libavutil/channel_layout.h chs chlayout (channel_layout) libavutil/channel_layout.h : gain_interpolate(f) f gain_entry cubic_interpolate(f) gain_interpolate . gain_interpolate(f) . gain_entry gain_interpolate. : entry(f, g) f g . delay . . 0.01 . accuracy Hz. . 5 . wfunc . : rectangular hann (Hann) () hamming (Hamming) blackman (Blackman) nuttall3 mnuttall3 nuttall bnuttall (-) bharris - tukey (Tukey) fixed . . . multi . . zero_phase . . scale . : linlin linlog ( dB) () loglin ( 20 Hz 0 ) loglog dumpfile (dump) gnuplot. dumpscale dumpfile. scale . linlog . fft2 FFT . . . min_phase (minimum phase). . o 1000 Hz: firequalizer=gain='if(lt(f,1000), 0, -INF)' o 1000 Hz gain_entry: firequalizer=gain_entry='entry(1000,0); entry(1001, -INF)' o : firequalizer=gain_entry='entry(100,0); entry(400, -4); entry(1000, -6); entry(2000, 0)' o : firequalizer=delay=0.1:fixed=on:zero_phase=on o : firequalizer=gain='if(eq(chid,1), gain_interpolate(f), if(eq(chid,2), gain_interpolate(1e6+f), 0))' :gain_entry='entry(1000, 0); entry(1001,-INF); entry(1e6+1000,0)':multi=on flanger (flanging) . : delay . 0 30. 0 . depth (sweep) . 0 10. 2 . regen ( ). -95 95. 0 . width . 0 100. 71 . speed (Hz). 0.1 10. 0.5 . shape triangular () sinusoidal () . sinusoidal . phase . 0 100. 25 . interp linear () quadratic ( ). linear . haas (Haas effect) . . . : level_in . 1 0dB . level_out . 1 0dB . side_gain . 1 . middle_source . : left . right . mid . side . middle_phase . . left_delay . 2.05 . left_balance (balance) . -1 . left_gain . 1 . left_phase . . right_delay . 2.12 . right_balance . 1 . right_gain . 1 . right_phase . . hdcd HDCD ( ). PCM HDCD PCM . Peak Extend Low-level Gain Adjustment HDCD Transient Filter . ffmpeg -i HDCD16.flac -af hdcd OUT24.flac wav wav (truncate) . PCM -acodec pcm_s24le . ffmpeg -i HDCD16.wav -af hdcd OUT16.wav ffmpeg -i HDCD16.wav -af hdcd -c:a pcm_s24le OUT24.wav : disable_autoconvert . process_stereo . target_gain target_gain . cdt_ms . force_pe -3dBFS PE . analyze_mode . . "analyze_mode=pe:force_pe=true" PE . : 0, off 1, lle 2, pe Peak Extend 3, cdt 4, tgm headphone (HRTF) (binaural) . (HRIR) . : map . '|' . . . gain . dB . 0 . type . time freq . time . freq . freq . lfe LFE. dB . 0 . size . 1024 . 1024 96000 . hrir hrir. stereo . multich . stereo . . multich . . o wav amovie 7.1 (downmix) amovie IR . : ffmpeg -i input.wav -filter_complex "amovie=azi_270_ele_0_DFC.wav[sr];amovie=azi_90_ele_0_DFC.wav[sl];amovie=azi_225_ele_0_DFC.wav[br];amovie=azi_135_ele_0_DFC.wav[bl];amovie=azi_0_ele_0_DFC.wav,asplit[fc][lfe];amovie=azi_35_ele_0_DFC.wav[fl];amovie=azi_325_ele_0_DFC.wav[fr];[0:a][fl][fr][fc][lfe][bl][br][sl][sr]headphone=FL|FR|FC|LFE|BL|BR|SL|SR" output.wav o wav amovie 7.1 multich hrir: ffmpeg -i input.wav -filter_complex "amovie=minp.wav[hrirs];[0:a][hrirs]headphone=map=FL|FR|FC|LFE|BL|BR|SL|SR:hrir=multich" output.wav highpass 3dB. () . (roll off) 6dB (20dB ) . : frequency, f Hz. 3000 . poles, p . 2 . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. . 0.707q (Butterworth) . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 . s32 . f32 . f64 . block_size, b IIR. ( ) . . : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" mix, m . : "mix" join . : inputs . 2 . channel_layout . stereo . map . '|' "input_idx.in_channel-out_channel" . input_idx . in_channel ( FL ) . out_channel . . . ( ): ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex join=inputs=3 OUTPUT 5.1 : ffmpeg -i fl -i fr -i fc -i sl -i sr -i lfe -filter_complex 'join=inputs=6:channel_layout=5.1:map=0.0-FL|1.0-FR|2.0-FC|3.0-SL|4.0-SR|5.0-LFE' out ladspa LADSPA ( ). FFmpeg "--enable-ladspa" . file, f LADSPA . LADSPA_PATH LADSPA LADSPA_PATH LADSPA : HOME/.ladspa/lib/ /usr/local/lib/ladspa/ /usr/lib/ladspa/. plugin, p . . . controls, c '|' ( ). : c0=value0|c1=value1|c2=value2|..., valuei i- . : value0|value1|value2|..., valuei i- . controls "help" . sample_rate, s 44100 . . nb_samples, n 1024 . . duration, d . (Time duration) ffmpeg-utils(1) . . . . latency, l (latency) . . o amp ( LADSPA): ladspa=file=amp o "vcf_notch" "VCF": ladspa=f=vcf:p=vcf_notch:c=help o "Computer Music Toolkit" (CMT): ladspa=file=cmt:plugin=lofi:controls=c0=22|c1=12|c2=12 o (reverberation) TAP-plugins ( ): ladspa=file=tap_reverb:tap_reverb o 0.2: ladspa=file=cmt:noise_source_white:c=c0=.2 o (bpm) "C* Click - Metronome" "C* Audio Plugin Suite" (CAPS): ladspa=file=caps:Click:c=c1=20' o "C* Eq10X2 - Stereo 10-band equaliser": ladspa=caps:Eq10X2:c=c0=-48|c9=-24|c3=12|c4=2 o 20dB fast lookahead limiter "SWH Plugins" : ladspa=fast_lookahead_limiter_1913:fastLookaheadLimiter:20|0|2 o Multiband EQ "SWH Plugins" : ladspa=mbeq_1197:mbeq:-24|-24|-24|0|0|0|0|0|0|0|0|0|0|0|0 o "Narrower" "C* Audio Plugin Suite" (CAPS): ladspa=caps:Narrower o "C* Audio Plugin Suite" (CAPS): ladspa=caps:White:.2 o "C* Audio Plugin Suite" (CAPS): ladspa=caps:Fractal:c=c1=1 o "VLevel": ladspa=vlevel-ladspa:vlevel_mono : cN N-. . loudnorm EBU R128. . ( ) () . IL LRA (true peak) . 192 kHz (upsample) . "-ar" "aresample" . : I, i (integrated loudness). -70.0 -5.0 . -24.0 . LRA, lra (loudness range). 1.0 50.0 . 7.0 . TP, tp (true peak). -9.0 +0.0 . -2.0 . measured_I, measured_i IL . -99.0 +0.0 . measured_LRA, measured_lra LRA . 0.0 99.0 . measured_TP, measured_tp . -99.0 +99.0 . measured_thresh . -99.0 +0.0 . offset . . -99.0 +99.0 . +0.0 . linear . "measured_I" "measured_LRA" "measured_TP" "measured_thresh" . LRA LRA TP . dynamic . "true" "false" . "true" . dual_mono <>. EBU R128 . "true" . . true false . false . print_format . summary json none . none . stats_file . print_format . "-" . . lowpass 3dB. () . (roll off) 6dB (20dB ) . : frequency, f Hz. 500 . poles, p . 2 . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w width_type. . 0.707q (Butterworth) . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 . s32 . f32 . f64 . block_size, b IIR. ( ) . . o LFE LFE : lowpass=c=LFE : frequency, f . : "frequency" width_type, t width_type . : "width_type" width, w . : "width" mix, m . : "mix" lv2 LV2 ( LADSPA). FFmpeg "--enable-lv2" . plugin, p (URI) . ':' . controls, c '|' ( ). controls "help" . sample_rate, s 44100 . . nb_samples, n 1024 . . duration, d . (Time duration) ffmpeg-utils(1) . . . . o Calf: lv2=p=http\\\\://calf.sourceforge.net/plugins/BassEnhancer:c=amount=2 o Calf: lv2=p=http\\\\://calf.sourceforge.net/plugins/Vinyl:c=drone=0.2|aging=0.5 o ArtyFX: lv2=p=http\\\\://www.openavproductions.com/artyfx#bitta:c=crush=0.3 . mcompand . IIR - . . : args : attack,decay,[attack,decay..] soft-knee points crossover_frequency [delay [initial_volume [gain]]] | attack,decay ... compand . pan . . . : "l|outdef|outdef|..." l outdef : "out_name=[gain*]in_name[(+-)[gain*]in_name...]" out_name (FL FR ) (c0 c1 ) gain 1 in_name out_name `=' `<' (clipping) . : pan=1c|c0=0.9*c0+0.1*c1 : pan=stereo| FL < FL + 0.5*FC + 0.6*BL + 0.6*SL | FR < FR + 0.5*FC + 0.6*BR + 0.6*SR ffmpeg ( ) ( "-ac" ) . : *< > *< > ("Pure channel mapping detected") . 5.1 : pan="stereo| c0=FL | c1=FR" : pan="5.1| c0=c1 | c1=c0 | c2=c2 | c3=c3 | c4=c4 | c5=c5" ( ) : pan="stereo|c1=c1" : pan="stereo| c0=FR | c1=FR" replaygain ReplayGain. . "track_gain" "track_peak" . : track_gain dB . track_peak . resample . . rubberband (time-stretching) (pitch-shifting) librubberband. FFmpeg "--enable-librubberband" . : tempo (tempo). pitch (pitch). transients (transients). : crisp mixed smooth detector . : compound percussive soft phase . : laminar independent window . : standard short long smoothing . : off on formant (formant) . : shifted preserved pitchq . : quality speed consistency channels . : apart together : tempo . : "tempo" pitch . : "pitch" sidechaincompress . . . . pan amerge . : level_in . 1 . 0.015625 64 . mode . "upward" "downward" . "downward" . threshold . 0.125 . 0.00097563 1 . ratio . 1:2 4dB 2dB . 2 . 1 20 . attack . 20 . 0.01 2000 . release . 250 . 0.01 9000 . makeup . 1 . 1 64 . knee . 2.82843 . 1 8 . link ("average") ("maximum") . "average" . detection "peak" RMS "rms". "rms" . level_sc . 1 . 0.015625 64 . mix . 1 . 0 1 . . o ffmpeg : ffmpeg -i main.flac -i sidechain.flac -filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress[compr];[compr][mix]amerge" sidechaingate ( ) . . : . () << >> . . . : level_in . 1 . 0.015625 64 . mode . "upward" "downward" . "downward" . "upward" . "downward" . range . 0.06125 . 0 1 . 0 . threshold () . 0.125 . 0 1 . ratio . 2 . 1 9000 . attack . 20 . 0.01 9000 . release . 250 . 0.01 9000 . makeup . 1 . 1 64 . knee . 2.828427125 . 1 8 . detection RMS. rms . peak rms . link . average . average maximum . level_sc . 1 . 0.015625 64 . . silencedetect . . . "lavfi.silence_start" "lavfi.silence_start.X" . "lavfi.silence_duration" "lavfi.silence_duration.X" "lavfi.silence_end" "lavfi.silence_end.X" . mono ".X" "X" . : noise, n . dB ( "dB" ) . -60dB 0.001 . duration, d ( ). (Time duration) ffmpeg-utils(1) . mono, m . . o -50dB: silencedetect=n=-50dB:d=5 o ffmpeg 0.0001 silence.mp3: ffmpeg -i silence.mp3 -af silencedetect=noise=0.0001 -f null - silenceremove . : start_periods . . - . start_periods 1 - . 0 . start_duration - . . 0 . start_threshold . 0 . dB ( "dB" ) . 0 . start_silence . 0 . start_mode . any all . any . any - . all - . stop_periods . . stop_periods . stop_periods . 0 . stop_duration . . 0 . stop_threshold start_threshold . dB ( "dB" ) . 0 . stop_silence . 0 . stop_mode . any all . all . any . all . detection . avg . rms . peak . median . ptp . dev . "rms" . window . 0 . start_silence / stop_silence start_duration / stop_duration . 0.02 . 0 10 . timestamp . write . copy . "write" . o ( ) : silenceremove=start_periods=1:start_duration=5:start_threshold=0.02 o : silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB o (peak) : silenceremove=window=0:detection=peak:stop_mode=all:start_mode=all:stop_periods=-1:stop_threshold=0 o : silenceremove=stop_periods=-2:stop_duration=1:stop_threshold=-90dB o 0.5 : silenceremove=stop_periods=-2:stop_duration=1:stop_threshold=-90dB:stop_silence=0.5 o 1.5 : silenceremove=stop_periods=-2:stop_duration=1:stop_threshold=-90dB:stop_silence=0.5:start_periods=1:start_duration=1:start_silence=1.5:stop_threshold=-90dB . sofalizer SOFAlizer (HRTF) (binaural) ( ). HRTF SOFA ( ). SOFAlizer (ARI) . FFmpeg "--enable-libmysofa" . : sofa SOFA . gain . dB . 0 . rotation (deg). 0 . elevation (elevation) (deg). 0 . radius HRTF (near-field). 1 . type . time freq . time . freq . freq . speakers . : [| |...]. . '|' . : 'speakers=FL 45 15|FR 345 15' . . lfegain LFE. dB . 0 . framesize . 1024 . 1024 96000 . type freq . normalize (IR) SOFA . . interpolate IR IR . . minphase IR SOFA. . anglestep . interpolate . radstep . interpolate . o sofa ClubFritz6: sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=1 o sofa ClubFritz12 : sofalizer=sofa=/path/to/ClubFritz12.sofa:type=freq:radius=2:rotation=5 o : "sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=2:speakers=FL 45|FR 315|BL 135|BR 225:gain=28" speechnorm (Speech Normalizer). ( ) . : peak, p . . 0.95 . 0.0 1.0 . expansion, e . 1.0 50.0 . 2.0 . . . compression, c . 1.0 50.0 . 2.0 . . threshold 0.0 threshold . threshold, t . 0.0 . 0.0 1.0 . . . raise, r . 0.001 . 0.0 1.0 . expansion . . fall, f . 0.001 . 0.0 1.0 . compression . channels, h . invert, i . threshold . threshold . link, l . . rms, m RMS . RMS . 0.0 . 0.0 1.0 . . o : speechnorm=e=3:r=0.00001:l=1 o : speechnorm=e=6.25:r=0.00001:l=1 o : speechnorm=e=12.5:r=0.0001:l=1 o : speechnorm=e=25:r=0.0001:l=1 o : speechnorm=e=50:r=0.0001:l=1 stereotools M/S L/R (master track) . : level_in . 1 . 0.015625 64 . level_out . 1 . 0.015625 64 . balance_in () . 0 . -1 1 . balance_out () . 0 . -1 1 . softclip (softclipping). 0dB . . mutel . . muter . . phasel . . phaser . . mode . : lr>lr / / . lr>ms / Mid/Side. ms>lr Mid/Side /. lr>ll / /. lr>rr / /. lr>l+r / + . lr>rl / /. ms>ll Mid/Side /. ms>rr Mid/Side /. ms>rl Mid/Side /. lr>l-r / - . slev (side). 1 . 0.015625 64 . sbal . 0 . -1 1 . mlev (middle). 1 . 0.015625 64 . mpan () . 0 . -1 1 . base . 0 . -1 1 . delay . 0 . -20 20 . sclevel S/C. 1 . 1 100 . phase . 0 . 0 360 . bmode_in, bmode_out balance_in/balance_out. : balance . . 1 . amplitude 2 . power -6dB +6dB. (Commands) . (Examples) o : stereotools=mlev=0.015625 o M/S L/R: "stereotools=mode=ms>lr" stereowiden . : delay . 20 . feedback . . 0.3 . crossfeed (cross feed) . . 1 . 0.3 . drymix ( ). 0.8 . (Commands) "delay" . superequalizer . : 1b 65Hz. 2b 92Hz. 3b 131Hz. 4b 185Hz. 5b 262Hz. 6b 370Hz. 7b 523Hz. 8b 740Hz. 9b 1047Hz. 10b 1480Hz. 11b 2093Hz. 12b 2960Hz. 13b 4186Hz. 14b 5920Hz. 15b 8372Hz. 16b 11840Hz. 17b 16744Hz. 18b 20000Hz. surround (surround upmix). . : chl_out . 5.1 . Channel Layout ffmpeg-utils(1) . chl_in . stereo . Channel Layout ffmpeg-utils(1) . level_in . 1 . level_out . 1 . lfe LFE () . . lfe_low LFE. 128 Hz . lfe_high LFE. 256 Hz . lfe_mode LFE add sub . add . add LFE . sub LFE LFE LFE . smooth . 0.0 1.0 . focus 0.0 . 0.0 . . angle . 0 360 . 90 . focus () . -1 1 . 0 . fc_in - (front center). 1 . fc_out -. 1 . fl_in - (front left). 1 . fl_out -. 1 . fr_in - (front right). 1 . fr_out -. 1 . sl_in - (side left). 1 . sl_out -. 1 . sr_in - (side right). 1 . sr_out -. 1 . bl_in - (back left). 1 . bl_out -. 1 . br_in - (back right). 1 . br_out -. 1 . bc_in - (back center). 1 . bc_out -. 1 . lfe_in LFE. 1 . lfe_out LFE. 1 . allx X . -1 15 . -1 . ally Y . -1 15 . -1 . fcx, flx, frx, blx, brx, slx, srx, bcx X . 0.06 15 . 0.5 . fcy, fly, fry, bly, bry, sly, sry, bcy Y . 0.06 15 . 0.5 . win_size . 1024 65536 . 4096 . win_func (window function). : rect bartlett hann, hanning hamming blackman welch flattop bharris bnuttall bhann sine nuttall lanczos gauss tukey dolph cauchy parzen poisson bohman kaiser "hann" . overlap . 1 . 0.5 . tiltshelf (shelving) (hi-fi). (shelving EQ) . : gain, g 0 Hz. -20 ( ) +20 ( ) . (clipping) . frequency, f . 3000 Hz . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w . poles, p . 2 . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 . s32 . f32 . f64 . block_size, b IIR. ( ) . . (Commands) . treble, highshelf () . (EQ) . : gain, g ~22 kHz (Nyquist). -20 ( ) +20 ( ) . (clipping) . frequency, f . 3000 Hz . width_type, t . h (Hz) q (Q-Factor) o (octave) s (slope) k (kHz) width, w . poles, p . 2 . mix, m . 1 . 0 1 . channels, c . normalize, n biquad . DC 0dB . transform, a IIR. di dii tdi tdii latt svf zdf precision, r . auto . s16 . s32 . f32 . f64 . block_size, b IIR. ( ) . . (Commands) : frequency, f . : "frequency" width_type, t . : "width_type" width, w . : "width" gain, g . : "gain" mix, m . : "mix" tremolo (Sinusoidal amplitude modulation). : f . (20 Hz ) . 20 Hz (ring modulator) . 0.1 - 20000.0 . 5.0 Hz . d 0.0 - 1.0. 0.5 . vibrato (Sinusoidal phase modulation). : f . 0.1 - 20000.0 . 5.0 Hz . d 0.0 - 1.0. 0.5 . virtualbass (Virtual Bass) . LFE ( 2.1 ) . LFE . - - . : cutoff . 250 Hz . 100 500 Hz . strength . 0.5 3 . 3 . volume . : volume . (clipped). : = * volume "1.0" . precision . . fixed U8 S16 S32 . float FLT (). double DBL . replaygain ReplayGain . drop ReplayGain (). ignore ReplayGain . track (track gain) . album (album gain) . replaygain_preamp dB ReplayGain. replaygain_preamp 0.0 . replaygain_noclip . replaygain_noclip 1 . eval volume. : once volume frame once . volume : n ( ) nb_channels nb_consumed_samples nb_samples pos pts PTS sample_rate startpts PTS startt t tb (timebase) volume eval once sample_rate tb NAN . (Commands) : volume . . . (Examples) o : volume=volume=0.5 volume=volume=1/2 volume=volume=-6.0206dB volume : volume=0.5 o : volume=volume=6dB:precision=fixed o : volume='if(lt(t,10),1,max(1-(t-10)/5,0))':eval=frame volumedetect . . . (log) . ( ) ( ) ( / ) . PCM . (Examples) : [Parsed_volumedetect_0 0xa23120] mean_volume: -27 dB [Parsed_volumedetect_0 0xa23120] max_volume: -4 dB [Parsed_volumedetect_0 0xa23120] histogram_4db: 6 [Parsed_volumedetect_0 0xa23120] histogram_5db: 62 [Parsed_volumedetect_0 0xa23120] histogram_6db: 286 [Parsed_volumedetect_0 0xa23120] histogram_7db: 1042 [Parsed_volumedetect_0 0xa23120] histogram_8db: 2551 [Parsed_volumedetect_0 0xa23120] histogram_9db: 4609 [Parsed_volumedetect_0 0xa23120] histogram_10db: 8409 : o -27 dB 10^-2.7 . o -4 dB -4 dB -5 dB . o -4 dB -5 dB -6 dB . +4 dB +5 dB . whisper Whisper OpenAI. whisper.cpp (). : "./configure --enable-whisper". : model whisper.cpp (). language ( 'auto' ). : "auto" translate . . : "false" queue whisper . . ( 10-20 ) CPU ( whisper-cli) . vad_model queue . : "3" use_gpu GPU. : "true" gpu_device GPU . : "0" destination ( AVIO FFmpeg ) (info) . "lavfi.whisper.text" . . format "text" ( ) "srt" ( ) "json" . : "text" max_len . 0 . . : "0" vad_model VAD. () whisper.cpp ( "../whisper.cpp/models/ggml-silero- v5.1.2.bin") queue ( 20) . vad_threshold VAD . : "0.5" vad_min_speech_duration VAD. : "0.1" vad_min_silence_duration VAD. : "0.5" (Examples) o srt: ffmpeg -i input.mp4 -vn -af "whisper=model=../whisper.cpp/models/ggml-base.en.bin\ :language=en\ :queue=3\ :destination=output.srt\ :format=srt" -f null - o JSON HTTP: ffmpeg -i input.mp4 -vn -af "whisper=model=../whisper.cpp/models/ggml-base.en.bin\ :language=en\ :queue=3\ :destination=http\\://localhost\\:3000\ :format=json' -f null - o VAD: ffmpeg -loglevel warning -f pulse -i default \ -af 'highpass=f=200,lowpass=f=3000,whisper=model=../whisper.cpp/models/ggml-medium.bin\ :language=en\ :queue=10\ :destination=-\ :format=json\ :vad_model=../whisper.cpp/models/ggml-silero-v5.1.2.bin' -f null - (AUDIO SOURCES) . abuffer . libavfilter/buffersrc.h. : time_base (timebase) . numerator/denominator (/) . sample_rate . sample_fmt . AVSampleFormat libavutil/samplefmt.h . channel_layout . channel_layout_map libavutil/channel_layout.c AV_CH_LAYOUT_* libavutil/channel_layout.h . channels . channels channel_layout . (Examples) abuffer=sample_rate=44100:sample_fmt=s16p:channel_layout=stereo planar 44100Hz . "s16p" "stereo" 0x3 : abuffer=sample_rate=44100:sample_fmt=6:channel_layout=0x3 aevalsrc . ( ) . : exprs '|' . channel_layout . . channel_layout, c . . duration, d . Time duration ffmpeg-utils(1) . . . nb_samples, n 1024 . sample_rate, s 44100 . exprs : n 0 t 0 s (Examples) o : aevalsrc=0 o 440 Hz 8000 Hz: aevalsrc="sin(440*2*PI*t):s=8000" o (- + -): aevalsrc="sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC" o : aevalsrc="-2+random(0)" o : aevalsrc="sin(10*2*PI*t)*sin(880*2*PI*t)" o (binaural beats) 2.5 Hz 360 Hz: aevalsrc="0.1*sin(2*PI*(360-2.5/2)*t) | 0.1*sin(2*PI*(360+2.5/2)*t)" afdelaysrc FIR (fractional delay). afir . : delay, d . 0 . sample_rate, r 44100 . nb_samples, n . 1024 . taps, t . 0 . channel_layout, c . channel_layout "stereo" . afireqsrc FIR. afir . : preset, p . "flat" . : custom flat acoustic bass beats classic clear deep bass dubstep electronic hard-style hip-hop jazz metal movie pop r&b rock vocal booster gains, g . preset "custom" . (whitespace) dBFS . "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" . bands, b . . preset "custom" . Hz . "25 40 63 100 160 250 400 630 1000 1600 2500 4000 6300 10000 16000 24000" . taps, t . 4096 . sample_rate, r 44100 . nb_samples, n . 1024 . interp, i FIR. "linear" "cubic" . phase, h FIR. "linear" "min" ( ) . (minimum-phase) . afirsrc FIR . afir . : taps, t . 1025 . frequency, f . 0 1 . . magnitude, m frequency. . . phase, p frequency. . . sample_rate, r 44100 . nb_samples, n . 1024 . win_func, w . blackman . anullsrc . ( sox) . : channel_layout, cl . channel_layout "stereo" . channel_layout_map libavutil/channel_layout.c . sample_rate, r 44100 . nb_samples, n . duration, d . Time duration ffmpeg-utils(1) . . (Examples) o 48000 Hz AV_CH_LAYOUT_MONO: anullsrc=r=48000:cl=4 o : anullsrc=r=48000:cl=mono . flite libflite. FFmpeg "--enable-libflite" . 2.0 flite (thread-safe) . : list_voices 1 . 0 . nb_samples, n . 512 . textfile . text . voice, v . "kal" . list_voices . (Examples) o speech.txt flite: flite=textfile=speech.txt o "slt": flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt o ffmpeg: ffmpeg -f lavfi -i flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt o ffplay "flite" "lavfi": ffplay -f lavfi flite=text='No more be grieved for which that thou hast done.' libflite : anoisesrc . : sample_rate, r . 48000 Hz . amplitude, a (0.0 - 1.0) . 1.0 . duration, d . . color, colour, c . : white () pink () brown () blue () violet () velvet (). white . seed, s (seed) (PRNG). nb_samples, n 1024 . density (0.0 - 1.0) (velvet) 0.05 . (Examples) o 44.1 kHz 0.5: anoisesrc=d=60:c=pink:r=44100:a=0.5 hilbert FIR (odd-tap). afir . . i ( j) . : sample_rate, s 44100 . taps, t FIR 22051 . nb_samples, n . win_func, w FIR. sinc FIR sinc (kaiser-windowed). afir . : sample_rate, r 44100 . nb_samples, n . 1024 . hp . 0 . lp . 0 . 0 (band-pass) (band-reject) . phase . 50 . 0 100 . beta (Kaiser window beta). att (stop-band attenuation). 120dB 40 180 dB . round . hptaps () . lptaps () . sine 1/8. (bit-exact) . : frequency, f . 440 Hz . beep_factor, b beep_factor . 0 . sample_rate, r 44100 . duration, d . samples_per_frame . : n 0. pts (Presentation TimeStamp - PTS) TB. t PTS . TB (timebase) . 1024 . (Examples) o 440 Hz: sine o 220 Hz 880 Hz : sine=220:4:d=5 sine=f=220:b=4:d=5 sine=frequency=220:beep_factor=4:duration=5 o 1 kHz NTSC "1602,1601,1602,1601,1602": sine=1000:samples_per_frame='st(0,mod(n,5)); 1602-not(not(eq(ld(0),1)+eq(ld(0),3)))' (AUDIO SINKS) . abuffersink . libavfilter/buffersink.h . AVABufferSinkContext (opaque) "avfilter_init_filter" . anullsink . . (VIDEO FILTERS) FFmpeg "--disable-filters" . configure . . addroi (Region of Interest - ROI) . . . x . y . w . h . x y w h : iw . ih . qoffset . -1 +1 . . ( ) ( ) . - -1 . . H.264 -12 51 . qoffset -1/10 QP . QP 30 QP 24 ( -1/10 * (51 - -12) = -6.3). -1 - QP -12 . clear true . (Examples) o : addroi=iw/4:ih/4:iw/2:ih/2:-1/10 o ( ): addroi=0:0:100:ih:+1/5 alphaextract (grayscale). alphamerge . alphamerge . alphaextract . YUV alphaextract : movie=in_alpha.mkv [alpha]; [in][alpha] alphamerge [out] amplify . : radius . 2 . 1 63 . 3 7 . factor . 2 . 0 65535 . threshold . . 10 . 0 65535 . tolerance (tolerance) . . 0 . 0 65535 . low . 65535 . 0 65535 . . high . 65535 . 0 65535 . . planes . (all) . 0 15 . (Commands) : factor threshold tolerance low high planes ass subtitles libavcodec libavformat . ASS (Advanced Substation Alpha) . filename/f original_size fontsdir alpha subtitles : shaping (shaping engine). : auto libass . simple . complex OpenType . . libass HarfBuzz . "auto" . atadenoise (Adaptive Temporal Averaging Denoiser) . : 0a A . 0.02 . 0 0.3 . 0b B . 0.04 . 0 5 . 1a A . 0.02 . 0 0.3 . 1b B . 0.04 . 0 5 . 2a A . 0.02 . 0 0.3 . 2b B . 0.04 . 0 5 . A B . s . 9 . [5, 129] . p . (all) . a . "p" () . "s" () . . . 0s 1s 2s . 32767 . 0 32767 . . . 0 . (Commands) "s" . . avgblur (average blur). : sizeX . planes . . sizeY "sizeX" . 0 . (Commands) . . . backgroundkey . : threshold . similarity . blend (blend) . (Commands) . bbox (bounding box) . . . : min_val . 16 . (Commands) . bilateral (bilateral filter) . : sigmaS (spatial weight). 0 512 . 0.1 . sigmaR (range weight). 0 1 . 0.1 . planes . . (Commands) . bitplanenoise (bit plane noise). : bitplane . 1 . filter "bitplane" . . blackdetect, blackdetect_vulkan () . . . "info" . "debug" . "lavfi.black_start" "lavfi.black_end" . . . : black_min_duration, d . . 2.0 . picture_black_ratio_th, pic_th "" . : / . 0.98 . pixel_black_th, pix_th "" . "" . : = + * luma_range_size luma_minimum_value YUV [0-255] YUV [16-235] . 0.10 . alpha . () . . : blackdetect=d=2:pix_th=0.00 blackframe () . . -1 . loglevel AV_LOG_INFO . "lavfi.blackframe.pblack" . . : amount 98 . threshold, thresh 32 . blend (Blend) . "blend" "" (top) "" (bottom) . . "tblend" ( ) . : c0_mode c1_mode c2_mode c3_mode all_mode all_mode. "normal" . : addition and average bleach burn darken difference divide dodge exclusion extremity freeze geometric glow grainextract grainmerge hardlight hardmix hardoverlay harmonic heat interpolate lighten linearlight multiply multiply128 negation normal or overlay phoenix pinlight reflect screen softdifference softlight stain subtract vividlight xor c0_opacity c1_opacity c2_opacity c3_opacity all_opacity / (opacity) all_opacity. . c0_expr c1_expr c2_expr c3_expr all_expr all_expr. . : N 0. X Y W H SW SH . "yuv420p" "1,1" "0.5,0.5" . T . TOP, A ( ). BOTTOM, B ( ). "blend" framesync . (Examples) o : blend=all_expr='A*(if(gte(T,10),1,T/10))+B*(1-(if(gte(T,10),1,T/10)))' o : blend=all_expr='A*(X/W)+B*(1-X/W)' o : blend=all_expr='if(eq(mod(X,2),mod(Y,2)),A,B)' o (uncover) : blend=all_expr='if(gte(N*SW+X,W),A,B)' o : blend=all_expr='if(gte(Y-N*SH,0),A,B)' o -: blend=all_expr='if(gte(T*SH*40+Y,H)*gte((T*40*SW+X)*W/H,W),A,B)' o : blend=all_expr='if(gt(X,Y*(W/H)),A,B)' o : tblend=all_mode=grainextract (Commands) . blockdetect (blockiness) . : "A no-reference blocking artifact measure for adaptive video processing." . : period_min period_max (). [3,24] . planes . . (Examples) o [8,32]: blockdetect=period_min=8:period_max=32:planes=1 blurdetect (blurriness) . : "A no-reference perceptual blur metric." . : low high Canny. "" - "" . low high [0,1] low high . low "20/255" high "50/255" . radius . block_pct . block_width block_width. 1 block_height . block_height block_height. 1 block_width . planes . . (Examples) o 32x32: blurdetect=block_width=32:block_height=32:block_pct=80 bm3d (Block-Matching 3D). : sigma . 1 . 0 999.9 . . block . . bstep . 4 . 1 64 . . group . 1 . 1 . . 1 256 . range . 9 . 1 INT32_MAX . mstep . 1 . 1 64 . . thmse . 0 INT32_MAX . hdthr . . estim . "basic" "final" . "basic" . ref . "basic" estim estim "final" . planes . . (Examples) o bm3d: bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic o : bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic:planes=1 o : split[a][b],[a]bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic[a],[b][a]bm3d=sigma=3:block=4:bstep=2:group=16:estim=final:ref=1 o nlmeans: split[a][b],[a]nlmeans=s=3:r=7:p=3[a],[b][a]bm3d=sigma=3:block=4:bstep=2:group=16:estim=final:ref=1 boxblur (boxblur) . : luma_radius, lr luma_power, lp chroma_radius, cr chroma_power, cp alpha_radius, ar alpha_power, ap . luma_radius, lr chroma_radius, cr alpha_radius, ar . "min(w,h)/2" "min(cw,ch)/2" . luma_radius "2" . chroma_radius alpha_radius luma_radius . : w h . cw ch . hsub vsub . "yuv422p" hsub 2 vsub 1 . luma_power, lp chroma_power, cp alpha_power, ap boxblur . luma_power 2 . chroma_power alpha_power luma_power . 0 . (Examples) o boxblur 2: boxblur=luma_radius=2:luma_power=1 boxblur=2:1 o 2 0: boxblur=2:1:cr=0:ar=0 o : boxblur=luma_radius=min(h\,w)/10:luma_power=1:chroma_radius=min(cw\,ch)/10:chroma_power=1 bwdif (Deinterlace) ("bwdif" "Bob Weaver Deinterlacing Filter" ). yadif w3fdif (cubic). : mode . : 0, send_frame . 1, send_field . "send_field" . parity . : 0, tff (top field first). 1, bff (bottom field first). -1, auto . "auto" . . deint . : 0, all . 1, interlaced . "all" . ccrepack (Repack) CEA-708 (Closed Captioning). CEA-708 ( cc_count ) ( CEA-608 ). cas (Contrast Adaptive Sharpen) . : strength (sharpening). 0 . planes . . (Commands) . chromahold . : color . similarity . 0.01 1.0 . blend . 0.0 . . yuv YUV RGB. "green" "red" . YUV . (Commands) . . . chromakey (Chroma Keying) YUV. : color (transparency) . similarity . 0.01 1.0 . blend . 0.0 . . yuv YUV RGB. "green" "red" . YUV . (Commands) . . . (Examples) o : ffmpeg -i input.png -vf chromakey=green out.png o : ffmpeg -f lavfi -i color=c=black:s=1280x720 -i video.mp4 -shortest -filter_complex "[1:v]chromakey=0x70de77:0.1:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" output.mkv chromanr (chrominance). : thres . Y U V . (Luma) . 30 . 1 200 . sizew . 1 100 . 5 . sizeh . 1 100 . 5 . stepw . 1 . 1 50 . . steph . 1 . 1 50 . . threy Y . Y . 200 . 1 200 . threu U . U . 200 . 1 200 . threv V . V . 200 . 1 200 . distance . manhattan . euclidean . manhattan . . . chromashift () / . : cbh -. cbv -. crh -. crv -. edge smear () warp . . ciescope CIE . : system . ntsc, 470m ebu, 470bg smpte 240m apple widergb cie1931 rec709, hdtv uhdtv, rec2020 dcip3 cie CIE. xyy ucs luv gamuts (gamuts) . "system" . size, s ciescope 512 . intensity, i CIE. contrast . corrgamma . showwhite CIE . gamma . XYZ . fill CIE. . codecview . (side-data) . MPEG (motion vectors) export_mvs flags2 . : block (luma). mv . mv : pf P bf B bb B qp . mv_type, mvt . frame_type . mv_type : fp bp frame_type, ft . frame_type : if ( I) pf ( P) bf ( B) o ffplay: ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv_type=fp o P B ffplay: ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv=pf+bf+bb colorbalance ( ) . (shadows) (midtones) (highlights) - - - . . : rs gs bs ( ). rm gm bm ( ). rh gh bh ( ). "[-1.0, 1.0]" . 0 . pl (lightness) . . o : colorbalance=rs=.3 . colorcontrast RGB. : rc -. 0.0 . -1.0 1.0 . gm -. 0.0 . -1.0 1.0 . by -. 0.0 . -1.0 1.0 . rcw gmw byw "rc" "gm" "by". 0.0 . 0.0 1.0 . 0.0 . pl . 0.0 . 0.0 1.0 . . colorcorrect . YUV . : rl . -1.0 1.0 . 0 . bl . -1.0 1.0 . 0 . rh . -1.0 1.0 . 0 . bh . -1.0 1.0 . 0 . saturation . -3.0 3.0 . 1 . analyze "manual" . : manual average minmax median "manual" . . colorchannelmixer . . : =* + * + * + * : rr rg rb ra . rr 1 rg rb ra 0 . gr gg gb ga . gg 1 gr gb ga 0 . br bg bb ba . bb 1 br bg ba 0 . ar ag ab aa . aa 1 ar ag ab 0 . "[-2.0, 2.0]" . pc . : none . lum (luminance). max RGB. avg RGB. sum RGB. nrm RGB. pwr RGB. pa . "[0.0, 1.0]" . 0.0 . o (grayscale): colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3 o (sepia): colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131 . colordetect . : mode . . : color_range (luma) (MPEG) YUV (full range) . alpha_mode (straight) (premultiplied). . all . . colorize . : hue (hue). 0 360 . 0 . saturation (saturation). 0 1 . 0.5 . lightness (lightness). 0 1 . 0.5 . mix . 1.0 . 0.0 1.0 . . colorkey (color keying) RGB. 8 RGB 0 . blend . : color 0 ( ) . "Color" ffmpeg-utils . "black" . similarity . RGB . 0.01 1.0 . 0.01 1.0 . 0.01 . blend . 0.0 . . 0.0 1.0 . 0.0 . o : ffmpeg -i input.png -vf colorkey=green out.png o : ffmpeg -i background.png -i video.mp4 -filter_complex "[1:v]colorkey=0x3BBD1E:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" output.flv . . . colorhold RGB . : color . similarity . 0.01 1.0 . blend . 0.0 . . . . . colorlevels (levels). : rimin gimin bimin aimin . "[-1.0, 1.0]" . 0 . rimax gimax bimax aimax . "[-1.0, 1.0]" . 1 . ( ) ( ) . romin gomin bomin aomin . "[0, 1.0]" . 0 . romax gomax bomax aomax . "[0, 1.0]" . 1 . . preserve . : none . lum (luminance). max RGB. avg RGB. sum RGB. nrm RGB. pwr RGB. o : colorlevels=rimin=0.058:gimin=0.058:bimin=0.058 o : colorlevels=rimin=0.039:gimin=0.039:bimin=0.039:rimax=0.96:gimax=0.96:bimax=0.96 o : colorlevels=rimax=0.902:gimax=0.902:bimax=0.902 o (brightness): colorlevels=romin=0.5:gomin=0.5:bomin=0.5 . colormap . . . . : patch_size . nb_patches . . 64 . type . "relative" "absolute" . "absolute" . kernel (kernel) . : euclidean weuclidean "euclidean" . colormatrix . : src dst . . : bt709 BT.709 fcc FCC bt601 BT.601 bt470 BT.470 bt470bg BT.470BG smpte170m SMPTE-170M smpte240m SMPTE-240M bt2020 BT.2020 BT.601 SMPTE-240M : colormatrix=bt601:smpte240m colorspace (transfer characteristics) (color primaries). . : all . : bt470m BT.470M bt470bg BT.470BG bt601-6-525 BT.601-6 525 bt601-6-625 BT.601-6 625 bt709 BT.709 smpte170m SMPTE-170M smpte240m SMPTE-240M bt2020 BT.2020 space . : bt709 BT.709 fcc FCC bt470bg BT.470BG BT.601-6 625 smpte170m SMPTE-170M BT.601-6 525 smpte240m SMPTE-240M ycgco YCgCo bt2020ncl BT.2020 trc . : bt709 BT.709 bt470m BT.470M bt470bg BT.470BG gamma22 2.2 gamma28 2.8 smpte170m SMPTE-170M BT.601-6 625 BT.601-6 525 smpte240m SMPTE-240M srgb SRGB iec61966-2-1 iec61966-2-1 iec61966-2-4 iec61966-2-4 xvycc xvycc bt2020-10 BT.2020 10 bt2020-12 BT.2020 12 primaries . : bt709 BT.709 bt470m BT.470M bt470bg BT.470BG BT.601-6 625 smpte170m SMPTE-170M BT.601-6 525 smpte240m SMPTE-240M film film smpte431 SMPTE-431 smpte432 SMPTE-432 bt2020 BT.2020 jedec-p22 JEDEC P22 range . : tv TV () mpeg MPEG () pc PC () jpeg JPEG () format . : yuv420p YUV 4:2:0 8 yuv420p10 YUV 4:2:0 10 yuv420p12 YUV 4:2:0 12 yuv422p YUV 4:2:2 8 yuv422p10 YUV 4:2:2 10 yuv422p12 YUV 4:2:2 12 yuv444p YUV 4:4:4 8 yuv444p10 YUV 4:4:4 10 yuv444p12 YUV 4:4:4 12 fast / . CPU . colormatrix fast=1 . dither (dithering). : none fsb - (Floyd-Steinberg) wpadapt . : bradford vonkries identity ( ) clipgamut (clip) . : none . rgb RGB [0, 1] LUT . iall . all. ispace . space. iprimaries . primaries. itrc . trc. irange . range. . "all" . . . . . SMPTE-240M : colorspace=smpte240m colortemperature . : temperature . 1000 40000 . 6500 . mix . 0 1 . 1 . pl . 0 1 . 0 . . convolution () 3x3 5x5 7x7 / 49 . : 0m 1m 2m 3m (plane). 9 25 49 square 1 49 row . 0rdiv 1rdiv 2rdiv 3rdiv . 0 1 . 0bias 1bias 2bias 3bias () . . . 0.0 . 0mode 1mode 2mode 3mode . square row column . square . . o (sharpen): convolution="0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1 0 -1 0" o (blur): convolution="1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1/9:1/9:1/9:1/9" o (edge enhance): convolution="0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:5:1:1:1:0:128:128:128" o (edge detect): convolution="0 1 0 1 -4 1 0 1 0:0 1 0 1 -4 1 0 1 0:0 1 0 1 -4 1 0 1 0:0 1 0 1 -4 1 0 1 0:5:5:5:1:0:128:128:128" o : convolution="1 1 1 1 -8 1 1 1 1:1 1 1 1 -8 1 1 1 1:1 1 1 1 -8 1 1 1 1:1 1 1 1 -8 1 1 1 1:5:5:5:1:0:128:128:0" o (emboss): convolution="-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2" convolve (impulse). : planes . impulse first all . all . "convolve" framesync . copy . . coreimage GPU API CoreImage OSX. (context) (OpenGL) . . OpenGL OSX . . . coreimage : list_filters . list_filters=true filter . list_filters . (clamped) . . (escaping) . "default" . "default" . . : filter=@