ffprobe-all.html 1.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <title>FFmpeg documentation</title>
  7. <link rel="stylesheet" href="bootstrap.min.css" />
  8. <link rel="stylesheet" href="style.min.css" />
  9. <meta name="description" content="ffprobe Documentation: ">
  10. <meta name="keywords" content="FFmpeg documentation : ffprobe ">
  11. <meta name="Generator" content="texi2html 5.0">
  12. <!-- Created on June 8, 2020 by texi2html 5.0 -->
  13. <!--
  14. texi2html was written by:
  15. Lionel Cons <Lionel.Cons@cern.ch> (original author)
  16. Karl Berry <karl@freefriends.org>
  17. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  18. and many others.
  19. Maintained by: Many creative people.
  20. Send bugs and suggestions to <texi2html-bug@nongnu.org>
  21. -->
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. </head>
  24. <body>
  25. <div class="container">
  26. <h1 class="titlefont">ffprobe Documentation</h1>
  27. <hr>
  28. <a name="SEC_Top"></a>
  29. <a name="SEC_Contents"></a>
  30. <h1>Table of Contents</h1>
  31. <div class="contents">
  32. <ul class="no-bullet">
  33. <li><a name="toc-Synopsis" href="#Synopsis">1 Synopsis</a></li>
  34. <li><a name="toc-Description" href="#Description">2 Description</a></li>
  35. <li><a name="toc-Options-33" href="#Options-33">3 Options</a>
  36. <ul class="no-bullet">
  37. <li><a name="toc-Stream-specifiers-1" href="#Stream-specifiers-1">3.1 Stream specifiers</a></li>
  38. <li><a name="toc-Generic-options" href="#Generic-options">3.2 Generic options</a></li>
  39. <li><a name="toc-AVOptions" href="#AVOptions">3.3 AVOptions</a></li>
  40. <li><a name="toc-Main-options" href="#Main-options">3.4 Main options</a></li>
  41. </ul></li>
  42. <li><a name="toc-Writers" href="#Writers">4 Writers</a>
  43. <ul class="no-bullet">
  44. <li><a name="toc-default" href="#default">4.1 default</a></li>
  45. <li><a name="toc-compact_002c-csv" href="#compact_002c-csv">4.2 compact, csv</a></li>
  46. <li><a name="toc-flat" href="#flat">4.3 flat</a></li>
  47. <li><a name="toc-ini" href="#ini">4.4 ini</a></li>
  48. <li><a name="toc-json" href="#json">4.5 json</a></li>
  49. <li><a name="toc-xml" href="#xml">4.6 xml</a></li>
  50. </ul></li>
  51. <li><a name="toc-Timecode" href="#Timecode">5 Timecode</a></li>
  52. <li><a name="toc-Syntax" href="#Syntax">6 Syntax</a>
  53. <ul class="no-bullet">
  54. <li><a name="toc-Quoting-and-escaping" href="#Quoting-and-escaping">6.1 Quoting and escaping</a>
  55. <ul class="no-bullet">
  56. <li><a name="toc-Examples-125" href="#Examples-125">6.1.1 Examples</a></li>
  57. </ul></li>
  58. <li><a name="toc-Date" href="#Date">6.2 Date</a></li>
  59. <li><a name="toc-Time-duration" href="#Time-duration">6.3 Time duration</a>
  60. <ul class="no-bullet">
  61. <li><a name="toc-Examples-70" href="#Examples-70">6.3.1 Examples</a></li>
  62. </ul></li>
  63. <li><a name="toc-Video-size" href="#Video-size">6.4 Video size</a></li>
  64. <li><a name="toc-Video-rate" href="#Video-rate">6.5 Video rate</a></li>
  65. <li><a name="toc-Ratio" href="#Ratio">6.6 Ratio</a></li>
  66. <li><a name="toc-Color" href="#Color">6.7 Color</a></li>
  67. <li><a name="toc-Channel-Layout" href="#Channel-Layout">6.8 Channel Layout</a></li>
  68. </ul></li>
  69. <li><a name="toc-Expression-Evaluation" href="#Expression-Evaluation">7 Expression Evaluation</a></li>
  70. <li><a name="toc-Codec-Options" href="#Codec-Options">8 Codec Options</a></li>
  71. <li><a name="toc-Decoders" href="#Decoders">9 Decoders</a></li>
  72. <li><a name="toc-Video-Decoders" href="#Video-Decoders">10 Video Decoders</a>
  73. <ul class="no-bullet">
  74. <li><a name="toc-rawvideo" href="#rawvideo">10.1 rawvideo</a>
  75. <ul class="no-bullet">
  76. <li><a name="toc-Options-3" href="#Options-3">10.1.1 Options</a></li>
  77. </ul></li>
  78. <li><a name="toc-libdav1d" href="#libdav1d">10.2 libdav1d</a>
  79. <ul class="no-bullet">
  80. <li><a name="toc-Options-18" href="#Options-18">10.2.1 Options</a></li>
  81. </ul></li>
  82. <li><a name="toc-libdavs2" href="#libdavs2">10.3 libdavs2</a></li>
  83. </ul></li>
  84. <li><a name="toc-Audio-Decoders" href="#Audio-Decoders">11 Audio Decoders</a>
  85. <ul class="no-bullet">
  86. <li><a name="toc-ac3" href="#ac3">11.1 ac3</a>
  87. <ul class="no-bullet">
  88. <li><a name="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">11.1.1 AC-3 Decoder Options</a></li>
  89. </ul></li>
  90. <li><a name="toc-flac" href="#flac">11.2 flac</a>
  91. <ul class="no-bullet">
  92. <li><a name="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">11.2.1 FLAC Decoder options</a></li>
  93. </ul></li>
  94. <li><a name="toc-ffwavesynth" href="#ffwavesynth">11.3 ffwavesynth</a></li>
  95. <li><a name="toc-libcelt" href="#libcelt">11.4 libcelt</a></li>
  96. <li><a name="toc-libgsm" href="#libgsm">11.5 libgsm</a></li>
  97. <li><a name="toc-libilbc" href="#libilbc">11.6 libilbc</a>
  98. <ul class="no-bullet">
  99. <li><a name="toc-Options-19" href="#Options-19">11.6.1 Options</a></li>
  100. </ul></li>
  101. <li><a name="toc-libopencore_002damrnb" href="#libopencore_002damrnb">11.7 libopencore-amrnb</a></li>
  102. <li><a name="toc-libopencore_002damrwb" href="#libopencore_002damrwb">11.8 libopencore-amrwb</a></li>
  103. <li><a name="toc-libopus" href="#libopus">11.9 libopus</a></li>
  104. </ul></li>
  105. <li><a name="toc-Subtitles-Decoders" href="#Subtitles-Decoders">12 Subtitles Decoders</a>
  106. <ul class="no-bullet">
  107. <li><a name="toc-libaribb24" href="#libaribb24">12.1 libaribb24</a>
  108. <ul class="no-bullet">
  109. <li><a name="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">12.1.1 libaribb24 Decoder Options</a></li>
  110. </ul></li>
  111. <li><a name="toc-dvbsub" href="#dvbsub">12.2 dvbsub</a>
  112. <ul class="no-bullet">
  113. <li><a name="toc-Options-29" href="#Options-29">12.2.1 Options</a></li>
  114. </ul></li>
  115. <li><a name="toc-dvdsub" href="#dvdsub">12.3 dvdsub</a>
  116. <ul class="no-bullet">
  117. <li><a name="toc-Options-11" href="#Options-11">12.3.1 Options</a></li>
  118. </ul></li>
  119. <li><a name="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">12.4 libzvbi-teletext</a>
  120. <ul class="no-bullet">
  121. <li><a name="toc-Options-2" href="#Options-2">12.4.1 Options</a></li>
  122. </ul>
  123. </li>
  124. </ul></li>
  125. <li><a name="toc-Bitstream-Filters" href="#Bitstream-Filters">13 Bitstream Filters</a>
  126. <ul class="no-bullet">
  127. <li><a name="toc-aac_005fadtstoasc" href="#aac_005fadtstoasc">13.1 aac_adtstoasc</a></li>
  128. <li><a name="toc-av1_005fmetadata" href="#av1_005fmetadata">13.2 av1_metadata</a></li>
  129. <li><a name="toc-chomp" href="#chomp">13.3 chomp</a></li>
  130. <li><a name="toc-dca_005fcore" href="#dca_005fcore">13.4 dca_core</a></li>
  131. <li><a name="toc-dump_005fextra" href="#dump_005fextra">13.5 dump_extra</a></li>
  132. <li><a name="toc-eac3_005fcore" href="#eac3_005fcore">13.6 eac3_core</a></li>
  133. <li><a name="toc-extract_005fextradata" href="#extract_005fextradata">13.7 extract_extradata</a></li>
  134. <li><a name="toc-filter_005funits" href="#filter_005funits">13.8 filter_units</a></li>
  135. <li><a name="toc-hapqa_005fextract" href="#hapqa_005fextract">13.9 hapqa_extract</a></li>
  136. <li><a name="toc-h264_005fmetadata" href="#h264_005fmetadata">13.10 h264_metadata</a></li>
  137. <li><a name="toc-h264_005fmp4toannexb" href="#h264_005fmp4toannexb">13.11 h264_mp4toannexb</a></li>
  138. <li><a name="toc-h264_005fredundant_005fpps" href="#h264_005fredundant_005fpps">13.12 h264_redundant_pps</a></li>
  139. <li><a name="toc-hevc_005fmetadata" href="#hevc_005fmetadata">13.13 hevc_metadata</a></li>
  140. <li><a name="toc-hevc_005fmp4toannexb" href="#hevc_005fmp4toannexb">13.14 hevc_mp4toannexb</a></li>
  141. <li><a name="toc-imxdump" href="#imxdump">13.15 imxdump</a></li>
  142. <li><a name="toc-mjpeg2jpeg" href="#mjpeg2jpeg">13.16 mjpeg2jpeg</a></li>
  143. <li><a name="toc-mjpegadump" href="#mjpegadump">13.17 mjpegadump</a></li>
  144. <li><a name="toc-mov2textsub-1" href="#mov2textsub-1">13.18 mov2textsub</a></li>
  145. <li><a name="toc-mp3decomp" href="#mp3decomp">13.19 mp3decomp</a></li>
  146. <li><a name="toc-mpeg2_005fmetadata" href="#mpeg2_005fmetadata">13.20 mpeg2_metadata</a></li>
  147. <li><a name="toc-mpeg4_005funpack_005fbframes" href="#mpeg4_005funpack_005fbframes">13.21 mpeg4_unpack_bframes</a></li>
  148. <li><a name="toc-noise" href="#noise">13.22 noise</a></li>
  149. <li><a name="toc-null-1" href="#null-1">13.23 null</a></li>
  150. <li><a name="toc-pcm_005frechunk" href="#pcm_005frechunk">13.24 pcm_rechunk</a></li>
  151. <li><a name="toc-prores_005fmetadata" href="#prores_005fmetadata">13.25 prores_metadata</a></li>
  152. <li><a name="toc-remove_005fextra" href="#remove_005fextra">13.26 remove_extra</a></li>
  153. <li><a name="toc-text2movsub-1" href="#text2movsub-1">13.27 text2movsub</a></li>
  154. <li><a name="toc-trace_005fheaders" href="#trace_005fheaders">13.28 trace_headers</a></li>
  155. <li><a name="toc-truehd_005fcore" href="#truehd_005fcore">13.29 truehd_core</a></li>
  156. <li><a name="toc-vp9_005fmetadata" href="#vp9_005fmetadata">13.30 vp9_metadata</a></li>
  157. <li><a name="toc-vp9_005fsuperframe" href="#vp9_005fsuperframe">13.31 vp9_superframe</a></li>
  158. <li><a name="toc-vp9_005fsuperframe_005fsplit" href="#vp9_005fsuperframe_005fsplit">13.32 vp9_superframe_split</a></li>
  159. <li><a name="toc-vp9_005fraw_005freorder" href="#vp9_005fraw_005freorder">13.33 vp9_raw_reorder</a></li>
  160. </ul></li>
  161. <li><a name="toc-Format-Options" href="#Format-Options">14 Format Options</a>
  162. <ul class="no-bullet">
  163. <li><a name="toc-Format-stream-specifiers-1" href="#Format-stream-specifiers-1">14.1 Format stream specifiers</a></li>
  164. </ul></li>
  165. <li><a name="toc-Demuxers" href="#Demuxers">15 Demuxers</a>
  166. <ul class="no-bullet">
  167. <li><a name="toc-aa" href="#aa">15.1 aa</a></li>
  168. <li><a name="toc-apng" href="#apng">15.2 apng</a></li>
  169. <li><a name="toc-asf" href="#asf">15.3 asf</a></li>
  170. <li><a name="toc-concat-2" href="#concat-2">15.4 concat</a>
  171. <ul class="no-bullet">
  172. <li><a name="toc-Syntax-1" href="#Syntax-1">15.4.1 Syntax</a></li>
  173. <li><a name="toc-Options-25" href="#Options-25">15.4.2 Options</a></li>
  174. <li><a name="toc-Examples-25" href="#Examples-25">15.4.3 Examples</a></li>
  175. </ul></li>
  176. <li><a name="toc-dash" href="#dash">15.5 dash</a></li>
  177. <li><a name="toc-flv_002c-live_005fflv" href="#flv_002c-live_005fflv">15.6 flv, live_flv</a></li>
  178. <li><a name="toc-gif" href="#gif">15.7 gif</a></li>
  179. <li><a name="toc-hls" href="#hls">15.8 hls</a></li>
  180. <li><a name="toc-image2" href="#image2">15.9 image2</a>
  181. <ul class="no-bullet">
  182. <li><a name="toc-Examples-24" href="#Examples-24">15.9.1 Examples</a></li>
  183. </ul></li>
  184. <li><a name="toc-libgme" href="#libgme">15.10 libgme</a></li>
  185. <li><a name="toc-libmodplug" href="#libmodplug">15.11 libmodplug</a></li>
  186. <li><a name="toc-libopenmpt" href="#libopenmpt">15.12 libopenmpt</a></li>
  187. <li><a name="toc-mov_002fmp4_002f3gp" href="#mov_002fmp4_002f3gp">15.13 mov/mp4/3gp</a>
  188. <ul class="no-bullet">
  189. <li><a name="toc-Options-22" href="#Options-22">15.13.1 Options</a></li>
  190. <li><a name="toc-Audible-AAX" href="#Audible-AAX">15.13.2 Audible AAX</a></li>
  191. </ul></li>
  192. <li><a name="toc-mpegts" href="#mpegts">15.14 mpegts</a></li>
  193. <li><a name="toc-mpjpeg" href="#mpjpeg">15.15 mpjpeg</a></li>
  194. <li><a name="toc-rawvideo-1" href="#rawvideo-1">15.16 rawvideo</a></li>
  195. <li><a name="toc-sbg" href="#sbg">15.17 sbg</a></li>
  196. <li><a name="toc-tedcaptions" href="#tedcaptions">15.18 tedcaptions</a></li>
  197. <li><a name="toc-vapoursynth" href="#vapoursynth">15.19 vapoursynth</a></li>
  198. </ul></li>
  199. <li><a name="toc-Metadata" href="#Metadata">16 Metadata</a></li>
  200. <li><a name="toc-Protocol-Options" href="#Protocol-Options">17 Protocol Options</a></li>
  201. <li><a name="toc-Protocols" href="#Protocols">18 Protocols</a>
  202. <ul class="no-bullet">
  203. <li><a name="toc-amqp" href="#amqp">18.1 amqp</a></li>
  204. <li><a name="toc-async" href="#async">18.2 async</a></li>
  205. <li><a name="toc-bluray" href="#bluray">18.3 bluray</a></li>
  206. <li><a name="toc-cache" href="#cache">18.4 cache</a></li>
  207. <li><a name="toc-concat-1" href="#concat-1">18.5 concat</a></li>
  208. <li><a name="toc-crypto" href="#crypto">18.6 crypto</a></li>
  209. <li><a name="toc-data" href="#data">18.7 data</a></li>
  210. <li><a name="toc-file" href="#file">18.8 file</a></li>
  211. <li><a name="toc-ftp" href="#ftp">18.9 ftp</a></li>
  212. <li><a name="toc-gopher" href="#gopher">18.10 gopher</a></li>
  213. <li><a name="toc-hls-1" href="#hls-1">18.11 hls</a></li>
  214. <li><a name="toc-http" href="#http">18.12 http</a>
  215. <ul class="no-bullet">
  216. <li><a name="toc-HTTP-Cookies" href="#HTTP-Cookies">18.12.1 HTTP Cookies</a></li>
  217. </ul></li>
  218. <li><a name="toc-Icecast" href="#Icecast">18.13 Icecast</a></li>
  219. <li><a name="toc-mmst" href="#mmst">18.14 mmst</a></li>
  220. <li><a name="toc-mmsh" href="#mmsh">18.15 mmsh</a></li>
  221. <li><a name="toc-md5" href="#md5">18.16 md5</a></li>
  222. <li><a name="toc-pipe" href="#pipe">18.17 pipe</a></li>
  223. <li><a name="toc-prompeg" href="#prompeg">18.18 prompeg</a></li>
  224. <li><a name="toc-rtmp" href="#rtmp">18.19 rtmp</a></li>
  225. <li><a name="toc-rtmpe" href="#rtmpe">18.20 rtmpe</a></li>
  226. <li><a name="toc-rtmps" href="#rtmps">18.21 rtmps</a></li>
  227. <li><a name="toc-rtmpt" href="#rtmpt">18.22 rtmpt</a></li>
  228. <li><a name="toc-rtmpte" href="#rtmpte">18.23 rtmpte</a></li>
  229. <li><a name="toc-rtmpts" href="#rtmpts">18.24 rtmpts</a></li>
  230. <li><a name="toc-libsmbclient" href="#libsmbclient">18.25 libsmbclient</a></li>
  231. <li><a name="toc-libssh" href="#libssh">18.26 libssh</a></li>
  232. <li><a name="toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte" href="#librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">18.27 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></li>
  233. <li><a name="toc-rtp" href="#rtp">18.28 rtp</a></li>
  234. <li><a name="toc-rtsp" href="#rtsp">18.29 rtsp</a>
  235. <ul class="no-bullet">
  236. <li><a name="toc-Examples-158" href="#Examples-158">18.29.1 Examples</a></li>
  237. </ul></li>
  238. <li><a name="toc-sap" href="#sap">18.30 sap</a>
  239. <ul class="no-bullet">
  240. <li><a name="toc-Muxer" href="#Muxer">18.30.1 Muxer</a></li>
  241. <li><a name="toc-Demuxer" href="#Demuxer">18.30.2 Demuxer</a></li>
  242. </ul></li>
  243. <li><a name="toc-sctp" href="#sctp">18.31 sctp</a></li>
  244. <li><a name="toc-srt" href="#srt">18.32 srt</a></li>
  245. <li><a name="toc-srtp" href="#srtp">18.33 srtp</a></li>
  246. <li><a name="toc-subfile" href="#subfile">18.34 subfile</a></li>
  247. <li><a name="toc-tee" href="#tee">18.35 tee</a></li>
  248. <li><a name="toc-tcp" href="#tcp">18.36 tcp</a></li>
  249. <li><a name="toc-tls" href="#tls">18.37 tls</a></li>
  250. <li><a name="toc-udp" href="#udp">18.38 udp</a>
  251. <ul class="no-bullet">
  252. <li><a name="toc-Examples-163" href="#Examples-163">18.38.1 Examples</a></li>
  253. </ul></li>
  254. <li><a name="toc-unix" href="#unix">18.39 unix</a></li>
  255. <li><a name="toc-zmq" href="#zmq">18.40 zmq</a></li>
  256. </ul></li>
  257. <li><a name="toc-Device-Options" href="#Device-Options">19 Device Options</a></li>
  258. <li><a name="toc-Input-Devices" href="#Input-Devices">20 Input Devices</a>
  259. <ul class="no-bullet">
  260. <li><a name="toc-alsa" href="#alsa">20.1 alsa</a>
  261. <ul class="no-bullet">
  262. <li><a name="toc-Options-1" href="#Options-1">20.1.1 Options</a></li>
  263. </ul></li>
  264. <li><a name="toc-android_005fcamera" href="#android_005fcamera">20.2 android_camera</a>
  265. <ul class="no-bullet">
  266. <li><a name="toc-Options-8" href="#Options-8">20.2.1 Options</a></li>
  267. </ul></li>
  268. <li><a name="toc-avfoundation" href="#avfoundation">20.3 avfoundation</a>
  269. <ul class="no-bullet">
  270. <li><a name="toc-Options-17" href="#Options-17">20.3.1 Options</a></li>
  271. <li><a name="toc-Examples-43" href="#Examples-43">20.3.2 Examples</a></li>
  272. </ul></li>
  273. <li><a name="toc-bktr" href="#bktr">20.4 bktr</a>
  274. <ul class="no-bullet">
  275. <li><a name="toc-Options-32" href="#Options-32">20.4.1 Options</a></li>
  276. </ul></li>
  277. <li><a name="toc-decklink" href="#decklink">20.5 decklink</a>
  278. <ul class="no-bullet">
  279. <li><a name="toc-Options-23" href="#Options-23">20.5.1 Options</a></li>
  280. <li><a name="toc-Examples-19" href="#Examples-19">20.5.2 Examples</a></li>
  281. </ul></li>
  282. <li><a name="toc-dshow" href="#dshow">20.6 dshow</a>
  283. <ul class="no-bullet">
  284. <li><a name="toc-Options-4" href="#Options-4">20.6.1 Options</a></li>
  285. <li><a name="toc-Examples-44" href="#Examples-44">20.6.2 Examples</a></li>
  286. </ul></li>
  287. <li><a name="toc-fbdev" href="#fbdev">20.7 fbdev</a>
  288. <ul class="no-bullet">
  289. <li><a name="toc-Options-27" href="#Options-27">20.7.1 Options</a></li>
  290. </ul></li>
  291. <li><a name="toc-gdigrab" href="#gdigrab">20.8 gdigrab</a>
  292. <ul class="no-bullet">
  293. <li><a name="toc-Options-20" href="#Options-20">20.8.1 Options</a></li>
  294. </ul></li>
  295. <li><a name="toc-iec61883" href="#iec61883">20.9 iec61883</a>
  296. <ul class="no-bullet">
  297. <li><a name="toc-Options-15" href="#Options-15">20.9.1 Options</a></li>
  298. <li><a name="toc-Examples-114" href="#Examples-114">20.9.2 Examples</a></li>
  299. </ul></li>
  300. <li><a name="toc-jack" href="#jack">20.10 jack</a>
  301. <ul class="no-bullet">
  302. <li><a name="toc-Options-30" href="#Options-30">20.10.1 Options</a></li>
  303. </ul></li>
  304. <li><a name="toc-kmsgrab" href="#kmsgrab">20.11 kmsgrab</a>
  305. <ul class="no-bullet">
  306. <li><a name="toc-Options-26" href="#Options-26">20.11.1 Options</a></li>
  307. <li><a name="toc-Examples-152" href="#Examples-152">20.11.2 Examples</a></li>
  308. </ul></li>
  309. <li><a name="toc-lavfi" href="#lavfi">20.12 lavfi</a>
  310. <ul class="no-bullet">
  311. <li><a name="toc-Options-5" href="#Options-5">20.12.1 Options</a></li>
  312. <li><a name="toc-Examples-78" href="#Examples-78">20.12.2 Examples</a></li>
  313. </ul></li>
  314. <li><a name="toc-libcdio" href="#libcdio">20.13 libcdio</a>
  315. <ul class="no-bullet">
  316. <li><a name="toc-Options-10" href="#Options-10">20.13.1 Options</a></li>
  317. </ul></li>
  318. <li><a name="toc-libdc1394" href="#libdc1394">20.14 libdc1394</a>
  319. <ul class="no-bullet">
  320. <li><a name="toc-Options-28" href="#Options-28">20.14.1 Options</a></li>
  321. </ul></li>
  322. <li><a name="toc-openal" href="#openal">20.15 openal</a>
  323. <ul class="no-bullet">
  324. <li><a name="toc-Options-12" href="#Options-12">20.15.1 Options</a></li>
  325. <li><a name="toc-Examples-81" href="#Examples-81">20.15.2 Examples</a></li>
  326. </ul></li>
  327. <li><a name="toc-oss" href="#oss">20.16 oss</a>
  328. <ul class="no-bullet">
  329. <li><a name="toc-Options-34" href="#Options-34">20.16.1 Options</a></li>
  330. </ul></li>
  331. <li><a name="toc-pulse" href="#pulse">20.17 pulse</a>
  332. <ul class="no-bullet">
  333. <li><a name="toc-Options-6" href="#Options-6">20.17.1 Options</a></li>
  334. <li><a name="toc-Examples-101" href="#Examples-101">20.17.2 Examples</a></li>
  335. </ul></li>
  336. <li><a name="toc-sndio" href="#sndio">20.18 sndio</a>
  337. <ul class="no-bullet">
  338. <li><a name="toc-Options-31" href="#Options-31">20.18.1 Options</a></li>
  339. </ul></li>
  340. <li><a name="toc-video4linux2_002c-v4l2" href="#video4linux2_002c-v4l2">20.19 video4linux2, v4l2</a>
  341. <ul class="no-bullet">
  342. <li><a name="toc-Options-24" href="#Options-24">20.19.1 Options</a></li>
  343. </ul></li>
  344. <li><a name="toc-vfwcap" href="#vfwcap">20.20 vfwcap</a>
  345. <ul class="no-bullet">
  346. <li><a name="toc-Options-14" href="#Options-14">20.20.1 Options</a></li>
  347. </ul></li>
  348. <li><a name="toc-x11grab" href="#x11grab">20.21 x11grab</a>
  349. <ul class="no-bullet">
  350. <li><a name="toc-Options-21" href="#Options-21">20.21.1 Options</a></li>
  351. </ul>
  352. </li>
  353. </ul></li>
  354. <li><a name="toc-Resampler-Options" href="#Resampler-Options">21 Resampler Options</a></li>
  355. <li><a name="toc-Scaler-Options" href="#Scaler-Options">22 Scaler Options</a></li>
  356. <li><a name="toc-Filtering-Introduction" href="#Filtering-Introduction">23 Filtering Introduction</a></li>
  357. <li><a name="toc-graph2dot" href="#graph2dot">24 graph2dot</a></li>
  358. <li><a name="toc-Filtergraph-description" href="#Filtergraph-description">25 Filtergraph description</a>
  359. <ul class="no-bullet">
  360. <li><a name="toc-Filtergraph-syntax-1" href="#Filtergraph-syntax-1">25.1 Filtergraph syntax</a></li>
  361. <li><a name="toc-Notes-on-filtergraph-escaping" href="#Notes-on-filtergraph-escaping">25.2 Notes on filtergraph escaping</a></li>
  362. </ul></li>
  363. <li><a name="toc-Timeline-editing" href="#Timeline-editing">26 Timeline editing</a></li>
  364. <li><a name="toc-Changing-options-at-runtime-with-a-command" href="#Changing-options-at-runtime-with-a-command">27 Changing options at runtime with a command</a></li>
  365. <li><a name="toc-Options-for-filters-with-several-inputs-_0028framesync_0029" href="#Options-for-filters-with-several-inputs-_0028framesync_0029">28 Options for filters with several inputs (framesync)</a></li>
  366. <li><a name="toc-Audio-Filters" href="#Audio-Filters">29 Audio Filters</a>
  367. <ul class="no-bullet">
  368. <li><a name="toc-acompressor" href="#acompressor">29.1 acompressor</a>
  369. <ul class="no-bullet">
  370. <li><a name="toc-Commands-3" href="#Commands-3">29.1.1 Commands</a></li>
  371. </ul></li>
  372. <li><a name="toc-acontrast" href="#acontrast">29.2 acontrast</a></li>
  373. <li><a name="toc-acopy" href="#acopy">29.3 acopy</a></li>
  374. <li><a name="toc-acrossfade" href="#acrossfade">29.4 acrossfade</a>
  375. <ul class="no-bullet">
  376. <li><a name="toc-Examples-110" href="#Examples-110">29.4.1 Examples</a></li>
  377. </ul></li>
  378. <li><a name="toc-acrossover" href="#acrossover">29.5 acrossover</a></li>
  379. <li><a name="toc-acrusher" href="#acrusher">29.6 acrusher</a></li>
  380. <li><a name="toc-acue" href="#acue">29.7 acue</a></li>
  381. <li><a name="toc-adeclick" href="#adeclick">29.8 adeclick</a></li>
  382. <li><a name="toc-adeclip" href="#adeclip">29.9 adeclip</a></li>
  383. <li><a name="toc-adelay" href="#adelay">29.10 adelay</a>
  384. <ul class="no-bullet">
  385. <li><a name="toc-Examples-1" href="#Examples-1">29.10.1 Examples</a></li>
  386. </ul></li>
  387. <li><a name="toc-aderivative_002c-aintegral" href="#aderivative_002c-aintegral">29.11 aderivative, aintegral</a></li>
  388. <li><a name="toc-aecho" href="#aecho">29.12 aecho</a>
  389. <ul class="no-bullet">
  390. <li><a name="toc-Examples-138" href="#Examples-138">29.12.1 Examples</a></li>
  391. </ul></li>
  392. <li><a name="toc-aemphasis" href="#aemphasis">29.13 aemphasis</a></li>
  393. <li><a name="toc-aeval" href="#aeval">29.14 aeval</a>
  394. <ul class="no-bullet">
  395. <li><a name="toc-Examples-124" href="#Examples-124">29.14.1 Examples</a></li>
  396. </ul></li>
  397. <li><a name="toc-afade-1" href="#afade-1">29.15 afade</a>
  398. <ul class="no-bullet">
  399. <li><a name="toc-Examples-39" href="#Examples-39">29.15.1 Examples</a></li>
  400. </ul></li>
  401. <li><a name="toc-afftdn" href="#afftdn">29.16 afftdn</a>
  402. <ul class="no-bullet">
  403. <li><a name="toc-Commands-40" href="#Commands-40">29.16.1 Commands</a></li>
  404. </ul></li>
  405. <li><a name="toc-afftfilt" href="#afftfilt">29.17 afftfilt</a>
  406. <ul class="no-bullet">
  407. <li><a name="toc-Examples-18" href="#Examples-18">29.17.1 Examples</a></li>
  408. </ul></li>
  409. <li><a name="toc-afir-1" href="#afir-1">29.18 afir</a>
  410. <ul class="no-bullet">
  411. <li><a name="toc-Examples-42" href="#Examples-42">29.18.1 Examples</a></li>
  412. </ul></li>
  413. <li><a name="toc-aformat-1" href="#aformat-1">29.19 aformat</a></li>
  414. <li><a name="toc-agate" href="#agate">29.20 agate</a></li>
  415. <li><a name="toc-aiir" href="#aiir">29.21 aiir</a>
  416. <ul class="no-bullet">
  417. <li><a name="toc-Examples-122" href="#Examples-122">29.21.1 Examples</a></li>
  418. </ul></li>
  419. <li><a name="toc-alimiter" href="#alimiter">29.22 alimiter</a></li>
  420. <li><a name="toc-allpass" href="#allpass">29.23 allpass</a>
  421. <ul class="no-bullet">
  422. <li><a name="toc-Commands-2" href="#Commands-2">29.23.1 Commands</a></li>
  423. </ul></li>
  424. <li><a name="toc-aloop" href="#aloop">29.24 aloop</a></li>
  425. <li><a name="toc-amerge-1" href="#amerge-1">29.25 amerge</a>
  426. <ul class="no-bullet">
  427. <li><a name="toc-Examples-144" href="#Examples-144">29.25.1 Examples</a></li>
  428. </ul></li>
  429. <li><a name="toc-amix" href="#amix">29.26 amix</a>
  430. <ul class="no-bullet">
  431. <li><a name="toc-Commands-24" href="#Commands-24">29.26.1 Commands</a></li>
  432. </ul></li>
  433. <li><a name="toc-amultiply" href="#amultiply">29.27 amultiply</a></li>
  434. <li><a name="toc-anequalizer" href="#anequalizer">29.28 anequalizer</a>
  435. <ul class="no-bullet">
  436. <li><a name="toc-Examples-31" href="#Examples-31">29.28.1 Examples</a></li>
  437. <li><a name="toc-Commands-13" href="#Commands-13">29.28.2 Commands</a></li>
  438. </ul></li>
  439. <li><a name="toc-anlmdn" href="#anlmdn">29.29 anlmdn</a>
  440. <ul class="no-bullet">
  441. <li><a name="toc-Commands-17" href="#Commands-17">29.29.1 Commands</a></li>
  442. </ul></li>
  443. <li><a name="toc-anlms" href="#anlms">29.30 anlms</a>
  444. <ul class="no-bullet">
  445. <li><a name="toc-Examples-10" href="#Examples-10">29.30.1 Examples</a></li>
  446. <li><a name="toc-Commands-58" href="#Commands-58">29.30.2 Commands</a></li>
  447. </ul></li>
  448. <li><a name="toc-anull" href="#anull">29.31 anull</a></li>
  449. <li><a name="toc-apad" href="#apad">29.32 apad</a>
  450. <ul class="no-bullet">
  451. <li><a name="toc-Examples-161" href="#Examples-161">29.32.1 Examples</a></li>
  452. </ul></li>
  453. <li><a name="toc-aphaser" href="#aphaser">29.33 aphaser</a></li>
  454. <li><a name="toc-apulsator" href="#apulsator">29.34 apulsator</a></li>
  455. <li><a name="toc-aresample-1" href="#aresample-1">29.35 aresample</a>
  456. <ul class="no-bullet">
  457. <li><a name="toc-Examples-83" href="#Examples-83">29.35.1 Examples</a></li>
  458. </ul></li>
  459. <li><a name="toc-areverse" href="#areverse">29.36 areverse</a>
  460. <ul class="no-bullet">
  461. <li><a name="toc-Examples-96" href="#Examples-96">29.36.1 Examples</a></li>
  462. </ul></li>
  463. <li><a name="toc-arnndn" href="#arnndn">29.37 arnndn</a></li>
  464. <li><a name="toc-asetnsamples" href="#asetnsamples">29.38 asetnsamples</a></li>
  465. <li><a name="toc-asetrate" href="#asetrate">29.39 asetrate</a></li>
  466. <li><a name="toc-ashowinfo" href="#ashowinfo">29.40 ashowinfo</a></li>
  467. <li><a name="toc-asoftclip" href="#asoftclip">29.41 asoftclip</a>
  468. <ul class="no-bullet">
  469. <li><a name="toc-Commands-53" href="#Commands-53">29.41.1 Commands</a></li>
  470. </ul></li>
  471. <li><a name="toc-asr" href="#asr">29.42 asr</a></li>
  472. <li><a name="toc-astats-1" href="#astats-1">29.43 astats</a></li>
  473. <li><a name="toc-asubboost" href="#asubboost">29.44 asubboost</a>
  474. <ul class="no-bullet">
  475. <li><a name="toc-Commands-65" href="#Commands-65">29.44.1 Commands</a></li>
  476. </ul></li>
  477. <li><a name="toc-atempo" href="#atempo">29.45 atempo</a>
  478. <ul class="no-bullet">
  479. <li><a name="toc-Examples-162" href="#Examples-162">29.45.1 Examples</a></li>
  480. <li><a name="toc-Commands-69" href="#Commands-69">29.45.2 Commands</a></li>
  481. </ul></li>
  482. <li><a name="toc-atrim" href="#atrim">29.46 atrim</a></li>
  483. <li><a name="toc-axcorrelate" href="#axcorrelate">29.47 axcorrelate</a>
  484. <ul class="no-bullet">
  485. <li><a name="toc-Examples-153" href="#Examples-153">29.47.1 Examples</a></li>
  486. </ul></li>
  487. <li><a name="toc-bandpass" href="#bandpass">29.48 bandpass</a>
  488. <ul class="no-bullet">
  489. <li><a name="toc-Commands-25" href="#Commands-25">29.48.1 Commands</a></li>
  490. </ul></li>
  491. <li><a name="toc-bandreject" href="#bandreject">29.49 bandreject</a>
  492. <ul class="no-bullet">
  493. <li><a name="toc-Commands-54" href="#Commands-54">29.49.1 Commands</a></li>
  494. </ul></li>
  495. <li><a name="toc-bass_002c-lowshelf" href="#bass_002c-lowshelf">29.50 bass, lowshelf</a>
  496. <ul class="no-bullet">
  497. <li><a name="toc-Commands-70" href="#Commands-70">29.50.1 Commands</a></li>
  498. </ul></li>
  499. <li><a name="toc-biquad" href="#biquad">29.51 biquad</a>
  500. <ul class="no-bullet">
  501. <li><a name="toc-Commands-29" href="#Commands-29">29.51.1 Commands</a></li>
  502. </ul></li>
  503. <li><a name="toc-bs2b" href="#bs2b">29.52 bs2b</a></li>
  504. <li><a name="toc-channelmap" href="#channelmap">29.53 channelmap</a>
  505. <ul class="no-bullet">
  506. <li><a name="toc-Examples-12" href="#Examples-12">29.53.1 Examples</a></li>
  507. </ul></li>
  508. <li><a name="toc-channelsplit" href="#channelsplit">29.54 channelsplit</a>
  509. <ul class="no-bullet">
  510. <li><a name="toc-Examples-2" href="#Examples-2">29.54.1 Examples</a></li>
  511. </ul></li>
  512. <li><a name="toc-chorus" href="#chorus">29.55 chorus</a>
  513. <ul class="no-bullet">
  514. <li><a name="toc-Examples-139" href="#Examples-139">29.55.1 Examples</a></li>
  515. </ul></li>
  516. <li><a name="toc-compand" href="#compand">29.56 compand</a>
  517. <ul class="no-bullet">
  518. <li><a name="toc-Examples-111" href="#Examples-111">29.56.1 Examples</a></li>
  519. </ul></li>
  520. <li><a name="toc-compensationdelay" href="#compensationdelay">29.57 compensationdelay</a></li>
  521. <li><a name="toc-crossfeed" href="#crossfeed">29.58 crossfeed</a>
  522. <ul class="no-bullet">
  523. <li><a name="toc-Commands-35" href="#Commands-35">29.58.1 Commands</a></li>
  524. </ul></li>
  525. <li><a name="toc-crystalizer" href="#crystalizer">29.59 crystalizer</a>
  526. <ul class="no-bullet">
  527. <li><a name="toc-Commands-14" href="#Commands-14">29.59.1 Commands</a></li>
  528. </ul></li>
  529. <li><a name="toc-dcshift" href="#dcshift">29.60 dcshift</a></li>
  530. <li><a name="toc-deesser" href="#deesser">29.61 deesser</a></li>
  531. <li><a name="toc-drmeter" href="#drmeter">29.62 drmeter</a></li>
  532. <li><a name="toc-dynaudnorm" href="#dynaudnorm">29.63 dynaudnorm</a>
  533. <ul class="no-bullet">
  534. <li><a name="toc-Commands-44" href="#Commands-44">29.63.1 Commands</a></li>
  535. </ul></li>
  536. <li><a name="toc-earwax" href="#earwax">29.64 earwax</a></li>
  537. <li><a name="toc-equalizer" href="#equalizer">29.65 equalizer</a>
  538. <ul class="no-bullet">
  539. <li><a name="toc-Examples-68" href="#Examples-68">29.65.1 Examples</a></li>
  540. <li><a name="toc-Commands-19" href="#Commands-19">29.65.2 Commands</a></li>
  541. </ul></li>
  542. <li><a name="toc-extrastereo" href="#extrastereo">29.66 extrastereo</a>
  543. <ul class="no-bullet">
  544. <li><a name="toc-Commands-41" href="#Commands-41">29.66.1 Commands</a></li>
  545. </ul></li>
  546. <li><a name="toc-firequalizer" href="#firequalizer">29.67 firequalizer</a>
  547. <ul class="no-bullet">
  548. <li><a name="toc-Examples-22" href="#Examples-22">29.67.1 Examples</a></li>
  549. </ul></li>
  550. <li><a name="toc-flanger" href="#flanger">29.68 flanger</a></li>
  551. <li><a name="toc-haas" href="#haas">29.69 haas</a></li>
  552. <li><a name="toc-hdcd" href="#hdcd">29.70 hdcd</a></li>
  553. <li><a name="toc-headphone" href="#headphone">29.71 headphone</a>
  554. <ul class="no-bullet">
  555. <li><a name="toc-Examples-131" href="#Examples-131">29.71.1 Examples</a></li>
  556. </ul></li>
  557. <li><a name="toc-highpass" href="#highpass">29.72 highpass</a>
  558. <ul class="no-bullet">
  559. <li><a name="toc-Commands-30" href="#Commands-30">29.72.1 Commands</a></li>
  560. </ul></li>
  561. <li><a name="toc-join" href="#join">29.73 join</a></li>
  562. <li><a name="toc-ladspa" href="#ladspa">29.74 ladspa</a>
  563. <ul class="no-bullet">
  564. <li><a name="toc-Examples-165" href="#Examples-165">29.74.1 Examples</a></li>
  565. <li><a name="toc-Commands-50" href="#Commands-50">29.74.2 Commands</a></li>
  566. </ul></li>
  567. <li><a name="toc-loudnorm" href="#loudnorm">29.75 loudnorm</a></li>
  568. <li><a name="toc-lowpass" href="#lowpass">29.76 lowpass</a>
  569. <ul class="no-bullet">
  570. <li><a name="toc-Examples-102" href="#Examples-102">29.76.1 Examples</a></li>
  571. <li><a name="toc-Commands-27" href="#Commands-27">29.76.2 Commands</a></li>
  572. </ul></li>
  573. <li><a name="toc-lv2" href="#lv2">29.77 lv2</a>
  574. <ul class="no-bullet">
  575. <li><a name="toc-Examples-79" href="#Examples-79">29.77.1 Examples</a></li>
  576. </ul></li>
  577. <li><a name="toc-mcompand" href="#mcompand">29.78 mcompand</a></li>
  578. <li><a name="toc-pan-1" href="#pan-1">29.79 pan</a>
  579. <ul class="no-bullet">
  580. <li><a name="toc-Mixing-examples" href="#Mixing-examples">29.79.1 Mixing examples</a></li>
  581. <li><a name="toc-Remapping-examples" href="#Remapping-examples">29.79.2 Remapping examples</a></li>
  582. </ul></li>
  583. <li><a name="toc-replaygain" href="#replaygain">29.80 replaygain</a></li>
  584. <li><a name="toc-resample" href="#resample">29.81 resample</a></li>
  585. <li><a name="toc-rubberband" href="#rubberband">29.82 rubberband</a>
  586. <ul class="no-bullet">
  587. <li><a name="toc-Commands-8" href="#Commands-8">29.82.1 Commands</a></li>
  588. </ul></li>
  589. <li><a name="toc-sidechaincompress" href="#sidechaincompress">29.83 sidechaincompress</a>
  590. <ul class="no-bullet">
  591. <li><a name="toc-Commands-6" href="#Commands-6">29.83.1 Commands</a></li>
  592. <li><a name="toc-Examples-117" href="#Examples-117">29.83.2 Examples</a></li>
  593. </ul></li>
  594. <li><a name="toc-sidechaingate" href="#sidechaingate">29.84 sidechaingate</a></li>
  595. <li><a name="toc-silencedetect" href="#silencedetect">29.85 silencedetect</a>
  596. <ul class="no-bullet">
  597. <li><a name="toc-Examples-20" href="#Examples-20">29.85.1 Examples</a></li>
  598. </ul></li>
  599. <li><a name="toc-silenceremove" href="#silenceremove">29.86 silenceremove</a>
  600. <ul class="no-bullet">
  601. <li><a name="toc-Examples-128" href="#Examples-128">29.86.1 Examples</a></li>
  602. </ul></li>
  603. <li><a name="toc-sofalizer" href="#sofalizer">29.87 sofalizer</a>
  604. <ul class="no-bullet">
  605. <li><a name="toc-Examples-154" href="#Examples-154">29.87.1 Examples</a></li>
  606. </ul></li>
  607. <li><a name="toc-stereotools" href="#stereotools">29.88 stereotools</a>
  608. <ul class="no-bullet">
  609. <li><a name="toc-Examples-11" href="#Examples-11">29.88.1 Examples</a></li>
  610. </ul></li>
  611. <li><a name="toc-stereowiden" href="#stereowiden">29.89 stereowiden</a>
  612. <ul class="no-bullet">
  613. <li><a name="toc-Commands-57" href="#Commands-57">29.89.1 Commands</a></li>
  614. </ul></li>
  615. <li><a name="toc-superequalizer" href="#superequalizer">29.90 superequalizer</a></li>
  616. <li><a name="toc-surround" href="#surround">29.91 surround</a></li>
  617. <li><a name="toc-treble_002c-highshelf" href="#treble_002c-highshelf">29.92 treble, highshelf</a>
  618. <ul class="no-bullet">
  619. <li><a name="toc-Commands-7" href="#Commands-7">29.92.1 Commands</a></li>
  620. </ul></li>
  621. <li><a name="toc-tremolo" href="#tremolo">29.93 tremolo</a></li>
  622. <li><a name="toc-vibrato" href="#vibrato">29.94 vibrato</a></li>
  623. <li><a name="toc-volume" href="#volume">29.95 volume</a>
  624. <ul class="no-bullet">
  625. <li><a name="toc-Commands-4" href="#Commands-4">29.95.1 Commands</a></li>
  626. <li><a name="toc-Examples-140" href="#Examples-140">29.95.2 Examples</a></li>
  627. </ul></li>
  628. <li><a name="toc-volumedetect" href="#volumedetect">29.96 volumedetect</a>
  629. <ul class="no-bullet">
  630. <li><a name="toc-Examples-26" href="#Examples-26">29.96.1 Examples</a></li>
  631. </ul>
  632. </li>
  633. </ul></li>
  634. <li><a name="toc-Audio-Sources" href="#Audio-Sources">30 Audio Sources</a>
  635. <ul class="no-bullet">
  636. <li><a name="toc-abuffer" href="#abuffer">30.1 abuffer</a>
  637. <ul class="no-bullet">
  638. <li><a name="toc-Examples-116" href="#Examples-116">30.1.1 Examples</a></li>
  639. </ul></li>
  640. <li><a name="toc-aevalsrc" href="#aevalsrc">30.2 aevalsrc</a>
  641. <ul class="no-bullet">
  642. <li><a name="toc-Examples-57" href="#Examples-57">30.2.1 Examples</a></li>
  643. </ul></li>
  644. <li><a name="toc-afirsrc" href="#afirsrc">30.3 afirsrc</a></li>
  645. <li><a name="toc-anullsrc" href="#anullsrc">30.4 anullsrc</a>
  646. <ul class="no-bullet">
  647. <li><a name="toc-Examples-34" href="#Examples-34">30.4.1 Examples</a></li>
  648. </ul></li>
  649. <li><a name="toc-flite" href="#flite">30.5 flite</a>
  650. <ul class="no-bullet">
  651. <li><a name="toc-Examples-23" href="#Examples-23">30.5.1 Examples</a></li>
  652. </ul></li>
  653. <li><a name="toc-anoisesrc" href="#anoisesrc">30.6 anoisesrc</a>
  654. <ul class="no-bullet">
  655. <li><a name="toc-Examples-17" href="#Examples-17">30.6.1 Examples</a></li>
  656. </ul></li>
  657. <li><a name="toc-hilbert" href="#hilbert">30.7 hilbert</a></li>
  658. <li><a name="toc-sinc" href="#sinc">30.8 sinc</a></li>
  659. <li><a name="toc-sine" href="#sine">30.9 sine</a>
  660. <ul class="no-bullet">
  661. <li><a name="toc-Examples-77" href="#Examples-77">30.9.1 Examples</a></li>
  662. </ul>
  663. </li>
  664. </ul></li>
  665. <li><a name="toc-Audio-Sinks" href="#Audio-Sinks">31 Audio Sinks</a>
  666. <ul class="no-bullet">
  667. <li><a name="toc-abuffersink" href="#abuffersink">31.1 abuffersink</a></li>
  668. <li><a name="toc-anullsink" href="#anullsink">31.2 anullsink</a></li>
  669. </ul></li>
  670. <li><a name="toc-Video-Filters" href="#Video-Filters">32 Video Filters</a>
  671. <ul class="no-bullet">
  672. <li><a name="toc-addroi" href="#addroi">32.1 addroi</a>
  673. <ul class="no-bullet">
  674. <li><a name="toc-Examples-62" href="#Examples-62">32.1.1 Examples</a></li>
  675. </ul></li>
  676. <li><a name="toc-alphaextract" href="#alphaextract">32.2 alphaextract</a></li>
  677. <li><a name="toc-alphamerge" href="#alphamerge">32.3 alphamerge</a></li>
  678. <li><a name="toc-amplify" href="#amplify">32.4 amplify</a>
  679. <ul class="no-bullet">
  680. <li><a name="toc-Commands-20" href="#Commands-20">32.4.1 Commands</a></li>
  681. </ul></li>
  682. <li><a name="toc-ass" href="#ass">32.5 ass</a></li>
  683. <li><a name="toc-atadenoise" href="#atadenoise">32.6 atadenoise</a>
  684. <ul class="no-bullet">
  685. <li><a name="toc-Commands-48" href="#Commands-48">32.6.1 Commands</a></li>
  686. </ul></li>
  687. <li><a name="toc-avgblur" href="#avgblur">32.7 avgblur</a>
  688. <ul class="no-bullet">
  689. <li><a name="toc-Commands-18" href="#Commands-18">32.7.1 Commands</a></li>
  690. </ul></li>
  691. <li><a name="toc-bbox" href="#bbox">32.8 bbox</a></li>
  692. <li><a name="toc-bilateral" href="#bilateral">32.9 bilateral</a></li>
  693. <li><a name="toc-bitplanenoise" href="#bitplanenoise">32.10 bitplanenoise</a></li>
  694. <li><a name="toc-blackdetect" href="#blackdetect">32.11 blackdetect</a></li>
  695. <li><a name="toc-blackframe" href="#blackframe">32.12 blackframe</a></li>
  696. <li><a name="toc-blend-1" href="#blend-1">32.13 blend</a>
  697. <ul class="no-bullet">
  698. <li><a name="toc-Examples-66" href="#Examples-66">32.13.1 Examples</a></li>
  699. </ul></li>
  700. <li><a name="toc-bm3d" href="#bm3d">32.14 bm3d</a>
  701. <ul class="no-bullet">
  702. <li><a name="toc-Examples-30" href="#Examples-30">32.14.1 Examples</a></li>
  703. </ul></li>
  704. <li><a name="toc-boxblur" href="#boxblur">32.15 boxblur</a>
  705. <ul class="no-bullet">
  706. <li><a name="toc-Examples-93" href="#Examples-93">32.15.1 Examples</a></li>
  707. </ul></li>
  708. <li><a name="toc-bwdif" href="#bwdif">32.16 bwdif</a></li>
  709. <li><a name="toc-cas" href="#cas">32.17 cas</a></li>
  710. <li><a name="toc-chromahold" href="#chromahold">32.18 chromahold</a>
  711. <ul class="no-bullet">
  712. <li><a name="toc-Commands-51" href="#Commands-51">32.18.1 Commands</a></li>
  713. </ul></li>
  714. <li><a name="toc-chromakey" href="#chromakey">32.19 chromakey</a>
  715. <ul class="no-bullet">
  716. <li><a name="toc-Commands-59" href="#Commands-59">32.19.1 Commands</a></li>
  717. <li><a name="toc-Examples-55" href="#Examples-55">32.19.2 Examples</a></li>
  718. </ul></li>
  719. <li><a name="toc-chromashift" href="#chromashift">32.20 chromashift</a>
  720. <ul class="no-bullet">
  721. <li><a name="toc-Commands-43" href="#Commands-43">32.20.1 Commands</a></li>
  722. </ul></li>
  723. <li><a name="toc-ciescope" href="#ciescope">32.21 ciescope</a></li>
  724. <li><a name="toc-codecview" href="#codecview">32.22 codecview</a>
  725. <ul class="no-bullet">
  726. <li><a name="toc-Examples-94" href="#Examples-94">32.22.1 Examples</a></li>
  727. </ul></li>
  728. <li><a name="toc-colorbalance" href="#colorbalance">32.23 colorbalance</a>
  729. <ul class="no-bullet">
  730. <li><a name="toc-Examples-148" href="#Examples-148">32.23.1 Examples</a></li>
  731. <li><a name="toc-Commands-26" href="#Commands-26">32.23.2 Commands</a></li>
  732. </ul></li>
  733. <li><a name="toc-colorchannelmixer" href="#colorchannelmixer">32.24 colorchannelmixer</a>
  734. <ul class="no-bullet">
  735. <li><a name="toc-Examples-143" href="#Examples-143">32.24.1 Examples</a></li>
  736. <li><a name="toc-Commands-66" href="#Commands-66">32.24.2 Commands</a></li>
  737. </ul></li>
  738. <li><a name="toc-colorkey" href="#colorkey">32.25 colorkey</a>
  739. <ul class="no-bullet">
  740. <li><a name="toc-Examples-104" href="#Examples-104">32.25.1 Examples</a></li>
  741. <li><a name="toc-Commands" href="#Commands">32.25.2 Commands</a></li>
  742. </ul></li>
  743. <li><a name="toc-colorhold" href="#colorhold">32.26 colorhold</a>
  744. <ul class="no-bullet">
  745. <li><a name="toc-Commands-63" href="#Commands-63">32.26.1 Commands</a></li>
  746. </ul></li>
  747. <li><a name="toc-colorlevels" href="#colorlevels">32.27 colorlevels</a>
  748. <ul class="no-bullet">
  749. <li><a name="toc-Examples-166" href="#Examples-166">32.27.1 Examples</a></li>
  750. <li><a name="toc-Commands-22" href="#Commands-22">32.27.2 Commands</a></li>
  751. </ul></li>
  752. <li><a name="toc-colormatrix" href="#colormatrix">32.28 colormatrix</a></li>
  753. <li><a name="toc-colorspace" href="#colorspace">32.29 colorspace</a></li>
  754. <li><a name="toc-convolution" href="#convolution">32.30 convolution</a>
  755. <ul class="no-bullet">
  756. <li><a name="toc-Examples-61" href="#Examples-61">32.30.1 Examples</a></li>
  757. </ul></li>
  758. <li><a name="toc-convolve" href="#convolve">32.31 convolve</a></li>
  759. <li><a name="toc-copy" href="#copy">32.32 copy</a></li>
  760. <li><a name="toc-coreimage-1" href="#coreimage-1">32.33 coreimage</a>
  761. <ul class="no-bullet">
  762. <li><a name="toc-Examples-99" href="#Examples-99">32.33.1 Examples</a></li>
  763. </ul></li>
  764. <li><a name="toc-cover_005frect" href="#cover_005frect">32.34 cover_rect</a>
  765. <ul class="no-bullet">
  766. <li><a name="toc-Examples" href="#Examples">32.34.1 Examples</a></li>
  767. </ul></li>
  768. <li><a name="toc-crop" href="#crop">32.35 crop</a>
  769. <ul class="no-bullet">
  770. <li><a name="toc-Examples-147" href="#Examples-147">32.35.1 Examples</a></li>
  771. <li><a name="toc-Commands-68" href="#Commands-68">32.35.2 Commands</a></li>
  772. </ul></li>
  773. <li><a name="toc-cropdetect" href="#cropdetect">32.36 cropdetect</a></li>
  774. <li><a name="toc-cue-1" href="#cue-1">32.37 cue</a></li>
  775. <li><a name="toc-curves-1" href="#curves-1">32.38 curves</a>
  776. <ul class="no-bullet">
  777. <li><a name="toc-Examples-75" href="#Examples-75">32.38.1 Examples</a></li>
  778. </ul></li>
  779. <li><a name="toc-datascope" href="#datascope">32.39 datascope</a></li>
  780. <li><a name="toc-dblur" href="#dblur">32.40 dblur</a>
  781. <ul class="no-bullet">
  782. <li><a name="toc-Commands-52" href="#Commands-52">32.40.1 Commands</a></li>
  783. </ul></li>
  784. <li><a name="toc-dctdnoiz" href="#dctdnoiz">32.41 dctdnoiz</a>
  785. <ul class="no-bullet">
  786. <li><a name="toc-Examples-32" href="#Examples-32">32.41.1 Examples</a></li>
  787. </ul></li>
  788. <li><a name="toc-deband" href="#deband">32.42 deband</a></li>
  789. <li><a name="toc-deblock" href="#deblock">32.43 deblock</a>
  790. <ul class="no-bullet">
  791. <li><a name="toc-Examples-97" href="#Examples-97">32.43.1 Examples</a></li>
  792. </ul></li>
  793. <li><a name="toc-decimate-1" href="#decimate-1">32.44 decimate</a></li>
  794. <li><a name="toc-deconvolve" href="#deconvolve">32.45 deconvolve</a></li>
  795. <li><a name="toc-dedot" href="#dedot">32.46 dedot</a></li>
  796. <li><a name="toc-deflate" href="#deflate">32.47 deflate</a>
  797. <ul class="no-bullet">
  798. <li><a name="toc-Commands-12" href="#Commands-12">32.47.1 Commands</a></li>
  799. </ul></li>
  800. <li><a name="toc-deflicker" href="#deflicker">32.48 deflicker</a></li>
  801. <li><a name="toc-dejudder" href="#dejudder">32.49 dejudder</a></li>
  802. <li><a name="toc-delogo" href="#delogo">32.50 delogo</a>
  803. <ul class="no-bullet">
  804. <li><a name="toc-Examples-160" href="#Examples-160">32.50.1 Examples</a></li>
  805. </ul></li>
  806. <li><a name="toc-derain-1" href="#derain-1">32.51 derain</a></li>
  807. <li><a name="toc-deshake" href="#deshake">32.52 deshake</a></li>
  808. <li><a name="toc-despill" href="#despill">32.53 despill</a></li>
  809. <li><a name="toc-detelecine" href="#detelecine">32.54 detelecine</a></li>
  810. <li><a name="toc-dilation" href="#dilation">32.55 dilation</a>
  811. <ul class="no-bullet">
  812. <li><a name="toc-Commands-61" href="#Commands-61">32.55.1 Commands</a></li>
  813. </ul></li>
  814. <li><a name="toc-displace" href="#displace">32.56 displace</a>
  815. <ul class="no-bullet">
  816. <li><a name="toc-Examples-113" href="#Examples-113">32.56.1 Examples</a></li>
  817. </ul></li>
  818. <li><a name="toc-dnn_005fprocessing-1" href="#dnn_005fprocessing-1">32.57 dnn_processing</a>
  819. <ul class="no-bullet">
  820. <li><a name="toc-Examples-145" href="#Examples-145">32.57.1 Examples</a></li>
  821. </ul></li>
  822. <li><a name="toc-drawbox" href="#drawbox">32.58 drawbox</a>
  823. <ul class="no-bullet">
  824. <li><a name="toc-Examples-69" href="#Examples-69">32.58.1 Examples</a></li>
  825. <li><a name="toc-Commands-49" href="#Commands-49">32.58.2 Commands</a></li>
  826. </ul></li>
  827. <li><a name="toc-drawgraph-1" href="#drawgraph-1">32.59 drawgraph</a></li>
  828. <li><a name="toc-drawgrid" href="#drawgrid">32.60 drawgrid</a>
  829. <ul class="no-bullet">
  830. <li><a name="toc-Examples-14" href="#Examples-14">32.60.1 Examples</a></li>
  831. <li><a name="toc-Commands-38" href="#Commands-38">32.60.2 Commands</a></li>
  832. </ul></li>
  833. <li><a name="toc-drawtext-1" href="#drawtext-1">32.61 drawtext</a>
  834. <ul class="no-bullet">
  835. <li><a name="toc-Syntax-2" href="#Syntax-2">32.61.1 Syntax</a></li>
  836. <li><a name="toc-Text-expansion" href="#Text-expansion">32.61.2 Text expansion</a></li>
  837. <li><a name="toc-Commands-10" href="#Commands-10">32.61.3 Commands</a></li>
  838. <li><a name="toc-Examples-52" href="#Examples-52">32.61.4 Examples</a></li>
  839. </ul></li>
  840. <li><a name="toc-edgedetect" href="#edgedetect">32.62 edgedetect</a>
  841. <ul class="no-bullet">
  842. <li><a name="toc-Examples-100" href="#Examples-100">32.62.1 Examples</a></li>
  843. </ul></li>
  844. <li><a name="toc-elbg" href="#elbg">32.63 elbg</a></li>
  845. <li><a name="toc-entropy" href="#entropy">32.64 entropy</a></li>
  846. <li><a name="toc-eq" href="#eq">32.65 eq</a>
  847. <ul class="no-bullet">
  848. <li><a name="toc-Commands-9" href="#Commands-9">32.65.1 Commands</a></li>
  849. </ul></li>
  850. <li><a name="toc-erosion" href="#erosion">32.66 erosion</a>
  851. <ul class="no-bullet">
  852. <li><a name="toc-Commands-11" href="#Commands-11">32.66.1 Commands</a></li>
  853. </ul></li>
  854. <li><a name="toc-extractplanes" href="#extractplanes">32.67 extractplanes</a>
  855. <ul class="no-bullet">
  856. <li><a name="toc-Examples-84" href="#Examples-84">32.67.1 Examples</a></li>
  857. </ul></li>
  858. <li><a name="toc-fade" href="#fade">32.68 fade</a>
  859. <ul class="no-bullet">
  860. <li><a name="toc-Examples-27" href="#Examples-27">32.68.1 Examples</a></li>
  861. </ul></li>
  862. <li><a name="toc-fftdnoiz" href="#fftdnoiz">32.69 fftdnoiz</a></li>
  863. <li><a name="toc-fftfilt" href="#fftfilt">32.70 fftfilt</a>
  864. <ul class="no-bullet">
  865. <li><a name="toc-Examples-82" href="#Examples-82">32.70.1 Examples</a></li>
  866. </ul></li>
  867. <li><a name="toc-field" href="#field">32.71 field</a></li>
  868. <li><a name="toc-fieldhint" href="#fieldhint">32.72 fieldhint</a></li>
  869. <li><a name="toc-fieldmatch" href="#fieldmatch">32.73 fieldmatch</a>
  870. <ul class="no-bullet">
  871. <li><a name="toc-p_002fc_002fn_002fu_002fb-meaning-1" href="#p_002fc_002fn_002fu_002fb-meaning-1">32.73.1 p/c/n/u/b meaning</a>
  872. <ul class="no-bullet">
  873. <li><a name="toc-p_002fc_002fn" href="#p_002fc_002fn">32.73.1.1 p/c/n</a></li>
  874. <li><a name="toc-u_002fb" href="#u_002fb">32.73.1.2 u/b</a></li>
  875. </ul></li>
  876. <li><a name="toc-Examples-47" href="#Examples-47">32.73.2 Examples</a></li>
  877. </ul></li>
  878. <li><a name="toc-fieldorder" href="#fieldorder">32.74 fieldorder</a></li>
  879. <li><a name="toc-fifo_002c-afifo" href="#fifo_002c-afifo">32.75 fifo, afifo</a></li>
  880. <li><a name="toc-fillborders" href="#fillborders">32.76 fillborders</a>
  881. <ul class="no-bullet">
  882. <li><a name="toc-Commands-37" href="#Commands-37">32.76.1 Commands</a></li>
  883. </ul></li>
  884. <li><a name="toc-find_005frect" href="#find_005frect">32.77 find_rect</a>
  885. <ul class="no-bullet">
  886. <li><a name="toc-Examples-37" href="#Examples-37">32.77.1 Examples</a></li>
  887. </ul></li>
  888. <li><a name="toc-floodfill" href="#floodfill">32.78 floodfill</a></li>
  889. <li><a name="toc-format-1" href="#format-1">32.79 format</a>
  890. <ul class="no-bullet">
  891. <li><a name="toc-Examples-41" href="#Examples-41">32.79.1 Examples</a></li>
  892. </ul></li>
  893. <li><a name="toc-fps-1" href="#fps-1">32.80 fps</a>
  894. <ul class="no-bullet">
  895. <li><a name="toc-Examples-64" href="#Examples-64">32.80.1 Examples</a></li>
  896. </ul></li>
  897. <li><a name="toc-framepack" href="#framepack">32.81 framepack</a></li>
  898. <li><a name="toc-framerate" href="#framerate">32.82 framerate</a></li>
  899. <li><a name="toc-framestep" href="#framestep">32.83 framestep</a></li>
  900. <li><a name="toc-freezedetect" href="#freezedetect">32.84 freezedetect</a></li>
  901. <li><a name="toc-freezeframes" href="#freezeframes">32.85 freezeframes</a></li>
  902. <li><a name="toc-frei0r-1" href="#frei0r-1">32.86 frei0r</a>
  903. <ul class="no-bullet">
  904. <li><a name="toc-Examples-159" href="#Examples-159">32.86.1 Examples</a></li>
  905. </ul></li>
  906. <li><a name="toc-fspp" href="#fspp">32.87 fspp</a></li>
  907. <li><a name="toc-gblur" href="#gblur">32.88 gblur</a>
  908. <ul class="no-bullet">
  909. <li><a name="toc-Commands-46" href="#Commands-46">32.88.1 Commands</a></li>
  910. </ul></li>
  911. <li><a name="toc-geq" href="#geq">32.89 geq</a>
  912. <ul class="no-bullet">
  913. <li><a name="toc-Examples-120" href="#Examples-120">32.89.1 Examples</a></li>
  914. </ul></li>
  915. <li><a name="toc-gradfun" href="#gradfun">32.90 gradfun</a>
  916. <ul class="no-bullet">
  917. <li><a name="toc-Examples-108" href="#Examples-108">32.90.1 Examples</a></li>
  918. </ul></li>
  919. <li><a name="toc-graphmonitor-1" href="#graphmonitor-1">32.91 graphmonitor</a></li>
  920. <li><a name="toc-greyedge" href="#greyedge">32.92 greyedge</a>
  921. <ul class="no-bullet">
  922. <li><a name="toc-Examples-136" href="#Examples-136">32.92.1 Examples</a></li>
  923. </ul></li>
  924. <li><a name="toc-haldclut-1" href="#haldclut-1">32.93 haldclut</a>
  925. <ul class="no-bullet">
  926. <li><a name="toc-Workflow-examples" href="#Workflow-examples">32.93.1 Workflow examples</a>
  927. <ul class="no-bullet">
  928. <li><a name="toc-Hald-CLUT-video-stream" href="#Hald-CLUT-video-stream">32.93.1.1 Hald CLUT video stream</a></li>
  929. <li><a name="toc-Hald-CLUT-with-preview" href="#Hald-CLUT-with-preview">32.93.1.2 Hald CLUT with preview</a></li>
  930. </ul>
  931. </li>
  932. </ul></li>
  933. <li><a name="toc-hflip" href="#hflip">32.94 hflip</a></li>
  934. <li><a name="toc-histeq" href="#histeq">32.95 histeq</a></li>
  935. <li><a name="toc-histogram-1" href="#histogram-1">32.96 histogram</a>
  936. <ul class="no-bullet">
  937. <li><a name="toc-Examples-98" href="#Examples-98">32.96.1 Examples</a></li>
  938. </ul></li>
  939. <li><a name="toc-hqdn3d-1" href="#hqdn3d-1">32.97 hqdn3d</a>
  940. <ul class="no-bullet">
  941. <li><a name="toc-Commands-67" href="#Commands-67">32.97.1 Commands</a></li>
  942. </ul></li>
  943. <li><a name="toc-hwdownload-1" href="#hwdownload-1">32.98 hwdownload</a></li>
  944. <li><a name="toc-hwmap" href="#hwmap">32.99 hwmap</a></li>
  945. <li><a name="toc-hwupload-1" href="#hwupload-1">32.100 hwupload</a></li>
  946. <li><a name="toc-hwupload_005fcuda-1" href="#hwupload_005fcuda-1">32.101 hwupload_cuda</a></li>
  947. <li><a name="toc-hqx" href="#hqx">32.102 hqx</a></li>
  948. <li><a name="toc-hstack" href="#hstack">32.103 hstack</a></li>
  949. <li><a name="toc-hue" href="#hue">32.104 hue</a>
  950. <ul class="no-bullet">
  951. <li><a name="toc-Examples-7" href="#Examples-7">32.104.1 Examples</a></li>
  952. <li><a name="toc-Commands-62" href="#Commands-62">32.104.2 Commands</a></li>
  953. </ul></li>
  954. <li><a name="toc-hysteresis" href="#hysteresis">32.105 hysteresis</a></li>
  955. <li><a name="toc-idet" href="#idet">32.106 idet</a></li>
  956. <li><a name="toc-il" href="#il">32.107 il</a>
  957. <ul class="no-bullet">
  958. <li><a name="toc-Commands-55" href="#Commands-55">32.107.1 Commands</a></li>
  959. </ul></li>
  960. <li><a name="toc-inflate" href="#inflate">32.108 inflate</a>
  961. <ul class="no-bullet">
  962. <li><a name="toc-Commands-1" href="#Commands-1">32.108.1 Commands</a></li>
  963. </ul></li>
  964. <li><a name="toc-interlace" href="#interlace">32.109 interlace</a></li>
  965. <li><a name="toc-kerndeint" href="#kerndeint">32.110 kerndeint</a>
  966. <ul class="no-bullet">
  967. <li><a name="toc-Examples-73" href="#Examples-73">32.110.1 Examples</a></li>
  968. </ul></li>
  969. <li><a name="toc-lagfun" href="#lagfun">32.111 lagfun</a></li>
  970. <li><a name="toc-lenscorrection" href="#lenscorrection">32.112 lenscorrection</a>
  971. <ul class="no-bullet">
  972. <li><a name="toc-Options-9" href="#Options-9">32.112.1 Options</a></li>
  973. </ul></li>
  974. <li><a name="toc-lensfun" href="#lensfun">32.113 lensfun</a>
  975. <ul class="no-bullet">
  976. <li><a name="toc-Examples-21" href="#Examples-21">32.113.1 Examples</a></li>
  977. </ul></li>
  978. <li><a name="toc-libvmaf" href="#libvmaf">32.114 libvmaf</a>
  979. <ul class="no-bullet">
  980. <li><a name="toc-Examples-156" href="#Examples-156">32.114.1 Examples</a></li>
  981. </ul></li>
  982. <li><a name="toc-limiter" href="#limiter">32.115 limiter</a></li>
  983. <li><a name="toc-loop" href="#loop">32.116 loop</a>
  984. <ul class="no-bullet">
  985. <li><a name="toc-Examples-28" href="#Examples-28">32.116.1 Examples</a></li>
  986. </ul></li>
  987. <li><a name="toc-lut1d" href="#lut1d">32.117 lut1d</a></li>
  988. <li><a name="toc-lut3d-1" href="#lut3d-1">32.118 lut3d</a></li>
  989. <li><a name="toc-lumakey" href="#lumakey">32.119 lumakey</a>
  990. <ul class="no-bullet">
  991. <li><a name="toc-Commands-34" href="#Commands-34">32.119.1 Commands</a></li>
  992. </ul></li>
  993. <li><a name="toc-lut_002c-lutrgb_002c-lutyuv" href="#lut_002c-lutrgb_002c-lutyuv">32.120 lut, lutrgb, lutyuv</a>
  994. <ul class="no-bullet">
  995. <li><a name="toc-Examples-53" href="#Examples-53">32.120.1 Examples</a></li>
  996. </ul></li>
  997. <li><a name="toc-lut2_002c-tlut2" href="#lut2_002c-tlut2">32.121 lut2, tlut2</a>
  998. <ul class="no-bullet">
  999. <li><a name="toc-Examples-86" href="#Examples-86">32.121.1 Examples</a></li>
  1000. </ul></li>
  1001. <li><a name="toc-maskedclamp" href="#maskedclamp">32.122 maskedclamp</a></li>
  1002. <li><a name="toc-maskedmax" href="#maskedmax">32.123 maskedmax</a></li>
  1003. <li><a name="toc-maskedmerge" href="#maskedmerge">32.124 maskedmerge</a></li>
  1004. <li><a name="toc-maskedmin" href="#maskedmin">32.125 maskedmin</a></li>
  1005. <li><a name="toc-maskedthreshold" href="#maskedthreshold">32.126 maskedthreshold</a></li>
  1006. <li><a name="toc-maskfun" href="#maskfun">32.127 maskfun</a></li>
  1007. <li><a name="toc-mcdeint" href="#mcdeint">32.128 mcdeint</a></li>
  1008. <li><a name="toc-median" href="#median">32.129 median</a>
  1009. <ul class="no-bullet">
  1010. <li><a name="toc-Commands-36" href="#Commands-36">32.129.1 Commands</a></li>
  1011. </ul></li>
  1012. <li><a name="toc-mergeplanes" href="#mergeplanes">32.130 mergeplanes</a>
  1013. <ul class="no-bullet">
  1014. <li><a name="toc-Examples-46" href="#Examples-46">32.130.1 Examples</a></li>
  1015. </ul></li>
  1016. <li><a name="toc-mestimate" href="#mestimate">32.131 mestimate</a></li>
  1017. <li><a name="toc-midequalizer" href="#midequalizer">32.132 midequalizer</a></li>
  1018. <li><a name="toc-minterpolate" href="#minterpolate">32.133 minterpolate</a></li>
  1019. <li><a name="toc-mix" href="#mix">32.134 mix</a></li>
  1020. <li><a name="toc-mpdecimate" href="#mpdecimate">32.135 mpdecimate</a></li>
  1021. <li><a name="toc-negate" href="#negate">32.136 negate</a></li>
  1022. <li><a name="toc-nlmeans-1" href="#nlmeans-1">32.137 nlmeans</a></li>
  1023. <li><a name="toc-nnedi" href="#nnedi">32.138 nnedi</a></li>
  1024. <li><a name="toc-noformat" href="#noformat">32.139 noformat</a>
  1025. <ul class="no-bullet">
  1026. <li><a name="toc-Examples-4" href="#Examples-4">32.139.1 Examples</a></li>
  1027. </ul></li>
  1028. <li><a name="toc-noise-1" href="#noise-1">32.140 noise</a>
  1029. <ul class="no-bullet">
  1030. <li><a name="toc-Examples-45" href="#Examples-45">32.140.1 Examples</a></li>
  1031. </ul></li>
  1032. <li><a name="toc-normalize" href="#normalize">32.141 normalize</a>
  1033. <ul class="no-bullet">
  1034. <li><a name="toc-Commands-42" href="#Commands-42">32.141.1 Commands</a></li>
  1035. <li><a name="toc-Examples-35" href="#Examples-35">32.141.2 Examples</a></li>
  1036. </ul></li>
  1037. <li><a name="toc-null" href="#null">32.142 null</a></li>
  1038. <li><a name="toc-ocr" href="#ocr">32.143 ocr</a></li>
  1039. <li><a name="toc-ocv" href="#ocv">32.144 ocv</a>
  1040. <ul class="no-bullet">
  1041. <li><a name="toc-dilate-1" href="#dilate-1">32.144.1 dilate</a></li>
  1042. <li><a name="toc-erode" href="#erode">32.144.2 erode</a></li>
  1043. <li><a name="toc-smooth" href="#smooth">32.144.3 smooth</a></li>
  1044. </ul></li>
  1045. <li><a name="toc-oscilloscope" href="#oscilloscope">32.145 oscilloscope</a>
  1046. <ul class="no-bullet">
  1047. <li><a name="toc-Commands-32" href="#Commands-32">32.145.1 Commands</a></li>
  1048. <li><a name="toc-Examples-74" href="#Examples-74">32.145.2 Examples</a></li>
  1049. </ul></li>
  1050. <li><a name="toc-overlay-1" href="#overlay-1">32.146 overlay</a>
  1051. <ul class="no-bullet">
  1052. <li><a name="toc-Commands-47" href="#Commands-47">32.146.1 Commands</a></li>
  1053. <li><a name="toc-Examples-33" href="#Examples-33">32.146.2 Examples</a></li>
  1054. </ul></li>
  1055. <li><a name="toc-overlay_005fcuda-1" href="#overlay_005fcuda-1">32.147 overlay_cuda</a></li>
  1056. <li><a name="toc-owdenoise" href="#owdenoise">32.148 owdenoise</a></li>
  1057. <li><a name="toc-pad-1" href="#pad-1">32.149 pad</a>
  1058. <ul class="no-bullet">
  1059. <li><a name="toc-Examples-56" href="#Examples-56">32.149.1 Examples</a></li>
  1060. </ul></li>
  1061. <li><a name="toc-palettegen-1" href="#palettegen-1">32.150 palettegen</a>
  1062. <ul class="no-bullet">
  1063. <li><a name="toc-Examples-87" href="#Examples-87">32.150.1 Examples</a></li>
  1064. </ul></li>
  1065. <li><a name="toc-paletteuse" href="#paletteuse">32.151 paletteuse</a>
  1066. <ul class="no-bullet">
  1067. <li><a name="toc-Examples-67" href="#Examples-67">32.151.1 Examples</a></li>
  1068. </ul></li>
  1069. <li><a name="toc-perspective" href="#perspective">32.152 perspective</a></li>
  1070. <li><a name="toc-phase" href="#phase">32.153 phase</a></li>
  1071. <li><a name="toc-photosensitivity" href="#photosensitivity">32.154 photosensitivity</a></li>
  1072. <li><a name="toc-pixdesctest" href="#pixdesctest">32.155 pixdesctest</a></li>
  1073. <li><a name="toc-pixscope" href="#pixscope">32.156 pixscope</a></li>
  1074. <li><a name="toc-pp" href="#pp">32.157 pp</a>
  1075. <ul class="no-bullet">
  1076. <li><a name="toc-Examples-137" href="#Examples-137">32.157.1 Examples</a></li>
  1077. </ul></li>
  1078. <li><a name="toc-pp7" href="#pp7">32.158 pp7</a></li>
  1079. <li><a name="toc-premultiply" href="#premultiply">32.159 premultiply</a></li>
  1080. <li><a name="toc-prewitt" href="#prewitt">32.160 prewitt</a></li>
  1081. <li><a name="toc-pseudocolor" href="#pseudocolor">32.161 pseudocolor</a>
  1082. <ul class="no-bullet">
  1083. <li><a name="toc-Examples-92" href="#Examples-92">32.161.1 Examples</a></li>
  1084. </ul></li>
  1085. <li><a name="toc-psnr" href="#psnr">32.162 psnr</a>
  1086. <ul class="no-bullet">
  1087. <li><a name="toc-Examples-49" href="#Examples-49">32.162.1 Examples</a></li>
  1088. </ul></li>
  1089. <li><a name="toc-pullup-1" href="#pullup-1">32.163 pullup</a></li>
  1090. <li><a name="toc-qp" href="#qp">32.164 qp</a>
  1091. <ul class="no-bullet">
  1092. <li><a name="toc-Examples-51" href="#Examples-51">32.164.1 Examples</a></li>
  1093. </ul></li>
  1094. <li><a name="toc-random" href="#random">32.165 random</a></li>
  1095. <li><a name="toc-readeia608" href="#readeia608">32.166 readeia608</a>
  1096. <ul class="no-bullet">
  1097. <li><a name="toc-Examples-38" href="#Examples-38">32.166.1 Examples</a></li>
  1098. </ul></li>
  1099. <li><a name="toc-readvitc" href="#readvitc">32.167 readvitc</a>
  1100. <ul class="no-bullet">
  1101. <li><a name="toc-Examples-6" href="#Examples-6">32.167.1 Examples</a></li>
  1102. </ul></li>
  1103. <li><a name="toc-remap" href="#remap">32.168 remap</a></li>
  1104. <li><a name="toc-removegrain" href="#removegrain">32.169 removegrain</a></li>
  1105. <li><a name="toc-removelogo" href="#removelogo">32.170 removelogo</a></li>
  1106. <li><a name="toc-repeatfields" href="#repeatfields">32.171 repeatfields</a></li>
  1107. <li><a name="toc-reverse" href="#reverse">32.172 reverse</a>
  1108. <ul class="no-bullet">
  1109. <li><a name="toc-Examples-36" href="#Examples-36">32.172.1 Examples</a></li>
  1110. </ul></li>
  1111. <li><a name="toc-rgbashift" href="#rgbashift">32.173 rgbashift</a>
  1112. <ul class="no-bullet">
  1113. <li><a name="toc-Commands-56" href="#Commands-56">32.173.1 Commands</a></li>
  1114. </ul></li>
  1115. <li><a name="toc-roberts" href="#roberts">32.174 roberts</a></li>
  1116. <li><a name="toc-rotate" href="#rotate">32.175 rotate</a>
  1117. <ul class="no-bullet">
  1118. <li><a name="toc-Examples-157" href="#Examples-157">32.175.1 Examples</a></li>
  1119. <li><a name="toc-Commands-16" href="#Commands-16">32.175.2 Commands</a></li>
  1120. </ul></li>
  1121. <li><a name="toc-sab" href="#sab">32.176 sab</a></li>
  1122. <li><a name="toc-scale-1" href="#scale-1">32.177 scale</a>
  1123. <ul class="no-bullet">
  1124. <li><a name="toc-Options-16" href="#Options-16">32.177.1 Options</a></li>
  1125. <li><a name="toc-Examples-63" href="#Examples-63">32.177.2 Examples</a></li>
  1126. <li><a name="toc-Commands-33" href="#Commands-33">32.177.3 Commands</a></li>
  1127. </ul></li>
  1128. <li><a name="toc-scale_005fnpp" href="#scale_005fnpp">32.178 scale_npp</a></li>
  1129. <li><a name="toc-scale2ref" href="#scale2ref">32.179 scale2ref</a>
  1130. <ul class="no-bullet">
  1131. <li><a name="toc-Examples-40" href="#Examples-40">32.179.1 Examples</a></li>
  1132. <li><a name="toc-Commands-45" href="#Commands-45">32.179.2 Commands</a></li>
  1133. </ul></li>
  1134. <li><a name="toc-scroll" href="#scroll">32.180 scroll</a>
  1135. <ul class="no-bullet">
  1136. <li><a name="toc-Commands-23" href="#Commands-23">32.180.1 Commands</a></li>
  1137. </ul></li>
  1138. <li><a name="toc-scdet-1" href="#scdet-1">32.181 scdet</a></li>
  1139. <li><a name="toc-selectivecolor-1" href="#selectivecolor-1">32.182 selectivecolor</a>
  1140. <ul class="no-bullet">
  1141. <li><a name="toc-Examples-151" href="#Examples-151">32.182.1 Examples</a></li>
  1142. </ul></li>
  1143. <li><a name="toc-separatefields-1" href="#separatefields-1">32.183 separatefields</a></li>
  1144. <li><a name="toc-setdar_002c-setsar" href="#setdar_002c-setsar">32.184 setdar, setsar</a>
  1145. <ul class="no-bullet">
  1146. <li><a name="toc-Examples-135" href="#Examples-135">32.184.1 Examples</a></li>
  1147. </ul></li>
  1148. <li><a name="toc-setfield-1" href="#setfield-1">32.185 setfield</a></li>
  1149. <li><a name="toc-setparams-1" href="#setparams-1">32.186 setparams</a></li>
  1150. <li><a name="toc-showinfo" href="#showinfo">32.187 showinfo</a></li>
  1151. <li><a name="toc-showpalette" href="#showpalette">32.188 showpalette</a></li>
  1152. <li><a name="toc-shuffleframes" href="#shuffleframes">32.189 shuffleframes</a>
  1153. <ul class="no-bullet">
  1154. <li><a name="toc-Examples-146" href="#Examples-146">32.189.1 Examples</a></li>
  1155. </ul></li>
  1156. <li><a name="toc-shuffleplanes" href="#shuffleplanes">32.190 shuffleplanes</a>
  1157. <ul class="no-bullet">
  1158. <li><a name="toc-Examples-89" href="#Examples-89">32.190.1 Examples</a></li>
  1159. </ul></li>
  1160. <li><a name="toc-signalstats-1" href="#signalstats-1">32.191 signalstats</a>
  1161. <ul class="no-bullet">
  1162. <li><a name="toc-Examples-105" href="#Examples-105">32.191.1 Examples</a></li>
  1163. </ul></li>
  1164. <li><a name="toc-signature-1" href="#signature-1">32.192 signature</a>
  1165. <ul class="no-bullet">
  1166. <li><a name="toc-Examples-132" href="#Examples-132">32.192.1 Examples</a></li>
  1167. </ul></li>
  1168. <li><a name="toc-smartblur-1" href="#smartblur-1">32.193 smartblur</a></li>
  1169. <li><a name="toc-sobel" href="#sobel">32.194 sobel</a></li>
  1170. <li><a name="toc-spp-1" href="#spp-1">32.195 spp</a>
  1171. <ul class="no-bullet">
  1172. <li><a name="toc-Commands-28" href="#Commands-28">32.195.1 Commands</a></li>
  1173. </ul></li>
  1174. <li><a name="toc-sr-1" href="#sr-1">32.196 sr</a></li>
  1175. <li><a name="toc-ssim" href="#ssim">32.197 ssim</a>
  1176. <ul class="no-bullet">
  1177. <li><a name="toc-Examples-72" href="#Examples-72">32.197.1 Examples</a></li>
  1178. </ul></li>
  1179. <li><a name="toc-stereo3d" href="#stereo3d">32.198 stereo3d</a>
  1180. <ul class="no-bullet">
  1181. <li><a name="toc-Examples-16" href="#Examples-16">32.198.1 Examples</a></li>
  1182. </ul></li>
  1183. <li><a name="toc-streamselect_002c-astreamselect" href="#streamselect_002c-astreamselect">32.199 streamselect, astreamselect</a>
  1184. <ul class="no-bullet">
  1185. <li><a name="toc-Commands-39" href="#Commands-39">32.199.1 Commands</a></li>
  1186. <li><a name="toc-Examples-123" href="#Examples-123">32.199.2 Examples</a></li>
  1187. </ul></li>
  1188. <li><a name="toc-subtitles-1" href="#subtitles-1">32.200 subtitles</a></li>
  1189. <li><a name="toc-super2xsai" href="#super2xsai">32.201 super2xsai</a></li>
  1190. <li><a name="toc-swaprect" href="#swaprect">32.202 swaprect</a></li>
  1191. <li><a name="toc-swapuv" href="#swapuv">32.203 swapuv</a></li>
  1192. <li><a name="toc-tblend" href="#tblend">32.204 tblend</a></li>
  1193. <li><a name="toc-telecine" href="#telecine">32.205 telecine</a></li>
  1194. <li><a name="toc-thistogram" href="#thistogram">32.206 thistogram</a></li>
  1195. <li><a name="toc-threshold" href="#threshold">32.207 threshold</a>
  1196. <ul class="no-bullet">
  1197. <li><a name="toc-Examples-133" href="#Examples-133">32.207.1 Examples</a></li>
  1198. </ul></li>
  1199. <li><a name="toc-thumbnail" href="#thumbnail">32.208 thumbnail</a>
  1200. <ul class="no-bullet">
  1201. <li><a name="toc-Examples-121" href="#Examples-121">32.208.1 Examples</a></li>
  1202. </ul></li>
  1203. <li><a name="toc-tile-1" href="#tile-1">32.209 tile</a>
  1204. <ul class="no-bullet">
  1205. <li><a name="toc-Examples-107" href="#Examples-107">32.209.1 Examples</a></li>
  1206. </ul></li>
  1207. <li><a name="toc-tinterlace" href="#tinterlace">32.210 tinterlace</a></li>
  1208. <li><a name="toc-tmedian" href="#tmedian">32.211 tmedian</a></li>
  1209. <li><a name="toc-tmix" href="#tmix">32.212 tmix</a>
  1210. <ul class="no-bullet">
  1211. <li><a name="toc-Examples-118" href="#Examples-118">32.212.1 Examples</a></li>
  1212. </ul></li>
  1213. <li><a name="toc-tonemap-1" href="#tonemap-1">32.213 tonemap</a>
  1214. <ul class="no-bullet">
  1215. <li><a name="toc-Options" href="#Options">32.213.1 Options</a></li>
  1216. </ul></li>
  1217. <li><a name="toc-tpad" href="#tpad">32.214 tpad</a></li>
  1218. <li><a name="toc-transpose-1" href="#transpose-1">32.215 transpose</a></li>
  1219. <li><a name="toc-transpose_005fnpp" href="#transpose_005fnpp">32.216 transpose_npp</a></li>
  1220. <li><a name="toc-trim" href="#trim">32.217 trim</a></li>
  1221. <li><a name="toc-unpremultiply" href="#unpremultiply">32.218 unpremultiply</a></li>
  1222. <li><a name="toc-unsharp-1" href="#unsharp-1">32.219 unsharp</a>
  1223. <ul class="no-bullet">
  1224. <li><a name="toc-Examples-80" href="#Examples-80">32.219.1 Examples</a></li>
  1225. </ul></li>
  1226. <li><a name="toc-untile-1" href="#untile-1">32.220 untile</a>
  1227. <ul class="no-bullet">
  1228. <li><a name="toc-Examples-76" href="#Examples-76">32.220.1 Examples</a></li>
  1229. </ul></li>
  1230. <li><a name="toc-uspp" href="#uspp">32.221 uspp</a></li>
  1231. <li><a name="toc-v360" href="#v360">32.222 v360</a>
  1232. <ul class="no-bullet">
  1233. <li><a name="toc-Examples-91" href="#Examples-91">32.222.1 Examples</a></li>
  1234. <li><a name="toc-Commands-71" href="#Commands-71">32.222.2 Commands</a></li>
  1235. </ul></li>
  1236. <li><a name="toc-vaguedenoiser" href="#vaguedenoiser">32.223 vaguedenoiser</a></li>
  1237. <li><a name="toc-vectorscope" href="#vectorscope">32.224 vectorscope</a></li>
  1238. <li><a name="toc-vidstabdetect-1" href="#vidstabdetect-1">32.225 vidstabdetect</a>
  1239. <ul class="no-bullet">
  1240. <li><a name="toc-Examples-149" href="#Examples-149">32.225.1 Examples</a></li>
  1241. </ul></li>
  1242. <li><a name="toc-vidstabtransform-1" href="#vidstabtransform-1">32.226 vidstabtransform</a>
  1243. <ul class="no-bullet">
  1244. <li><a name="toc-Options-7" href="#Options-7">32.226.1 Options</a></li>
  1245. <li><a name="toc-Examples-119" href="#Examples-119">32.226.2 Examples</a></li>
  1246. </ul></li>
  1247. <li><a name="toc-vflip" href="#vflip">32.227 vflip</a></li>
  1248. <li><a name="toc-vfrdet" href="#vfrdet">32.228 vfrdet</a></li>
  1249. <li><a name="toc-vibrance" href="#vibrance">32.229 vibrance</a>
  1250. <ul class="no-bullet">
  1251. <li><a name="toc-Commands-60" href="#Commands-60">32.229.1 Commands</a></li>
  1252. </ul></li>
  1253. <li><a name="toc-vignette-1" href="#vignette-1">32.230 vignette</a>
  1254. <ul class="no-bullet">
  1255. <li><a name="toc-Expressions" href="#Expressions">32.230.1 Expressions</a></li>
  1256. <li><a name="toc-Examples-141" href="#Examples-141">32.230.2 Examples</a></li>
  1257. </ul></li>
  1258. <li><a name="toc-vmafmotion" href="#vmafmotion">32.231 vmafmotion</a></li>
  1259. <li><a name="toc-vstack" href="#vstack">32.232 vstack</a></li>
  1260. <li><a name="toc-w3fdif" href="#w3fdif">32.233 w3fdif</a></li>
  1261. <li><a name="toc-waveform" href="#waveform">32.234 waveform</a></li>
  1262. <li><a name="toc-weave_002c-doubleweave" href="#weave_002c-doubleweave">32.235 weave, doubleweave</a>
  1263. <ul class="no-bullet">
  1264. <li><a name="toc-Examples-127" href="#Examples-127">32.235.1 Examples</a></li>
  1265. </ul></li>
  1266. <li><a name="toc-xbr" href="#xbr">32.236 xbr</a></li>
  1267. <li><a name="toc-xfade" href="#xfade">32.237 xfade</a>
  1268. <ul class="no-bullet">
  1269. <li><a name="toc-Examples-103" href="#Examples-103">32.237.1 Examples</a></li>
  1270. </ul></li>
  1271. <li><a name="toc-xmedian" href="#xmedian">32.238 xmedian</a></li>
  1272. <li><a name="toc-xstack" href="#xstack">32.239 xstack</a>
  1273. <ul class="no-bullet">
  1274. <li><a name="toc-Examples-90" href="#Examples-90">32.239.1 Examples</a></li>
  1275. </ul></li>
  1276. <li><a name="toc-yadif-1" href="#yadif-1">32.240 yadif</a></li>
  1277. <li><a name="toc-yadif_005fcuda" href="#yadif_005fcuda">32.241 yadif_cuda</a></li>
  1278. <li><a name="toc-yaepblur" href="#yaepblur">32.242 yaepblur</a>
  1279. <ul class="no-bullet">
  1280. <li><a name="toc-Commands-15" href="#Commands-15">32.242.1 Commands</a></li>
  1281. </ul></li>
  1282. <li><a name="toc-zoompan" href="#zoompan">32.243 zoompan</a>
  1283. <ul class="no-bullet">
  1284. <li><a name="toc-Examples-48" href="#Examples-48">32.243.1 Examples</a></li>
  1285. </ul></li>
  1286. <li><a name="toc-zscale-1" href="#zscale-1">32.244 zscale</a>
  1287. <ul class="no-bullet">
  1288. <li><a name="toc-Options-13" href="#Options-13">32.244.1 Options</a></li>
  1289. <li><a name="toc-Commands-64" href="#Commands-64">32.244.2 Commands</a></li>
  1290. </ul>
  1291. </li>
  1292. </ul></li>
  1293. <li><a name="toc-OpenCL-Video-Filters" href="#OpenCL-Video-Filters">33 OpenCL Video Filters</a>
  1294. <ul class="no-bullet">
  1295. <li><a name="toc-avgblur_005fopencl" href="#avgblur_005fopencl">33.1 avgblur_opencl</a>
  1296. <ul class="no-bullet">
  1297. <li><a name="toc-Example-2" href="#Example-2">33.1.1 Example</a></li>
  1298. </ul></li>
  1299. <li><a name="toc-boxblur_005fopencl" href="#boxblur_005fopencl">33.2 boxblur_opencl</a>
  1300. <ul class="no-bullet">
  1301. <li><a name="toc-Examples-13" href="#Examples-13">33.2.1 Examples</a></li>
  1302. </ul></li>
  1303. <li><a name="toc-colorkey_005fopencl" href="#colorkey_005fopencl">33.3 colorkey_opencl</a>
  1304. <ul class="no-bullet">
  1305. <li><a name="toc-Examples-134" href="#Examples-134">33.3.1 Examples</a></li>
  1306. </ul></li>
  1307. <li><a name="toc-convolution_005fopencl" href="#convolution_005fopencl">33.4 convolution_opencl</a>
  1308. <ul class="no-bullet">
  1309. <li><a name="toc-Examples-109" href="#Examples-109">33.4.1 Examples</a></li>
  1310. </ul></li>
  1311. <li><a name="toc-erosion_005fopencl" href="#erosion_005fopencl">33.5 erosion_opencl</a>
  1312. <ul class="no-bullet">
  1313. <li><a name="toc-Example-6" href="#Example-6">33.5.1 Example</a></li>
  1314. </ul></li>
  1315. <li><a name="toc-deshake_005fopencl" href="#deshake_005fopencl">33.6 deshake_opencl</a>
  1316. <ul class="no-bullet">
  1317. <li><a name="toc-Examples-29" href="#Examples-29">33.6.1 Examples</a></li>
  1318. </ul></li>
  1319. <li><a name="toc-dilation_005fopencl" href="#dilation_005fopencl">33.7 dilation_opencl</a>
  1320. <ul class="no-bullet">
  1321. <li><a name="toc-Example-3" href="#Example-3">33.7.1 Example</a></li>
  1322. </ul></li>
  1323. <li><a name="toc-nlmeans_005fopencl" href="#nlmeans_005fopencl">33.8 nlmeans_opencl</a></li>
  1324. <li><a name="toc-overlay_005fopencl" href="#overlay_005fopencl">33.9 overlay_opencl</a>
  1325. <ul class="no-bullet">
  1326. <li><a name="toc-Examples-71" href="#Examples-71">33.9.1 Examples</a></li>
  1327. </ul></li>
  1328. <li><a name="toc-pad_005fopencl" href="#pad_005fopencl">33.10 pad_opencl</a></li>
  1329. <li><a name="toc-prewitt_005fopencl" href="#prewitt_005fopencl">33.11 prewitt_opencl</a>
  1330. <ul class="no-bullet">
  1331. <li><a name="toc-Example" href="#Example">33.11.1 Example</a></li>
  1332. </ul></li>
  1333. <li><a name="toc-program_005fopencl-1" href="#program_005fopencl-1">33.12 program_opencl</a></li>
  1334. <li><a name="toc-roberts_005fopencl" href="#roberts_005fopencl">33.13 roberts_opencl</a>
  1335. <ul class="no-bullet">
  1336. <li><a name="toc-Example-1" href="#Example-1">33.13.1 Example</a></li>
  1337. </ul></li>
  1338. <li><a name="toc-sobel_005fopencl" href="#sobel_005fopencl">33.14 sobel_opencl</a>
  1339. <ul class="no-bullet">
  1340. <li><a name="toc-Example-4" href="#Example-4">33.14.1 Example</a></li>
  1341. </ul></li>
  1342. <li><a name="toc-tonemap_005fopencl" href="#tonemap_005fopencl">33.15 tonemap_opencl</a>
  1343. <ul class="no-bullet">
  1344. <li><a name="toc-Example-7" href="#Example-7">33.15.1 Example</a></li>
  1345. </ul></li>
  1346. <li><a name="toc-unsharp_005fopencl" href="#unsharp_005fopencl">33.16 unsharp_opencl</a>
  1347. <ul class="no-bullet">
  1348. <li><a name="toc-Examples-58" href="#Examples-58">33.16.1 Examples</a></li>
  1349. </ul></li>
  1350. <li><a name="toc-xfade_005fopencl" href="#xfade_005fopencl">33.17 xfade_opencl</a></li>
  1351. </ul></li>
  1352. <li><a name="toc-VAAPI-Video-Filters" href="#VAAPI-Video-Filters">34 VAAPI Video Filters</a>
  1353. <ul class="no-bullet">
  1354. <li><a name="toc-tonemap_005fvaapi" href="#tonemap_005fvaapi">34.1 tonemap_vaapi</a>
  1355. <ul class="no-bullet">
  1356. <li><a name="toc-Example-5" href="#Example-5">34.1.1 Example</a></li>
  1357. </ul>
  1358. </li>
  1359. </ul></li>
  1360. <li><a name="toc-Video-Sources" href="#Video-Sources">35 Video Sources</a>
  1361. <ul class="no-bullet">
  1362. <li><a name="toc-buffer" href="#buffer">35.1 buffer</a></li>
  1363. <li><a name="toc-cellauto" href="#cellauto">35.2 cellauto</a>
  1364. <ul class="no-bullet">
  1365. <li><a name="toc-Examples-88" href="#Examples-88">35.2.1 Examples</a></li>
  1366. </ul></li>
  1367. <li><a name="toc-coreimagesrc-1" href="#coreimagesrc-1">35.3 coreimagesrc</a>
  1368. <ul class="no-bullet">
  1369. <li><a name="toc-Examples-164" href="#Examples-164">35.3.1 Examples</a></li>
  1370. </ul></li>
  1371. <li><a name="toc-gradients" href="#gradients">35.4 gradients</a></li>
  1372. <li><a name="toc-mandelbrot" href="#mandelbrot">35.5 mandelbrot</a></li>
  1373. <li><a name="toc-mptestsrc" href="#mptestsrc">35.6 mptestsrc</a></li>
  1374. <li><a name="toc-frei0r_005fsrc" href="#frei0r_005fsrc">35.7 frei0r_src</a></li>
  1375. <li><a name="toc-life" href="#life">35.8 life</a>
  1376. <ul class="no-bullet">
  1377. <li><a name="toc-Examples-106" href="#Examples-106">35.8.1 Examples</a></li>
  1378. </ul></li>
  1379. <li><a name="toc-allrgb_002c-allyuv_002c-color_002c-haldclutsrc_002c-nullsrc_002c-pal75bars_002c-pal100bars_002c-rgbtestsrc_002c-smptebars_002c-smptehdbars_002c-testsrc_002c-testsrc2_002c-yuvtestsrc" href="#allrgb_002c-allyuv_002c-color_002c-haldclutsrc_002c-nullsrc_002c-pal75bars_002c-pal100bars_002c-rgbtestsrc_002c-smptebars_002c-smptehdbars_002c-testsrc_002c-testsrc2_002c-yuvtestsrc">35.9 allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc</a>
  1380. <ul class="no-bullet">
  1381. <li><a name="toc-Examples-3" href="#Examples-3">35.9.1 Examples</a></li>
  1382. <li><a name="toc-Commands-31" href="#Commands-31">35.9.2 Commands</a></li>
  1383. </ul></li>
  1384. <li><a name="toc-openclsrc" href="#openclsrc">35.10 openclsrc</a></li>
  1385. <li><a name="toc-sierpinski" href="#sierpinski">35.11 sierpinski</a></li>
  1386. </ul></li>
  1387. <li><a name="toc-Video-Sinks" href="#Video-Sinks">36 Video Sinks</a>
  1388. <ul class="no-bullet">
  1389. <li><a name="toc-buffersink" href="#buffersink">36.1 buffersink</a></li>
  1390. <li><a name="toc-nullsink" href="#nullsink">36.2 nullsink</a></li>
  1391. </ul></li>
  1392. <li><a name="toc-Multimedia-Filters" href="#Multimedia-Filters">37 Multimedia Filters</a>
  1393. <ul class="no-bullet">
  1394. <li><a name="toc-abitscope" href="#abitscope">37.1 abitscope</a></li>
  1395. <li><a name="toc-adrawgraph" href="#adrawgraph">37.2 adrawgraph</a></li>
  1396. <li><a name="toc-agraphmonitor" href="#agraphmonitor">37.3 agraphmonitor</a></li>
  1397. <li><a name="toc-ahistogram" href="#ahistogram">37.4 ahistogram</a></li>
  1398. <li><a name="toc-aphasemeter" href="#aphasemeter">37.5 aphasemeter</a></li>
  1399. <li><a name="toc-avectorscope" href="#avectorscope">37.6 avectorscope</a>
  1400. <ul class="no-bullet">
  1401. <li><a name="toc-Examples-15" href="#Examples-15">37.6.1 Examples</a></li>
  1402. </ul></li>
  1403. <li><a name="toc-bench_002c-abench" href="#bench_002c-abench">37.7 bench, abench</a>
  1404. <ul class="no-bullet">
  1405. <li><a name="toc-Examples-130" href="#Examples-130">37.7.1 Examples</a></li>
  1406. </ul></li>
  1407. <li><a name="toc-concat-3" href="#concat-3">37.8 concat</a>
  1408. <ul class="no-bullet">
  1409. <li><a name="toc-Examples-65" href="#Examples-65">37.8.1 Examples</a></li>
  1410. <li><a name="toc-Commands-21" href="#Commands-21">37.8.2 Commands</a></li>
  1411. </ul></li>
  1412. <li><a name="toc-ebur128-1" href="#ebur128-1">37.9 ebur128</a>
  1413. <ul class="no-bullet">
  1414. <li><a name="toc-Examples-54" href="#Examples-54">37.9.1 Examples</a></li>
  1415. </ul></li>
  1416. <li><a name="toc-interleave_002c-ainterleave" href="#interleave_002c-ainterleave">37.10 interleave, ainterleave</a>
  1417. <ul class="no-bullet">
  1418. <li><a name="toc-Examples-85" href="#Examples-85">37.10.1 Examples</a></li>
  1419. </ul></li>
  1420. <li><a name="toc-metadata_002c-ametadata" href="#metadata_002c-ametadata">37.11 metadata, ametadata</a>
  1421. <ul class="no-bullet">
  1422. <li><a name="toc-Examples-115" href="#Examples-115">37.11.1 Examples</a></li>
  1423. </ul></li>
  1424. <li><a name="toc-perms_002c-aperms" href="#perms_002c-aperms">37.12 perms, aperms</a></li>
  1425. <li><a name="toc-realtime_002c-arealtime" href="#realtime_002c-arealtime">37.13 realtime, arealtime</a></li>
  1426. <li><a name="toc-select_002c-aselect" href="#select_002c-aselect">37.14 select, aselect</a>
  1427. <ul class="no-bullet">
  1428. <li><a name="toc-Examples-59" href="#Examples-59">37.14.1 Examples</a></li>
  1429. </ul></li>
  1430. <li><a name="toc-sendcmd_002c-asendcmd" href="#sendcmd_002c-asendcmd">37.15 sendcmd, asendcmd</a>
  1431. <ul class="no-bullet">
  1432. <li><a name="toc-Commands-syntax" href="#Commands-syntax">37.15.1 Commands syntax</a></li>
  1433. <li><a name="toc-Examples-60" href="#Examples-60">37.15.2 Examples</a></li>
  1434. </ul></li>
  1435. <li><a name="toc-setpts_002c-asetpts" href="#setpts_002c-asetpts">37.16 setpts, asetpts</a>
  1436. <ul class="no-bullet">
  1437. <li><a name="toc-Examples-150" href="#Examples-150">37.16.1 Examples</a></li>
  1438. </ul></li>
  1439. <li><a name="toc-setrange" href="#setrange">37.17 setrange</a></li>
  1440. <li><a name="toc-settb_002c-asettb" href="#settb_002c-asettb">37.18 settb, asettb</a>
  1441. <ul class="no-bullet">
  1442. <li><a name="toc-Examples-142" href="#Examples-142">37.18.1 Examples</a></li>
  1443. </ul></li>
  1444. <li><a name="toc-showcqt" href="#showcqt">37.19 showcqt</a>
  1445. <ul class="no-bullet">
  1446. <li><a name="toc-Examples-8" href="#Examples-8">37.19.1 Examples</a></li>
  1447. </ul></li>
  1448. <li><a name="toc-showfreqs" href="#showfreqs">37.20 showfreqs</a></li>
  1449. <li><a name="toc-showspatial" href="#showspatial">37.21 showspatial</a></li>
  1450. <li><a name="toc-showspectrum-1" href="#showspectrum-1">37.22 showspectrum</a>
  1451. <ul class="no-bullet">
  1452. <li><a name="toc-Examples-95" href="#Examples-95">37.22.1 Examples</a></li>
  1453. </ul></li>
  1454. <li><a name="toc-showspectrumpic" href="#showspectrumpic">37.23 showspectrumpic</a>
  1455. <ul class="no-bullet">
  1456. <li><a name="toc-Examples-126" href="#Examples-126">37.23.1 Examples</a></li>
  1457. </ul></li>
  1458. <li><a name="toc-showvolume" href="#showvolume">37.24 showvolume</a></li>
  1459. <li><a name="toc-showwaves" href="#showwaves">37.25 showwaves</a>
  1460. <ul class="no-bullet">
  1461. <li><a name="toc-Examples-5" href="#Examples-5">37.25.1 Examples</a></li>
  1462. </ul></li>
  1463. <li><a name="toc-showwavespic" href="#showwavespic">37.26 showwavespic</a>
  1464. <ul class="no-bullet">
  1465. <li><a name="toc-Examples-112" href="#Examples-112">37.26.1 Examples</a></li>
  1466. </ul></li>
  1467. <li><a name="toc-sidedata_002c-asidedata" href="#sidedata_002c-asidedata">37.27 sidedata, asidedata</a></li>
  1468. <li><a name="toc-spectrumsynth" href="#spectrumsynth">37.28 spectrumsynth</a>
  1469. <ul class="no-bullet">
  1470. <li><a name="toc-Examples-9" href="#Examples-9">37.28.1 Examples</a></li>
  1471. </ul></li>
  1472. <li><a name="toc-split_002c-asplit" href="#split_002c-asplit">37.29 split, asplit</a>
  1473. <ul class="no-bullet">
  1474. <li><a name="toc-Examples-129" href="#Examples-129">37.29.1 Examples</a></li>
  1475. </ul></li>
  1476. <li><a name="toc-zmq_002c-azmq" href="#zmq_002c-azmq">37.30 zmq, azmq</a>
  1477. <ul class="no-bullet">
  1478. <li><a name="toc-Examples-155" href="#Examples-155">37.30.1 Examples</a></li>
  1479. </ul>
  1480. </li>
  1481. </ul></li>
  1482. <li><a name="toc-Multimedia-Sources" href="#Multimedia-Sources">38 Multimedia Sources</a>
  1483. <ul class="no-bullet">
  1484. <li><a name="toc-amovie" href="#amovie">38.1 amovie</a></li>
  1485. <li><a name="toc-movie-1" href="#movie-1">38.2 movie</a>
  1486. <ul class="no-bullet">
  1487. <li><a name="toc-Examples-50" href="#Examples-50">38.2.1 Examples</a></li>
  1488. <li><a name="toc-Commands-5" href="#Commands-5">38.2.2 Commands</a></li>
  1489. </ul>
  1490. </li>
  1491. </ul></li>
  1492. <li><a name="toc-See-Also" href="#See-Also">39 See Also</a></li>
  1493. <li><a name="toc-Authors" href="#Authors">40 Authors</a></li>
  1494. </ul>
  1495. </div>
  1496. <hr size="6">
  1497. <a name="Synopsis"></a>
  1498. <h1 class="chapter"><a href="ffprobe-all.html#toc-Synopsis">1 Synopsis</a></h1>
  1499. <p>ffprobe [<var>options</var>] [&lsquo;<tt>input_url</tt>&rsquo;]
  1500. </p>
  1501. <a name="Description"></a>
  1502. <h1 class="chapter"><a href="ffprobe-all.html#toc-Description">2 Description</a></h1>
  1503. <p>ffprobe gathers information from multimedia streams and prints it in
  1504. human- and machine-readable fashion.
  1505. </p>
  1506. <p>For example it can be used to check the format of the container used
  1507. by a multimedia stream and the format and type of each media stream
  1508. contained in it.
  1509. </p>
  1510. <p>If a url is specified in input, ffprobe will try to open and
  1511. probe the url content. If the url cannot be opened or recognized as
  1512. a multimedia file, a positive exit code is returned.
  1513. </p>
  1514. <p>ffprobe may be employed both as a standalone application or in
  1515. combination with a textual filter, which may perform more
  1516. sophisticated processing, e.g. statistical processing or plotting.
  1517. </p>
  1518. <p>Options are used to list some of the formats supported by ffprobe or
  1519. for specifying which information to display, and for setting how
  1520. ffprobe will show it.
  1521. </p>
  1522. <p>ffprobe output is designed to be easily parsable by a textual filter,
  1523. and consists of one or more sections of a form defined by the selected
  1524. writer, which is specified by the &lsquo;<samp>print_format</samp>&rsquo; option.
  1525. </p>
  1526. <p>Sections may contain other nested sections, and are identified by a
  1527. name (which may be shared by other sections), and an unique
  1528. name. See the output of &lsquo;<samp>sections</samp>&rsquo;.
  1529. </p>
  1530. <p>Metadata tags stored in the container or in the streams are recognized
  1531. and printed in the corresponding &quot;FORMAT&quot;, &quot;STREAM&quot; or &quot;PROGRAM_STREAM&quot;
  1532. section.
  1533. </p>
  1534. <a name="Options-33"></a>
  1535. <h1 class="chapter"><a href="ffprobe-all.html#toc-Options-33">3 Options</a></h1>
  1536. <p>All the numerical options, if not specified otherwise, accept a string
  1537. representing a number as input, which may be followed by one of the SI
  1538. unit prefixes, for example: &rsquo;K&rsquo;, &rsquo;M&rsquo;, or &rsquo;G&rsquo;.
  1539. </p>
  1540. <p>If &rsquo;i&rsquo; is appended to the SI unit prefix, the complete prefix will be
  1541. interpreted as a unit prefix for binary multiples, which are based on
  1542. powers of 1024 instead of powers of 1000. Appending &rsquo;B&rsquo; to the SI unit
  1543. prefix multiplies the value by 8. This allows using, for example:
  1544. &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as number suffixes.
  1545. </p>
  1546. <p>Options which do not take arguments are boolean options, and set the
  1547. corresponding value to true. They can be set to false by prefixing
  1548. the option name with &quot;no&quot;. For example using &quot;-nofoo&quot;
  1549. will set the boolean option with name &quot;foo&quot; to false.
  1550. </p>
  1551. <p><a name="Stream-specifiers"></a>
  1552. </p><a name="Stream-specifiers-1"></a>
  1553. <h2 class="section"><a href="ffprobe-all.html#toc-Stream-specifiers-1">3.1 Stream specifiers</a></h2>
  1554. <p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
  1555. are used to precisely specify which stream(s) a given option belongs to.
  1556. </p>
  1557. <p>A stream specifier is a string generally appended to the option name and
  1558. separated from it by a colon. E.g. <code>-codec:a:1 ac3</code> contains the
  1559. <code>a:1</code> stream specifier, which matches the second audio stream. Therefore, it
  1560. would select the ac3 codec for the second audio stream.
  1561. </p>
  1562. <p>A stream specifier can match several streams, so that the option is applied to all
  1563. of them. E.g. the stream specifier in <code>-b:a 128k</code> matches all audio
  1564. streams.
  1565. </p>
  1566. <p>An empty stream specifier matches all streams. For example, <code>-codec copy</code>
  1567. or <code>-codec: copy</code> would copy all the streams without reencoding.
  1568. </p>
  1569. <p>Possible forms of stream specifiers are:
  1570. </p><dl compact="compact">
  1571. <dt>&lsquo;<samp><var>stream_index</var></samp>&rsquo;</dt>
  1572. <dd><p>Matches the stream with this index. E.g. <code>-threads:1 4</code> would set the
  1573. thread count for the second stream to 4. If <var>stream_index</var> is used as an
  1574. additional stream specifier (see below), then it selects stream number
  1575. <var>stream_index</var> from the matching streams. Stream numbering is based on the
  1576. order of the streams as detected by libavformat except when a program ID is
  1577. also specified. In this case it is based on the ordering of the streams in the
  1578. program.
  1579. </p></dd>
  1580. <dt>&lsquo;<samp><var>stream_type</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  1581. <dd><p><var>stream_type</var> is one of following: &rsquo;v&rsquo; or &rsquo;V&rsquo; for video, &rsquo;a&rsquo; for audio, &rsquo;s&rsquo;
  1582. for subtitle, &rsquo;d&rsquo; for data, and &rsquo;t&rsquo; for attachments. &rsquo;v&rsquo; matches all video
  1583. streams, &rsquo;V&rsquo; only matches video streams which are not attached pictures, video
  1584. thumbnails or cover arts. If <var>additional_stream_specifier</var> is used, then
  1585. it matches streams which both have this type and match the
  1586. <var>additional_stream_specifier</var>. Otherwise, it matches all streams of the
  1587. specified type.
  1588. </p></dd>
  1589. <dt>&lsquo;<samp>p:<var>program_id</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  1590. <dd><p>Matches streams which are in the program with the id <var>program_id</var>. If
  1591. <var>additional_stream_specifier</var> is used, then it matches streams which both
  1592. are part of the program and match the <var>additional_stream_specifier</var>.
  1593. </p>
  1594. </dd>
  1595. <dt>&lsquo;<samp>#<var>stream_id</var> or i:<var>stream_id</var></samp>&rsquo;</dt>
  1596. <dd><p>Match the stream by stream id (e.g. PID in MPEG-TS container).
  1597. </p></dd>
  1598. <dt>&lsquo;<samp>m:<var>key</var>[:<var>value</var>]</samp>&rsquo;</dt>
  1599. <dd><p>Matches streams with the metadata tag <var>key</var> having the specified value. If
  1600. <var>value</var> is not given, matches streams that contain the given tag with any
  1601. value.
  1602. </p></dd>
  1603. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  1604. <dd><p>Matches streams with usable configuration, the codec must be defined and the
  1605. essential information such as video dimension or audio sample rate must be present.
  1606. </p>
  1607. <p>Note that in <code>ffmpeg</code>, matching by metadata will only work properly for
  1608. input files.
  1609. </p></dd>
  1610. </dl>
  1611. <a name="Generic-options"></a>
  1612. <h2 class="section"><a href="ffprobe-all.html#toc-Generic-options">3.2 Generic options</a></h2>
  1613. <p>These options are shared amongst the ff* tools.
  1614. </p>
  1615. <dl compact="compact">
  1616. <dt>&lsquo;<samp>-L</samp>&rsquo;</dt>
  1617. <dd><p>Show license.
  1618. </p>
  1619. </dd>
  1620. <dt>&lsquo;<samp>-h, -?, -help, --help [<var>arg</var>]</samp>&rsquo;</dt>
  1621. <dd><p>Show help. An optional parameter may be specified to print help about a specific
  1622. item. If no argument is specified, only basic (non advanced) tool
  1623. options are shown.
  1624. </p>
  1625. <p>Possible values of <var>arg</var> are:
  1626. </p><dl compact="compact">
  1627. <dt>&lsquo;<samp>long</samp>&rsquo;</dt>
  1628. <dd><p>Print advanced tool options in addition to the basic tool options.
  1629. </p>
  1630. </dd>
  1631. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  1632. <dd><p>Print complete list of options, including shared and private options
  1633. for encoders, decoders, demuxers, muxers, filters, etc.
  1634. </p>
  1635. </dd>
  1636. <dt>&lsquo;<samp>decoder=<var>decoder_name</var></samp>&rsquo;</dt>
  1637. <dd><p>Print detailed information about the decoder named <var>decoder_name</var>. Use the
  1638. &lsquo;<samp>-decoders</samp>&rsquo; option to get a list of all decoders.
  1639. </p>
  1640. </dd>
  1641. <dt>&lsquo;<samp>encoder=<var>encoder_name</var></samp>&rsquo;</dt>
  1642. <dd><p>Print detailed information about the encoder named <var>encoder_name</var>. Use the
  1643. &lsquo;<samp>-encoders</samp>&rsquo; option to get a list of all encoders.
  1644. </p>
  1645. </dd>
  1646. <dt>&lsquo;<samp>demuxer=<var>demuxer_name</var></samp>&rsquo;</dt>
  1647. <dd><p>Print detailed information about the demuxer named <var>demuxer_name</var>. Use the
  1648. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all demuxers and muxers.
  1649. </p>
  1650. </dd>
  1651. <dt>&lsquo;<samp>muxer=<var>muxer_name</var></samp>&rsquo;</dt>
  1652. <dd><p>Print detailed information about the muxer named <var>muxer_name</var>. Use the
  1653. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all muxers and demuxers.
  1654. </p>
  1655. </dd>
  1656. <dt>&lsquo;<samp>filter=<var>filter_name</var></samp>&rsquo;</dt>
  1657. <dd><p>Print detailed information about the filter name <var>filter_name</var>. Use the
  1658. &lsquo;<samp>-filters</samp>&rsquo; option to get a list of all filters.
  1659. </p>
  1660. </dd>
  1661. <dt>&lsquo;<samp>bsf=<var>bitstream_filter_name</var></samp>&rsquo;</dt>
  1662. <dd><p>Print detailed information about the bitstream filter name <var>bitstream_filter_name</var>.
  1663. Use the &lsquo;<samp>-bsfs</samp>&rsquo; option to get a list of all bitstream filters.
  1664. </p></dd>
  1665. </dl>
  1666. </dd>
  1667. <dt>&lsquo;<samp>-version</samp>&rsquo;</dt>
  1668. <dd><p>Show version.
  1669. </p>
  1670. </dd>
  1671. <dt>&lsquo;<samp>-formats</samp>&rsquo;</dt>
  1672. <dd><p>Show available formats (including devices).
  1673. </p>
  1674. </dd>
  1675. <dt>&lsquo;<samp>-demuxers</samp>&rsquo;</dt>
  1676. <dd><p>Show available demuxers.
  1677. </p>
  1678. </dd>
  1679. <dt>&lsquo;<samp>-muxers</samp>&rsquo;</dt>
  1680. <dd><p>Show available muxers.
  1681. </p>
  1682. </dd>
  1683. <dt>&lsquo;<samp>-devices</samp>&rsquo;</dt>
  1684. <dd><p>Show available devices.
  1685. </p>
  1686. </dd>
  1687. <dt>&lsquo;<samp>-codecs</samp>&rsquo;</dt>
  1688. <dd><p>Show all codecs known to libavcodec.
  1689. </p>
  1690. <p>Note that the term &rsquo;codec&rsquo; is used throughout this documentation as a shortcut
  1691. for what is more correctly called a media bitstream format.
  1692. </p>
  1693. </dd>
  1694. <dt>&lsquo;<samp>-decoders</samp>&rsquo;</dt>
  1695. <dd><p>Show available decoders.
  1696. </p>
  1697. </dd>
  1698. <dt>&lsquo;<samp>-encoders</samp>&rsquo;</dt>
  1699. <dd><p>Show all available encoders.
  1700. </p>
  1701. </dd>
  1702. <dt>&lsquo;<samp>-bsfs</samp>&rsquo;</dt>
  1703. <dd><p>Show available bitstream filters.
  1704. </p>
  1705. </dd>
  1706. <dt>&lsquo;<samp>-protocols</samp>&rsquo;</dt>
  1707. <dd><p>Show available protocols.
  1708. </p>
  1709. </dd>
  1710. <dt>&lsquo;<samp>-filters</samp>&rsquo;</dt>
  1711. <dd><p>Show available libavfilter filters.
  1712. </p>
  1713. </dd>
  1714. <dt>&lsquo;<samp>-pix_fmts</samp>&rsquo;</dt>
  1715. <dd><p>Show available pixel formats.
  1716. </p>
  1717. </dd>
  1718. <dt>&lsquo;<samp>-sample_fmts</samp>&rsquo;</dt>
  1719. <dd><p>Show available sample formats.
  1720. </p>
  1721. </dd>
  1722. <dt>&lsquo;<samp>-layouts</samp>&rsquo;</dt>
  1723. <dd><p>Show channel names and standard channel layouts.
  1724. </p>
  1725. </dd>
  1726. <dt>&lsquo;<samp>-colors</samp>&rsquo;</dt>
  1727. <dd><p>Show recognized color names.
  1728. </p>
  1729. </dd>
  1730. <dt>&lsquo;<samp>-sources <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  1731. <dd><p>Show autodetected sources of the input device.
  1732. Some devices may provide system-dependent source names that cannot be autodetected.
  1733. The returned list cannot be assumed to be always complete.
  1734. </p><div class="example">
  1735. <pre class="example">ffmpeg -sources pulse,server=192.168.0.4
  1736. </pre></div>
  1737. </dd>
  1738. <dt>&lsquo;<samp>-sinks <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  1739. <dd><p>Show autodetected sinks of the output device.
  1740. Some devices may provide system-dependent sink names that cannot be autodetected.
  1741. The returned list cannot be assumed to be always complete.
  1742. </p><div class="example">
  1743. <pre class="example">ffmpeg -sinks pulse,server=192.168.0.4
  1744. </pre></div>
  1745. </dd>
  1746. <dt>&lsquo;<samp>-loglevel [<var>flags</var>+]<var>loglevel</var> | -v [<var>flags</var>+]<var>loglevel</var></samp>&rsquo;</dt>
  1747. <dd><p>Set logging level and flags used by the library.
  1748. </p>
  1749. <p>The optional <var>flags</var> prefix can consist of the following values:
  1750. </p><dl compact="compact">
  1751. <dt>&lsquo;<samp>repeat</samp>&rsquo;</dt>
  1752. <dd><p>Indicates that repeated log output should not be compressed to the first line
  1753. and the &quot;Last message repeated n times&quot; line will be omitted.
  1754. </p></dd>
  1755. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  1756. <dd><p>Indicates that log output should add a <code>[level]</code> prefix to each message
  1757. line. This can be used as an alternative to log coloring, e.g. when dumping the
  1758. log to file.
  1759. </p></dd>
  1760. </dl>
  1761. <p>Flags can also be used alone by adding a &rsquo;+&rsquo;/&rsquo;-&rsquo; prefix to set/reset a single
  1762. flag without affecting other <var>flags</var> or changing <var>loglevel</var>. When
  1763. setting both <var>flags</var> and <var>loglevel</var>, a &rsquo;+&rsquo; separator is expected
  1764. between the last <var>flags</var> value and before <var>loglevel</var>.
  1765. </p>
  1766. <p><var>loglevel</var> is a string or a number containing one of the following values:
  1767. </p><dl compact="compact">
  1768. <dt>&lsquo;<samp>quiet, -8</samp>&rsquo;</dt>
  1769. <dd><p>Show nothing at all; be silent.
  1770. </p></dd>
  1771. <dt>&lsquo;<samp>panic, 0</samp>&rsquo;</dt>
  1772. <dd><p>Only show fatal errors which could lead the process to crash, such as
  1773. an assertion failure. This is not currently used for anything.
  1774. </p></dd>
  1775. <dt>&lsquo;<samp>fatal, 8</samp>&rsquo;</dt>
  1776. <dd><p>Only show fatal errors. These are errors after which the process absolutely
  1777. cannot continue.
  1778. </p></dd>
  1779. <dt>&lsquo;<samp>error, 16</samp>&rsquo;</dt>
  1780. <dd><p>Show all errors, including ones which can be recovered from.
  1781. </p></dd>
  1782. <dt>&lsquo;<samp>warning, 24</samp>&rsquo;</dt>
  1783. <dd><p>Show all warnings and errors. Any message related to possibly
  1784. incorrect or unexpected events will be shown.
  1785. </p></dd>
  1786. <dt>&lsquo;<samp>info, 32</samp>&rsquo;</dt>
  1787. <dd><p>Show informative messages during processing. This is in addition to
  1788. warnings and errors. This is the default value.
  1789. </p></dd>
  1790. <dt>&lsquo;<samp>verbose, 40</samp>&rsquo;</dt>
  1791. <dd><p>Same as <code>info</code>, except more verbose.
  1792. </p></dd>
  1793. <dt>&lsquo;<samp>debug, 48</samp>&rsquo;</dt>
  1794. <dd><p>Show everything, including debugging information.
  1795. </p></dd>
  1796. <dt>&lsquo;<samp>trace, 56</samp>&rsquo;</dt>
  1797. </dl>
  1798. <p>For example to enable repeated log output, add the <code>level</code> prefix, and set
  1799. <var>loglevel</var> to <code>verbose</code>:
  1800. </p><div class="example">
  1801. <pre class="example">ffmpeg -loglevel repeat+level+verbose -i input output
  1802. </pre></div>
  1803. <p>Another example that enables repeated log output without affecting current
  1804. state of <code>level</code> prefix flag or <var>loglevel</var>:
  1805. </p><div class="example">
  1806. <pre class="example">ffmpeg [...] -loglevel +repeat
  1807. </pre></div>
  1808. <p>By default the program logs to stderr. If coloring is supported by the
  1809. terminal, colors are used to mark errors and warnings. Log coloring
  1810. can be disabled setting the environment variable
  1811. <code>AV_LOG_FORCE_NOCOLOR</code>, or can be forced setting
  1812. the environment variable <code>AV_LOG_FORCE_COLOR</code>.
  1813. </p>
  1814. </dd>
  1815. <dt>&lsquo;<samp>-report</samp>&rsquo;</dt>
  1816. <dd><p>Dump full command line and log output to a file named
  1817. <code><var>program</var>-<var>YYYYMMDD</var>-<var>HHMMSS</var>.log</code> in the current
  1818. directory.
  1819. This file can be useful for bug reports.
  1820. It also implies <code>-loglevel debug</code>.
  1821. </p>
  1822. <p>Setting the environment variable <code>FFREPORT</code> to any value has the
  1823. same effect. If the value is a &rsquo;:&rsquo;-separated key=value sequence, these
  1824. options will affect the report; option values must be escaped if they
  1825. contain special characters or the options delimiter &rsquo;:&rsquo; (see the
  1826. &ldquo;Quoting and escaping&rdquo; section in the ffmpeg-utils manual).
  1827. </p>
  1828. <p>The following options are recognized:
  1829. </p><dl compact="compact">
  1830. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  1831. <dd><p>set the file name to use for the report; <code>%p</code> is expanded to the name
  1832. of the program, <code>%t</code> is expanded to a timestamp, <code>%%</code> is expanded
  1833. to a plain <code>%</code>
  1834. </p></dd>
  1835. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  1836. <dd><p>set the log verbosity level using a numerical value (see <code>-loglevel</code>).
  1837. </p></dd>
  1838. </dl>
  1839. <p>For example, to output a report to a file named &lsquo;<tt>ffreport.log</tt>&rsquo;
  1840. using a log level of <code>32</code> (alias for log level <code>info</code>):
  1841. </p>
  1842. <div class="example">
  1843. <pre class="example">FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output
  1844. </pre></div>
  1845. <p>Errors in parsing the environment variable are not fatal, and will not
  1846. appear in the report.
  1847. </p>
  1848. </dd>
  1849. <dt>&lsquo;<samp>-hide_banner</samp>&rsquo;</dt>
  1850. <dd><p>Suppress printing banner.
  1851. </p>
  1852. <p>All FFmpeg tools will normally show a copyright notice, build options
  1853. and library versions. This option can be used to suppress printing
  1854. this information.
  1855. </p>
  1856. </dd>
  1857. <dt>&lsquo;<samp>-cpuflags flags (<em>global</em>)</samp>&rsquo;</dt>
  1858. <dd><p>Allows setting and clearing cpu flags. This option is intended
  1859. for testing. Do not use it unless you know what you&rsquo;re doing.
  1860. </p><div class="example">
  1861. <pre class="example">ffmpeg -cpuflags -sse+mmx ...
  1862. ffmpeg -cpuflags mmx ...
  1863. ffmpeg -cpuflags 0 ...
  1864. </pre></div>
  1865. <p>Possible flags for this option are:
  1866. </p><dl compact="compact">
  1867. <dt>&lsquo;<samp>x86</samp>&rsquo;</dt>
  1868. <dd><dl compact="compact">
  1869. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  1870. <dt>&lsquo;<samp>mmxext</samp>&rsquo;</dt>
  1871. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1872. <dt>&lsquo;<samp>sse2</samp>&rsquo;</dt>
  1873. <dt>&lsquo;<samp>sse2slow</samp>&rsquo;</dt>
  1874. <dt>&lsquo;<samp>sse3</samp>&rsquo;</dt>
  1875. <dt>&lsquo;<samp>sse3slow</samp>&rsquo;</dt>
  1876. <dt>&lsquo;<samp>ssse3</samp>&rsquo;</dt>
  1877. <dt>&lsquo;<samp>atom</samp>&rsquo;</dt>
  1878. <dt>&lsquo;<samp>sse4.1</samp>&rsquo;</dt>
  1879. <dt>&lsquo;<samp>sse4.2</samp>&rsquo;</dt>
  1880. <dt>&lsquo;<samp>avx</samp>&rsquo;</dt>
  1881. <dt>&lsquo;<samp>avx2</samp>&rsquo;</dt>
  1882. <dt>&lsquo;<samp>xop</samp>&rsquo;</dt>
  1883. <dt>&lsquo;<samp>fma3</samp>&rsquo;</dt>
  1884. <dt>&lsquo;<samp>fma4</samp>&rsquo;</dt>
  1885. <dt>&lsquo;<samp>3dnow</samp>&rsquo;</dt>
  1886. <dt>&lsquo;<samp>3dnowext</samp>&rsquo;</dt>
  1887. <dt>&lsquo;<samp>bmi1</samp>&rsquo;</dt>
  1888. <dt>&lsquo;<samp>bmi2</samp>&rsquo;</dt>
  1889. <dt>&lsquo;<samp>cmov</samp>&rsquo;</dt>
  1890. </dl>
  1891. </dd>
  1892. <dt>&lsquo;<samp>ARM</samp>&rsquo;</dt>
  1893. <dd><dl compact="compact">
  1894. <dt>&lsquo;<samp>armv5te</samp>&rsquo;</dt>
  1895. <dt>&lsquo;<samp>armv6</samp>&rsquo;</dt>
  1896. <dt>&lsquo;<samp>armv6t2</samp>&rsquo;</dt>
  1897. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  1898. <dt>&lsquo;<samp>vfpv3</samp>&rsquo;</dt>
  1899. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  1900. <dt>&lsquo;<samp>setend</samp>&rsquo;</dt>
  1901. </dl>
  1902. </dd>
  1903. <dt>&lsquo;<samp>AArch64</samp>&rsquo;</dt>
  1904. <dd><dl compact="compact">
  1905. <dt>&lsquo;<samp>armv8</samp>&rsquo;</dt>
  1906. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  1907. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  1908. </dl>
  1909. </dd>
  1910. <dt>&lsquo;<samp>PowerPC</samp>&rsquo;</dt>
  1911. <dd><dl compact="compact">
  1912. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  1913. </dl>
  1914. </dd>
  1915. <dt>&lsquo;<samp>Specific Processors</samp>&rsquo;</dt>
  1916. <dd><dl compact="compact">
  1917. <dt>&lsquo;<samp>pentium2</samp>&rsquo;</dt>
  1918. <dt>&lsquo;<samp>pentium3</samp>&rsquo;</dt>
  1919. <dt>&lsquo;<samp>pentium4</samp>&rsquo;</dt>
  1920. <dt>&lsquo;<samp>k6</samp>&rsquo;</dt>
  1921. <dt>&lsquo;<samp>k62</samp>&rsquo;</dt>
  1922. <dt>&lsquo;<samp>athlon</samp>&rsquo;</dt>
  1923. <dt>&lsquo;<samp>athlonxp</samp>&rsquo;</dt>
  1924. <dt>&lsquo;<samp>k8</samp>&rsquo;</dt>
  1925. </dl>
  1926. </dd>
  1927. </dl>
  1928. </dd>
  1929. </dl>
  1930. <a name="AVOptions"></a>
  1931. <h2 class="section"><a href="ffprobe-all.html#toc-AVOptions">3.3 AVOptions</a></h2>
  1932. <p>These options are provided directly by the libavformat, libavdevice and
  1933. libavcodec libraries. To see the list of available AVOptions, use the
  1934. &lsquo;<samp>-help</samp>&rsquo; option. They are separated into two categories:
  1935. </p><dl compact="compact">
  1936. <dt>&lsquo;<samp>generic</samp>&rsquo;</dt>
  1937. <dd><p>These options can be set for any container, codec or device. Generic options
  1938. are listed under AVFormatContext options for containers/devices and under
  1939. AVCodecContext options for codecs.
  1940. </p></dd>
  1941. <dt>&lsquo;<samp>private</samp>&rsquo;</dt>
  1942. <dd><p>These options are specific to the given container, device or codec. Private
  1943. options are listed under their corresponding containers/devices/codecs.
  1944. </p></dd>
  1945. </dl>
  1946. <p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to
  1947. an MP3 file, use the &lsquo;<samp>id3v2_version</samp>&rsquo; private option of the MP3
  1948. muxer:
  1949. </p><div class="example">
  1950. <pre class="example">ffmpeg -i input.flac -id3v2_version 3 out.mp3
  1951. </pre></div>
  1952. <p>All codec AVOptions are per-stream, and thus a stream specifier
  1953. should be attached to them:
  1954. </p><div class="example">
  1955. <pre class="example">ffmpeg -i multichannel.mxf -map 0:v:0 -map 0:a:0 -map 0:a:0 -c:a:0 ac3 -b:a:0 640k -ac:a:1 2 -c:a:1 aac -b:2 128k out.mp4
  1956. </pre></div>
  1957. <p>In the above example, a multichannel audio stream is mapped twice for output.
  1958. The first instance is encoded with codec ac3 and bitrate 640k.
  1959. The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using
  1960. absolute index of the output stream.
  1961. </p>
  1962. <p>Note: the &lsquo;<samp>-nooption</samp>&rsquo; syntax cannot be used for boolean
  1963. AVOptions, use &lsquo;<samp>-option 0</samp>&rsquo;/&lsquo;<samp>-option 1</samp>&rsquo;.
  1964. </p>
  1965. <p>Note: the old undocumented way of specifying per-stream AVOptions by
  1966. prepending v/a/s to the options name is now obsolete and will be
  1967. removed soon.
  1968. </p>
  1969. <a name="Main-options"></a>
  1970. <h2 class="section"><a href="ffprobe-all.html#toc-Main-options">3.4 Main options</a></h2>
  1971. <dl compact="compact">
  1972. <dt>&lsquo;<samp>-f <var>format</var></samp>&rsquo;</dt>
  1973. <dd><p>Force format to use.
  1974. </p>
  1975. </dd>
  1976. <dt>&lsquo;<samp>-unit</samp>&rsquo;</dt>
  1977. <dd><p>Show the unit of the displayed values.
  1978. </p>
  1979. </dd>
  1980. <dt>&lsquo;<samp>-prefix</samp>&rsquo;</dt>
  1981. <dd><p>Use SI prefixes for the displayed values.
  1982. Unless the &quot;-byte_binary_prefix&quot; option is used all the prefixes
  1983. are decimal.
  1984. </p>
  1985. </dd>
  1986. <dt>&lsquo;<samp>-byte_binary_prefix</samp>&rsquo;</dt>
  1987. <dd><p>Force the use of binary prefixes for byte values.
  1988. </p>
  1989. </dd>
  1990. <dt>&lsquo;<samp>-sexagesimal</samp>&rsquo;</dt>
  1991. <dd><p>Use sexagesimal format HH:MM:SS.MICROSECONDS for time values.
  1992. </p>
  1993. </dd>
  1994. <dt>&lsquo;<samp>-pretty</samp>&rsquo;</dt>
  1995. <dd><p>Prettify the format of the displayed values, it corresponds to the
  1996. options &quot;-unit -prefix -byte_binary_prefix -sexagesimal&quot;.
  1997. </p>
  1998. </dd>
  1999. <dt>&lsquo;<samp>-of, -print_format <var>writer_name</var>[=<var>writer_options</var>]</samp>&rsquo;</dt>
  2000. <dd><p>Set the output printing format.
  2001. </p>
  2002. <p><var>writer_name</var> specifies the name of the writer, and
  2003. <var>writer_options</var> specifies the options to be passed to the writer.
  2004. </p>
  2005. <p>For example for printing the output in JSON format, specify:
  2006. </p><div class="example">
  2007. <pre class="example">-print_format json
  2008. </pre></div>
  2009. <p>For more details on the available output printing formats, see the
  2010. Writers section below.
  2011. </p>
  2012. </dd>
  2013. <dt>&lsquo;<samp>-sections</samp>&rsquo;</dt>
  2014. <dd><p>Print sections structure and section information, and exit. The output
  2015. is not meant to be parsed by a machine.
  2016. </p>
  2017. </dd>
  2018. <dt>&lsquo;<samp>-select_streams <var>stream_specifier</var></samp>&rsquo;</dt>
  2019. <dd><p>Select only the streams specified by <var>stream_specifier</var>. This
  2020. option affects only the options related to streams
  2021. (e.g. <code>show_streams</code>, <code>show_packets</code>, etc.).
  2022. </p>
  2023. <p>For example to show only audio streams, you can use the command:
  2024. </p><div class="example">
  2025. <pre class="example">ffprobe -show_streams -select_streams a INPUT
  2026. </pre></div>
  2027. <p>To show only video packets belonging to the video stream with index 1:
  2028. </p><div class="example">
  2029. <pre class="example">ffprobe -show_packets -select_streams v:1 INPUT
  2030. </pre></div>
  2031. </dd>
  2032. <dt>&lsquo;<samp>-show_data</samp>&rsquo;</dt>
  2033. <dd><p>Show payload data, as a hexadecimal and ASCII dump. Coupled with
  2034. &lsquo;<samp>-show_packets</samp>&rsquo;, it will dump the packets&rsquo; data. Coupled with
  2035. &lsquo;<samp>-show_streams</samp>&rsquo;, it will dump the codec extradata.
  2036. </p>
  2037. <p>The dump is printed as the &quot;data&quot; field. It may contain newlines.
  2038. </p>
  2039. </dd>
  2040. <dt>&lsquo;<samp>-show_data_hash <var>algorithm</var></samp>&rsquo;</dt>
  2041. <dd><p>Show a hash of payload data, for packets with &lsquo;<samp>-show_packets</samp>&rsquo; and for
  2042. codec extradata with &lsquo;<samp>-show_streams</samp>&rsquo;.
  2043. </p>
  2044. </dd>
  2045. <dt>&lsquo;<samp>-show_error</samp>&rsquo;</dt>
  2046. <dd><p>Show information about the error found when trying to probe the input.
  2047. </p>
  2048. <p>The error information is printed within a section with name &quot;ERROR&quot;.
  2049. </p>
  2050. </dd>
  2051. <dt>&lsquo;<samp>-show_format</samp>&rsquo;</dt>
  2052. <dd><p>Show information about the container format of the input multimedia
  2053. stream.
  2054. </p>
  2055. <p>All the container format information is printed within a section with
  2056. name &quot;FORMAT&quot;.
  2057. </p>
  2058. </dd>
  2059. <dt>&lsquo;<samp>-show_format_entry <var>name</var></samp>&rsquo;</dt>
  2060. <dd><p>Like &lsquo;<samp>-show_format</samp>&rsquo;, but only prints the specified entry of the
  2061. container format information, rather than all. This option may be given more
  2062. than once, then all specified entries will be shown.
  2063. </p>
  2064. <p>This option is deprecated, use <code>show_entries</code> instead.
  2065. </p>
  2066. </dd>
  2067. <dt>&lsquo;<samp>-show_entries <var>section_entries</var></samp>&rsquo;</dt>
  2068. <dd><p>Set list of entries to show.
  2069. </p>
  2070. <p>Entries are specified according to the following
  2071. syntax. <var>section_entries</var> contains a list of section entries
  2072. separated by <code>:</code>. Each section entry is composed by a section
  2073. name (or unique name), optionally followed by a list of entries local
  2074. to that section, separated by <code>,</code>.
  2075. </p>
  2076. <p>If section name is specified but is followed by no <code>=</code>, all
  2077. entries are printed to output, together with all the contained
  2078. sections. Otherwise only the entries specified in the local section
  2079. entries list are printed. In particular, if <code>=</code> is specified but
  2080. the list of local entries is empty, then no entries will be shown for
  2081. that section.
  2082. </p>
  2083. <p>Note that the order of specification of the local section entries is
  2084. not honored in the output, and the usual display order will be
  2085. retained.
  2086. </p>
  2087. <p>The formal syntax is given by:
  2088. </p><div class="example">
  2089. <pre class="example"><var>LOCAL_SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY_NAME</var>[,<var>LOCAL_SECTION_ENTRIES</var>]
  2090. <var>SECTION_ENTRY</var> ::= <var>SECTION_NAME</var>[=[<var>LOCAL_SECTION_ENTRIES</var>]]
  2091. <var>SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY</var>[:<var>SECTION_ENTRIES</var>]
  2092. </pre></div>
  2093. <p>For example, to show only the index and type of each stream, and the PTS
  2094. time, duration time, and stream index of the packets, you can specify
  2095. the argument:
  2096. </p><div class="example">
  2097. <pre class="example">packet=pts_time,duration_time,stream_index : stream=index,codec_type
  2098. </pre></div>
  2099. <p>To show all the entries in the section &quot;format&quot;, but only the codec
  2100. type in the section &quot;stream&quot;, specify the argument:
  2101. </p><div class="example">
  2102. <pre class="example">format : stream=codec_type
  2103. </pre></div>
  2104. <p>To show all the tags in the stream and format sections:
  2105. </p><div class="example">
  2106. <pre class="example">stream_tags : format_tags
  2107. </pre></div>
  2108. <p>To show only the <code>title</code> tag (if available) in the stream
  2109. sections:
  2110. </p><div class="example">
  2111. <pre class="example">stream_tags=title
  2112. </pre></div>
  2113. </dd>
  2114. <dt>&lsquo;<samp>-show_packets</samp>&rsquo;</dt>
  2115. <dd><p>Show information about each packet contained in the input multimedia
  2116. stream.
  2117. </p>
  2118. <p>The information for each single packet is printed within a dedicated
  2119. section with name &quot;PACKET&quot;.
  2120. </p>
  2121. </dd>
  2122. <dt>&lsquo;<samp>-show_frames</samp>&rsquo;</dt>
  2123. <dd><p>Show information about each frame and subtitle contained in the input
  2124. multimedia stream.
  2125. </p>
  2126. <p>The information for each single frame is printed within a dedicated
  2127. section with name &quot;FRAME&quot; or &quot;SUBTITLE&quot;.
  2128. </p>
  2129. </dd>
  2130. <dt>&lsquo;<samp>-show_log <var>loglevel</var></samp>&rsquo;</dt>
  2131. <dd><p>Show logging information from the decoder about each frame according to
  2132. the value set in <var>loglevel</var>, (see <code>-loglevel</code>). This option requires <code>-show_frames</code>.
  2133. </p>
  2134. <p>The information for each log message is printed within a dedicated
  2135. section with name &quot;LOG&quot;.
  2136. </p>
  2137. </dd>
  2138. <dt>&lsquo;<samp>-show_streams</samp>&rsquo;</dt>
  2139. <dd><p>Show information about each media stream contained in the input
  2140. multimedia stream.
  2141. </p>
  2142. <p>Each media stream information is printed within a dedicated section
  2143. with name &quot;STREAM&quot;.
  2144. </p>
  2145. </dd>
  2146. <dt>&lsquo;<samp>-show_programs</samp>&rsquo;</dt>
  2147. <dd><p>Show information about programs and their streams contained in the input
  2148. multimedia stream.
  2149. </p>
  2150. <p>Each media stream information is printed within a dedicated section
  2151. with name &quot;PROGRAM_STREAM&quot;.
  2152. </p>
  2153. </dd>
  2154. <dt>&lsquo;<samp>-show_chapters</samp>&rsquo;</dt>
  2155. <dd><p>Show information about chapters stored in the format.
  2156. </p>
  2157. <p>Each chapter is printed within a dedicated section with name &quot;CHAPTER&quot;.
  2158. </p>
  2159. </dd>
  2160. <dt>&lsquo;<samp>-count_frames</samp>&rsquo;</dt>
  2161. <dd><p>Count the number of frames per stream and report it in the
  2162. corresponding stream section.
  2163. </p>
  2164. </dd>
  2165. <dt>&lsquo;<samp>-count_packets</samp>&rsquo;</dt>
  2166. <dd><p>Count the number of packets per stream and report it in the
  2167. corresponding stream section.
  2168. </p>
  2169. </dd>
  2170. <dt>&lsquo;<samp>-read_intervals <var>read_intervals</var></samp>&rsquo;</dt>
  2171. <dd>
  2172. <p>Read only the specified intervals. <var>read_intervals</var> must be a
  2173. sequence of interval specifications separated by &quot;,&quot;.
  2174. <code>ffprobe</code> will seek to the interval starting point, and will
  2175. continue reading from that.
  2176. </p>
  2177. <p>Each interval is specified by two optional parts, separated by &quot;%&quot;.
  2178. </p>
  2179. <p>The first part specifies the interval start position. It is
  2180. interpreted as an absolute position, or as a relative offset from the
  2181. current position if it is preceded by the &quot;+&quot; character. If this first
  2182. part is not specified, no seeking will be performed when reading this
  2183. interval.
  2184. </p>
  2185. <p>The second part specifies the interval end position. It is interpreted
  2186. as an absolute position, or as a relative offset from the current
  2187. position if it is preceded by the &quot;+&quot; character. If the offset
  2188. specification starts with &quot;#&quot;, it is interpreted as the number of
  2189. packets to read (not including the flushing packets) from the interval
  2190. start. If no second part is specified, the program will read until the
  2191. end of the input.
  2192. </p>
  2193. <p>Note that seeking is not accurate, thus the actual interval start
  2194. point may be different from the specified position. Also, when an
  2195. interval duration is specified, the absolute end time will be computed
  2196. by adding the duration to the interval start point found by seeking
  2197. the file, rather than to the specified start value.
  2198. </p>
  2199. <p>The formal syntax is given by:
  2200. </p><div class="example">
  2201. <pre class="example"><var>INTERVAL</var> ::= [<var>START</var>|+<var>START_OFFSET</var>][%[<var>END</var>|+<var>END_OFFSET</var>]]
  2202. <var>INTERVALS</var> ::= <var>INTERVAL</var>[,<var>INTERVALS</var>]
  2203. </pre></div>
  2204. <p>A few examples follow.
  2205. </p><ul>
  2206. <li>
  2207. Seek to time 10, read packets until 20 seconds after the found seek
  2208. point, then seek to position <code>01:30</code> (1 minute and thirty
  2209. seconds) and read packets until position <code>01:45</code>.
  2210. <div class="example">
  2211. <pre class="example">10%+20,01:30%01:45
  2212. </pre></div>
  2213. </li><li>
  2214. Read only 42 packets after seeking to position <code>01:23</code>:
  2215. <div class="example">
  2216. <pre class="example">01:23%+#42
  2217. </pre></div>
  2218. </li><li>
  2219. Read only the first 20 seconds from the start:
  2220. <div class="example">
  2221. <pre class="example">%+20
  2222. </pre></div>
  2223. </li><li>
  2224. Read from the start until position <code>02:30</code>:
  2225. <div class="example">
  2226. <pre class="example">%02:30
  2227. </pre></div>
  2228. </li></ul>
  2229. </dd>
  2230. <dt>&lsquo;<samp>-show_private_data, -private</samp>&rsquo;</dt>
  2231. <dd><p>Show private data, that is data depending on the format of the
  2232. particular shown element.
  2233. This option is enabled by default, but you may need to disable it
  2234. for specific uses, for example when creating XSD-compliant XML output.
  2235. </p>
  2236. </dd>
  2237. <dt>&lsquo;<samp>-show_program_version</samp>&rsquo;</dt>
  2238. <dd><p>Show information related to program version.
  2239. </p>
  2240. <p>Version information is printed within a section with name
  2241. &quot;PROGRAM_VERSION&quot;.
  2242. </p>
  2243. </dd>
  2244. <dt>&lsquo;<samp>-show_library_versions</samp>&rsquo;</dt>
  2245. <dd><p>Show information related to library versions.
  2246. </p>
  2247. <p>Version information for each library is printed within a section with
  2248. name &quot;LIBRARY_VERSION&quot;.
  2249. </p>
  2250. </dd>
  2251. <dt>&lsquo;<samp>-show_versions</samp>&rsquo;</dt>
  2252. <dd><p>Show information related to program and library versions. This is the
  2253. equivalent of setting both &lsquo;<samp>-show_program_version</samp>&rsquo; and
  2254. &lsquo;<samp>-show_library_versions</samp>&rsquo; options.
  2255. </p>
  2256. </dd>
  2257. <dt>&lsquo;<samp>-show_pixel_formats</samp>&rsquo;</dt>
  2258. <dd><p>Show information about all pixel formats supported by FFmpeg.
  2259. </p>
  2260. <p>Pixel format information for each format is printed within a section
  2261. with name &quot;PIXEL_FORMAT&quot;.
  2262. </p>
  2263. </dd>
  2264. <dt>&lsquo;<samp>-bitexact</samp>&rsquo;</dt>
  2265. <dd><p>Force bitexact output, useful to produce output which is not dependent
  2266. on the specific build.
  2267. </p>
  2268. </dd>
  2269. <dt>&lsquo;<samp>-i <var>input_url</var></samp>&rsquo;</dt>
  2270. <dd><p>Read <var>input_url</var>.
  2271. </p>
  2272. </dd>
  2273. </dl>
  2274. <a name="Writers"></a>
  2275. <h1 class="chapter"><a href="ffprobe-all.html#toc-Writers">4 Writers</a></h1>
  2276. <p>A writer defines the output format adopted by <code>ffprobe</code>, and will be
  2277. used for printing all the parts of the output.
  2278. </p>
  2279. <p>A writer may accept one or more arguments, which specify the options
  2280. to adopt. The options are specified as a list of <var>key</var>=<var>value</var>
  2281. pairs, separated by &quot;:&quot;.
  2282. </p>
  2283. <p>All writers support the following options:
  2284. </p>
  2285. <dl compact="compact">
  2286. <dt>&lsquo;<samp>string_validation, sv</samp>&rsquo;</dt>
  2287. <dd><p>Set string validation mode.
  2288. </p>
  2289. <p>The following values are accepted.
  2290. </p><dl compact="compact">
  2291. <dt>&lsquo;<samp>fail</samp>&rsquo;</dt>
  2292. <dd><p>The writer will fail immediately in case an invalid string (UTF-8)
  2293. sequence or code point is found in the input. This is especially
  2294. useful to validate input metadata.
  2295. </p>
  2296. </dd>
  2297. <dt>&lsquo;<samp>ignore</samp>&rsquo;</dt>
  2298. <dd><p>Any validation error will be ignored. This will result in possibly
  2299. broken output, especially with the json or xml writer.
  2300. </p>
  2301. </dd>
  2302. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  2303. <dd><p>The writer will substitute invalid UTF-8 sequences or code points with
  2304. the string specified with the &lsquo;<samp>string_validation_replacement</samp>&rsquo;.
  2305. </p></dd>
  2306. </dl>
  2307. <p>Default value is &lsquo;<samp>replace</samp>&rsquo;.
  2308. </p>
  2309. </dd>
  2310. <dt>&lsquo;<samp>string_validation_replacement, svr</samp>&rsquo;</dt>
  2311. <dd><p>Set replacement string to use in case &lsquo;<samp>string_validation</samp>&rsquo; is
  2312. set to &lsquo;<samp>replace</samp>&rsquo;.
  2313. </p>
  2314. <p>In case the option is not specified, the writer will assume the empty
  2315. string, that is it will remove the invalid sequences from the input
  2316. strings.
  2317. </p></dd>
  2318. </dl>
  2319. <p>A description of the currently available writers follows.
  2320. </p>
  2321. <a name="default"></a>
  2322. <h2 class="section"><a href="ffprobe-all.html#toc-default">4.1 default</a></h2>
  2323. <p>Default format.
  2324. </p>
  2325. <p>Print each section in the form:
  2326. </p><div class="example">
  2327. <pre class="example">[SECTION]
  2328. key1=val1
  2329. ...
  2330. keyN=valN
  2331. [/SECTION]
  2332. </pre></div>
  2333. <p>Metadata tags are printed as a line in the corresponding FORMAT, STREAM or
  2334. PROGRAM_STREAM section, and are prefixed by the string &quot;TAG:&quot;.
  2335. </p>
  2336. <p>A description of the accepted options follows.
  2337. </p>
  2338. <dl compact="compact">
  2339. <dt>&lsquo;<samp>nokey, nk</samp>&rsquo;</dt>
  2340. <dd><p>If set to 1 specify not to print the key of each field. Default value
  2341. is 0.
  2342. </p>
  2343. </dd>
  2344. <dt>&lsquo;<samp>noprint_wrappers, nw</samp>&rsquo;</dt>
  2345. <dd><p>If set to 1 specify not to print the section header and footer.
  2346. Default value is 0.
  2347. </p></dd>
  2348. </dl>
  2349. <a name="compact_002c-csv"></a>
  2350. <h2 class="section"><a href="ffprobe-all.html#toc-compact_002c-csv">4.2 compact, csv</a></h2>
  2351. <p>Compact and CSV format.
  2352. </p>
  2353. <p>The <code>csv</code> writer is equivalent to <code>compact</code>, but supports
  2354. different defaults.
  2355. </p>
  2356. <p>Each section is printed on a single line.
  2357. If no option is specified, the output has the form:
  2358. </p><div class="example">
  2359. <pre class="example">section|key1=val1| ... |keyN=valN
  2360. </pre></div>
  2361. <p>Metadata tags are printed in the corresponding &quot;format&quot; or &quot;stream&quot;
  2362. section. A metadata tag key, if printed, is prefixed by the string
  2363. &quot;tag:&quot;.
  2364. </p>
  2365. <p>The description of the accepted options follows.
  2366. </p>
  2367. <dl compact="compact">
  2368. <dt>&lsquo;<samp>item_sep, s</samp>&rsquo;</dt>
  2369. <dd><p>Specify the character to use for separating fields in the output line.
  2370. It must be a single printable character, it is &quot;|&quot; by default (&quot;,&quot; for
  2371. the <code>csv</code> writer).
  2372. </p>
  2373. </dd>
  2374. <dt>&lsquo;<samp>nokey, nk</samp>&rsquo;</dt>
  2375. <dd><p>If set to 1 specify not to print the key of each field. Its default
  2376. value is 0 (1 for the <code>csv</code> writer).
  2377. </p>
  2378. </dd>
  2379. <dt>&lsquo;<samp>escape, e</samp>&rsquo;</dt>
  2380. <dd><p>Set the escape mode to use, default to &quot;c&quot; (&quot;csv&quot; for the <code>csv</code>
  2381. writer).
  2382. </p>
  2383. <p>It can assume one of the following values:
  2384. </p><dl compact="compact">
  2385. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  2386. <dd><p>Perform C-like escaping. Strings containing a newline (&lsquo;<samp>\n</samp>&rsquo;), carriage
  2387. return (&lsquo;<samp>\r</samp>&rsquo;), a tab (&lsquo;<samp>\t</samp>&rsquo;), a form feed (&lsquo;<samp>\f</samp>&rsquo;), the escaping
  2388. character (&lsquo;<samp>\</samp>&rsquo;) or the item separator character <var>SEP</var> are escaped
  2389. using C-like fashioned escaping, so that a newline is converted to the
  2390. sequence &lsquo;<samp>\n</samp>&rsquo;, a carriage return to &lsquo;<samp>\r</samp>&rsquo;, &lsquo;<samp>\</samp>&rsquo; to &lsquo;<samp>\\</samp>&rsquo; and
  2391. the separator <var>SEP</var> is converted to &lsquo;<samp>\<var>SEP</var></samp>&rsquo;.
  2392. </p>
  2393. </dd>
  2394. <dt>&lsquo;<samp>csv</samp>&rsquo;</dt>
  2395. <dd><p>Perform CSV-like escaping, as described in RFC4180. Strings
  2396. containing a newline (&lsquo;<samp>\n</samp>&rsquo;), a carriage return (&lsquo;<samp>\r</samp>&rsquo;), a double quote
  2397. (&lsquo;<samp>&quot;</samp>&rsquo;), or <var>SEP</var> are enclosed in double-quotes.
  2398. </p>
  2399. </dd>
  2400. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  2401. <dd><p>Perform no escaping.
  2402. </p></dd>
  2403. </dl>
  2404. </dd>
  2405. <dt>&lsquo;<samp>print_section, p</samp>&rsquo;</dt>
  2406. <dd><p>Print the section name at the beginning of each line if the value is
  2407. <code>1</code>, disable it with value set to <code>0</code>. Default value is
  2408. <code>1</code>.
  2409. </p>
  2410. </dd>
  2411. </dl>
  2412. <a name="flat"></a>
  2413. <h2 class="section"><a href="ffprobe-all.html#toc-flat">4.3 flat</a></h2>
  2414. <p>Flat format.
  2415. </p>
  2416. <p>A free-form output where each line contains an explicit key=value, such as
  2417. &quot;streams.stream.3.tags.foo=bar&quot;. The output is shell escaped, so it can be
  2418. directly embedded in sh scripts as long as the separator character is an
  2419. alphanumeric character or an underscore (see <var>sep_char</var> option).
  2420. </p>
  2421. <p>The description of the accepted options follows.
  2422. </p>
  2423. <dl compact="compact">
  2424. <dt>&lsquo;<samp>sep_char, s</samp>&rsquo;</dt>
  2425. <dd><p>Separator character used to separate the chapter, the section name, IDs and
  2426. potential tags in the printed field key.
  2427. </p>
  2428. <p>Default value is &lsquo;<samp>.</samp>&rsquo;.
  2429. </p>
  2430. </dd>
  2431. <dt>&lsquo;<samp>hierarchical, h</samp>&rsquo;</dt>
  2432. <dd><p>Specify if the section name specification should be hierarchical. If
  2433. set to 1, and if there is more than one section in the current
  2434. chapter, the section name will be prefixed by the name of the
  2435. chapter. A value of 0 will disable this behavior.
  2436. </p>
  2437. <p>Default value is 1.
  2438. </p></dd>
  2439. </dl>
  2440. <a name="ini"></a>
  2441. <h2 class="section"><a href="ffprobe-all.html#toc-ini">4.4 ini</a></h2>
  2442. <p>INI format output.
  2443. </p>
  2444. <p>Print output in an INI based format.
  2445. </p>
  2446. <p>The following conventions are adopted:
  2447. </p>
  2448. <ul>
  2449. <li>
  2450. all key and values are UTF-8
  2451. </li><li>
  2452. &lsquo;<samp>.</samp>&rsquo; is the subgroup separator
  2453. </li><li>
  2454. newline, &lsquo;<samp>\t</samp>&rsquo;, &lsquo;<samp>\f</samp>&rsquo;, &lsquo;<samp>\b</samp>&rsquo; and the following characters are
  2455. escaped
  2456. </li><li>
  2457. &lsquo;<samp>\</samp>&rsquo; is the escape character
  2458. </li><li>
  2459. &lsquo;<samp>#</samp>&rsquo; is the comment indicator
  2460. </li><li>
  2461. &lsquo;<samp>=</samp>&rsquo; is the key/value separator
  2462. </li><li>
  2463. &lsquo;<samp>:</samp>&rsquo; is not used but usually parsed as key/value separator
  2464. </li></ul>
  2465. <p>This writer accepts options as a list of <var>key</var>=<var>value</var> pairs,
  2466. separated by &lsquo;<samp>:</samp>&rsquo;.
  2467. </p>
  2468. <p>The description of the accepted options follows.
  2469. </p>
  2470. <dl compact="compact">
  2471. <dt>&lsquo;<samp>hierarchical, h</samp>&rsquo;</dt>
  2472. <dd><p>Specify if the section name specification should be hierarchical. If
  2473. set to 1, and if there is more than one section in the current
  2474. chapter, the section name will be prefixed by the name of the
  2475. chapter. A value of 0 will disable this behavior.
  2476. </p>
  2477. <p>Default value is 1.
  2478. </p></dd>
  2479. </dl>
  2480. <a name="json"></a>
  2481. <h2 class="section"><a href="ffprobe-all.html#toc-json">4.5 json</a></h2>
  2482. <p>JSON based format.
  2483. </p>
  2484. <p>Each section is printed using JSON notation.
  2485. </p>
  2486. <p>The description of the accepted options follows.
  2487. </p>
  2488. <dl compact="compact">
  2489. <dt>&lsquo;<samp>compact, c</samp>&rsquo;</dt>
  2490. <dd><p>If set to 1 enable compact output, that is each section will be
  2491. printed on a single line. Default value is 0.
  2492. </p></dd>
  2493. </dl>
  2494. <p>For more information about JSON, see <a href="http://www.json.org/">http://www.json.org/</a>.
  2495. </p>
  2496. <a name="xml"></a>
  2497. <h2 class="section"><a href="ffprobe-all.html#toc-xml">4.6 xml</a></h2>
  2498. <p>XML based format.
  2499. </p>
  2500. <p>The XML output is described in the XML schema description file
  2501. &lsquo;<tt>ffprobe.xsd</tt>&rsquo; installed in the FFmpeg datadir.
  2502. </p>
  2503. <p>An updated version of the schema can be retrieved at the url
  2504. <a href="http://www.ffmpeg.org/schema/ffprobe.xsd">http://www.ffmpeg.org/schema/ffprobe.xsd</a>, which redirects to the
  2505. latest schema committed into the FFmpeg development source code tree.
  2506. </p>
  2507. <p>Note that the output issued will be compliant to the
  2508. &lsquo;<tt>ffprobe.xsd</tt>&rsquo; schema only when no special global output options
  2509. (&lsquo;<samp>unit</samp>&rsquo;, &lsquo;<samp>prefix</samp>&rsquo;, &lsquo;<samp>byte_binary_prefix</samp>&rsquo;,
  2510. &lsquo;<samp>sexagesimal</samp>&rsquo; etc.) are specified.
  2511. </p>
  2512. <p>The description of the accepted options follows.
  2513. </p>
  2514. <dl compact="compact">
  2515. <dt>&lsquo;<samp>fully_qualified, q</samp>&rsquo;</dt>
  2516. <dd><p>If set to 1 specify if the output should be fully qualified. Default
  2517. value is 0.
  2518. This is required for generating an XML file which can be validated
  2519. through an XSD file.
  2520. </p>
  2521. </dd>
  2522. <dt>&lsquo;<samp>xsd_strict, x</samp>&rsquo;</dt>
  2523. <dd><p>If set to 1 perform more checks for ensuring that the output is XSD
  2524. compliant. Default value is 0.
  2525. This option automatically sets &lsquo;<samp>fully_qualified</samp>&rsquo; to 1.
  2526. </p></dd>
  2527. </dl>
  2528. <p>For more information about the XML format, see
  2529. <a href="https://www.w3.org/XML/">https://www.w3.org/XML/</a>.
  2530. </p>
  2531. <a name="Timecode"></a>
  2532. <h1 class="chapter"><a href="ffprobe-all.html#toc-Timecode">5 Timecode</a></h1>
  2533. <p><code>ffprobe</code> supports Timecode extraction:
  2534. </p>
  2535. <ul>
  2536. <li>
  2537. MPEG1/2 timecode is extracted from the GOP, and is available in the video
  2538. stream details (&lsquo;<samp>-show_streams</samp>&rsquo;, see <var>timecode</var>).
  2539. </li><li>
  2540. MOV timecode is extracted from tmcd track, so is available in the tmcd
  2541. stream metadata (&lsquo;<samp>-show_streams</samp>&rsquo;, see <var>TAG:timecode</var>).
  2542. </li><li>
  2543. DV, GXF and AVI timecodes are available in format metadata
  2544. (&lsquo;<samp>-show_format</samp>&rsquo;, see <var>TAG:timecode</var>).
  2545. </li></ul>
  2546. <a name="Syntax"></a>
  2547. <h1 class="chapter"><a href="ffprobe-all.html#toc-Syntax">6 Syntax</a></h1>
  2548. <p>This section documents the syntax and formats employed by the FFmpeg
  2549. libraries and tools.
  2550. </p>
  2551. <p><a name="quoting_005fand_005fescaping"></a>
  2552. </p><a name="Quoting-and-escaping"></a>
  2553. <h2 class="section"><a href="ffprobe-all.html#toc-Quoting-and-escaping">6.1 Quoting and escaping</a></h2>
  2554. <p>FFmpeg adopts the following quoting and escaping mechanism, unless
  2555. explicitly specified. The following rules are applied:
  2556. </p>
  2557. <ul>
  2558. <li>
  2559. &lsquo;<samp>'</samp>&rsquo; and &lsquo;<samp>\</samp>&rsquo; are special characters (respectively used for
  2560. quoting and escaping). In addition to them, there might be other
  2561. special characters depending on the specific syntax where the escaping
  2562. and quoting are employed.
  2563. </li><li>
  2564. A special character is escaped by prefixing it with a &lsquo;<samp>\</samp>&rsquo;.
  2565. </li><li>
  2566. All characters enclosed between &lsquo;<samp>''</samp>&rsquo; are included literally in the
  2567. parsed string. The quote character &lsquo;<samp>'</samp>&rsquo; itself cannot be quoted,
  2568. so you may need to close the quote and escape it.
  2569. </li><li>
  2570. Leading and trailing whitespaces, unless escaped or quoted, are
  2571. removed from the parsed string.
  2572. </li></ul>
  2573. <p>Note that you may need to add a second level of escaping when using
  2574. the command line or a script, which depends on the syntax of the
  2575. adopted shell language.
  2576. </p>
  2577. <p>The function <code>av_get_token</code> defined in
  2578. &lsquo;<tt>libavutil/avstring.h</tt>&rsquo; can be used to parse a token quoted or
  2579. escaped according to the rules defined above.
  2580. </p>
  2581. <p>The tool &lsquo;<tt>tools/ffescape</tt>&rsquo; in the FFmpeg source tree can be used
  2582. to automatically quote or escape a string in a script.
  2583. </p>
  2584. <a name="Examples-125"></a>
  2585. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-125">6.1.1 Examples</a></h3>
  2586. <ul>
  2587. <li>
  2588. Escape the string <code>Crime d'Amour</code> containing the <code>'</code> special
  2589. character:
  2590. <div class="example">
  2591. <pre class="example">Crime d\'Amour
  2592. </pre></div>
  2593. </li><li>
  2594. The string above contains a quote, so the <code>'</code> needs to be escaped
  2595. when quoting it:
  2596. <div class="example">
  2597. <pre class="example">'Crime d'\''Amour'
  2598. </pre></div>
  2599. </li><li>
  2600. Include leading or trailing whitespaces using quoting:
  2601. <div class="example">
  2602. <pre class="example">' this string starts and ends with whitespaces '
  2603. </pre></div>
  2604. </li><li>
  2605. Escaping and quoting can be mixed together:
  2606. <div class="example">
  2607. <pre class="example">' The string '\'string\'' is a string '
  2608. </pre></div>
  2609. </li><li>
  2610. To include a literal &lsquo;<samp>\</samp>&rsquo; you can use either escaping or quoting:
  2611. <div class="example">
  2612. <pre class="example">'c:\foo' can be written as c:\\foo
  2613. </pre></div>
  2614. </li></ul>
  2615. <p><a name="date-syntax"></a>
  2616. </p><a name="Date"></a>
  2617. <h2 class="section"><a href="ffprobe-all.html#toc-Date">6.2 Date</a></h2>
  2618. <p>The accepted syntax is:
  2619. </p><div class="example">
  2620. <pre class="example">[(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...]]])|(HHMMSS[.m...]]]))[Z]
  2621. now
  2622. </pre></div>
  2623. <p>If the value is &quot;now&quot; it takes the current time.
  2624. </p>
  2625. <p>Time is local time unless Z is appended, in which case it is
  2626. interpreted as UTC.
  2627. If the year-month-day part is not specified it takes the current
  2628. year-month-day.
  2629. </p>
  2630. <p><a name="time-duration-syntax"></a>
  2631. </p><a name="Time-duration"></a>
  2632. <h2 class="section"><a href="ffprobe-all.html#toc-Time-duration">6.3 Time duration</a></h2>
  2633. <p>There are two accepted syntaxes for expressing time duration.
  2634. </p>
  2635. <div class="example">
  2636. <pre class="example">[-][<var>HH</var>:]<var>MM</var>:<var>SS</var>[.<var>m</var>...]
  2637. </pre></div>
  2638. <p><var>HH</var> expresses the number of hours, <var>MM</var> the number of minutes
  2639. for a maximum of 2 digits, and <var>SS</var> the number of seconds for a
  2640. maximum of 2 digits. The <var>m</var> at the end expresses decimal value for
  2641. <var>SS</var>.
  2642. </p>
  2643. <p><em>or</em>
  2644. </p>
  2645. <div class="example">
  2646. <pre class="example">[-]<var>S</var>+[.<var>m</var>...]
  2647. </pre></div>
  2648. <p><var>S</var> expresses the number of seconds, with the optional decimal part
  2649. <var>m</var>.
  2650. </p>
  2651. <p>In both expressions, the optional &lsquo;<samp>-</samp>&rsquo; indicates negative duration.
  2652. </p>
  2653. <a name="Examples-70"></a>
  2654. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-70">6.3.1 Examples</a></h3>
  2655. <p>The following examples are all valid time duration:
  2656. </p>
  2657. <dl compact="compact">
  2658. <dt>&lsquo;<samp>55</samp>&rsquo;</dt>
  2659. <dd><p>55 seconds
  2660. </p>
  2661. </dd>
  2662. <dt>&lsquo;<samp>0.2</samp>&rsquo;</dt>
  2663. <dd><p>0.2 seconds
  2664. </p>
  2665. </dd>
  2666. <dt>&lsquo;<samp>200ms</samp>&rsquo;</dt>
  2667. <dd><p>200 milliseconds, that&rsquo;s 0.2s
  2668. </p>
  2669. </dd>
  2670. <dt>&lsquo;<samp>200000us</samp>&rsquo;</dt>
  2671. <dd><p>200000 microseconds, that&rsquo;s 0.2s
  2672. </p>
  2673. </dd>
  2674. <dt>&lsquo;<samp>12:03:45</samp>&rsquo;</dt>
  2675. <dd><p>12 hours, 03 minutes and 45 seconds
  2676. </p>
  2677. </dd>
  2678. <dt>&lsquo;<samp>23.189</samp>&rsquo;</dt>
  2679. <dd><p>23.189 seconds
  2680. </p></dd>
  2681. </dl>
  2682. <p><a name="video-size-syntax"></a>
  2683. </p><a name="Video-size"></a>
  2684. <h2 class="section"><a href="ffprobe-all.html#toc-Video-size">6.4 Video size</a></h2>
  2685. <p>Specify the size of the sourced video, it may be a string of the form
  2686. <var>width</var>x<var>height</var>, or the name of a size abbreviation.
  2687. </p>
  2688. <p>The following abbreviations are recognized:
  2689. </p><dl compact="compact">
  2690. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  2691. <dd><p>720x480
  2692. </p></dd>
  2693. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  2694. <dd><p>720x576
  2695. </p></dd>
  2696. <dt>&lsquo;<samp>qntsc</samp>&rsquo;</dt>
  2697. <dd><p>352x240
  2698. </p></dd>
  2699. <dt>&lsquo;<samp>qpal</samp>&rsquo;</dt>
  2700. <dd><p>352x288
  2701. </p></dd>
  2702. <dt>&lsquo;<samp>sntsc</samp>&rsquo;</dt>
  2703. <dd><p>640x480
  2704. </p></dd>
  2705. <dt>&lsquo;<samp>spal</samp>&rsquo;</dt>
  2706. <dd><p>768x576
  2707. </p></dd>
  2708. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  2709. <dd><p>352x240
  2710. </p></dd>
  2711. <dt>&lsquo;<samp>ntsc-film</samp>&rsquo;</dt>
  2712. <dd><p>352x240
  2713. </p></dd>
  2714. <dt>&lsquo;<samp>sqcif</samp>&rsquo;</dt>
  2715. <dd><p>128x96
  2716. </p></dd>
  2717. <dt>&lsquo;<samp>qcif</samp>&rsquo;</dt>
  2718. <dd><p>176x144
  2719. </p></dd>
  2720. <dt>&lsquo;<samp>cif</samp>&rsquo;</dt>
  2721. <dd><p>352x288
  2722. </p></dd>
  2723. <dt>&lsquo;<samp>4cif</samp>&rsquo;</dt>
  2724. <dd><p>704x576
  2725. </p></dd>
  2726. <dt>&lsquo;<samp>16cif</samp>&rsquo;</dt>
  2727. <dd><p>1408x1152
  2728. </p></dd>
  2729. <dt>&lsquo;<samp>qqvga</samp>&rsquo;</dt>
  2730. <dd><p>160x120
  2731. </p></dd>
  2732. <dt>&lsquo;<samp>qvga</samp>&rsquo;</dt>
  2733. <dd><p>320x240
  2734. </p></dd>
  2735. <dt>&lsquo;<samp>vga</samp>&rsquo;</dt>
  2736. <dd><p>640x480
  2737. </p></dd>
  2738. <dt>&lsquo;<samp>svga</samp>&rsquo;</dt>
  2739. <dd><p>800x600
  2740. </p></dd>
  2741. <dt>&lsquo;<samp>xga</samp>&rsquo;</dt>
  2742. <dd><p>1024x768
  2743. </p></dd>
  2744. <dt>&lsquo;<samp>uxga</samp>&rsquo;</dt>
  2745. <dd><p>1600x1200
  2746. </p></dd>
  2747. <dt>&lsquo;<samp>qxga</samp>&rsquo;</dt>
  2748. <dd><p>2048x1536
  2749. </p></dd>
  2750. <dt>&lsquo;<samp>sxga</samp>&rsquo;</dt>
  2751. <dd><p>1280x1024
  2752. </p></dd>
  2753. <dt>&lsquo;<samp>qsxga</samp>&rsquo;</dt>
  2754. <dd><p>2560x2048
  2755. </p></dd>
  2756. <dt>&lsquo;<samp>hsxga</samp>&rsquo;</dt>
  2757. <dd><p>5120x4096
  2758. </p></dd>
  2759. <dt>&lsquo;<samp>wvga</samp>&rsquo;</dt>
  2760. <dd><p>852x480
  2761. </p></dd>
  2762. <dt>&lsquo;<samp>wxga</samp>&rsquo;</dt>
  2763. <dd><p>1366x768
  2764. </p></dd>
  2765. <dt>&lsquo;<samp>wsxga</samp>&rsquo;</dt>
  2766. <dd><p>1600x1024
  2767. </p></dd>
  2768. <dt>&lsquo;<samp>wuxga</samp>&rsquo;</dt>
  2769. <dd><p>1920x1200
  2770. </p></dd>
  2771. <dt>&lsquo;<samp>woxga</samp>&rsquo;</dt>
  2772. <dd><p>2560x1600
  2773. </p></dd>
  2774. <dt>&lsquo;<samp>wqsxga</samp>&rsquo;</dt>
  2775. <dd><p>3200x2048
  2776. </p></dd>
  2777. <dt>&lsquo;<samp>wquxga</samp>&rsquo;</dt>
  2778. <dd><p>3840x2400
  2779. </p></dd>
  2780. <dt>&lsquo;<samp>whsxga</samp>&rsquo;</dt>
  2781. <dd><p>6400x4096
  2782. </p></dd>
  2783. <dt>&lsquo;<samp>whuxga</samp>&rsquo;</dt>
  2784. <dd><p>7680x4800
  2785. </p></dd>
  2786. <dt>&lsquo;<samp>cga</samp>&rsquo;</dt>
  2787. <dd><p>320x200
  2788. </p></dd>
  2789. <dt>&lsquo;<samp>ega</samp>&rsquo;</dt>
  2790. <dd><p>640x350
  2791. </p></dd>
  2792. <dt>&lsquo;<samp>hd480</samp>&rsquo;</dt>
  2793. <dd><p>852x480
  2794. </p></dd>
  2795. <dt>&lsquo;<samp>hd720</samp>&rsquo;</dt>
  2796. <dd><p>1280x720
  2797. </p></dd>
  2798. <dt>&lsquo;<samp>hd1080</samp>&rsquo;</dt>
  2799. <dd><p>1920x1080
  2800. </p></dd>
  2801. <dt>&lsquo;<samp>2k</samp>&rsquo;</dt>
  2802. <dd><p>2048x1080
  2803. </p></dd>
  2804. <dt>&lsquo;<samp>2kflat</samp>&rsquo;</dt>
  2805. <dd><p>1998x1080
  2806. </p></dd>
  2807. <dt>&lsquo;<samp>2kscope</samp>&rsquo;</dt>
  2808. <dd><p>2048x858
  2809. </p></dd>
  2810. <dt>&lsquo;<samp>4k</samp>&rsquo;</dt>
  2811. <dd><p>4096x2160
  2812. </p></dd>
  2813. <dt>&lsquo;<samp>4kflat</samp>&rsquo;</dt>
  2814. <dd><p>3996x2160
  2815. </p></dd>
  2816. <dt>&lsquo;<samp>4kscope</samp>&rsquo;</dt>
  2817. <dd><p>4096x1716
  2818. </p></dd>
  2819. <dt>&lsquo;<samp>nhd</samp>&rsquo;</dt>
  2820. <dd><p>640x360
  2821. </p></dd>
  2822. <dt>&lsquo;<samp>hqvga</samp>&rsquo;</dt>
  2823. <dd><p>240x160
  2824. </p></dd>
  2825. <dt>&lsquo;<samp>wqvga</samp>&rsquo;</dt>
  2826. <dd><p>400x240
  2827. </p></dd>
  2828. <dt>&lsquo;<samp>fwqvga</samp>&rsquo;</dt>
  2829. <dd><p>432x240
  2830. </p></dd>
  2831. <dt>&lsquo;<samp>hvga</samp>&rsquo;</dt>
  2832. <dd><p>480x320
  2833. </p></dd>
  2834. <dt>&lsquo;<samp>qhd</samp>&rsquo;</dt>
  2835. <dd><p>960x540
  2836. </p></dd>
  2837. <dt>&lsquo;<samp>2kdci</samp>&rsquo;</dt>
  2838. <dd><p>2048x1080
  2839. </p></dd>
  2840. <dt>&lsquo;<samp>4kdci</samp>&rsquo;</dt>
  2841. <dd><p>4096x2160
  2842. </p></dd>
  2843. <dt>&lsquo;<samp>uhd2160</samp>&rsquo;</dt>
  2844. <dd><p>3840x2160
  2845. </p></dd>
  2846. <dt>&lsquo;<samp>uhd4320</samp>&rsquo;</dt>
  2847. <dd><p>7680x4320
  2848. </p></dd>
  2849. </dl>
  2850. <p><a name="video-rate-syntax"></a>
  2851. </p><a name="Video-rate"></a>
  2852. <h2 class="section"><a href="ffprobe-all.html#toc-Video-rate">6.5 Video rate</a></h2>
  2853. <p>Specify the frame rate of a video, expressed as the number of frames
  2854. generated per second. It has to be a string in the format
  2855. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a float
  2856. number or a valid video frame rate abbreviation.
  2857. </p>
  2858. <p>The following abbreviations are recognized:
  2859. </p><dl compact="compact">
  2860. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  2861. <dd><p>30000/1001
  2862. </p></dd>
  2863. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  2864. <dd><p>25/1
  2865. </p></dd>
  2866. <dt>&lsquo;<samp>qntsc</samp>&rsquo;</dt>
  2867. <dd><p>30000/1001
  2868. </p></dd>
  2869. <dt>&lsquo;<samp>qpal</samp>&rsquo;</dt>
  2870. <dd><p>25/1
  2871. </p></dd>
  2872. <dt>&lsquo;<samp>sntsc</samp>&rsquo;</dt>
  2873. <dd><p>30000/1001
  2874. </p></dd>
  2875. <dt>&lsquo;<samp>spal</samp>&rsquo;</dt>
  2876. <dd><p>25/1
  2877. </p></dd>
  2878. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  2879. <dd><p>24/1
  2880. </p></dd>
  2881. <dt>&lsquo;<samp>ntsc-film</samp>&rsquo;</dt>
  2882. <dd><p>24000/1001
  2883. </p></dd>
  2884. </dl>
  2885. <p><a name="ratio-syntax"></a>
  2886. </p><a name="Ratio"></a>
  2887. <h2 class="section"><a href="ffprobe-all.html#toc-Ratio">6.6 Ratio</a></h2>
  2888. <p>A ratio can be expressed as an expression, or in the form
  2889. <var>numerator</var>:<var>denominator</var>.
  2890. </p>
  2891. <p>Note that a ratio with infinite (1/0) or negative value is
  2892. considered valid, so you should check on the returned value if you
  2893. want to exclude those values.
  2894. </p>
  2895. <p>The undefined value can be expressed using the &quot;0:0&quot; string.
  2896. </p>
  2897. <p><a name="color-syntax"></a>
  2898. </p><a name="Color"></a>
  2899. <h2 class="section"><a href="ffprobe-all.html#toc-Color">6.7 Color</a></h2>
  2900. <p>It can be the name of a color as defined below (case insensitive match) or a
  2901. <code>[0x|#]RRGGBB[AA]</code> sequence, possibly followed by @ and a string
  2902. representing the alpha component.
  2903. </p>
  2904. <p>The alpha component may be a string composed by &quot;0x&quot; followed by an
  2905. hexadecimal number or a decimal number between 0.0 and 1.0, which
  2906. represents the opacity value (&lsquo;<samp>0x00</samp>&rsquo; or &lsquo;<samp>0.0</samp>&rsquo; means completely
  2907. transparent, &lsquo;<samp>0xff</samp>&rsquo; or &lsquo;<samp>1.0</samp>&rsquo; completely opaque). If the alpha
  2908. component is not specified then &lsquo;<samp>0xff</samp>&rsquo; is assumed.
  2909. </p>
  2910. <p>The string &lsquo;<samp>random</samp>&rsquo; will result in a random color.
  2911. </p>
  2912. <p>The following names of colors are recognized:
  2913. </p><dl compact="compact">
  2914. <dt>&lsquo;<samp>AliceBlue</samp>&rsquo;</dt>
  2915. <dd><p>0xF0F8FF
  2916. </p></dd>
  2917. <dt>&lsquo;<samp>AntiqueWhite</samp>&rsquo;</dt>
  2918. <dd><p>0xFAEBD7
  2919. </p></dd>
  2920. <dt>&lsquo;<samp>Aqua</samp>&rsquo;</dt>
  2921. <dd><p>0x00FFFF
  2922. </p></dd>
  2923. <dt>&lsquo;<samp>Aquamarine</samp>&rsquo;</dt>
  2924. <dd><p>0x7FFFD4
  2925. </p></dd>
  2926. <dt>&lsquo;<samp>Azure</samp>&rsquo;</dt>
  2927. <dd><p>0xF0FFFF
  2928. </p></dd>
  2929. <dt>&lsquo;<samp>Beige</samp>&rsquo;</dt>
  2930. <dd><p>0xF5F5DC
  2931. </p></dd>
  2932. <dt>&lsquo;<samp>Bisque</samp>&rsquo;</dt>
  2933. <dd><p>0xFFE4C4
  2934. </p></dd>
  2935. <dt>&lsquo;<samp>Black</samp>&rsquo;</dt>
  2936. <dd><p>0x000000
  2937. </p></dd>
  2938. <dt>&lsquo;<samp>BlanchedAlmond</samp>&rsquo;</dt>
  2939. <dd><p>0xFFEBCD
  2940. </p></dd>
  2941. <dt>&lsquo;<samp>Blue</samp>&rsquo;</dt>
  2942. <dd><p>0x0000FF
  2943. </p></dd>
  2944. <dt>&lsquo;<samp>BlueViolet</samp>&rsquo;</dt>
  2945. <dd><p>0x8A2BE2
  2946. </p></dd>
  2947. <dt>&lsquo;<samp>Brown</samp>&rsquo;</dt>
  2948. <dd><p>0xA52A2A
  2949. </p></dd>
  2950. <dt>&lsquo;<samp>BurlyWood</samp>&rsquo;</dt>
  2951. <dd><p>0xDEB887
  2952. </p></dd>
  2953. <dt>&lsquo;<samp>CadetBlue</samp>&rsquo;</dt>
  2954. <dd><p>0x5F9EA0
  2955. </p></dd>
  2956. <dt>&lsquo;<samp>Chartreuse</samp>&rsquo;</dt>
  2957. <dd><p>0x7FFF00
  2958. </p></dd>
  2959. <dt>&lsquo;<samp>Chocolate</samp>&rsquo;</dt>
  2960. <dd><p>0xD2691E
  2961. </p></dd>
  2962. <dt>&lsquo;<samp>Coral</samp>&rsquo;</dt>
  2963. <dd><p>0xFF7F50
  2964. </p></dd>
  2965. <dt>&lsquo;<samp>CornflowerBlue</samp>&rsquo;</dt>
  2966. <dd><p>0x6495ED
  2967. </p></dd>
  2968. <dt>&lsquo;<samp>Cornsilk</samp>&rsquo;</dt>
  2969. <dd><p>0xFFF8DC
  2970. </p></dd>
  2971. <dt>&lsquo;<samp>Crimson</samp>&rsquo;</dt>
  2972. <dd><p>0xDC143C
  2973. </p></dd>
  2974. <dt>&lsquo;<samp>Cyan</samp>&rsquo;</dt>
  2975. <dd><p>0x00FFFF
  2976. </p></dd>
  2977. <dt>&lsquo;<samp>DarkBlue</samp>&rsquo;</dt>
  2978. <dd><p>0x00008B
  2979. </p></dd>
  2980. <dt>&lsquo;<samp>DarkCyan</samp>&rsquo;</dt>
  2981. <dd><p>0x008B8B
  2982. </p></dd>
  2983. <dt>&lsquo;<samp>DarkGoldenRod</samp>&rsquo;</dt>
  2984. <dd><p>0xB8860B
  2985. </p></dd>
  2986. <dt>&lsquo;<samp>DarkGray</samp>&rsquo;</dt>
  2987. <dd><p>0xA9A9A9
  2988. </p></dd>
  2989. <dt>&lsquo;<samp>DarkGreen</samp>&rsquo;</dt>
  2990. <dd><p>0x006400
  2991. </p></dd>
  2992. <dt>&lsquo;<samp>DarkKhaki</samp>&rsquo;</dt>
  2993. <dd><p>0xBDB76B
  2994. </p></dd>
  2995. <dt>&lsquo;<samp>DarkMagenta</samp>&rsquo;</dt>
  2996. <dd><p>0x8B008B
  2997. </p></dd>
  2998. <dt>&lsquo;<samp>DarkOliveGreen</samp>&rsquo;</dt>
  2999. <dd><p>0x556B2F
  3000. </p></dd>
  3001. <dt>&lsquo;<samp>Darkorange</samp>&rsquo;</dt>
  3002. <dd><p>0xFF8C00
  3003. </p></dd>
  3004. <dt>&lsquo;<samp>DarkOrchid</samp>&rsquo;</dt>
  3005. <dd><p>0x9932CC
  3006. </p></dd>
  3007. <dt>&lsquo;<samp>DarkRed</samp>&rsquo;</dt>
  3008. <dd><p>0x8B0000
  3009. </p></dd>
  3010. <dt>&lsquo;<samp>DarkSalmon</samp>&rsquo;</dt>
  3011. <dd><p>0xE9967A
  3012. </p></dd>
  3013. <dt>&lsquo;<samp>DarkSeaGreen</samp>&rsquo;</dt>
  3014. <dd><p>0x8FBC8F
  3015. </p></dd>
  3016. <dt>&lsquo;<samp>DarkSlateBlue</samp>&rsquo;</dt>
  3017. <dd><p>0x483D8B
  3018. </p></dd>
  3019. <dt>&lsquo;<samp>DarkSlateGray</samp>&rsquo;</dt>
  3020. <dd><p>0x2F4F4F
  3021. </p></dd>
  3022. <dt>&lsquo;<samp>DarkTurquoise</samp>&rsquo;</dt>
  3023. <dd><p>0x00CED1
  3024. </p></dd>
  3025. <dt>&lsquo;<samp>DarkViolet</samp>&rsquo;</dt>
  3026. <dd><p>0x9400D3
  3027. </p></dd>
  3028. <dt>&lsquo;<samp>DeepPink</samp>&rsquo;</dt>
  3029. <dd><p>0xFF1493
  3030. </p></dd>
  3031. <dt>&lsquo;<samp>DeepSkyBlue</samp>&rsquo;</dt>
  3032. <dd><p>0x00BFFF
  3033. </p></dd>
  3034. <dt>&lsquo;<samp>DimGray</samp>&rsquo;</dt>
  3035. <dd><p>0x696969
  3036. </p></dd>
  3037. <dt>&lsquo;<samp>DodgerBlue</samp>&rsquo;</dt>
  3038. <dd><p>0x1E90FF
  3039. </p></dd>
  3040. <dt>&lsquo;<samp>FireBrick</samp>&rsquo;</dt>
  3041. <dd><p>0xB22222
  3042. </p></dd>
  3043. <dt>&lsquo;<samp>FloralWhite</samp>&rsquo;</dt>
  3044. <dd><p>0xFFFAF0
  3045. </p></dd>
  3046. <dt>&lsquo;<samp>ForestGreen</samp>&rsquo;</dt>
  3047. <dd><p>0x228B22
  3048. </p></dd>
  3049. <dt>&lsquo;<samp>Fuchsia</samp>&rsquo;</dt>
  3050. <dd><p>0xFF00FF
  3051. </p></dd>
  3052. <dt>&lsquo;<samp>Gainsboro</samp>&rsquo;</dt>
  3053. <dd><p>0xDCDCDC
  3054. </p></dd>
  3055. <dt>&lsquo;<samp>GhostWhite</samp>&rsquo;</dt>
  3056. <dd><p>0xF8F8FF
  3057. </p></dd>
  3058. <dt>&lsquo;<samp>Gold</samp>&rsquo;</dt>
  3059. <dd><p>0xFFD700
  3060. </p></dd>
  3061. <dt>&lsquo;<samp>GoldenRod</samp>&rsquo;</dt>
  3062. <dd><p>0xDAA520
  3063. </p></dd>
  3064. <dt>&lsquo;<samp>Gray</samp>&rsquo;</dt>
  3065. <dd><p>0x808080
  3066. </p></dd>
  3067. <dt>&lsquo;<samp>Green</samp>&rsquo;</dt>
  3068. <dd><p>0x008000
  3069. </p></dd>
  3070. <dt>&lsquo;<samp>GreenYellow</samp>&rsquo;</dt>
  3071. <dd><p>0xADFF2F
  3072. </p></dd>
  3073. <dt>&lsquo;<samp>HoneyDew</samp>&rsquo;</dt>
  3074. <dd><p>0xF0FFF0
  3075. </p></dd>
  3076. <dt>&lsquo;<samp>HotPink</samp>&rsquo;</dt>
  3077. <dd><p>0xFF69B4
  3078. </p></dd>
  3079. <dt>&lsquo;<samp>IndianRed</samp>&rsquo;</dt>
  3080. <dd><p>0xCD5C5C
  3081. </p></dd>
  3082. <dt>&lsquo;<samp>Indigo</samp>&rsquo;</dt>
  3083. <dd><p>0x4B0082
  3084. </p></dd>
  3085. <dt>&lsquo;<samp>Ivory</samp>&rsquo;</dt>
  3086. <dd><p>0xFFFFF0
  3087. </p></dd>
  3088. <dt>&lsquo;<samp>Khaki</samp>&rsquo;</dt>
  3089. <dd><p>0xF0E68C
  3090. </p></dd>
  3091. <dt>&lsquo;<samp>Lavender</samp>&rsquo;</dt>
  3092. <dd><p>0xE6E6FA
  3093. </p></dd>
  3094. <dt>&lsquo;<samp>LavenderBlush</samp>&rsquo;</dt>
  3095. <dd><p>0xFFF0F5
  3096. </p></dd>
  3097. <dt>&lsquo;<samp>LawnGreen</samp>&rsquo;</dt>
  3098. <dd><p>0x7CFC00
  3099. </p></dd>
  3100. <dt>&lsquo;<samp>LemonChiffon</samp>&rsquo;</dt>
  3101. <dd><p>0xFFFACD
  3102. </p></dd>
  3103. <dt>&lsquo;<samp>LightBlue</samp>&rsquo;</dt>
  3104. <dd><p>0xADD8E6
  3105. </p></dd>
  3106. <dt>&lsquo;<samp>LightCoral</samp>&rsquo;</dt>
  3107. <dd><p>0xF08080
  3108. </p></dd>
  3109. <dt>&lsquo;<samp>LightCyan</samp>&rsquo;</dt>
  3110. <dd><p>0xE0FFFF
  3111. </p></dd>
  3112. <dt>&lsquo;<samp>LightGoldenRodYellow</samp>&rsquo;</dt>
  3113. <dd><p>0xFAFAD2
  3114. </p></dd>
  3115. <dt>&lsquo;<samp>LightGreen</samp>&rsquo;</dt>
  3116. <dd><p>0x90EE90
  3117. </p></dd>
  3118. <dt>&lsquo;<samp>LightGrey</samp>&rsquo;</dt>
  3119. <dd><p>0xD3D3D3
  3120. </p></dd>
  3121. <dt>&lsquo;<samp>LightPink</samp>&rsquo;</dt>
  3122. <dd><p>0xFFB6C1
  3123. </p></dd>
  3124. <dt>&lsquo;<samp>LightSalmon</samp>&rsquo;</dt>
  3125. <dd><p>0xFFA07A
  3126. </p></dd>
  3127. <dt>&lsquo;<samp>LightSeaGreen</samp>&rsquo;</dt>
  3128. <dd><p>0x20B2AA
  3129. </p></dd>
  3130. <dt>&lsquo;<samp>LightSkyBlue</samp>&rsquo;</dt>
  3131. <dd><p>0x87CEFA
  3132. </p></dd>
  3133. <dt>&lsquo;<samp>LightSlateGray</samp>&rsquo;</dt>
  3134. <dd><p>0x778899
  3135. </p></dd>
  3136. <dt>&lsquo;<samp>LightSteelBlue</samp>&rsquo;</dt>
  3137. <dd><p>0xB0C4DE
  3138. </p></dd>
  3139. <dt>&lsquo;<samp>LightYellow</samp>&rsquo;</dt>
  3140. <dd><p>0xFFFFE0
  3141. </p></dd>
  3142. <dt>&lsquo;<samp>Lime</samp>&rsquo;</dt>
  3143. <dd><p>0x00FF00
  3144. </p></dd>
  3145. <dt>&lsquo;<samp>LimeGreen</samp>&rsquo;</dt>
  3146. <dd><p>0x32CD32
  3147. </p></dd>
  3148. <dt>&lsquo;<samp>Linen</samp>&rsquo;</dt>
  3149. <dd><p>0xFAF0E6
  3150. </p></dd>
  3151. <dt>&lsquo;<samp>Magenta</samp>&rsquo;</dt>
  3152. <dd><p>0xFF00FF
  3153. </p></dd>
  3154. <dt>&lsquo;<samp>Maroon</samp>&rsquo;</dt>
  3155. <dd><p>0x800000
  3156. </p></dd>
  3157. <dt>&lsquo;<samp>MediumAquaMarine</samp>&rsquo;</dt>
  3158. <dd><p>0x66CDAA
  3159. </p></dd>
  3160. <dt>&lsquo;<samp>MediumBlue</samp>&rsquo;</dt>
  3161. <dd><p>0x0000CD
  3162. </p></dd>
  3163. <dt>&lsquo;<samp>MediumOrchid</samp>&rsquo;</dt>
  3164. <dd><p>0xBA55D3
  3165. </p></dd>
  3166. <dt>&lsquo;<samp>MediumPurple</samp>&rsquo;</dt>
  3167. <dd><p>0x9370D8
  3168. </p></dd>
  3169. <dt>&lsquo;<samp>MediumSeaGreen</samp>&rsquo;</dt>
  3170. <dd><p>0x3CB371
  3171. </p></dd>
  3172. <dt>&lsquo;<samp>MediumSlateBlue</samp>&rsquo;</dt>
  3173. <dd><p>0x7B68EE
  3174. </p></dd>
  3175. <dt>&lsquo;<samp>MediumSpringGreen</samp>&rsquo;</dt>
  3176. <dd><p>0x00FA9A
  3177. </p></dd>
  3178. <dt>&lsquo;<samp>MediumTurquoise</samp>&rsquo;</dt>
  3179. <dd><p>0x48D1CC
  3180. </p></dd>
  3181. <dt>&lsquo;<samp>MediumVioletRed</samp>&rsquo;</dt>
  3182. <dd><p>0xC71585
  3183. </p></dd>
  3184. <dt>&lsquo;<samp>MidnightBlue</samp>&rsquo;</dt>
  3185. <dd><p>0x191970
  3186. </p></dd>
  3187. <dt>&lsquo;<samp>MintCream</samp>&rsquo;</dt>
  3188. <dd><p>0xF5FFFA
  3189. </p></dd>
  3190. <dt>&lsquo;<samp>MistyRose</samp>&rsquo;</dt>
  3191. <dd><p>0xFFE4E1
  3192. </p></dd>
  3193. <dt>&lsquo;<samp>Moccasin</samp>&rsquo;</dt>
  3194. <dd><p>0xFFE4B5
  3195. </p></dd>
  3196. <dt>&lsquo;<samp>NavajoWhite</samp>&rsquo;</dt>
  3197. <dd><p>0xFFDEAD
  3198. </p></dd>
  3199. <dt>&lsquo;<samp>Navy</samp>&rsquo;</dt>
  3200. <dd><p>0x000080
  3201. </p></dd>
  3202. <dt>&lsquo;<samp>OldLace</samp>&rsquo;</dt>
  3203. <dd><p>0xFDF5E6
  3204. </p></dd>
  3205. <dt>&lsquo;<samp>Olive</samp>&rsquo;</dt>
  3206. <dd><p>0x808000
  3207. </p></dd>
  3208. <dt>&lsquo;<samp>OliveDrab</samp>&rsquo;</dt>
  3209. <dd><p>0x6B8E23
  3210. </p></dd>
  3211. <dt>&lsquo;<samp>Orange</samp>&rsquo;</dt>
  3212. <dd><p>0xFFA500
  3213. </p></dd>
  3214. <dt>&lsquo;<samp>OrangeRed</samp>&rsquo;</dt>
  3215. <dd><p>0xFF4500
  3216. </p></dd>
  3217. <dt>&lsquo;<samp>Orchid</samp>&rsquo;</dt>
  3218. <dd><p>0xDA70D6
  3219. </p></dd>
  3220. <dt>&lsquo;<samp>PaleGoldenRod</samp>&rsquo;</dt>
  3221. <dd><p>0xEEE8AA
  3222. </p></dd>
  3223. <dt>&lsquo;<samp>PaleGreen</samp>&rsquo;</dt>
  3224. <dd><p>0x98FB98
  3225. </p></dd>
  3226. <dt>&lsquo;<samp>PaleTurquoise</samp>&rsquo;</dt>
  3227. <dd><p>0xAFEEEE
  3228. </p></dd>
  3229. <dt>&lsquo;<samp>PaleVioletRed</samp>&rsquo;</dt>
  3230. <dd><p>0xD87093
  3231. </p></dd>
  3232. <dt>&lsquo;<samp>PapayaWhip</samp>&rsquo;</dt>
  3233. <dd><p>0xFFEFD5
  3234. </p></dd>
  3235. <dt>&lsquo;<samp>PeachPuff</samp>&rsquo;</dt>
  3236. <dd><p>0xFFDAB9
  3237. </p></dd>
  3238. <dt>&lsquo;<samp>Peru</samp>&rsquo;</dt>
  3239. <dd><p>0xCD853F
  3240. </p></dd>
  3241. <dt>&lsquo;<samp>Pink</samp>&rsquo;</dt>
  3242. <dd><p>0xFFC0CB
  3243. </p></dd>
  3244. <dt>&lsquo;<samp>Plum</samp>&rsquo;</dt>
  3245. <dd><p>0xDDA0DD
  3246. </p></dd>
  3247. <dt>&lsquo;<samp>PowderBlue</samp>&rsquo;</dt>
  3248. <dd><p>0xB0E0E6
  3249. </p></dd>
  3250. <dt>&lsquo;<samp>Purple</samp>&rsquo;</dt>
  3251. <dd><p>0x800080
  3252. </p></dd>
  3253. <dt>&lsquo;<samp>Red</samp>&rsquo;</dt>
  3254. <dd><p>0xFF0000
  3255. </p></dd>
  3256. <dt>&lsquo;<samp>RosyBrown</samp>&rsquo;</dt>
  3257. <dd><p>0xBC8F8F
  3258. </p></dd>
  3259. <dt>&lsquo;<samp>RoyalBlue</samp>&rsquo;</dt>
  3260. <dd><p>0x4169E1
  3261. </p></dd>
  3262. <dt>&lsquo;<samp>SaddleBrown</samp>&rsquo;</dt>
  3263. <dd><p>0x8B4513
  3264. </p></dd>
  3265. <dt>&lsquo;<samp>Salmon</samp>&rsquo;</dt>
  3266. <dd><p>0xFA8072
  3267. </p></dd>
  3268. <dt>&lsquo;<samp>SandyBrown</samp>&rsquo;</dt>
  3269. <dd><p>0xF4A460
  3270. </p></dd>
  3271. <dt>&lsquo;<samp>SeaGreen</samp>&rsquo;</dt>
  3272. <dd><p>0x2E8B57
  3273. </p></dd>
  3274. <dt>&lsquo;<samp>SeaShell</samp>&rsquo;</dt>
  3275. <dd><p>0xFFF5EE
  3276. </p></dd>
  3277. <dt>&lsquo;<samp>Sienna</samp>&rsquo;</dt>
  3278. <dd><p>0xA0522D
  3279. </p></dd>
  3280. <dt>&lsquo;<samp>Silver</samp>&rsquo;</dt>
  3281. <dd><p>0xC0C0C0
  3282. </p></dd>
  3283. <dt>&lsquo;<samp>SkyBlue</samp>&rsquo;</dt>
  3284. <dd><p>0x87CEEB
  3285. </p></dd>
  3286. <dt>&lsquo;<samp>SlateBlue</samp>&rsquo;</dt>
  3287. <dd><p>0x6A5ACD
  3288. </p></dd>
  3289. <dt>&lsquo;<samp>SlateGray</samp>&rsquo;</dt>
  3290. <dd><p>0x708090
  3291. </p></dd>
  3292. <dt>&lsquo;<samp>Snow</samp>&rsquo;</dt>
  3293. <dd><p>0xFFFAFA
  3294. </p></dd>
  3295. <dt>&lsquo;<samp>SpringGreen</samp>&rsquo;</dt>
  3296. <dd><p>0x00FF7F
  3297. </p></dd>
  3298. <dt>&lsquo;<samp>SteelBlue</samp>&rsquo;</dt>
  3299. <dd><p>0x4682B4
  3300. </p></dd>
  3301. <dt>&lsquo;<samp>Tan</samp>&rsquo;</dt>
  3302. <dd><p>0xD2B48C
  3303. </p></dd>
  3304. <dt>&lsquo;<samp>Teal</samp>&rsquo;</dt>
  3305. <dd><p>0x008080
  3306. </p></dd>
  3307. <dt>&lsquo;<samp>Thistle</samp>&rsquo;</dt>
  3308. <dd><p>0xD8BFD8
  3309. </p></dd>
  3310. <dt>&lsquo;<samp>Tomato</samp>&rsquo;</dt>
  3311. <dd><p>0xFF6347
  3312. </p></dd>
  3313. <dt>&lsquo;<samp>Turquoise</samp>&rsquo;</dt>
  3314. <dd><p>0x40E0D0
  3315. </p></dd>
  3316. <dt>&lsquo;<samp>Violet</samp>&rsquo;</dt>
  3317. <dd><p>0xEE82EE
  3318. </p></dd>
  3319. <dt>&lsquo;<samp>Wheat</samp>&rsquo;</dt>
  3320. <dd><p>0xF5DEB3
  3321. </p></dd>
  3322. <dt>&lsquo;<samp>White</samp>&rsquo;</dt>
  3323. <dd><p>0xFFFFFF
  3324. </p></dd>
  3325. <dt>&lsquo;<samp>WhiteSmoke</samp>&rsquo;</dt>
  3326. <dd><p>0xF5F5F5
  3327. </p></dd>
  3328. <dt>&lsquo;<samp>Yellow</samp>&rsquo;</dt>
  3329. <dd><p>0xFFFF00
  3330. </p></dd>
  3331. <dt>&lsquo;<samp>YellowGreen</samp>&rsquo;</dt>
  3332. <dd><p>0x9ACD32
  3333. </p></dd>
  3334. </dl>
  3335. <p><a name="channel-layout-syntax"></a>
  3336. </p><a name="Channel-Layout"></a>
  3337. <h2 class="section"><a href="ffprobe-all.html#toc-Channel-Layout">6.8 Channel Layout</a></h2>
  3338. <p>A channel layout specifies the spatial disposition of the channels in
  3339. a multi-channel audio stream. To specify a channel layout, FFmpeg
  3340. makes use of a special syntax.
  3341. </p>
  3342. <p>Individual channels are identified by an id, as given by the table
  3343. below:
  3344. </p><dl compact="compact">
  3345. <dt>&lsquo;<samp>FL</samp>&rsquo;</dt>
  3346. <dd><p>front left
  3347. </p></dd>
  3348. <dt>&lsquo;<samp>FR</samp>&rsquo;</dt>
  3349. <dd><p>front right
  3350. </p></dd>
  3351. <dt>&lsquo;<samp>FC</samp>&rsquo;</dt>
  3352. <dd><p>front center
  3353. </p></dd>
  3354. <dt>&lsquo;<samp>LFE</samp>&rsquo;</dt>
  3355. <dd><p>low frequency
  3356. </p></dd>
  3357. <dt>&lsquo;<samp>BL</samp>&rsquo;</dt>
  3358. <dd><p>back left
  3359. </p></dd>
  3360. <dt>&lsquo;<samp>BR</samp>&rsquo;</dt>
  3361. <dd><p>back right
  3362. </p></dd>
  3363. <dt>&lsquo;<samp>FLC</samp>&rsquo;</dt>
  3364. <dd><p>front left-of-center
  3365. </p></dd>
  3366. <dt>&lsquo;<samp>FRC</samp>&rsquo;</dt>
  3367. <dd><p>front right-of-center
  3368. </p></dd>
  3369. <dt>&lsquo;<samp>BC</samp>&rsquo;</dt>
  3370. <dd><p>back center
  3371. </p></dd>
  3372. <dt>&lsquo;<samp>SL</samp>&rsquo;</dt>
  3373. <dd><p>side left
  3374. </p></dd>
  3375. <dt>&lsquo;<samp>SR</samp>&rsquo;</dt>
  3376. <dd><p>side right
  3377. </p></dd>
  3378. <dt>&lsquo;<samp>TC</samp>&rsquo;</dt>
  3379. <dd><p>top center
  3380. </p></dd>
  3381. <dt>&lsquo;<samp>TFL</samp>&rsquo;</dt>
  3382. <dd><p>top front left
  3383. </p></dd>
  3384. <dt>&lsquo;<samp>TFC</samp>&rsquo;</dt>
  3385. <dd><p>top front center
  3386. </p></dd>
  3387. <dt>&lsquo;<samp>TFR</samp>&rsquo;</dt>
  3388. <dd><p>top front right
  3389. </p></dd>
  3390. <dt>&lsquo;<samp>TBL</samp>&rsquo;</dt>
  3391. <dd><p>top back left
  3392. </p></dd>
  3393. <dt>&lsquo;<samp>TBC</samp>&rsquo;</dt>
  3394. <dd><p>top back center
  3395. </p></dd>
  3396. <dt>&lsquo;<samp>TBR</samp>&rsquo;</dt>
  3397. <dd><p>top back right
  3398. </p></dd>
  3399. <dt>&lsquo;<samp>DL</samp>&rsquo;</dt>
  3400. <dd><p>downmix left
  3401. </p></dd>
  3402. <dt>&lsquo;<samp>DR</samp>&rsquo;</dt>
  3403. <dd><p>downmix right
  3404. </p></dd>
  3405. <dt>&lsquo;<samp>WL</samp>&rsquo;</dt>
  3406. <dd><p>wide left
  3407. </p></dd>
  3408. <dt>&lsquo;<samp>WR</samp>&rsquo;</dt>
  3409. <dd><p>wide right
  3410. </p></dd>
  3411. <dt>&lsquo;<samp>SDL</samp>&rsquo;</dt>
  3412. <dd><p>surround direct left
  3413. </p></dd>
  3414. <dt>&lsquo;<samp>SDR</samp>&rsquo;</dt>
  3415. <dd><p>surround direct right
  3416. </p></dd>
  3417. <dt>&lsquo;<samp>LFE2</samp>&rsquo;</dt>
  3418. <dd><p>low frequency 2
  3419. </p></dd>
  3420. </dl>
  3421. <p>Standard channel layout compositions can be specified by using the
  3422. following identifiers:
  3423. </p><dl compact="compact">
  3424. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  3425. <dd><p>FC
  3426. </p></dd>
  3427. <dt>&lsquo;<samp>stereo</samp>&rsquo;</dt>
  3428. <dd><p>FL+FR
  3429. </p></dd>
  3430. <dt>&lsquo;<samp>2.1</samp>&rsquo;</dt>
  3431. <dd><p>FL+FR+LFE
  3432. </p></dd>
  3433. <dt>&lsquo;<samp>3.0</samp>&rsquo;</dt>
  3434. <dd><p>FL+FR+FC
  3435. </p></dd>
  3436. <dt>&lsquo;<samp>3.0(back)</samp>&rsquo;</dt>
  3437. <dd><p>FL+FR+BC
  3438. </p></dd>
  3439. <dt>&lsquo;<samp>4.0</samp>&rsquo;</dt>
  3440. <dd><p>FL+FR+FC+BC
  3441. </p></dd>
  3442. <dt>&lsquo;<samp>quad</samp>&rsquo;</dt>
  3443. <dd><p>FL+FR+BL+BR
  3444. </p></dd>
  3445. <dt>&lsquo;<samp>quad(side)</samp>&rsquo;</dt>
  3446. <dd><p>FL+FR+SL+SR
  3447. </p></dd>
  3448. <dt>&lsquo;<samp>3.1</samp>&rsquo;</dt>
  3449. <dd><p>FL+FR+FC+LFE
  3450. </p></dd>
  3451. <dt>&lsquo;<samp>5.0</samp>&rsquo;</dt>
  3452. <dd><p>FL+FR+FC+BL+BR
  3453. </p></dd>
  3454. <dt>&lsquo;<samp>5.0(side)</samp>&rsquo;</dt>
  3455. <dd><p>FL+FR+FC+SL+SR
  3456. </p></dd>
  3457. <dt>&lsquo;<samp>4.1</samp>&rsquo;</dt>
  3458. <dd><p>FL+FR+FC+LFE+BC
  3459. </p></dd>
  3460. <dt>&lsquo;<samp>5.1</samp>&rsquo;</dt>
  3461. <dd><p>FL+FR+FC+LFE+BL+BR
  3462. </p></dd>
  3463. <dt>&lsquo;<samp>5.1(side)</samp>&rsquo;</dt>
  3464. <dd><p>FL+FR+FC+LFE+SL+SR
  3465. </p></dd>
  3466. <dt>&lsquo;<samp>6.0</samp>&rsquo;</dt>
  3467. <dd><p>FL+FR+FC+BC+SL+SR
  3468. </p></dd>
  3469. <dt>&lsquo;<samp>6.0(front)</samp>&rsquo;</dt>
  3470. <dd><p>FL+FR+FLC+FRC+SL+SR
  3471. </p></dd>
  3472. <dt>&lsquo;<samp>hexagonal</samp>&rsquo;</dt>
  3473. <dd><p>FL+FR+FC+BL+BR+BC
  3474. </p></dd>
  3475. <dt>&lsquo;<samp>6.1</samp>&rsquo;</dt>
  3476. <dd><p>FL+FR+FC+LFE+BC+SL+SR
  3477. </p></dd>
  3478. <dt>&lsquo;<samp>6.1</samp>&rsquo;</dt>
  3479. <dd><p>FL+FR+FC+LFE+BL+BR+BC
  3480. </p></dd>
  3481. <dt>&lsquo;<samp>6.1(front)</samp>&rsquo;</dt>
  3482. <dd><p>FL+FR+LFE+FLC+FRC+SL+SR
  3483. </p></dd>
  3484. <dt>&lsquo;<samp>7.0</samp>&rsquo;</dt>
  3485. <dd><p>FL+FR+FC+BL+BR+SL+SR
  3486. </p></dd>
  3487. <dt>&lsquo;<samp>7.0(front)</samp>&rsquo;</dt>
  3488. <dd><p>FL+FR+FC+FLC+FRC+SL+SR
  3489. </p></dd>
  3490. <dt>&lsquo;<samp>7.1</samp>&rsquo;</dt>
  3491. <dd><p>FL+FR+FC+LFE+BL+BR+SL+SR
  3492. </p></dd>
  3493. <dt>&lsquo;<samp>7.1(wide)</samp>&rsquo;</dt>
  3494. <dd><p>FL+FR+FC+LFE+BL+BR+FLC+FRC
  3495. </p></dd>
  3496. <dt>&lsquo;<samp>7.1(wide-side)</samp>&rsquo;</dt>
  3497. <dd><p>FL+FR+FC+LFE+FLC+FRC+SL+SR
  3498. </p></dd>
  3499. <dt>&lsquo;<samp>octagonal</samp>&rsquo;</dt>
  3500. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR
  3501. </p></dd>
  3502. <dt>&lsquo;<samp>hexadecagonal</samp>&rsquo;</dt>
  3503. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR+WL+WR+TBL+TBR+TBC+TFC+TFL+TFR
  3504. </p></dd>
  3505. <dt>&lsquo;<samp>downmix</samp>&rsquo;</dt>
  3506. <dd><p>DL+DR
  3507. </p></dd>
  3508. </dl>
  3509. <p>A custom channel layout can be specified as a sequence of terms, separated by
  3510. &rsquo;+&rsquo; or &rsquo;|&rsquo;. Each term can be:
  3511. </p><ul>
  3512. <li>
  3513. the name of a standard channel layout (e.g. &lsquo;<samp>mono</samp>&rsquo;,
  3514. &lsquo;<samp>stereo</samp>&rsquo;, &lsquo;<samp>4.0</samp>&rsquo;, &lsquo;<samp>quad</samp>&rsquo;, &lsquo;<samp>5.0</samp>&rsquo;, etc.)
  3515. </li><li>
  3516. the name of a single channel (e.g. &lsquo;<samp>FL</samp>&rsquo;, &lsquo;<samp>FR</samp>&rsquo;, &lsquo;<samp>FC</samp>&rsquo;, &lsquo;<samp>LFE</samp>&rsquo;, etc.)
  3517. </li><li>
  3518. a number of channels, in decimal, followed by &rsquo;c&rsquo;, yielding the default channel
  3519. layout for that number of channels (see the function
  3520. <code>av_get_default_channel_layout</code>). Note that not all channel counts have a
  3521. default layout.
  3522. </li><li>
  3523. a number of channels, in decimal, followed by &rsquo;C&rsquo;, yielding an unknown channel
  3524. layout with the specified number of channels. Note that not all channel layout
  3525. specification strings support unknown channel layouts.
  3526. </li><li>
  3527. a channel layout mask, in hexadecimal starting with &quot;0x&quot; (see the
  3528. <code>AV_CH_*</code> macros in &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;.
  3529. </li></ul>
  3530. <p>Before libavutil version 53 the trailing character &quot;c&quot; to specify a number of
  3531. channels was optional, but now it is required, while a channel layout mask can
  3532. also be specified as a decimal number (if and only if not followed by &quot;c&quot; or &quot;C&quot;).
  3533. </p>
  3534. <p>See also the function <code>av_get_channel_layout</code> defined in
  3535. &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;.
  3536. </p>
  3537. <a name="Expression-Evaluation"></a>
  3538. <h1 class="chapter"><a href="ffprobe-all.html#toc-Expression-Evaluation">7 Expression Evaluation</a></h1>
  3539. <p>When evaluating an arithmetic expression, FFmpeg uses an internal
  3540. formula evaluator, implemented through the &lsquo;<tt>libavutil/eval.h</tt>&rsquo;
  3541. interface.
  3542. </p>
  3543. <p>An expression may contain unary, binary operators, constants, and
  3544. functions.
  3545. </p>
  3546. <p>Two expressions <var>expr1</var> and <var>expr2</var> can be combined to form
  3547. another expression &quot;<var>expr1</var>;<var>expr2</var>&quot;.
  3548. <var>expr1</var> and <var>expr2</var> are evaluated in turn, and the new
  3549. expression evaluates to the value of <var>expr2</var>.
  3550. </p>
  3551. <p>The following binary operators are available: <code>+</code>, <code>-</code>,
  3552. <code>*</code>, <code>/</code>, <code>^</code>.
  3553. </p>
  3554. <p>The following unary operators are available: <code>+</code>, <code>-</code>.
  3555. </p>
  3556. <p>The following functions are available:
  3557. </p><dl compact="compact">
  3558. <dt>&lsquo;<samp>abs(x)</samp>&rsquo;</dt>
  3559. <dd><p>Compute absolute value of <var>x</var>.
  3560. </p>
  3561. </dd>
  3562. <dt>&lsquo;<samp>acos(x)</samp>&rsquo;</dt>
  3563. <dd><p>Compute arccosine of <var>x</var>.
  3564. </p>
  3565. </dd>
  3566. <dt>&lsquo;<samp>asin(x)</samp>&rsquo;</dt>
  3567. <dd><p>Compute arcsine of <var>x</var>.
  3568. </p>
  3569. </dd>
  3570. <dt>&lsquo;<samp>atan(x)</samp>&rsquo;</dt>
  3571. <dd><p>Compute arctangent of <var>x</var>.
  3572. </p>
  3573. </dd>
  3574. <dt>&lsquo;<samp>atan2(x, y)</samp>&rsquo;</dt>
  3575. <dd><p>Compute principal value of the arc tangent of <var>y</var>/<var>x</var>.
  3576. </p>
  3577. </dd>
  3578. <dt>&lsquo;<samp>between(x, min, max)</samp>&rsquo;</dt>
  3579. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>min</var> and lesser than or
  3580. equal to <var>max</var>, 0 otherwise.
  3581. </p>
  3582. </dd>
  3583. <dt>&lsquo;<samp>bitand(x, y)</samp>&rsquo;</dt>
  3584. <dt>&lsquo;<samp>bitor(x, y)</samp>&rsquo;</dt>
  3585. <dd><p>Compute bitwise and/or operation on <var>x</var> and <var>y</var>.
  3586. </p>
  3587. <p>The results of the evaluation of <var>x</var> and <var>y</var> are converted to
  3588. integers before executing the bitwise operation.
  3589. </p>
  3590. <p>Note that both the conversion to integer and the conversion back to
  3591. floating point can lose precision. Beware of unexpected results for
  3592. large numbers (usually 2^53 and larger).
  3593. </p>
  3594. </dd>
  3595. <dt>&lsquo;<samp>ceil(expr)</samp>&rsquo;</dt>
  3596. <dd><p>Round the value of expression <var>expr</var> upwards to the nearest
  3597. integer. For example, &quot;ceil(1.5)&quot; is &quot;2.0&quot;.
  3598. </p>
  3599. </dd>
  3600. <dt>&lsquo;<samp>clip(x, min, max)</samp>&rsquo;</dt>
  3601. <dd><p>Return the value of <var>x</var> clipped between <var>min</var> and <var>max</var>.
  3602. </p>
  3603. </dd>
  3604. <dt>&lsquo;<samp>cos(x)</samp>&rsquo;</dt>
  3605. <dd><p>Compute cosine of <var>x</var>.
  3606. </p>
  3607. </dd>
  3608. <dt>&lsquo;<samp>cosh(x)</samp>&rsquo;</dt>
  3609. <dd><p>Compute hyperbolic cosine of <var>x</var>.
  3610. </p>
  3611. </dd>
  3612. <dt>&lsquo;<samp>eq(x, y)</samp>&rsquo;</dt>
  3613. <dd><p>Return 1 if <var>x</var> and <var>y</var> are equivalent, 0 otherwise.
  3614. </p>
  3615. </dd>
  3616. <dt>&lsquo;<samp>exp(x)</samp>&rsquo;</dt>
  3617. <dd><p>Compute exponential of <var>x</var> (with base <code>e</code>, the Euler&rsquo;s number).
  3618. </p>
  3619. </dd>
  3620. <dt>&lsquo;<samp>floor(expr)</samp>&rsquo;</dt>
  3621. <dd><p>Round the value of expression <var>expr</var> downwards to the nearest
  3622. integer. For example, &quot;floor(-1.5)&quot; is &quot;-2.0&quot;.
  3623. </p>
  3624. </dd>
  3625. <dt>&lsquo;<samp>gauss(x)</samp>&rsquo;</dt>
  3626. <dd><p>Compute Gauss function of <var>x</var>, corresponding to
  3627. <code>exp(-x*x/2) / sqrt(2*PI)</code>.
  3628. </p>
  3629. </dd>
  3630. <dt>&lsquo;<samp>gcd(x, y)</samp>&rsquo;</dt>
  3631. <dd><p>Return the greatest common divisor of <var>x</var> and <var>y</var>. If both <var>x</var> and
  3632. <var>y</var> are 0 or either or both are less than zero then behavior is undefined.
  3633. </p>
  3634. </dd>
  3635. <dt>&lsquo;<samp>gt(x, y)</samp>&rsquo;</dt>
  3636. <dd><p>Return 1 if <var>x</var> is greater than <var>y</var>, 0 otherwise.
  3637. </p>
  3638. </dd>
  3639. <dt>&lsquo;<samp>gte(x, y)</samp>&rsquo;</dt>
  3640. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>y</var>, 0 otherwise.
  3641. </p>
  3642. </dd>
  3643. <dt>&lsquo;<samp>hypot(x, y)</samp>&rsquo;</dt>
  3644. <dd><p>This function is similar to the C function with the same name; it returns
  3645. &quot;sqrt(<var>x</var>*<var>x</var> + <var>y</var>*<var>y</var>)&quot;, the length of the hypotenuse of a
  3646. right triangle with sides of length <var>x</var> and <var>y</var>, or the distance of the
  3647. point (<var>x</var>, <var>y</var>) from the origin.
  3648. </p>
  3649. </dd>
  3650. <dt>&lsquo;<samp>if(x, y)</samp>&rsquo;</dt>
  3651. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the result of
  3652. the evaluation of <var>y</var>, return 0 otherwise.
  3653. </p>
  3654. </dd>
  3655. <dt>&lsquo;<samp>if(x, y, z)</samp>&rsquo;</dt>
  3656. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the evaluation
  3657. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  3658. </p>
  3659. </dd>
  3660. <dt>&lsquo;<samp>ifnot(x, y)</samp>&rsquo;</dt>
  3661. <dd><p>Evaluate <var>x</var>, and if the result is zero return the result of the
  3662. evaluation of <var>y</var>, return 0 otherwise.
  3663. </p>
  3664. </dd>
  3665. <dt>&lsquo;<samp>ifnot(x, y, z)</samp>&rsquo;</dt>
  3666. <dd><p>Evaluate <var>x</var>, and if the result is zero return the evaluation
  3667. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  3668. </p>
  3669. </dd>
  3670. <dt>&lsquo;<samp>isinf(x)</samp>&rsquo;</dt>
  3671. <dd><p>Return 1.0 if <var>x</var> is +/-INFINITY, 0.0 otherwise.
  3672. </p>
  3673. </dd>
  3674. <dt>&lsquo;<samp>isnan(x)</samp>&rsquo;</dt>
  3675. <dd><p>Return 1.0 if <var>x</var> is NAN, 0.0 otherwise.
  3676. </p>
  3677. </dd>
  3678. <dt>&lsquo;<samp>ld(var)</samp>&rsquo;</dt>
  3679. <dd><p>Load the value of the internal variable with number
  3680. <var>var</var>, which was previously stored with st(<var>var</var>, <var>expr</var>).
  3681. The function returns the loaded value.
  3682. </p>
  3683. </dd>
  3684. <dt>&lsquo;<samp>lerp(x, y, z)</samp>&rsquo;</dt>
  3685. <dd><p>Return linear interpolation between <var>x</var> and <var>y</var> by amount of <var>z</var>.
  3686. </p>
  3687. </dd>
  3688. <dt>&lsquo;<samp>log(x)</samp>&rsquo;</dt>
  3689. <dd><p>Compute natural logarithm of <var>x</var>.
  3690. </p>
  3691. </dd>
  3692. <dt>&lsquo;<samp>lt(x, y)</samp>&rsquo;</dt>
  3693. <dd><p>Return 1 if <var>x</var> is lesser than <var>y</var>, 0 otherwise.
  3694. </p>
  3695. </dd>
  3696. <dt>&lsquo;<samp>lte(x, y)</samp>&rsquo;</dt>
  3697. <dd><p>Return 1 if <var>x</var> is lesser than or equal to <var>y</var>, 0 otherwise.
  3698. </p>
  3699. </dd>
  3700. <dt>&lsquo;<samp>max(x, y)</samp>&rsquo;</dt>
  3701. <dd><p>Return the maximum between <var>x</var> and <var>y</var>.
  3702. </p>
  3703. </dd>
  3704. <dt>&lsquo;<samp>min(x, y)</samp>&rsquo;</dt>
  3705. <dd><p>Return the minimum between <var>x</var> and <var>y</var>.
  3706. </p>
  3707. </dd>
  3708. <dt>&lsquo;<samp>mod(x, y)</samp>&rsquo;</dt>
  3709. <dd><p>Compute the remainder of division of <var>x</var> by <var>y</var>.
  3710. </p>
  3711. </dd>
  3712. <dt>&lsquo;<samp>not(expr)</samp>&rsquo;</dt>
  3713. <dd><p>Return 1.0 if <var>expr</var> is zero, 0.0 otherwise.
  3714. </p>
  3715. </dd>
  3716. <dt>&lsquo;<samp>pow(x, y)</samp>&rsquo;</dt>
  3717. <dd><p>Compute the power of <var>x</var> elevated <var>y</var>, it is equivalent to
  3718. &quot;(<var>x</var>)^(<var>y</var>)&quot;.
  3719. </p>
  3720. </dd>
  3721. <dt>&lsquo;<samp>print(t)</samp>&rsquo;</dt>
  3722. <dt>&lsquo;<samp>print(t, l)</samp>&rsquo;</dt>
  3723. <dd><p>Print the value of expression <var>t</var> with loglevel <var>l</var>. If
  3724. <var>l</var> is not specified then a default log level is used.
  3725. Returns the value of the expression printed.
  3726. </p>
  3727. <p>Prints t with loglevel l
  3728. </p>
  3729. </dd>
  3730. <dt>&lsquo;<samp>random(x)</samp>&rsquo;</dt>
  3731. <dd><p>Return a pseudo random value between 0.0 and 1.0. <var>x</var> is the index of the
  3732. internal variable which will be used to save the seed/state.
  3733. </p>
  3734. </dd>
  3735. <dt>&lsquo;<samp>root(expr, max)</samp>&rsquo;</dt>
  3736. <dd><p>Find an input value for which the function represented by <var>expr</var>
  3737. with argument <var>ld(0)</var> is 0 in the interval 0..<var>max</var>.
  3738. </p>
  3739. <p>The expression in <var>expr</var> must denote a continuous function or the
  3740. result is undefined.
  3741. </p>
  3742. <p><var>ld(0)</var> is used to represent the function input value, which means
  3743. that the given expression will be evaluated multiple times with
  3744. various input values that the expression can access through
  3745. <code>ld(0)</code>. When the expression evaluates to 0 then the
  3746. corresponding input value will be returned.
  3747. </p>
  3748. </dd>
  3749. <dt>&lsquo;<samp>round(expr)</samp>&rsquo;</dt>
  3750. <dd><p>Round the value of expression <var>expr</var> to the nearest integer. For example, &quot;round(1.5)&quot; is &quot;2.0&quot;.
  3751. </p>
  3752. </dd>
  3753. <dt>&lsquo;<samp>sgn(x)</samp>&rsquo;</dt>
  3754. <dd><p>Compute sign of <var>x</var>.
  3755. </p>
  3756. </dd>
  3757. <dt>&lsquo;<samp>sin(x)</samp>&rsquo;</dt>
  3758. <dd><p>Compute sine of <var>x</var>.
  3759. </p>
  3760. </dd>
  3761. <dt>&lsquo;<samp>sinh(x)</samp>&rsquo;</dt>
  3762. <dd><p>Compute hyperbolic sine of <var>x</var>.
  3763. </p>
  3764. </dd>
  3765. <dt>&lsquo;<samp>sqrt(expr)</samp>&rsquo;</dt>
  3766. <dd><p>Compute the square root of <var>expr</var>. This is equivalent to
  3767. &quot;(<var>expr</var>)^.5&quot;.
  3768. </p>
  3769. </dd>
  3770. <dt>&lsquo;<samp>squish(x)</samp>&rsquo;</dt>
  3771. <dd><p>Compute expression <code>1/(1 + exp(4*x))</code>.
  3772. </p>
  3773. </dd>
  3774. <dt>&lsquo;<samp>st(var, expr)</samp>&rsquo;</dt>
  3775. <dd><p>Store the value of the expression <var>expr</var> in an internal
  3776. variable. <var>var</var> specifies the number of the variable where to
  3777. store the value, and it is a value ranging from 0 to 9. The function
  3778. returns the value stored in the internal variable.
  3779. Note, Variables are currently not shared between expressions.
  3780. </p>
  3781. </dd>
  3782. <dt>&lsquo;<samp>tan(x)</samp>&rsquo;</dt>
  3783. <dd><p>Compute tangent of <var>x</var>.
  3784. </p>
  3785. </dd>
  3786. <dt>&lsquo;<samp>tanh(x)</samp>&rsquo;</dt>
  3787. <dd><p>Compute hyperbolic tangent of <var>x</var>.
  3788. </p>
  3789. </dd>
  3790. <dt>&lsquo;<samp>taylor(expr, x)</samp>&rsquo;</dt>
  3791. <dt>&lsquo;<samp>taylor(expr, x, id)</samp>&rsquo;</dt>
  3792. <dd><p>Evaluate a Taylor series at <var>x</var>, given an expression representing
  3793. the <code>ld(id)</code>-th derivative of a function at 0.
  3794. </p>
  3795. <p>When the series does not converge the result is undefined.
  3796. </p>
  3797. <p><var>ld(id)</var> is used to represent the derivative order in <var>expr</var>,
  3798. which means that the given expression will be evaluated multiple times
  3799. with various input values that the expression can access through
  3800. <code>ld(id)</code>. If <var>id</var> is not specified then 0 is assumed.
  3801. </p>
  3802. <p>Note, when you have the derivatives at y instead of 0,
  3803. <code>taylor(expr, x-y)</code> can be used.
  3804. </p>
  3805. </dd>
  3806. <dt>&lsquo;<samp>time(0)</samp>&rsquo;</dt>
  3807. <dd><p>Return the current (wallclock) time in seconds.
  3808. </p>
  3809. </dd>
  3810. <dt>&lsquo;<samp>trunc(expr)</samp>&rsquo;</dt>
  3811. <dd><p>Round the value of expression <var>expr</var> towards zero to the nearest
  3812. integer. For example, &quot;trunc(-1.5)&quot; is &quot;-1.0&quot;.
  3813. </p>
  3814. </dd>
  3815. <dt>&lsquo;<samp>while(cond, expr)</samp>&rsquo;</dt>
  3816. <dd><p>Evaluate expression <var>expr</var> while the expression <var>cond</var> is
  3817. non-zero, and returns the value of the last <var>expr</var> evaluation, or
  3818. NAN if <var>cond</var> was always false.
  3819. </p></dd>
  3820. </dl>
  3821. <p>The following constants are available:
  3822. </p><dl compact="compact">
  3823. <dt>&lsquo;<samp>PI</samp>&rsquo;</dt>
  3824. <dd><p>area of the unit disc, approximately 3.14
  3825. </p></dd>
  3826. <dt>&lsquo;<samp>E</samp>&rsquo;</dt>
  3827. <dd><p>exp(1) (Euler&rsquo;s number), approximately 2.718
  3828. </p></dd>
  3829. <dt>&lsquo;<samp>PHI</samp>&rsquo;</dt>
  3830. <dd><p>golden ratio (1+sqrt(5))/2, approximately 1.618
  3831. </p></dd>
  3832. </dl>
  3833. <p>Assuming that an expression is considered &quot;true&quot; if it has a non-zero
  3834. value, note that:
  3835. </p>
  3836. <p><code>*</code> works like AND
  3837. </p>
  3838. <p><code>+</code> works like OR
  3839. </p>
  3840. <p>For example the construct:
  3841. </p><div class="example">
  3842. <pre class="example">if (A AND B) then C
  3843. </pre></div>
  3844. <p>is equivalent to:
  3845. </p><div class="example">
  3846. <pre class="example">if(A*B, C)
  3847. </pre></div>
  3848. <p>In your C code, you can extend the list of unary and binary functions,
  3849. and define recognized constants, so that they are available for your
  3850. expressions.
  3851. </p>
  3852. <p>The evaluator also recognizes the International System unit prefixes.
  3853. If &rsquo;i&rsquo; is appended after the prefix, binary prefixes are used, which
  3854. are based on powers of 1024 instead of powers of 1000.
  3855. The &rsquo;B&rsquo; postfix multiplies the value by 8, and can be appended after a
  3856. unit prefix or used alone. This allows using for example &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;,
  3857. &rsquo;G&rsquo; and &rsquo;B&rsquo; as number postfix.
  3858. </p>
  3859. <p>The list of available International System prefixes follows, with
  3860. indication of the corresponding powers of 10 and of 2.
  3861. </p><dl compact="compact">
  3862. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  3863. <dd><p>10^-24 / 2^-80
  3864. </p></dd>
  3865. <dt>&lsquo;<samp>z</samp>&rsquo;</dt>
  3866. <dd><p>10^-21 / 2^-70
  3867. </p></dd>
  3868. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  3869. <dd><p>10^-18 / 2^-60
  3870. </p></dd>
  3871. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  3872. <dd><p>10^-15 / 2^-50
  3873. </p></dd>
  3874. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  3875. <dd><p>10^-12 / 2^-40
  3876. </p></dd>
  3877. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  3878. <dd><p>10^-9 / 2^-30
  3879. </p></dd>
  3880. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  3881. <dd><p>10^-6 / 2^-20
  3882. </p></dd>
  3883. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  3884. <dd><p>10^-3 / 2^-10
  3885. </p></dd>
  3886. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  3887. <dd><p>10^-2
  3888. </p></dd>
  3889. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  3890. <dd><p>10^-1
  3891. </p></dd>
  3892. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  3893. <dd><p>10^2
  3894. </p></dd>
  3895. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  3896. <dd><p>10^3 / 2^10
  3897. </p></dd>
  3898. <dt>&lsquo;<samp>K</samp>&rsquo;</dt>
  3899. <dd><p>10^3 / 2^10
  3900. </p></dd>
  3901. <dt>&lsquo;<samp>M</samp>&rsquo;</dt>
  3902. <dd><p>10^6 / 2^20
  3903. </p></dd>
  3904. <dt>&lsquo;<samp>G</samp>&rsquo;</dt>
  3905. <dd><p>10^9 / 2^30
  3906. </p></dd>
  3907. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  3908. <dd><p>10^12 / 2^40
  3909. </p></dd>
  3910. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  3911. <dd><p>10^15 / 2^40
  3912. </p></dd>
  3913. <dt>&lsquo;<samp>E</samp>&rsquo;</dt>
  3914. <dd><p>10^18 / 2^50
  3915. </p></dd>
  3916. <dt>&lsquo;<samp>Z</samp>&rsquo;</dt>
  3917. <dd><p>10^21 / 2^60
  3918. </p></dd>
  3919. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  3920. <dd><p>10^24 / 2^70
  3921. </p></dd>
  3922. </dl>
  3923. <p><a name="codec_002doptions"></a>
  3924. </p><a name="Codec-Options"></a>
  3925. <h1 class="chapter"><a href="ffprobe-all.html#toc-Codec-Options">8 Codec Options</a></h1>
  3926. <p>libavcodec provides some generic global options, which can be set on
  3927. all the encoders and decoders. In addition each codec may support
  3928. so-called private options, which are specific for a given codec.
  3929. </p>
  3930. <p>Sometimes, a global option may only affect a specific kind of codec,
  3931. and may be nonsensical or ignored by another, so you need to be aware
  3932. of the meaning of the specified options. Also some options are
  3933. meant only for decoding or encoding.
  3934. </p>
  3935. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  3936. FFmpeg tools, or by setting the value explicitly in the
  3937. <code>AVCodecContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  3938. for programmatic use.
  3939. </p>
  3940. <p>The list of supported options follow:
  3941. </p>
  3942. <dl compact="compact">
  3943. <dt>&lsquo;<samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  3944. <dd><p>Set bitrate in bits/s. Default value is 200K.
  3945. </p>
  3946. </dd>
  3947. <dt>&lsquo;<samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  3948. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  3949. </p>
  3950. </dd>
  3951. <dt>&lsquo;<samp>bt <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  3952. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  3953. tolerance specifies how far ratecontrol is willing to deviate from the
  3954. target average bitrate value. This is not related to min/max
  3955. bitrate. Lowering tolerance too much has an adverse effect on quality.
  3956. </p>
  3957. </dd>
  3958. <dt>&lsquo;<samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  3959. <dd><p>Set generic flags.
  3960. </p>
  3961. <p>Possible values:
  3962. </p><dl compact="compact">
  3963. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  3964. <dd><p>Use four motion vector by macroblock (mpeg4).
  3965. </p></dd>
  3966. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  3967. <dd><p>Use 1/4 pel motion compensation.
  3968. </p></dd>
  3969. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  3970. <dd><p>Use loop filter.
  3971. </p></dd>
  3972. <dt>&lsquo;<samp>qscale</samp>&rsquo;</dt>
  3973. <dd><p>Use fixed qscale.
  3974. </p></dd>
  3975. <dt>&lsquo;<samp>pass1</samp>&rsquo;</dt>
  3976. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  3977. </p></dd>
  3978. <dt>&lsquo;<samp>pass2</samp>&rsquo;</dt>
  3979. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  3980. </p></dd>
  3981. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  3982. <dd><p>Only decode/encode grayscale.
  3983. </p></dd>
  3984. <dt>&lsquo;<samp>emu_edge</samp>&rsquo;</dt>
  3985. <dd><p>Do not draw edges.
  3986. </p></dd>
  3987. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  3988. <dd><p>Set error[?] variables during encoding.
  3989. </p></dd>
  3990. <dt>&lsquo;<samp>truncated</samp>&rsquo;</dt>
  3991. <dd><p>Input bitstream might be randomly truncated.
  3992. </p></dd>
  3993. <dt>&lsquo;<samp>drop_changed</samp>&rsquo;</dt>
  3994. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  3995. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  3996. </p>
  3997. </dd>
  3998. <dt>&lsquo;<samp>ildct</samp>&rsquo;</dt>
  3999. <dd><p>Use interlaced DCT.
  4000. </p></dd>
  4001. <dt>&lsquo;<samp>low_delay</samp>&rsquo;</dt>
  4002. <dd><p>Force low delay.
  4003. </p></dd>
  4004. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  4005. <dd><p>Place global headers in extradata instead of every keyframe.
  4006. </p></dd>
  4007. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  4008. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  4009. This ensures that file and data checksums are reproducible and match between
  4010. platforms. Its primary use is for regression testing.
  4011. </p></dd>
  4012. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  4013. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  4014. </p></dd>
  4015. <dt>&lsquo;<samp>cbp</samp>&rsquo;</dt>
  4016. <dd><p>Deprecated, use mpegvideo private options instead.
  4017. </p></dd>
  4018. <dt>&lsquo;<samp>qprd</samp>&rsquo;</dt>
  4019. <dd><p>Deprecated, use mpegvideo private options instead.
  4020. </p></dd>
  4021. <dt>&lsquo;<samp>ilme</samp>&rsquo;</dt>
  4022. <dd><p>Apply interlaced motion estimation.
  4023. </p></dd>
  4024. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  4025. <dd><p>Use closed gop.
  4026. </p></dd>
  4027. <dt>&lsquo;<samp>output_corrupt</samp>&rsquo;</dt>
  4028. <dd><p>Output even potentially corrupted frames.
  4029. </p></dd>
  4030. </dl>
  4031. </dd>
  4032. <dt>&lsquo;<samp>me_method <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4033. <dd><p>Set motion estimation method.
  4034. </p>
  4035. <p>Possible values:
  4036. </p><dl compact="compact">
  4037. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4038. <dd><p>zero motion estimation (fastest)
  4039. </p></dd>
  4040. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  4041. <dd><p>full motion estimation (slowest)
  4042. </p></dd>
  4043. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  4044. <dd><p>EPZS motion estimation (default)
  4045. </p></dd>
  4046. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  4047. <dd><p>esa motion estimation (alias for full)
  4048. </p></dd>
  4049. <dt>&lsquo;<samp>tesa</samp>&rsquo;</dt>
  4050. <dd><p>tesa motion estimation
  4051. </p></dd>
  4052. <dt>&lsquo;<samp>dia</samp>&rsquo;</dt>
  4053. <dd><p>dia motion estimation (alias for epzs)
  4054. </p></dd>
  4055. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  4056. <dd><p>log motion estimation
  4057. </p></dd>
  4058. <dt>&lsquo;<samp>phods</samp>&rsquo;</dt>
  4059. <dd><p>phods motion estimation
  4060. </p></dd>
  4061. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  4062. <dd><p>X1 motion estimation
  4063. </p></dd>
  4064. <dt>&lsquo;<samp>hex</samp>&rsquo;</dt>
  4065. <dd><p>hex motion estimation
  4066. </p></dd>
  4067. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  4068. <dd><p>umh motion estimation
  4069. </p></dd>
  4070. <dt>&lsquo;<samp>iter</samp>&rsquo;</dt>
  4071. <dd><p>iter motion estimation
  4072. </p></dd>
  4073. </dl>
  4074. </dd>
  4075. <dt>&lsquo;<samp>extradata_size <var>integer</var></samp>&rsquo;</dt>
  4076. <dd><p>Set extradata size.
  4077. </p>
  4078. </dd>
  4079. <dt>&lsquo;<samp>time_base <var>rational number</var></samp>&rsquo;</dt>
  4080. <dd><p>Set codec time base.
  4081. </p>
  4082. <p>It is the fundamental unit of time (in seconds) in terms of which
  4083. frame timestamps are represented. For fixed-fps content, timebase
  4084. should be <code>1 / frame_rate</code> and timestamp increments should be
  4085. identically 1.
  4086. </p>
  4087. </dd>
  4088. <dt>&lsquo;<samp>g <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4089. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  4090. </p>
  4091. </dd>
  4092. <dt>&lsquo;<samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  4093. <dd><p>Set audio sampling rate (in Hz).
  4094. </p>
  4095. </dd>
  4096. <dt>&lsquo;<samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  4097. <dd><p>Set number of audio channels.
  4098. </p>
  4099. </dd>
  4100. <dt>&lsquo;<samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  4101. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  4102. their respective documentation sections.)
  4103. </p>
  4104. </dd>
  4105. <dt>&lsquo;<samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  4106. <dd><p>Set audio frame size.
  4107. </p>
  4108. <p>Each submitted frame except the last must contain exactly frame_size
  4109. samples per channel. May be 0 when the codec has
  4110. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  4111. restricted. It is set by some decoders to indicate constant frame
  4112. size.
  4113. </p>
  4114. </dd>
  4115. <dt>&lsquo;<samp>frame_number <var>integer</var></samp>&rsquo;</dt>
  4116. <dd><p>Set the frame number.
  4117. </p>
  4118. </dd>
  4119. <dt>&lsquo;<samp>delay <var>integer</var></samp>&rsquo;</dt>
  4120. <dt>&lsquo;<samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4121. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  4122. in the ratecontrol equation. Recommended range for default rc_eq:
  4123. 0.0-1.0.
  4124. </p>
  4125. </dd>
  4126. <dt>&lsquo;<samp>qblur <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4127. <dd><p>Set video quantizer scale blur (VBR).
  4128. </p>
  4129. </dd>
  4130. <dt>&lsquo;<samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4131. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  4132. 69, default value is 2.
  4133. </p>
  4134. </dd>
  4135. <dt>&lsquo;<samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4136. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  4137. 1024, default value is 31.
  4138. </p>
  4139. </dd>
  4140. <dt>&lsquo;<samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4141. <dd><p>Set max difference between the quantizer scale (VBR).
  4142. </p>
  4143. </dd>
  4144. <dt>&lsquo;<samp>bf <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4145. <dd><p>Set max number of B frames between non-B-frames.
  4146. </p>
  4147. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  4148. disabled. If a value of -1 is used, it will choose an automatic value
  4149. depending on the encoder.
  4150. </p>
  4151. <p>Default value is 0.
  4152. </p>
  4153. </dd>
  4154. <dt>&lsquo;<samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4155. <dd><p>Set qp factor between P and B frames.
  4156. </p>
  4157. </dd>
  4158. <dt>&lsquo;<samp>rc_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4159. <dd><p>Set ratecontrol method.
  4160. </p>
  4161. </dd>
  4162. <dt>&lsquo;<samp>b_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4163. <dd><p>Set strategy to choose between I/P/B-frames.
  4164. </p>
  4165. </dd>
  4166. <dt>&lsquo;<samp>ps <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4167. <dd><p>Set RTP payload size in bytes.
  4168. </p>
  4169. </dd>
  4170. <dt>&lsquo;<samp>mv_bits <var>integer</var></samp>&rsquo;</dt>
  4171. <dt>&lsquo;<samp>header_bits <var>integer</var></samp>&rsquo;</dt>
  4172. <dt>&lsquo;<samp>i_tex_bits <var>integer</var></samp>&rsquo;</dt>
  4173. <dt>&lsquo;<samp>p_tex_bits <var>integer</var></samp>&rsquo;</dt>
  4174. <dt>&lsquo;<samp>i_count <var>integer</var></samp>&rsquo;</dt>
  4175. <dt>&lsquo;<samp>p_count <var>integer</var></samp>&rsquo;</dt>
  4176. <dt>&lsquo;<samp>skip_count <var>integer</var></samp>&rsquo;</dt>
  4177. <dt>&lsquo;<samp>misc_bits <var>integer</var></samp>&rsquo;</dt>
  4178. <dt>&lsquo;<samp>frame_bits <var>integer</var></samp>&rsquo;</dt>
  4179. <dt>&lsquo;<samp>codec_tag <var>integer</var></samp>&rsquo;</dt>
  4180. <dt>&lsquo;<samp>bug <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4181. <dd><p>Workaround not auto detected encoder bugs.
  4182. </p>
  4183. <p>Possible values:
  4184. </p><dl compact="compact">
  4185. <dt>&lsquo;<samp>autodetect</samp>&rsquo;</dt>
  4186. <dt>&lsquo;<samp>old_msmpeg4</samp>&rsquo;</dt>
  4187. <dd><p>some old lavc generated msmpeg4v3 files (no autodetection)
  4188. </p></dd>
  4189. <dt>&lsquo;<samp>xvid_ilace</samp>&rsquo;</dt>
  4190. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  4191. </p></dd>
  4192. <dt>&lsquo;<samp>ump4</samp>&rsquo;</dt>
  4193. <dd><p>(autodetected if fourcc==UMP4)
  4194. </p></dd>
  4195. <dt>&lsquo;<samp>no_padding</samp>&rsquo;</dt>
  4196. <dd><p>padding bug (autodetected)
  4197. </p></dd>
  4198. <dt>&lsquo;<samp>amv</samp>&rsquo;</dt>
  4199. <dt>&lsquo;<samp>ac_vlc</samp>&rsquo;</dt>
  4200. <dd><p>illegal vlc bug (autodetected per fourcc)
  4201. </p></dd>
  4202. <dt>&lsquo;<samp>qpel_chroma</samp>&rsquo;</dt>
  4203. <dt>&lsquo;<samp>std_qpel</samp>&rsquo;</dt>
  4204. <dd><p>old standard qpel (autodetected per fourcc/version)
  4205. </p></dd>
  4206. <dt>&lsquo;<samp>qpel_chroma2</samp>&rsquo;</dt>
  4207. <dt>&lsquo;<samp>direct_blocksize</samp>&rsquo;</dt>
  4208. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  4209. </p></dd>
  4210. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  4211. <dd><p>edge padding bug (autodetected per fourcc/version)
  4212. </p></dd>
  4213. <dt>&lsquo;<samp>hpel_chroma</samp>&rsquo;</dt>
  4214. <dt>&lsquo;<samp>dc_clip</samp>&rsquo;</dt>
  4215. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  4216. <dd><p>Workaround various bugs in microsoft broken decoders.
  4217. </p></dd>
  4218. <dt>&lsquo;<samp>trunc</samp>&rsquo;</dt>
  4219. <dd><p>trancated frames
  4220. </p></dd>
  4221. </dl>
  4222. </dd>
  4223. <dt>&lsquo;<samp>lelim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4224. <dd><p>Set single coefficient elimination threshold for luminance (negative
  4225. values also consider DC coefficient).
  4226. </p>
  4227. </dd>
  4228. <dt>&lsquo;<samp>celim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4229. <dd><p>Set single coefficient elimination threshold for chrominance (negative
  4230. values also consider dc coefficient)
  4231. </p>
  4232. </dd>
  4233. <dt>&lsquo;<samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  4234. <dd><p>Specify how strictly to follow the standards.
  4235. </p>
  4236. <p>Possible values:
  4237. </p><dl compact="compact">
  4238. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  4239. <dd><p>strictly conform to an older more strict version of the spec or reference software
  4240. </p></dd>
  4241. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  4242. <dd><p>strictly conform to all the things in the spec no matter what consequences
  4243. </p></dd>
  4244. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  4245. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  4246. <dd><p>allow unofficial extensions
  4247. </p></dd>
  4248. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  4249. <dd><p>allow non standardized experimental things, experimental
  4250. (unfinished/work in progress/not well tested) decoders and encoders.
  4251. Note: experimental decoders can pose a security risk, do not use this for
  4252. decoding untrusted input.
  4253. </p></dd>
  4254. </dl>
  4255. </dd>
  4256. <dt>&lsquo;<samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4257. <dd><p>Set QP offset between P and B frames.
  4258. </p>
  4259. </dd>
  4260. <dt>&lsquo;<samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  4261. <dd><p>Set error detection flags.
  4262. </p>
  4263. <p>Possible values:
  4264. </p><dl compact="compact">
  4265. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  4266. <dd><p>verify embedded CRCs
  4267. </p></dd>
  4268. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  4269. <dd><p>detect bitstream specification deviations
  4270. </p></dd>
  4271. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  4272. <dd><p>detect improper bitstream length
  4273. </p></dd>
  4274. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  4275. <dd><p>abort decoding on minor error detection
  4276. </p></dd>
  4277. <dt>&lsquo;<samp>ignore_err</samp>&rsquo;</dt>
  4278. <dd><p>ignore decoding errors, and continue decoding.
  4279. This is useful if you want to analyze the content of a video and thus want
  4280. everything to be decoded no matter what. This option will not result in a video
  4281. that is pleasing to watch in case of errors.
  4282. </p></dd>
  4283. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  4284. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  4285. </p></dd>
  4286. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  4287. <dd><p>consider all spec non compliancies as errors
  4288. </p></dd>
  4289. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  4290. <dd><p>consider things that a sane encoder should not do as an error
  4291. </p></dd>
  4292. </dl>
  4293. </dd>
  4294. <dt>&lsquo;<samp>has_b_frames <var>integer</var></samp>&rsquo;</dt>
  4295. <dt>&lsquo;<samp>block_align <var>integer</var></samp>&rsquo;</dt>
  4296. <dt>&lsquo;<samp>mpeg_quant <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4297. <dd><p>Use MPEG quantizers instead of H.263.
  4298. </p>
  4299. </dd>
  4300. <dt>&lsquo;<samp>qsquish <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4301. <dd><p>How to keep quantizer between qmin and qmax (0 = clip, 1 = use
  4302. differentiable function).
  4303. </p>
  4304. </dd>
  4305. <dt>&lsquo;<samp>rc_qmod_amp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4306. <dd><p>Set experimental quantizer modulation.
  4307. </p>
  4308. </dd>
  4309. <dt>&lsquo;<samp>rc_qmod_freq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4310. <dd><p>Set experimental quantizer modulation.
  4311. </p>
  4312. </dd>
  4313. <dt>&lsquo;<samp>rc_override_count <var>integer</var></samp>&rsquo;</dt>
  4314. <dt>&lsquo;<samp>rc_eq <var>string</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4315. <dd><p>Set rate control equation. When computing the expression, besides the
  4316. standard functions defined in the section &rsquo;Expression Evaluation&rsquo;, the
  4317. following functions are available: bits2qp(bits), qp2bits(qp). Also
  4318. the following constants are available: iTex pTex tex mv fCode iCount
  4319. mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
  4320. avgTex.
  4321. </p>
  4322. </dd>
  4323. <dt>&lsquo;<samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4324. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  4325. </p>
  4326. </dd>
  4327. <dt>&lsquo;<samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4328. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  4329. encode. It is of little use elsewise.
  4330. </p>
  4331. </dd>
  4332. <dt>&lsquo;<samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4333. <dd><p>Set ratecontrol buffer size (in bits).
  4334. </p>
  4335. </dd>
  4336. <dt>&lsquo;<samp>rc_buf_aggressivity <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4337. <dd><p>Currently useless.
  4338. </p>
  4339. </dd>
  4340. <dt>&lsquo;<samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4341. <dd><p>Set QP factor between P and I frames.
  4342. </p>
  4343. </dd>
  4344. <dt>&lsquo;<samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4345. <dd><p>Set QP offset between P and I frames.
  4346. </p>
  4347. </dd>
  4348. <dt>&lsquo;<samp>rc_init_cplx <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4349. <dd><p>Set initial complexity for 1-pass encoding.
  4350. </p>
  4351. </dd>
  4352. <dt>&lsquo;<samp>dct <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4353. <dd><p>Set DCT algorithm.
  4354. </p>
  4355. <p>Possible values:
  4356. </p><dl compact="compact">
  4357. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4358. <dd><p>autoselect a good one (default)
  4359. </p></dd>
  4360. <dt>&lsquo;<samp>fastint</samp>&rsquo;</dt>
  4361. <dd><p>fast integer
  4362. </p></dd>
  4363. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  4364. <dd><p>accurate integer
  4365. </p></dd>
  4366. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  4367. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  4368. <dt>&lsquo;<samp>faan</samp>&rsquo;</dt>
  4369. <dd><p>floating point AAN DCT
  4370. </p></dd>
  4371. </dl>
  4372. </dd>
  4373. <dt>&lsquo;<samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4374. <dd><p>Compress bright areas stronger than medium ones.
  4375. </p>
  4376. </dd>
  4377. <dt>&lsquo;<samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4378. <dd><p>Set temporal complexity masking.
  4379. </p>
  4380. </dd>
  4381. <dt>&lsquo;<samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4382. <dd><p>Set spatial complexity masking.
  4383. </p>
  4384. </dd>
  4385. <dt>&lsquo;<samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4386. <dd><p>Set inter masking.
  4387. </p>
  4388. </dd>
  4389. <dt>&lsquo;<samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4390. <dd><p>Compress dark areas stronger than medium ones.
  4391. </p>
  4392. </dd>
  4393. <dt>&lsquo;<samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  4394. <dd><p>Select IDCT implementation.
  4395. </p>
  4396. <p>Possible values:
  4397. </p><dl compact="compact">
  4398. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4399. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  4400. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  4401. <dt>&lsquo;<samp>simplemmx</samp>&rsquo;</dt>
  4402. <dt>&lsquo;<samp>simpleauto</samp>&rsquo;</dt>
  4403. <dd><p>Automatically pick a IDCT compatible with the simple one
  4404. </p>
  4405. </dd>
  4406. <dt>&lsquo;<samp>arm</samp>&rsquo;</dt>
  4407. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  4408. <dt>&lsquo;<samp>sh4</samp>&rsquo;</dt>
  4409. <dt>&lsquo;<samp>simplearm</samp>&rsquo;</dt>
  4410. <dt>&lsquo;<samp>simplearmv5te</samp>&rsquo;</dt>
  4411. <dt>&lsquo;<samp>simplearmv6</samp>&rsquo;</dt>
  4412. <dt>&lsquo;<samp>simpleneon</samp>&rsquo;</dt>
  4413. <dt>&lsquo;<samp>simplealpha</samp>&rsquo;</dt>
  4414. <dt>&lsquo;<samp>ipp</samp>&rsquo;</dt>
  4415. <dt>&lsquo;<samp>xvidmmx</samp>&rsquo;</dt>
  4416. <dt>&lsquo;<samp>faani</samp>&rsquo;</dt>
  4417. <dd><p>floating point AAN IDCT
  4418. </p></dd>
  4419. </dl>
  4420. </dd>
  4421. <dt>&lsquo;<samp>slice_count <var>integer</var></samp>&rsquo;</dt>
  4422. <dt>&lsquo;<samp>ec <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4423. <dd><p>Set error concealment strategy.
  4424. </p>
  4425. <p>Possible values:
  4426. </p><dl compact="compact">
  4427. <dt>&lsquo;<samp>guess_mvs</samp>&rsquo;</dt>
  4428. <dd><p>iterative motion vector (MV) search (slow)
  4429. </p></dd>
  4430. <dt>&lsquo;<samp>deblock</samp>&rsquo;</dt>
  4431. <dd><p>use strong deblock filter for damaged MBs
  4432. </p></dd>
  4433. <dt>&lsquo;<samp>favor_inter</samp>&rsquo;</dt>
  4434. <dd><p>favor predicting from the previous frame instead of the current
  4435. </p></dd>
  4436. </dl>
  4437. </dd>
  4438. <dt>&lsquo;<samp>bits_per_coded_sample <var>integer</var></samp>&rsquo;</dt>
  4439. <dt>&lsquo;<samp>pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4440. <dd><p>Set prediction method.
  4441. </p>
  4442. <p>Possible values:
  4443. </p><dl compact="compact">
  4444. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  4445. <dt>&lsquo;<samp>plane</samp>&rsquo;</dt>
  4446. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  4447. </dl>
  4448. </dd>
  4449. <dt>&lsquo;<samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4450. <dd><p>Set sample aspect ratio.
  4451. </p>
  4452. </dd>
  4453. <dt>&lsquo;<samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4454. <dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
  4455. </p>
  4456. </dd>
  4457. <dt>&lsquo;<samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4458. <dd><p>Print specific debug info.
  4459. </p>
  4460. <p>Possible values:
  4461. </p><dl compact="compact">
  4462. <dt>&lsquo;<samp>pict</samp>&rsquo;</dt>
  4463. <dd><p>picture info
  4464. </p></dd>
  4465. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  4466. <dd><p>rate control
  4467. </p></dd>
  4468. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  4469. <dt>&lsquo;<samp>mb_type</samp>&rsquo;</dt>
  4470. <dd><p>macroblock (MB) type
  4471. </p></dd>
  4472. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  4473. <dd><p>per-block quantization parameter (QP)
  4474. </p></dd>
  4475. <dt>&lsquo;<samp>dct_coeff</samp>&rsquo;</dt>
  4476. <dt>&lsquo;<samp>green_metadata</samp>&rsquo;</dt>
  4477. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  4478. </p>
  4479. </dd>
  4480. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  4481. <dt>&lsquo;<samp>startcode</samp>&rsquo;</dt>
  4482. <dt>&lsquo;<samp>er</samp>&rsquo;</dt>
  4483. <dd><p>error recognition
  4484. </p></dd>
  4485. <dt>&lsquo;<samp>mmco</samp>&rsquo;</dt>
  4486. <dd><p>memory management control operations (H.264)
  4487. </p></dd>
  4488. <dt>&lsquo;<samp>bugs</samp>&rsquo;</dt>
  4489. <dt>&lsquo;<samp>buffers</samp>&rsquo;</dt>
  4490. <dd><p>picture buffer allocations
  4491. </p></dd>
  4492. <dt>&lsquo;<samp>thread_ops</samp>&rsquo;</dt>
  4493. <dd><p>threading operations
  4494. </p></dd>
  4495. <dt>&lsquo;<samp>nomc</samp>&rsquo;</dt>
  4496. <dd><p>skip motion compensation
  4497. </p></dd>
  4498. </dl>
  4499. </dd>
  4500. <dt>&lsquo;<samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4501. <dd><p>Set full pel me compare function.
  4502. </p>
  4503. <p>Possible values:
  4504. </p><dl compact="compact">
  4505. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4506. <dd><p>sum of absolute differences, fast (default)
  4507. </p></dd>
  4508. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4509. <dd><p>sum of squared errors
  4510. </p></dd>
  4511. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4512. <dd><p>sum of absolute Hadamard transformed differences
  4513. </p></dd>
  4514. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4515. <dd><p>sum of absolute DCT transformed differences
  4516. </p></dd>
  4517. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4518. <dd><p>sum of squared quantization errors (avoid, low quality)
  4519. </p></dd>
  4520. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4521. <dd><p>number of bits needed for the block
  4522. </p></dd>
  4523. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4524. <dd><p>rate distortion optimal, slow
  4525. </p></dd>
  4526. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4527. <dd><p>0
  4528. </p></dd>
  4529. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4530. <dd><p>sum of absolute vertical differences
  4531. </p></dd>
  4532. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4533. <dd><p>sum of squared vertical differences
  4534. </p></dd>
  4535. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4536. <dd><p>noise preserving sum of squared differences
  4537. </p></dd>
  4538. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4539. <dd><p>5/3 wavelet, only used in snow
  4540. </p></dd>
  4541. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4542. <dd><p>9/7 wavelet, only used in snow
  4543. </p></dd>
  4544. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4545. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4546. </dl>
  4547. </dd>
  4548. <dt>&lsquo;<samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4549. <dd><p>Set sub pel me compare function.
  4550. </p>
  4551. <p>Possible values:
  4552. </p><dl compact="compact">
  4553. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4554. <dd><p>sum of absolute differences, fast (default)
  4555. </p></dd>
  4556. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4557. <dd><p>sum of squared errors
  4558. </p></dd>
  4559. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4560. <dd><p>sum of absolute Hadamard transformed differences
  4561. </p></dd>
  4562. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4563. <dd><p>sum of absolute DCT transformed differences
  4564. </p></dd>
  4565. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4566. <dd><p>sum of squared quantization errors (avoid, low quality)
  4567. </p></dd>
  4568. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4569. <dd><p>number of bits needed for the block
  4570. </p></dd>
  4571. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4572. <dd><p>rate distortion optimal, slow
  4573. </p></dd>
  4574. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4575. <dd><p>0
  4576. </p></dd>
  4577. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4578. <dd><p>sum of absolute vertical differences
  4579. </p></dd>
  4580. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4581. <dd><p>sum of squared vertical differences
  4582. </p></dd>
  4583. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4584. <dd><p>noise preserving sum of squared differences
  4585. </p></dd>
  4586. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4587. <dd><p>5/3 wavelet, only used in snow
  4588. </p></dd>
  4589. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4590. <dd><p>9/7 wavelet, only used in snow
  4591. </p></dd>
  4592. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4593. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4594. </dl>
  4595. </dd>
  4596. <dt>&lsquo;<samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4597. <dd><p>Set macroblock compare function.
  4598. </p>
  4599. <p>Possible values:
  4600. </p><dl compact="compact">
  4601. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4602. <dd><p>sum of absolute differences, fast (default)
  4603. </p></dd>
  4604. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4605. <dd><p>sum of squared errors
  4606. </p></dd>
  4607. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4608. <dd><p>sum of absolute Hadamard transformed differences
  4609. </p></dd>
  4610. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4611. <dd><p>sum of absolute DCT transformed differences
  4612. </p></dd>
  4613. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4614. <dd><p>sum of squared quantization errors (avoid, low quality)
  4615. </p></dd>
  4616. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4617. <dd><p>number of bits needed for the block
  4618. </p></dd>
  4619. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4620. <dd><p>rate distortion optimal, slow
  4621. </p></dd>
  4622. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4623. <dd><p>0
  4624. </p></dd>
  4625. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4626. <dd><p>sum of absolute vertical differences
  4627. </p></dd>
  4628. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4629. <dd><p>sum of squared vertical differences
  4630. </p></dd>
  4631. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4632. <dd><p>noise preserving sum of squared differences
  4633. </p></dd>
  4634. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4635. <dd><p>5/3 wavelet, only used in snow
  4636. </p></dd>
  4637. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4638. <dd><p>9/7 wavelet, only used in snow
  4639. </p></dd>
  4640. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4641. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4642. </dl>
  4643. </dd>
  4644. <dt>&lsquo;<samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4645. <dd><p>Set interlaced dct compare function.
  4646. </p>
  4647. <p>Possible values:
  4648. </p><dl compact="compact">
  4649. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4650. <dd><p>sum of absolute differences, fast (default)
  4651. </p></dd>
  4652. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4653. <dd><p>sum of squared errors
  4654. </p></dd>
  4655. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4656. <dd><p>sum of absolute Hadamard transformed differences
  4657. </p></dd>
  4658. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4659. <dd><p>sum of absolute DCT transformed differences
  4660. </p></dd>
  4661. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4662. <dd><p>sum of squared quantization errors (avoid, low quality)
  4663. </p></dd>
  4664. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4665. <dd><p>number of bits needed for the block
  4666. </p></dd>
  4667. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4668. <dd><p>rate distortion optimal, slow
  4669. </p></dd>
  4670. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4671. <dd><p>0
  4672. </p></dd>
  4673. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4674. <dd><p>sum of absolute vertical differences
  4675. </p></dd>
  4676. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4677. <dd><p>sum of squared vertical differences
  4678. </p></dd>
  4679. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4680. <dd><p>noise preserving sum of squared differences
  4681. </p></dd>
  4682. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4683. <dd><p>5/3 wavelet, only used in snow
  4684. </p></dd>
  4685. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4686. <dd><p>9/7 wavelet, only used in snow
  4687. </p></dd>
  4688. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4689. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4690. </dl>
  4691. </dd>
  4692. <dt>&lsquo;<samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4693. <dd><p>Set diamond type &amp; size for motion estimation.
  4694. </p><dl compact="compact">
  4695. <dt>&lsquo;<samp>(1024, INT_MAX)</samp>&rsquo;</dt>
  4696. <dd><p>full motion estimation(slowest)
  4697. </p></dd>
  4698. <dt>&lsquo;<samp>(768, 1024]</samp>&rsquo;</dt>
  4699. <dd><p>umh motion estimation
  4700. </p></dd>
  4701. <dt>&lsquo;<samp>(512, 768]</samp>&rsquo;</dt>
  4702. <dd><p>hex motion estimation
  4703. </p></dd>
  4704. <dt>&lsquo;<samp>(256, 512]</samp>&rsquo;</dt>
  4705. <dd><p>l2s diamond motion estimation
  4706. </p></dd>
  4707. <dt>&lsquo;<samp>[2,256]</samp>&rsquo;</dt>
  4708. <dd><p>var diamond motion estimation
  4709. </p></dd>
  4710. <dt>&lsquo;<samp>(-1, 2)</samp>&rsquo;</dt>
  4711. <dd><p>small diamond motion estimation
  4712. </p></dd>
  4713. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  4714. <dd><p>funny diamond motion estimation
  4715. </p></dd>
  4716. <dt>&lsquo;<samp>(INT_MIN, -1)</samp>&rsquo;</dt>
  4717. <dd><p>sab diamond motion estimation
  4718. </p></dd>
  4719. </dl>
  4720. </dd>
  4721. <dt>&lsquo;<samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4722. <dd><p>Set amount of motion predictors from the previous frame.
  4723. </p>
  4724. </dd>
  4725. <dt>&lsquo;<samp>preme <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4726. <dd><p>Set pre motion estimation.
  4727. </p>
  4728. </dd>
  4729. <dt>&lsquo;<samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4730. <dd><p>Set pre motion estimation compare function.
  4731. </p>
  4732. <p>Possible values:
  4733. </p><dl compact="compact">
  4734. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4735. <dd><p>sum of absolute differences, fast (default)
  4736. </p></dd>
  4737. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4738. <dd><p>sum of squared errors
  4739. </p></dd>
  4740. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4741. <dd><p>sum of absolute Hadamard transformed differences
  4742. </p></dd>
  4743. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4744. <dd><p>sum of absolute DCT transformed differences
  4745. </p></dd>
  4746. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4747. <dd><p>sum of squared quantization errors (avoid, low quality)
  4748. </p></dd>
  4749. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4750. <dd><p>number of bits needed for the block
  4751. </p></dd>
  4752. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4753. <dd><p>rate distortion optimal, slow
  4754. </p></dd>
  4755. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4756. <dd><p>0
  4757. </p></dd>
  4758. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4759. <dd><p>sum of absolute vertical differences
  4760. </p></dd>
  4761. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4762. <dd><p>sum of squared vertical differences
  4763. </p></dd>
  4764. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4765. <dd><p>noise preserving sum of squared differences
  4766. </p></dd>
  4767. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4768. <dd><p>5/3 wavelet, only used in snow
  4769. </p></dd>
  4770. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4771. <dd><p>9/7 wavelet, only used in snow
  4772. </p></dd>
  4773. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4774. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4775. </dl>
  4776. </dd>
  4777. <dt>&lsquo;<samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4778. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  4779. </p>
  4780. </dd>
  4781. <dt>&lsquo;<samp>subq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4782. <dd><p>Set sub pel motion estimation quality.
  4783. </p>
  4784. </dd>
  4785. <dt>&lsquo;<samp>dtg_active_format <var>integer</var></samp>&rsquo;</dt>
  4786. <dt>&lsquo;<samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4787. <dd><p>Set limit motion vectors range (1023 for DivX player).
  4788. </p>
  4789. </dd>
  4790. <dt>&lsquo;<samp>ibias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4791. <dd><p>Set intra quant bias.
  4792. </p>
  4793. </dd>
  4794. <dt>&lsquo;<samp>pbias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4795. <dd><p>Set inter quant bias.
  4796. </p>
  4797. </dd>
  4798. <dt>&lsquo;<samp>color_table_id <var>integer</var></samp>&rsquo;</dt>
  4799. <dt>&lsquo;<samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4800. <dt>&lsquo;<samp>coder <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4801. <dd>
  4802. <p>Possible values:
  4803. </p><dl compact="compact">
  4804. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  4805. <dd><p>variable length coder / huffman coder
  4806. </p></dd>
  4807. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  4808. <dd><p>arithmetic coder
  4809. </p></dd>
  4810. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  4811. <dd><p>raw (no encoding)
  4812. </p></dd>
  4813. <dt>&lsquo;<samp>rle</samp>&rsquo;</dt>
  4814. <dd><p>run-length coder
  4815. </p></dd>
  4816. <dt>&lsquo;<samp>deflate</samp>&rsquo;</dt>
  4817. <dd><p>deflate-based coder
  4818. </p></dd>
  4819. </dl>
  4820. </dd>
  4821. <dt>&lsquo;<samp>context <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4822. <dd><p>Set context model.
  4823. </p>
  4824. </dd>
  4825. <dt>&lsquo;<samp>slice_flags <var>integer</var></samp>&rsquo;</dt>
  4826. <dt>&lsquo;<samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4827. <dd><p>Set macroblock decision algorithm (high quality mode).
  4828. </p>
  4829. <p>Possible values:
  4830. </p><dl compact="compact">
  4831. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  4832. <dd><p>use mbcmp (default)
  4833. </p></dd>
  4834. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  4835. <dd><p>use fewest bits
  4836. </p></dd>
  4837. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4838. <dd><p>use best rate distortion
  4839. </p></dd>
  4840. </dl>
  4841. </dd>
  4842. <dt>&lsquo;<samp>stream_codec_tag <var>integer</var></samp>&rsquo;</dt>
  4843. <dt>&lsquo;<samp>sc_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4844. <dd><p>Set scene change threshold.
  4845. </p>
  4846. </dd>
  4847. <dt>&lsquo;<samp>lmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4848. <dd><p>Set min lagrange factor (VBR).
  4849. </p>
  4850. </dd>
  4851. <dt>&lsquo;<samp>lmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4852. <dd><p>Set max lagrange factor (VBR).
  4853. </p>
  4854. </dd>
  4855. <dt>&lsquo;<samp>nr <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4856. <dd><p>Set noise reduction.
  4857. </p>
  4858. </dd>
  4859. <dt>&lsquo;<samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4860. <dd><p>Set number of bits which should be loaded into the rc buffer before
  4861. decoding starts.
  4862. </p>
  4863. </dd>
  4864. <dt>&lsquo;<samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4865. <dd>
  4866. <p>Possible values:
  4867. </p><dl compact="compact">
  4868. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  4869. <dd><p>Allow non spec compliant speedup tricks.
  4870. </p></dd>
  4871. <dt>&lsquo;<samp>noout</samp>&rsquo;</dt>
  4872. <dd><p>Skip bitstream encoding.
  4873. </p></dd>
  4874. <dt>&lsquo;<samp>ignorecrop</samp>&rsquo;</dt>
  4875. <dd><p>Ignore cropping information from sps.
  4876. </p></dd>
  4877. <dt>&lsquo;<samp>local_header</samp>&rsquo;</dt>
  4878. <dd><p>Place global headers at every keyframe instead of in extradata.
  4879. </p></dd>
  4880. <dt>&lsquo;<samp>chunks</samp>&rsquo;</dt>
  4881. <dd><p>Frame data might be split into multiple chunks.
  4882. </p></dd>
  4883. <dt>&lsquo;<samp>showall</samp>&rsquo;</dt>
  4884. <dd><p>Show all frames before the first keyframe.
  4885. </p></dd>
  4886. <dt>&lsquo;<samp>export_mvs</samp>&rsquo;</dt>
  4887. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  4888. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  4889. </p></dd>
  4890. <dt>&lsquo;<samp>skip_manual</samp>&rsquo;</dt>
  4891. <dd><p>Do not skip samples and export skip information as frame side data.
  4892. </p></dd>
  4893. <dt>&lsquo;<samp>ass_ro_flush_noop</samp>&rsquo;</dt>
  4894. <dd><p>Do not reset ASS ReadOrder field on flush.
  4895. </p></dd>
  4896. </dl>
  4897. </dd>
  4898. <dt>&lsquo;<samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4899. <dd>
  4900. <p>Possible values:
  4901. </p><dl compact="compact">
  4902. <dt>&lsquo;<samp>mvs</samp>&rsquo;</dt>
  4903. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  4904. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  4905. </p></dd>
  4906. <dt>&lsquo;<samp>prft</samp>&rsquo;</dt>
  4907. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
  4908. for codecs that support it.
  4909. </p></dd>
  4910. </dl>
  4911. </dd>
  4912. <dt>&lsquo;<samp>error <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4913. <dt>&lsquo;<samp>qns <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4914. <dd><p>Deprecated, use mpegvideo private options instead.
  4915. </p>
  4916. </dd>
  4917. <dt>&lsquo;<samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  4918. <dd><p>Set the number of threads to be used, in case the selected codec
  4919. implementation supports multi-threading.
  4920. </p>
  4921. <p>Possible values:
  4922. </p><dl compact="compact">
  4923. <dt>&lsquo;<samp>auto, 0</samp>&rsquo;</dt>
  4924. <dd><p>automatically select the number of threads to set
  4925. </p></dd>
  4926. </dl>
  4927. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  4928. </p>
  4929. </dd>
  4930. <dt>&lsquo;<samp>me_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4931. <dd><p>Set motion estimation threshold.
  4932. </p>
  4933. </dd>
  4934. <dt>&lsquo;<samp>mb_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4935. <dd><p>Set macroblock threshold.
  4936. </p>
  4937. </dd>
  4938. <dt>&lsquo;<samp>dc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4939. <dd><p>Set intra_dc_precision.
  4940. </p>
  4941. </dd>
  4942. <dt>&lsquo;<samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4943. <dd><p>Set nsse weight.
  4944. </p>
  4945. </dd>
  4946. <dt>&lsquo;<samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4947. <dd><p>Set number of macroblock rows at the top which are skipped.
  4948. </p>
  4949. </dd>
  4950. <dt>&lsquo;<samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4951. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  4952. </p>
  4953. </dd>
  4954. <dt>&lsquo;<samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4955. <dd>
  4956. <p>Set encoder codec profile. Default value is &lsquo;<samp>unknown</samp>&rsquo;. Encoder specific
  4957. profiles are documented in the relevant encoder documentation.
  4958. </p>
  4959. </dd>
  4960. <dt>&lsquo;<samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4961. <dd>
  4962. <p>Possible values:
  4963. </p><dl compact="compact">
  4964. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  4965. </dl>
  4966. </dd>
  4967. <dt>&lsquo;<samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  4968. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  4969. </p>
  4970. </dd>
  4971. <dt>&lsquo;<samp>skip_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4972. <dd><p>Set frame skip threshold.
  4973. </p>
  4974. </dd>
  4975. <dt>&lsquo;<samp>skip_factor <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4976. <dd><p>Set frame skip factor.
  4977. </p>
  4978. </dd>
  4979. <dt>&lsquo;<samp>skip_exp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4980. <dd><p>Set frame skip exponent.
  4981. Negative values behave identical to the corresponding positive ones, except
  4982. that the score is normalized.
  4983. Positive values exist primarily for compatibility reasons and are not so useful.
  4984. </p>
  4985. </dd>
  4986. <dt>&lsquo;<samp>skipcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4987. <dd><p>Set frame skip compare function.
  4988. </p>
  4989. <p>Possible values:
  4990. </p><dl compact="compact">
  4991. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4992. <dd><p>sum of absolute differences, fast (default)
  4993. </p></dd>
  4994. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4995. <dd><p>sum of squared errors
  4996. </p></dd>
  4997. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4998. <dd><p>sum of absolute Hadamard transformed differences
  4999. </p></dd>
  5000. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  5001. <dd><p>sum of absolute DCT transformed differences
  5002. </p></dd>
  5003. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  5004. <dd><p>sum of squared quantization errors (avoid, low quality)
  5005. </p></dd>
  5006. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  5007. <dd><p>number of bits needed for the block
  5008. </p></dd>
  5009. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  5010. <dd><p>rate distortion optimal, slow
  5011. </p></dd>
  5012. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  5013. <dd><p>0
  5014. </p></dd>
  5015. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  5016. <dd><p>sum of absolute vertical differences
  5017. </p></dd>
  5018. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  5019. <dd><p>sum of squared vertical differences
  5020. </p></dd>
  5021. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  5022. <dd><p>noise preserving sum of squared differences
  5023. </p></dd>
  5024. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  5025. <dd><p>5/3 wavelet, only used in snow
  5026. </p></dd>
  5027. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  5028. <dd><p>9/7 wavelet, only used in snow
  5029. </p></dd>
  5030. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  5031. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  5032. </dl>
  5033. </dd>
  5034. <dt>&lsquo;<samp>border_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5035. <dd><p>Increase the quantizer for macroblocks close to borders.
  5036. </p>
  5037. </dd>
  5038. <dt>&lsquo;<samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5039. <dd><p>Set min macroblock lagrange factor (VBR).
  5040. </p>
  5041. </dd>
  5042. <dt>&lsquo;<samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5043. <dd><p>Set max macroblock lagrange factor (VBR).
  5044. </p>
  5045. </dd>
  5046. <dt>&lsquo;<samp>mepc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5047. <dd><p>Set motion estimation bitrate penalty compensation (1.0 = 256).
  5048. </p>
  5049. </dd>
  5050. <dt>&lsquo;<samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5051. <dt>&lsquo;<samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5052. <dt>&lsquo;<samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5053. <dd>
  5054. <p>Make decoder discard processing depending on the frame type selected
  5055. by the option value.
  5056. </p>
  5057. <p>&lsquo;<samp>skip_loop_filter</samp>&rsquo; skips frame loop filtering, &lsquo;<samp>skip_idct</samp>&rsquo;
  5058. skips frame IDCT/dequantization, &lsquo;<samp>skip_frame</samp>&rsquo; skips decoding.
  5059. </p>
  5060. <p>Possible values:
  5061. </p><dl compact="compact">
  5062. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  5063. <dd><p>Discard no frame.
  5064. </p>
  5065. </dd>
  5066. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  5067. <dd><p>Discard useless frames like 0-sized frames.
  5068. </p>
  5069. </dd>
  5070. <dt>&lsquo;<samp>noref</samp>&rsquo;</dt>
  5071. <dd><p>Discard all non-reference frames.
  5072. </p>
  5073. </dd>
  5074. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  5075. <dd><p>Discard all bidirectional frames.
  5076. </p>
  5077. </dd>
  5078. <dt>&lsquo;<samp>nokey</samp>&rsquo;</dt>
  5079. <dd><p>Discard all frames excepts keyframes.
  5080. </p>
  5081. </dd>
  5082. <dt>&lsquo;<samp>nointra</samp>&rsquo;</dt>
  5083. <dd><p>Discard all frames except I frames.
  5084. </p>
  5085. </dd>
  5086. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  5087. <dd><p>Discard all frames.
  5088. </p></dd>
  5089. </dl>
  5090. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  5091. </p>
  5092. </dd>
  5093. <dt>&lsquo;<samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5094. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  5095. </p>
  5096. </dd>
  5097. <dt>&lsquo;<samp>brd_scale <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5098. <dd><p>Downscale frames for dynamic B-frame decision.
  5099. </p>
  5100. </dd>
  5101. <dt>&lsquo;<samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5102. <dd><p>Set minimum interval between IDR-frames.
  5103. </p>
  5104. </dd>
  5105. <dt>&lsquo;<samp>refs <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5106. <dd><p>Set reference frames to consider for motion compensation.
  5107. </p>
  5108. </dd>
  5109. <dt>&lsquo;<samp>chromaoffset <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5110. <dd><p>Set chroma qp offset from luma.
  5111. </p>
  5112. </dd>
  5113. <dt>&lsquo;<samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  5114. <dd><p>Set rate-distortion optimal quantization.
  5115. </p>
  5116. </dd>
  5117. <dt>&lsquo;<samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5118. <dt>&lsquo;<samp>b_sensitivity <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5119. <dd><p>Adjust sensitivity of b_frame_strategy 1.
  5120. </p>
  5121. </dd>
  5122. <dt>&lsquo;<samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  5123. <dt>&lsquo;<samp>min_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5124. <dt>&lsquo;<samp>max_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5125. <dt>&lsquo;<samp>timecode_frame_start <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5126. <dd><p>Set GOP timecode frame start number, in non drop frame format.
  5127. </p>
  5128. </dd>
  5129. <dt>&lsquo;<samp>request_channels <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5130. <dd><p>Set desired number of audio channels.
  5131. </p>
  5132. </dd>
  5133. <dt>&lsquo;<samp>bits_per_raw_sample <var>integer</var></samp>&rsquo;</dt>
  5134. <dt>&lsquo;<samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  5135. <dd>
  5136. <p>Possible values:
  5137. </p></dd>
  5138. <dt>&lsquo;<samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5139. <dd>
  5140. <p>Possible values:
  5141. </p></dd>
  5142. <dt>&lsquo;<samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5143. <dt>&lsquo;<samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5144. <dt>&lsquo;<samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  5145. <dt>&lsquo;<samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5146. <dd><p>Possible values:
  5147. </p><dl compact="compact">
  5148. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5149. <dd><p>BT.709
  5150. </p></dd>
  5151. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  5152. <dd><p>BT.470 M
  5153. </p></dd>
  5154. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  5155. <dd><p>BT.470 BG
  5156. </p></dd>
  5157. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5158. <dd><p>SMPTE 170 M
  5159. </p></dd>
  5160. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5161. <dd><p>SMPTE 240 M
  5162. </p></dd>
  5163. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  5164. <dd><p>Film
  5165. </p></dd>
  5166. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  5167. <dd><p>BT.2020
  5168. </p></dd>
  5169. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  5170. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  5171. <dd><p>SMPTE ST 428-1
  5172. </p></dd>
  5173. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  5174. <dd><p>SMPTE 431-2
  5175. </p></dd>
  5176. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  5177. <dd><p>SMPTE 432-1
  5178. </p></dd>
  5179. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  5180. <dd><p>JEDEC P22
  5181. </p></dd>
  5182. </dl>
  5183. </dd>
  5184. <dt>&lsquo;<samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5185. <dd><p>Possible values:
  5186. </p><dl compact="compact">
  5187. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5188. <dd><p>BT.709
  5189. </p></dd>
  5190. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  5191. <dd><p>BT.470 M
  5192. </p></dd>
  5193. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  5194. <dd><p>BT.470 BG
  5195. </p></dd>
  5196. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5197. <dd><p>SMPTE 170 M
  5198. </p></dd>
  5199. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5200. <dd><p>SMPTE 240 M
  5201. </p></dd>
  5202. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  5203. <dd><p>Linear
  5204. </p></dd>
  5205. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  5206. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  5207. <dd><p>Log
  5208. </p></dd>
  5209. <dt>&lsquo;<samp>log_sqrt</samp>&rsquo;</dt>
  5210. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  5211. <dd><p>Log square root
  5212. </p></dd>
  5213. <dt>&lsquo;<samp>iec61966_2_4</samp>&rsquo;</dt>
  5214. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  5215. <dd><p>IEC 61966-2-4
  5216. </p></dd>
  5217. <dt>&lsquo;<samp>bt1361</samp>&rsquo;</dt>
  5218. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  5219. <dd><p>BT.1361
  5220. </p></dd>
  5221. <dt>&lsquo;<samp>iec61966_2_1</samp>&rsquo;</dt>
  5222. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  5223. <dd><p>IEC 61966-2-1
  5224. </p></dd>
  5225. <dt>&lsquo;<samp>bt2020_10</samp>&rsquo;</dt>
  5226. <dt>&lsquo;<samp>bt2020_10bit</samp>&rsquo;</dt>
  5227. <dd><p>BT.2020 - 10 bit
  5228. </p></dd>
  5229. <dt>&lsquo;<samp>bt2020_12</samp>&rsquo;</dt>
  5230. <dt>&lsquo;<samp>bt2020_12bit</samp>&rsquo;</dt>
  5231. <dd><p>BT.2020 - 12 bit
  5232. </p></dd>
  5233. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  5234. <dd><p>SMPTE ST 2084
  5235. </p></dd>
  5236. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  5237. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  5238. <dd><p>SMPTE ST 428-1
  5239. </p></dd>
  5240. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  5241. <dd><p>ARIB STD-B67
  5242. </p></dd>
  5243. </dl>
  5244. </dd>
  5245. <dt>&lsquo;<samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5246. <dd><p>Possible values:
  5247. </p><dl compact="compact">
  5248. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  5249. <dd><p>RGB
  5250. </p></dd>
  5251. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5252. <dd><p>BT.709
  5253. </p></dd>
  5254. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  5255. <dd><p>FCC
  5256. </p></dd>
  5257. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  5258. <dd><p>BT.470 BG
  5259. </p></dd>
  5260. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5261. <dd><p>SMPTE 170 M
  5262. </p></dd>
  5263. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5264. <dd><p>SMPTE 240 M
  5265. </p></dd>
  5266. <dt>&lsquo;<samp>ycocg</samp>&rsquo;</dt>
  5267. <dd><p>YCOCG
  5268. </p></dd>
  5269. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  5270. <dt>&lsquo;<samp>bt2020_ncl</samp>&rsquo;</dt>
  5271. <dd><p>BT.2020 NCL
  5272. </p></dd>
  5273. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  5274. <dt>&lsquo;<samp>bt2020_cl</samp>&rsquo;</dt>
  5275. <dd><p>BT.2020 CL
  5276. </p></dd>
  5277. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  5278. <dd><p>SMPTE 2085
  5279. </p></dd>
  5280. </dl>
  5281. </dd>
  5282. <dt>&lsquo;<samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5283. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  5284. color_range the input has.
  5285. Possible values:
  5286. </p><dl compact="compact">
  5287. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  5288. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  5289. <dd><p>MPEG (219*2^(n-8))
  5290. </p></dd>
  5291. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  5292. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  5293. <dd><p>JPEG (2^n-1)
  5294. </p></dd>
  5295. </dl>
  5296. </dd>
  5297. <dt>&lsquo;<samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5298. <dd><p>Possible values:
  5299. </p><dl compact="compact">
  5300. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  5301. <dt>&lsquo;<samp>center</samp>&rsquo;</dt>
  5302. <dt>&lsquo;<samp>topleft</samp>&rsquo;</dt>
  5303. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  5304. <dt>&lsquo;<samp>bottomleft</samp>&rsquo;</dt>
  5305. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  5306. </dl>
  5307. </dd>
  5308. <dt>&lsquo;<samp>log_level_offset <var>integer</var></samp>&rsquo;</dt>
  5309. <dd><p>Set the log level offset.
  5310. </p>
  5311. </dd>
  5312. <dt>&lsquo;<samp>slices <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5313. <dd><p>Number of slices, used in parallelized encoding.
  5314. </p>
  5315. </dd>
  5316. <dt>&lsquo;<samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5317. <dd><p>Select which multithreading methods to use.
  5318. </p>
  5319. <p>Use of &lsquo;<samp>frame</samp>&rsquo; will increase decoding delay by one frame per
  5320. thread, so clients which cannot provide future frames should not use
  5321. it.
  5322. </p>
  5323. <p>Possible values:
  5324. </p><dl compact="compact">
  5325. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  5326. <dd><p>Decode more than one part of a single frame at once.
  5327. </p>
  5328. <p>Multithreading using slices works only when the video was encoded with
  5329. slices.
  5330. </p>
  5331. </dd>
  5332. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  5333. <dd><p>Decode more than one frame at once.
  5334. </p></dd>
  5335. </dl>
  5336. <p>Default value is &lsquo;<samp>slice+frame</samp>&rsquo;.
  5337. </p>
  5338. </dd>
  5339. <dt>&lsquo;<samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5340. <dd><p>Set audio service type.
  5341. </p>
  5342. <p>Possible values:
  5343. </p><dl compact="compact">
  5344. <dt>&lsquo;<samp>ma</samp>&rsquo;</dt>
  5345. <dd><p>Main Audio Service
  5346. </p></dd>
  5347. <dt>&lsquo;<samp>ef</samp>&rsquo;</dt>
  5348. <dd><p>Effects
  5349. </p></dd>
  5350. <dt>&lsquo;<samp>vi</samp>&rsquo;</dt>
  5351. <dd><p>Visually Impaired
  5352. </p></dd>
  5353. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  5354. <dd><p>Hearing Impaired
  5355. </p></dd>
  5356. <dt>&lsquo;<samp>di</samp>&rsquo;</dt>
  5357. <dd><p>Dialogue
  5358. </p></dd>
  5359. <dt>&lsquo;<samp>co</samp>&rsquo;</dt>
  5360. <dd><p>Commentary
  5361. </p></dd>
  5362. <dt>&lsquo;<samp>em</samp>&rsquo;</dt>
  5363. <dd><p>Emergency
  5364. </p></dd>
  5365. <dt>&lsquo;<samp>vo</samp>&rsquo;</dt>
  5366. <dd><p>Voice Over
  5367. </p></dd>
  5368. <dt>&lsquo;<samp>ka</samp>&rsquo;</dt>
  5369. <dd><p>Karaoke
  5370. </p></dd>
  5371. </dl>
  5372. </dd>
  5373. <dt>&lsquo;<samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5374. <dd><p>Set sample format audio decoders should prefer. Default value is
  5375. <code>none</code>.
  5376. </p>
  5377. </dd>
  5378. <dt>&lsquo;<samp>pkt_timebase <var>rational number</var></samp>&rsquo;</dt>
  5379. <dt>&lsquo;<samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp>&rsquo;</dt>
  5380. <dd><p>Set the input subtitles character encoding.
  5381. </p>
  5382. </dd>
  5383. <dt>&lsquo;<samp>field_order <var>field_order</var> (<em>video</em>)</samp>&rsquo;</dt>
  5384. <dd><p>Set/override the field order of the video.
  5385. Possible values:
  5386. </p><dl compact="compact">
  5387. <dt>&lsquo;<samp>progressive</samp>&rsquo;</dt>
  5388. <dd><p>Progressive video
  5389. </p></dd>
  5390. <dt>&lsquo;<samp>tt</samp>&rsquo;</dt>
  5391. <dd><p>Interlaced video, top field coded and displayed first
  5392. </p></dd>
  5393. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  5394. <dd><p>Interlaced video, bottom field coded and displayed first
  5395. </p></dd>
  5396. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  5397. <dd><p>Interlaced video, top coded first, bottom displayed first
  5398. </p></dd>
  5399. <dt>&lsquo;<samp>bt</samp>&rsquo;</dt>
  5400. <dd><p>Interlaced video, bottom coded first, top displayed first
  5401. </p></dd>
  5402. </dl>
  5403. </dd>
  5404. <dt>&lsquo;<samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5405. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  5406. &lsquo;<samp>gray</samp>&rsquo; flag in the &lsquo;<samp>flags</samp>&rsquo; option which skips chroma information
  5407. instead of alpha. Default is 0.
  5408. </p>
  5409. </dd>
  5410. <dt>&lsquo;<samp>codec_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  5411. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  5412. </p>
  5413. </dd>
  5414. <dt>&lsquo;<samp>dump_separator <var>string</var> (<em>input</em>)</samp>&rsquo;</dt>
  5415. <dd><p>Separator used to separate the fields printed on the command line about the
  5416. Stream parameters.
  5417. For example, to separate the fields with newlines and indentation:
  5418. </p><div class="example">
  5419. <pre class="example">ffprobe -dump_separator &quot;
  5420. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  5421. </pre></div>
  5422. </dd>
  5423. <dt>&lsquo;<samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5424. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  5425. memory failures due to large images.
  5426. </p>
  5427. </dd>
  5428. <dt>&lsquo;<samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5429. <dd><p>Enable cropping if cropping parameters are multiples of the required
  5430. alignment for the left and top parameters. If the alignment is not met the
  5431. cropping will be partially applied to maintain alignment.
  5432. Default is 1 (enabled).
  5433. Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
  5434. CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  5435. decoders will not apply left/top Cropping.
  5436. </p>
  5437. </dd>
  5438. </dl>
  5439. <a name="Decoders"></a>
  5440. <h1 class="chapter"><a href="ffprobe-all.html#toc-Decoders">9 Decoders</a></h1>
  5441. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  5442. multimedia streams.
  5443. </p>
  5444. <p>When you configure your FFmpeg build, all the supported native decoders
  5445. are enabled by default. Decoders requiring an external library must be enabled
  5446. manually via the corresponding <code>--enable-lib</code> option. You can list all
  5447. available decoders using the configure option <code>--list-decoders</code>.
  5448. </p>
  5449. <p>You can disable all the decoders with the configure option
  5450. <code>--disable-decoders</code> and selectively enable / disable single decoders
  5451. with the options <code>--enable-decoder=<var>DECODER</var></code> /
  5452. <code>--disable-decoder=<var>DECODER</var></code>.
  5453. </p>
  5454. <p>The option <code>-decoders</code> of the ff* tools will display the list of
  5455. enabled decoders.
  5456. </p>
  5457. <a name="Video-Decoders"></a>
  5458. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Decoders">10 Video Decoders</a></h1>
  5459. <p>A description of some of the currently available video decoders
  5460. follows.
  5461. </p>
  5462. <a name="rawvideo"></a>
  5463. <h2 class="section"><a href="ffprobe-all.html#toc-rawvideo">10.1 rawvideo</a></h2>
  5464. <p>Raw video decoder.
  5465. </p>
  5466. <p>This decoder decodes rawvideo streams.
  5467. </p>
  5468. <a name="Options-3"></a>
  5469. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-3">10.1.1 Options</a></h3>
  5470. <dl compact="compact">
  5471. <dt>&lsquo;<samp>top <var>top_field_first</var></samp>&rsquo;</dt>
  5472. <dd><p>Specify the assumed field type of the input video.
  5473. </p><dl compact="compact">
  5474. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  5475. <dd><p>the video is assumed to be progressive (default)
  5476. </p></dd>
  5477. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  5478. <dd><p>bottom-field-first is assumed
  5479. </p></dd>
  5480. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  5481. <dd><p>top-field-first is assumed
  5482. </p></dd>
  5483. </dl>
  5484. </dd>
  5485. </dl>
  5486. <a name="libdav1d"></a>
  5487. <h2 class="section"><a href="ffprobe-all.html#toc-libdav1d">10.2 libdav1d</a></h2>
  5488. <p>dav1d AV1 decoder.
  5489. </p>
  5490. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  5491. Requires the presence of the libdav1d headers and library during configuration.
  5492. You need to explicitly configure the build with <code>--enable-libdav1d</code>.
  5493. </p>
  5494. <a name="Options-18"></a>
  5495. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-18">10.2.1 Options</a></h3>
  5496. <p>The following options are supported by the libdav1d wrapper.
  5497. </p>
  5498. <dl compact="compact">
  5499. <dt>&lsquo;<samp>framethreads</samp>&rsquo;</dt>
  5500. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  5501. </p>
  5502. </dd>
  5503. <dt>&lsquo;<samp>tilethreads</samp>&rsquo;</dt>
  5504. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  5505. </p>
  5506. </dd>
  5507. <dt>&lsquo;<samp>filmgrain</samp>&rsquo;</dt>
  5508. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  5509. internal default of the library.
  5510. </p>
  5511. </dd>
  5512. <dt>&lsquo;<samp>oppoint</samp>&rsquo;</dt>
  5513. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  5514. internal default of the library.
  5515. </p>
  5516. </dd>
  5517. <dt>&lsquo;<samp>alllayers</samp>&rsquo;</dt>
  5518. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  5519. </p>
  5520. </dd>
  5521. </dl>
  5522. <a name="libdavs2"></a>
  5523. <h2 class="section"><a href="ffprobe-all.html#toc-libdavs2">10.3 libdavs2</a></h2>
  5524. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  5525. </p>
  5526. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  5527. </p>
  5528. <a name="Audio-Decoders"></a>
  5529. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Decoders">11 Audio Decoders</a></h1>
  5530. <p>A description of some of the currently available audio decoders
  5531. follows.
  5532. </p>
  5533. <a name="ac3"></a>
  5534. <h2 class="section"><a href="ffprobe-all.html#toc-ac3">11.1 ac3</a></h2>
  5535. <p>AC-3 audio decoder.
  5536. </p>
  5537. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  5538. the undocumented RealAudio 3 (a.k.a. dnet).
  5539. </p>
  5540. <a name="AC_002d3-Decoder-Options"></a>
  5541. <h3 class="subsection"><a href="ffprobe-all.html#toc-AC_002d3-Decoder-Options">11.1.1 AC-3 Decoder Options</a></h3>
  5542. <dl compact="compact">
  5543. <dt>&lsquo;<samp>-drc_scale <var>value</var></samp>&rsquo;</dt>
  5544. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  5545. from the AC-3 stream. This factor is applied exponentially.
  5546. There are 3 notable scale factor ranges:
  5547. </p><dl compact="compact">
  5548. <dt>&lsquo;<samp>drc_scale == 0</samp>&rsquo;</dt>
  5549. <dd><p>DRC disabled. Produces full range audio.
  5550. </p></dd>
  5551. <dt>&lsquo;<samp>0 &lt; drc_scale &lt;= 1</samp>&rsquo;</dt>
  5552. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  5553. Audio reproduction is between full range and full compression.
  5554. </p></dd>
  5555. <dt>&lsquo;<samp>drc_scale &gt; 1</samp>&rsquo;</dt>
  5556. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  5557. Loud sounds are fully compressed. Soft sounds are enhanced.
  5558. </p></dd>
  5559. </dl>
  5560. </dd>
  5561. </dl>
  5562. <a name="flac"></a>
  5563. <h2 class="section"><a href="ffprobe-all.html#toc-flac">11.2 flac</a></h2>
  5564. <p>FLAC audio decoder.
  5565. </p>
  5566. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  5567. </p>
  5568. <a name="FLAC-Decoder-options"></a>
  5569. <h3 class="subsection"><a href="ffprobe-all.html#toc-FLAC-Decoder-options">11.2.1 FLAC Decoder options</a></h3>
  5570. <dl compact="compact">
  5571. <dt>&lsquo;<samp>-use_buggy_lpc</samp>&rsquo;</dt>
  5572. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  5573. (like the default value). This option makes it possible to decode such streams
  5574. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  5575. </p>
  5576. </dd>
  5577. </dl>
  5578. <a name="ffwavesynth"></a>
  5579. <h2 class="section"><a href="ffprobe-all.html#toc-ffwavesynth">11.3 ffwavesynth</a></h2>
  5580. <p>Internal wave synthesizer.
  5581. </p>
  5582. <p>This decoder generates wave patterns according to predefined sequences. Its
  5583. use is purely internal and the format of the data it accepts is not publicly
  5584. documented.
  5585. </p>
  5586. <a name="libcelt"></a>
  5587. <h2 class="section"><a href="ffprobe-all.html#toc-libcelt">11.4 libcelt</a></h2>
  5588. <p>libcelt decoder wrapper.
  5589. </p>
  5590. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  5591. Requires the presence of the libcelt headers and library during configuration.
  5592. You need to explicitly configure the build with <code>--enable-libcelt</code>.
  5593. </p>
  5594. <a name="libgsm"></a>
  5595. <h2 class="section"><a href="ffprobe-all.html#toc-libgsm">11.5 libgsm</a></h2>
  5596. <p>libgsm decoder wrapper.
  5597. </p>
  5598. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  5599. the presence of the libgsm headers and library during configuration. You need
  5600. to explicitly configure the build with <code>--enable-libgsm</code>.
  5601. </p>
  5602. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  5603. </p>
  5604. <a name="libilbc"></a>
  5605. <h2 class="section"><a href="ffprobe-all.html#toc-libilbc">11.6 libilbc</a></h2>
  5606. <p>libilbc decoder wrapper.
  5607. </p>
  5608. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  5609. audio codec. Requires the presence of the libilbc headers and library during
  5610. configuration. You need to explicitly configure the build with
  5611. <code>--enable-libilbc</code>.
  5612. </p>
  5613. <a name="Options-19"></a>
  5614. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-19">11.6.1 Options</a></h3>
  5615. <p>The following option is supported by the libilbc wrapper.
  5616. </p>
  5617. <dl compact="compact">
  5618. <dt>&lsquo;<samp>enhance</samp>&rsquo;</dt>
  5619. <dd>
  5620. <p>Enable the enhancement of the decoded audio when set to 1. The default
  5621. value is 0 (disabled).
  5622. </p>
  5623. </dd>
  5624. </dl>
  5625. <a name="libopencore_002damrnb"></a>
  5626. <h2 class="section"><a href="ffprobe-all.html#toc-libopencore_002damrnb">11.7 libopencore-amrnb</a></h2>
  5627. <p>libopencore-amrnb decoder wrapper.
  5628. </p>
  5629. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  5630. Narrowband audio codec. Using it requires the presence of the
  5631. libopencore-amrnb headers and library during configuration. You need to
  5632. explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
  5633. </p>
  5634. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  5635. without this library.
  5636. </p>
  5637. <a name="libopencore_002damrwb"></a>
  5638. <h2 class="section"><a href="ffprobe-all.html#toc-libopencore_002damrwb">11.8 libopencore-amrwb</a></h2>
  5639. <p>libopencore-amrwb decoder wrapper.
  5640. </p>
  5641. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  5642. Wideband audio codec. Using it requires the presence of the
  5643. libopencore-amrwb headers and library during configuration. You need to
  5644. explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
  5645. </p>
  5646. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  5647. without this library.
  5648. </p>
  5649. <a name="libopus"></a>
  5650. <h2 class="section"><a href="ffprobe-all.html#toc-libopus">11.9 libopus</a></h2>
  5651. <p>libopus decoder wrapper.
  5652. </p>
  5653. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  5654. Requires the presence of the libopus headers and library during
  5655. configuration. You need to explicitly configure the build with
  5656. <code>--enable-libopus</code>.
  5657. </p>
  5658. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  5659. without this library.
  5660. </p>
  5661. <a name="Subtitles-Decoders"></a>
  5662. <h1 class="chapter"><a href="ffprobe-all.html#toc-Subtitles-Decoders">12 Subtitles Decoders</a></h1>
  5663. <a name="libaribb24"></a>
  5664. <h2 class="section"><a href="ffprobe-all.html#toc-libaribb24">12.1 libaribb24</a></h2>
  5665. <p>ARIB STD-B24 caption decoder.
  5666. </p>
  5667. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  5668. </p>
  5669. <a name="libaribb24-Decoder-Options"></a>
  5670. <h3 class="subsection"><a href="ffprobe-all.html#toc-libaribb24-Decoder-Options">12.1.1 libaribb24 Decoder Options</a></h3>
  5671. <dl compact="compact">
  5672. <dt>&lsquo;<samp>-aribb24-base-path <var>path</var></samp>&rsquo;</dt>
  5673. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  5674. configuration files (for custom unicode conversions), and for dumping of
  5675. non-text symbols as images under that location.
  5676. </p>
  5677. <p>Unset by default.
  5678. </p>
  5679. </dd>
  5680. <dt>&lsquo;<samp>-aribb24-skip-ruby-text <var>boolean</var></samp>&rsquo;</dt>
  5681. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  5682. text.
  5683. </p>
  5684. <p>Enabled by default.
  5685. </p>
  5686. </dd>
  5687. </dl>
  5688. <a name="dvbsub"></a>
  5689. <h2 class="section"><a href="ffprobe-all.html#toc-dvbsub">12.2 dvbsub</a></h2>
  5690. <a name="Options-29"></a>
  5691. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-29">12.2.1 Options</a></h3>
  5692. <dl compact="compact">
  5693. <dt>&lsquo;<samp>compute_clut</samp>&rsquo;</dt>
  5694. <dd><dl compact="compact">
  5695. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  5696. <dd><p>Compute clut if no matching CLUT is in the stream.
  5697. </p></dd>
  5698. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  5699. <dd><p>Never compute CLUT
  5700. </p></dd>
  5701. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  5702. <dd><p>Always compute CLUT and override the one provided in the stream.
  5703. </p></dd>
  5704. </dl>
  5705. </dd>
  5706. <dt>&lsquo;<samp>dvb_substream</samp>&rsquo;</dt>
  5707. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  5708. </p>
  5709. </dd>
  5710. </dl>
  5711. <a name="dvdsub"></a>
  5712. <h2 class="section"><a href="ffprobe-all.html#toc-dvdsub">12.3 dvdsub</a></h2>
  5713. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  5714. also be found in VobSub file pairs and in some Matroska files.
  5715. </p>
  5716. <a name="Options-11"></a>
  5717. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-11">12.3.1 Options</a></h3>
  5718. <dl compact="compact">
  5719. <dt>&lsquo;<samp>palette</samp>&rsquo;</dt>
  5720. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  5721. palette is normally specified in the index file; in Matroska, the palette is
  5722. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  5723. palette is stored in the IFO file, and therefore not available when reading
  5724. from dumped VOB files.
  5725. </p>
  5726. <p>The format for this option is a string containing 16 24-bits hexadecimal
  5727. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  5728. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  5729. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  5730. </p>
  5731. </dd>
  5732. <dt>&lsquo;<samp>ifo_palette</samp>&rsquo;</dt>
  5733. <dd><p>Specify the IFO file from which the global palette is obtained.
  5734. (experimental)
  5735. </p>
  5736. </dd>
  5737. <dt>&lsquo;<samp>forced_subs_only</samp>&rsquo;</dt>
  5738. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  5739. and non-forced subtitles in the same track. Setting this flag to <code>1</code>
  5740. will only keep the forced subtitles. Default value is <code>0</code>.
  5741. </p></dd>
  5742. </dl>
  5743. <a name="libzvbi_002dteletext"></a>
  5744. <h2 class="section"><a href="ffprobe-all.html#toc-libzvbi_002dteletext">12.4 libzvbi-teletext</a></h2>
  5745. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  5746. subtitles. Requires the presence of the libzvbi headers and library during
  5747. configuration. You need to explicitly configure the build with
  5748. <code>--enable-libzvbi</code>.
  5749. </p>
  5750. <a name="Options-2"></a>
  5751. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-2">12.4.1 Options</a></h3>
  5752. <dl compact="compact">
  5753. <dt>&lsquo;<samp>txt_page</samp>&rsquo;</dt>
  5754. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  5755. list are dropped. You may use the special <code>*</code> string to match all pages,
  5756. or <code>subtitle</code> to match all subtitle pages.
  5757. Default value is *.
  5758. </p></dd>
  5759. <dt>&lsquo;<samp>txt_default_region</samp>&rsquo;</dt>
  5760. <dd><p>Set default G0 character set used for decoding, a value between 0 and 80 (see
  5761. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  5762. override the libzvbi default. This option is needed for some legacy level 1.0
  5763. transmissions which cannot signal the proper charset.
  5764. </p></dd>
  5765. <dt>&lsquo;<samp>txt_chop_top</samp>&rsquo;</dt>
  5766. <dd><p>Discards the top teletext line. Default value is 1.
  5767. </p></dd>
  5768. <dt>&lsquo;<samp>txt_format</samp>&rsquo;</dt>
  5769. <dd><p>Specifies the format of the decoded subtitles.
  5770. </p><dl compact="compact">
  5771. <dt>&lsquo;<samp>bitmap</samp>&rsquo;</dt>
  5772. <dd><p>The default format, you should use this for teletext pages, because certain
  5773. graphics and colors cannot be expressed in simple text or even ASS.
  5774. </p></dd>
  5775. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  5776. <dd><p>Simple text based output without formatting.
  5777. </p></dd>
  5778. <dt>&lsquo;<samp>ass</samp>&rsquo;</dt>
  5779. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  5780. different styles, subtitle pages are stripped down to text, but an effort is
  5781. made to keep the text alignment and the formatting.
  5782. </p></dd>
  5783. </dl>
  5784. </dd>
  5785. <dt>&lsquo;<samp>txt_left</samp>&rsquo;</dt>
  5786. <dd><p>X offset of generated bitmaps, default is 0.
  5787. </p></dd>
  5788. <dt>&lsquo;<samp>txt_top</samp>&rsquo;</dt>
  5789. <dd><p>Y offset of generated bitmaps, default is 0.
  5790. </p></dd>
  5791. <dt>&lsquo;<samp>txt_chop_spaces</samp>&rsquo;</dt>
  5792. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  5793. text. This option is useful for teletext based subtitles where empty spaces may
  5794. be present at the start or at the end of the lines or empty lines may be
  5795. present between the subtitle lines because of double-sized teletext characters.
  5796. Default value is 1.
  5797. </p></dd>
  5798. <dt>&lsquo;<samp>txt_duration</samp>&rsquo;</dt>
  5799. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  5800. milliseconds. Default value is -1 which means infinity or until the next
  5801. subtitle event comes.
  5802. </p></dd>
  5803. <dt>&lsquo;<samp>txt_transparent</samp>&rsquo;</dt>
  5804. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  5805. is 0 which means an opaque background.
  5806. </p></dd>
  5807. <dt>&lsquo;<samp>txt_opacity</samp>&rsquo;</dt>
  5808. <dd><p>Sets the opacity (0-255) of the teletext background. If
  5809. &lsquo;<samp>txt_transparent</samp>&rsquo; is not set, it only affects characters between a start
  5810. box and an end box, typically subtitles. Default value is 0 if
  5811. &lsquo;<samp>txt_transparent</samp>&rsquo; is set, 255 otherwise.
  5812. </p>
  5813. </dd>
  5814. </dl>
  5815. <a name="Bitstream-Filters"></a>
  5816. <h1 class="chapter"><a href="ffprobe-all.html#toc-Bitstream-Filters">13 Bitstream Filters</a></h1>
  5817. <p>When you configure your FFmpeg build, all the supported bitstream
  5818. filters are enabled by default. You can list all available ones using
  5819. the configure option <code>--list-bsfs</code>.
  5820. </p>
  5821. <p>You can disable all the bitstream filters using the configure option
  5822. <code>--disable-bsfs</code>, and selectively enable any bitstream filter using
  5823. the option <code>--enable-bsf=BSF</code>, or you can disable a particular
  5824. bitstream filter using the option <code>--disable-bsf=BSF</code>.
  5825. </p>
  5826. <p>The option <code>-bsfs</code> of the ff* tools will display the list of
  5827. all the supported bitstream filters included in your build.
  5828. </p>
  5829. <p>The ff* tools have a -bsf option applied per stream, taking a
  5830. comma-separated list of filters, whose parameters follow the filter
  5831. name after a &rsquo;=&rsquo;.
  5832. </p>
  5833. <div class="example">
  5834. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT
  5835. </pre></div>
  5836. <p>Below is a description of the currently available bitstream filters,
  5837. with their parameters, if any.
  5838. </p>
  5839. <a name="aac_005fadtstoasc"></a>
  5840. <h2 class="section"><a href="ffprobe-all.html#toc-aac_005fadtstoasc">13.1 aac_adtstoasc</a></h2>
  5841. <p>Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration
  5842. bitstream.
  5843. </p>
  5844. <p>This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4
  5845. ADTS header and removes the ADTS header.
  5846. </p>
  5847. <p>This filter is required for example when copying an AAC stream from a
  5848. raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or
  5849. to MOV/MP4 files and related formats such as 3GP or M4A. Please note
  5850. that it is auto-inserted for MP4A-LATM and MOV/MP4 and related formats.
  5851. </p>
  5852. <a name="av1_005fmetadata"></a>
  5853. <h2 class="section"><a href="ffprobe-all.html#toc-av1_005fmetadata">13.2 av1_metadata</a></h2>
  5854. <p>Modify metadata embedded in an AV1 stream.
  5855. </p>
  5856. <dl compact="compact">
  5857. <dt>&lsquo;<samp>td</samp>&rsquo;</dt>
  5858. <dd><p>Insert or remove temporal delimiter OBUs in all temporal units of the
  5859. stream.
  5860. </p>
  5861. <dl compact="compact">
  5862. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  5863. <dd><p>Insert a TD at the beginning of every TU which does not already have one.
  5864. </p></dd>
  5865. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  5866. <dd><p>Remove the TD from the beginning of every TU which has one.
  5867. </p></dd>
  5868. </dl>
  5869. </dd>
  5870. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  5871. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  5872. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  5873. <dd><p>Set the color description fields in the stream (see AV1 section 6.4.2).
  5874. </p>
  5875. </dd>
  5876. <dt>&lsquo;<samp>color_range</samp>&rsquo;</dt>
  5877. <dd><p>Set the color range in the stream (see AV1 section 6.4.2; note that
  5878. this cannot be set for streams using BT.709 primaries, sRGB transfer
  5879. characteristic and identity (RGB) matrix coefficients).
  5880. </p><dl compact="compact">
  5881. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  5882. <dd><p>Limited range.
  5883. </p></dd>
  5884. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  5885. <dd><p>Full range.
  5886. </p></dd>
  5887. </dl>
  5888. </dd>
  5889. <dt>&lsquo;<samp>chroma_sample_position</samp>&rsquo;</dt>
  5890. <dd><p>Set the chroma sample location in the stream (see AV1 section 6.4.2).
  5891. This can only be set for 4:2:0 streams.
  5892. </p>
  5893. <dl compact="compact">
  5894. <dt>&lsquo;<samp>vertical</samp>&rsquo;</dt>
  5895. <dd><p>Left position (matching the default in MPEG-2 and H.264).
  5896. </p></dd>
  5897. <dt>&lsquo;<samp>colocated</samp>&rsquo;</dt>
  5898. <dd><p>Top-left position.
  5899. </p></dd>
  5900. </dl>
  5901. </dd>
  5902. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  5903. <dd><p>Set the tick rate (<em>num_units_in_display_tick / time_scale</em>) in
  5904. the timing info in the sequence header.
  5905. </p></dd>
  5906. <dt>&lsquo;<samp>num_ticks_per_picture</samp>&rsquo;</dt>
  5907. <dd><p>Set the number of ticks in each picture, to indicate that the stream
  5908. has a fixed framerate. Ignored if &lsquo;<samp>tick_rate</samp>&rsquo; is not also set.
  5909. </p>
  5910. </dd>
  5911. <dt>&lsquo;<samp>delete_padding</samp>&rsquo;</dt>
  5912. <dd><p>Deletes Padding OBUs.
  5913. </p>
  5914. </dd>
  5915. </dl>
  5916. <a name="chomp"></a>
  5917. <h2 class="section"><a href="ffprobe-all.html#toc-chomp">13.3 chomp</a></h2>
  5918. <p>Remove zero padding at the end of a packet.
  5919. </p>
  5920. <a name="dca_005fcore"></a>
  5921. <h2 class="section"><a href="ffprobe-all.html#toc-dca_005fcore">13.4 dca_core</a></h2>
  5922. <p>Extract the core from a DCA/DTS stream, dropping extensions such as
  5923. DTS-HD.
  5924. </p>
  5925. <a name="dump_005fextra"></a>
  5926. <h2 class="section"><a href="ffprobe-all.html#toc-dump_005fextra">13.5 dump_extra</a></h2>
  5927. <p>Add extradata to the beginning of the filtered packets except when
  5928. said packets already exactly begin with the extradata that is intended
  5929. to be added.
  5930. </p>
  5931. <dl compact="compact">
  5932. <dt>&lsquo;<samp>freq</samp>&rsquo;</dt>
  5933. <dd><p>The additional argument specifies which packets should be filtered.
  5934. It accepts the values:
  5935. </p><dl compact="compact">
  5936. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  5937. <dt>&lsquo;<samp>keyframe</samp>&rsquo;</dt>
  5938. <dd><p>add extradata to all key packets
  5939. </p>
  5940. </dd>
  5941. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  5942. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  5943. <dd><p>add extradata to all packets
  5944. </p></dd>
  5945. </dl>
  5946. </dd>
  5947. </dl>
  5948. <p>If not specified it is assumed &lsquo;<samp>k</samp>&rsquo;.
  5949. </p>
  5950. <p>For example the following <code>ffmpeg</code> command forces a global
  5951. header (thus disabling individual packet headers) in the H.264 packets
  5952. generated by the <code>libx264</code> encoder, but corrects them by adding
  5953. the header stored in extradata to the key packets:
  5954. </p><div class="example">
  5955. <pre class="example">ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts
  5956. </pre></div>
  5957. <a name="eac3_005fcore"></a>
  5958. <h2 class="section"><a href="ffprobe-all.html#toc-eac3_005fcore">13.6 eac3_core</a></h2>
  5959. <p>Extract the core from a E-AC-3 stream, dropping extra channels.
  5960. </p>
  5961. <a name="extract_005fextradata"></a>
  5962. <h2 class="section"><a href="ffprobe-all.html#toc-extract_005fextradata">13.7 extract_extradata</a></h2>
  5963. <p>Extract the in-band extradata.
  5964. </p>
  5965. <p>Certain codecs allow the long-term headers (e.g. MPEG-2 sequence headers,
  5966. or H.264/HEVC (VPS/)SPS/PPS) to be transmitted either &quot;in-band&quot; (i.e. as a part
  5967. of the bitstream containing the coded frames) or &quot;out of band&quot; (e.g. on the
  5968. container level). This latter form is called &quot;extradata&quot; in FFmpeg terminology.
  5969. </p>
  5970. <p>This bitstream filter detects the in-band headers and makes them available as
  5971. extradata.
  5972. </p>
  5973. <dl compact="compact">
  5974. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  5975. <dd><p>When this option is enabled, the long-term headers are removed from the
  5976. bitstream after extraction.
  5977. </p></dd>
  5978. </dl>
  5979. <a name="filter_005funits"></a>
  5980. <h2 class="section"><a href="ffprobe-all.html#toc-filter_005funits">13.8 filter_units</a></h2>
  5981. <p>Remove units with types in or not in a given set from the stream.
  5982. </p>
  5983. <dl compact="compact">
  5984. <dt>&lsquo;<samp>pass_types</samp>&rsquo;</dt>
  5985. <dd><p>List of unit types or ranges of unit types to pass through while removing
  5986. all others. This is specified as a &rsquo;|&rsquo;-separated list of unit type values
  5987. or ranges of values with &rsquo;-&rsquo;.
  5988. </p>
  5989. </dd>
  5990. <dt>&lsquo;<samp>remove_types</samp>&rsquo;</dt>
  5991. <dd><p>Identical to &lsquo;<samp>pass_types</samp>&rsquo;, except the units in the given set
  5992. removed and all others passed through.
  5993. </p></dd>
  5994. </dl>
  5995. <p>Extradata is unchanged by this transformation, but note that if the stream
  5996. contains inline parameter sets then the output may be unusable if they are
  5997. removed.
  5998. </p>
  5999. <p>For example, to remove all non-VCL NAL units from an H.264 stream:
  6000. </p><div class="example">
  6001. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=pass_types=1-5' OUTPUT
  6002. </pre></div>
  6003. <p>To remove all AUDs, SEI and filler from an H.265 stream:
  6004. </p><div class="example">
  6005. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT
  6006. </pre></div>
  6007. <a name="hapqa_005fextract"></a>
  6008. <h2 class="section"><a href="ffprobe-all.html#toc-hapqa_005fextract">13.9 hapqa_extract</a></h2>
  6009. <p>Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file.
  6010. </p>
  6011. <dl compact="compact">
  6012. <dt>&lsquo;<samp>texture</samp>&rsquo;</dt>
  6013. <dd><p>Specifies the texture to keep.
  6014. </p>
  6015. <dl compact="compact">
  6016. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  6017. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  6018. </dl>
  6019. </dd>
  6020. </dl>
  6021. <p>Convert HAPQA to HAPQ
  6022. </p><div class="example">
  6023. <pre class="example">ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=color -tag:v HapY -metadata:s:v:0 encoder=&quot;HAPQ&quot; hapq_file.mov
  6024. </pre></div>
  6025. <p>Convert HAPQA to HAPAlphaOnly
  6026. </p><div class="example">
  6027. <pre class="example">ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=alpha -tag:v HapA -metadata:s:v:0 encoder=&quot;HAPAlpha Only&quot; hapalphaonly_file.mov
  6028. </pre></div>
  6029. <a name="h264_005fmetadata"></a>
  6030. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fmetadata">13.10 h264_metadata</a></h2>
  6031. <p>Modify metadata embedded in an H.264 stream.
  6032. </p>
  6033. <dl compact="compact">
  6034. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  6035. <dd><p>Insert or remove AUD NAL units in all access units of the stream.
  6036. </p>
  6037. <dl compact="compact">
  6038. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  6039. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  6040. </dl>
  6041. </dd>
  6042. <dt>&lsquo;<samp>sample_aspect_ratio</samp>&rsquo;</dt>
  6043. <dd><p>Set the sample aspect ratio of the stream in the VUI parameters.
  6044. </p>
  6045. </dd>
  6046. <dt>&lsquo;<samp>overscan_appropriate_flag</samp>&rsquo;</dt>
  6047. <dd><p>Set whether the stream is suitable for display using overscan
  6048. or not (see H.264 section E.2.1).
  6049. </p>
  6050. </dd>
  6051. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6052. <dt>&lsquo;<samp>video_full_range_flag</samp>&rsquo;</dt>
  6053. <dd><p>Set the video format in the stream (see H.264 section E.2.1 and
  6054. table E-2).
  6055. </p>
  6056. </dd>
  6057. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6058. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6059. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6060. <dd><p>Set the colour description in the stream (see H.264 section E.2.1
  6061. and tables E-3, E-4 and E-5).
  6062. </p>
  6063. </dd>
  6064. <dt>&lsquo;<samp>chroma_sample_loc_type</samp>&rsquo;</dt>
  6065. <dd><p>Set the chroma sample location in the stream (see H.264 section
  6066. E.2.1 and figure E-1).
  6067. </p>
  6068. </dd>
  6069. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  6070. <dd><p>Set the tick rate (num_units_in_tick / time_scale) in the VUI
  6071. parameters. This is the smallest time unit representable in the
  6072. stream, and in many cases represents the field rate of the stream
  6073. (double the frame rate).
  6074. </p></dd>
  6075. <dt>&lsquo;<samp>fixed_frame_rate_flag</samp>&rsquo;</dt>
  6076. <dd><p>Set whether the stream has fixed framerate - typically this indicates
  6077. that the framerate is exactly half the tick rate, but the exact
  6078. meaning is dependent on interlacing and the picture structure (see
  6079. H.264 section E.2.1 and table E-6).
  6080. </p>
  6081. </dd>
  6082. <dt>&lsquo;<samp>crop_left</samp>&rsquo;</dt>
  6083. <dt>&lsquo;<samp>crop_right</samp>&rsquo;</dt>
  6084. <dt>&lsquo;<samp>crop_top</samp>&rsquo;</dt>
  6085. <dt>&lsquo;<samp>crop_bottom</samp>&rsquo;</dt>
  6086. <dd><p>Set the frame cropping offsets in the SPS. These values will replace
  6087. the current ones if the stream is already cropped.
  6088. </p>
  6089. <p>These fields are set in pixels. Note that some sizes may not be
  6090. representable if the chroma is subsampled or the stream is interlaced
  6091. (see H.264 section 7.4.2.1.1).
  6092. </p>
  6093. </dd>
  6094. <dt>&lsquo;<samp>sei_user_data</samp>&rsquo;</dt>
  6095. <dd><p>Insert a string as SEI unregistered user data. The argument must
  6096. be of the form <em>UUID+string</em>, where the UUID is as hex digits
  6097. possibly separated by hyphens, and the string can be anything.
  6098. </p>
  6099. <p>For example, &lsquo;<samp>086f3693-b7b3-4f2c-9653-21492feee5b8+hello</samp>&rsquo; will
  6100. insert the string &ldquo;hello&rdquo; associated with the given UUID.
  6101. </p>
  6102. </dd>
  6103. <dt>&lsquo;<samp>delete_filler</samp>&rsquo;</dt>
  6104. <dd><p>Deletes both filler NAL units and filler SEI messages.
  6105. </p>
  6106. </dd>
  6107. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  6108. <dd><p>Set the level in the SPS. Refer to H.264 section A.3 and tables A-1
  6109. to A-5.
  6110. </p>
  6111. <p>The argument must be the name of a level (for example, &lsquo;<samp>4.2</samp>&rsquo;), a
  6112. level_idc value (for example, &lsquo;<samp>42</samp>&rsquo;), or the special name &lsquo;<samp>auto</samp>&rsquo;
  6113. indicating that the filter should attempt to guess the level from the
  6114. input stream properties.
  6115. </p>
  6116. </dd>
  6117. </dl>
  6118. <a name="h264_005fmp4toannexb"></a>
  6119. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fmp4toannexb">13.11 h264_mp4toannexb</a></h2>
  6120. <p>Convert an H.264 bitstream from length prefixed mode to start code
  6121. prefixed mode (as defined in the Annex B of the ITU-T H.264
  6122. specification).
  6123. </p>
  6124. <p>This is required by some streaming formats, typically the MPEG-2
  6125. transport stream format (muxer <code>mpegts</code>).
  6126. </p>
  6127. <p>For example to remux an MP4 file containing an H.264 stream to mpegts
  6128. format with <code>ffmpeg</code>, you can use the command:
  6129. </p>
  6130. <div class="example">
  6131. <pre class="example">ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts
  6132. </pre></div>
  6133. <p>Please note that this filter is auto-inserted for MPEG-TS (muxer
  6134. <code>mpegts</code>) and raw H.264 (muxer <code>h264</code>) output formats.
  6135. </p>
  6136. <a name="h264_005fredundant_005fpps"></a>
  6137. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fredundant_005fpps">13.12 h264_redundant_pps</a></h2>
  6138. <p>This applies a specific fixup to some Blu-ray streams which contain
  6139. redundant PPSs modifying irrelevant parameters of the stream which
  6140. confuse other transformations which require correct extradata.
  6141. </p>
  6142. <p>A new single global PPS is created, and all of the redundant PPSs
  6143. within the stream are removed.
  6144. </p>
  6145. <a name="hevc_005fmetadata"></a>
  6146. <h2 class="section"><a href="ffprobe-all.html#toc-hevc_005fmetadata">13.13 hevc_metadata</a></h2>
  6147. <p>Modify metadata embedded in an HEVC stream.
  6148. </p>
  6149. <dl compact="compact">
  6150. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  6151. <dd><p>Insert or remove AUD NAL units in all access units of the stream.
  6152. </p>
  6153. <dl compact="compact">
  6154. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  6155. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  6156. </dl>
  6157. </dd>
  6158. <dt>&lsquo;<samp>sample_aspect_ratio</samp>&rsquo;</dt>
  6159. <dd><p>Set the sample aspect ratio in the stream in the VUI parameters.
  6160. </p>
  6161. </dd>
  6162. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6163. <dt>&lsquo;<samp>video_full_range_flag</samp>&rsquo;</dt>
  6164. <dd><p>Set the video format in the stream (see H.265 section E.3.1 and
  6165. table E.2).
  6166. </p>
  6167. </dd>
  6168. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6169. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6170. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6171. <dd><p>Set the colour description in the stream (see H.265 section E.3.1
  6172. and tables E.3, E.4 and E.5).
  6173. </p>
  6174. </dd>
  6175. <dt>&lsquo;<samp>chroma_sample_loc_type</samp>&rsquo;</dt>
  6176. <dd><p>Set the chroma sample location in the stream (see H.265 section
  6177. E.3.1 and figure E.1).
  6178. </p>
  6179. </dd>
  6180. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  6181. <dd><p>Set the tick rate in the VPS and VUI parameters (num_units_in_tick /
  6182. time_scale). Combined with &lsquo;<samp>num_ticks_poc_diff_one</samp>&rsquo;, this can
  6183. set a constant framerate in the stream. Note that it is likely to be
  6184. overridden by container parameters when the stream is in a container.
  6185. </p>
  6186. </dd>
  6187. <dt>&lsquo;<samp>num_ticks_poc_diff_one</samp>&rsquo;</dt>
  6188. <dd><p>Set poc_proportional_to_timing_flag in VPS and VUI and use this value
  6189. to set num_ticks_poc_diff_one_minus1 (see H.265 sections 7.4.3.1 and
  6190. E.3.1). Ignored if &lsquo;<samp>tick_rate</samp>&rsquo; is not also set.
  6191. </p>
  6192. </dd>
  6193. <dt>&lsquo;<samp>crop_left</samp>&rsquo;</dt>
  6194. <dt>&lsquo;<samp>crop_right</samp>&rsquo;</dt>
  6195. <dt>&lsquo;<samp>crop_top</samp>&rsquo;</dt>
  6196. <dt>&lsquo;<samp>crop_bottom</samp>&rsquo;</dt>
  6197. <dd><p>Set the conformance window cropping offsets in the SPS. These values
  6198. will replace the current ones if the stream is already cropped.
  6199. </p>
  6200. <p>These fields are set in pixels. Note that some sizes may not be
  6201. representable if the chroma is subsampled (H.265 section 7.4.3.2.1).
  6202. </p>
  6203. </dd>
  6204. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  6205. <dd><p>Set the level in the VPS and SPS. See H.265 section A.4 and tables
  6206. A.6 and A.7.
  6207. </p>
  6208. <p>The argument must be the name of a level (for example, &lsquo;<samp>5.1</samp>&rsquo;), a
  6209. <em>general_level_idc</em> value (for example, &lsquo;<samp>153</samp>&rsquo; for level 5.1),
  6210. or the special name &lsquo;<samp>auto</samp>&rsquo; indicating that the filter should
  6211. attempt to guess the level from the input stream properties.
  6212. </p>
  6213. </dd>
  6214. </dl>
  6215. <a name="hevc_005fmp4toannexb"></a>
  6216. <h2 class="section"><a href="ffprobe-all.html#toc-hevc_005fmp4toannexb">13.14 hevc_mp4toannexb</a></h2>
  6217. <p>Convert an HEVC/H.265 bitstream from length prefixed mode to start code
  6218. prefixed mode (as defined in the Annex B of the ITU-T H.265
  6219. specification).
  6220. </p>
  6221. <p>This is required by some streaming formats, typically the MPEG-2
  6222. transport stream format (muxer <code>mpegts</code>).
  6223. </p>
  6224. <p>For example to remux an MP4 file containing an HEVC stream to mpegts
  6225. format with <code>ffmpeg</code>, you can use the command:
  6226. </p>
  6227. <div class="example">
  6228. <pre class="example">ffmpeg -i INPUT.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT.ts
  6229. </pre></div>
  6230. <p>Please note that this filter is auto-inserted for MPEG-TS (muxer
  6231. <code>mpegts</code>) and raw HEVC/H.265 (muxer <code>h265</code> or
  6232. <code>hevc</code>) output formats.
  6233. </p>
  6234. <a name="imxdump"></a>
  6235. <h2 class="section"><a href="ffprobe-all.html#toc-imxdump">13.15 imxdump</a></h2>
  6236. <p>Modifies the bitstream to fit in MOV and to be usable by the Final Cut
  6237. Pro decoder. This filter only applies to the mpeg2video codec, and is
  6238. likely not needed for Final Cut Pro 7 and newer with the appropriate
  6239. &lsquo;<samp>-tag:v</samp>&rsquo;.
  6240. </p>
  6241. <p>For example, to remux 30 MB/sec NTSC IMX to MOV:
  6242. </p>
  6243. <div class="example">
  6244. <pre class="example">ffmpeg -i input.mxf -c copy -bsf:v imxdump -tag:v mx3n output.mov
  6245. </pre></div>
  6246. <a name="mjpeg2jpeg"></a>
  6247. <h2 class="section"><a href="ffprobe-all.html#toc-mjpeg2jpeg">13.16 mjpeg2jpeg</a></h2>
  6248. <p>Convert MJPEG/AVI1 packets to full JPEG/JFIF packets.
  6249. </p>
  6250. <p>MJPEG is a video codec wherein each video frame is essentially a
  6251. JPEG image. The individual frames can be extracted without loss,
  6252. e.g. by
  6253. </p>
  6254. <div class="example">
  6255. <pre class="example">ffmpeg -i ../some_mjpeg.avi -c:v copy frames_%d.jpg
  6256. </pre></div>
  6257. <p>Unfortunately, these chunks are incomplete JPEG images, because
  6258. they lack the DHT segment required for decoding. Quoting from
  6259. <a href="http://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml">http://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml</a>:
  6260. </p>
  6261. <p>Avery Lee, writing in the rec.video.desktop newsgroup in 2001,
  6262. commented that &quot;MJPEG, or at least the MJPEG in AVIs having the
  6263. MJPG fourcc, is restricted JPEG with a fixed &ndash; and *omitted* &ndash;
  6264. Huffman table. The JPEG must be YCbCr colorspace, it must be 4:2:2,
  6265. and it must use basic Huffman encoding, not arithmetic or
  6266. progressive. . . . You can indeed extract the MJPEG frames and
  6267. decode them with a regular JPEG decoder, but you have to prepend
  6268. the DHT segment to them, or else the decoder won&rsquo;t have any idea
  6269. how to decompress the data. The exact table necessary is given in
  6270. the OpenDML spec.&quot;
  6271. </p>
  6272. <p>This bitstream filter patches the header of frames extracted from an MJPEG
  6273. stream (carrying the AVI1 header ID and lacking a DHT segment) to
  6274. produce fully qualified JPEG images.
  6275. </p>
  6276. <div class="example">
  6277. <pre class="example">ffmpeg -i mjpeg-movie.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg
  6278. exiftran -i -9 frame*.jpg
  6279. ffmpeg -i frame_%d.jpg -c:v copy rotated.avi
  6280. </pre></div>
  6281. <a name="mjpegadump"></a>
  6282. <h2 class="section"><a href="ffprobe-all.html#toc-mjpegadump">13.17 mjpegadump</a></h2>
  6283. <p>Add an MJPEG A header to the bitstream, to enable decoding by
  6284. Quicktime.
  6285. </p>
  6286. <p><a name="mov2textsub"></a>
  6287. </p><a name="mov2textsub-1"></a>
  6288. <h2 class="section"><a href="ffprobe-all.html#toc-mov2textsub-1">13.18 mov2textsub</a></h2>
  6289. <p>Extract a representable text file from MOV subtitles, stripping the
  6290. metadata header from each subtitle packet.
  6291. </p>
  6292. <p>See also the <a href="#text2movsub">text2movsub</a> filter.
  6293. </p>
  6294. <a name="mp3decomp"></a>
  6295. <h2 class="section"><a href="ffprobe-all.html#toc-mp3decomp">13.19 mp3decomp</a></h2>
  6296. <p>Decompress non-standard compressed MP3 audio headers.
  6297. </p>
  6298. <a name="mpeg2_005fmetadata"></a>
  6299. <h2 class="section"><a href="ffprobe-all.html#toc-mpeg2_005fmetadata">13.20 mpeg2_metadata</a></h2>
  6300. <p>Modify metadata embedded in an MPEG-2 stream.
  6301. </p>
  6302. <dl compact="compact">
  6303. <dt>&lsquo;<samp>display_aspect_ratio</samp>&rsquo;</dt>
  6304. <dd><p>Set the display aspect ratio in the stream.
  6305. </p>
  6306. <p>The following fixed values are supported:
  6307. </p><dl compact="compact">
  6308. <dt>&lsquo;<samp>4/3</samp>&rsquo;</dt>
  6309. <dt>&lsquo;<samp>16/9</samp>&rsquo;</dt>
  6310. <dt>&lsquo;<samp>221/100</samp>&rsquo;</dt>
  6311. </dl>
  6312. <p>Any other value will result in square pixels being signalled instead
  6313. (see H.262 section 6.3.3 and table 6-3).
  6314. </p>
  6315. </dd>
  6316. <dt>&lsquo;<samp>frame_rate</samp>&rsquo;</dt>
  6317. <dd><p>Set the frame rate in the stream. This is constructed from a table
  6318. of known values combined with a small multiplier and divisor - if
  6319. the supplied value is not exactly representable, the nearest
  6320. representable value will be used instead (see H.262 section 6.3.3
  6321. and table 6-4).
  6322. </p>
  6323. </dd>
  6324. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6325. <dd><p>Set the video format in the stream (see H.262 section 6.3.6 and
  6326. table 6-6).
  6327. </p>
  6328. </dd>
  6329. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6330. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6331. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6332. <dd><p>Set the colour description in the stream (see H.262 section 6.3.6
  6333. and tables 6-7, 6-8 and 6-9).
  6334. </p>
  6335. </dd>
  6336. </dl>
  6337. <a name="mpeg4_005funpack_005fbframes"></a>
  6338. <h2 class="section"><a href="ffprobe-all.html#toc-mpeg4_005funpack_005fbframes">13.21 mpeg4_unpack_bframes</a></h2>
  6339. <p>Unpack DivX-style packed B-frames.
  6340. </p>
  6341. <p>DivX-style packed B-frames are not valid MPEG-4 and were only a
  6342. workaround for the broken Video for Windows subsystem.
  6343. They use more space, can cause minor AV sync issues, require more
  6344. CPU power to decode (unless the player has some decoded picture queue
  6345. to compensate the 2,0,2,0 frame per packet style) and cause
  6346. trouble if copied into a standard container like mp4 or mpeg-ps/ts,
  6347. because MPEG-4 decoders may not be able to decode them, since they are
  6348. not valid MPEG-4.
  6349. </p>
  6350. <p>For example to fix an AVI file containing an MPEG-4 stream with
  6351. DivX-style packed B-frames using <code>ffmpeg</code>, you can use the command:
  6352. </p>
  6353. <div class="example">
  6354. <pre class="example">ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi
  6355. </pre></div>
  6356. <a name="noise"></a>
  6357. <h2 class="section"><a href="ffprobe-all.html#toc-noise">13.22 noise</a></h2>
  6358. <p>Damages the contents of packets or simply drops them without damaging the
  6359. container. Can be used for fuzzing or testing error resilience/concealment.
  6360. </p>
  6361. <p>Parameters:
  6362. </p><dl compact="compact">
  6363. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  6364. <dd><p>A numeral string, whose value is related to how often output bytes will
  6365. be modified. Therefore, values below or equal to 0 are forbidden, and
  6366. the lower the more frequent bytes will be modified, with 1 meaning
  6367. every byte is modified.
  6368. </p></dd>
  6369. <dt>&lsquo;<samp>dropamount</samp>&rsquo;</dt>
  6370. <dd><p>A numeral string, whose value is related to how often packets will be dropped.
  6371. Therefore, values below or equal to 0 are forbidden, and the lower the more
  6372. frequent packets will be dropped, with 1 meaning every packet is dropped.
  6373. </p></dd>
  6374. </dl>
  6375. <p>The following example applies the modification to every byte but does not drop
  6376. any packets.
  6377. </p><div class="example">
  6378. <pre class="example">ffmpeg -i INPUT -c copy -bsf noise[=1] output.mkv
  6379. </pre></div>
  6380. <a name="null-1"></a>
  6381. <h2 class="section"><a href="ffprobe-all.html#toc-null-1">13.23 null</a></h2>
  6382. <p>This bitstream filter passes the packets through unchanged.
  6383. </p>
  6384. <a name="pcm_005frechunk"></a>
  6385. <h2 class="section"><a href="ffprobe-all.html#toc-pcm_005frechunk">13.24 pcm_rechunk</a></h2>
  6386. <p>Repacketize PCM audio to a fixed number of samples per packet or a fixed packet
  6387. rate per second. This is similar to the <a href="ffmpeg-filters.html#asetnsamples">(ffmpeg-filters)asetnsamples audio filter</a> but works on audio packets instead of audio frames.
  6388. </p>
  6389. <dl compact="compact">
  6390. <dt>&lsquo;<samp>nb_out_samples, n</samp>&rsquo;</dt>
  6391. <dd><p>Set the number of samples per each output audio packet. The number is intended
  6392. as the number of samples <em>per each channel</em>. Default value is 1024.
  6393. </p>
  6394. </dd>
  6395. <dt>&lsquo;<samp>pad, p</samp>&rsquo;</dt>
  6396. <dd><p>If set to 1, the filter will pad the last audio packet with silence, so that it
  6397. will contain the same number of samples (or roughly the same number of samples,
  6398. see &lsquo;<samp>frame_rate</samp>&rsquo;) as the previous ones. Default value is 1.
  6399. </p>
  6400. </dd>
  6401. <dt>&lsquo;<samp>frame_rate, r</samp>&rsquo;</dt>
  6402. <dd><p>This option makes the filter output a fixed number of packets per second instead
  6403. of a fixed number of samples per packet. If the audio sample rate is not
  6404. divisible by the frame rate then the number of samples will not be constant but
  6405. will vary slightly so that each packet will start as close to the frame
  6406. boundary as possible. Using this option has precedence over &lsquo;<samp>nb_out_samples</samp>&rsquo;.
  6407. </p></dd>
  6408. </dl>
  6409. <p>You can generate the well known 1602-1601-1602-1601-1602 pattern of 48kHz audio
  6410. for NTSC frame rate using the &lsquo;<samp>frame_rate</samp>&rsquo; option.
  6411. </p><div class="example">
  6412. <pre class="example">ffmpeg -f lavfi -i sine=r=48000:d=1 -c pcm_s16le -bsf pcm_rechunk=r=30000/1001 -f framecrc -
  6413. </pre></div>
  6414. <a name="prores_005fmetadata"></a>
  6415. <h2 class="section"><a href="ffprobe-all.html#toc-prores_005fmetadata">13.25 prores_metadata</a></h2>
  6416. <p>Modify color property metadata embedded in prores stream.
  6417. </p>
  6418. <dl compact="compact">
  6419. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  6420. <dd><p>Set the color primaries.
  6421. Available values are:
  6422. </p>
  6423. <dl compact="compact">
  6424. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6425. <dd><p>Keep the same color primaries property (default).
  6426. </p>
  6427. </dd>
  6428. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6429. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6430. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  6431. <dd><p>BT601 625
  6432. </p>
  6433. </dd>
  6434. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  6435. <dd><p>BT601 525
  6436. </p>
  6437. </dd>
  6438. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  6439. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  6440. <dd><p>DCI P3
  6441. </p>
  6442. </dd>
  6443. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  6444. <dd><p>P3 D65
  6445. </p>
  6446. </dd>
  6447. </dl>
  6448. </dd>
  6449. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6450. <dd><p>Set the color transfer.
  6451. Available values are:
  6452. </p>
  6453. <dl compact="compact">
  6454. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6455. <dd><p>Keep the same transfer characteristics property (default).
  6456. </p>
  6457. </dd>
  6458. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6459. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6460. <dd><p>BT 601, BT 709, BT 2020
  6461. </p></dd>
  6462. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  6463. <dd><p>SMPTE ST 2084
  6464. </p></dd>
  6465. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  6466. <dd><p>ARIB STD-B67
  6467. </p></dd>
  6468. </dl>
  6469. </dd>
  6470. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6471. <dd><p>Set the matrix coefficient.
  6472. Available values are:
  6473. </p>
  6474. <dl compact="compact">
  6475. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6476. <dd><p>Keep the same colorspace property (default).
  6477. </p>
  6478. </dd>
  6479. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6480. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6481. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  6482. <dd><p>BT 601
  6483. </p>
  6484. </dd>
  6485. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  6486. </dl>
  6487. </dd>
  6488. </dl>
  6489. <p>Set Rec709 colorspace for each frame of the file
  6490. </p><div class="example">
  6491. <pre class="example">ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov
  6492. </pre></div>
  6493. <p>Set Hybrid Log-Gamma parameters for each frame of the file
  6494. </p><div class="example">
  6495. <pre class="example">ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt2020:color_trc=arib-std-b67:colorspace=bt2020nc output.mov
  6496. </pre></div>
  6497. <a name="remove_005fextra"></a>
  6498. <h2 class="section"><a href="ffprobe-all.html#toc-remove_005fextra">13.26 remove_extra</a></h2>
  6499. <p>Remove extradata from packets.
  6500. </p>
  6501. <p>It accepts the following parameter:
  6502. </p><dl compact="compact">
  6503. <dt>&lsquo;<samp>freq</samp>&rsquo;</dt>
  6504. <dd><p>Set which frame types to remove extradata from.
  6505. </p>
  6506. <dl compact="compact">
  6507. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  6508. <dd><p>Remove extradata from non-keyframes only.
  6509. </p>
  6510. </dd>
  6511. <dt>&lsquo;<samp>keyframe</samp>&rsquo;</dt>
  6512. <dd><p>Remove extradata from keyframes only.
  6513. </p>
  6514. </dd>
  6515. <dt>&lsquo;<samp>e, all</samp>&rsquo;</dt>
  6516. <dd><p>Remove extradata from all frames.
  6517. </p>
  6518. </dd>
  6519. </dl>
  6520. </dd>
  6521. </dl>
  6522. <p><a name="text2movsub"></a>
  6523. </p><a name="text2movsub-1"></a>
  6524. <h2 class="section"><a href="ffprobe-all.html#toc-text2movsub-1">13.27 text2movsub</a></h2>
  6525. <p>Convert text subtitles to MOV subtitles (as used by the <code>mov_text</code>
  6526. codec) with metadata headers.
  6527. </p>
  6528. <p>See also the <a href="#mov2textsub">mov2textsub</a> filter.
  6529. </p>
  6530. <a name="trace_005fheaders"></a>
  6531. <h2 class="section"><a href="ffprobe-all.html#toc-trace_005fheaders">13.28 trace_headers</a></h2>
  6532. <p>Log trace output containing all syntax elements in the coded stream
  6533. headers (everything above the level of individual coded blocks).
  6534. This can be useful for debugging low-level stream issues.
  6535. </p>
  6536. <p>Supports AV1, H.264, H.265, (M)JPEG, MPEG-2 and VP9, but depending
  6537. on the build only a subset of these may be available.
  6538. </p>
  6539. <a name="truehd_005fcore"></a>
  6540. <h2 class="section"><a href="ffprobe-all.html#toc-truehd_005fcore">13.29 truehd_core</a></h2>
  6541. <p>Extract the core from a TrueHD stream, dropping ATMOS data.
  6542. </p>
  6543. <a name="vp9_005fmetadata"></a>
  6544. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fmetadata">13.30 vp9_metadata</a></h2>
  6545. <p>Modify metadata embedded in a VP9 stream.
  6546. </p>
  6547. <dl compact="compact">
  6548. <dt>&lsquo;<samp>color_space</samp>&rsquo;</dt>
  6549. <dd><p>Set the color space value in the frame header. Note that any frame
  6550. set to RGB will be implicitly set to PC range and that RGB is
  6551. incompatible with profiles 0 and 2.
  6552. </p><dl compact="compact">
  6553. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6554. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  6555. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6556. <dt>&lsquo;<samp>smpte170</samp>&rsquo;</dt>
  6557. <dt>&lsquo;<samp>smpte240</samp>&rsquo;</dt>
  6558. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  6559. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  6560. </dl>
  6561. </dd>
  6562. <dt>&lsquo;<samp>color_range</samp>&rsquo;</dt>
  6563. <dd><p>Set the color range value in the frame header. Note that any value
  6564. imposed by the color space will take precedence over this value.
  6565. </p><dl compact="compact">
  6566. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  6567. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  6568. </dl>
  6569. </dd>
  6570. </dl>
  6571. <a name="vp9_005fsuperframe"></a>
  6572. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fsuperframe">13.31 vp9_superframe</a></h2>
  6573. <p>Merge VP9 invisible (alt-ref) frames back into VP9 superframes. This
  6574. fixes merging of split/segmented VP9 streams where the alt-ref frame
  6575. was split from its visible counterpart.
  6576. </p>
  6577. <a name="vp9_005fsuperframe_005fsplit"></a>
  6578. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fsuperframe_005fsplit">13.32 vp9_superframe_split</a></h2>
  6579. <p>Split VP9 superframes into single frames.
  6580. </p>
  6581. <a name="vp9_005fraw_005freorder"></a>
  6582. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fraw_005freorder">13.33 vp9_raw_reorder</a></h2>
  6583. <p>Given a VP9 stream with correct timestamps but possibly out of order,
  6584. insert additional show-existing-frame packets to correct the ordering.
  6585. </p>
  6586. <a name="Format-Options"></a>
  6587. <h1 class="chapter"><a href="ffprobe-all.html#toc-Format-Options">14 Format Options</a></h1>
  6588. <p>The libavformat library provides some generic global options, which
  6589. can be set on all the muxers and demuxers. In addition each muxer or
  6590. demuxer may support so-called private options, which are specific for
  6591. that component.
  6592. </p>
  6593. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  6594. FFmpeg tools, or by setting the value explicitly in the
  6595. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  6596. for programmatic use.
  6597. </p>
  6598. <p>The list of supported options follows:
  6599. </p>
  6600. <dl compact="compact">
  6601. <dt>&lsquo;<samp>avioflags <var>flags</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6602. <dd><p>Possible values:
  6603. </p><dl compact="compact">
  6604. <dt>&lsquo;<samp>direct</samp>&rsquo;</dt>
  6605. <dd><p>Reduce buffering.
  6606. </p></dd>
  6607. </dl>
  6608. </dd>
  6609. <dt>&lsquo;<samp>probesize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6610. <dd><p>Set probing size in bytes, i.e. the size of the data to analyze to get
  6611. stream information. A higher value will enable detecting more
  6612. information in case it is dispersed into the stream, but will increase
  6613. latency. Must be an integer not lesser than 32. It is 5000000 by default.
  6614. </p>
  6615. </dd>
  6616. <dt>&lsquo;<samp>max_probe_packets <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6617. <dd><p>Set the maximum number of buffered packets when probing a codec.
  6618. Default is 2500 packets.
  6619. </p>
  6620. </dd>
  6621. <dt>&lsquo;<samp>packetsize <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6622. <dd><p>Set packet size.
  6623. </p>
  6624. </dd>
  6625. <dt>&lsquo;<samp>fflags <var>flags</var></samp>&rsquo;</dt>
  6626. <dd><p>Set format flags. Some are implemented for a limited number of formats.
  6627. </p>
  6628. <p>Possible values for input files:
  6629. </p><dl compact="compact">
  6630. <dt>&lsquo;<samp>discardcorrupt</samp>&rsquo;</dt>
  6631. <dd><p>Discard corrupted packets.
  6632. </p></dd>
  6633. <dt>&lsquo;<samp>fastseek</samp>&rsquo;</dt>
  6634. <dd><p>Enable fast, but inaccurate seeks for some formats.
  6635. </p></dd>
  6636. <dt>&lsquo;<samp>genpts</samp>&rsquo;</dt>
  6637. <dd><p>Generate missing PTS if DTS is present.
  6638. </p></dd>
  6639. <dt>&lsquo;<samp>igndts</samp>&rsquo;</dt>
  6640. <dd><p>Ignore DTS if PTS is set. Inert when nofillin is set.
  6641. </p></dd>
  6642. <dt>&lsquo;<samp>ignidx</samp>&rsquo;</dt>
  6643. <dd><p>Ignore index.
  6644. </p></dd>
  6645. <dt>&lsquo;<samp>keepside (<em>deprecated</em>,<em>inert</em>)</samp>&rsquo;</dt>
  6646. <dt>&lsquo;<samp>nobuffer</samp>&rsquo;</dt>
  6647. <dd><p>Reduce the latency introduced by buffering during initial input streams analysis.
  6648. </p></dd>
  6649. <dt>&lsquo;<samp>nofillin</samp>&rsquo;</dt>
  6650. <dd><p>Do not fill in missing values in packet fields that can be exactly calculated.
  6651. </p></dd>
  6652. <dt>&lsquo;<samp>noparse</samp>&rsquo;</dt>
  6653. <dd><p>Disable AVParsers, this needs <code>+nofillin</code> too.
  6654. </p></dd>
  6655. <dt>&lsquo;<samp>sortdts</samp>&rsquo;</dt>
  6656. <dd><p>Try to interleave output packets by DTS. At present, available only for AVIs with an index.
  6657. </p></dd>
  6658. </dl>
  6659. <p>Possible values for output files:
  6660. </p><dl compact="compact">
  6661. <dt>&lsquo;<samp>autobsf</samp>&rsquo;</dt>
  6662. <dd><p>Automatically apply bitstream filters as required by the output format. Enabled by default.
  6663. </p></dd>
  6664. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  6665. <dd><p>Only write platform-, build- and time-independent data.
  6666. This ensures that file and data checksums are reproducible and match between
  6667. platforms. Its primary use is for regression testing.
  6668. </p></dd>
  6669. <dt>&lsquo;<samp>flush_packets</samp>&rsquo;</dt>
  6670. <dd><p>Write out packets immediately.
  6671. </p></dd>
  6672. <dt>&lsquo;<samp>latm (<em>deprecated</em>,<em>inert</em>)</samp>&rsquo;</dt>
  6673. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  6674. <dd><p>Stop muxing at the end of the shortest stream.
  6675. It may be needed to increase max_interleave_delta to avoid flushing the longer
  6676. streams before EOF.
  6677. </p></dd>
  6678. </dl>
  6679. </dd>
  6680. <dt>&lsquo;<samp>seek2any <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6681. <dd><p>Allow seeking to non-keyframes on demuxer level when supported if set to 1.
  6682. Default is 0.
  6683. </p>
  6684. </dd>
  6685. <dt>&lsquo;<samp>analyzeduration <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6686. <dd><p>Specify how many microseconds are analyzed to probe the input. A
  6687. higher value will enable detecting more accurate information, but will
  6688. increase latency. It defaults to 5,000,000 microseconds = 5 seconds.
  6689. </p>
  6690. </dd>
  6691. <dt>&lsquo;<samp>cryptokey <var>hexadecimal string</var> (<em>input</em>)</samp>&rsquo;</dt>
  6692. <dd><p>Set decryption key.
  6693. </p>
  6694. </dd>
  6695. <dt>&lsquo;<samp>indexmem <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6696. <dd><p>Set max memory used for timestamp index (per stream).
  6697. </p>
  6698. </dd>
  6699. <dt>&lsquo;<samp>rtbufsize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6700. <dd><p>Set max memory used for buffering real-time frames.
  6701. </p>
  6702. </dd>
  6703. <dt>&lsquo;<samp>fdebug <var>flags</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6704. <dd><p>Print specific debug info.
  6705. </p>
  6706. <p>Possible values:
  6707. </p><dl compact="compact">
  6708. <dt>&lsquo;<samp>ts</samp>&rsquo;</dt>
  6709. </dl>
  6710. </dd>
  6711. <dt>&lsquo;<samp>max_delay <var>integer</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6712. <dd><p>Set maximum muxing or demuxing delay in microseconds.
  6713. </p>
  6714. </dd>
  6715. <dt>&lsquo;<samp>fpsprobesize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6716. <dd><p>Set number of frames used to probe fps.
  6717. </p>
  6718. </dd>
  6719. <dt>&lsquo;<samp>audio_preload <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6720. <dd><p>Set microseconds by which audio packets should be interleaved earlier.
  6721. </p>
  6722. </dd>
  6723. <dt>&lsquo;<samp>chunk_duration <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6724. <dd><p>Set microseconds for each chunk.
  6725. </p>
  6726. </dd>
  6727. <dt>&lsquo;<samp>chunk_size <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6728. <dd><p>Set size in bytes for each chunk.
  6729. </p>
  6730. </dd>
  6731. <dt>&lsquo;<samp>err_detect, f_err_detect <var>flags</var> (<em>input</em>)</samp>&rsquo;</dt>
  6732. <dd><p>Set error detection flags. <code>f_err_detect</code> is deprecated and
  6733. should be used only via the <code>ffmpeg</code> tool.
  6734. </p>
  6735. <p>Possible values:
  6736. </p><dl compact="compact">
  6737. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  6738. <dd><p>Verify embedded CRCs.
  6739. </p></dd>
  6740. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  6741. <dd><p>Detect bitstream specification deviations.
  6742. </p></dd>
  6743. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  6744. <dd><p>Detect improper bitstream length.
  6745. </p></dd>
  6746. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  6747. <dd><p>Abort decoding on minor error detection.
  6748. </p></dd>
  6749. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  6750. <dd><p>Consider things that violate the spec and have not been seen in the
  6751. wild as errors.
  6752. </p></dd>
  6753. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  6754. <dd><p>Consider all spec non compliancies as errors.
  6755. </p></dd>
  6756. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  6757. <dd><p>Consider things that a sane encoder should not do as an error.
  6758. </p></dd>
  6759. </dl>
  6760. </dd>
  6761. <dt>&lsquo;<samp>max_interleave_delta <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6762. <dd><p>Set maximum buffering duration for interleaving. The duration is
  6763. expressed in microseconds, and defaults to 10000000 (10 seconds).
  6764. </p>
  6765. <p>To ensure all the streams are interleaved correctly, libavformat will
  6766. wait until it has at least one packet for each stream before actually
  6767. writing any packets to the output file. When some streams are
  6768. &quot;sparse&quot; (i.e. there are large gaps between successive packets), this
  6769. can result in excessive buffering.
  6770. </p>
  6771. <p>This field specifies the maximum difference between the timestamps of the
  6772. first and the last packet in the muxing queue, above which libavformat
  6773. will output a packet regardless of whether it has queued a packet for all
  6774. the streams.
  6775. </p>
  6776. <p>If set to 0, libavformat will continue buffering packets until it has
  6777. a packet for each stream, regardless of the maximum timestamp
  6778. difference between the buffered packets.
  6779. </p>
  6780. </dd>
  6781. <dt>&lsquo;<samp>use_wallclock_as_timestamps <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6782. <dd><p>Use wallclock as timestamps if set to 1. Default is 0.
  6783. </p>
  6784. </dd>
  6785. <dt>&lsquo;<samp>avoid_negative_ts <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6786. <dd>
  6787. <p>Possible values:
  6788. </p><dl compact="compact">
  6789. <dt>&lsquo;<samp>make_non_negative</samp>&rsquo;</dt>
  6790. <dd><p>Shift timestamps to make them non-negative.
  6791. Also note that this affects only leading negative timestamps, and not
  6792. non-monotonic negative timestamps.
  6793. </p></dd>
  6794. <dt>&lsquo;<samp>make_zero</samp>&rsquo;</dt>
  6795. <dd><p>Shift timestamps so that the first timestamp is 0.
  6796. </p></dd>
  6797. <dt>&lsquo;<samp>auto (default)</samp>&rsquo;</dt>
  6798. <dd><p>Enables shifting when required by the target format.
  6799. </p></dd>
  6800. <dt>&lsquo;<samp>disabled</samp>&rsquo;</dt>
  6801. <dd><p>Disables shifting of timestamp.
  6802. </p></dd>
  6803. </dl>
  6804. <p>When shifting is enabled, all output timestamps are shifted by the
  6805. same amount. Audio, video, and subtitles desynching and relative
  6806. timestamp differences are preserved compared to how they would have
  6807. been without shifting.
  6808. </p>
  6809. </dd>
  6810. <dt>&lsquo;<samp>skip_initial_bytes <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6811. <dd><p>Set number of bytes to skip before reading header and frames if set to 1.
  6812. Default is 0.
  6813. </p>
  6814. </dd>
  6815. <dt>&lsquo;<samp>correct_ts_overflow <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6816. <dd><p>Correct single timestamp overflows if set to 1. Default is 1.
  6817. </p>
  6818. </dd>
  6819. <dt>&lsquo;<samp>flush_packets <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6820. <dd><p>Flush the underlying I/O stream after each packet. Default is -1 (auto), which
  6821. means that the underlying protocol will decide, 1 enables it, and has the
  6822. effect of reducing the latency, 0 disables it and may increase IO throughput in
  6823. some cases.
  6824. </p>
  6825. </dd>
  6826. <dt>&lsquo;<samp>output_ts_offset <var>offset</var> (<em>output</em>)</samp>&rsquo;</dt>
  6827. <dd><p>Set the output time offset.
  6828. </p>
  6829. <p><var>offset</var> must be a time duration specification,
  6830. see <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  6831. </p>
  6832. <p>The offset is added by the muxer to the output timestamps.
  6833. </p>
  6834. <p>Specifying a positive offset means that the corresponding streams are
  6835. delayed bt the time duration specified in <var>offset</var>. Default value
  6836. is <code>0</code> (meaning that no offset is applied).
  6837. </p>
  6838. </dd>
  6839. <dt>&lsquo;<samp>format_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  6840. <dd><p>&quot;,&quot; separated list of allowed demuxers. By default all are allowed.
  6841. </p>
  6842. </dd>
  6843. <dt>&lsquo;<samp>dump_separator <var>string</var> (<em>input</em>)</samp>&rsquo;</dt>
  6844. <dd><p>Separator used to separate the fields printed on the command line about the
  6845. Stream parameters.
  6846. For example, to separate the fields with newlines and indentation:
  6847. </p><div class="example">
  6848. <pre class="example">ffprobe -dump_separator &quot;
  6849. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  6850. </pre></div>
  6851. </dd>
  6852. <dt>&lsquo;<samp>max_streams <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6853. <dd><p>Specifies the maximum number of streams. This can be used to reject files that
  6854. would require too many resources due to a large number of streams.
  6855. </p>
  6856. </dd>
  6857. <dt>&lsquo;<samp>skip_estimate_duration_from_pts <var>bool</var> (<em>input</em>)</samp>&rsquo;</dt>
  6858. <dd><p>Skip estimation of input duration when calculated using PTS.
  6859. At present, applicable for MPEG-PS and MPEG-TS.
  6860. </p>
  6861. </dd>
  6862. <dt>&lsquo;<samp>strict, f_strict <var>integer</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6863. <dd><p>Specify how strictly to follow the standards. <code>f_strict</code> is deprecated and
  6864. should be used only via the <code>ffmpeg</code> tool.
  6865. </p>
  6866. <p>Possible values:
  6867. </p><dl compact="compact">
  6868. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  6869. <dd><p>strictly conform to an older more strict version of the spec or reference software
  6870. </p></dd>
  6871. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  6872. <dd><p>strictly conform to all the things in the spec no matter what consequences
  6873. </p></dd>
  6874. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  6875. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  6876. <dd><p>allow unofficial extensions
  6877. </p></dd>
  6878. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  6879. <dd><p>allow non standardized experimental things, experimental
  6880. (unfinished/work in progress/not well tested) decoders and encoders.
  6881. Note: experimental decoders can pose a security risk, do not use this for
  6882. decoding untrusted input.
  6883. </p></dd>
  6884. </dl>
  6885. </dd>
  6886. </dl>
  6887. <p><a name="Format-stream-specifiers"></a>
  6888. </p><a name="Format-stream-specifiers-1"></a>
  6889. <h2 class="section"><a href="ffprobe-all.html#toc-Format-stream-specifiers-1">14.1 Format stream specifiers</a></h2>
  6890. <p>Format stream specifiers allow selection of one or more streams that
  6891. match specific properties.
  6892. </p>
  6893. <p>The exact semantics of stream specifiers is defined by the
  6894. <code>avformat_match_stream_specifier()</code> function declared in the
  6895. &lsquo;<tt>libavformat/avformat.h</tt>&rsquo; header and documented in the
  6896. <a href="ffmpeg.html#Stream-specifiers">(ffmpeg)Stream specifiers section in the ffmpeg(1) manual</a>.
  6897. </p>
  6898. <a name="Demuxers"></a>
  6899. <h1 class="chapter"><a href="ffprobe-all.html#toc-Demuxers">15 Demuxers</a></h1>
  6900. <p>Demuxers are configured elements in FFmpeg that can read the
  6901. multimedia streams from a particular type of file.
  6902. </p>
  6903. <p>When you configure your FFmpeg build, all the supported demuxers
  6904. are enabled by default. You can list all available ones using the
  6905. configure option <code>--list-demuxers</code>.
  6906. </p>
  6907. <p>You can disable all the demuxers using the configure option
  6908. <code>--disable-demuxers</code>, and selectively enable a single demuxer with
  6909. the option <code>--enable-demuxer=<var>DEMUXER</var></code>, or disable it
  6910. with the option <code>--disable-demuxer=<var>DEMUXER</var></code>.
  6911. </p>
  6912. <p>The option <code>-demuxers</code> of the ff* tools will display the list of
  6913. enabled demuxers. Use <code>-formats</code> to view a combined list of
  6914. enabled demuxers and muxers.
  6915. </p>
  6916. <p>The description of some of the currently available demuxers follows.
  6917. </p>
  6918. <a name="aa"></a>
  6919. <h2 class="section"><a href="ffprobe-all.html#toc-aa">15.1 aa</a></h2>
  6920. <p>Audible Format 2, 3, and 4 demuxer.
  6921. </p>
  6922. <p>This demuxer is used to demux Audible Format 2, 3, and 4 (.aa) files.
  6923. </p>
  6924. <a name="apng"></a>
  6925. <h2 class="section"><a href="ffprobe-all.html#toc-apng">15.2 apng</a></h2>
  6926. <p>Animated Portable Network Graphics demuxer.
  6927. </p>
  6928. <p>This demuxer is used to demux APNG files.
  6929. All headers, but the PNG signature, up to (but not including) the first
  6930. fcTL chunk are transmitted as extradata.
  6931. Frames are then split as being all the chunks between two fcTL ones, or
  6932. between the last fcTL and IEND chunks.
  6933. </p>
  6934. <dl compact="compact">
  6935. <dt>&lsquo;<samp>-ignore_loop <var>bool</var></samp>&rsquo;</dt>
  6936. <dd><p>Ignore the loop variable in the file if set.
  6937. </p></dd>
  6938. <dt>&lsquo;<samp>-max_fps <var>int</var></samp>&rsquo;</dt>
  6939. <dd><p>Maximum framerate in frames per second (0 for no limit).
  6940. </p></dd>
  6941. <dt>&lsquo;<samp>-default_fps <var>int</var></samp>&rsquo;</dt>
  6942. <dd><p>Default framerate in frames per second when none is specified in the file
  6943. (0 meaning as fast as possible).
  6944. </p></dd>
  6945. </dl>
  6946. <a name="asf"></a>
  6947. <h2 class="section"><a href="ffprobe-all.html#toc-asf">15.3 asf</a></h2>
  6948. <p>Advanced Systems Format demuxer.
  6949. </p>
  6950. <p>This demuxer is used to demux ASF files and MMS network streams.
  6951. </p>
  6952. <dl compact="compact">
  6953. <dt>&lsquo;<samp>-no_resync_search <var>bool</var></samp>&rsquo;</dt>
  6954. <dd><p>Do not try to resynchronize by looking for a certain optional start code.
  6955. </p></dd>
  6956. </dl>
  6957. <p><a name="concat"></a>
  6958. </p><a name="concat-2"></a>
  6959. <h2 class="section"><a href="ffprobe-all.html#toc-concat-2">15.4 concat</a></h2>
  6960. <p>Virtual concatenation script demuxer.
  6961. </p>
  6962. <p>This demuxer reads a list of files and other directives from a text file and
  6963. demuxes them one after the other, as if all their packets had been muxed
  6964. together.
  6965. </p>
  6966. <p>The timestamps in the files are adjusted so that the first file starts at 0
  6967. and each next file starts where the previous one finishes. Note that it is
  6968. done globally and may cause gaps if all streams do not have exactly the same
  6969. length.
  6970. </p>
  6971. <p>All files must have the same streams (same codecs, same time base, etc.).
  6972. </p>
  6973. <p>The duration of each file is used to adjust the timestamps of the next file:
  6974. if the duration is incorrect (because it was computed using the bit-rate or
  6975. because the file is truncated, for example), it can cause artifacts. The
  6976. <code>duration</code> directive can be used to override the duration stored in
  6977. each file.
  6978. </p>
  6979. <a name="Syntax-1"></a>
  6980. <h3 class="subsection"><a href="ffprobe-all.html#toc-Syntax-1">15.4.1 Syntax</a></h3>
  6981. <p>The script is a text file in extended-ASCII, with one directive per line.
  6982. Empty lines, leading spaces and lines starting with &rsquo;#&rsquo; are ignored. The
  6983. following directive is recognized:
  6984. </p>
  6985. <dl compact="compact">
  6986. <dt>&lsquo;<samp><code>file <var>path</var></code></samp>&rsquo;</dt>
  6987. <dd><p>Path to a file to read; special characters and spaces must be escaped with
  6988. backslash or single quotes.
  6989. </p>
  6990. <p>All subsequent file-related directives apply to that file.
  6991. </p>
  6992. </dd>
  6993. <dt>&lsquo;<samp><code>ffconcat version 1.0</code></samp>&rsquo;</dt>
  6994. <dd><p>Identify the script type and version. It also sets the &lsquo;<samp>safe</samp>&rsquo; option
  6995. to 1 if it was -1.
  6996. </p>
  6997. <p>To make FFmpeg recognize the format automatically, this directive must
  6998. appear exactly as is (no extra space or byte-order-mark) on the very first
  6999. line of the script.
  7000. </p>
  7001. </dd>
  7002. <dt>&lsquo;<samp><code>duration <var>dur</var></code></samp>&rsquo;</dt>
  7003. <dd><p>Duration of the file. This information can be specified from the file;
  7004. specifying it here may be more efficient or help if the information from the
  7005. file is not available or accurate.
  7006. </p>
  7007. <p>If the duration is set for all files, then it is possible to seek in the
  7008. whole concatenated video.
  7009. </p>
  7010. </dd>
  7011. <dt>&lsquo;<samp><code>inpoint <var>timestamp</var></code></samp>&rsquo;</dt>
  7012. <dd><p>In point of the file. When the demuxer opens the file it instantly seeks to the
  7013. specified timestamp. Seeking is done so that all streams can be presented
  7014. successfully at In point.
  7015. </p>
  7016. <p>This directive works best with intra frame codecs, because for non-intra frame
  7017. ones you will usually get extra packets before the actual In point and the
  7018. decoded content will most likely contain frames before In point too.
  7019. </p>
  7020. <p>For each file, packets before the file In point will have timestamps less than
  7021. the calculated start timestamp of the file (negative in case of the first
  7022. file), and the duration of the files (if not specified by the <code>duration</code>
  7023. directive) will be reduced based on their specified In point.
  7024. </p>
  7025. <p>Because of potential packets before the specified In point, packet timestamps
  7026. may overlap between two concatenated files.
  7027. </p>
  7028. </dd>
  7029. <dt>&lsquo;<samp><code>outpoint <var>timestamp</var></code></samp>&rsquo;</dt>
  7030. <dd><p>Out point of the file. When the demuxer reaches the specified decoding
  7031. timestamp in any of the streams, it handles it as an end of file condition and
  7032. skips the current and all the remaining packets from all streams.
  7033. </p>
  7034. <p>Out point is exclusive, which means that the demuxer will not output packets
  7035. with a decoding timestamp greater or equal to Out point.
  7036. </p>
  7037. <p>This directive works best with intra frame codecs and formats where all streams
  7038. are tightly interleaved. For non-intra frame codecs you will usually get
  7039. additional packets with presentation timestamp after Out point therefore the
  7040. decoded content will most likely contain frames after Out point too. If your
  7041. streams are not tightly interleaved you may not get all the packets from all
  7042. streams before Out point and you may only will be able to decode the earliest
  7043. stream until Out point.
  7044. </p>
  7045. <p>The duration of the files (if not specified by the <code>duration</code>
  7046. directive) will be reduced based on their specified Out point.
  7047. </p>
  7048. </dd>
  7049. <dt>&lsquo;<samp><code>file_packet_metadata <var>key=value</var></code></samp>&rsquo;</dt>
  7050. <dd><p>Metadata of the packets of the file. The specified metadata will be set for
  7051. each file packet. You can specify this directive multiple times to add multiple
  7052. metadata entries.
  7053. </p>
  7054. </dd>
  7055. <dt>&lsquo;<samp><code>stream</code></samp>&rsquo;</dt>
  7056. <dd><p>Introduce a stream in the virtual file.
  7057. All subsequent stream-related directives apply to the last introduced
  7058. stream.
  7059. Some streams properties must be set in order to allow identifying the
  7060. matching streams in the subfiles.
  7061. If no streams are defined in the script, the streams from the first file are
  7062. copied.
  7063. </p>
  7064. </dd>
  7065. <dt>&lsquo;<samp><code>exact_stream_id <var>id</var></code></samp>&rsquo;</dt>
  7066. <dd><p>Set the id of the stream.
  7067. If this directive is given, the string with the corresponding id in the
  7068. subfiles will be used.
  7069. This is especially useful for MPEG-PS (VOB) files, where the order of the
  7070. streams is not reliable.
  7071. </p>
  7072. </dd>
  7073. </dl>
  7074. <a name="Options-25"></a>
  7075. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-25">15.4.2 Options</a></h3>
  7076. <p>This demuxer accepts the following option:
  7077. </p>
  7078. <dl compact="compact">
  7079. <dt>&lsquo;<samp>safe</samp>&rsquo;</dt>
  7080. <dd><p>If set to 1, reject unsafe file paths. A file path is considered safe if it
  7081. does not contain a protocol specification and is relative and all components
  7082. only contain characters from the portable character set (letters, digits,
  7083. period, underscore and hyphen) and have no period at the beginning of a
  7084. component.
  7085. </p>
  7086. <p>If set to 0, any file name is accepted.
  7087. </p>
  7088. <p>The default is 1.
  7089. </p>
  7090. <p>-1 is equivalent to 1 if the format was automatically
  7091. probed and 0 otherwise.
  7092. </p>
  7093. </dd>
  7094. <dt>&lsquo;<samp>auto_convert</samp>&rsquo;</dt>
  7095. <dd><p>If set to 1, try to perform automatic conversions on packet data to make the
  7096. streams concatenable.
  7097. The default is 1.
  7098. </p>
  7099. <p>Currently, the only conversion is adding the h264_mp4toannexb bitstream
  7100. filter to H.264 streams in MP4 format. This is necessary in particular if
  7101. there are resolution changes.
  7102. </p>
  7103. </dd>
  7104. <dt>&lsquo;<samp>segment_time_metadata</samp>&rsquo;</dt>
  7105. <dd><p>If set to 1, every packet will contain the <var>lavf.concat.start_time</var> and the
  7106. <var>lavf.concat.duration</var> packet metadata values which are the start_time and
  7107. the duration of the respective file segments in the concatenated output
  7108. expressed in microseconds. The duration metadata is only set if it is known
  7109. based on the concat file.
  7110. The default is 0.
  7111. </p>
  7112. </dd>
  7113. </dl>
  7114. <a name="Examples-25"></a>
  7115. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-25">15.4.3 Examples</a></h3>
  7116. <ul>
  7117. <li>
  7118. Use absolute filenames and include some comments:
  7119. <div class="example">
  7120. <pre class="example"># my first filename
  7121. file /mnt/share/file-1.wav
  7122. # my second filename including whitespace
  7123. file '/mnt/share/file 2.wav'
  7124. # my third filename including whitespace plus single quote
  7125. file '/mnt/share/file 3'\''.wav'
  7126. </pre></div>
  7127. </li><li>
  7128. Allow for input format auto-probing, use safe filenames and set the duration of
  7129. the first file:
  7130. <div class="example">
  7131. <pre class="example">ffconcat version 1.0
  7132. file file-1.wav
  7133. duration 20.0
  7134. file subdir/file-2.wav
  7135. </pre></div>
  7136. </li></ul>
  7137. <a name="dash"></a>
  7138. <h2 class="section"><a href="ffprobe-all.html#toc-dash">15.5 dash</a></h2>
  7139. <p>Dynamic Adaptive Streaming over HTTP demuxer.
  7140. </p>
  7141. <p>This demuxer presents all AVStreams found in the manifest.
  7142. By setting the discard flags on AVStreams the caller can decide
  7143. which streams to actually receive.
  7144. Each stream mirrors the <code>id</code> and <code>bandwidth</code> properties from the
  7145. <code>&lt;Representation&gt;</code> as metadata keys named &quot;id&quot; and &quot;variant_bitrate&quot; respectively.
  7146. </p>
  7147. <a name="flv_002c-live_005fflv"></a>
  7148. <h2 class="section"><a href="ffprobe-all.html#toc-flv_002c-live_005fflv">15.6 flv, live_flv</a></h2>
  7149. <p>Adobe Flash Video Format demuxer.
  7150. </p>
  7151. <p>This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities.
  7152. </p>
  7153. <div class="example">
  7154. <pre class="example">ffmpeg -f flv -i myfile.flv ...
  7155. ffmpeg -f live_flv -i rtmp://&lt;any.server&gt;/anything/key ....
  7156. </pre></div>
  7157. <dl compact="compact">
  7158. <dt>&lsquo;<samp>-flv_metadata <var>bool</var></samp>&rsquo;</dt>
  7159. <dd><p>Allocate the streams according to the onMetaData array content.
  7160. </p>
  7161. </dd>
  7162. <dt>&lsquo;<samp>-flv_ignore_prevtag <var>bool</var></samp>&rsquo;</dt>
  7163. <dd><p>Ignore the size of previous tag value.
  7164. </p>
  7165. </dd>
  7166. <dt>&lsquo;<samp>-flv_full_metadata <var>bool</var></samp>&rsquo;</dt>
  7167. <dd><p>Output all context of the onMetadata.
  7168. </p></dd>
  7169. </dl>
  7170. <a name="gif"></a>
  7171. <h2 class="section"><a href="ffprobe-all.html#toc-gif">15.7 gif</a></h2>
  7172. <p>Animated GIF demuxer.
  7173. </p>
  7174. <p>It accepts the following options:
  7175. </p>
  7176. <dl compact="compact">
  7177. <dt>&lsquo;<samp>min_delay</samp>&rsquo;</dt>
  7178. <dd><p>Set the minimum valid delay between frames in hundredths of seconds.
  7179. Range is 0 to 6000. Default value is 2.
  7180. </p>
  7181. </dd>
  7182. <dt>&lsquo;<samp>max_gif_delay</samp>&rsquo;</dt>
  7183. <dd><p>Set the maximum valid delay between frames in hundredth of seconds.
  7184. Range is 0 to 65535. Default value is 65535 (nearly eleven minutes),
  7185. the maximum value allowed by the specification.
  7186. </p>
  7187. </dd>
  7188. <dt>&lsquo;<samp>default_delay</samp>&rsquo;</dt>
  7189. <dd><p>Set the default delay between frames in hundredths of seconds.
  7190. Range is 0 to 6000. Default value is 10.
  7191. </p>
  7192. </dd>
  7193. <dt>&lsquo;<samp>ignore_loop</samp>&rsquo;</dt>
  7194. <dd><p>GIF files can contain information to loop a certain number of times (or
  7195. infinitely). If &lsquo;<samp>ignore_loop</samp>&rsquo; is set to 1, then the loop setting
  7196. from the input will be ignored and looping will not occur. If set to 0,
  7197. then looping will occur and will cycle the number of times according to
  7198. the GIF. Default value is 1.
  7199. </p></dd>
  7200. </dl>
  7201. <p>For example, with the overlay filter, place an infinitely looping GIF
  7202. over another video:
  7203. </p><div class="example">
  7204. <pre class="example">ffmpeg -i input.mp4 -ignore_loop 0 -i input.gif -filter_complex overlay=shortest=1 out.mkv
  7205. </pre></div>
  7206. <p>Note that in the above example the shortest option for overlay filter is
  7207. used to end the output video at the length of the shortest input file,
  7208. which in this case is &lsquo;<tt>input.mp4</tt>&rsquo; as the GIF in this example loops
  7209. infinitely.
  7210. </p>
  7211. <a name="hls"></a>
  7212. <h2 class="section"><a href="ffprobe-all.html#toc-hls">15.8 hls</a></h2>
  7213. <p>HLS demuxer
  7214. </p>
  7215. <p>Apple HTTP Live Streaming demuxer.
  7216. </p>
  7217. <p>This demuxer presents all AVStreams from all variant streams.
  7218. The id field is set to the bitrate variant index number. By setting
  7219. the discard flags on AVStreams (by pressing &rsquo;a&rsquo; or &rsquo;v&rsquo; in ffplay),
  7220. the caller can decide which variant streams to actually receive.
  7221. The total bitrate of the variant that the stream belongs to is
  7222. available in a metadata key named &quot;variant_bitrate&quot;.
  7223. </p>
  7224. <p>It accepts the following options:
  7225. </p>
  7226. <dl compact="compact">
  7227. <dt>&lsquo;<samp>live_start_index</samp>&rsquo;</dt>
  7228. <dd><p>segment index to start live streams at (negative values are from the end).
  7229. </p>
  7230. </dd>
  7231. <dt>&lsquo;<samp>allowed_extensions</samp>&rsquo;</dt>
  7232. <dd><p>&rsquo;,&rsquo; separated list of file extensions that hls is allowed to access.
  7233. </p>
  7234. </dd>
  7235. <dt>&lsquo;<samp>max_reload</samp>&rsquo;</dt>
  7236. <dd><p>Maximum number of times a insufficient list is attempted to be reloaded.
  7237. Default value is 1000.
  7238. </p>
  7239. </dd>
  7240. <dt>&lsquo;<samp>m3u8_hold_counters</samp>&rsquo;</dt>
  7241. <dd><p>The maximum number of times to load m3u8 when it refreshes without new segments.
  7242. Default value is 1000.
  7243. </p>
  7244. </dd>
  7245. <dt>&lsquo;<samp>http_persistent</samp>&rsquo;</dt>
  7246. <dd><p>Use persistent HTTP connections. Applicable only for HTTP streams.
  7247. Enabled by default.
  7248. </p>
  7249. </dd>
  7250. <dt>&lsquo;<samp>http_multiple</samp>&rsquo;</dt>
  7251. <dd><p>Use multiple HTTP connections for downloading HTTP segments.
  7252. Enabled by default for HTTP/1.1 servers.
  7253. </p>
  7254. </dd>
  7255. <dt>&lsquo;<samp>http_seekable</samp>&rsquo;</dt>
  7256. <dd><p>Use HTTP partial requests for downloading HTTP segments.
  7257. 0 = disable, 1 = enable, -1 = auto, Default is auto.
  7258. </p></dd>
  7259. </dl>
  7260. <a name="image2"></a>
  7261. <h2 class="section"><a href="ffprobe-all.html#toc-image2">15.9 image2</a></h2>
  7262. <p>Image file demuxer.
  7263. </p>
  7264. <p>This demuxer reads from a list of image files specified by a pattern.
  7265. The syntax and meaning of the pattern is specified by the
  7266. option <var>pattern_type</var>.
  7267. </p>
  7268. <p>The pattern may contain a suffix which is used to automatically
  7269. determine the format of the images contained in the files.
  7270. </p>
  7271. <p>The size, the pixel format, and the format of each image must be the
  7272. same for all the files in the sequence.
  7273. </p>
  7274. <p>This demuxer accepts the following options:
  7275. </p><dl compact="compact">
  7276. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  7277. <dd><p>Set the frame rate for the video stream. It defaults to 25.
  7278. </p></dd>
  7279. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  7280. <dd><p>If set to 1, loop over the input. Default value is 0.
  7281. </p></dd>
  7282. <dt>&lsquo;<samp>pattern_type</samp>&rsquo;</dt>
  7283. <dd><p>Select the pattern type used to interpret the provided filename.
  7284. </p>
  7285. <p><var>pattern_type</var> accepts one of the following values.
  7286. </p><dl compact="compact">
  7287. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  7288. <dd><p>Disable pattern matching, therefore the video will only contain the specified
  7289. image. You should use this option if you do not want to create sequences from
  7290. multiple images and your filenames may contain special pattern characters.
  7291. </p></dd>
  7292. <dt>&lsquo;<samp>sequence</samp>&rsquo;</dt>
  7293. <dd><p>Select a sequence pattern type, used to specify a sequence of files
  7294. indexed by sequential numbers.
  7295. </p>
  7296. <p>A sequence pattern may contain the string &quot;%d&quot; or &quot;%0<var>N</var>d&quot;, which
  7297. specifies the position of the characters representing a sequential
  7298. number in each filename matched by the pattern. If the form
  7299. &quot;%d0<var>N</var>d&quot; is used, the string representing the number in each
  7300. filename is 0-padded and <var>N</var> is the total number of 0-padded
  7301. digits representing the number. The literal character &rsquo;%&rsquo; can be
  7302. specified in the pattern with the string &quot;%%&quot;.
  7303. </p>
  7304. <p>If the sequence pattern contains &quot;%d&quot; or &quot;%0<var>N</var>d&quot;, the first filename of
  7305. the file list specified by the pattern must contain a number
  7306. inclusively contained between <var>start_number</var> and
  7307. <var>start_number</var>+<var>start_number_range</var>-1, and all the following
  7308. numbers must be sequential.
  7309. </p>
  7310. <p>For example the pattern &quot;img-%03d.bmp&quot; will match a sequence of
  7311. filenames of the form &lsquo;<tt>img-001.bmp</tt>&rsquo;, &lsquo;<tt>img-002.bmp</tt>&rsquo;, ...,
  7312. &lsquo;<tt>img-010.bmp</tt>&rsquo;, etc.; the pattern &quot;i%%m%%g-%d.jpg&quot; will match a
  7313. sequence of filenames of the form &lsquo;<tt>i%m%g-1.jpg</tt>&rsquo;,
  7314. &lsquo;<tt>i%m%g-2.jpg</tt>&rsquo;, ..., &lsquo;<tt>i%m%g-10.jpg</tt>&rsquo;, etc.
  7315. </p>
  7316. <p>Note that the pattern must not necessarily contain &quot;%d&quot; or
  7317. &quot;%0<var>N</var>d&quot;, for example to convert a single image file
  7318. &lsquo;<tt>img.jpeg</tt>&rsquo; you can employ the command:
  7319. </p><div class="example">
  7320. <pre class="example">ffmpeg -i img.jpeg img.png
  7321. </pre></div>
  7322. </dd>
  7323. <dt>&lsquo;<samp>glob</samp>&rsquo;</dt>
  7324. <dd><p>Select a glob wildcard pattern type.
  7325. </p>
  7326. <p>The pattern is interpreted like a <code>glob()</code> pattern. This is only
  7327. selectable if libavformat was compiled with globbing support.
  7328. </p>
  7329. </dd>
  7330. <dt>&lsquo;<samp>glob_sequence <em>(deprecated, will be removed)</em></samp>&rsquo;</dt>
  7331. <dd><p>Select a mixed glob wildcard/sequence pattern.
  7332. </p>
  7333. <p>If your version of libavformat was compiled with globbing support, and
  7334. the provided pattern contains at least one glob meta character among
  7335. <code>%*?[]{}</code> that is preceded by an unescaped &quot;%&quot;, the pattern is
  7336. interpreted like a <code>glob()</code> pattern, otherwise it is interpreted
  7337. like a sequence pattern.
  7338. </p>
  7339. <p>All glob special characters <code>%*?[]{}</code> must be prefixed
  7340. with &quot;%&quot;. To escape a literal &quot;%&quot; you shall use &quot;%%&quot;.
  7341. </p>
  7342. <p>For example the pattern <code>foo-%*.jpeg</code> will match all the
  7343. filenames prefixed by &quot;foo-&quot; and terminating with &quot;.jpeg&quot;, and
  7344. <code>foo-%?%?%?.jpeg</code> will match all the filenames prefixed with
  7345. &quot;foo-&quot;, followed by a sequence of three characters, and terminating
  7346. with &quot;.jpeg&quot;.
  7347. </p>
  7348. <p>This pattern type is deprecated in favor of <var>glob</var> and
  7349. <var>sequence</var>.
  7350. </p></dd>
  7351. </dl>
  7352. <p>Default value is <var>glob_sequence</var>.
  7353. </p></dd>
  7354. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  7355. <dd><p>Set the pixel format of the images to read. If not specified the pixel
  7356. format is guessed from the first image file in the sequence.
  7357. </p></dd>
  7358. <dt>&lsquo;<samp>start_number</samp>&rsquo;</dt>
  7359. <dd><p>Set the index of the file matched by the image file pattern to start
  7360. to read from. Default value is 0.
  7361. </p></dd>
  7362. <dt>&lsquo;<samp>start_number_range</samp>&rsquo;</dt>
  7363. <dd><p>Set the index interval range to check when looking for the first image
  7364. file in the sequence, starting from <var>start_number</var>. Default value
  7365. is 5.
  7366. </p></dd>
  7367. <dt>&lsquo;<samp>ts_from_file</samp>&rsquo;</dt>
  7368. <dd><p>If set to 1, will set frame timestamp to modification time of image file. Note
  7369. that monotonity of timestamps is not provided: images go in the same order as
  7370. without this option. Default value is 0.
  7371. If set to 2, will set frame timestamp to the modification time of the image file in
  7372. nanosecond precision.
  7373. </p></dd>
  7374. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  7375. <dd><p>Set the video size of the images to read. If not specified the video
  7376. size is guessed from the first image file in the sequence.
  7377. </p></dd>
  7378. <dt>&lsquo;<samp>export_path_metadata</samp>&rsquo;</dt>
  7379. <dd><p>If set to 1, will add two extra fields to the metadata found in input, making them
  7380. also available for other filters (see <var>drawtext</var> filter for examples). Default
  7381. value is 0. The extra fields are described below:
  7382. </p><dl compact="compact">
  7383. <dt>&lsquo;<samp>lavf.image2dec.source_path</samp>&rsquo;</dt>
  7384. <dd><p>Corresponds to the full path to the input file being read.
  7385. </p></dd>
  7386. <dt>&lsquo;<samp>lavf.image2dec.source_basename</samp>&rsquo;</dt>
  7387. <dd><p>Corresponds to the name of the file being read.
  7388. </p></dd>
  7389. </dl>
  7390. </dd>
  7391. </dl>
  7392. <a name="Examples-24"></a>
  7393. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-24">15.9.1 Examples</a></h3>
  7394. <ul>
  7395. <li>
  7396. Use <code>ffmpeg</code> for creating a video from the images in the file
  7397. sequence &lsquo;<tt>img-001.jpeg</tt>&rsquo;, &lsquo;<tt>img-002.jpeg</tt>&rsquo;, ..., assuming an
  7398. input frame rate of 10 frames per second:
  7399. <div class="example">
  7400. <pre class="example">ffmpeg -framerate 10 -i 'img-%03d.jpeg' out.mkv
  7401. </pre></div>
  7402. </li><li>
  7403. As above, but start by reading from a file with index 100 in the sequence:
  7404. <div class="example">
  7405. <pre class="example">ffmpeg -framerate 10 -start_number 100 -i 'img-%03d.jpeg' out.mkv
  7406. </pre></div>
  7407. </li><li>
  7408. Read images matching the &quot;*.png&quot; glob pattern , that is all the files
  7409. terminating with the &quot;.png&quot; suffix:
  7410. <div class="example">
  7411. <pre class="example">ffmpeg -framerate 10 -pattern_type glob -i &quot;*.png&quot; out.mkv
  7412. </pre></div>
  7413. </li></ul>
  7414. <a name="libgme"></a>
  7415. <h2 class="section"><a href="ffprobe-all.html#toc-libgme">15.10 libgme</a></h2>
  7416. <p>The Game Music Emu library is a collection of video game music file emulators.
  7417. </p>
  7418. <p>See <a href="https://bitbucket.org/mpyne/game-music-emu/overview">https://bitbucket.org/mpyne/game-music-emu/overview</a> for more information.
  7419. </p>
  7420. <p>It accepts the following options:
  7421. </p>
  7422. <dl compact="compact">
  7423. <dt>&lsquo;<samp>track_index</samp>&rsquo;</dt>
  7424. <dd><p>Set the index of which track to demux. The demuxer can only export one track.
  7425. Track indexes start at 0. Default is to pick the first track. Number of tracks
  7426. is exported as <var>tracks</var> metadata entry.
  7427. </p>
  7428. </dd>
  7429. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  7430. <dd><p>Set the sampling rate of the exported track. Range is 1000 to 999999. Default is 44100.
  7431. </p>
  7432. </dd>
  7433. <dt>&lsquo;<samp>max_size <em>(bytes)</em></samp>&rsquo;</dt>
  7434. <dd><p>The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
  7435. which in turn, acts as a ceiling for the size of files that can be read.
  7436. Default is 50 MiB.
  7437. </p>
  7438. </dd>
  7439. </dl>
  7440. <a name="libmodplug"></a>
  7441. <h2 class="section"><a href="ffprobe-all.html#toc-libmodplug">15.11 libmodplug</a></h2>
  7442. <p>ModPlug based module demuxer
  7443. </p>
  7444. <p>See <a href="https://github.com/Konstanty/libmodplug">https://github.com/Konstanty/libmodplug</a>
  7445. </p>
  7446. <p>It will export one 2-channel 16-bit 44.1 kHz audio stream.
  7447. Optionally, a <code>pal8</code> 16-color video stream can be exported with or without printed metadata.
  7448. </p>
  7449. <p>It accepts the following options:
  7450. </p>
  7451. <dl compact="compact">
  7452. <dt>&lsquo;<samp>noise_reduction</samp>&rsquo;</dt>
  7453. <dd><p>Apply a simple low-pass filter. Can be 1 (on) or 0 (off). Default is 0.
  7454. </p>
  7455. </dd>
  7456. <dt>&lsquo;<samp>reverb_depth</samp>&rsquo;</dt>
  7457. <dd><p>Set amount of reverb. Range 0-100. Default is 0.
  7458. </p>
  7459. </dd>
  7460. <dt>&lsquo;<samp>reverb_delay</samp>&rsquo;</dt>
  7461. <dd><p>Set delay in ms, clamped to 40-250 ms. Default is 0.
  7462. </p>
  7463. </dd>
  7464. <dt>&lsquo;<samp>bass_amount</samp>&rsquo;</dt>
  7465. <dd><p>Apply bass expansion a.k.a. XBass or megabass. Range is 0 (quiet) to 100 (loud). Default is 0.
  7466. </p>
  7467. </dd>
  7468. <dt>&lsquo;<samp>bass_range</samp>&rsquo;</dt>
  7469. <dd><p>Set cutoff i.e. upper-bound for bass frequencies. Range is 10-100 Hz. Default is 0.
  7470. </p>
  7471. </dd>
  7472. <dt>&lsquo;<samp>surround_depth</samp>&rsquo;</dt>
  7473. <dd><p>Apply a Dolby Pro-Logic surround effect. Range is 0 (quiet) to 100 (heavy). Default is 0.
  7474. </p>
  7475. </dd>
  7476. <dt>&lsquo;<samp>surround_delay</samp>&rsquo;</dt>
  7477. <dd><p>Set surround delay in ms, clamped to 5-40 ms. Default is 0.
  7478. </p>
  7479. </dd>
  7480. <dt>&lsquo;<samp>max_size</samp>&rsquo;</dt>
  7481. <dd><p>The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
  7482. which in turn, acts as a ceiling for the size of files that can be read. Range is 0 to 100 MiB.
  7483. 0 removes buffer size limit (not recommended). Default is 5 MiB.
  7484. </p>
  7485. </dd>
  7486. <dt>&lsquo;<samp>video_stream_expr</samp>&rsquo;</dt>
  7487. <dd><p>String which is evaluated using the eval API to assign colors to the generated video stream.
  7488. Variables which can be used are <code>x</code>, <code>y</code>, <code>w</code>, <code>h</code>, <code>t</code>, <code>speed</code>,
  7489. <code>tempo</code>, <code>order</code>, <code>pattern</code> and <code>row</code>.
  7490. </p>
  7491. </dd>
  7492. <dt>&lsquo;<samp>video_stream</samp>&rsquo;</dt>
  7493. <dd><p>Generate video stream. Can be 1 (on) or 0 (off). Default is 0.
  7494. </p>
  7495. </dd>
  7496. <dt>&lsquo;<samp>video_stream_w</samp>&rsquo;</dt>
  7497. <dd><p>Set video frame width in &rsquo;chars&rsquo; where one char indicates 8 pixels. Range is 20-512. Default is 30.
  7498. </p>
  7499. </dd>
  7500. <dt>&lsquo;<samp>video_stream_h</samp>&rsquo;</dt>
  7501. <dd><p>Set video frame height in &rsquo;chars&rsquo; where one char indicates 8 pixels. Range is 20-512. Default is 30.
  7502. </p>
  7503. </dd>
  7504. <dt>&lsquo;<samp>video_stream_ptxt</samp>&rsquo;</dt>
  7505. <dd><p>Print metadata on video stream. Includes <code>speed</code>, <code>tempo</code>, <code>order</code>, <code>pattern</code>,
  7506. <code>row</code> and <code>ts</code> (time in ms). Can be 1 (on) or 0 (off). Default is 1.
  7507. </p>
  7508. </dd>
  7509. </dl>
  7510. <a name="libopenmpt"></a>
  7511. <h2 class="section"><a href="ffprobe-all.html#toc-libopenmpt">15.12 libopenmpt</a></h2>
  7512. <p>libopenmpt based module demuxer
  7513. </p>
  7514. <p>See <a href="https://lib.openmpt.org/libopenmpt/">https://lib.openmpt.org/libopenmpt/</a> for more information.
  7515. </p>
  7516. <p>Some files have multiple subsongs (tracks) this can be set with the &lsquo;<samp>subsong</samp>&rsquo;
  7517. option.
  7518. </p>
  7519. <p>It accepts the following options:
  7520. </p>
  7521. <dl compact="compact">
  7522. <dt>&lsquo;<samp>subsong</samp>&rsquo;</dt>
  7523. <dd><p>Set the subsong index. This can be either &rsquo;all&rsquo;, &rsquo;auto&rsquo;, or the index of the
  7524. subsong. Subsong indexes start at 0. The default is &rsquo;auto&rsquo;.
  7525. </p>
  7526. <p>The default value is to let libopenmpt choose.
  7527. </p>
  7528. </dd>
  7529. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  7530. <dd><p>Set the channel layout. Valid values are 1, 2, and 4 channel layouts.
  7531. The default value is STEREO.
  7532. </p>
  7533. </dd>
  7534. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  7535. <dd><p>Set the sample rate for libopenmpt to output.
  7536. Range is from 1000 to INT_MAX. The value default is 48000.
  7537. </p></dd>
  7538. </dl>
  7539. <a name="mov_002fmp4_002f3gp"></a>
  7540. <h2 class="section"><a href="ffprobe-all.html#toc-mov_002fmp4_002f3gp">15.13 mov/mp4/3gp</a></h2>
  7541. <p>Demuxer for Quicktime File Format &amp; ISO/IEC Base Media File Format (ISO/IEC 14496-12 or MPEG-4 Part 12, ISO/IEC 15444-12 or JPEG 2000 Part 12).
  7542. </p>
  7543. <p>Registered extensions: mov, mp4, m4a, 3gp, 3g2, mj2, psp, m4b, ism, ismv, isma, f4v
  7544. </p>
  7545. <a name="Options-22"></a>
  7546. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-22">15.13.1 Options</a></h3>
  7547. <p>This demuxer accepts the following options:
  7548. </p><dl compact="compact">
  7549. <dt>&lsquo;<samp>enable_drefs</samp>&rsquo;</dt>
  7550. <dd><p>Enable loading of external tracks, disabled by default.
  7551. Enabling this can theoretically leak information in some use cases.
  7552. </p>
  7553. </dd>
  7554. <dt>&lsquo;<samp>use_absolute_path</samp>&rsquo;</dt>
  7555. <dd><p>Allows loading of external tracks via absolute paths, disabled by default.
  7556. Enabling this poses a security risk. It should only be enabled if the source
  7557. is known to be non-malicious.
  7558. </p>
  7559. </dd>
  7560. <dt>&lsquo;<samp>seek_streams_individually</samp>&rsquo;</dt>
  7561. <dd><p>When seeking, identify the closest point in each stream individually and demux packets in
  7562. that stream from identified point. This can lead to a different sequence of packets compared
  7563. to demuxing linearly from the beginning. Default is true.
  7564. </p>
  7565. </dd>
  7566. <dt>&lsquo;<samp>ignore_editlist</samp>&rsquo;</dt>
  7567. <dd><p>Ignore any edit list atoms. The demuxer, by default, modifies the stream index to reflect the
  7568. timeline described by the edit list. Default is false.
  7569. </p>
  7570. </dd>
  7571. <dt>&lsquo;<samp>advanced_editlist</samp>&rsquo;</dt>
  7572. <dd><p>Modify the stream index to reflect the timeline described by the edit list. <code>ignore_editlist</code>
  7573. must be set to false for this option to be effective.
  7574. If both <code>ignore_editlist</code> and this option are set to false, then only the
  7575. start of the stream index is modified to reflect initial dwell time or starting timestamp
  7576. described by the edit list. Default is true.
  7577. </p>
  7578. </dd>
  7579. <dt>&lsquo;<samp>ignore_chapters</samp>&rsquo;</dt>
  7580. <dd><p>Don&rsquo;t parse chapters. This includes GoPro &rsquo;HiLight&rsquo; tags/moments. Note that chapters are
  7581. only parsed when input is seekable. Default is false.
  7582. </p>
  7583. </dd>
  7584. <dt>&lsquo;<samp>use_mfra_for</samp>&rsquo;</dt>
  7585. <dd><p>For seekable fragmented input, set fragment&rsquo;s starting timestamp from media fragment random access box, if present.
  7586. </p>
  7587. <p>Following options are available:
  7588. </p><dl compact="compact">
  7589. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  7590. <dd><p>Auto-detect whether to set mfra timestamps as PTS or DTS <em>(default)</em>
  7591. </p>
  7592. </dd>
  7593. <dt>&lsquo;<samp>dts</samp>&rsquo;</dt>
  7594. <dd><p>Set mfra timestamps as DTS
  7595. </p>
  7596. </dd>
  7597. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  7598. <dd><p>Set mfra timestamps as PTS
  7599. </p>
  7600. </dd>
  7601. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  7602. <dd><p>Don&rsquo;t use mfra box to set timestamps
  7603. </p></dd>
  7604. </dl>
  7605. </dd>
  7606. <dt>&lsquo;<samp>export_all</samp>&rsquo;</dt>
  7607. <dd><p>Export unrecognized boxes within the <var>udta</var> box as metadata entries. The first four
  7608. characters of the box type are set as the key. Default is false.
  7609. </p>
  7610. </dd>
  7611. <dt>&lsquo;<samp>export_xmp</samp>&rsquo;</dt>
  7612. <dd><p>Export entire contents of <var>XMP_</var> box and <var>uuid</var> box as a string with key <code>xmp</code>. Note that
  7613. if <code>export_all</code> is set and this option isn&rsquo;t, the contents of <var>XMP_</var> box are still exported
  7614. but with key <code>XMP_</code>. Default is false.
  7615. </p>
  7616. </dd>
  7617. <dt>&lsquo;<samp>activation_bytes</samp>&rsquo;</dt>
  7618. <dd><p>4-byte key required to decrypt Audible AAX and AAX+ files. See Audible AAX subsection below.
  7619. </p>
  7620. </dd>
  7621. <dt>&lsquo;<samp>audible_fixed_key</samp>&rsquo;</dt>
  7622. <dd><p>Fixed key used for handling Audible AAX/AAX+ files. It has been pre-set so should not be necessary to
  7623. specify.
  7624. </p>
  7625. </dd>
  7626. <dt>&lsquo;<samp>decryption_key</samp>&rsquo;</dt>
  7627. <dd><p>16-byte key, in hex, to decrypt files encrypted using ISO Common Encryption (CENC/AES-128 CTR; ISO/IEC 23001-7).
  7628. </p></dd>
  7629. </dl>
  7630. <a name="Audible-AAX"></a>
  7631. <h3 class="subsection"><a href="ffprobe-all.html#toc-Audible-AAX">15.13.2 Audible AAX</a></h3>
  7632. <p>Audible AAX files are encrypted M4B files, and they can be decrypted by specifying a 4 byte activation secret.
  7633. </p><div class="example">
  7634. <pre class="example">ffmpeg -activation_bytes 1CEB00DA -i test.aax -vn -c:a copy output.mp4
  7635. </pre></div>
  7636. <a name="mpegts"></a>
  7637. <h2 class="section"><a href="ffprobe-all.html#toc-mpegts">15.14 mpegts</a></h2>
  7638. <p>MPEG-2 transport stream demuxer.
  7639. </p>
  7640. <p>This demuxer accepts the following options:
  7641. </p><dl compact="compact">
  7642. <dt>&lsquo;<samp>resync_size</samp>&rsquo;</dt>
  7643. <dd><p>Set size limit for looking up a new synchronization. Default value is
  7644. 65536.
  7645. </p>
  7646. </dd>
  7647. <dt>&lsquo;<samp>skip_unknown_pmt</samp>&rsquo;</dt>
  7648. <dd><p>Skip PMTs for programs not defined in the PAT. Default value is 0.
  7649. </p>
  7650. </dd>
  7651. <dt>&lsquo;<samp>fix_teletext_pts</samp>&rsquo;</dt>
  7652. <dd><p>Override teletext packet PTS and DTS values with the timestamps calculated
  7653. from the PCR of the first program which the teletext stream is part of and is
  7654. not discarded. Default value is 1, set this option to 0 if you want your
  7655. teletext packet PTS and DTS values untouched.
  7656. </p>
  7657. </dd>
  7658. <dt>&lsquo;<samp>ts_packetsize</samp>&rsquo;</dt>
  7659. <dd><p>Output option carrying the raw packet size in bytes.
  7660. Show the detected raw packet size, cannot be set by the user.
  7661. </p>
  7662. </dd>
  7663. <dt>&lsquo;<samp>scan_all_pmts</samp>&rsquo;</dt>
  7664. <dd><p>Scan and combine all PMTs. The value is an integer with value from -1
  7665. to 1 (-1 means automatic setting, 1 means enabled, 0 means
  7666. disabled). Default value is -1.
  7667. </p>
  7668. </dd>
  7669. <dt>&lsquo;<samp>merge_pmt_versions</samp>&rsquo;</dt>
  7670. <dd><p>Re-use existing streams when a PMT&rsquo;s version is updated and elementary
  7671. streams move to different PIDs. Default value is 0.
  7672. </p></dd>
  7673. </dl>
  7674. <a name="mpjpeg"></a>
  7675. <h2 class="section"><a href="ffprobe-all.html#toc-mpjpeg">15.15 mpjpeg</a></h2>
  7676. <p>MJPEG encapsulated in multi-part MIME demuxer.
  7677. </p>
  7678. <p>This demuxer allows reading of MJPEG, where each frame is represented as a part of
  7679. multipart/x-mixed-replace stream.
  7680. </p><dl compact="compact">
  7681. <dt>&lsquo;<samp>strict_mime_boundary</samp>&rsquo;</dt>
  7682. <dd><p>Default implementation applies a relaxed standard to multi-part MIME boundary detection,
  7683. to prevent regression with numerous existing endpoints not generating a proper MIME
  7684. MJPEG stream. Turning this option on by setting it to 1 will result in a stricter check
  7685. of the boundary value.
  7686. </p></dd>
  7687. </dl>
  7688. <a name="rawvideo-1"></a>
  7689. <h2 class="section"><a href="ffprobe-all.html#toc-rawvideo-1">15.16 rawvideo</a></h2>
  7690. <p>Raw video demuxer.
  7691. </p>
  7692. <p>This demuxer allows one to read raw video data. Since there is no header
  7693. specifying the assumed video parameters, the user must specify them
  7694. in order to be able to decode the data correctly.
  7695. </p>
  7696. <p>This demuxer accepts the following options:
  7697. </p><dl compact="compact">
  7698. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  7699. <dd><p>Set input video frame rate. Default value is 25.
  7700. </p>
  7701. </dd>
  7702. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  7703. <dd><p>Set the input video pixel format. Default value is <code>yuv420p</code>.
  7704. </p>
  7705. </dd>
  7706. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  7707. <dd><p>Set the input video size. This value must be specified explicitly.
  7708. </p></dd>
  7709. </dl>
  7710. <p>For example to read a rawvideo file &lsquo;<tt>input.raw</tt>&rsquo; with
  7711. <code>ffplay</code>, assuming a pixel format of <code>rgb24</code>, a video
  7712. size of <code>320x240</code>, and a frame rate of 10 images per second, use
  7713. the command:
  7714. </p><div class="example">
  7715. <pre class="example">ffplay -f rawvideo -pixel_format rgb24 -video_size 320x240 -framerate 10 input.raw
  7716. </pre></div>
  7717. <a name="sbg"></a>
  7718. <h2 class="section"><a href="ffprobe-all.html#toc-sbg">15.17 sbg</a></h2>
  7719. <p>SBaGen script demuxer.
  7720. </p>
  7721. <p>This demuxer reads the script language used by SBaGen
  7722. <a href="http://uazu.net/sbagen/">http://uazu.net/sbagen/</a> to generate binaural beats sessions. A SBG
  7723. script looks like that:
  7724. </p><div class="example">
  7725. <pre class="example">-SE
  7726. a: 300-2.5/3 440+4.5/0
  7727. b: 300-2.5/0 440+4.5/3
  7728. off: -
  7729. NOW == a
  7730. +0:07:00 == b
  7731. +0:14:00 == a
  7732. +0:21:00 == b
  7733. +0:30:00 off
  7734. </pre></div>
  7735. <p>A SBG script can mix absolute and relative timestamps. If the script uses
  7736. either only absolute timestamps (including the script start time) or only
  7737. relative ones, then its layout is fixed, and the conversion is
  7738. straightforward. On the other hand, if the script mixes both kind of
  7739. timestamps, then the <var>NOW</var> reference for relative timestamps will be
  7740. taken from the current time of day at the time the script is read, and the
  7741. script layout will be frozen according to that reference. That means that if
  7742. the script is directly played, the actual times will match the absolute
  7743. timestamps up to the sound controller&rsquo;s clock accuracy, but if the user
  7744. somehow pauses the playback or seeks, all times will be shifted accordingly.
  7745. </p>
  7746. <a name="tedcaptions"></a>
  7747. <h2 class="section"><a href="ffprobe-all.html#toc-tedcaptions">15.18 tedcaptions</a></h2>
  7748. <p>JSON captions used for <a href="http://www.ted.com/">TED Talks</a>.
  7749. </p>
  7750. <p>TED does not provide links to the captions, but they can be guessed from the
  7751. page. The file &lsquo;<tt>tools/bookmarklets.html</tt>&rsquo; from the FFmpeg source tree
  7752. contains a bookmarklet to expose them.
  7753. </p>
  7754. <p>This demuxer accepts the following option:
  7755. </p><dl compact="compact">
  7756. <dt>&lsquo;<samp>start_time</samp>&rsquo;</dt>
  7757. <dd><p>Set the start time of the TED talk, in milliseconds. The default is 15000
  7758. (15s). It is used to sync the captions with the downloadable videos, because
  7759. they include a 15s intro.
  7760. </p></dd>
  7761. </dl>
  7762. <p>Example: convert the captions to a format most players understand:
  7763. </p><div class="example">
  7764. <pre class="example">ffmpeg -i http://www.ted.com/talks/subtitles/id/1/lang/en talk1-en.srt
  7765. </pre></div>
  7766. <a name="vapoursynth"></a>
  7767. <h2 class="section"><a href="ffprobe-all.html#toc-vapoursynth">15.19 vapoursynth</a></h2>
  7768. <p>Vapoursynth wrapper.
  7769. </p>
  7770. <p>Due to security concerns, Vapoursynth scripts will not
  7771. be autodetected so the input format has to be forced. For ff* CLI tools,
  7772. add <code>-f vapoursynth</code> before the input <code>-i yourscript.vpy</code>.
  7773. </p>
  7774. <p>This demuxer accepts the following option:
  7775. </p><dl compact="compact">
  7776. <dt>&lsquo;<samp>max_script_size</samp>&rsquo;</dt>
  7777. <dd><p>The demuxer buffers the entire script into memory. Adjust this value to set the maximum buffer size,
  7778. which in turn, acts as a ceiling for the size of scripts that can be read.
  7779. Default is 1 MiB.
  7780. </p></dd>
  7781. </dl>
  7782. <a name="Metadata"></a>
  7783. <h1 class="chapter"><a href="ffprobe-all.html#toc-Metadata">16 Metadata</a></h1>
  7784. <p>FFmpeg is able to dump metadata from media files into a simple UTF-8-encoded
  7785. INI-like text file and then load it back using the metadata muxer/demuxer.
  7786. </p>
  7787. <p>The file format is as follows:
  7788. </p><ol>
  7789. <li>
  7790. A file consists of a header and a number of metadata tags divided into sections,
  7791. each on its own line.
  7792. </li><li>
  7793. The header is a &lsquo;<samp>;FFMETADATA</samp>&rsquo; string, followed by a version number (now 1).
  7794. </li><li>
  7795. Metadata tags are of the form &lsquo;<samp>key=value</samp>&rsquo;
  7796. </li><li>
  7797. Immediately after header follows global metadata
  7798. </li><li>
  7799. After global metadata there may be sections with per-stream/per-chapter
  7800. metadata.
  7801. </li><li>
  7802. A section starts with the section name in uppercase (i.e. STREAM or CHAPTER) in
  7803. brackets (&lsquo;<samp>[</samp>&rsquo;, &lsquo;<samp>]</samp>&rsquo;) and ends with next section or end of file.
  7804. </li><li>
  7805. At the beginning of a chapter section there may be an optional timebase to be
  7806. used for start/end values. It must be in form
  7807. &lsquo;<samp>TIMEBASE=<var>num</var>/<var>den</var></samp>&rsquo;, where <var>num</var> and <var>den</var> are
  7808. integers. If the timebase is missing then start/end times are assumed to
  7809. be in nanoseconds.
  7810. <p>Next a chapter section must contain chapter start and end times in form
  7811. &lsquo;<samp>START=<var>num</var></samp>&rsquo;, &lsquo;<samp>END=<var>num</var></samp>&rsquo;, where <var>num</var> is a positive
  7812. integer.
  7813. </p>
  7814. </li><li>
  7815. Empty lines and lines starting with &lsquo;<samp>;</samp>&rsquo; or &lsquo;<samp>#</samp>&rsquo; are ignored.
  7816. </li><li>
  7817. Metadata keys or values containing special characters (&lsquo;<samp>=</samp>&rsquo;, &lsquo;<samp>;</samp>&rsquo;,
  7818. &lsquo;<samp>#</samp>&rsquo;, &lsquo;<samp>\</samp>&rsquo; and a newline) must be escaped with a backslash &lsquo;<samp>\</samp>&rsquo;.
  7819. </li><li>
  7820. Note that whitespace in metadata (e.g. &lsquo;<samp>foo = bar</samp>&rsquo;) is considered to be
  7821. a part of the tag (in the example above key is &lsquo;<samp>foo </samp>&rsquo;, value is
  7822. &lsquo;<samp> bar</samp>&rsquo;).
  7823. </li></ol>
  7824. <p>A ffmetadata file might look like this:
  7825. </p><div class="example">
  7826. <pre class="example">;FFMETADATA1
  7827. title=bike\\shed
  7828. ;this is a comment
  7829. artist=FFmpeg troll team
  7830. [CHAPTER]
  7831. TIMEBASE=1/1000
  7832. START=0
  7833. #chapter ends at 0:01:00
  7834. END=60000
  7835. title=chapter \#1
  7836. [STREAM]
  7837. title=multi\
  7838. line
  7839. </pre></div>
  7840. <p>By using the ffmetadata muxer and demuxer it is possible to extract
  7841. metadata from an input file to an ffmetadata file, and then transcode
  7842. the file into an output file with the edited ffmetadata file.
  7843. </p>
  7844. <p>Extracting an ffmetadata file with &lsquo;<tt>ffmpeg</tt>&rsquo; goes as follows:
  7845. </p><div class="example">
  7846. <pre class="example">ffmpeg -i INPUT -f ffmetadata FFMETADATAFILE
  7847. </pre></div>
  7848. <p>Reinserting edited metadata information from the FFMETADATAFILE file can
  7849. be done as:
  7850. </p><div class="example">
  7851. <pre class="example">ffmpeg -i INPUT -i FFMETADATAFILE -map_metadata 1 -codec copy OUTPUT
  7852. </pre></div>
  7853. <a name="Protocol-Options"></a>
  7854. <h1 class="chapter"><a href="ffprobe-all.html#toc-Protocol-Options">17 Protocol Options</a></h1>
  7855. <p>The libavformat library provides some generic global options, which
  7856. can be set on all the protocols. In addition each protocol may support
  7857. so-called private options, which are specific for that component.
  7858. </p>
  7859. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  7860. FFmpeg tools, or by setting the value explicitly in the
  7861. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  7862. for programmatic use.
  7863. </p>
  7864. <p>The list of supported options follows:
  7865. </p>
  7866. <dl compact="compact">
  7867. <dt>&lsquo;<samp>protocol_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  7868. <dd><p>Set a &quot;,&quot;-separated list of allowed protocols. &quot;ALL&quot; matches all protocols. Protocols
  7869. prefixed by &quot;-&quot; are disabled.
  7870. All protocols are allowed by default but protocols used by an another
  7871. protocol (nested protocols) are restricted to a per protocol subset.
  7872. </p></dd>
  7873. </dl>
  7874. <a name="Protocols"></a>
  7875. <h1 class="chapter"><a href="ffprobe-all.html#toc-Protocols">18 Protocols</a></h1>
  7876. <p>Protocols are configured elements in FFmpeg that enable access to
  7877. resources that require specific protocols.
  7878. </p>
  7879. <p>When you configure your FFmpeg build, all the supported protocols are
  7880. enabled by default. You can list all available ones using the
  7881. configure option &quot;&ndash;list-protocols&quot;.
  7882. </p>
  7883. <p>You can disable all the protocols using the configure option
  7884. &quot;&ndash;disable-protocols&quot;, and selectively enable a protocol using the
  7885. option &quot;&ndash;enable-protocol=<var>PROTOCOL</var>&quot;, or you can disable a
  7886. particular protocol using the option
  7887. &quot;&ndash;disable-protocol=<var>PROTOCOL</var>&quot;.
  7888. </p>
  7889. <p>The option &quot;-protocols&quot; of the ff* tools will display the list of
  7890. supported protocols.
  7891. </p>
  7892. <p>All protocols accept the following options:
  7893. </p>
  7894. <dl compact="compact">
  7895. <dt>&lsquo;<samp>rw_timeout</samp>&rsquo;</dt>
  7896. <dd><p>Maximum time to wait for (network) read/write operations to complete,
  7897. in microseconds.
  7898. </p></dd>
  7899. </dl>
  7900. <p>A description of the currently available protocols follows.
  7901. </p>
  7902. <a name="amqp"></a>
  7903. <h2 class="section"><a href="ffprobe-all.html#toc-amqp">18.1 amqp</a></h2>
  7904. <p>Advanced Message Queueing Protocol (AMQP) version 0-9-1 is a broker based
  7905. publish-subscribe communication protocol.
  7906. </p>
  7907. <p>FFmpeg must be compiled with &ndash;enable-librabbitmq to support AMQP. A separate
  7908. AMQP broker must also be run. An example open-source AMQP broker is RabbitMQ.
  7909. </p>
  7910. <p>After starting the broker, an FFmpeg client may stream data to the broker using
  7911. the command:
  7912. </p>
  7913. <div class="example">
  7914. <pre class="example">ffmpeg -re -i input -f mpegts amqp://[[user]:[password]@]hostname[:port]
  7915. </pre></div>
  7916. <p>Where hostname and port (default is 5672) is the address of the broker. The
  7917. client may also set a user/password for authentication. The default for both
  7918. fields is &quot;guest&quot;.
  7919. </p>
  7920. <p>Muliple subscribers may stream from the broker using the command:
  7921. </p><div class="example">
  7922. <pre class="example">ffplay amqp://[[user]:[password]@]hostname[:port]
  7923. </pre></div>
  7924. <p>In RabbitMQ all data published to the broker flows through a specific exchange,
  7925. and each subscribing client has an assigned queue/buffer. When a packet arrives
  7926. at an exchange, it may be copied to a client&rsquo;s queue depending on the exchange
  7927. and routing_key fields.
  7928. </p>
  7929. <p>The following options are supported:
  7930. </p>
  7931. <dl compact="compact">
  7932. <dt>&lsquo;<samp>exchange</samp>&rsquo;</dt>
  7933. <dd><p>Sets the exchange to use on the broker. RabbitMQ has several predefined
  7934. exchanges: &quot;amq.direct&quot; is the default exchange, where the publisher and
  7935. subscriber must have a matching routing_key; &quot;amq.fanout&quot; is the same as a
  7936. broadcast operation (i.e. the data is forwarded to all queues on the fanout
  7937. exchange independent of the routing_key); and &quot;amq.topic&quot; is similar to
  7938. &quot;amq.direct&quot;, but allows for more complex pattern matching (refer to the RabbitMQ
  7939. documentation).
  7940. </p>
  7941. </dd>
  7942. <dt>&lsquo;<samp>routing_key</samp>&rsquo;</dt>
  7943. <dd><p>Sets the routing key. The default value is &quot;amqp&quot;. The routing key is used on
  7944. the &quot;amq.direct&quot; and &quot;amq.topic&quot; exchanges to decide whether packets are written
  7945. to the queue of a subscriber.
  7946. </p>
  7947. </dd>
  7948. <dt>&lsquo;<samp>pkt_size</samp>&rsquo;</dt>
  7949. <dd><p>Maximum size of each packet sent/received to the broker. Default is 131072.
  7950. Minimum is 4096 and max is any large value (representable by an int). When
  7951. receiving packets, this sets an internal buffer size in FFmpeg. It should be
  7952. equal to or greater than the size of the published packets to the broker. Otherwise
  7953. the received message may be truncated causing decoding errors.
  7954. </p>
  7955. </dd>
  7956. <dt>&lsquo;<samp>connection_timeout</samp>&rsquo;</dt>
  7957. <dd><p>The timeout in seconds during the initial connection to the broker. The
  7958. default value is rw_timeout, or 5 seconds if rw_timeout is not set.
  7959. </p>
  7960. </dd>
  7961. </dl>
  7962. <a name="async"></a>
  7963. <h2 class="section"><a href="ffprobe-all.html#toc-async">18.2 async</a></h2>
  7964. <p>Asynchronous data filling wrapper for input stream.
  7965. </p>
  7966. <p>Fill data in a background thread, to decouple I/O operation from demux thread.
  7967. </p>
  7968. <div class="example">
  7969. <pre class="example">async:<var>URL</var>
  7970. async:http://host/resource
  7971. async:cache:http://host/resource
  7972. </pre></div>
  7973. <a name="bluray"></a>
  7974. <h2 class="section"><a href="ffprobe-all.html#toc-bluray">18.3 bluray</a></h2>
  7975. <p>Read BluRay playlist.
  7976. </p>
  7977. <p>The accepted options are:
  7978. </p><dl compact="compact">
  7979. <dt>&lsquo;<samp>angle</samp>&rsquo;</dt>
  7980. <dd><p>BluRay angle
  7981. </p>
  7982. </dd>
  7983. <dt>&lsquo;<samp>chapter</samp>&rsquo;</dt>
  7984. <dd><p>Start chapter (1...N)
  7985. </p>
  7986. </dd>
  7987. <dt>&lsquo;<samp>playlist</samp>&rsquo;</dt>
  7988. <dd><p>Playlist to read (BDMV/PLAYLIST/?????.mpls)
  7989. </p>
  7990. </dd>
  7991. </dl>
  7992. <p>Examples:
  7993. </p>
  7994. <p>Read longest playlist from BluRay mounted to /mnt/bluray:
  7995. </p><div class="example">
  7996. <pre class="example">bluray:/mnt/bluray
  7997. </pre></div>
  7998. <p>Read angle 2 of playlist 4 from BluRay mounted to /mnt/bluray, start from chapter 2:
  7999. </p><div class="example">
  8000. <pre class="example">-playlist 4 -angle 2 -chapter 2 bluray:/mnt/bluray
  8001. </pre></div>
  8002. <a name="cache"></a>
  8003. <h2 class="section"><a href="ffprobe-all.html#toc-cache">18.4 cache</a></h2>
  8004. <p>Caching wrapper for input stream.
  8005. </p>
  8006. <p>Cache the input stream to temporary file. It brings seeking capability to live streams.
  8007. </p>
  8008. <div class="example">
  8009. <pre class="example">cache:<var>URL</var>
  8010. </pre></div>
  8011. <a name="concat-1"></a>
  8012. <h2 class="section"><a href="ffprobe-all.html#toc-concat-1">18.5 concat</a></h2>
  8013. <p>Physical concatenation protocol.
  8014. </p>
  8015. <p>Read and seek from many resources in sequence as if they were
  8016. a unique resource.
  8017. </p>
  8018. <p>A URL accepted by this protocol has the syntax:
  8019. </p><div class="example">
  8020. <pre class="example">concat:<var>URL1</var>|<var>URL2</var>|...|<var>URLN</var>
  8021. </pre></div>
  8022. <p>where <var>URL1</var>, <var>URL2</var>, ..., <var>URLN</var> are the urls of the
  8023. resource to be concatenated, each one possibly specifying a distinct
  8024. protocol.
  8025. </p>
  8026. <p>For example to read a sequence of files &lsquo;<tt>split1.mpeg</tt>&rsquo;,
  8027. &lsquo;<tt>split2.mpeg</tt>&rsquo;, &lsquo;<tt>split3.mpeg</tt>&rsquo; with <code>ffplay</code> use the
  8028. command:
  8029. </p><div class="example">
  8030. <pre class="example">ffplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg
  8031. </pre></div>
  8032. <p>Note that you may need to escape the character &quot;|&quot; which is special for
  8033. many shells.
  8034. </p>
  8035. <a name="crypto"></a>
  8036. <h2 class="section"><a href="ffprobe-all.html#toc-crypto">18.6 crypto</a></h2>
  8037. <p>AES-encrypted stream reading protocol.
  8038. </p>
  8039. <p>The accepted options are:
  8040. </p><dl compact="compact">
  8041. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  8042. <dd><p>Set the AES decryption key binary block from given hexadecimal representation.
  8043. </p>
  8044. </dd>
  8045. <dt>&lsquo;<samp>iv</samp>&rsquo;</dt>
  8046. <dd><p>Set the AES decryption initialization vector binary block from given hexadecimal representation.
  8047. </p></dd>
  8048. </dl>
  8049. <p>Accepted URL formats:
  8050. </p><div class="example">
  8051. <pre class="example">crypto:<var>URL</var>
  8052. crypto+<var>URL</var>
  8053. </pre></div>
  8054. <a name="data"></a>
  8055. <h2 class="section"><a href="ffprobe-all.html#toc-data">18.7 data</a></h2>
  8056. <p>Data in-line in the URI. See <a href="http://en.wikipedia.org/wiki/Data_URI_scheme">http://en.wikipedia.org/wiki/Data_URI_scheme</a>.
  8057. </p>
  8058. <p>For example, to convert a GIF file given inline with <code>ffmpeg</code>:
  8059. </p><div class="example">
  8060. <pre class="example">ffmpeg -i &quot;data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=&quot; smiley.png
  8061. </pre></div>
  8062. <a name="file"></a>
  8063. <h2 class="section"><a href="ffprobe-all.html#toc-file">18.8 file</a></h2>
  8064. <p>File access protocol.
  8065. </p>
  8066. <p>Read from or write to a file.
  8067. </p>
  8068. <p>A file URL can have the form:
  8069. </p><div class="example">
  8070. <pre class="example">file:<var>filename</var>
  8071. </pre></div>
  8072. <p>where <var>filename</var> is the path of the file to read.
  8073. </p>
  8074. <p>An URL that does not have a protocol prefix will be assumed to be a
  8075. file URL. Depending on the build, an URL that looks like a Windows
  8076. path with the drive letter at the beginning will also be assumed to be
  8077. a file URL (usually not the case in builds for unix-like systems).
  8078. </p>
  8079. <p>For example to read from a file &lsquo;<tt>input.mpeg</tt>&rsquo; with <code>ffmpeg</code>
  8080. use the command:
  8081. </p><div class="example">
  8082. <pre class="example">ffmpeg -i file:input.mpeg output.mpeg
  8083. </pre></div>
  8084. <p>This protocol accepts the following options:
  8085. </p>
  8086. <dl compact="compact">
  8087. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  8088. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  8089. truncating. Default value is 1.
  8090. </p>
  8091. </dd>
  8092. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  8093. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  8094. <code>INT_MAX</code>, which results in not limiting the requested block size.
  8095. Setting this value reasonably low improves user termination request reaction
  8096. time, which is valuable for files on slow medium.
  8097. </p>
  8098. </dd>
  8099. <dt>&lsquo;<samp>follow</samp>&rsquo;</dt>
  8100. <dd><p>If set to 1, the protocol will retry reading at the end of the file, allowing
  8101. reading files that still are being written. In order for this to terminate,
  8102. you either need to use the rw_timeout option, or use the interrupt callback
  8103. (for API users).
  8104. </p>
  8105. </dd>
  8106. <dt>&lsquo;<samp>seekable</samp>&rsquo;</dt>
  8107. <dd><p>Controls if seekability is advertised on the file. 0 means non-seekable, -1
  8108. means auto (seekable for normal files, non-seekable for named pipes).
  8109. </p>
  8110. <p>Many demuxers handle seekable and non-seekable resources differently,
  8111. overriding this might speed up opening certain files at the cost of losing some
  8112. features (e.g. accurate seeking).
  8113. </p></dd>
  8114. </dl>
  8115. <a name="ftp"></a>
  8116. <h2 class="section"><a href="ffprobe-all.html#toc-ftp">18.9 ftp</a></h2>
  8117. <p>FTP (File Transfer Protocol).
  8118. </p>
  8119. <p>Read from or write to remote resources using FTP protocol.
  8120. </p>
  8121. <p>Following syntax is required.
  8122. </p><div class="example">
  8123. <pre class="example">ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  8124. </pre></div>
  8125. <p>This protocol accepts the following options.
  8126. </p>
  8127. <dl compact="compact">
  8128. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8129. <dd><p>Set timeout in microseconds of socket I/O operations used by the underlying low level
  8130. operation. By default it is set to -1, which means that the timeout is
  8131. not specified.
  8132. </p>
  8133. </dd>
  8134. <dt>&lsquo;<samp>ftp-user</samp>&rsquo;</dt>
  8135. <dd><p>Set a user to be used for authenticating to the FTP server. This is overridden by the
  8136. user in the FTP URL.
  8137. </p>
  8138. </dd>
  8139. <dt>&lsquo;<samp>ftp-password</samp>&rsquo;</dt>
  8140. <dd><p>Set a password to be used for authenticating to the FTP server. This is overridden by
  8141. the password in the FTP URL, or by &lsquo;<samp>ftp-anonymous-password</samp>&rsquo; if no user is set.
  8142. </p>
  8143. </dd>
  8144. <dt>&lsquo;<samp>ftp-anonymous-password</samp>&rsquo;</dt>
  8145. <dd><p>Password used when login as anonymous user. Typically an e-mail address
  8146. should be used.
  8147. </p>
  8148. </dd>
  8149. <dt>&lsquo;<samp>ftp-write-seekable</samp>&rsquo;</dt>
  8150. <dd><p>Control seekability of connection during encoding. If set to 1 the
  8151. resource is supposed to be seekable, if set to 0 it is assumed not
  8152. to be seekable. Default value is 0.
  8153. </p></dd>
  8154. </dl>
  8155. <p>NOTE: Protocol can be used as output, but it is recommended to not do
  8156. it, unless special care is taken (tests, customized server configuration
  8157. etc.). Different FTP servers behave in different way during seek
  8158. operation. ff* tools may produce incomplete content due to server limitations.
  8159. </p>
  8160. <a name="gopher"></a>
  8161. <h2 class="section"><a href="ffprobe-all.html#toc-gopher">18.10 gopher</a></h2>
  8162. <p>Gopher protocol.
  8163. </p>
  8164. <a name="hls-1"></a>
  8165. <h2 class="section"><a href="ffprobe-all.html#toc-hls-1">18.11 hls</a></h2>
  8166. <p>Read Apple HTTP Live Streaming compliant segmented stream as
  8167. a uniform one. The M3U8 playlists describing the segments can be
  8168. remote HTTP resources or local files, accessed using the standard
  8169. file protocol.
  8170. The nested protocol is declared by specifying
  8171. &quot;+<var>proto</var>&quot; after the hls URI scheme name, where <var>proto</var>
  8172. is either &quot;file&quot; or &quot;http&quot;.
  8173. </p>
  8174. <div class="example">
  8175. <pre class="example">hls+http://host/path/to/remote/resource.m3u8
  8176. hls+file://path/to/local/resource.m3u8
  8177. </pre></div>
  8178. <p>Using this protocol is discouraged - the hls demuxer should work
  8179. just as well (if not, please report the issues) and is more complete.
  8180. To use the hls demuxer instead, simply use the direct URLs to the
  8181. m3u8 files.
  8182. </p>
  8183. <a name="http"></a>
  8184. <h2 class="section"><a href="ffprobe-all.html#toc-http">18.12 http</a></h2>
  8185. <p>HTTP (Hyper Text Transfer Protocol).
  8186. </p>
  8187. <p>This protocol accepts the following options:
  8188. </p>
  8189. <dl compact="compact">
  8190. <dt>&lsquo;<samp>seekable</samp>&rsquo;</dt>
  8191. <dd><p>Control seekability of connection. If set to 1 the resource is
  8192. supposed to be seekable, if set to 0 it is assumed not to be seekable,
  8193. if set to -1 it will try to autodetect if it is seekable. Default
  8194. value is -1.
  8195. </p>
  8196. </dd>
  8197. <dt>&lsquo;<samp>chunked_post</samp>&rsquo;</dt>
  8198. <dd><p>If set to 1 use chunked Transfer-Encoding for posts, default is 1.
  8199. </p>
  8200. </dd>
  8201. <dt>&lsquo;<samp>content_type</samp>&rsquo;</dt>
  8202. <dd><p>Set a specific content type for the POST messages or for listen mode.
  8203. </p>
  8204. </dd>
  8205. <dt>&lsquo;<samp>http_proxy</samp>&rsquo;</dt>
  8206. <dd><p>set HTTP proxy to tunnel through e.g. http://example.com:1234
  8207. </p>
  8208. </dd>
  8209. <dt>&lsquo;<samp>headers</samp>&rsquo;</dt>
  8210. <dd><p>Set custom HTTP headers, can override built in default headers. The
  8211. value must be a string encoding the headers.
  8212. </p>
  8213. </dd>
  8214. <dt>&lsquo;<samp>multiple_requests</samp>&rsquo;</dt>
  8215. <dd><p>Use persistent connections if set to 1, default is 0.
  8216. </p>
  8217. </dd>
  8218. <dt>&lsquo;<samp>post_data</samp>&rsquo;</dt>
  8219. <dd><p>Set custom HTTP post data.
  8220. </p>
  8221. </dd>
  8222. <dt>&lsquo;<samp>referer</samp>&rsquo;</dt>
  8223. <dd><p>Set the Referer header. Include &rsquo;Referer: URL&rsquo; header in HTTP request.
  8224. </p>
  8225. </dd>
  8226. <dt>&lsquo;<samp>user_agent</samp>&rsquo;</dt>
  8227. <dd><p>Override the User-Agent header. If not specified the protocol will use a
  8228. string describing the libavformat build. (&quot;Lavf/&lt;version&gt;&quot;)
  8229. </p>
  8230. </dd>
  8231. <dt>&lsquo;<samp>user-agent</samp>&rsquo;</dt>
  8232. <dd><p>This is a deprecated option, you can use user_agent instead it.
  8233. </p>
  8234. </dd>
  8235. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8236. <dd><p>Set timeout in microseconds of socket I/O operations used by the underlying low level
  8237. operation. By default it is set to -1, which means that the timeout is
  8238. not specified.
  8239. </p>
  8240. </dd>
  8241. <dt>&lsquo;<samp>reconnect_at_eof</samp>&rsquo;</dt>
  8242. <dd><p>If set then eof is treated like an error and causes reconnection, this is useful
  8243. for live / endless streams.
  8244. </p>
  8245. </dd>
  8246. <dt>&lsquo;<samp>reconnect_streamed</samp>&rsquo;</dt>
  8247. <dd><p>If set then even streamed/non seekable streams will be reconnected on errors.
  8248. </p>
  8249. </dd>
  8250. <dt>&lsquo;<samp>reconnect_delay_max</samp>&rsquo;</dt>
  8251. <dd><p>Sets the maximum delay in seconds after which to give up reconnecting
  8252. </p>
  8253. </dd>
  8254. <dt>&lsquo;<samp>mime_type</samp>&rsquo;</dt>
  8255. <dd><p>Export the MIME type.
  8256. </p>
  8257. </dd>
  8258. <dt>&lsquo;<samp>http_version</samp>&rsquo;</dt>
  8259. <dd><p>Exports the HTTP response version number. Usually &quot;1.0&quot; or &quot;1.1&quot;.
  8260. </p>
  8261. </dd>
  8262. <dt>&lsquo;<samp>icy</samp>&rsquo;</dt>
  8263. <dd><p>If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
  8264. supports this, the metadata has to be retrieved by the application by reading
  8265. the &lsquo;<samp>icy_metadata_headers</samp>&rsquo; and &lsquo;<samp>icy_metadata_packet</samp>&rsquo; options.
  8266. The default is 1.
  8267. </p>
  8268. </dd>
  8269. <dt>&lsquo;<samp>icy_metadata_headers</samp>&rsquo;</dt>
  8270. <dd><p>If the server supports ICY metadata, this contains the ICY-specific HTTP reply
  8271. headers, separated by newline characters.
  8272. </p>
  8273. </dd>
  8274. <dt>&lsquo;<samp>icy_metadata_packet</samp>&rsquo;</dt>
  8275. <dd><p>If the server supports ICY metadata, and &lsquo;<samp>icy</samp>&rsquo; was set to 1, this
  8276. contains the last non-empty metadata packet sent by the server. It should be
  8277. polled in regular intervals by applications interested in mid-stream metadata
  8278. updates.
  8279. </p>
  8280. </dd>
  8281. <dt>&lsquo;<samp>cookies</samp>&rsquo;</dt>
  8282. <dd><p>Set the cookies to be sent in future requests. The format of each cookie is the
  8283. same as the value of a Set-Cookie HTTP response field. Multiple cookies can be
  8284. delimited by a newline character.
  8285. </p>
  8286. </dd>
  8287. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  8288. <dd><p>Set initial byte offset.
  8289. </p>
  8290. </dd>
  8291. <dt>&lsquo;<samp>end_offset</samp>&rsquo;</dt>
  8292. <dd><p>Try to limit the request to bytes preceding this offset.
  8293. </p>
  8294. </dd>
  8295. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  8296. <dd><p>When used as a client option it sets the HTTP method for the request.
  8297. </p>
  8298. <p>When used as a server option it sets the HTTP method that is going to be
  8299. expected from the client(s).
  8300. If the expected and the received HTTP method do not match the client will
  8301. be given a Bad Request response.
  8302. When unset the HTTP method is not checked for now. This will be replaced by
  8303. autodetection in the future.
  8304. </p>
  8305. </dd>
  8306. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8307. <dd><p>If set to 1 enables experimental HTTP server. This can be used to send data when
  8308. used as an output option, or read data from a client with HTTP POST when used as
  8309. an input option.
  8310. If set to 2 enables experimental multi-client HTTP server. This is not yet implemented
  8311. in ffmpeg.c and thus must not be used as a command line option.
  8312. </p><div class="example">
  8313. <pre class="example"># Server side (sending):
  8314. ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://<var>server</var>:<var>port</var>
  8315. # Client side (receiving):
  8316. ffmpeg -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  8317. # Client can also be done with wget:
  8318. wget http://<var>server</var>:<var>port</var> -O somefile.ogg
  8319. # Server side (receiving):
  8320. ffmpeg -listen 1 -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  8321. # Client side (sending):
  8322. ffmpeg -i somefile.ogg -chunked_post 0 -c copy -f ogg http://<var>server</var>:<var>port</var>
  8323. # Client can also be done with wget:
  8324. wget --post-file=somefile.ogg http://<var>server</var>:<var>port</var>
  8325. </pre></div>
  8326. </dd>
  8327. <dt>&lsquo;<samp>send_expect_100</samp>&rsquo;</dt>
  8328. <dd><p>Send an Expect: 100-continue header for POST. If set to 1 it will send, if set
  8329. to 0 it won&rsquo;t, if set to -1 it will try to send if it is applicable. Default
  8330. value is -1.
  8331. </p>
  8332. </dd>
  8333. </dl>
  8334. <a name="HTTP-Cookies"></a>
  8335. <h3 class="subsection"><a href="ffprobe-all.html#toc-HTTP-Cookies">18.12.1 HTTP Cookies</a></h3>
  8336. <p>Some HTTP requests will be denied unless cookie values are passed in with the
  8337. request. The &lsquo;<samp>cookies</samp>&rsquo; option allows these cookies to be specified. At
  8338. the very least, each cookie must specify a value along with a path and domain.
  8339. HTTP requests that match both the domain and path will automatically include the
  8340. cookie value in the HTTP Cookie header field. Multiple cookies can be delimited
  8341. by a newline.
  8342. </p>
  8343. <p>The required syntax to play a stream specifying a cookie is:
  8344. </p><div class="example">
  8345. <pre class="example">ffplay -cookies &quot;nlqptid=nltid=tsn; path=/; domain=somedomain.com;&quot; http://somedomain.com/somestream.m3u8
  8346. </pre></div>
  8347. <a name="Icecast"></a>
  8348. <h2 class="section"><a href="ffprobe-all.html#toc-Icecast">18.13 Icecast</a></h2>
  8349. <p>Icecast protocol (stream to Icecast servers)
  8350. </p>
  8351. <p>This protocol accepts the following options:
  8352. </p>
  8353. <dl compact="compact">
  8354. <dt>&lsquo;<samp>ice_genre</samp>&rsquo;</dt>
  8355. <dd><p>Set the stream genre.
  8356. </p>
  8357. </dd>
  8358. <dt>&lsquo;<samp>ice_name</samp>&rsquo;</dt>
  8359. <dd><p>Set the stream name.
  8360. </p>
  8361. </dd>
  8362. <dt>&lsquo;<samp>ice_description</samp>&rsquo;</dt>
  8363. <dd><p>Set the stream description.
  8364. </p>
  8365. </dd>
  8366. <dt>&lsquo;<samp>ice_url</samp>&rsquo;</dt>
  8367. <dd><p>Set the stream website URL.
  8368. </p>
  8369. </dd>
  8370. <dt>&lsquo;<samp>ice_public</samp>&rsquo;</dt>
  8371. <dd><p>Set if the stream should be public.
  8372. The default is 0 (not public).
  8373. </p>
  8374. </dd>
  8375. <dt>&lsquo;<samp>user_agent</samp>&rsquo;</dt>
  8376. <dd><p>Override the User-Agent header. If not specified a string of the form
  8377. &quot;Lavf/&lt;version&gt;&quot; will be used.
  8378. </p>
  8379. </dd>
  8380. <dt>&lsquo;<samp>password</samp>&rsquo;</dt>
  8381. <dd><p>Set the Icecast mountpoint password.
  8382. </p>
  8383. </dd>
  8384. <dt>&lsquo;<samp>content_type</samp>&rsquo;</dt>
  8385. <dd><p>Set the stream content type. This must be set if it is different from
  8386. audio/mpeg.
  8387. </p>
  8388. </dd>
  8389. <dt>&lsquo;<samp>legacy_icecast</samp>&rsquo;</dt>
  8390. <dd><p>This enables support for Icecast versions &lt; 2.4.0, that do not support the
  8391. HTTP PUT method but the SOURCE method.
  8392. </p>
  8393. </dd>
  8394. </dl>
  8395. <div class="example">
  8396. <pre class="example">icecast://[<var>username</var>[:<var>password</var>]@]<var>server</var>:<var>port</var>/<var>mountpoint</var>
  8397. </pre></div>
  8398. <a name="mmst"></a>
  8399. <h2 class="section"><a href="ffprobe-all.html#toc-mmst">18.14 mmst</a></h2>
  8400. <p>MMS (Microsoft Media Server) protocol over TCP.
  8401. </p>
  8402. <a name="mmsh"></a>
  8403. <h2 class="section"><a href="ffprobe-all.html#toc-mmsh">18.15 mmsh</a></h2>
  8404. <p>MMS (Microsoft Media Server) protocol over HTTP.
  8405. </p>
  8406. <p>The required syntax is:
  8407. </p><div class="example">
  8408. <pre class="example">mmsh://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>]
  8409. </pre></div>
  8410. <a name="md5"></a>
  8411. <h2 class="section"><a href="ffprobe-all.html#toc-md5">18.16 md5</a></h2>
  8412. <p>MD5 output protocol.
  8413. </p>
  8414. <p>Computes the MD5 hash of the data to be written, and on close writes
  8415. this to the designated output or stdout if none is specified. It can
  8416. be used to test muxers without writing an actual file.
  8417. </p>
  8418. <p>Some examples follow.
  8419. </p><div class="example">
  8420. <pre class="example"># Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
  8421. ffmpeg -i input.flv -f avi -y md5:output.avi.md5
  8422. # Write the MD5 hash of the encoded AVI file to stdout.
  8423. ffmpeg -i input.flv -f avi -y md5:
  8424. </pre></div>
  8425. <p>Note that some formats (typically MOV) require the output protocol to
  8426. be seekable, so they will fail with the MD5 output protocol.
  8427. </p>
  8428. <a name="pipe"></a>
  8429. <h2 class="section"><a href="ffprobe-all.html#toc-pipe">18.17 pipe</a></h2>
  8430. <p>UNIX pipe access protocol.
  8431. </p>
  8432. <p>Read and write from UNIX pipes.
  8433. </p>
  8434. <p>The accepted syntax is:
  8435. </p><div class="example">
  8436. <pre class="example">pipe:[<var>number</var>]
  8437. </pre></div>
  8438. <p><var>number</var> is the number corresponding to the file descriptor of the
  8439. pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If <var>number</var>
  8440. is not specified, by default the stdout file descriptor will be used
  8441. for writing, stdin for reading.
  8442. </p>
  8443. <p>For example to read from stdin with <code>ffmpeg</code>:
  8444. </p><div class="example">
  8445. <pre class="example">cat test.wav | ffmpeg -i pipe:0
  8446. # ...this is the same as...
  8447. cat test.wav | ffmpeg -i pipe:
  8448. </pre></div>
  8449. <p>For writing to stdout with <code>ffmpeg</code>:
  8450. </p><div class="example">
  8451. <pre class="example">ffmpeg -i test.wav -f avi pipe:1 | cat &gt; test.avi
  8452. # ...this is the same as...
  8453. ffmpeg -i test.wav -f avi pipe: | cat &gt; test.avi
  8454. </pre></div>
  8455. <p>This protocol accepts the following options:
  8456. </p>
  8457. <dl compact="compact">
  8458. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  8459. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  8460. <code>INT_MAX</code>, which results in not limiting the requested block size.
  8461. Setting this value reasonably low improves user termination request reaction
  8462. time, which is valuable if data transmission is slow.
  8463. </p></dd>
  8464. </dl>
  8465. <p>Note that some formats (typically MOV), require the output protocol to
  8466. be seekable, so they will fail with the pipe output protocol.
  8467. </p>
  8468. <a name="prompeg"></a>
  8469. <h2 class="section"><a href="ffprobe-all.html#toc-prompeg">18.18 prompeg</a></h2>
  8470. <p>Pro-MPEG Code of Practice #3 Release 2 FEC protocol.
  8471. </p>
  8472. <p>The Pro-MPEG CoP#3 FEC is a 2D parity-check forward error correction mechanism
  8473. for MPEG-2 Transport Streams sent over RTP.
  8474. </p>
  8475. <p>This protocol must be used in conjunction with the <code>rtp_mpegts</code> muxer and
  8476. the <code>rtp</code> protocol.
  8477. </p>
  8478. <p>The required syntax is:
  8479. </p><div class="example">
  8480. <pre class="example">-f rtp_mpegts -fec prompeg=<var>option</var>=<var>val</var>... rtp://<var>hostname</var>:<var>port</var>
  8481. </pre></div>
  8482. <p>The destination UDP ports are <code>port + 2</code> for the column FEC stream
  8483. and <code>port + 4</code> for the row FEC stream.
  8484. </p>
  8485. <p>This protocol accepts the following options:
  8486. </p><dl compact="compact">
  8487. <dt>&lsquo;<samp>l=<var>n</var></samp>&rsquo;</dt>
  8488. <dd><p>The number of columns (4-20, LxD &lt;= 100)
  8489. </p>
  8490. </dd>
  8491. <dt>&lsquo;<samp>d=<var>n</var></samp>&rsquo;</dt>
  8492. <dd><p>The number of rows (4-20, LxD &lt;= 100)
  8493. </p>
  8494. </dd>
  8495. </dl>
  8496. <p>Example usage:
  8497. </p>
  8498. <div class="example">
  8499. <pre class="example">-f rtp_mpegts -fec prompeg=l=8:d=4 rtp://<var>hostname</var>:<var>port</var>
  8500. </pre></div>
  8501. <a name="rtmp"></a>
  8502. <h2 class="section"><a href="ffprobe-all.html#toc-rtmp">18.19 rtmp</a></h2>
  8503. <p>Real-Time Messaging Protocol.
  8504. </p>
  8505. <p>The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
  8506. content across a TCP/IP network.
  8507. </p>
  8508. <p>The required syntax is:
  8509. </p><div class="example">
  8510. <pre class="example">rtmp://[<var>username</var>:<var>password</var>@]<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>instance</var>][/<var>playpath</var>]
  8511. </pre></div>
  8512. <p>The accepted parameters are:
  8513. </p><dl compact="compact">
  8514. <dt>&lsquo;<samp>username</samp>&rsquo;</dt>
  8515. <dd><p>An optional username (mostly for publishing).
  8516. </p>
  8517. </dd>
  8518. <dt>&lsquo;<samp>password</samp>&rsquo;</dt>
  8519. <dd><p>An optional password (mostly for publishing).
  8520. </p>
  8521. </dd>
  8522. <dt>&lsquo;<samp>server</samp>&rsquo;</dt>
  8523. <dd><p>The address of the RTMP server.
  8524. </p>
  8525. </dd>
  8526. <dt>&lsquo;<samp>port</samp>&rsquo;</dt>
  8527. <dd><p>The number of the TCP port to use (by default is 1935).
  8528. </p>
  8529. </dd>
  8530. <dt>&lsquo;<samp>app</samp>&rsquo;</dt>
  8531. <dd><p>It is the name of the application to access. It usually corresponds to
  8532. the path where the application is installed on the RTMP server
  8533. (e.g. &lsquo;<tt>/ondemand/</tt>&rsquo;, &lsquo;<tt>/flash/live/</tt>&rsquo;, etc.). You can override
  8534. the value parsed from the URI through the <code>rtmp_app</code> option, too.
  8535. </p>
  8536. </dd>
  8537. <dt>&lsquo;<samp>playpath</samp>&rsquo;</dt>
  8538. <dd><p>It is the path or name of the resource to play with reference to the
  8539. application specified in <var>app</var>, may be prefixed by &quot;mp4:&quot;. You
  8540. can override the value parsed from the URI through the <code>rtmp_playpath</code>
  8541. option, too.
  8542. </p>
  8543. </dd>
  8544. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8545. <dd><p>Act as a server, listening for an incoming connection.
  8546. </p>
  8547. </dd>
  8548. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8549. <dd><p>Maximum time to wait for the incoming connection. Implies listen.
  8550. </p></dd>
  8551. </dl>
  8552. <p>Additionally, the following parameters can be set via command line options
  8553. (or in code via <code>AVOption</code>s):
  8554. </p><dl compact="compact">
  8555. <dt>&lsquo;<samp>rtmp_app</samp>&rsquo;</dt>
  8556. <dd><p>Name of application to connect on the RTMP server. This option
  8557. overrides the parameter specified in the URI.
  8558. </p>
  8559. </dd>
  8560. <dt>&lsquo;<samp>rtmp_buffer</samp>&rsquo;</dt>
  8561. <dd><p>Set the client buffer time in milliseconds. The default is 3000.
  8562. </p>
  8563. </dd>
  8564. <dt>&lsquo;<samp>rtmp_conn</samp>&rsquo;</dt>
  8565. <dd><p>Extra arbitrary AMF connection parameters, parsed from a string,
  8566. e.g. like <code>B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0</code>.
  8567. Each value is prefixed by a single character denoting the type,
  8568. B for Boolean, N for number, S for string, O for object, or Z for null,
  8569. followed by a colon. For Booleans the data must be either 0 or 1 for
  8570. FALSE or TRUE, respectively. Likewise for Objects the data must be 0 or
  8571. 1 to end or begin an object, respectively. Data items in subobjects may
  8572. be named, by prefixing the type with &rsquo;N&rsquo; and specifying the name before
  8573. the value (i.e. <code>NB:myFlag:1</code>). This option may be used multiple
  8574. times to construct arbitrary AMF sequences.
  8575. </p>
  8576. </dd>
  8577. <dt>&lsquo;<samp>rtmp_flashver</samp>&rsquo;</dt>
  8578. <dd><p>Version of the Flash plugin used to run the SWF player. The default
  8579. is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
  8580. &lt;libavformat version&gt;).)
  8581. </p>
  8582. </dd>
  8583. <dt>&lsquo;<samp>rtmp_flush_interval</samp>&rsquo;</dt>
  8584. <dd><p>Number of packets flushed in the same request (RTMPT only). The default
  8585. is 10.
  8586. </p>
  8587. </dd>
  8588. <dt>&lsquo;<samp>rtmp_live</samp>&rsquo;</dt>
  8589. <dd><p>Specify that the media is a live stream. No resuming or seeking in
  8590. live streams is possible. The default value is <code>any</code>, which means the
  8591. subscriber first tries to play the live stream specified in the
  8592. playpath. If a live stream of that name is not found, it plays the
  8593. recorded stream. The other possible values are <code>live</code> and
  8594. <code>recorded</code>.
  8595. </p>
  8596. </dd>
  8597. <dt>&lsquo;<samp>rtmp_pageurl</samp>&rsquo;</dt>
  8598. <dd><p>URL of the web page in which the media was embedded. By default no
  8599. value will be sent.
  8600. </p>
  8601. </dd>
  8602. <dt>&lsquo;<samp>rtmp_playpath</samp>&rsquo;</dt>
  8603. <dd><p>Stream identifier to play or to publish. This option overrides the
  8604. parameter specified in the URI.
  8605. </p>
  8606. </dd>
  8607. <dt>&lsquo;<samp>rtmp_subscribe</samp>&rsquo;</dt>
  8608. <dd><p>Name of live stream to subscribe to. By default no value will be sent.
  8609. It is only sent if the option is specified or if rtmp_live
  8610. is set to live.
  8611. </p>
  8612. </dd>
  8613. <dt>&lsquo;<samp>rtmp_swfhash</samp>&rsquo;</dt>
  8614. <dd><p>SHA256 hash of the decompressed SWF file (32 bytes).
  8615. </p>
  8616. </dd>
  8617. <dt>&lsquo;<samp>rtmp_swfsize</samp>&rsquo;</dt>
  8618. <dd><p>Size of the decompressed SWF file, required for SWFVerification.
  8619. </p>
  8620. </dd>
  8621. <dt>&lsquo;<samp>rtmp_swfurl</samp>&rsquo;</dt>
  8622. <dd><p>URL of the SWF player for the media. By default no value will be sent.
  8623. </p>
  8624. </dd>
  8625. <dt>&lsquo;<samp>rtmp_swfverify</samp>&rsquo;</dt>
  8626. <dd><p>URL to player swf file, compute hash/size automatically.
  8627. </p>
  8628. </dd>
  8629. <dt>&lsquo;<samp>rtmp_tcurl</samp>&rsquo;</dt>
  8630. <dd><p>URL of the target stream. Defaults to proto://host[:port]/app.
  8631. </p>
  8632. </dd>
  8633. </dl>
  8634. <p>For example to read with <code>ffplay</code> a multimedia resource named
  8635. &quot;sample&quot; from the application &quot;vod&quot; from an RTMP server &quot;myserver&quot;:
  8636. </p><div class="example">
  8637. <pre class="example">ffplay rtmp://myserver/vod/sample
  8638. </pre></div>
  8639. <p>To publish to a password protected server, passing the playpath and
  8640. app names separately:
  8641. </p><div class="example">
  8642. <pre class="example">ffmpeg -re -i &lt;input&gt; -f flv -rtmp_playpath some/long/path -rtmp_app long/app/name rtmp://username:password@myserver/
  8643. </pre></div>
  8644. <a name="rtmpe"></a>
  8645. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpe">18.20 rtmpe</a></h2>
  8646. <p>Encrypted Real-Time Messaging Protocol.
  8647. </p>
  8648. <p>The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
  8649. streaming multimedia content within standard cryptographic primitives,
  8650. consisting of Diffie-Hellman key exchange and HMACSHA256, generating
  8651. a pair of RC4 keys.
  8652. </p>
  8653. <a name="rtmps"></a>
  8654. <h2 class="section"><a href="ffprobe-all.html#toc-rtmps">18.21 rtmps</a></h2>
  8655. <p>Real-Time Messaging Protocol over a secure SSL connection.
  8656. </p>
  8657. <p>The Real-Time Messaging Protocol (RTMPS) is used for streaming
  8658. multimedia content across an encrypted connection.
  8659. </p>
  8660. <a name="rtmpt"></a>
  8661. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpt">18.22 rtmpt</a></h2>
  8662. <p>Real-Time Messaging Protocol tunneled through HTTP.
  8663. </p>
  8664. <p>The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
  8665. for streaming multimedia content within HTTP requests to traverse
  8666. firewalls.
  8667. </p>
  8668. <a name="rtmpte"></a>
  8669. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpte">18.23 rtmpte</a></h2>
  8670. <p>Encrypted Real-Time Messaging Protocol tunneled through HTTP.
  8671. </p>
  8672. <p>The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
  8673. is used for streaming multimedia content within HTTP requests to traverse
  8674. firewalls.
  8675. </p>
  8676. <a name="rtmpts"></a>
  8677. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpts">18.24 rtmpts</a></h2>
  8678. <p>Real-Time Messaging Protocol tunneled through HTTPS.
  8679. </p>
  8680. <p>The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
  8681. for streaming multimedia content within HTTPS requests to traverse
  8682. firewalls.
  8683. </p>
  8684. <a name="libsmbclient"></a>
  8685. <h2 class="section"><a href="ffprobe-all.html#toc-libsmbclient">18.25 libsmbclient</a></h2>
  8686. <p>libsmbclient permits one to manipulate CIFS/SMB network resources.
  8687. </p>
  8688. <p>Following syntax is required.
  8689. </p>
  8690. <div class="example">
  8691. <pre class="example">smb://[[domain:]user[:password@]]server[/share[/path[/file]]]
  8692. </pre></div>
  8693. <p>This protocol accepts the following options.
  8694. </p>
  8695. <dl compact="compact">
  8696. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8697. <dd><p>Set timeout in milliseconds of socket I/O operations used by the underlying
  8698. low level operation. By default it is set to -1, which means that the timeout
  8699. is not specified.
  8700. </p>
  8701. </dd>
  8702. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  8703. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  8704. truncating. Default value is 1.
  8705. </p>
  8706. </dd>
  8707. <dt>&lsquo;<samp>workgroup</samp>&rsquo;</dt>
  8708. <dd><p>Set the workgroup used for making connections. By default workgroup is not specified.
  8709. </p>
  8710. </dd>
  8711. </dl>
  8712. <p>For more information see: <a href="http://www.samba.org/">http://www.samba.org/</a>.
  8713. </p>
  8714. <a name="libssh"></a>
  8715. <h2 class="section"><a href="ffprobe-all.html#toc-libssh">18.26 libssh</a></h2>
  8716. <p>Secure File Transfer Protocol via libssh
  8717. </p>
  8718. <p>Read from or write to remote resources using SFTP protocol.
  8719. </p>
  8720. <p>Following syntax is required.
  8721. </p>
  8722. <div class="example">
  8723. <pre class="example">sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  8724. </pre></div>
  8725. <p>This protocol accepts the following options.
  8726. </p>
  8727. <dl compact="compact">
  8728. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8729. <dd><p>Set timeout of socket I/O operations used by the underlying low level
  8730. operation. By default it is set to -1, which means that the timeout
  8731. is not specified.
  8732. </p>
  8733. </dd>
  8734. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  8735. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  8736. truncating. Default value is 1.
  8737. </p>
  8738. </dd>
  8739. <dt>&lsquo;<samp>private_key</samp>&rsquo;</dt>
  8740. <dd><p>Specify the path of the file containing private key to use during authorization.
  8741. By default libssh searches for keys in the &lsquo;<tt>~/.ssh/</tt>&rsquo; directory.
  8742. </p>
  8743. </dd>
  8744. </dl>
  8745. <p>Example: Play a file stored on remote server.
  8746. </p>
  8747. <div class="example">
  8748. <pre class="example">ffplay sftp://user:password@server_address:22/home/user/resource.mpeg
  8749. </pre></div>
  8750. <a name="librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte"></a>
  8751. <h2 class="section"><a href="ffprobe-all.html#toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">18.27 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></h2>
  8752. <p>Real-Time Messaging Protocol and its variants supported through
  8753. librtmp.
  8754. </p>
  8755. <p>Requires the presence of the librtmp headers and library during
  8756. configuration. You need to explicitly configure the build with
  8757. &quot;&ndash;enable-librtmp&quot;. If enabled this will replace the native RTMP
  8758. protocol.
  8759. </p>
  8760. <p>This protocol provides most client functions and a few server
  8761. functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
  8762. encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
  8763. variants of these encrypted types (RTMPTE, RTMPTS).
  8764. </p>
  8765. <p>The required syntax is:
  8766. </p><div class="example">
  8767. <pre class="example"><var>rtmp_proto</var>://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>] <var>options</var>
  8768. </pre></div>
  8769. <p>where <var>rtmp_proto</var> is one of the strings &quot;rtmp&quot;, &quot;rtmpt&quot;, &quot;rtmpe&quot;,
  8770. &quot;rtmps&quot;, &quot;rtmpte&quot;, &quot;rtmpts&quot; corresponding to each RTMP variant, and
  8771. <var>server</var>, <var>port</var>, <var>app</var> and <var>playpath</var> have the same
  8772. meaning as specified for the RTMP native protocol.
  8773. <var>options</var> contains a list of space-separated options of the form
  8774. <var>key</var>=<var>val</var>.
  8775. </p>
  8776. <p>See the librtmp manual page (man 3 librtmp) for more information.
  8777. </p>
  8778. <p>For example, to stream a file in real-time to an RTMP server using
  8779. <code>ffmpeg</code>:
  8780. </p><div class="example">
  8781. <pre class="example">ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
  8782. </pre></div>
  8783. <p>To play the same stream using <code>ffplay</code>:
  8784. </p><div class="example">
  8785. <pre class="example">ffplay &quot;rtmp://myserver/live/mystream live=1&quot;
  8786. </pre></div>
  8787. <a name="rtp"></a>
  8788. <h2 class="section"><a href="ffprobe-all.html#toc-rtp">18.28 rtp</a></h2>
  8789. <p>Real-time Transport Protocol.
  8790. </p>
  8791. <p>The required syntax for an RTP URL is:
  8792. rtp://<var>hostname</var>[:<var>port</var>][?<var>option</var>=<var>val</var>...]
  8793. </p>
  8794. <p><var>port</var> specifies the RTP port to use.
  8795. </p>
  8796. <p>The following URL options are supported:
  8797. </p>
  8798. <dl compact="compact">
  8799. <dt>&lsquo;<samp>ttl=<var>n</var></samp>&rsquo;</dt>
  8800. <dd><p>Set the TTL (Time-To-Live) value (for multicast only).
  8801. </p>
  8802. </dd>
  8803. <dt>&lsquo;<samp>rtcpport=<var>n</var></samp>&rsquo;</dt>
  8804. <dd><p>Set the remote RTCP port to <var>n</var>.
  8805. </p>
  8806. </dd>
  8807. <dt>&lsquo;<samp>localrtpport=<var>n</var></samp>&rsquo;</dt>
  8808. <dd><p>Set the local RTP port to <var>n</var>.
  8809. </p>
  8810. </dd>
  8811. <dt>&lsquo;<samp>localrtcpport=<var>n</var>'</samp>&rsquo;</dt>
  8812. <dd><p>Set the local RTCP port to <var>n</var>.
  8813. </p>
  8814. </dd>
  8815. <dt>&lsquo;<samp>pkt_size=<var>n</var></samp>&rsquo;</dt>
  8816. <dd><p>Set max packet size (in bytes) to <var>n</var>.
  8817. </p>
  8818. </dd>
  8819. <dt>&lsquo;<samp>connect=0|1</samp>&rsquo;</dt>
  8820. <dd><p>Do a <code>connect()</code> on the UDP socket (if set to 1) or not (if set
  8821. to 0).
  8822. </p>
  8823. </dd>
  8824. <dt>&lsquo;<samp>sources=<var>ip</var>[,<var>ip</var>]</samp>&rsquo;</dt>
  8825. <dd><p>List allowed source IP addresses.
  8826. </p>
  8827. </dd>
  8828. <dt>&lsquo;<samp>block=<var>ip</var>[,<var>ip</var>]</samp>&rsquo;</dt>
  8829. <dd><p>List disallowed (blocked) source IP addresses.
  8830. </p>
  8831. </dd>
  8832. <dt>&lsquo;<samp>write_to_source=0|1</samp>&rsquo;</dt>
  8833. <dd><p>Send packets to the source address of the latest received packet (if
  8834. set to 1) or to a default remote address (if set to 0).
  8835. </p>
  8836. </dd>
  8837. <dt>&lsquo;<samp>localport=<var>n</var></samp>&rsquo;</dt>
  8838. <dd><p>Set the local RTP port to <var>n</var>.
  8839. </p>
  8840. <p>This is a deprecated option. Instead, &lsquo;<samp>localrtpport</samp>&rsquo; should be
  8841. used.
  8842. </p>
  8843. </dd>
  8844. </dl>
  8845. <p>Important notes:
  8846. </p>
  8847. <ol>
  8848. <li>
  8849. If &lsquo;<samp>rtcpport</samp>&rsquo; is not set the RTCP port will be set to the RTP
  8850. port value plus 1.
  8851. </li><li>
  8852. If &lsquo;<samp>localrtpport</samp>&rsquo; (the local RTP port) is not set any available
  8853. port will be used for the local RTP and RTCP ports.
  8854. </li><li>
  8855. If &lsquo;<samp>localrtcpport</samp>&rsquo; (the local RTCP port) is not set it will be
  8856. set to the local RTP port value plus 1.
  8857. </li></ol>
  8858. <a name="rtsp"></a>
  8859. <h2 class="section"><a href="ffprobe-all.html#toc-rtsp">18.29 rtsp</a></h2>
  8860. <p>Real-Time Streaming Protocol.
  8861. </p>
  8862. <p>RTSP is not technically a protocol handler in libavformat, it is a demuxer
  8863. and muxer. The demuxer supports both normal RTSP (with data transferred
  8864. over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
  8865. data transferred over RDT).
  8866. </p>
  8867. <p>The muxer can be used to send a stream using RTSP ANNOUNCE to a server
  8868. supporting it (currently Darwin Streaming Server and Mischa Spiegelmock&rsquo;s
  8869. <a href="https://github.com/revmischa/rtsp-server">RTSP server</a>).
  8870. </p>
  8871. <p>The required syntax for a RTSP url is:
  8872. </p><div class="example">
  8873. <pre class="example">rtsp://<var>hostname</var>[:<var>port</var>]/<var>path</var>
  8874. </pre></div>
  8875. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  8876. line, or set in code via <code>AVOption</code>s or in
  8877. <code>avformat_open_input</code>.
  8878. </p>
  8879. <p>The following options are supported.
  8880. </p>
  8881. <dl compact="compact">
  8882. <dt>&lsquo;<samp>initial_pause</samp>&rsquo;</dt>
  8883. <dd><p>Do not start playing the stream immediately if set to 1. Default value
  8884. is 0.
  8885. </p>
  8886. </dd>
  8887. <dt>&lsquo;<samp>rtsp_transport</samp>&rsquo;</dt>
  8888. <dd><p>Set RTSP transport protocols.
  8889. </p>
  8890. <p>It accepts the following values:
  8891. </p><dl compact="compact">
  8892. <dt>&lsquo;<samp>udp</samp>&rsquo;</dt>
  8893. <dd><p>Use UDP as lower transport protocol.
  8894. </p>
  8895. </dd>
  8896. <dt>&lsquo;<samp>tcp</samp>&rsquo;</dt>
  8897. <dd><p>Use TCP (interleaving within the RTSP control channel) as lower
  8898. transport protocol.
  8899. </p>
  8900. </dd>
  8901. <dt>&lsquo;<samp>udp_multicast</samp>&rsquo;</dt>
  8902. <dd><p>Use UDP multicast as lower transport protocol.
  8903. </p>
  8904. </dd>
  8905. <dt>&lsquo;<samp>http</samp>&rsquo;</dt>
  8906. <dd><p>Use HTTP tunneling as lower transport protocol, which is useful for
  8907. passing proxies.
  8908. </p></dd>
  8909. </dl>
  8910. <p>Multiple lower transport protocols may be specified, in that case they are
  8911. tried one at a time (if the setup of one fails, the next one is tried).
  8912. For the muxer, only the &lsquo;<samp>tcp</samp>&rsquo; and &lsquo;<samp>udp</samp>&rsquo; options are supported.
  8913. </p>
  8914. </dd>
  8915. <dt>&lsquo;<samp>rtsp_flags</samp>&rsquo;</dt>
  8916. <dd><p>Set RTSP flags.
  8917. </p>
  8918. <p>The following values are accepted:
  8919. </p><dl compact="compact">
  8920. <dt>&lsquo;<samp>filter_src</samp>&rsquo;</dt>
  8921. <dd><p>Accept packets only from negotiated peer address and port.
  8922. </p></dd>
  8923. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8924. <dd><p>Act as a server, listening for an incoming connection.
  8925. </p></dd>
  8926. <dt>&lsquo;<samp>prefer_tcp</samp>&rsquo;</dt>
  8927. <dd><p>Try TCP for RTP transport first, if TCP is available as RTSP RTP transport.
  8928. </p></dd>
  8929. </dl>
  8930. <p>Default value is &lsquo;<samp>none</samp>&rsquo;.
  8931. </p>
  8932. </dd>
  8933. <dt>&lsquo;<samp>allowed_media_types</samp>&rsquo;</dt>
  8934. <dd><p>Set media types to accept from the server.
  8935. </p>
  8936. <p>The following flags are accepted:
  8937. </p><dl compact="compact">
  8938. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  8939. <dt>&lsquo;<samp>audio</samp>&rsquo;</dt>
  8940. <dt>&lsquo;<samp>data</samp>&rsquo;</dt>
  8941. </dl>
  8942. <p>By default it accepts all media types.
  8943. </p>
  8944. </dd>
  8945. <dt>&lsquo;<samp>min_port</samp>&rsquo;</dt>
  8946. <dd><p>Set minimum local UDP port. Default value is 5000.
  8947. </p>
  8948. </dd>
  8949. <dt>&lsquo;<samp>max_port</samp>&rsquo;</dt>
  8950. <dd><p>Set maximum local UDP port. Default value is 65000.
  8951. </p>
  8952. </dd>
  8953. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8954. <dd><p>Set maximum timeout (in seconds) to wait for incoming connections.
  8955. </p>
  8956. <p>A value of -1 means infinite (default). This option implies the
  8957. &lsquo;<samp>rtsp_flags</samp>&rsquo; set to &lsquo;<samp>listen</samp>&rsquo;.
  8958. </p>
  8959. </dd>
  8960. <dt>&lsquo;<samp>reorder_queue_size</samp>&rsquo;</dt>
  8961. <dd><p>Set number of packets to buffer for handling of reordered packets.
  8962. </p>
  8963. </dd>
  8964. <dt>&lsquo;<samp>stimeout</samp>&rsquo;</dt>
  8965. <dd><p>Set socket TCP I/O timeout in microseconds.
  8966. </p>
  8967. </dd>
  8968. <dt>&lsquo;<samp>user-agent</samp>&rsquo;</dt>
  8969. <dd><p>Override User-Agent header. If not specified, it defaults to the
  8970. libavformat identifier string.
  8971. </p></dd>
  8972. </dl>
  8973. <p>When receiving data over UDP, the demuxer tries to reorder received packets
  8974. (since they may arrive out of order, or packets may get lost totally). This
  8975. can be disabled by setting the maximum demuxing delay to zero (via
  8976. the <code>max_delay</code> field of AVFormatContext).
  8977. </p>
  8978. <p>When watching multi-bitrate Real-RTSP streams with <code>ffplay</code>, the
  8979. streams to display can be chosen with <code>-vst</code> <var>n</var> and
  8980. <code>-ast</code> <var>n</var> for video and audio respectively, and can be switched
  8981. on the fly by pressing <code>v</code> and <code>a</code>.
  8982. </p>
  8983. <a name="Examples-158"></a>
  8984. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-158">18.29.1 Examples</a></h3>
  8985. <p>The following examples all make use of the <code>ffplay</code> and
  8986. <code>ffmpeg</code> tools.
  8987. </p>
  8988. <ul>
  8989. <li>
  8990. Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
  8991. <div class="example">
  8992. <pre class="example">ffplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
  8993. </pre></div>
  8994. </li><li>
  8995. Watch a stream tunneled over HTTP:
  8996. <div class="example">
  8997. <pre class="example">ffplay -rtsp_transport http rtsp://server/video.mp4
  8998. </pre></div>
  8999. </li><li>
  9000. Send a stream in realtime to a RTSP server, for others to watch:
  9001. <div class="example">
  9002. <pre class="example">ffmpeg -re -i <var>input</var> -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
  9003. </pre></div>
  9004. </li><li>
  9005. Receive a stream in realtime:
  9006. <div class="example">
  9007. <pre class="example">ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp <var>output</var>
  9008. </pre></div>
  9009. </li></ul>
  9010. <a name="sap"></a>
  9011. <h2 class="section"><a href="ffprobe-all.html#toc-sap">18.30 sap</a></h2>
  9012. <p>Session Announcement Protocol (RFC 2974). This is not technically a
  9013. protocol handler in libavformat, it is a muxer and demuxer.
  9014. It is used for signalling of RTP streams, by announcing the SDP for the
  9015. streams regularly on a separate port.
  9016. </p>
  9017. <a name="Muxer"></a>
  9018. <h3 class="subsection"><a href="ffprobe-all.html#toc-Muxer">18.30.1 Muxer</a></h3>
  9019. <p>The syntax for a SAP url given to the muxer is:
  9020. </p><div class="example">
  9021. <pre class="example">sap://<var>destination</var>[:<var>port</var>][?<var>options</var>]
  9022. </pre></div>
  9023. <p>The RTP packets are sent to <var>destination</var> on port <var>port</var>,
  9024. or to port 5004 if no port is specified.
  9025. <var>options</var> is a <code>&amp;</code>-separated list. The following options
  9026. are supported:
  9027. </p>
  9028. <dl compact="compact">
  9029. <dt>&lsquo;<samp>announce_addr=<var>address</var></samp>&rsquo;</dt>
  9030. <dd><p>Specify the destination IP address for sending the announcements to.
  9031. If omitted, the announcements are sent to the commonly used SAP
  9032. announcement multicast address 224.2.127.254 (sap.mcast.net), or
  9033. ff0e::2:7ffe if <var>destination</var> is an IPv6 address.
  9034. </p>
  9035. </dd>
  9036. <dt>&lsquo;<samp>announce_port=<var>port</var></samp>&rsquo;</dt>
  9037. <dd><p>Specify the port to send the announcements on, defaults to
  9038. 9875 if not specified.
  9039. </p>
  9040. </dd>
  9041. <dt>&lsquo;<samp>ttl=<var>ttl</var></samp>&rsquo;</dt>
  9042. <dd><p>Specify the time to live value for the announcements and RTP packets,
  9043. defaults to 255.
  9044. </p>
  9045. </dd>
  9046. <dt>&lsquo;<samp>same_port=<var>0|1</var></samp>&rsquo;</dt>
  9047. <dd><p>If set to 1, send all RTP streams on the same port pair. If zero (the
  9048. default), all streams are sent on unique ports, with each stream on a
  9049. port 2 numbers higher than the previous.
  9050. VLC/Live555 requires this to be set to 1, to be able to receive the stream.
  9051. The RTP stack in libavformat for receiving requires all streams to be sent
  9052. on unique ports.
  9053. </p></dd>
  9054. </dl>
  9055. <p>Example command lines follow.
  9056. </p>
  9057. <p>To broadcast a stream on the local subnet, for watching in VLC:
  9058. </p>
  9059. <div class="example">
  9060. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255?same_port=1
  9061. </pre></div>
  9062. <p>Similarly, for watching in <code>ffplay</code>:
  9063. </p>
  9064. <div class="example">
  9065. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255
  9066. </pre></div>
  9067. <p>And for watching in <code>ffplay</code>, over IPv6:
  9068. </p>
  9069. <div class="example">
  9070. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://[ff0e::1:2:3:4]
  9071. </pre></div>
  9072. <a name="Demuxer"></a>
  9073. <h3 class="subsection"><a href="ffprobe-all.html#toc-Demuxer">18.30.2 Demuxer</a></h3>
  9074. <p>The syntax for a SAP url given to the demuxer is:
  9075. </p><div class="example">
  9076. <pre class="example">sap://[<var>address</var>][:<var>port</var>]
  9077. </pre></div>
  9078. <p><var>address</var> is the multicast address to listen for announcements on,
  9079. if omitted, the default 224.2.127.254 (sap.mcast.net) is used. <var>port</var>
  9080. is the port that is listened on, 9875 if omitted.
  9081. </p>
  9082. <p>The demuxers listens for announcements on the given address and port.
  9083. Once an announcement is received, it tries to receive that particular stream.
  9084. </p>
  9085. <p>Example command lines follow.
  9086. </p>
  9087. <p>To play back the first stream announced on the normal SAP multicast address:
  9088. </p>
  9089. <div class="example">
  9090. <pre class="example">ffplay sap://
  9091. </pre></div>
  9092. <p>To play back the first stream announced on one the default IPv6 SAP multicast address:
  9093. </p>
  9094. <div class="example">
  9095. <pre class="example">ffplay sap://[ff0e::2:7ffe]
  9096. </pre></div>
  9097. <a name="sctp"></a>
  9098. <h2 class="section"><a href="ffprobe-all.html#toc-sctp">18.31 sctp</a></h2>
  9099. <p>Stream Control Transmission Protocol.
  9100. </p>
  9101. <p>The accepted URL syntax is:
  9102. </p><div class="example">
  9103. <pre class="example">sctp://<var>host</var>:<var>port</var>[?<var>options</var>]
  9104. </pre></div>
  9105. <p>The protocol accepts the following options:
  9106. </p><dl compact="compact">
  9107. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  9108. <dd><p>If set to any value, listen for an incoming connection. Outgoing connection is done by default.
  9109. </p>
  9110. </dd>
  9111. <dt>&lsquo;<samp>max_streams</samp>&rsquo;</dt>
  9112. <dd><p>Set the maximum number of streams. By default no limit is set.
  9113. </p></dd>
  9114. </dl>
  9115. <a name="srt"></a>
  9116. <h2 class="section"><a href="ffprobe-all.html#toc-srt">18.32 srt</a></h2>
  9117. <p>Haivision Secure Reliable Transport Protocol via libsrt.
  9118. </p>
  9119. <p>The supported syntax for a SRT URL is:
  9120. </p><div class="example">
  9121. <pre class="example">srt://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9122. </pre></div>
  9123. <p><var>options</var> contains a list of &amp;-separated options of the form
  9124. <var>key</var>=<var>val</var>.
  9125. </p>
  9126. <p>or
  9127. </p>
  9128. <div class="example">
  9129. <pre class="example"><var>options</var> srt://<var>hostname</var>:<var>port</var>
  9130. </pre></div>
  9131. <p><var>options</var> contains a list of &rsquo;-<var>key</var> <var>val</var>&rsquo;
  9132. options.
  9133. </p>
  9134. <p>This protocol accepts the following options.
  9135. </p>
  9136. <dl compact="compact">
  9137. <dt>&lsquo;<samp>connect_timeout=<var>milliseconds</var></samp>&rsquo;</dt>
  9138. <dd><p>Connection timeout; SRT cannot connect for RTT &gt; 1500 msec
  9139. (2 handshake exchanges) with the default connect timeout of
  9140. 3 seconds. This option applies to the caller and rendezvous
  9141. connection modes. The connect timeout is 10 times the value
  9142. set for the rendezvous mode (which can be used as a
  9143. workaround for this connection problem with earlier versions).
  9144. </p>
  9145. </dd>
  9146. <dt>&lsquo;<samp>ffs=<var>bytes</var></samp>&rsquo;</dt>
  9147. <dd><p>Flight Flag Size (Window Size), in bytes. FFS is actually an
  9148. internal parameter and you should set it to not less than
  9149. &lsquo;<samp>recv_buffer_size</samp>&rsquo; and &lsquo;<samp>mss</samp>&rsquo;. The default value
  9150. is relatively large, therefore unless you set a very large receiver buffer,
  9151. you do not need to change this option. Default value is 25600.
  9152. </p>
  9153. </dd>
  9154. <dt>&lsquo;<samp>inputbw=<var>bytes/seconds</var></samp>&rsquo;</dt>
  9155. <dd><p>Sender nominal input rate, in bytes per seconds. Used along with
  9156. &lsquo;<samp>oheadbw</samp>&rsquo;, when &lsquo;<samp>maxbw</samp>&rsquo; is set to relative (0), to
  9157. calculate maximum sending rate when recovery packets are sent
  9158. along with the main media stream:
  9159. &lsquo;<samp>inputbw</samp>&rsquo; * (100 + &lsquo;<samp>oheadbw</samp>&rsquo;) / 100
  9160. if &lsquo;<samp>inputbw</samp>&rsquo; is not set while &lsquo;<samp>maxbw</samp>&rsquo; is set to
  9161. relative (0), the actual input rate is evaluated inside
  9162. the library. Default value is 0.
  9163. </p>
  9164. </dd>
  9165. <dt>&lsquo;<samp>iptos=<var>tos</var></samp>&rsquo;</dt>
  9166. <dd><p>IP Type of Service. Applies to sender only. Default value is 0xB8.
  9167. </p>
  9168. </dd>
  9169. <dt>&lsquo;<samp>ipttl=<var>ttl</var></samp>&rsquo;</dt>
  9170. <dd><p>IP Time To Live. Applies to sender only. Default value is 64.
  9171. </p>
  9172. </dd>
  9173. <dt>&lsquo;<samp>latency=<var>microseconds</var></samp>&rsquo;</dt>
  9174. <dd><p>Timestamp-based Packet Delivery Delay.
  9175. Used to absorb bursts of missed packet retransmissions.
  9176. This flag sets both &lsquo;<samp>rcvlatency</samp>&rsquo; and &lsquo;<samp>peerlatency</samp>&rsquo;
  9177. to the same value. Note that prior to version 1.3.0
  9178. this is the only flag to set the latency, however
  9179. this is effectively equivalent to setting &lsquo;<samp>peerlatency</samp>&rsquo;,
  9180. when side is sender and &lsquo;<samp>rcvlatency</samp>&rsquo;
  9181. when side is receiver, and the bidirectional stream
  9182. sending is not supported.
  9183. </p>
  9184. </dd>
  9185. <dt>&lsquo;<samp>listen_timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9186. <dd><p>Set socket listen timeout.
  9187. </p>
  9188. </dd>
  9189. <dt>&lsquo;<samp>maxbw=<var>bytes/seconds</var></samp>&rsquo;</dt>
  9190. <dd><p>Maximum sending bandwidth, in bytes per seconds.
  9191. -1 infinite (CSRTCC limit is 30mbps)
  9192. 0 relative to input rate (see &lsquo;<samp>inputbw</samp>&rsquo;)
  9193. &gt;0 absolute limit value
  9194. Default value is 0 (relative)
  9195. </p>
  9196. </dd>
  9197. <dt>&lsquo;<samp>mode=<var>caller|listener|rendezvous</var></samp>&rsquo;</dt>
  9198. <dd><p>Connection mode.
  9199. &lsquo;<samp>caller</samp>&rsquo; opens client connection.
  9200. &lsquo;<samp>listener</samp>&rsquo; starts server to listen for incoming connections.
  9201. &lsquo;<samp>rendezvous</samp>&rsquo; use Rendez-Vous connection mode.
  9202. Default value is caller.
  9203. </p>
  9204. </dd>
  9205. <dt>&lsquo;<samp>mss=<var>bytes</var></samp>&rsquo;</dt>
  9206. <dd><p>Maximum Segment Size, in bytes. Used for buffer allocation
  9207. and rate calculation using a packet counter assuming fully
  9208. filled packets. The smallest MSS between the peers is
  9209. used. This is 1500 by default in the overall internet.
  9210. This is the maximum size of the UDP packet and can be
  9211. only decreased, unless you have some unusual dedicated
  9212. network settings. Default value is 1500.
  9213. </p>
  9214. </dd>
  9215. <dt>&lsquo;<samp>nakreport=<var>1|0</var></samp>&rsquo;</dt>
  9216. <dd><p>If set to 1, Receiver will send &lsquo;UMSG_LOSSREPORT&lsquo; messages
  9217. periodically until a lost packet is retransmitted or
  9218. intentionally dropped. Default value is 1.
  9219. </p>
  9220. </dd>
  9221. <dt>&lsquo;<samp>oheadbw=<var>percents</var></samp>&rsquo;</dt>
  9222. <dd><p>Recovery bandwidth overhead above input rate, in percents.
  9223. See &lsquo;<samp>inputbw</samp>&rsquo;. Default value is 25%.
  9224. </p>
  9225. </dd>
  9226. <dt>&lsquo;<samp>passphrase=<var>string</var></samp>&rsquo;</dt>
  9227. <dd><p>HaiCrypt Encryption/Decryption Passphrase string, length
  9228. from 10 to 79 characters. The passphrase is the shared
  9229. secret between the sender and the receiver. It is used
  9230. to generate the Key Encrypting Key using PBKDF2
  9231. (Password-Based Key Derivation Function). It is used
  9232. only if &lsquo;<samp>pbkeylen</samp>&rsquo; is non-zero. It is used on
  9233. the receiver only if the received data is encrypted.
  9234. The configured passphrase cannot be recovered (write-only).
  9235. </p>
  9236. </dd>
  9237. <dt>&lsquo;<samp>enforced_encryption=<var>1|0</var></samp>&rsquo;</dt>
  9238. <dd><p>If true, both connection parties must have the same password
  9239. set (including empty, that is, with no encryption). If the
  9240. password doesn&rsquo;t match or only one side is unencrypted,
  9241. the connection is rejected. Default is true.
  9242. </p>
  9243. </dd>
  9244. <dt>&lsquo;<samp>kmrefreshrate=<var>packets</var></samp>&rsquo;</dt>
  9245. <dd><p>The number of packets to be transmitted after which the
  9246. encryption key is switched to a new key. Default is -1.
  9247. -1 means auto (0x1000000 in srt library). The range for
  9248. this option is integers in the 0 - <code>INT_MAX</code>.
  9249. </p>
  9250. </dd>
  9251. <dt>&lsquo;<samp>kmpreannounce=<var>packets</var></samp>&rsquo;</dt>
  9252. <dd><p>The interval between when a new encryption key is sent and
  9253. when switchover occurs. This value also applies to the
  9254. subsequent interval between when switchover occurs and
  9255. when the old encryption key is decommissioned. Default is -1.
  9256. -1 means auto (0x1000 in srt library). The range for
  9257. this option is integers in the 0 - <code>INT_MAX</code>.
  9258. </p>
  9259. </dd>
  9260. <dt>&lsquo;<samp>payload_size=<var>bytes</var></samp>&rsquo;</dt>
  9261. <dd><p>Sets the maximum declared size of a packet transferred
  9262. during the single call to the sending function in Live
  9263. mode. Use 0 if this value isn&rsquo;t used (which is default in
  9264. file mode).
  9265. Default is -1 (automatic), which typically means MPEG-TS;
  9266. if you are going to use SRT
  9267. to send any different kind of payload, such as, for example,
  9268. wrapping a live stream in very small frames, then you can
  9269. use a bigger maximum frame size, though not greater than
  9270. 1456 bytes.
  9271. </p>
  9272. </dd>
  9273. <dt>&lsquo;<samp>pkt_size=<var>bytes</var></samp>&rsquo;</dt>
  9274. <dd><p>Alias for &lsquo;<samp>payload_size</samp>&rsquo;.
  9275. </p>
  9276. </dd>
  9277. <dt>&lsquo;<samp>peerlatency=<var>microseconds</var></samp>&rsquo;</dt>
  9278. <dd><p>The latency value (as described in &lsquo;<samp>rcvlatency</samp>&rsquo;) that is
  9279. set by the sender side as a minimum value for the receiver.
  9280. </p>
  9281. </dd>
  9282. <dt>&lsquo;<samp>pbkeylen=<var>bytes</var></samp>&rsquo;</dt>
  9283. <dd><p>Sender encryption key length, in bytes.
  9284. Only can be set to 0, 16, 24 and 32.
  9285. Enable sender encryption if not 0.
  9286. Not required on receiver (set to 0),
  9287. key size obtained from sender in HaiCrypt handshake.
  9288. Default value is 0.
  9289. </p>
  9290. </dd>
  9291. <dt>&lsquo;<samp>rcvlatency=<var>microseconds</var></samp>&rsquo;</dt>
  9292. <dd><p>The time that should elapse since the moment when the
  9293. packet was sent and the moment when it&rsquo;s delivered to
  9294. the receiver application in the receiving function.
  9295. This time should be a buffer time large enough to cover
  9296. the time spent for sending, unexpectedly extended RTT
  9297. time, and the time needed to retransmit the lost UDP
  9298. packet. The effective latency value will be the maximum
  9299. of this options&rsquo; value and the value of &lsquo;<samp>peerlatency</samp>&rsquo;
  9300. set by the peer side. Before version 1.3.0 this option
  9301. is only available as &lsquo;<samp>latency</samp>&rsquo;.
  9302. </p>
  9303. </dd>
  9304. <dt>&lsquo;<samp>recv_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9305. <dd><p>Set UDP receive buffer size, expressed in bytes.
  9306. </p>
  9307. </dd>
  9308. <dt>&lsquo;<samp>send_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9309. <dd><p>Set UDP send buffer size, expressed in bytes.
  9310. </p>
  9311. </dd>
  9312. <dt>&lsquo;<samp>timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9313. <dd><p>Set raise error timeouts for read, write and connect operations. Note that the
  9314. SRT library has internal timeouts which can be controlled separately, the
  9315. value set here is only a cap on those.
  9316. </p>
  9317. </dd>
  9318. <dt>&lsquo;<samp>tlpktdrop=<var>1|0</var></samp>&rsquo;</dt>
  9319. <dd><p>Too-late Packet Drop. When enabled on receiver, it skips
  9320. missing packets that have not been delivered in time and
  9321. delivers the following packets to the application when
  9322. their time-to-play has come. It also sends a fake ACK to
  9323. the sender. When enabled on sender and enabled on the
  9324. receiving peer, the sender drops the older packets that
  9325. have no chance of being delivered in time. It was
  9326. automatically enabled in the sender if the receiver
  9327. supports it.
  9328. </p>
  9329. </dd>
  9330. <dt>&lsquo;<samp>sndbuf=<var>bytes</var></samp>&rsquo;</dt>
  9331. <dd><p>Set send buffer size, expressed in bytes.
  9332. </p>
  9333. </dd>
  9334. <dt>&lsquo;<samp>rcvbuf=<var>bytes</var></samp>&rsquo;</dt>
  9335. <dd><p>Set receive buffer size, expressed in bytes.
  9336. </p>
  9337. <p>Receive buffer must not be greater than &lsquo;<samp>ffs</samp>&rsquo;.
  9338. </p>
  9339. </dd>
  9340. <dt>&lsquo;<samp>lossmaxttl=<var>packets</var></samp>&rsquo;</dt>
  9341. <dd><p>The value up to which the Reorder Tolerance may grow. When
  9342. Reorder Tolerance is &gt; 0, then packet loss report is delayed
  9343. until that number of packets come in. Reorder Tolerance
  9344. increases every time a &quot;belated&quot; packet has come, but it
  9345. wasn&rsquo;t due to retransmission (that is, when UDP packets tend
  9346. to come out of order), with the difference between the latest
  9347. sequence and this packet&rsquo;s sequence, and not more than the
  9348. value of this option. By default it&rsquo;s 0, which means that this
  9349. mechanism is turned off, and the loss report is always sent
  9350. immediately upon experiencing a &quot;gap&quot; in sequences.
  9351. </p>
  9352. </dd>
  9353. <dt>&lsquo;<samp>minversion</samp>&rsquo;</dt>
  9354. <dd><p>The minimum SRT version that is required from the peer. A connection
  9355. to a peer that does not satisfy the minimum version requirement
  9356. will be rejected.
  9357. </p>
  9358. <p>The version format in hex is 0xXXYYZZ for x.y.z in human readable
  9359. form.
  9360. </p>
  9361. </dd>
  9362. <dt>&lsquo;<samp>streamid=<var>string</var></samp>&rsquo;</dt>
  9363. <dd><p>A string limited to 512 characters that can be set on the socket prior
  9364. to connecting. This stream ID will be able to be retrieved by the
  9365. listener side from the socket that is returned from srt_accept and
  9366. was connected by a socket with that set stream ID. SRT does not enforce
  9367. any special interpretation of the contents of this string.
  9368. This option doesn’t make sense in Rendezvous connection; the result
  9369. might be that simply one side will override the value from the other
  9370. side and it’s the matter of luck which one would win
  9371. </p>
  9372. </dd>
  9373. <dt>&lsquo;<samp>smoother=<var>live|file</var></samp>&rsquo;</dt>
  9374. <dd><p>The type of Smoother used for the transmission for that socket, which
  9375. is responsible for the transmission and congestion control. The Smoother
  9376. type must be exactly the same on both connecting parties, otherwise
  9377. the connection is rejected.
  9378. </p>
  9379. </dd>
  9380. <dt>&lsquo;<samp>messageapi=<var>1|0</var></samp>&rsquo;</dt>
  9381. <dd><p>When set, this socket uses the Message API, otherwise it uses Buffer
  9382. API. Note that in live mode (see &lsquo;<samp>transtype</samp>&rsquo;) there’s only
  9383. message API available. In File mode you can chose to use one of two modes:
  9384. </p>
  9385. <p>Stream API (default, when this option is false). In this mode you may
  9386. send as many data as you wish with one sending instruction, or even use
  9387. dedicated functions that read directly from a file. The internal facility
  9388. will take care of any speed and congestion control. When receiving, you
  9389. can also receive as many data as desired, the data not extracted will be
  9390. waiting for the next call. There is no boundary between data portions in
  9391. the Stream mode.
  9392. </p>
  9393. <p>Message API. In this mode your single sending instruction passes exactly
  9394. one piece of data that has boundaries (a message). Contrary to Live mode,
  9395. this message may span across multiple UDP packets and the only size
  9396. limitation is that it shall fit as a whole in the sending buffer. The
  9397. receiver shall use as large buffer as necessary to receive the message,
  9398. otherwise the message will not be given up. When the message is not
  9399. complete (not all packets received or there was a packet loss) it will
  9400. not be given up.
  9401. </p>
  9402. </dd>
  9403. <dt>&lsquo;<samp>transtype=<var>live|file</var></samp>&rsquo;</dt>
  9404. <dd><p>Sets the transmission type for the socket, in particular, setting this
  9405. option sets multiple other parameters to their default values as required
  9406. for a particular transmission type.
  9407. </p>
  9408. <p>live: Set options as for live transmission. In this mode, you should
  9409. send by one sending instruction only so many data that fit in one UDP packet,
  9410. and limited to the value defined first in &lsquo;<samp>payload_size</samp>&rsquo; (1316 is
  9411. default in this mode). There is no speed control in this mode, only the
  9412. bandwidth control, if configured, in order to not exceed the bandwidth with
  9413. the overhead transmission (retransmitted and control packets).
  9414. </p>
  9415. <p>file: Set options as for non-live transmission. See &lsquo;<samp>messageapi</samp>&rsquo;
  9416. for further explanations
  9417. </p>
  9418. </dd>
  9419. <dt>&lsquo;<samp>linger=<var>seconds</var></samp>&rsquo;</dt>
  9420. <dd><p>The number of seconds that the socket waits for unsent data when closing.
  9421. Default is -1. -1 means auto (off with 0 seconds in live mode, on with 180
  9422. seconds in file mode). The range for this option is integers in the
  9423. 0 - <code>INT_MAX</code>.
  9424. </p>
  9425. </dd>
  9426. </dl>
  9427. <p>For more information see: <a href="https://github.com/Haivision/srt">https://github.com/Haivision/srt</a>.
  9428. </p>
  9429. <a name="srtp"></a>
  9430. <h2 class="section"><a href="ffprobe-all.html#toc-srtp">18.33 srtp</a></h2>
  9431. <p>Secure Real-time Transport Protocol.
  9432. </p>
  9433. <p>The accepted options are:
  9434. </p><dl compact="compact">
  9435. <dt>&lsquo;<samp>srtp_in_suite</samp>&rsquo;</dt>
  9436. <dt>&lsquo;<samp>srtp_out_suite</samp>&rsquo;</dt>
  9437. <dd><p>Select input and output encoding suites.
  9438. </p>
  9439. <p>Supported values:
  9440. </p><dl compact="compact">
  9441. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_80</samp>&rsquo;</dt>
  9442. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_80</samp>&rsquo;</dt>
  9443. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_32</samp>&rsquo;</dt>
  9444. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_32</samp>&rsquo;</dt>
  9445. </dl>
  9446. </dd>
  9447. <dt>&lsquo;<samp>srtp_in_params</samp>&rsquo;</dt>
  9448. <dt>&lsquo;<samp>srtp_out_params</samp>&rsquo;</dt>
  9449. <dd><p>Set input and output encoding parameters, which are expressed by a
  9450. base64-encoded representation of a binary block. The first 16 bytes of
  9451. this binary block are used as master key, the following 14 bytes are
  9452. used as master salt.
  9453. </p></dd>
  9454. </dl>
  9455. <a name="subfile"></a>
  9456. <h2 class="section"><a href="ffprobe-all.html#toc-subfile">18.34 subfile</a></h2>
  9457. <p>Virtually extract a segment of a file or another stream.
  9458. The underlying stream must be seekable.
  9459. </p>
  9460. <p>Accepted options:
  9461. </p><dl compact="compact">
  9462. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  9463. <dd><p>Start offset of the extracted segment, in bytes.
  9464. </p></dd>
  9465. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  9466. <dd><p>End offset of the extracted segment, in bytes.
  9467. If set to 0, extract till end of file.
  9468. </p></dd>
  9469. </dl>
  9470. <p>Examples:
  9471. </p>
  9472. <p>Extract a chapter from a DVD VOB file (start and end sectors obtained
  9473. externally and multiplied by 2048):
  9474. </p><div class="example">
  9475. <pre class="example">subfile,,start,153391104,end,268142592,,:/media/dvd/VIDEO_TS/VTS_08_1.VOB
  9476. </pre></div>
  9477. <p>Play an AVI file directly from a TAR archive:
  9478. </p><div class="example">
  9479. <pre class="example">subfile,,start,183241728,end,366490624,,:archive.tar
  9480. </pre></div>
  9481. <p>Play a MPEG-TS file from start offset till end:
  9482. </p><div class="example">
  9483. <pre class="example">subfile,,start,32815239,end,0,,:video.ts
  9484. </pre></div>
  9485. <a name="tee"></a>
  9486. <h2 class="section"><a href="ffprobe-all.html#toc-tee">18.35 tee</a></h2>
  9487. <p>Writes the output to multiple protocols. The individual outputs are separated
  9488. by |
  9489. </p>
  9490. <div class="example">
  9491. <pre class="example">tee:file://path/to/local/this.avi|file://path/to/local/that.avi
  9492. </pre></div>
  9493. <a name="tcp"></a>
  9494. <h2 class="section"><a href="ffprobe-all.html#toc-tcp">18.36 tcp</a></h2>
  9495. <p>Transmission Control Protocol.
  9496. </p>
  9497. <p>The required syntax for a TCP url is:
  9498. </p><div class="example">
  9499. <pre class="example">tcp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9500. </pre></div>
  9501. <p><var>options</var> contains a list of &amp;-separated options of the form
  9502. <var>key</var>=<var>val</var>.
  9503. </p>
  9504. <p>The list of supported options follows.
  9505. </p>
  9506. <dl compact="compact">
  9507. <dt>&lsquo;<samp>listen=<var>1|0</var></samp>&rsquo;</dt>
  9508. <dd><p>Listen for an incoming connection. Default value is 0.
  9509. </p>
  9510. </dd>
  9511. <dt>&lsquo;<samp>timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9512. <dd><p>Set raise error timeout, expressed in microseconds.
  9513. </p>
  9514. <p>This option is only relevant in read mode: if no data arrived in more
  9515. than this time interval, raise error.
  9516. </p>
  9517. </dd>
  9518. <dt>&lsquo;<samp>listen_timeout=<var>milliseconds</var></samp>&rsquo;</dt>
  9519. <dd><p>Set listen timeout, expressed in milliseconds.
  9520. </p>
  9521. </dd>
  9522. <dt>&lsquo;<samp>recv_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9523. <dd><p>Set receive buffer size, expressed bytes.
  9524. </p>
  9525. </dd>
  9526. <dt>&lsquo;<samp>send_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9527. <dd><p>Set send buffer size, expressed bytes.
  9528. </p>
  9529. </dd>
  9530. <dt>&lsquo;<samp>tcp_nodelay=<var>1|0</var></samp>&rsquo;</dt>
  9531. <dd><p>Set TCP_NODELAY to disable Nagle&rsquo;s algorithm. Default value is 0.
  9532. </p>
  9533. </dd>
  9534. <dt>&lsquo;<samp>tcp_mss=<var>bytes</var></samp>&rsquo;</dt>
  9535. <dd><p>Set maximum segment size for outgoing TCP packets, expressed in bytes.
  9536. </p></dd>
  9537. </dl>
  9538. <p>The following example shows how to setup a listening TCP connection
  9539. with <code>ffmpeg</code>, which is then accessed with <code>ffplay</code>:
  9540. </p><div class="example">
  9541. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tcp://<var>hostname</var>:<var>port</var>?listen
  9542. ffplay tcp://<var>hostname</var>:<var>port</var>
  9543. </pre></div>
  9544. <a name="tls"></a>
  9545. <h2 class="section"><a href="ffprobe-all.html#toc-tls">18.37 tls</a></h2>
  9546. <p>Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
  9547. </p>
  9548. <p>The required syntax for a TLS/SSL url is:
  9549. </p><div class="example">
  9550. <pre class="example">tls://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9551. </pre></div>
  9552. <p>The following parameters can be set via command line options
  9553. (or in code via <code>AVOption</code>s):
  9554. </p>
  9555. <dl compact="compact">
  9556. <dt>&lsquo;<samp>ca_file, cafile=<var>filename</var></samp>&rsquo;</dt>
  9557. <dd><p>A file containing certificate authority (CA) root certificates to treat
  9558. as trusted. If the linked TLS library contains a default this might not
  9559. need to be specified for verification to work, but not all libraries and
  9560. setups have defaults built in.
  9561. The file must be in OpenSSL PEM format.
  9562. </p>
  9563. </dd>
  9564. <dt>&lsquo;<samp>tls_verify=<var>1|0</var></samp>&rsquo;</dt>
  9565. <dd><p>If enabled, try to verify the peer that we are communicating with.
  9566. Note, if using OpenSSL, this currently only makes sure that the
  9567. peer certificate is signed by one of the root certificates in the CA
  9568. database, but it does not validate that the certificate actually
  9569. matches the host name we are trying to connect to. (With other backends,
  9570. the host name is validated as well.)
  9571. </p>
  9572. <p>This is disabled by default since it requires a CA database to be
  9573. provided by the caller in many cases.
  9574. </p>
  9575. </dd>
  9576. <dt>&lsquo;<samp>cert_file, cert=<var>filename</var></samp>&rsquo;</dt>
  9577. <dd><p>A file containing a certificate to use in the handshake with the peer.
  9578. (When operating as server, in listen mode, this is more often required
  9579. by the peer, while client certificates only are mandated in certain
  9580. setups.)
  9581. </p>
  9582. </dd>
  9583. <dt>&lsquo;<samp>key_file, key=<var>filename</var></samp>&rsquo;</dt>
  9584. <dd><p>A file containing the private key for the certificate.
  9585. </p>
  9586. </dd>
  9587. <dt>&lsquo;<samp>listen=<var>1|0</var></samp>&rsquo;</dt>
  9588. <dd><p>If enabled, listen for connections on the provided port, and assume
  9589. the server role in the handshake instead of the client role.
  9590. </p>
  9591. </dd>
  9592. </dl>
  9593. <p>Example command lines:
  9594. </p>
  9595. <p>To create a TLS/SSL server that serves an input stream.
  9596. </p>
  9597. <div class="example">
  9598. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tls://<var>hostname</var>:<var>port</var>?listen&amp;cert=<var>server.crt</var>&amp;key=<var>server.key</var>
  9599. </pre></div>
  9600. <p>To play back a stream from the TLS/SSL server using <code>ffplay</code>:
  9601. </p>
  9602. <div class="example">
  9603. <pre class="example">ffplay tls://<var>hostname</var>:<var>port</var>
  9604. </pre></div>
  9605. <a name="udp"></a>
  9606. <h2 class="section"><a href="ffprobe-all.html#toc-udp">18.38 udp</a></h2>
  9607. <p>User Datagram Protocol.
  9608. </p>
  9609. <p>The required syntax for an UDP URL is:
  9610. </p><div class="example">
  9611. <pre class="example">udp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9612. </pre></div>
  9613. <p><var>options</var> contains a list of &amp;-separated options of the form <var>key</var>=<var>val</var>.
  9614. </p>
  9615. <p>In case threading is enabled on the system, a circular buffer is used
  9616. to store the incoming data, which allows one to reduce loss of data due to
  9617. UDP socket buffer overruns. The <var>fifo_size</var> and
  9618. <var>overrun_nonfatal</var> options are related to this buffer.
  9619. </p>
  9620. <p>The list of supported options follows.
  9621. </p>
  9622. <dl compact="compact">
  9623. <dt>&lsquo;<samp>buffer_size=<var>size</var></samp>&rsquo;</dt>
  9624. <dd><p>Set the UDP maximum socket buffer size in bytes. This is used to set either
  9625. the receive or send buffer size, depending on what the socket is used for.
  9626. Default is 32 KB for output, 384 KB for input. See also <var>fifo_size</var>.
  9627. </p>
  9628. </dd>
  9629. <dt>&lsquo;<samp>bitrate=<var>bitrate</var></samp>&rsquo;</dt>
  9630. <dd><p>If set to nonzero, the output will have the specified constant bitrate if the
  9631. input has enough packets to sustain it.
  9632. </p>
  9633. </dd>
  9634. <dt>&lsquo;<samp>burst_bits=<var>bits</var></samp>&rsquo;</dt>
  9635. <dd><p>When using <var>bitrate</var> this specifies the maximum number of bits in
  9636. packet bursts.
  9637. </p>
  9638. </dd>
  9639. <dt>&lsquo;<samp>localport=<var>port</var></samp>&rsquo;</dt>
  9640. <dd><p>Override the local UDP port to bind with.
  9641. </p>
  9642. </dd>
  9643. <dt>&lsquo;<samp>localaddr=<var>addr</var></samp>&rsquo;</dt>
  9644. <dd><p>Local IP address of a network interface used for sending packets or joining
  9645. multicast groups.
  9646. </p>
  9647. </dd>
  9648. <dt>&lsquo;<samp>pkt_size=<var>size</var></samp>&rsquo;</dt>
  9649. <dd><p>Set the size in bytes of UDP packets.
  9650. </p>
  9651. </dd>
  9652. <dt>&lsquo;<samp>reuse=<var>1|0</var></samp>&rsquo;</dt>
  9653. <dd><p>Explicitly allow or disallow reusing UDP sockets.
  9654. </p>
  9655. </dd>
  9656. <dt>&lsquo;<samp>ttl=<var>ttl</var></samp>&rsquo;</dt>
  9657. <dd><p>Set the time to live value (for multicast only).
  9658. </p>
  9659. </dd>
  9660. <dt>&lsquo;<samp>connect=<var>1|0</var></samp>&rsquo;</dt>
  9661. <dd><p>Initialize the UDP socket with <code>connect()</code>. In this case, the
  9662. destination address can&rsquo;t be changed with ff_udp_set_remote_url later.
  9663. If the destination address isn&rsquo;t known at the start, this option can
  9664. be specified in ff_udp_set_remote_url, too.
  9665. This allows finding out the source address for the packets with getsockname,
  9666. and makes writes return with AVERROR(ECONNREFUSED) if &quot;destination
  9667. unreachable&quot; is received.
  9668. For receiving, this gives the benefit of only receiving packets from
  9669. the specified peer address/port.
  9670. </p>
  9671. </dd>
  9672. <dt>&lsquo;<samp>sources=<var>address</var>[,<var>address</var>]</samp>&rsquo;</dt>
  9673. <dd><p>Only receive packets sent from the specified addresses. In case of multicast,
  9674. also subscribe to multicast traffic coming from these addresses only.
  9675. </p>
  9676. </dd>
  9677. <dt>&lsquo;<samp>block=<var>address</var>[,<var>address</var>]</samp>&rsquo;</dt>
  9678. <dd><p>Ignore packets sent from the specified addresses. In case of multicast, also
  9679. exclude the source addresses in the multicast subscription.
  9680. </p>
  9681. </dd>
  9682. <dt>&lsquo;<samp>fifo_size=<var>units</var></samp>&rsquo;</dt>
  9683. <dd><p>Set the UDP receiving circular buffer size, expressed as a number of
  9684. packets with size of 188 bytes. If not specified defaults to 7*4096.
  9685. </p>
  9686. </dd>
  9687. <dt>&lsquo;<samp>overrun_nonfatal=<var>1|0</var></samp>&rsquo;</dt>
  9688. <dd><p>Survive in case of UDP receiving circular buffer overrun. Default
  9689. value is 0.
  9690. </p>
  9691. </dd>
  9692. <dt>&lsquo;<samp>timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9693. <dd><p>Set raise error timeout, expressed in microseconds.
  9694. </p>
  9695. <p>This option is only relevant in read mode: if no data arrived in more
  9696. than this time interval, raise error.
  9697. </p>
  9698. </dd>
  9699. <dt>&lsquo;<samp>broadcast=<var>1|0</var></samp>&rsquo;</dt>
  9700. <dd><p>Explicitly allow or disallow UDP broadcasting.
  9701. </p>
  9702. <p>Note that broadcasting may not work properly on networks having
  9703. a broadcast storm protection.
  9704. </p></dd>
  9705. </dl>
  9706. <a name="Examples-163"></a>
  9707. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-163">18.38.1 Examples</a></h3>
  9708. <ul>
  9709. <li>
  9710. Use <code>ffmpeg</code> to stream over UDP to a remote endpoint:
  9711. <div class="example">
  9712. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> udp://<var>hostname</var>:<var>port</var>
  9713. </pre></div>
  9714. </li><li>
  9715. Use <code>ffmpeg</code> to stream in mpegts format over UDP using 188
  9716. sized UDP packets, using a large input buffer:
  9717. <div class="example">
  9718. <pre class="example">ffmpeg -i <var>input</var> -f mpegts udp://<var>hostname</var>:<var>port</var>?pkt_size=188&amp;buffer_size=65535
  9719. </pre></div>
  9720. </li><li>
  9721. Use <code>ffmpeg</code> to receive over UDP from a remote endpoint:
  9722. <div class="example">
  9723. <pre class="example">ffmpeg -i udp://[<var>multicast-address</var>]:<var>port</var> ...
  9724. </pre></div>
  9725. </li></ul>
  9726. <a name="unix"></a>
  9727. <h2 class="section"><a href="ffprobe-all.html#toc-unix">18.39 unix</a></h2>
  9728. <p>Unix local socket
  9729. </p>
  9730. <p>The required syntax for a Unix socket URL is:
  9731. </p>
  9732. <div class="example">
  9733. <pre class="example">unix://<var>filepath</var>
  9734. </pre></div>
  9735. <p>The following parameters can be set via command line options
  9736. (or in code via <code>AVOption</code>s):
  9737. </p>
  9738. <dl compact="compact">
  9739. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  9740. <dd><p>Timeout in ms.
  9741. </p></dd>
  9742. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  9743. <dd><p>Create the Unix socket in listening mode.
  9744. </p></dd>
  9745. </dl>
  9746. <a name="zmq"></a>
  9747. <h2 class="section"><a href="ffprobe-all.html#toc-zmq">18.40 zmq</a></h2>
  9748. <p>ZeroMQ asynchronous messaging using the libzmq library.
  9749. </p>
  9750. <p>This library supports unicast streaming to multiple clients without relying on
  9751. an external server.
  9752. </p>
  9753. <p>The required syntax for streaming or connecting to a stream is:
  9754. </p><div class="example">
  9755. <pre class="example">zmq:tcp://ip-address:port
  9756. </pre></div>
  9757. <p>Example:
  9758. Create a localhost stream on port 5555:
  9759. </p><div class="example">
  9760. <pre class="example">ffmpeg -re -i input -f mpegts zmq:tcp://127.0.0.1:5555
  9761. </pre></div>
  9762. <p>Multiple clients may connect to the stream using:
  9763. </p><div class="example">
  9764. <pre class="example">ffplay zmq:tcp://127.0.0.1:5555
  9765. </pre></div>
  9766. <p>Streaming to multiple clients is implemented using a ZeroMQ Pub-Sub pattern.
  9767. The server side binds to a port and publishes data. Clients connect to the
  9768. server (via IP address/port) and subscribe to the stream. The order in which
  9769. the server and client start generally does not matter.
  9770. </p>
  9771. <p>ffmpeg must be compiled with the &ndash;enable-libzmq option to support
  9772. this protocol.
  9773. </p>
  9774. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  9775. line. The following options are supported:
  9776. </p>
  9777. <dl compact="compact">
  9778. <dt>&lsquo;<samp>pkt_size</samp>&rsquo;</dt>
  9779. <dd><p>Forces the maximum packet size for sending/receiving data. The default value is
  9780. 131,072 bytes. On the server side, this sets the maximum size of sent packets
  9781. via ZeroMQ. On the clients, it sets an internal buffer size for receiving
  9782. packets. Note that pkt_size on the clients should be equal to or greater than
  9783. pkt_size on the server. Otherwise the received message may be truncated causing
  9784. decoding errors.
  9785. </p>
  9786. </dd>
  9787. </dl>
  9788. <a name="Device-Options"></a>
  9789. <h1 class="chapter"><a href="ffprobe-all.html#toc-Device-Options">19 Device Options</a></h1>
  9790. <p>The libavdevice library provides the same interface as
  9791. libavformat. Namely, an input device is considered like a demuxer, and
  9792. an output device like a muxer, and the interface and generic device
  9793. options are the same provided by libavformat (see the ffmpeg-formats
  9794. manual).
  9795. </p>
  9796. <p>In addition each input or output device may support so-called private
  9797. options, which are specific for that component.
  9798. </p>
  9799. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  9800. FFmpeg tools, or by setting the value explicitly in the device
  9801. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  9802. for programmatic use.
  9803. </p>
  9804. <a name="Input-Devices"></a>
  9805. <h1 class="chapter"><a href="ffprobe-all.html#toc-Input-Devices">20 Input Devices</a></h1>
  9806. <p>Input devices are configured elements in FFmpeg which enable accessing
  9807. the data coming from a multimedia device attached to your system.
  9808. </p>
  9809. <p>When you configure your FFmpeg build, all the supported input devices
  9810. are enabled by default. You can list all available ones using the
  9811. configure option &quot;&ndash;list-indevs&quot;.
  9812. </p>
  9813. <p>You can disable all the input devices using the configure option
  9814. &quot;&ndash;disable-indevs&quot;, and selectively enable an input device using the
  9815. option &quot;&ndash;enable-indev=<var>INDEV</var>&quot;, or you can disable a particular
  9816. input device using the option &quot;&ndash;disable-indev=<var>INDEV</var>&quot;.
  9817. </p>
  9818. <p>The option &quot;-devices&quot; of the ff* tools will display the list of
  9819. supported input devices.
  9820. </p>
  9821. <p>A description of the currently available input devices follows.
  9822. </p>
  9823. <a name="alsa"></a>
  9824. <h2 class="section"><a href="ffprobe-all.html#toc-alsa">20.1 alsa</a></h2>
  9825. <p>ALSA (Advanced Linux Sound Architecture) input device.
  9826. </p>
  9827. <p>To enable this input device during configuration you need libasound
  9828. installed on your system.
  9829. </p>
  9830. <p>This device allows capturing from an ALSA device. The name of the
  9831. device to capture has to be an ALSA card identifier.
  9832. </p>
  9833. <p>An ALSA identifier has the syntax:
  9834. </p><div class="example">
  9835. <pre class="example">hw:<var>CARD</var>[,<var>DEV</var>[,<var>SUBDEV</var>]]
  9836. </pre></div>
  9837. <p>where the <var>DEV</var> and <var>SUBDEV</var> components are optional.
  9838. </p>
  9839. <p>The three arguments (in order: <var>CARD</var>,<var>DEV</var>,<var>SUBDEV</var>)
  9840. specify card number or identifier, device number and subdevice number
  9841. (-1 means any).
  9842. </p>
  9843. <p>To see the list of cards currently recognized by your system check the
  9844. files &lsquo;<tt>/proc/asound/cards</tt>&rsquo; and &lsquo;<tt>/proc/asound/devices</tt>&rsquo;.
  9845. </p>
  9846. <p>For example to capture with <code>ffmpeg</code> from an ALSA device with
  9847. card id 0, you may run the command:
  9848. </p><div class="example">
  9849. <pre class="example">ffmpeg -f alsa -i hw:0 alsaout.wav
  9850. </pre></div>
  9851. <p>For more information see:
  9852. <a href="http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html">http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html</a>
  9853. </p>
  9854. <a name="Options-1"></a>
  9855. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-1">20.1.1 Options</a></h3>
  9856. <dl compact="compact">
  9857. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  9858. <dd><p>Set the sample rate in Hz. Default is 48000.
  9859. </p>
  9860. </dd>
  9861. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  9862. <dd><p>Set the number of channels. Default is 2.
  9863. </p>
  9864. </dd>
  9865. </dl>
  9866. <a name="android_005fcamera"></a>
  9867. <h2 class="section"><a href="ffprobe-all.html#toc-android_005fcamera">20.2 android_camera</a></h2>
  9868. <p>Android camera input device.
  9869. </p>
  9870. <p>This input devices uses the Android Camera2 NDK API which is
  9871. available on devices with API level 24+. The availability of
  9872. android_camera is autodetected during configuration.
  9873. </p>
  9874. <p>This device allows capturing from all cameras on an Android device,
  9875. which are integrated into the Camera2 NDK API.
  9876. </p>
  9877. <p>The available cameras are enumerated internally and can be selected
  9878. with the <var>camera_index</var> parameter. The input file string is
  9879. discarded.
  9880. </p>
  9881. <p>Generally the back facing camera has index 0 while the front facing
  9882. camera has index 1.
  9883. </p>
  9884. <a name="Options-8"></a>
  9885. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-8">20.2.1 Options</a></h3>
  9886. <dl compact="compact">
  9887. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  9888. <dd><p>Set the video size given as a string such as 640x480 or hd720.
  9889. Falls back to the first available configuration reported by
  9890. Android if requested video size is not available or by default.
  9891. </p>
  9892. </dd>
  9893. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  9894. <dd><p>Set the video framerate.
  9895. Falls back to the first available configuration reported by
  9896. Android if requested framerate is not available or by default (-1).
  9897. </p>
  9898. </dd>
  9899. <dt>&lsquo;<samp>camera_index</samp>&rsquo;</dt>
  9900. <dd><p>Set the index of the camera to use. Default is 0.
  9901. </p>
  9902. </dd>
  9903. <dt>&lsquo;<samp>input_queue_size</samp>&rsquo;</dt>
  9904. <dd><p>Set the maximum number of frames to buffer. Default is 5.
  9905. </p>
  9906. </dd>
  9907. </dl>
  9908. <a name="avfoundation"></a>
  9909. <h2 class="section"><a href="ffprobe-all.html#toc-avfoundation">20.3 avfoundation</a></h2>
  9910. <p>AVFoundation input device.
  9911. </p>
  9912. <p>AVFoundation is the currently recommended framework by Apple for streamgrabbing on OSX &gt;= 10.7 as well as on iOS.
  9913. </p>
  9914. <p>The input filename has to be given in the following syntax:
  9915. </p><div class="example">
  9916. <pre class="example">-i &quot;[[VIDEO]:[AUDIO]]&quot;
  9917. </pre></div>
  9918. <p>The first entry selects the video input while the latter selects the audio input.
  9919. The stream has to be specified by the device name or the device index as shown by the device list.
  9920. Alternatively, the video and/or audio input device can be chosen by index using the
  9921. &lsquo;<samp>
  9922. -video_device_index &lt;INDEX&gt;
  9923. </samp>&rsquo;
  9924. and/or
  9925. &lsquo;<samp>
  9926. -audio_device_index &lt;INDEX&gt;
  9927. </samp>&rsquo;
  9928. , overriding any
  9929. device name or index given in the input filename.
  9930. </p>
  9931. <p>All available devices can be enumerated by using &lsquo;<samp>-list_devices true</samp>&rsquo;, listing
  9932. all device names and corresponding indices.
  9933. </p>
  9934. <p>There are two device name aliases:
  9935. </p><dl compact="compact">
  9936. <dt><code>default</code></dt>
  9937. <dd><p>Select the AVFoundation default device of the corresponding type.
  9938. </p>
  9939. </dd>
  9940. <dt><code>none</code></dt>
  9941. <dd><p>Do not record the corresponding media type.
  9942. This is equivalent to specifying an empty device name or index.
  9943. </p>
  9944. </dd>
  9945. </dl>
  9946. <a name="Options-17"></a>
  9947. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-17">20.3.1 Options</a></h3>
  9948. <p>AVFoundation supports the following options:
  9949. </p>
  9950. <dl compact="compact">
  9951. <dt>&lsquo;<samp>-list_devices &lt;TRUE|FALSE&gt;</samp>&rsquo;</dt>
  9952. <dd><p>If set to true, a list of all available input devices is given showing all
  9953. device names and indices.
  9954. </p>
  9955. </dd>
  9956. <dt>&lsquo;<samp>-video_device_index &lt;INDEX&gt;</samp>&rsquo;</dt>
  9957. <dd><p>Specify the video device by its index. Overrides anything given in the input filename.
  9958. </p>
  9959. </dd>
  9960. <dt>&lsquo;<samp>-audio_device_index &lt;INDEX&gt;</samp>&rsquo;</dt>
  9961. <dd><p>Specify the audio device by its index. Overrides anything given in the input filename.
  9962. </p>
  9963. </dd>
  9964. <dt>&lsquo;<samp>-pixel_format &lt;FORMAT&gt;</samp>&rsquo;</dt>
  9965. <dd><p>Request the video device to use a specific pixel format.
  9966. If the specified format is not supported, a list of available formats is given
  9967. and the first one in this list is used instead. Available pixel formats are:
  9968. <code>monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0,
  9969. bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10,
  9970. yuv420p, nv12, yuyv422, gray</code>
  9971. </p>
  9972. </dd>
  9973. <dt>&lsquo;<samp>-framerate</samp>&rsquo;</dt>
  9974. <dd><p>Set the grabbing frame rate. Default is <code>ntsc</code>, corresponding to a
  9975. frame rate of <code>30000/1001</code>.
  9976. </p>
  9977. </dd>
  9978. <dt>&lsquo;<samp>-video_size</samp>&rsquo;</dt>
  9979. <dd><p>Set the video frame size.
  9980. </p>
  9981. </dd>
  9982. <dt>&lsquo;<samp>-capture_cursor</samp>&rsquo;</dt>
  9983. <dd><p>Capture the mouse pointer. Default is 0.
  9984. </p>
  9985. </dd>
  9986. <dt>&lsquo;<samp>-capture_mouse_clicks</samp>&rsquo;</dt>
  9987. <dd><p>Capture the screen mouse clicks. Default is 0.
  9988. </p>
  9989. </dd>
  9990. <dt>&lsquo;<samp>-capture_raw_data</samp>&rsquo;</dt>
  9991. <dd><p>Capture the raw device data. Default is 0.
  9992. Using this option may result in receiving the underlying data delivered to the AVFoundation framework. E.g. for muxed devices that sends raw DV data to the framework (like tape-based camcorders), setting this option to false results in extracted video frames captured in the designated pixel format only. Setting this option to true results in receiving the raw DV stream untouched.
  9993. </p></dd>
  9994. </dl>
  9995. <a name="Examples-43"></a>
  9996. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-43">20.3.2 Examples</a></h3>
  9997. <ul>
  9998. <li>
  9999. Print the list of AVFoundation supported devices and exit:
  10000. <div class="example">
  10001. <pre class="example">$ ffmpeg -f avfoundation -list_devices true -i &quot;&quot;
  10002. </pre></div>
  10003. </li><li>
  10004. Record video from video device 0 and audio from audio device 0 into out.avi:
  10005. <div class="example">
  10006. <pre class="example">$ ffmpeg -f avfoundation -i &quot;0:0&quot; out.avi
  10007. </pre></div>
  10008. </li><li>
  10009. Record video from video device 2 and audio from audio device 1 into out.avi:
  10010. <div class="example">
  10011. <pre class="example">$ ffmpeg -f avfoundation -video_device_index 2 -i &quot;:1&quot; out.avi
  10012. </pre></div>
  10013. </li><li>
  10014. Record video from the system default video device using the pixel format bgr0 and do not record any audio into out.avi:
  10015. <div class="example">
  10016. <pre class="example">$ ffmpeg -f avfoundation -pixel_format bgr0 -i &quot;default:none&quot; out.avi
  10017. </pre></div>
  10018. </li><li>
  10019. Record raw DV data from a suitable input device and write the output into out.dv:
  10020. <div class="example">
  10021. <pre class="example">$ ffmpeg -f avfoundation -capture_raw_data true -i &quot;zr100:none&quot; out.dv
  10022. </pre></div>
  10023. </li></ul>
  10024. <a name="bktr"></a>
  10025. <h2 class="section"><a href="ffprobe-all.html#toc-bktr">20.4 bktr</a></h2>
  10026. <p>BSD video input device.
  10027. </p>
  10028. <a name="Options-32"></a>
  10029. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-32">20.4.1 Options</a></h3>
  10030. <dl compact="compact">
  10031. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10032. <dd><p>Set the frame rate.
  10033. </p>
  10034. </dd>
  10035. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10036. <dd><p>Set the video frame size. Default is <code>vga</code>.
  10037. </p>
  10038. </dd>
  10039. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  10040. <dd>
  10041. <p>Available values are:
  10042. </p><dl compact="compact">
  10043. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  10044. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  10045. <dt>&lsquo;<samp>secam</samp>&rsquo;</dt>
  10046. <dt>&lsquo;<samp>paln</samp>&rsquo;</dt>
  10047. <dt>&lsquo;<samp>palm</samp>&rsquo;</dt>
  10048. <dt>&lsquo;<samp>ntscj</samp>&rsquo;</dt>
  10049. </dl>
  10050. </dd>
  10051. </dl>
  10052. <a name="decklink"></a>
  10053. <h2 class="section"><a href="ffprobe-all.html#toc-decklink">20.5 decklink</a></h2>
  10054. <p>The decklink input device provides capture capabilities for Blackmagic
  10055. DeckLink devices.
  10056. </p>
  10057. <p>To enable this input device, you need the Blackmagic DeckLink SDK and you
  10058. need to configure with the appropriate <code>--extra-cflags</code>
  10059. and <code>--extra-ldflags</code>.
  10060. On Windows, you need to run the IDL files through <code>widl</code>.
  10061. </p>
  10062. <p>DeckLink is very picky about the formats it supports. Pixel format of the
  10063. input can be set with &lsquo;<samp>raw_format</samp>&rsquo;.
  10064. Framerate and video size must be determined for your device with
  10065. <code>-list_formats 1</code>. Audio sample rate is always 48 kHz and the number
  10066. of channels can be 2, 8 or 16. Note that all audio channels are bundled in one single
  10067. audio track.
  10068. </p>
  10069. <a name="Options-23"></a>
  10070. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-23">20.5.1 Options</a></h3>
  10071. <dl compact="compact">
  10072. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  10073. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  10074. Defaults to &lsquo;<samp>false</samp>&rsquo;. This option is deprecated, please use the
  10075. <code>-sources</code> option of ffmpeg to list the available input devices.
  10076. </p>
  10077. </dd>
  10078. <dt>&lsquo;<samp>list_formats</samp>&rsquo;</dt>
  10079. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of supported formats and exit.
  10080. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10081. </p>
  10082. </dd>
  10083. <dt>&lsquo;<samp>format_code &lt;FourCC&gt;</samp>&rsquo;</dt>
  10084. <dd><p>This sets the input video format to the format given by the FourCC. To see
  10085. the supported values of your device(s) use &lsquo;<samp>list_formats</samp>&rsquo;.
  10086. Note that there is a FourCC &lsquo;<samp>'pal '</samp>&rsquo; that can also be used
  10087. as &lsquo;<samp>pal</samp>&rsquo; (3 letters).
  10088. Default behavior is autodetection of the input video format, if the hardware
  10089. supports it.
  10090. </p>
  10091. </dd>
  10092. <dt>&lsquo;<samp>raw_format</samp>&rsquo;</dt>
  10093. <dd><p>Set the pixel format of the captured video.
  10094. Available values are:
  10095. </p><dl compact="compact">
  10096. <dt>&lsquo;<samp>uyvy422</samp>&rsquo;</dt>
  10097. <dt>&lsquo;<samp>yuv422p10</samp>&rsquo;</dt>
  10098. <dt>&lsquo;<samp>argb</samp>&rsquo;</dt>
  10099. <dt>&lsquo;<samp>bgra</samp>&rsquo;</dt>
  10100. <dt>&lsquo;<samp>rgb10</samp>&rsquo;</dt>
  10101. </dl>
  10102. </dd>
  10103. <dt>&lsquo;<samp>teletext_lines</samp>&rsquo;</dt>
  10104. <dd><p>If set to nonzero, an additional teletext stream will be captured from the
  10105. vertical ancillary data. Both SD PAL (576i) and HD (1080i or 1080p)
  10106. sources are supported. In case of HD sources, OP47 packets are decoded.
  10107. </p>
  10108. <p>This option is a bitmask of the SD PAL VBI lines captured, specifically lines 6
  10109. to 22, and lines 318 to 335. Line 6 is the LSB in the mask. Selected lines
  10110. which do not contain teletext information will be ignored. You can use the
  10111. special &lsquo;<samp>all</samp>&rsquo; constant to select all possible lines, or
  10112. &lsquo;<samp>standard</samp>&rsquo; to skip lines 6, 318 and 319, which are not compatible with
  10113. all receivers.
  10114. </p>
  10115. <p>For SD sources, ffmpeg needs to be compiled with <code>--enable-libzvbi</code>. For
  10116. HD sources, on older (pre-4K) DeckLink card models you have to capture in 10
  10117. bit mode.
  10118. </p>
  10119. </dd>
  10120. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10121. <dd><p>Defines number of audio channels to capture. Must be &lsquo;<samp>2</samp>&rsquo;, &lsquo;<samp>8</samp>&rsquo; or &lsquo;<samp>16</samp>&rsquo;.
  10122. Defaults to &lsquo;<samp>2</samp>&rsquo;.
  10123. </p>
  10124. </dd>
  10125. <dt>&lsquo;<samp>duplex_mode</samp>&rsquo;</dt>
  10126. <dd><p>Sets the decklink device duplex mode. Must be &lsquo;<samp>unset</samp>&rsquo;, &lsquo;<samp>half</samp>&rsquo; or &lsquo;<samp>full</samp>&rsquo;.
  10127. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  10128. </p>
  10129. </dd>
  10130. <dt>&lsquo;<samp>timecode_format</samp>&rsquo;</dt>
  10131. <dd><p>Timecode type to include in the frame and video stream metadata. Must be
  10132. &lsquo;<samp>none</samp>&rsquo;, &lsquo;<samp>rp188vitc</samp>&rsquo;, &lsquo;<samp>rp188vitc2</samp>&rsquo;, &lsquo;<samp>rp188ltc</samp>&rsquo;,
  10133. &lsquo;<samp>rp188any</samp>&rsquo;, &lsquo;<samp>vitc</samp>&rsquo;, &lsquo;<samp>vitc2</samp>&rsquo;, or &lsquo;<samp>serial</samp>&rsquo;. Defaults to
  10134. &lsquo;<samp>none</samp>&rsquo; (not included).
  10135. </p>
  10136. </dd>
  10137. <dt>&lsquo;<samp>video_input</samp>&rsquo;</dt>
  10138. <dd><p>Sets the video input source. Must be &lsquo;<samp>unset</samp>&rsquo;, &lsquo;<samp>sdi</samp>&rsquo;, &lsquo;<samp>hdmi</samp>&rsquo;,
  10139. &lsquo;<samp>optical_sdi</samp>&rsquo;, &lsquo;<samp>component</samp>&rsquo;, &lsquo;<samp>composite</samp>&rsquo; or &lsquo;<samp>s_video</samp>&rsquo;.
  10140. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  10141. </p>
  10142. </dd>
  10143. <dt>&lsquo;<samp>audio_input</samp>&rsquo;</dt>
  10144. <dd><p>Sets the audio input source. Must be &lsquo;<samp>unset</samp>&rsquo;, &lsquo;<samp>embedded</samp>&rsquo;,
  10145. &lsquo;<samp>aes_ebu</samp>&rsquo;, &lsquo;<samp>analog</samp>&rsquo;, &lsquo;<samp>analog_xlr</samp>&rsquo;, &lsquo;<samp>analog_rca</samp>&rsquo; or
  10146. &lsquo;<samp>microphone</samp>&rsquo;. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  10147. </p>
  10148. </dd>
  10149. <dt>&lsquo;<samp>video_pts</samp>&rsquo;</dt>
  10150. <dd><p>Sets the video packet timestamp source. Must be &lsquo;<samp>video</samp>&rsquo;, &lsquo;<samp>audio</samp>&rsquo;,
  10151. &lsquo;<samp>reference</samp>&rsquo;, &lsquo;<samp>wallclock</samp>&rsquo; or &lsquo;<samp>abs_wallclock</samp>&rsquo;.
  10152. Defaults to &lsquo;<samp>video</samp>&rsquo;.
  10153. </p>
  10154. </dd>
  10155. <dt>&lsquo;<samp>audio_pts</samp>&rsquo;</dt>
  10156. <dd><p>Sets the audio packet timestamp source. Must be &lsquo;<samp>video</samp>&rsquo;, &lsquo;<samp>audio</samp>&rsquo;,
  10157. &lsquo;<samp>reference</samp>&rsquo;, &lsquo;<samp>wallclock</samp>&rsquo; or &lsquo;<samp>abs_wallclock</samp>&rsquo;.
  10158. Defaults to &lsquo;<samp>audio</samp>&rsquo;.
  10159. </p>
  10160. </dd>
  10161. <dt>&lsquo;<samp>draw_bars</samp>&rsquo;</dt>
  10162. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, color bars are drawn in the event of a signal loss.
  10163. Defaults to &lsquo;<samp>true</samp>&rsquo;.
  10164. </p>
  10165. </dd>
  10166. <dt>&lsquo;<samp>queue_size</samp>&rsquo;</dt>
  10167. <dd><p>Sets maximum input buffer size in bytes. If the buffering reaches this value,
  10168. incoming frames will be dropped.
  10169. Defaults to &lsquo;<samp>1073741824</samp>&rsquo;.
  10170. </p>
  10171. </dd>
  10172. <dt>&lsquo;<samp>audio_depth</samp>&rsquo;</dt>
  10173. <dd><p>Sets the audio sample bit depth. Must be &lsquo;<samp>16</samp>&rsquo; or &lsquo;<samp>32</samp>&rsquo;.
  10174. Defaults to &lsquo;<samp>16</samp>&rsquo;.
  10175. </p>
  10176. </dd>
  10177. <dt>&lsquo;<samp>decklink_copyts</samp>&rsquo;</dt>
  10178. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, timestamps are forwarded as they are without removing
  10179. the initial offset.
  10180. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10181. </p>
  10182. </dd>
  10183. <dt>&lsquo;<samp>timestamp_align</samp>&rsquo;</dt>
  10184. <dd><p>Capture start time alignment in seconds. If set to nonzero, input frames are
  10185. dropped till the system timestamp aligns with configured value.
  10186. Alignment difference of up to one frame duration is tolerated.
  10187. This is useful for maintaining input synchronization across N different
  10188. hardware devices deployed for &rsquo;N-way&rsquo; redundancy. The system time of different
  10189. hardware devices should be synchronized with protocols such as NTP or PTP,
  10190. before using this option.
  10191. Note that this method is not foolproof. In some border cases input
  10192. synchronization may not happen due to thread scheduling jitters in the OS.
  10193. Either sync could go wrong by 1 frame or in a rarer case
  10194. &lsquo;<samp>timestamp_align</samp>&rsquo; seconds.
  10195. Defaults to &lsquo;<samp>0</samp>&rsquo;.
  10196. </p>
  10197. </dd>
  10198. <dt>&lsquo;<samp>wait_for_tc (<em>bool</em>)</samp>&rsquo;</dt>
  10199. <dd><p>Drop frames till a frame with timecode is received. Sometimes serial timecode
  10200. isn&rsquo;t received with the first input frame. If that happens, the stored stream
  10201. timecode will be inaccurate. If this option is set to &lsquo;<samp>true</samp>&rsquo;, input frames
  10202. are dropped till a frame with timecode is received.
  10203. Option <var>timecode_format</var> must be specified.
  10204. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10205. </p>
  10206. </dd>
  10207. </dl>
  10208. <a name="Examples-19"></a>
  10209. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-19">20.5.2 Examples</a></h3>
  10210. <ul>
  10211. <li>
  10212. List input devices:
  10213. <div class="example">
  10214. <pre class="example">ffmpeg -sources decklink
  10215. </pre></div>
  10216. </li><li>
  10217. List supported formats:
  10218. <div class="example">
  10219. <pre class="example">ffmpeg -f decklink -list_formats 1 -i 'Intensity Pro'
  10220. </pre></div>
  10221. </li><li>
  10222. Capture video clip at 1080i50:
  10223. <div class="example">
  10224. <pre class="example">ffmpeg -format_code Hi50 -f decklink -i 'Intensity Pro' -c:a copy -c:v copy output.avi
  10225. </pre></div>
  10226. </li><li>
  10227. Capture video clip at 1080i50 10 bit:
  10228. <div class="example">
  10229. <pre class="example">ffmpeg -raw_format yuv422p10 -format_code Hi50 -f decklink -i 'UltraStudio Mini Recorder' -c:a copy -c:v copy output.avi
  10230. </pre></div>
  10231. </li><li>
  10232. Capture video clip at 1080i50 with 16 audio channels:
  10233. <div class="example">
  10234. <pre class="example">ffmpeg -channels 16 -format_code Hi50 -f decklink -i 'UltraStudio Mini Recorder' -c:a copy -c:v copy output.avi
  10235. </pre></div>
  10236. </li></ul>
  10237. <a name="dshow"></a>
  10238. <h2 class="section"><a href="ffprobe-all.html#toc-dshow">20.6 dshow</a></h2>
  10239. <p>Windows DirectShow input device.
  10240. </p>
  10241. <p>DirectShow support is enabled when FFmpeg is built with the mingw-w64 project.
  10242. Currently only audio and video devices are supported.
  10243. </p>
  10244. <p>Multiple devices may be opened as separate inputs, but they may also be
  10245. opened on the same input, which should improve synchronism between them.
  10246. </p>
  10247. <p>The input name should be in the format:
  10248. </p>
  10249. <div class="example">
  10250. <pre class="example"><var>TYPE</var>=<var>NAME</var>[:<var>TYPE</var>=<var>NAME</var>]
  10251. </pre></div>
  10252. <p>where <var>TYPE</var> can be either <var>audio</var> or <var>video</var>,
  10253. and <var>NAME</var> is the device&rsquo;s name or alternative name..
  10254. </p>
  10255. <a name="Options-4"></a>
  10256. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-4">20.6.1 Options</a></h3>
  10257. <p>If no options are specified, the device&rsquo;s defaults are used.
  10258. If the device does not support the requested options, it will
  10259. fail to open.
  10260. </p>
  10261. <dl compact="compact">
  10262. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10263. <dd><p>Set the video size in the captured video.
  10264. </p>
  10265. </dd>
  10266. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10267. <dd><p>Set the frame rate in the captured video.
  10268. </p>
  10269. </dd>
  10270. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10271. <dd><p>Set the sample rate (in Hz) of the captured audio.
  10272. </p>
  10273. </dd>
  10274. <dt>&lsquo;<samp>sample_size</samp>&rsquo;</dt>
  10275. <dd><p>Set the sample size (in bits) of the captured audio.
  10276. </p>
  10277. </dd>
  10278. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10279. <dd><p>Set the number of channels in the captured audio.
  10280. </p>
  10281. </dd>
  10282. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  10283. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  10284. </p>
  10285. </dd>
  10286. <dt>&lsquo;<samp>list_options</samp>&rsquo;</dt>
  10287. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of selected device&rsquo;s options
  10288. and exit.
  10289. </p>
  10290. </dd>
  10291. <dt>&lsquo;<samp>video_device_number</samp>&rsquo;</dt>
  10292. <dd><p>Set video device number for devices with the same name (starts at 0,
  10293. defaults to 0).
  10294. </p>
  10295. </dd>
  10296. <dt>&lsquo;<samp>audio_device_number</samp>&rsquo;</dt>
  10297. <dd><p>Set audio device number for devices with the same name (starts at 0,
  10298. defaults to 0).
  10299. </p>
  10300. </dd>
  10301. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  10302. <dd><p>Select pixel format to be used by DirectShow. This may only be set when
  10303. the video codec is not set or set to rawvideo.
  10304. </p>
  10305. </dd>
  10306. <dt>&lsquo;<samp>audio_buffer_size</samp>&rsquo;</dt>
  10307. <dd><p>Set audio device buffer size in milliseconds (which can directly
  10308. impact latency, depending on the device).
  10309. Defaults to using the audio device&rsquo;s
  10310. default buffer size (typically some multiple of 500ms).
  10311. Setting this value too low can degrade performance.
  10312. See also
  10313. <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd377582(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/dd377582(v=vs.85).aspx</a>
  10314. </p>
  10315. </dd>
  10316. <dt>&lsquo;<samp>video_pin_name</samp>&rsquo;</dt>
  10317. <dd><p>Select video capture pin to use by name or alternative name.
  10318. </p>
  10319. </dd>
  10320. <dt>&lsquo;<samp>audio_pin_name</samp>&rsquo;</dt>
  10321. <dd><p>Select audio capture pin to use by name or alternative name.
  10322. </p>
  10323. </dd>
  10324. <dt>&lsquo;<samp>crossbar_video_input_pin_number</samp>&rsquo;</dt>
  10325. <dd><p>Select video input pin number for crossbar device. This will be
  10326. routed to the crossbar device&rsquo;s Video Decoder output pin.
  10327. Note that changing this value can affect future invocations
  10328. (sets a new default) until system reboot occurs.
  10329. </p>
  10330. </dd>
  10331. <dt>&lsquo;<samp>crossbar_audio_input_pin_number</samp>&rsquo;</dt>
  10332. <dd><p>Select audio input pin number for crossbar device. This will be
  10333. routed to the crossbar device&rsquo;s Audio Decoder output pin.
  10334. Note that changing this value can affect future invocations
  10335. (sets a new default) until system reboot occurs.
  10336. </p>
  10337. </dd>
  10338. <dt>&lsquo;<samp>show_video_device_dialog</samp>&rsquo;</dt>
  10339. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display dialog
  10340. to the end user, allowing them to change video filter properties
  10341. and configurations manually.
  10342. Note that for crossbar devices, adjusting values in this dialog
  10343. may be needed at times to toggle between PAL (25 fps) and NTSC (29.97)
  10344. input frame rates, sizes, interlacing, etc. Changing these values can
  10345. enable different scan rates/frame rates and avoiding green bars at
  10346. the bottom, flickering scan lines, etc.
  10347. Note that with some devices, changing these properties can also affect future
  10348. invocations (sets new defaults) until system reboot occurs.
  10349. </p>
  10350. </dd>
  10351. <dt>&lsquo;<samp>show_audio_device_dialog</samp>&rsquo;</dt>
  10352. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display dialog
  10353. to the end user, allowing them to change audio filter properties
  10354. and configurations manually.
  10355. </p>
  10356. </dd>
  10357. <dt>&lsquo;<samp>show_video_crossbar_connection_dialog</samp>&rsquo;</dt>
  10358. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10359. dialog to the end user, allowing them to manually
  10360. modify crossbar pin routings, when it opens a video device.
  10361. </p>
  10362. </dd>
  10363. <dt>&lsquo;<samp>show_audio_crossbar_connection_dialog</samp>&rsquo;</dt>
  10364. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10365. dialog to the end user, allowing them to manually
  10366. modify crossbar pin routings, when it opens an audio device.
  10367. </p>
  10368. </dd>
  10369. <dt>&lsquo;<samp>show_analog_tv_tuner_dialog</samp>&rsquo;</dt>
  10370. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10371. dialog to the end user, allowing them to manually
  10372. modify TV channels and frequencies.
  10373. </p>
  10374. </dd>
  10375. <dt>&lsquo;<samp>show_analog_tv_tuner_audio_dialog</samp>&rsquo;</dt>
  10376. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10377. dialog to the end user, allowing them to manually
  10378. modify TV audio (like mono vs. stereo, Language A,B or C).
  10379. </p>
  10380. </dd>
  10381. <dt>&lsquo;<samp>audio_device_load</samp>&rsquo;</dt>
  10382. <dd><p>Load an audio capture filter device from file instead of searching
  10383. it by name. It may load additional parameters too, if the filter
  10384. supports the serialization of its properties to.
  10385. To use this an audio capture source has to be specified, but it can
  10386. be anything even fake one.
  10387. </p>
  10388. </dd>
  10389. <dt>&lsquo;<samp>audio_device_save</samp>&rsquo;</dt>
  10390. <dd><p>Save the currently used audio capture filter device and its
  10391. parameters (if the filter supports it) to a file.
  10392. If a file with the same name exists it will be overwritten.
  10393. </p>
  10394. </dd>
  10395. <dt>&lsquo;<samp>video_device_load</samp>&rsquo;</dt>
  10396. <dd><p>Load a video capture filter device from file instead of searching
  10397. it by name. It may load additional parameters too, if the filter
  10398. supports the serialization of its properties to.
  10399. To use this a video capture source has to be specified, but it can
  10400. be anything even fake one.
  10401. </p>
  10402. </dd>
  10403. <dt>&lsquo;<samp>video_device_save</samp>&rsquo;</dt>
  10404. <dd><p>Save the currently used video capture filter device and its
  10405. parameters (if the filter supports it) to a file.
  10406. If a file with the same name exists it will be overwritten.
  10407. </p>
  10408. </dd>
  10409. </dl>
  10410. <a name="Examples-44"></a>
  10411. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-44">20.6.2 Examples</a></h3>
  10412. <ul>
  10413. <li>
  10414. Print the list of DirectShow supported devices and exit:
  10415. <div class="example">
  10416. <pre class="example">$ ffmpeg -list_devices true -f dshow -i dummy
  10417. </pre></div>
  10418. </li><li>
  10419. Open video device <var>Camera</var>:
  10420. <div class="example">
  10421. <pre class="example">$ ffmpeg -f dshow -i video=&quot;Camera&quot;
  10422. </pre></div>
  10423. </li><li>
  10424. Open second video device with name <var>Camera</var>:
  10425. <div class="example">
  10426. <pre class="example">$ ffmpeg -f dshow -video_device_number 1 -i video=&quot;Camera&quot;
  10427. </pre></div>
  10428. </li><li>
  10429. Open video device <var>Camera</var> and audio device <var>Microphone</var>:
  10430. <div class="example">
  10431. <pre class="example">$ ffmpeg -f dshow -i video=&quot;Camera&quot;:audio=&quot;Microphone&quot;
  10432. </pre></div>
  10433. </li><li>
  10434. Print the list of supported options in selected device and exit:
  10435. <div class="example">
  10436. <pre class="example">$ ffmpeg -list_options true -f dshow -i video=&quot;Camera&quot;
  10437. </pre></div>
  10438. </li><li>
  10439. Specify pin names to capture by name or alternative name, specify alternative device name:
  10440. <div class="example">
  10441. <pre class="example">$ ffmpeg -f dshow -audio_pin_name &quot;Audio Out&quot; -video_pin_name 2 -i video=video=&quot;@device_pnp_\\?\pci#ven_1a0a&amp;dev_6200&amp;subsys_62021461&amp;rev_01#4&amp;e2c7dd6&amp;0&amp;00e1#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{ca465100-deb0-4d59-818f-8c477184adf6}&quot;:audio=&quot;Microphone&quot;
  10442. </pre></div>
  10443. </li><li>
  10444. Configure a crossbar device, specifying crossbar pins, allow user to adjust video capture properties at startup:
  10445. <div class="example">
  10446. <pre class="example">$ ffmpeg -f dshow -show_video_device_dialog true -crossbar_video_input_pin_number 0
  10447. -crossbar_audio_input_pin_number 3 -i video=&quot;AVerMedia BDA Analog Capture&quot;:audio=&quot;AVerMedia BDA Analog Capture&quot;
  10448. </pre></div>
  10449. </li></ul>
  10450. <a name="fbdev"></a>
  10451. <h2 class="section"><a href="ffprobe-all.html#toc-fbdev">20.7 fbdev</a></h2>
  10452. <p>Linux framebuffer input device.
  10453. </p>
  10454. <p>The Linux framebuffer is a graphic hardware-independent abstraction
  10455. layer to show graphics on a computer monitor, typically on the
  10456. console. It is accessed through a file device node, usually
  10457. &lsquo;<tt>/dev/fb0</tt>&rsquo;.
  10458. </p>
  10459. <p>For more detailed information read the file
  10460. Documentation/fb/framebuffer.txt included in the Linux source tree.
  10461. </p>
  10462. <p>See also <a href="http://linux-fbdev.sourceforge.net/">http://linux-fbdev.sourceforge.net/</a>, and fbset(1).
  10463. </p>
  10464. <p>To record from the framebuffer device &lsquo;<tt>/dev/fb0</tt>&rsquo; with
  10465. <code>ffmpeg</code>:
  10466. </p><div class="example">
  10467. <pre class="example">ffmpeg -f fbdev -framerate 10 -i /dev/fb0 out.avi
  10468. </pre></div>
  10469. <p>You can take a single screenshot image with the command:
  10470. </p><div class="example">
  10471. <pre class="example">ffmpeg -f fbdev -framerate 1 -i /dev/fb0 -frames:v 1 screenshot.jpeg
  10472. </pre></div>
  10473. <a name="Options-27"></a>
  10474. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-27">20.7.1 Options</a></h3>
  10475. <dl compact="compact">
  10476. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10477. <dd><p>Set the frame rate. Default is 25.
  10478. </p>
  10479. </dd>
  10480. </dl>
  10481. <a name="gdigrab"></a>
  10482. <h2 class="section"><a href="ffprobe-all.html#toc-gdigrab">20.8 gdigrab</a></h2>
  10483. <p>Win32 GDI-based screen capture device.
  10484. </p>
  10485. <p>This device allows you to capture a region of the display on Windows.
  10486. </p>
  10487. <p>There are two options for the input filename:
  10488. </p><div class="example">
  10489. <pre class="example">desktop
  10490. </pre></div>
  10491. <p>or
  10492. </p><div class="example">
  10493. <pre class="example">title=<var>window_title</var>
  10494. </pre></div>
  10495. <p>The first option will capture the entire desktop, or a fixed region of the
  10496. desktop. The second option will instead capture the contents of a single
  10497. window, regardless of its position on the screen.
  10498. </p>
  10499. <p>For example, to grab the entire desktop using <code>ffmpeg</code>:
  10500. </p><div class="example">
  10501. <pre class="example">ffmpeg -f gdigrab -framerate 6 -i desktop out.mpg
  10502. </pre></div>
  10503. <p>Grab a 640x480 region at position <code>10,20</code>:
  10504. </p><div class="example">
  10505. <pre class="example">ffmpeg -f gdigrab -framerate 6 -offset_x 10 -offset_y 20 -video_size vga -i desktop out.mpg
  10506. </pre></div>
  10507. <p>Grab the contents of the window named &quot;Calculator&quot;
  10508. </p><div class="example">
  10509. <pre class="example">ffmpeg -f gdigrab -framerate 6 -i title=Calculator out.mpg
  10510. </pre></div>
  10511. <a name="Options-20"></a>
  10512. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-20">20.8.1 Options</a></h3>
  10513. <dl compact="compact">
  10514. <dt>&lsquo;<samp>draw_mouse</samp>&rsquo;</dt>
  10515. <dd><p>Specify whether to draw the mouse pointer. Use the value <code>0</code> to
  10516. not draw the pointer. Default value is <code>1</code>.
  10517. </p>
  10518. </dd>
  10519. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10520. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  10521. corresponding to a frame rate of <code>30000/1001</code>.
  10522. </p>
  10523. </dd>
  10524. <dt>&lsquo;<samp>show_region</samp>&rsquo;</dt>
  10525. <dd><p>Show grabbed region on screen.
  10526. </p>
  10527. <p>If <var>show_region</var> is specified with <code>1</code>, then the grabbing
  10528. region will be indicated on screen. With this option, it is easy to
  10529. know what is being grabbed if only a portion of the screen is grabbed.
  10530. </p>
  10531. <p>Note that <var>show_region</var> is incompatible with grabbing the contents
  10532. of a single window.
  10533. </p>
  10534. <p>For example:
  10535. </p><div class="example">
  10536. <pre class="example">ffmpeg -f gdigrab -show_region 1 -framerate 6 -video_size cif -offset_x 10 -offset_y 20 -i desktop out.mpg
  10537. </pre></div>
  10538. </dd>
  10539. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10540. <dd><p>Set the video frame size. The default is to capture the full screen if &lsquo;<tt>desktop</tt>&rsquo; is selected, or the full window size if &lsquo;<tt>title=<var>window_title</var></tt>&rsquo; is selected.
  10541. </p>
  10542. </dd>
  10543. <dt>&lsquo;<samp>offset_x</samp>&rsquo;</dt>
  10544. <dd><p>When capturing a region with <var>video_size</var>, set the distance from the left edge of the screen or desktop.
  10545. </p>
  10546. <p>Note that the offset calculation is from the top left corner of the primary monitor on Windows. If you have a monitor positioned to the left of your primary monitor, you will need to use a negative <var>offset_x</var> value to move the region to that monitor.
  10547. </p>
  10548. </dd>
  10549. <dt>&lsquo;<samp>offset_y</samp>&rsquo;</dt>
  10550. <dd><p>When capturing a region with <var>video_size</var>, set the distance from the top edge of the screen or desktop.
  10551. </p>
  10552. <p>Note that the offset calculation is from the top left corner of the primary monitor on Windows. If you have a monitor positioned above your primary monitor, you will need to use a negative <var>offset_y</var> value to move the region to that monitor.
  10553. </p>
  10554. </dd>
  10555. </dl>
  10556. <a name="iec61883"></a>
  10557. <h2 class="section"><a href="ffprobe-all.html#toc-iec61883">20.9 iec61883</a></h2>
  10558. <p>FireWire DV/HDV input device using libiec61883.
  10559. </p>
  10560. <p>To enable this input device, you need libiec61883, libraw1394 and
  10561. libavc1394 installed on your system. Use the configure option
  10562. <code>--enable-libiec61883</code> to compile with the device enabled.
  10563. </p>
  10564. <p>The iec61883 capture device supports capturing from a video device
  10565. connected via IEEE1394 (FireWire), using libiec61883 and the new Linux
  10566. FireWire stack (juju). This is the default DV/HDV input method in Linux
  10567. Kernel 2.6.37 and later, since the old FireWire stack was removed.
  10568. </p>
  10569. <p>Specify the FireWire port to be used as input file, or &quot;auto&quot;
  10570. to choose the first port connected.
  10571. </p>
  10572. <a name="Options-15"></a>
  10573. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-15">20.9.1 Options</a></h3>
  10574. <dl compact="compact">
  10575. <dt>&lsquo;<samp>dvtype</samp>&rsquo;</dt>
  10576. <dd><p>Override autodetection of DV/HDV. This should only be used if auto
  10577. detection does not work, or if usage of a different device type
  10578. should be prohibited. Treating a DV device as HDV (or vice versa) will
  10579. not work and result in undefined behavior.
  10580. The values &lsquo;<samp>auto</samp>&rsquo;, &lsquo;<samp>dv</samp>&rsquo; and &lsquo;<samp>hdv</samp>&rsquo; are supported.
  10581. </p>
  10582. </dd>
  10583. <dt>&lsquo;<samp>dvbuffer</samp>&rsquo;</dt>
  10584. <dd><p>Set maximum size of buffer for incoming data, in frames. For DV, this
  10585. is an exact value. For HDV, it is not frame exact, since HDV does
  10586. not have a fixed frame size.
  10587. </p>
  10588. </dd>
  10589. <dt>&lsquo;<samp>dvguid</samp>&rsquo;</dt>
  10590. <dd><p>Select the capture device by specifying its GUID. Capturing will only
  10591. be performed from the specified device and fails if no device with the
  10592. given GUID is found. This is useful to select the input if multiple
  10593. devices are connected at the same time.
  10594. Look at /sys/bus/firewire/devices to find out the GUIDs.
  10595. </p>
  10596. </dd>
  10597. </dl>
  10598. <a name="Examples-114"></a>
  10599. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-114">20.9.2 Examples</a></h3>
  10600. <ul>
  10601. <li>
  10602. Grab and show the input of a FireWire DV/HDV device.
  10603. <div class="example">
  10604. <pre class="example">ffplay -f iec61883 -i auto
  10605. </pre></div>
  10606. </li><li>
  10607. Grab and record the input of a FireWire DV/HDV device,
  10608. using a packet buffer of 100000 packets if the source is HDV.
  10609. <div class="example">
  10610. <pre class="example">ffmpeg -f iec61883 -i auto -dvbuffer 100000 out.mpg
  10611. </pre></div>
  10612. </li></ul>
  10613. <a name="jack"></a>
  10614. <h2 class="section"><a href="ffprobe-all.html#toc-jack">20.10 jack</a></h2>
  10615. <p>JACK input device.
  10616. </p>
  10617. <p>To enable this input device during configuration you need libjack
  10618. installed on your system.
  10619. </p>
  10620. <p>A JACK input device creates one or more JACK writable clients, one for
  10621. each audio channel, with name <var>client_name</var>:input_<var>N</var>, where
  10622. <var>client_name</var> is the name provided by the application, and <var>N</var>
  10623. is a number which identifies the channel.
  10624. Each writable client will send the acquired data to the FFmpeg input
  10625. device.
  10626. </p>
  10627. <p>Once you have created one or more JACK readable clients, you need to
  10628. connect them to one or more JACK writable clients.
  10629. </p>
  10630. <p>To connect or disconnect JACK clients you can use the <code>jack_connect</code>
  10631. and <code>jack_disconnect</code> programs, or do it through a graphical interface,
  10632. for example with <code>qjackctl</code>.
  10633. </p>
  10634. <p>To list the JACK clients and their properties you can invoke the command
  10635. <code>jack_lsp</code>.
  10636. </p>
  10637. <p>Follows an example which shows how to capture a JACK readable client
  10638. with <code>ffmpeg</code>.
  10639. </p><div class="example">
  10640. <pre class="example"># Create a JACK writable client with name &quot;ffmpeg&quot;.
  10641. $ ffmpeg -f jack -i ffmpeg -y out.wav
  10642. # Start the sample jack_metro readable client.
  10643. $ jack_metro -b 120 -d 0.2 -f 4000
  10644. # List the current JACK clients.
  10645. $ jack_lsp -c
  10646. system:capture_1
  10647. system:capture_2
  10648. system:playback_1
  10649. system:playback_2
  10650. ffmpeg:input_1
  10651. metro:120_bpm
  10652. # Connect metro to the ffmpeg writable client.
  10653. $ jack_connect metro:120_bpm ffmpeg:input_1
  10654. </pre></div>
  10655. <p>For more information read:
  10656. <a href="http://jackaudio.org/">http://jackaudio.org/</a>
  10657. </p>
  10658. <a name="Options-30"></a>
  10659. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-30">20.10.1 Options</a></h3>
  10660. <dl compact="compact">
  10661. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10662. <dd><p>Set the number of channels. Default is 2.
  10663. </p>
  10664. </dd>
  10665. </dl>
  10666. <a name="kmsgrab"></a>
  10667. <h2 class="section"><a href="ffprobe-all.html#toc-kmsgrab">20.11 kmsgrab</a></h2>
  10668. <p>KMS video input device.
  10669. </p>
  10670. <p>Captures the KMS scanout framebuffer associated with a specified CRTC or plane as a
  10671. DRM object that can be passed to other hardware functions.
  10672. </p>
  10673. <p>Requires either DRM master or CAP_SYS_ADMIN to run.
  10674. </p>
  10675. <p>If you don&rsquo;t understand what all of that means, you probably don&rsquo;t want this. Look at
  10676. &lsquo;<samp>x11grab</samp>&rsquo; instead.
  10677. </p>
  10678. <a name="Options-26"></a>
  10679. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-26">20.11.1 Options</a></h3>
  10680. <dl compact="compact">
  10681. <dt>&lsquo;<samp>device</samp>&rsquo;</dt>
  10682. <dd><p>DRM device to capture on. Defaults to &lsquo;<samp>/dev/dri/card0</samp>&rsquo;.
  10683. </p>
  10684. </dd>
  10685. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  10686. <dd><p>Pixel format of the framebuffer. Defaults to &lsquo;<samp>bgr0</samp>&rsquo;.
  10687. </p>
  10688. </dd>
  10689. <dt>&lsquo;<samp>format_modifier</samp>&rsquo;</dt>
  10690. <dd><p>Format modifier to signal on output frames. This is necessary to import correctly into
  10691. some APIs, but can&rsquo;t be autodetected. See the libdrm documentation for possible values.
  10692. </p>
  10693. </dd>
  10694. <dt>&lsquo;<samp>crtc_id</samp>&rsquo;</dt>
  10695. <dd><p>KMS CRTC ID to define the capture source. The first active plane on the given CRTC
  10696. will be used.
  10697. </p>
  10698. </dd>
  10699. <dt>&lsquo;<samp>plane_id</samp>&rsquo;</dt>
  10700. <dd><p>KMS plane ID to define the capture source. Defaults to the first active plane found if
  10701. neither &lsquo;<samp>crtc_id</samp>&rsquo; nor &lsquo;<samp>plane_id</samp>&rsquo; are specified.
  10702. </p>
  10703. </dd>
  10704. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10705. <dd><p>Framerate to capture at. This is not synchronised to any page flipping or framebuffer
  10706. changes - it just defines the interval at which the framebuffer is sampled. Sampling
  10707. faster than the framebuffer update rate will generate independent frames with the same
  10708. content. Defaults to <code>30</code>.
  10709. </p>
  10710. </dd>
  10711. </dl>
  10712. <a name="Examples-152"></a>
  10713. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-152">20.11.2 Examples</a></h3>
  10714. <ul>
  10715. <li>
  10716. Capture from the first active plane, download the result to normal frames and encode.
  10717. This will only work if the framebuffer is both linear and mappable - if not, the result
  10718. may be scrambled or fail to download.
  10719. <div class="example">
  10720. <pre class="example">ffmpeg -f kmsgrab -i - -vf 'hwdownload,format=bgr0' output.mp4
  10721. </pre></div>
  10722. </li><li>
  10723. Capture from CRTC ID 42 at 60fps, map the result to VAAPI, convert to NV12 and encode as H.264.
  10724. <div class="example">
  10725. <pre class="example">ffmpeg -crtc_id 42 -framerate 60 -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi output.mp4
  10726. </pre></div>
  10727. </li><li>
  10728. To capture only part of a plane the output can be cropped - this can be used to capture
  10729. a single window, as long as it has a known absolute position and size. For example, to
  10730. capture and encode the middle quarter of a 1920x1080 plane:
  10731. <div class="example">
  10732. <pre class="example">ffmpeg -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,crop=960:540:480:270,scale_vaapi=960:540:nv12' -c:v h264_vaapi output.mp4
  10733. </pre></div>
  10734. </li></ul>
  10735. <a name="lavfi"></a>
  10736. <h2 class="section"><a href="ffprobe-all.html#toc-lavfi">20.12 lavfi</a></h2>
  10737. <p>Libavfilter input virtual device.
  10738. </p>
  10739. <p>This input device reads data from the open output pads of a libavfilter
  10740. filtergraph.
  10741. </p>
  10742. <p>For each filtergraph open output, the input device will create a
  10743. corresponding stream which is mapped to the generated output. Currently
  10744. only video data is supported. The filtergraph is specified through the
  10745. option &lsquo;<samp>graph</samp>&rsquo;.
  10746. </p>
  10747. <a name="Options-5"></a>
  10748. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-5">20.12.1 Options</a></h3>
  10749. <dl compact="compact">
  10750. <dt>&lsquo;<samp>graph</samp>&rsquo;</dt>
  10751. <dd><p>Specify the filtergraph to use as input. Each video open output must be
  10752. labelled by a unique string of the form &quot;out<var>N</var>&quot;, where <var>N</var> is a
  10753. number starting from 0 corresponding to the mapped input stream
  10754. generated by the device.
  10755. The first unlabelled output is automatically assigned to the &quot;out0&quot;
  10756. label, but all the others need to be specified explicitly.
  10757. </p>
  10758. <p>The suffix &quot;+subcc&quot; can be appended to the output label to create an extra
  10759. stream with the closed captions packets attached to that output
  10760. (experimental; only for EIA-608 / CEA-708 for now).
  10761. The subcc streams are created after all the normal streams, in the order of
  10762. the corresponding stream.
  10763. For example, if there is &quot;out19+subcc&quot;, &quot;out7+subcc&quot; and up to &quot;out42&quot;, the
  10764. stream #43 is subcc for stream #7 and stream #44 is subcc for stream #19.
  10765. </p>
  10766. <p>If not specified defaults to the filename specified for the input
  10767. device.
  10768. </p>
  10769. </dd>
  10770. <dt>&lsquo;<samp>graph_file</samp>&rsquo;</dt>
  10771. <dd><p>Set the filename of the filtergraph to be read and sent to the other
  10772. filters. Syntax of the filtergraph is the same as the one specified by
  10773. the option <var>graph</var>.
  10774. </p>
  10775. </dd>
  10776. <dt>&lsquo;<samp>dumpgraph</samp>&rsquo;</dt>
  10777. <dd><p>Dump graph to stderr.
  10778. </p>
  10779. </dd>
  10780. </dl>
  10781. <a name="Examples-78"></a>
  10782. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-78">20.12.2 Examples</a></h3>
  10783. <ul>
  10784. <li>
  10785. Create a color video stream and play it back with <code>ffplay</code>:
  10786. <div class="example">
  10787. <pre class="example">ffplay -f lavfi -graph &quot;color=c=pink [out0]&quot; dummy
  10788. </pre></div>
  10789. </li><li>
  10790. As the previous example, but use filename for specifying the graph
  10791. description, and omit the &quot;out0&quot; label:
  10792. <div class="example">
  10793. <pre class="example">ffplay -f lavfi color=c=pink
  10794. </pre></div>
  10795. </li><li>
  10796. Create three different video test filtered sources and play them:
  10797. <div class="example">
  10798. <pre class="example">ffplay -f lavfi -graph &quot;testsrc [out0]; testsrc,hflip [out1]; testsrc,negate [out2]&quot; test3
  10799. </pre></div>
  10800. </li><li>
  10801. Read an audio stream from a file using the amovie source and play it
  10802. back with <code>ffplay</code>:
  10803. <div class="example">
  10804. <pre class="example">ffplay -f lavfi &quot;amovie=test.wav&quot;
  10805. </pre></div>
  10806. </li><li>
  10807. Read an audio stream and a video stream and play it back with
  10808. <code>ffplay</code>:
  10809. <div class="example">
  10810. <pre class="example">ffplay -f lavfi &quot;movie=test.avi[out0];amovie=test.wav[out1]&quot;
  10811. </pre></div>
  10812. </li><li>
  10813. Dump decoded frames to images and closed captions to a file (experimental):
  10814. <div class="example">
  10815. <pre class="example">ffmpeg -f lavfi -i &quot;movie=test.ts[out0+subcc]&quot; -map v frame%08d.png -map s -c copy -f rawvideo subcc.bin
  10816. </pre></div>
  10817. </li></ul>
  10818. <a name="libcdio"></a>
  10819. <h2 class="section"><a href="ffprobe-all.html#toc-libcdio">20.13 libcdio</a></h2>
  10820. <p>Audio-CD input device based on libcdio.
  10821. </p>
  10822. <p>To enable this input device during configuration you need libcdio
  10823. installed on your system. It requires the configure option
  10824. <code>--enable-libcdio</code>.
  10825. </p>
  10826. <p>This device allows playing and grabbing from an Audio-CD.
  10827. </p>
  10828. <p>For example to copy with <code>ffmpeg</code> the entire Audio-CD in &lsquo;<tt>/dev/sr0</tt>&rsquo;,
  10829. you may run the command:
  10830. </p><div class="example">
  10831. <pre class="example">ffmpeg -f libcdio -i /dev/sr0 cd.wav
  10832. </pre></div>
  10833. <a name="Options-10"></a>
  10834. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-10">20.13.1 Options</a></h3>
  10835. <dl compact="compact">
  10836. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  10837. <dd><p>Set drive reading speed. Default value is 0.
  10838. </p>
  10839. <p>The speed is specified CD-ROM speed units. The speed is set through
  10840. the libcdio <code>cdio_cddap_speed_set</code> function. On many CD-ROM
  10841. drives, specifying a value too large will result in using the fastest
  10842. speed.
  10843. </p>
  10844. </dd>
  10845. <dt>&lsquo;<samp>paranoia_mode</samp>&rsquo;</dt>
  10846. <dd><p>Set paranoia recovery mode flags. It accepts one of the following values:
  10847. </p>
  10848. <dl compact="compact">
  10849. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  10850. <dt>&lsquo;<samp>verify</samp>&rsquo;</dt>
  10851. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  10852. <dt>&lsquo;<samp>neverskip</samp>&rsquo;</dt>
  10853. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  10854. </dl>
  10855. <p>Default value is &lsquo;<samp>disable</samp>&rsquo;.
  10856. </p>
  10857. <p>For more information about the available recovery modes, consult the
  10858. paranoia project documentation.
  10859. </p></dd>
  10860. </dl>
  10861. <a name="libdc1394"></a>
  10862. <h2 class="section"><a href="ffprobe-all.html#toc-libdc1394">20.14 libdc1394</a></h2>
  10863. <p>IIDC1394 input device, based on libdc1394 and libraw1394.
  10864. </p>
  10865. <p>Requires the configure option <code>--enable-libdc1394</code>.
  10866. </p>
  10867. <a name="Options-28"></a>
  10868. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-28">20.14.1 Options</a></h3>
  10869. <dl compact="compact">
  10870. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10871. <dd><p>Set the frame rate. Default is <code>ntsc</code>, corresponding to a frame
  10872. rate of <code>30000/1001</code>.
  10873. </p>
  10874. </dd>
  10875. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  10876. <dd><p>Select the pixel format. Default is <code>uyvy422</code>.
  10877. </p>
  10878. </dd>
  10879. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10880. <dd><p>Set the video size given as a string such as <code>640x480</code> or <code>hd720</code>.
  10881. Default is <code>qvga</code>.
  10882. </p></dd>
  10883. </dl>
  10884. <a name="openal"></a>
  10885. <h2 class="section"><a href="ffprobe-all.html#toc-openal">20.15 openal</a></h2>
  10886. <p>The OpenAL input device provides audio capture on all systems with a
  10887. working OpenAL 1.1 implementation.
  10888. </p>
  10889. <p>To enable this input device during configuration, you need OpenAL
  10890. headers and libraries installed on your system, and need to configure
  10891. FFmpeg with <code>--enable-openal</code>.
  10892. </p>
  10893. <p>OpenAL headers and libraries should be provided as part of your OpenAL
  10894. implementation, or as an additional download (an SDK). Depending on your
  10895. installation you may need to specify additional flags via the
  10896. <code>--extra-cflags</code> and <code>--extra-ldflags</code> for allowing the build
  10897. system to locate the OpenAL headers and libraries.
  10898. </p>
  10899. <p>An incomplete list of OpenAL implementations follows:
  10900. </p>
  10901. <dl compact="compact">
  10902. <dt><strong>Creative</strong></dt>
  10903. <dd><p>The official Windows implementation, providing hardware acceleration
  10904. with supported devices and software fallback.
  10905. See <a href="http://openal.org/">http://openal.org/</a>.
  10906. </p></dd>
  10907. <dt><strong>OpenAL Soft</strong></dt>
  10908. <dd><p>Portable, open source (LGPL) software implementation. Includes
  10909. backends for the most common sound APIs on the Windows, Linux,
  10910. Solaris, and BSD operating systems.
  10911. See <a href="http://kcat.strangesoft.net/openal.html">http://kcat.strangesoft.net/openal.html</a>.
  10912. </p></dd>
  10913. <dt><strong>Apple</strong></dt>
  10914. <dd><p>OpenAL is part of Core Audio, the official Mac OS X Audio interface.
  10915. See <a href="http://developer.apple.com/technologies/mac/audio-and-video.html">http://developer.apple.com/technologies/mac/audio-and-video.html</a>
  10916. </p></dd>
  10917. </dl>
  10918. <p>This device allows one to capture from an audio input device handled
  10919. through OpenAL.
  10920. </p>
  10921. <p>You need to specify the name of the device to capture in the provided
  10922. filename. If the empty string is provided, the device will
  10923. automatically select the default device. You can get the list of the
  10924. supported devices by using the option <var>list_devices</var>.
  10925. </p>
  10926. <a name="Options-12"></a>
  10927. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-12">20.15.1 Options</a></h3>
  10928. <dl compact="compact">
  10929. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10930. <dd><p>Set the number of channels in the captured audio. Only the values
  10931. &lsquo;<samp>1</samp>&rsquo; (monaural) and &lsquo;<samp>2</samp>&rsquo; (stereo) are currently supported.
  10932. Defaults to &lsquo;<samp>2</samp>&rsquo;.
  10933. </p>
  10934. </dd>
  10935. <dt>&lsquo;<samp>sample_size</samp>&rsquo;</dt>
  10936. <dd><p>Set the sample size (in bits) of the captured audio. Only the values
  10937. &lsquo;<samp>8</samp>&rsquo; and &lsquo;<samp>16</samp>&rsquo; are currently supported. Defaults to
  10938. &lsquo;<samp>16</samp>&rsquo;.
  10939. </p>
  10940. </dd>
  10941. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10942. <dd><p>Set the sample rate (in Hz) of the captured audio.
  10943. Defaults to &lsquo;<samp>44.1k</samp>&rsquo;.
  10944. </p>
  10945. </dd>
  10946. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  10947. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  10948. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10949. </p>
  10950. </dd>
  10951. </dl>
  10952. <a name="Examples-81"></a>
  10953. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-81">20.15.2 Examples</a></h3>
  10954. <p>Print the list of OpenAL supported devices and exit:
  10955. </p><div class="example">
  10956. <pre class="example">$ ffmpeg -list_devices true -f openal -i dummy out.ogg
  10957. </pre></div>
  10958. <p>Capture from the OpenAL device &lsquo;<tt>DR-BT101 via PulseAudio</tt>&rsquo;:
  10959. </p><div class="example">
  10960. <pre class="example">$ ffmpeg -f openal -i 'DR-BT101 via PulseAudio' out.ogg
  10961. </pre></div>
  10962. <p>Capture from the default device (note the empty string &rdquo; as filename):
  10963. </p><div class="example">
  10964. <pre class="example">$ ffmpeg -f openal -i '' out.ogg
  10965. </pre></div>
  10966. <p>Capture from two devices simultaneously, writing to two different files,
  10967. within the same <code>ffmpeg</code> command:
  10968. </p><div class="example">
  10969. <pre class="example">$ ffmpeg -f openal -i 'DR-BT101 via PulseAudio' out1.ogg -f openal -i 'ALSA Default' out2.ogg
  10970. </pre></div>
  10971. <p>Note: not all OpenAL implementations support multiple simultaneous capture -
  10972. try the latest OpenAL Soft if the above does not work.
  10973. </p>
  10974. <a name="oss"></a>
  10975. <h2 class="section"><a href="ffprobe-all.html#toc-oss">20.16 oss</a></h2>
  10976. <p>Open Sound System input device.
  10977. </p>
  10978. <p>The filename to provide to the input device is the device node
  10979. representing the OSS input device, and is usually set to
  10980. &lsquo;<tt>/dev/dsp</tt>&rsquo;.
  10981. </p>
  10982. <p>For example to grab from &lsquo;<tt>/dev/dsp</tt>&rsquo; using <code>ffmpeg</code> use the
  10983. command:
  10984. </p><div class="example">
  10985. <pre class="example">ffmpeg -f oss -i /dev/dsp /tmp/oss.wav
  10986. </pre></div>
  10987. <p>For more information about OSS see:
  10988. <a href="http://manuals.opensound.com/usersguide/dsp.html">http://manuals.opensound.com/usersguide/dsp.html</a>
  10989. </p>
  10990. <a name="Options-34"></a>
  10991. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-34">20.16.1 Options</a></h3>
  10992. <dl compact="compact">
  10993. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10994. <dd><p>Set the sample rate in Hz. Default is 48000.
  10995. </p>
  10996. </dd>
  10997. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10998. <dd><p>Set the number of channels. Default is 2.
  10999. </p>
  11000. </dd>
  11001. </dl>
  11002. <a name="pulse"></a>
  11003. <h2 class="section"><a href="ffprobe-all.html#toc-pulse">20.17 pulse</a></h2>
  11004. <p>PulseAudio input device.
  11005. </p>
  11006. <p>To enable this output device you need to configure FFmpeg with <code>--enable-libpulse</code>.
  11007. </p>
  11008. <p>The filename to provide to the input device is a source device or the
  11009. string &quot;default&quot;
  11010. </p>
  11011. <p>To list the PulseAudio source devices and their properties you can invoke
  11012. the command <code>pactl list sources</code>.
  11013. </p>
  11014. <p>More information about PulseAudio can be found on <a href="http://www.pulseaudio.org">http://www.pulseaudio.org</a>.
  11015. </p>
  11016. <a name="Options-6"></a>
  11017. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-6">20.17.1 Options</a></h3>
  11018. <dl compact="compact">
  11019. <dt>&lsquo;<samp>server</samp>&rsquo;</dt>
  11020. <dd><p>Connect to a specific PulseAudio server, specified by an IP address.
  11021. Default server is used when not provided.
  11022. </p>
  11023. </dd>
  11024. <dt>&lsquo;<samp>name</samp>&rsquo;</dt>
  11025. <dd><p>Specify the application name PulseAudio will use when showing active clients,
  11026. by default it is the <code>LIBAVFORMAT_IDENT</code> string.
  11027. </p>
  11028. </dd>
  11029. <dt>&lsquo;<samp>stream_name</samp>&rsquo;</dt>
  11030. <dd><p>Specify the stream name PulseAudio will use when showing active streams,
  11031. by default it is &quot;record&quot;.
  11032. </p>
  11033. </dd>
  11034. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  11035. <dd><p>Specify the samplerate in Hz, by default 48kHz is used.
  11036. </p>
  11037. </dd>
  11038. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  11039. <dd><p>Specify the channels in use, by default 2 (stereo) is set.
  11040. </p>
  11041. </dd>
  11042. <dt>&lsquo;<samp>frame_size</samp>&rsquo;</dt>
  11043. <dd><p>Specify the number of bytes per frame, by default it is set to 1024.
  11044. </p>
  11045. </dd>
  11046. <dt>&lsquo;<samp>fragment_size</samp>&rsquo;</dt>
  11047. <dd><p>Specify the minimal buffering fragment in PulseAudio, it will affect the
  11048. audio latency. By default it is unset.
  11049. </p>
  11050. </dd>
  11051. <dt>&lsquo;<samp>wallclock</samp>&rsquo;</dt>
  11052. <dd><p>Set the initial PTS using the current time. Default is 1.
  11053. </p>
  11054. </dd>
  11055. </dl>
  11056. <a name="Examples-101"></a>
  11057. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-101">20.17.2 Examples</a></h3>
  11058. <p>Record a stream from default device:
  11059. </p><div class="example">
  11060. <pre class="example">ffmpeg -f pulse -i default /tmp/pulse.wav
  11061. </pre></div>
  11062. <a name="sndio"></a>
  11063. <h2 class="section"><a href="ffprobe-all.html#toc-sndio">20.18 sndio</a></h2>
  11064. <p>sndio input device.
  11065. </p>
  11066. <p>To enable this input device during configuration you need libsndio
  11067. installed on your system.
  11068. </p>
  11069. <p>The filename to provide to the input device is the device node
  11070. representing the sndio input device, and is usually set to
  11071. &lsquo;<tt>/dev/audio0</tt>&rsquo;.
  11072. </p>
  11073. <p>For example to grab from &lsquo;<tt>/dev/audio0</tt>&rsquo; using <code>ffmpeg</code> use the
  11074. command:
  11075. </p><div class="example">
  11076. <pre class="example">ffmpeg -f sndio -i /dev/audio0 /tmp/oss.wav
  11077. </pre></div>
  11078. <a name="Options-31"></a>
  11079. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-31">20.18.1 Options</a></h3>
  11080. <dl compact="compact">
  11081. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  11082. <dd><p>Set the sample rate in Hz. Default is 48000.
  11083. </p>
  11084. </dd>
  11085. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  11086. <dd><p>Set the number of channels. Default is 2.
  11087. </p>
  11088. </dd>
  11089. </dl>
  11090. <a name="video4linux2_002c-v4l2"></a>
  11091. <h2 class="section"><a href="ffprobe-all.html#toc-video4linux2_002c-v4l2">20.19 video4linux2, v4l2</a></h2>
  11092. <p>Video4Linux2 input video device.
  11093. </p>
  11094. <p>&quot;v4l2&quot; can be used as alias for &quot;video4linux2&quot;.
  11095. </p>
  11096. <p>If FFmpeg is built with v4l-utils support (by using the
  11097. <code>--enable-libv4l2</code> configure option), it is possible to use it with the
  11098. <code>-use_libv4l2</code> input device option.
  11099. </p>
  11100. <p>The name of the device to grab is a file device node, usually Linux
  11101. systems tend to automatically create such nodes when the device
  11102. (e.g. an USB webcam) is plugged into the system, and has a name of the
  11103. kind &lsquo;<tt>/dev/video<var>N</var></tt>&rsquo;, where <var>N</var> is a number associated to
  11104. the device.
  11105. </p>
  11106. <p>Video4Linux2 devices usually support a limited set of
  11107. <var>width</var>x<var>height</var> sizes and frame rates. You can check which are
  11108. supported using <code>-list_formats all</code> for Video4Linux2 devices.
  11109. Some devices, like TV cards, support one or more standards. It is possible
  11110. to list all the supported standards using <code>-list_standards all</code>.
  11111. </p>
  11112. <p>The time base for the timestamps is 1 microsecond. Depending on the kernel
  11113. version and configuration, the timestamps may be derived from the real time
  11114. clock (origin at the Unix Epoch) or the monotonic clock (origin usually at
  11115. boot time, unaffected by NTP or manual changes to the clock). The
  11116. &lsquo;<samp>-timestamps abs</samp>&rsquo; or &lsquo;<samp>-ts abs</samp>&rsquo; option can be used to force
  11117. conversion into the real time clock.
  11118. </p>
  11119. <p>Some usage examples of the video4linux2 device with <code>ffmpeg</code>
  11120. and <code>ffplay</code>:
  11121. </p><ul>
  11122. <li>
  11123. List supported formats for a video4linux2 device:
  11124. <div class="example">
  11125. <pre class="example">ffplay -f video4linux2 -list_formats all /dev/video0
  11126. </pre></div>
  11127. </li><li>
  11128. Grab and show the input of a video4linux2 device:
  11129. <div class="example">
  11130. <pre class="example">ffplay -f video4linux2 -framerate 30 -video_size hd720 /dev/video0
  11131. </pre></div>
  11132. </li><li>
  11133. Grab and record the input of a video4linux2 device, leave the
  11134. frame rate and size as previously set:
  11135. <div class="example">
  11136. <pre class="example">ffmpeg -f video4linux2 -input_format mjpeg -i /dev/video0 out.mpeg
  11137. </pre></div>
  11138. </li></ul>
  11139. <p>For more information about Video4Linux, check <a href="http://linuxtv.org/">http://linuxtv.org/</a>.
  11140. </p>
  11141. <a name="Options-24"></a>
  11142. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-24">20.19.1 Options</a></h3>
  11143. <dl compact="compact">
  11144. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  11145. <dd><p>Set the standard. Must be the name of a supported standard. To get a
  11146. list of the supported standards, use the &lsquo;<samp>list_standards</samp>&rsquo;
  11147. option.
  11148. </p>
  11149. </dd>
  11150. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  11151. <dd><p>Set the input channel number. Default to -1, which means using the
  11152. previously selected channel.
  11153. </p>
  11154. </dd>
  11155. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11156. <dd><p>Set the video frame size. The argument must be a string in the form
  11157. <var>WIDTH</var>x<var>HEIGHT</var> or a valid size abbreviation.
  11158. </p>
  11159. </dd>
  11160. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  11161. <dd><p>Select the pixel format (only valid for raw video input).
  11162. </p>
  11163. </dd>
  11164. <dt>&lsquo;<samp>input_format</samp>&rsquo;</dt>
  11165. <dd><p>Set the preferred pixel format (for raw video) or a codec name.
  11166. This option allows one to select the input format, when several are
  11167. available.
  11168. </p>
  11169. </dd>
  11170. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11171. <dd><p>Set the preferred video frame rate.
  11172. </p>
  11173. </dd>
  11174. <dt>&lsquo;<samp>list_formats</samp>&rsquo;</dt>
  11175. <dd><p>List available formats (supported pixel formats, codecs, and frame
  11176. sizes) and exit.
  11177. </p>
  11178. <p>Available values are:
  11179. </p><dl compact="compact">
  11180. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  11181. <dd><p>Show all available (compressed and non-compressed) formats.
  11182. </p>
  11183. </dd>
  11184. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  11185. <dd><p>Show only raw video (non-compressed) formats.
  11186. </p>
  11187. </dd>
  11188. <dt>&lsquo;<samp>compressed</samp>&rsquo;</dt>
  11189. <dd><p>Show only compressed formats.
  11190. </p></dd>
  11191. </dl>
  11192. </dd>
  11193. <dt>&lsquo;<samp>list_standards</samp>&rsquo;</dt>
  11194. <dd><p>List supported standards and exit.
  11195. </p>
  11196. <p>Available values are:
  11197. </p><dl compact="compact">
  11198. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  11199. <dd><p>Show all supported standards.
  11200. </p></dd>
  11201. </dl>
  11202. </dd>
  11203. <dt>&lsquo;<samp>timestamps, ts</samp>&rsquo;</dt>
  11204. <dd><p>Set type of timestamps for grabbed frames.
  11205. </p>
  11206. <p>Available values are:
  11207. </p><dl compact="compact">
  11208. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  11209. <dd><p>Use timestamps from the kernel.
  11210. </p>
  11211. </dd>
  11212. <dt>&lsquo;<samp>abs</samp>&rsquo;</dt>
  11213. <dd><p>Use absolute timestamps (wall clock).
  11214. </p>
  11215. </dd>
  11216. <dt>&lsquo;<samp>mono2abs</samp>&rsquo;</dt>
  11217. <dd><p>Force conversion from monotonic to absolute timestamps.
  11218. </p></dd>
  11219. </dl>
  11220. <p>Default value is <code>default</code>.
  11221. </p>
  11222. </dd>
  11223. <dt>&lsquo;<samp>use_libv4l2</samp>&rsquo;</dt>
  11224. <dd><p>Use libv4l2 (v4l-utils) conversion functions. Default is 0.
  11225. </p>
  11226. </dd>
  11227. </dl>
  11228. <a name="vfwcap"></a>
  11229. <h2 class="section"><a href="ffprobe-all.html#toc-vfwcap">20.20 vfwcap</a></h2>
  11230. <p>VfW (Video for Windows) capture input device.
  11231. </p>
  11232. <p>The filename passed as input is the capture driver number, ranging from
  11233. 0 to 9. You may use &quot;list&quot; as filename to print a list of drivers. Any
  11234. other filename will be interpreted as device number 0.
  11235. </p>
  11236. <a name="Options-14"></a>
  11237. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-14">20.20.1 Options</a></h3>
  11238. <dl compact="compact">
  11239. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11240. <dd><p>Set the video frame size.
  11241. </p>
  11242. </dd>
  11243. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11244. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  11245. corresponding to a frame rate of <code>30000/1001</code>.
  11246. </p>
  11247. </dd>
  11248. </dl>
  11249. <a name="x11grab"></a>
  11250. <h2 class="section"><a href="ffprobe-all.html#toc-x11grab">20.21 x11grab</a></h2>
  11251. <p>X11 video input device.
  11252. </p>
  11253. <p>To enable this input device during configuration you need libxcb
  11254. installed on your system. It will be automatically detected during
  11255. configuration.
  11256. </p>
  11257. <p>This device allows one to capture a region of an X11 display.
  11258. </p>
  11259. <p>The filename passed as input has the syntax:
  11260. </p><div class="example">
  11261. <pre class="example">[<var>hostname</var>]:<var>display_number</var>.<var>screen_number</var>[+<var>x_offset</var>,<var>y_offset</var>]
  11262. </pre></div>
  11263. <p><var>hostname</var>:<var>display_number</var>.<var>screen_number</var> specifies the
  11264. X11 display name of the screen to grab from. <var>hostname</var> can be
  11265. omitted, and defaults to &quot;localhost&quot;. The environment variable
  11266. <code>DISPLAY</code> contains the default display name.
  11267. </p>
  11268. <p><var>x_offset</var> and <var>y_offset</var> specify the offsets of the grabbed
  11269. area with respect to the top-left border of the X11 screen. They
  11270. default to 0.
  11271. </p>
  11272. <p>Check the X11 documentation (e.g. <code>man X</code>) for more detailed
  11273. information.
  11274. </p>
  11275. <p>Use the <code>xdpyinfo</code> program for getting basic information about
  11276. the properties of your X11 display (e.g. grep for &quot;name&quot; or
  11277. &quot;dimensions&quot;).
  11278. </p>
  11279. <p>For example to grab from &lsquo;<tt>:0.0</tt>&rsquo; using <code>ffmpeg</code>:
  11280. </p><div class="example">
  11281. <pre class="example">ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0 out.mpg
  11282. </pre></div>
  11283. <p>Grab at position <code>10,20</code>:
  11284. </p><div class="example">
  11285. <pre class="example">ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
  11286. </pre></div>
  11287. <a name="Options-21"></a>
  11288. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-21">20.21.1 Options</a></h3>
  11289. <dl compact="compact">
  11290. <dt>&lsquo;<samp>draw_mouse</samp>&rsquo;</dt>
  11291. <dd><p>Specify whether to draw the mouse pointer. A value of <code>0</code> specifies
  11292. not to draw the pointer. Default value is <code>1</code>.
  11293. </p>
  11294. </dd>
  11295. <dt>&lsquo;<samp>follow_mouse</samp>&rsquo;</dt>
  11296. <dd><p>Make the grabbed area follow the mouse. The argument can be
  11297. <code>centered</code> or a number of pixels <var>PIXELS</var>.
  11298. </p>
  11299. <p>When it is specified with &quot;centered&quot;, the grabbing region follows the mouse
  11300. pointer and keeps the pointer at the center of region; otherwise, the region
  11301. follows only when the mouse pointer reaches within <var>PIXELS</var> (greater than
  11302. zero) to the edge of region.
  11303. </p>
  11304. <p>For example:
  11305. </p><div class="example">
  11306. <pre class="example">ffmpeg -f x11grab -follow_mouse centered -framerate 25 -video_size cif -i :0.0 out.mpg
  11307. </pre></div>
  11308. <p>To follow only when the mouse pointer reaches within 100 pixels to edge:
  11309. </p><div class="example">
  11310. <pre class="example">ffmpeg -f x11grab -follow_mouse 100 -framerate 25 -video_size cif -i :0.0 out.mpg
  11311. </pre></div>
  11312. </dd>
  11313. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11314. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  11315. corresponding to a frame rate of <code>30000/1001</code>.
  11316. </p>
  11317. </dd>
  11318. <dt>&lsquo;<samp>show_region</samp>&rsquo;</dt>
  11319. <dd><p>Show grabbed region on screen.
  11320. </p>
  11321. <p>If <var>show_region</var> is specified with <code>1</code>, then the grabbing
  11322. region will be indicated on screen. With this option, it is easy to
  11323. know what is being grabbed if only a portion of the screen is grabbed.
  11324. </p>
  11325. </dd>
  11326. <dt>&lsquo;<samp>region_border</samp>&rsquo;</dt>
  11327. <dd><p>Set the region border thickness if &lsquo;<samp>-show_region 1</samp>&rsquo; is used.
  11328. Range is 1 to 128 and default is 3 (XCB-based x11grab only).
  11329. </p>
  11330. <p>For example:
  11331. </p><div class="example">
  11332. <pre class="example">ffmpeg -f x11grab -show_region 1 -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
  11333. </pre></div>
  11334. <p>With <var>follow_mouse</var>:
  11335. </p><div class="example">
  11336. <pre class="example">ffmpeg -f x11grab -follow_mouse centered -show_region 1 -framerate 25 -video_size cif -i :0.0 out.mpg
  11337. </pre></div>
  11338. </dd>
  11339. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11340. <dd><p>Set the video frame size. Default is the full desktop.
  11341. </p>
  11342. </dd>
  11343. <dt>&lsquo;<samp>grab_x</samp>&rsquo;</dt>
  11344. <dt>&lsquo;<samp>grab_y</samp>&rsquo;</dt>
  11345. <dd><p>Set the grabbing region coordinates. They are expressed as offset from
  11346. the top left corner of the X11 window and correspond to the
  11347. <var>x_offset</var> and <var>y_offset</var> parameters in the device name. The
  11348. default value for both options is 0.
  11349. </p></dd>
  11350. </dl>
  11351. <a name="Resampler-Options"></a>
  11352. <h1 class="chapter"><a href="ffprobe-all.html#toc-Resampler-Options">21 Resampler Options</a></h1>
  11353. <p>The audio resampler supports the following named options.
  11354. </p>
  11355. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  11356. FFmpeg tools, <var>option</var>=<var>value</var> for the aresample filter,
  11357. by setting the value explicitly in the
  11358. <code>SwrContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API for
  11359. programmatic use.
  11360. </p>
  11361. <dl compact="compact">
  11362. <dt>&lsquo;<samp>ich, in_channel_count</samp>&rsquo;</dt>
  11363. <dd><p>Set the number of input channels. Default value is 0. Setting this
  11364. value is not mandatory if the corresponding channel layout
  11365. &lsquo;<samp>in_channel_layout</samp>&rsquo; is set.
  11366. </p>
  11367. </dd>
  11368. <dt>&lsquo;<samp>och, out_channel_count</samp>&rsquo;</dt>
  11369. <dd><p>Set the number of output channels. Default value is 0. Setting this
  11370. value is not mandatory if the corresponding channel layout
  11371. &lsquo;<samp>out_channel_layout</samp>&rsquo; is set.
  11372. </p>
  11373. </dd>
  11374. <dt>&lsquo;<samp>uch, used_channel_count</samp>&rsquo;</dt>
  11375. <dd><p>Set the number of used input channels. Default value is 0. This option is
  11376. only used for special remapping.
  11377. </p>
  11378. </dd>
  11379. <dt>&lsquo;<samp>isr, in_sample_rate</samp>&rsquo;</dt>
  11380. <dd><p>Set the input sample rate. Default value is 0.
  11381. </p>
  11382. </dd>
  11383. <dt>&lsquo;<samp>osr, out_sample_rate</samp>&rsquo;</dt>
  11384. <dd><p>Set the output sample rate. Default value is 0.
  11385. </p>
  11386. </dd>
  11387. <dt>&lsquo;<samp>isf, in_sample_fmt</samp>&rsquo;</dt>
  11388. <dd><p>Specify the input sample format. It is set by default to <code>none</code>.
  11389. </p>
  11390. </dd>
  11391. <dt>&lsquo;<samp>osf, out_sample_fmt</samp>&rsquo;</dt>
  11392. <dd><p>Specify the output sample format. It is set by default to <code>none</code>.
  11393. </p>
  11394. </dd>
  11395. <dt>&lsquo;<samp>tsf, internal_sample_fmt</samp>&rsquo;</dt>
  11396. <dd><p>Set the internal sample format. Default value is <code>none</code>.
  11397. This will automatically be chosen when it is not explicitly set.
  11398. </p>
  11399. </dd>
  11400. <dt>&lsquo;<samp>icl, in_channel_layout</samp>&rsquo;</dt>
  11401. <dt>&lsquo;<samp>ocl, out_channel_layout</samp>&rsquo;</dt>
  11402. <dd><p>Set the input/output channel layout.
  11403. </p>
  11404. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  11405. for the required syntax.
  11406. </p>
  11407. </dd>
  11408. <dt>&lsquo;<samp>clev, center_mix_level</samp>&rsquo;</dt>
  11409. <dd><p>Set the center mix level. It is a value expressed in deciBel, and must be
  11410. in the interval [-32,32].
  11411. </p>
  11412. </dd>
  11413. <dt>&lsquo;<samp>slev, surround_mix_level</samp>&rsquo;</dt>
  11414. <dd><p>Set the surround mix level. It is a value expressed in deciBel, and must
  11415. be in the interval [-32,32].
  11416. </p>
  11417. </dd>
  11418. <dt>&lsquo;<samp>lfe_mix_level</samp>&rsquo;</dt>
  11419. <dd><p>Set LFE mix into non LFE level. It is used when there is a LFE input but no
  11420. LFE output. It is a value expressed in deciBel, and must
  11421. be in the interval [-32,32].
  11422. </p>
  11423. </dd>
  11424. <dt>&lsquo;<samp>rmvol, rematrix_volume</samp>&rsquo;</dt>
  11425. <dd><p>Set rematrix volume. Default value is 1.0.
  11426. </p>
  11427. </dd>
  11428. <dt>&lsquo;<samp>rematrix_maxval</samp>&rsquo;</dt>
  11429. <dd><p>Set maximum output value for rematrixing.
  11430. This can be used to prevent clipping vs. preventing volume reduction.
  11431. A value of 1.0 prevents clipping.
  11432. </p>
  11433. </dd>
  11434. <dt>&lsquo;<samp>flags, swr_flags</samp>&rsquo;</dt>
  11435. <dd><p>Set flags used by the converter. Default value is 0.
  11436. </p>
  11437. <p>It supports the following individual flags:
  11438. </p><dl compact="compact">
  11439. <dt>&lsquo;<samp>res</samp>&rsquo;</dt>
  11440. <dd><p>force resampling, this flag forces resampling to be used even when the
  11441. input and output sample rates match.
  11442. </p></dd>
  11443. </dl>
  11444. </dd>
  11445. <dt>&lsquo;<samp>dither_scale</samp>&rsquo;</dt>
  11446. <dd><p>Set the dither scale. Default value is 1.
  11447. </p>
  11448. </dd>
  11449. <dt>&lsquo;<samp>dither_method</samp>&rsquo;</dt>
  11450. <dd><p>Set dither method. Default value is 0.
  11451. </p>
  11452. <p>Supported values:
  11453. </p><dl compact="compact">
  11454. <dt>&lsquo;<samp>rectangular</samp>&rsquo;</dt>
  11455. <dd><p>select rectangular dither
  11456. </p></dd>
  11457. <dt>&lsquo;<samp>triangular</samp>&rsquo;</dt>
  11458. <dd><p>select triangular dither
  11459. </p></dd>
  11460. <dt>&lsquo;<samp>triangular_hp</samp>&rsquo;</dt>
  11461. <dd><p>select triangular dither with high pass
  11462. </p></dd>
  11463. <dt>&lsquo;<samp>lipshitz</samp>&rsquo;</dt>
  11464. <dd><p>select Lipshitz noise shaping dither.
  11465. </p></dd>
  11466. <dt>&lsquo;<samp>shibata</samp>&rsquo;</dt>
  11467. <dd><p>select Shibata noise shaping dither.
  11468. </p></dd>
  11469. <dt>&lsquo;<samp>low_shibata</samp>&rsquo;</dt>
  11470. <dd><p>select low Shibata noise shaping dither.
  11471. </p></dd>
  11472. <dt>&lsquo;<samp>high_shibata</samp>&rsquo;</dt>
  11473. <dd><p>select high Shibata noise shaping dither.
  11474. </p></dd>
  11475. <dt>&lsquo;<samp>f_weighted</samp>&rsquo;</dt>
  11476. <dd><p>select f-weighted noise shaping dither
  11477. </p></dd>
  11478. <dt>&lsquo;<samp>modified_e_weighted</samp>&rsquo;</dt>
  11479. <dd><p>select modified-e-weighted noise shaping dither
  11480. </p></dd>
  11481. <dt>&lsquo;<samp>improved_e_weighted</samp>&rsquo;</dt>
  11482. <dd><p>select improved-e-weighted noise shaping dither
  11483. </p>
  11484. </dd>
  11485. </dl>
  11486. </dd>
  11487. <dt>&lsquo;<samp>resampler</samp>&rsquo;</dt>
  11488. <dd><p>Set resampling engine. Default value is swr.
  11489. </p>
  11490. <p>Supported values:
  11491. </p><dl compact="compact">
  11492. <dt>&lsquo;<samp>swr</samp>&rsquo;</dt>
  11493. <dd><p>select the native SW Resampler; filter options precision and cheby are not
  11494. applicable in this case.
  11495. </p></dd>
  11496. <dt>&lsquo;<samp>soxr</samp>&rsquo;</dt>
  11497. <dd><p>select the SoX Resampler (where available); compensation, and filter options
  11498. filter_size, phase_shift, exact_rational, filter_type &amp; kaiser_beta, are not
  11499. applicable in this case.
  11500. </p></dd>
  11501. </dl>
  11502. </dd>
  11503. <dt>&lsquo;<samp>filter_size</samp>&rsquo;</dt>
  11504. <dd><p>For swr only, set resampling filter size, default value is 32.
  11505. </p>
  11506. </dd>
  11507. <dt>&lsquo;<samp>phase_shift</samp>&rsquo;</dt>
  11508. <dd><p>For swr only, set resampling phase shift, default value is 10, and must be in
  11509. the interval [0,30].
  11510. </p>
  11511. </dd>
  11512. <dt>&lsquo;<samp>linear_interp</samp>&rsquo;</dt>
  11513. <dd><p>Use linear interpolation when enabled (the default). Disable it if you want
  11514. to preserve speed instead of quality when exact_rational fails.
  11515. </p>
  11516. </dd>
  11517. <dt>&lsquo;<samp>exact_rational</samp>&rsquo;</dt>
  11518. <dd><p>For swr only, when enabled, try to use exact phase_count based on input and
  11519. output sample rate. However, if it is larger than <code>1 &lt;&lt; phase_shift</code>,
  11520. the phase_count will be <code>1 &lt;&lt; phase_shift</code> as fallback. Default is enabled.
  11521. </p>
  11522. </dd>
  11523. <dt>&lsquo;<samp>cutoff</samp>&rsquo;</dt>
  11524. <dd><p>Set cutoff frequency (swr: 6dB point; soxr: 0dB point) ratio; must be a float
  11525. value between 0 and 1. Default value is 0.97 with swr, and 0.91 with soxr
  11526. (which, with a sample-rate of 44100, preserves the entire audio band to 20kHz).
  11527. </p>
  11528. </dd>
  11529. <dt>&lsquo;<samp>precision</samp>&rsquo;</dt>
  11530. <dd><p>For soxr only, the precision in bits to which the resampled signal will be
  11531. calculated. The default value of 20 (which, with suitable dithering, is
  11532. appropriate for a destination bit-depth of 16) gives SoX&rsquo;s &rsquo;High Quality&rsquo;; a
  11533. value of 28 gives SoX&rsquo;s &rsquo;Very High Quality&rsquo;.
  11534. </p>
  11535. </dd>
  11536. <dt>&lsquo;<samp>cheby</samp>&rsquo;</dt>
  11537. <dd><p>For soxr only, selects passband rolloff none (Chebyshev) &amp; higher-precision
  11538. approximation for &rsquo;irrational&rsquo; ratios. Default value is 0.
  11539. </p>
  11540. </dd>
  11541. <dt>&lsquo;<samp>async</samp>&rsquo;</dt>
  11542. <dd><p>For swr only, simple 1 parameter audio sync to timestamps using stretching,
  11543. squeezing, filling and trimming. Setting this to 1 will enable filling and
  11544. trimming, larger values represent the maximum amount in samples that the data
  11545. may be stretched or squeezed for each second.
  11546. Default value is 0, thus no compensation is applied to make the samples match
  11547. the audio timestamps.
  11548. </p>
  11549. </dd>
  11550. <dt>&lsquo;<samp>first_pts</samp>&rsquo;</dt>
  11551. <dd><p>For swr only, assume the first pts should be this value. The time unit is 1 / sample rate.
  11552. This allows for padding/trimming at the start of stream. By default, no
  11553. assumption is made about the first frame&rsquo;s expected pts, so no padding or
  11554. trimming is done. For example, this could be set to 0 to pad the beginning with
  11555. silence if an audio stream starts after the video stream or to trim any samples
  11556. with a negative pts due to encoder delay.
  11557. </p>
  11558. </dd>
  11559. <dt>&lsquo;<samp>min_comp</samp>&rsquo;</dt>
  11560. <dd><p>For swr only, set the minimum difference between timestamps and audio data (in
  11561. seconds) to trigger stretching/squeezing/filling or trimming of the
  11562. data to make it match the timestamps. The default is that
  11563. stretching/squeezing/filling and trimming is disabled
  11564. (&lsquo;<samp>min_comp</samp>&rsquo; = <code>FLT_MAX</code>).
  11565. </p>
  11566. </dd>
  11567. <dt>&lsquo;<samp>min_hard_comp</samp>&rsquo;</dt>
  11568. <dd><p>For swr only, set the minimum difference between timestamps and audio data (in
  11569. seconds) to trigger adding/dropping samples to make it match the
  11570. timestamps. This option effectively is a threshold to select between
  11571. hard (trim/fill) and soft (squeeze/stretch) compensation. Note that
  11572. all compensation is by default disabled through &lsquo;<samp>min_comp</samp>&rsquo;.
  11573. The default is 0.1.
  11574. </p>
  11575. </dd>
  11576. <dt>&lsquo;<samp>comp_duration</samp>&rsquo;</dt>
  11577. <dd><p>For swr only, set duration (in seconds) over which data is stretched/squeezed
  11578. to make it match the timestamps. Must be a non-negative double float value,
  11579. default value is 1.0.
  11580. </p>
  11581. </dd>
  11582. <dt>&lsquo;<samp>max_soft_comp</samp>&rsquo;</dt>
  11583. <dd><p>For swr only, set maximum factor by which data is stretched/squeezed to make it
  11584. match the timestamps. Must be a non-negative double float value, default value
  11585. is 0.
  11586. </p>
  11587. </dd>
  11588. <dt>&lsquo;<samp>matrix_encoding</samp>&rsquo;</dt>
  11589. <dd><p>Select matrixed stereo encoding.
  11590. </p>
  11591. <p>It accepts the following values:
  11592. </p><dl compact="compact">
  11593. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11594. <dd><p>select none
  11595. </p></dd>
  11596. <dt>&lsquo;<samp>dolby</samp>&rsquo;</dt>
  11597. <dd><p>select Dolby
  11598. </p></dd>
  11599. <dt>&lsquo;<samp>dplii</samp>&rsquo;</dt>
  11600. <dd><p>select Dolby Pro Logic II
  11601. </p></dd>
  11602. </dl>
  11603. <p>Default value is <code>none</code>.
  11604. </p>
  11605. </dd>
  11606. <dt>&lsquo;<samp>filter_type</samp>&rsquo;</dt>
  11607. <dd><p>For swr only, select resampling filter type. This only affects resampling
  11608. operations.
  11609. </p>
  11610. <p>It accepts the following values:
  11611. </p><dl compact="compact">
  11612. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  11613. <dd><p>select cubic
  11614. </p></dd>
  11615. <dt>&lsquo;<samp>blackman_nuttall</samp>&rsquo;</dt>
  11616. <dd><p>select Blackman Nuttall windowed sinc
  11617. </p></dd>
  11618. <dt>&lsquo;<samp>kaiser</samp>&rsquo;</dt>
  11619. <dd><p>select Kaiser windowed sinc
  11620. </p></dd>
  11621. </dl>
  11622. </dd>
  11623. <dt>&lsquo;<samp>kaiser_beta</samp>&rsquo;</dt>
  11624. <dd><p>For swr only, set Kaiser window beta value. Must be a double float value in the
  11625. interval [2,16], default value is 9.
  11626. </p>
  11627. </dd>
  11628. <dt>&lsquo;<samp>output_sample_bits</samp>&rsquo;</dt>
  11629. <dd><p>For swr only, set number of used output sample bits for dithering. Must be an integer in the
  11630. interval [0,64], default value is 0, which means it&rsquo;s not used.
  11631. </p>
  11632. </dd>
  11633. </dl>
  11634. <p><a name="scaler_005foptions"></a>
  11635. </p><a name="Scaler-Options"></a>
  11636. <h1 class="chapter"><a href="ffprobe-all.html#toc-Scaler-Options">22 Scaler Options</a></h1>
  11637. <p>The video scaler supports the following named options.
  11638. </p>
  11639. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  11640. FFmpeg tools, with a few API-only exceptions noted below.
  11641. For programmatic use, they can be set explicitly in the
  11642. <code>SwsContext</code> options or through the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API.
  11643. </p>
  11644. <dl compact="compact">
  11645. <dd>
  11646. <p><a name="sws_005fflags"></a>
  11647. </p></dd>
  11648. <dt>&lsquo;<samp>sws_flags</samp>&rsquo;</dt>
  11649. <dd><p>Set the scaler flags. This is also used to set the scaling
  11650. algorithm. Only a single algorithm should be selected. Default
  11651. value is &lsquo;<samp>bicubic</samp>&rsquo;.
  11652. </p>
  11653. <p>It accepts the following values:
  11654. </p><dl compact="compact">
  11655. <dt>&lsquo;<samp>fast_bilinear</samp>&rsquo;</dt>
  11656. <dd><p>Select fast bilinear scaling algorithm.
  11657. </p>
  11658. </dd>
  11659. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  11660. <dd><p>Select bilinear scaling algorithm.
  11661. </p>
  11662. </dd>
  11663. <dt>&lsquo;<samp>bicubic</samp>&rsquo;</dt>
  11664. <dd><p>Select bicubic scaling algorithm.
  11665. </p>
  11666. </dd>
  11667. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  11668. <dd><p>Select experimental scaling algorithm.
  11669. </p>
  11670. </dd>
  11671. <dt>&lsquo;<samp>neighbor</samp>&rsquo;</dt>
  11672. <dd><p>Select nearest neighbor rescaling algorithm.
  11673. </p>
  11674. </dd>
  11675. <dt>&lsquo;<samp>area</samp>&rsquo;</dt>
  11676. <dd><p>Select averaging area rescaling algorithm.
  11677. </p>
  11678. </dd>
  11679. <dt>&lsquo;<samp>bicublin</samp>&rsquo;</dt>
  11680. <dd><p>Select bicubic scaling algorithm for the luma component, bilinear for
  11681. chroma components.
  11682. </p>
  11683. </dd>
  11684. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  11685. <dd><p>Select Gaussian rescaling algorithm.
  11686. </p>
  11687. </dd>
  11688. <dt>&lsquo;<samp>sinc</samp>&rsquo;</dt>
  11689. <dd><p>Select sinc rescaling algorithm.
  11690. </p>
  11691. </dd>
  11692. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  11693. <dd><p>Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
  11694. changed by setting <code>param0</code>.
  11695. </p>
  11696. </dd>
  11697. <dt>&lsquo;<samp>spline</samp>&rsquo;</dt>
  11698. <dd><p>Select natural bicubic spline rescaling algorithm.
  11699. </p>
  11700. </dd>
  11701. <dt>&lsquo;<samp>print_info</samp>&rsquo;</dt>
  11702. <dd><p>Enable printing/debug logging.
  11703. </p>
  11704. </dd>
  11705. <dt>&lsquo;<samp>accurate_rnd</samp>&rsquo;</dt>
  11706. <dd><p>Enable accurate rounding.
  11707. </p>
  11708. </dd>
  11709. <dt>&lsquo;<samp>full_chroma_int</samp>&rsquo;</dt>
  11710. <dd><p>Enable full chroma interpolation.
  11711. </p>
  11712. </dd>
  11713. <dt>&lsquo;<samp>full_chroma_inp</samp>&rsquo;</dt>
  11714. <dd><p>Select full chroma input.
  11715. </p>
  11716. </dd>
  11717. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  11718. <dd><p>Enable bitexact output.
  11719. </p></dd>
  11720. </dl>
  11721. </dd>
  11722. <dt>&lsquo;<samp>srcw <var>(API only)</var></samp>&rsquo;</dt>
  11723. <dd><p>Set source width.
  11724. </p>
  11725. </dd>
  11726. <dt>&lsquo;<samp>srch <var>(API only)</var></samp>&rsquo;</dt>
  11727. <dd><p>Set source height.
  11728. </p>
  11729. </dd>
  11730. <dt>&lsquo;<samp>dstw <var>(API only)</var></samp>&rsquo;</dt>
  11731. <dd><p>Set destination width.
  11732. </p>
  11733. </dd>
  11734. <dt>&lsquo;<samp>dsth <var>(API only)</var></samp>&rsquo;</dt>
  11735. <dd><p>Set destination height.
  11736. </p>
  11737. </dd>
  11738. <dt>&lsquo;<samp>src_format <var>(API only)</var></samp>&rsquo;</dt>
  11739. <dd><p>Set source pixel format (must be expressed as an integer).
  11740. </p>
  11741. </dd>
  11742. <dt>&lsquo;<samp>dst_format <var>(API only)</var></samp>&rsquo;</dt>
  11743. <dd><p>Set destination pixel format (must be expressed as an integer).
  11744. </p>
  11745. </dd>
  11746. <dt>&lsquo;<samp>src_range <var>(boolean)</var></samp>&rsquo;</dt>
  11747. <dd><p>If value is set to <code>1</code>, indicates source is full range. Default value is
  11748. <code>0</code>, which indicates source is limited range.
  11749. </p>
  11750. </dd>
  11751. <dt>&lsquo;<samp>dst_range <var>(boolean)</var></samp>&rsquo;</dt>
  11752. <dd><p>If value is set to <code>1</code>, enable full range for destination. Default value
  11753. is <code>0</code>, which enables limited range.
  11754. </p>
  11755. <p><a name="sws_005fparams"></a>
  11756. </p></dd>
  11757. <dt>&lsquo;<samp>param0, param1</samp>&rsquo;</dt>
  11758. <dd><p>Set scaling algorithm parameters. The specified values are specific of
  11759. some scaling algorithms and ignored by others. The specified values
  11760. are floating point number values.
  11761. </p>
  11762. </dd>
  11763. <dt>&lsquo;<samp>sws_dither</samp>&rsquo;</dt>
  11764. <dd><p>Set the dithering algorithm. Accepts one of the following
  11765. values. Default value is &lsquo;<samp>auto</samp>&rsquo;.
  11766. </p>
  11767. <dl compact="compact">
  11768. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  11769. <dd><p>automatic choice
  11770. </p>
  11771. </dd>
  11772. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11773. <dd><p>no dithering
  11774. </p>
  11775. </dd>
  11776. <dt>&lsquo;<samp>bayer</samp>&rsquo;</dt>
  11777. <dd><p>bayer dither
  11778. </p>
  11779. </dd>
  11780. <dt>&lsquo;<samp>ed</samp>&rsquo;</dt>
  11781. <dd><p>error diffusion dither
  11782. </p>
  11783. </dd>
  11784. <dt>&lsquo;<samp>a_dither</samp>&rsquo;</dt>
  11785. <dd><p>arithmetic dither, based using addition
  11786. </p>
  11787. </dd>
  11788. <dt>&lsquo;<samp>x_dither</samp>&rsquo;</dt>
  11789. <dd><p>arithmetic dither, based using xor (more random/less apparent patterning that
  11790. a_dither).
  11791. </p>
  11792. </dd>
  11793. </dl>
  11794. </dd>
  11795. <dt>&lsquo;<samp>alphablend</samp>&rsquo;</dt>
  11796. <dd><p>Set the alpha blending to use when the input has alpha but the output does not.
  11797. Default value is &lsquo;<samp>none</samp>&rsquo;.
  11798. </p>
  11799. <dl compact="compact">
  11800. <dt>&lsquo;<samp>uniform_color</samp>&rsquo;</dt>
  11801. <dd><p>Blend onto a uniform background color
  11802. </p>
  11803. </dd>
  11804. <dt>&lsquo;<samp>checkerboard</samp>&rsquo;</dt>
  11805. <dd><p>Blend onto a checkerboard
  11806. </p>
  11807. </dd>
  11808. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11809. <dd><p>No blending
  11810. </p>
  11811. </dd>
  11812. </dl>
  11813. </dd>
  11814. </dl>
  11815. <a name="Filtering-Introduction"></a>
  11816. <h1 class="chapter"><a href="ffprobe-all.html#toc-Filtering-Introduction">23 Filtering Introduction</a></h1>
  11817. <p>Filtering in FFmpeg is enabled through the libavfilter library.
  11818. </p>
  11819. <p>In libavfilter, a filter can have multiple inputs and multiple
  11820. outputs.
  11821. To illustrate the sorts of things that are possible, we consider the
  11822. following filtergraph.
  11823. </p>
  11824. <pre class="verbatim"> [main]
  11825. input --&gt; split ---------------------&gt; overlay --&gt; output
  11826. | ^
  11827. |[tmp] [flip]|
  11828. +-----&gt; crop --&gt; vflip -------+
  11829. </pre>
  11830. <p>This filtergraph splits the input stream in two streams, then sends one
  11831. stream through the crop filter and the vflip filter, before merging it
  11832. back with the other stream by overlaying it on top. You can use the
  11833. following command to achieve this:
  11834. </p>
  11835. <div class="example">
  11836. <pre class="example">ffmpeg -i INPUT -vf &quot;split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2&quot; OUTPUT
  11837. </pre></div>
  11838. <p>The result will be that the top half of the video is mirrored
  11839. onto the bottom half of the output video.
  11840. </p>
  11841. <p>Filters in the same linear chain are separated by commas, and distinct
  11842. linear chains of filters are separated by semicolons. In our example,
  11843. <var>crop,vflip</var> are in one linear chain, <var>split</var> and
  11844. <var>overlay</var> are separately in another. The points where the linear
  11845. chains join are labelled by names enclosed in square brackets. In the
  11846. example, the split filter generates two outputs that are associated to
  11847. the labels <var>[main]</var> and <var>[tmp]</var>.
  11848. </p>
  11849. <p>The stream sent to the second output of <var>split</var>, labelled as
  11850. <var>[tmp]</var>, is processed through the <var>crop</var> filter, which crops
  11851. away the lower half part of the video, and then vertically flipped. The
  11852. <var>overlay</var> filter takes in input the first unchanged output of the
  11853. split filter (which was labelled as <var>[main]</var>), and overlay on its
  11854. lower half the output generated by the <var>crop,vflip</var> filterchain.
  11855. </p>
  11856. <p>Some filters take in input a list of parameters: they are specified
  11857. after the filter name and an equal sign, and are separated from each other
  11858. by a colon.
  11859. </p>
  11860. <p>There exist so-called <var>source filters</var> that do not have an
  11861. audio/video input, and <var>sink filters</var> that will not have audio/video
  11862. output.
  11863. </p>
  11864. <a name="graph2dot"></a>
  11865. <h1 class="chapter"><a href="ffprobe-all.html#toc-graph2dot">24 graph2dot</a></h1>
  11866. <p>The &lsquo;<tt>graph2dot</tt>&rsquo; program included in the FFmpeg &lsquo;<tt>tools</tt>&rsquo;
  11867. directory can be used to parse a filtergraph description and issue a
  11868. corresponding textual representation in the dot language.
  11869. </p>
  11870. <p>Invoke the command:
  11871. </p><div class="example">
  11872. <pre class="example">graph2dot -h
  11873. </pre></div>
  11874. <p>to see how to use &lsquo;<tt>graph2dot</tt>&rsquo;.
  11875. </p>
  11876. <p>You can then pass the dot description to the &lsquo;<tt>dot</tt>&rsquo; program (from
  11877. the graphviz suite of programs) and obtain a graphical representation
  11878. of the filtergraph.
  11879. </p>
  11880. <p>For example the sequence of commands:
  11881. </p><div class="example">
  11882. <pre class="example">echo <var>GRAPH_DESCRIPTION</var> | \
  11883. tools/graph2dot -o graph.tmp &amp;&amp; \
  11884. dot -Tpng graph.tmp -o graph.png &amp;&amp; \
  11885. display graph.png
  11886. </pre></div>
  11887. <p>can be used to create and display an image representing the graph
  11888. described by the <var>GRAPH_DESCRIPTION</var> string. Note that this string must be
  11889. a complete self-contained graph, with its inputs and outputs explicitly defined.
  11890. For example if your command line is of the form:
  11891. </p><div class="example">
  11892. <pre class="example">ffmpeg -i infile -vf scale=640:360 outfile
  11893. </pre></div>
  11894. <p>your <var>GRAPH_DESCRIPTION</var> string will need to be of the form:
  11895. </p><div class="example">
  11896. <pre class="example">nullsrc,scale=640:360,nullsink
  11897. </pre></div>
  11898. <p>you may also need to set the <var>nullsrc</var> parameters and add a <var>format</var>
  11899. filter in order to simulate a specific input file.
  11900. </p>
  11901. <a name="Filtergraph-description"></a>
  11902. <h1 class="chapter"><a href="ffprobe-all.html#toc-Filtergraph-description">25 Filtergraph description</a></h1>
  11903. <p>A filtergraph is a directed graph of connected filters. It can contain
  11904. cycles, and there can be multiple links between a pair of
  11905. filters. Each link has one input pad on one side connecting it to one
  11906. filter from which it takes its input, and one output pad on the other
  11907. side connecting it to one filter accepting its output.
  11908. </p>
  11909. <p>Each filter in a filtergraph is an instance of a filter class
  11910. registered in the application, which defines the features and the
  11911. number of input and output pads of the filter.
  11912. </p>
  11913. <p>A filter with no input pads is called a &quot;source&quot;, and a filter with no
  11914. output pads is called a &quot;sink&quot;.
  11915. </p>
  11916. <p><a name="Filtergraph-syntax"></a>
  11917. </p><a name="Filtergraph-syntax-1"></a>
  11918. <h2 class="section"><a href="ffprobe-all.html#toc-Filtergraph-syntax-1">25.1 Filtergraph syntax</a></h2>
  11919. <p>A filtergraph has a textual representation, which is recognized by the
  11920. &lsquo;<samp>-filter</samp>&rsquo;/&lsquo;<samp>-vf</samp>&rsquo;/&lsquo;<samp>-af</samp>&rsquo; and
  11921. &lsquo;<samp>-filter_complex</samp>&rsquo; options in <code>ffmpeg</code> and
  11922. &lsquo;<samp>-vf</samp>&rsquo;/&lsquo;<samp>-af</samp>&rsquo; in <code>ffplay</code>, and by the
  11923. <code>avfilter_graph_parse_ptr()</code> function defined in
  11924. &lsquo;<tt>libavfilter/avfilter.h</tt>&rsquo;.
  11925. </p>
  11926. <p>A filterchain consists of a sequence of connected filters, each one
  11927. connected to the previous one in the sequence. A filterchain is
  11928. represented by a list of &quot;,&quot;-separated filter descriptions.
  11929. </p>
  11930. <p>A filtergraph consists of a sequence of filterchains. A sequence of
  11931. filterchains is represented by a list of &quot;;&quot;-separated filterchain
  11932. descriptions.
  11933. </p>
  11934. <p>A filter is represented by a string of the form:
  11935. [<var>in_link_1</var>]...[<var>in_link_N</var>]<var>filter_name</var>@<var>id</var>=<var>arguments</var>[<var>out_link_1</var>]...[<var>out_link_M</var>]
  11936. </p>
  11937. <p><var>filter_name</var> is the name of the filter class of which the
  11938. described filter is an instance of, and has to be the name of one of
  11939. the filter classes registered in the program optionally followed by &quot;@<var>id</var>&quot;.
  11940. The name of the filter class is optionally followed by a string
  11941. &quot;=<var>arguments</var>&quot;.
  11942. </p>
  11943. <p><var>arguments</var> is a string which contains the parameters used to
  11944. initialize the filter instance. It may have one of two forms:
  11945. </p><ul>
  11946. <li>
  11947. A &rsquo;:&rsquo;-separated list of <var>key=value</var> pairs.
  11948. </li><li>
  11949. A &rsquo;:&rsquo;-separated list of <var>value</var>. In this case, the keys are assumed to be
  11950. the option names in the order they are declared. E.g. the <code>fade</code> filter
  11951. declares three options in this order &ndash; &lsquo;<samp>type</samp>&rsquo;, &lsquo;<samp>start_frame</samp>&rsquo; and
  11952. &lsquo;<samp>nb_frames</samp>&rsquo;. Then the parameter list <var>in:0:30</var> means that the value
  11953. <var>in</var> is assigned to the option &lsquo;<samp>type</samp>&rsquo;, <var>0</var> to
  11954. &lsquo;<samp>start_frame</samp>&rsquo; and <var>30</var> to &lsquo;<samp>nb_frames</samp>&rsquo;.
  11955. </li><li>
  11956. A &rsquo;:&rsquo;-separated list of mixed direct <var>value</var> and long <var>key=value</var>
  11957. pairs. The direct <var>value</var> must precede the <var>key=value</var> pairs, and
  11958. follow the same constraints order of the previous point. The following
  11959. <var>key=value</var> pairs can be set in any preferred order.
  11960. </li></ul>
  11961. <p>If the option value itself is a list of items (e.g. the <code>format</code> filter
  11962. takes a list of pixel formats), the items in the list are usually separated by
  11963. &lsquo;<samp>|</samp>&rsquo;.
  11964. </p>
  11965. <p>The list of arguments can be quoted using the character &lsquo;<samp>'</samp>&rsquo; as initial
  11966. and ending mark, and the character &lsquo;<samp>\</samp>&rsquo; for escaping the characters
  11967. within the quoted text; otherwise the argument string is considered
  11968. terminated when the next special character (belonging to the set
  11969. &lsquo;<samp>[]=;,</samp>&rsquo;) is encountered.
  11970. </p>
  11971. <p>The name and arguments of the filter are optionally preceded and
  11972. followed by a list of link labels.
  11973. A link label allows one to name a link and associate it to a filter output
  11974. or input pad. The preceding labels <var>in_link_1</var>
  11975. ... <var>in_link_N</var>, are associated to the filter input pads,
  11976. the following labels <var>out_link_1</var> ... <var>out_link_M</var>, are
  11977. associated to the output pads.
  11978. </p>
  11979. <p>When two link labels with the same name are found in the
  11980. filtergraph, a link between the corresponding input and output pad is
  11981. created.
  11982. </p>
  11983. <p>If an output pad is not labelled, it is linked by default to the first
  11984. unlabelled input pad of the next filter in the filterchain.
  11985. For example in the filterchain
  11986. </p><div class="example">
  11987. <pre class="example">nullsrc, split[L1], [L2]overlay, nullsink
  11988. </pre></div>
  11989. <p>the split filter instance has two output pads, and the overlay filter
  11990. instance two input pads. The first output pad of split is labelled
  11991. &quot;L1&quot;, the first input pad of overlay is labelled &quot;L2&quot;, and the second
  11992. output pad of split is linked to the second input pad of overlay,
  11993. which are both unlabelled.
  11994. </p>
  11995. <p>In a filter description, if the input label of the first filter is not
  11996. specified, &quot;in&quot; is assumed; if the output label of the last filter is not
  11997. specified, &quot;out&quot; is assumed.
  11998. </p>
  11999. <p>In a complete filterchain all the unlabelled filter input and output
  12000. pads must be connected. A filtergraph is considered valid if all the
  12001. filter input and output pads of all the filterchains are connected.
  12002. </p>
  12003. <p>Libavfilter will automatically insert <a href="#scale">scale</a> filters where format
  12004. conversion is required. It is possible to specify swscale flags
  12005. for those automatically inserted scalers by prepending
  12006. <code>sws_flags=<var>flags</var>;</code>
  12007. to the filtergraph description.
  12008. </p>
  12009. <p>Here is a BNF description of the filtergraph syntax:
  12010. </p><div class="example">
  12011. <pre class="example"><var>NAME</var> ::= sequence of alphanumeric characters and '_'
  12012. <var>FILTER_NAME</var> ::= <var>NAME</var>[&quot;@&quot;<var>NAME</var>]
  12013. <var>LINKLABEL</var> ::= &quot;[&quot; <var>NAME</var> &quot;]&quot;
  12014. <var>LINKLABELS</var> ::= <var>LINKLABEL</var> [<var>LINKLABELS</var>]
  12015. <var>FILTER_ARGUMENTS</var> ::= sequence of chars (possibly quoted)
  12016. <var>FILTER</var> ::= [<var>LINKLABELS</var>] <var>FILTER_NAME</var> [&quot;=&quot; <var>FILTER_ARGUMENTS</var>] [<var>LINKLABELS</var>]
  12017. <var>FILTERCHAIN</var> ::= <var>FILTER</var> [,<var>FILTERCHAIN</var>]
  12018. <var>FILTERGRAPH</var> ::= [sws_flags=<var>flags</var>;] <var>FILTERCHAIN</var> [;<var>FILTERGRAPH</var>]
  12019. </pre></div>
  12020. <p><a name="filtergraph-escaping"></a>
  12021. </p><a name="Notes-on-filtergraph-escaping"></a>
  12022. <h2 class="section"><a href="ffprobe-all.html#toc-Notes-on-filtergraph-escaping">25.2 Notes on filtergraph escaping</a></h2>
  12023. <p>Filtergraph description composition entails several levels of
  12024. escaping. See <a href="ffmpeg-utils.html#quoting_005fand_005fescaping">(ffmpeg-utils)the &quot;Quoting and escaping&quot; section in the ffmpeg-utils(1) manual</a> for more
  12025. information about the employed escaping procedure.
  12026. </p>
  12027. <p>A first level escaping affects the content of each filter option
  12028. value, which may contain the special character <code>:</code> used to
  12029. separate values, or one of the escaping characters <code>\'</code>.
  12030. </p>
  12031. <p>A second level escaping affects the whole filter description, which
  12032. may contain the escaping characters <code>\'</code> or the special
  12033. characters <code>[],;</code> used by the filtergraph description.
  12034. </p>
  12035. <p>Finally, when you specify a filtergraph on a shell commandline, you
  12036. need to perform a third level escaping for the shell special
  12037. characters contained within it.
  12038. </p>
  12039. <p>For example, consider the following string to be embedded in
  12040. the <a href="#drawtext">drawtext</a> filter description &lsquo;<samp>text</samp>&rsquo; value:
  12041. </p><div class="example">
  12042. <pre class="example">this is a 'string': may contain one, or more, special characters
  12043. </pre></div>
  12044. <p>This string contains the <code>'</code> special escaping character, and the
  12045. <code>:</code> special character, so it needs to be escaped in this way:
  12046. </p><div class="example">
  12047. <pre class="example">text=this is a \'string\'\: may contain one, or more, special characters
  12048. </pre></div>
  12049. <p>A second level of escaping is required when embedding the filter
  12050. description in a filtergraph description, in order to escape all the
  12051. filtergraph special characters. Thus the example above becomes:
  12052. </p><div class="example">
  12053. <pre class="example">drawtext=text=this is a \\\'string\\\'\\: may contain one\, or more\, special characters
  12054. </pre></div>
  12055. <p>(note that in addition to the <code>\'</code> escaping special characters,
  12056. also <code>,</code> needs to be escaped).
  12057. </p>
  12058. <p>Finally an additional level of escaping is needed when writing the
  12059. filtergraph description in a shell command, which depends on the
  12060. escaping rules of the adopted shell. For example, assuming that
  12061. <code>\</code> is special and needs to be escaped with another <code>\</code>, the
  12062. previous string will finally result in:
  12063. </p><div class="example">
  12064. <pre class="example">-vf &quot;drawtext=text=this is a \\\\\\'string\\\\\\'\\\\: may contain one\\, or more\\, special characters&quot;
  12065. </pre></div>
  12066. <a name="Timeline-editing"></a>
  12067. <h1 class="chapter"><a href="ffprobe-all.html#toc-Timeline-editing">26 Timeline editing</a></h1>
  12068. <p>Some filters support a generic &lsquo;<samp>enable</samp>&rsquo; option. For the filters
  12069. supporting timeline editing, this option can be set to an expression which is
  12070. evaluated before sending a frame to the filter. If the evaluation is non-zero,
  12071. the filter will be enabled, otherwise the frame will be sent unchanged to the
  12072. next filter in the filtergraph.
  12073. </p>
  12074. <p>The expression accepts the following values:
  12075. </p><dl compact="compact">
  12076. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12077. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  12078. </p>
  12079. </dd>
  12080. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12081. <dd><p>sequential number of the input frame, starting from 0
  12082. </p>
  12083. </dd>
  12084. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  12085. <dd><p>the position in the file of the input frame, NAN if unknown
  12086. </p>
  12087. </dd>
  12088. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12089. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  12090. <dd><p>width and height of the input frame if video
  12091. </p></dd>
  12092. </dl>
  12093. <p>Additionally, these filters support an &lsquo;<samp>enable</samp>&rsquo; command that can be used
  12094. to re-define the expression.
  12095. </p>
  12096. <p>Like any other filtering option, the &lsquo;<samp>enable</samp>&rsquo; option follows the same
  12097. rules.
  12098. </p>
  12099. <p>For example, to enable a blur filter (<a href="#smartblur">smartblur</a>) from 10 seconds to 3
  12100. minutes, and a <a href="#curves">curves</a> filter starting at 3 seconds:
  12101. </p><div class="example">
  12102. <pre class="example">smartblur = enable='between(t,10,3*60)',
  12103. curves = enable='gte(t,3)' : preset=cross_process
  12104. </pre></div>
  12105. <p>See <code>ffmpeg -filters</code> to view which filters have timeline support.
  12106. </p>
  12107. <p><a name="commands"></a>
  12108. </p><a name="Changing-options-at-runtime-with-a-command"></a>
  12109. <h1 class="chapter"><a href="ffprobe-all.html#toc-Changing-options-at-runtime-with-a-command">27 Changing options at runtime with a command</a></h1>
  12110. <p>Some options can be changed during the operation of the filter using
  12111. a command. These options are marked &rsquo;T&rsquo; on the output of
  12112. <code>ffmpeg</code> &lsquo;<samp>-h filter=&lt;name of filter&gt;</samp>&rsquo;.
  12113. The name of the command is the name of the option and the argument is
  12114. the new value.
  12115. </p>
  12116. <p><a name="framesync"></a>
  12117. </p><a name="Options-for-filters-with-several-inputs-_0028framesync_0029"></a>
  12118. <h1 class="chapter"><a href="ffprobe-all.html#toc-Options-for-filters-with-several-inputs-_0028framesync_0029">28 Options for filters with several inputs (framesync)</a></h1>
  12119. <p>Some filters with several inputs support a common set of options.
  12120. These options can only be set by name, not with the short notation.
  12121. </p>
  12122. <dl compact="compact">
  12123. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  12124. <dd><p>The action to take when EOF is encountered on the secondary input; it accepts
  12125. one of the following values:
  12126. </p>
  12127. <dl compact="compact">
  12128. <dt>&lsquo;<samp>repeat</samp>&rsquo;</dt>
  12129. <dd><p>Repeat the last frame (the default).
  12130. </p></dd>
  12131. <dt>&lsquo;<samp>endall</samp>&rsquo;</dt>
  12132. <dd><p>End both streams.
  12133. </p></dd>
  12134. <dt>&lsquo;<samp>pass</samp>&rsquo;</dt>
  12135. <dd><p>Pass the main input through.
  12136. </p></dd>
  12137. </dl>
  12138. </dd>
  12139. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  12140. <dd><p>If set to 1, force the output to terminate when the shortest input
  12141. terminates. Default value is 0.
  12142. </p>
  12143. </dd>
  12144. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  12145. <dd><p>If set to 1, force the filter to extend the last frame of secondary streams
  12146. until the end of the primary stream. A value of 0 disables this behavior.
  12147. Default value is 1.
  12148. </p></dd>
  12149. </dl>
  12150. <a name="Audio-Filters"></a>
  12151. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Filters">29 Audio Filters</a></h1>
  12152. <p>When you configure your FFmpeg build, you can disable any of the
  12153. existing filters using <code>--disable-filters</code>.
  12154. The configure output will show the audio filters included in your
  12155. build.
  12156. </p>
  12157. <p>Below is a description of the currently available audio filters.
  12158. </p>
  12159. <a name="acompressor"></a>
  12160. <h2 class="section"><a href="ffprobe-all.html#toc-acompressor">29.1 acompressor</a></h2>
  12161. <p>A compressor is mainly used to reduce the dynamic range of a signal.
  12162. Especially modern music is mostly compressed at a high ratio to
  12163. improve the overall loudness. It&rsquo;s done to get the highest attention
  12164. of a listener, &quot;fatten&quot; the sound and bring more &quot;power&quot; to the track.
  12165. If a signal is compressed too much it may sound dull or &quot;dead&quot;
  12166. afterwards or it may start to &quot;pump&quot; (which could be a powerful effect
  12167. but can also destroy a track completely).
  12168. The right compression is the key to reach a professional sound and is
  12169. the high art of mixing and mastering. Because of its complex settings
  12170. it may take a long time to get the right feeling for this kind of effect.
  12171. </p>
  12172. <p>Compression is done by detecting the volume above a chosen level
  12173. <code>threshold</code> and dividing it by the factor set with <code>ratio</code>.
  12174. So if you set the threshold to -12dB and your signal reaches -6dB a ratio
  12175. of 2:1 will result in a signal at -9dB. Because an exact manipulation of
  12176. the signal would cause distortion of the waveform the reduction can be
  12177. levelled over the time. This is done by setting &quot;Attack&quot; and &quot;Release&quot;.
  12178. <code>attack</code> determines how long the signal has to rise above the threshold
  12179. before any reduction will occur and <code>release</code> sets the time the signal
  12180. has to fall below the threshold to reduce the reduction again. Shorter signals
  12181. than the chosen attack time will be left untouched.
  12182. The overall reduction of the signal can be made up afterwards with the
  12183. <code>makeup</code> setting. So compressing the peaks of a signal about 6dB and
  12184. raising the makeup to this level results in a signal twice as loud than the
  12185. source. To gain a softer entry in the compression the <code>knee</code> flattens the
  12186. hard edge at the threshold in the range of the chosen decibels.
  12187. </p>
  12188. <p>The filter accepts the following options:
  12189. </p>
  12190. <dl compact="compact">
  12191. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12192. <dd><p>Set input gain. Default is 1. Range is between 0.015625 and 64.
  12193. </p>
  12194. </dd>
  12195. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12196. <dd><p>Set mode of compressor operation. Can be <code>upward</code> or <code>downward</code>.
  12197. Default is <code>downward</code>.
  12198. </p>
  12199. </dd>
  12200. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  12201. <dd><p>If a signal of stream rises above this level it will affect the gain
  12202. reduction.
  12203. By default it is 0.125. Range is between 0.00097563 and 1.
  12204. </p>
  12205. </dd>
  12206. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  12207. <dd><p>Set a ratio by which the signal is reduced. 1:2 means that if the level
  12208. rose 4dB above the threshold, it will be only 2dB above after the reduction.
  12209. Default is 2. Range is between 1 and 20.
  12210. </p>
  12211. </dd>
  12212. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  12213. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  12214. reduction starts. Default is 20. Range is between 0.01 and 2000.
  12215. </p>
  12216. </dd>
  12217. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  12218. <dd><p>Amount of milliseconds the signal has to fall below the threshold before
  12219. reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
  12220. </p>
  12221. </dd>
  12222. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  12223. <dd><p>Set the amount by how much signal will be amplified after processing.
  12224. Default is 1. Range is from 1 to 64.
  12225. </p>
  12226. </dd>
  12227. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  12228. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  12229. Default is 2.82843. Range is between 1 and 8.
  12230. </p>
  12231. </dd>
  12232. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  12233. <dd><p>Choose if the <code>average</code> level between all channels of input stream
  12234. or the louder(<code>maximum</code>) channel of input stream affects the
  12235. reduction. Default is <code>average</code>.
  12236. </p>
  12237. </dd>
  12238. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  12239. <dd><p>Should the exact signal be taken in case of <code>peak</code> or an RMS one in case
  12240. of <code>rms</code>. Default is <code>rms</code> which is mostly smoother.
  12241. </p>
  12242. </dd>
  12243. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  12244. <dd><p>How much to use compressed signal in output. Default is 1.
  12245. Range is between 0 and 1.
  12246. </p></dd>
  12247. </dl>
  12248. <a name="Commands-3"></a>
  12249. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-3">29.1.1 Commands</a></h3>
  12250. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  12251. </p>
  12252. <a name="acontrast"></a>
  12253. <h2 class="section"><a href="ffprobe-all.html#toc-acontrast">29.2 acontrast</a></h2>
  12254. <p>Simple audio dynamic range compression/expansion filter.
  12255. </p>
  12256. <p>The filter accepts the following options:
  12257. </p>
  12258. <dl compact="compact">
  12259. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  12260. <dd><p>Set contrast. Default is 33. Allowed range is between 0 and 100.
  12261. </p></dd>
  12262. </dl>
  12263. <a name="acopy"></a>
  12264. <h2 class="section"><a href="ffprobe-all.html#toc-acopy">29.3 acopy</a></h2>
  12265. <p>Copy the input audio source unchanged to the output. This is mainly useful for
  12266. testing purposes.
  12267. </p>
  12268. <a name="acrossfade"></a>
  12269. <h2 class="section"><a href="ffprobe-all.html#toc-acrossfade">29.4 acrossfade</a></h2>
  12270. <p>Apply cross fade from one input audio stream to another input audio stream.
  12271. The cross fade is applied for specified duration near the end of first stream.
  12272. </p>
  12273. <p>The filter accepts the following options:
  12274. </p>
  12275. <dl compact="compact">
  12276. <dt>&lsquo;<samp>nb_samples, ns</samp>&rsquo;</dt>
  12277. <dd><p>Specify the number of samples for which the cross fade effect has to last.
  12278. At the end of the cross fade effect the first input audio will be completely
  12279. silent. Default is 44100.
  12280. </p>
  12281. </dd>
  12282. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  12283. <dd><p>Specify the duration of the cross fade effect. See
  12284. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12285. for the accepted syntax.
  12286. By default the duration is determined by <var>nb_samples</var>.
  12287. If set this option is used instead of <var>nb_samples</var>.
  12288. </p>
  12289. </dd>
  12290. <dt>&lsquo;<samp>overlap, o</samp>&rsquo;</dt>
  12291. <dd><p>Should first stream end overlap with second stream start. Default is enabled.
  12292. </p>
  12293. </dd>
  12294. <dt>&lsquo;<samp>curve1</samp>&rsquo;</dt>
  12295. <dd><p>Set curve for cross fade transition for first stream.
  12296. </p>
  12297. </dd>
  12298. <dt>&lsquo;<samp>curve2</samp>&rsquo;</dt>
  12299. <dd><p>Set curve for cross fade transition for second stream.
  12300. </p>
  12301. <p>For description of available curve types see <a href="#afade">afade</a> filter description.
  12302. </p></dd>
  12303. </dl>
  12304. <a name="Examples-110"></a>
  12305. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-110">29.4.1 Examples</a></h3>
  12306. <ul>
  12307. <li>
  12308. Cross fade from one input to another:
  12309. <div class="example">
  12310. <pre class="example">ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:c1=exp:c2=exp output.flac
  12311. </pre></div>
  12312. </li><li>
  12313. Cross fade from one input to another but without overlapping:
  12314. <div class="example">
  12315. <pre class="example">ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac
  12316. </pre></div>
  12317. </li></ul>
  12318. <a name="acrossover"></a>
  12319. <h2 class="section"><a href="ffprobe-all.html#toc-acrossover">29.5 acrossover</a></h2>
  12320. <p>Split audio stream into several bands.
  12321. </p>
  12322. <p>This filter splits audio stream into two or more frequency ranges.
  12323. Summing all streams back will give flat output.
  12324. </p>
  12325. <p>The filter accepts the following options:
  12326. </p>
  12327. <dl compact="compact">
  12328. <dt>&lsquo;<samp>split</samp>&rsquo;</dt>
  12329. <dd><p>Set split frequencies. Those must be positive and increasing.
  12330. </p>
  12331. </dd>
  12332. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  12333. <dd><p>Set filter order, can be <var>2nd</var>, <var>4th</var> or <var>8th</var>.
  12334. Default is <var>4th</var>.
  12335. </p></dd>
  12336. </dl>
  12337. <a name="acrusher"></a>
  12338. <h2 class="section"><a href="ffprobe-all.html#toc-acrusher">29.6 acrusher</a></h2>
  12339. <p>Reduce audio bit resolution.
  12340. </p>
  12341. <p>This filter is bit crusher with enhanced functionality. A bit crusher
  12342. is used to audibly reduce number of bits an audio signal is sampled
  12343. with. This doesn&rsquo;t change the bit depth at all, it just produces the
  12344. effect. Material reduced in bit depth sounds more harsh and &quot;digital&quot;.
  12345. This filter is able to even round to continuous values instead of discrete
  12346. bit depths.
  12347. Additionally it has a D/C offset which results in different crushing of
  12348. the lower and the upper half of the signal.
  12349. An Anti-Aliasing setting is able to produce &quot;softer&quot; crushing sounds.
  12350. </p>
  12351. <p>Another feature of this filter is the logarithmic mode.
  12352. This setting switches from linear distances between bits to logarithmic ones.
  12353. The result is a much more &quot;natural&quot; sounding crusher which doesn&rsquo;t gate low
  12354. signals for example. The human ear has a logarithmic perception,
  12355. so this kind of crushing is much more pleasant.
  12356. Logarithmic crushing is also able to get anti-aliased.
  12357. </p>
  12358. <p>The filter accepts the following options:
  12359. </p>
  12360. <dl compact="compact">
  12361. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12362. <dd><p>Set level in.
  12363. </p>
  12364. </dd>
  12365. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  12366. <dd><p>Set level out.
  12367. </p>
  12368. </dd>
  12369. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  12370. <dd><p>Set bit reduction.
  12371. </p>
  12372. </dd>
  12373. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  12374. <dd><p>Set mixing amount.
  12375. </p>
  12376. </dd>
  12377. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12378. <dd><p>Can be linear: <code>lin</code> or logarithmic: <code>log</code>.
  12379. </p>
  12380. </dd>
  12381. <dt>&lsquo;<samp>dc</samp>&rsquo;</dt>
  12382. <dd><p>Set DC.
  12383. </p>
  12384. </dd>
  12385. <dt>&lsquo;<samp>aa</samp>&rsquo;</dt>
  12386. <dd><p>Set anti-aliasing.
  12387. </p>
  12388. </dd>
  12389. <dt>&lsquo;<samp>samples</samp>&rsquo;</dt>
  12390. <dd><p>Set sample reduction.
  12391. </p>
  12392. </dd>
  12393. <dt>&lsquo;<samp>lfo</samp>&rsquo;</dt>
  12394. <dd><p>Enable LFO. By default disabled.
  12395. </p>
  12396. </dd>
  12397. <dt>&lsquo;<samp>lforange</samp>&rsquo;</dt>
  12398. <dd><p>Set LFO range.
  12399. </p>
  12400. </dd>
  12401. <dt>&lsquo;<samp>lforate</samp>&rsquo;</dt>
  12402. <dd><p>Set LFO rate.
  12403. </p></dd>
  12404. </dl>
  12405. <a name="acue"></a>
  12406. <h2 class="section"><a href="ffprobe-all.html#toc-acue">29.7 acue</a></h2>
  12407. <p>Delay audio filtering until a given wallclock timestamp. See the <a href="#cue">cue</a>
  12408. filter.
  12409. </p>
  12410. <a name="adeclick"></a>
  12411. <h2 class="section"><a href="ffprobe-all.html#toc-adeclick">29.8 adeclick</a></h2>
  12412. <p>Remove impulsive noise from input audio.
  12413. </p>
  12414. <p>Samples detected as impulsive noise are replaced by interpolated samples using
  12415. autoregressive modelling.
  12416. </p>
  12417. <dl compact="compact">
  12418. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12419. <dd><p>Set window size, in milliseconds. Allowed range is from <code>10</code> to
  12420. <code>100</code>. Default value is <code>55</code> milliseconds.
  12421. This sets size of window which will be processed at once.
  12422. </p>
  12423. </dd>
  12424. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12425. <dd><p>Set window overlap, in percentage of window size. Allowed range is from
  12426. <code>50</code> to <code>95</code>. Default value is <code>75</code> percent.
  12427. Setting this to a very high value increases impulsive noise removal but makes
  12428. whole process much slower.
  12429. </p>
  12430. </dd>
  12431. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12432. <dd><p>Set autoregression order, in percentage of window size. Allowed range is from
  12433. <code>0</code> to <code>25</code>. Default value is <code>2</code> percent. This option also
  12434. controls quality of interpolated samples using neighbour good samples.
  12435. </p>
  12436. </dd>
  12437. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12438. <dd><p>Set threshold value. Allowed range is from <code>1</code> to <code>100</code>.
  12439. Default value is <code>2</code>.
  12440. This controls the strength of impulsive noise which is going to be removed.
  12441. The lower value, the more samples will be detected as impulsive noise.
  12442. </p>
  12443. </dd>
  12444. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  12445. <dd><p>Set burst fusion, in percentage of window size. Allowed range is <code>0</code> to
  12446. <code>10</code>. Default value is <code>2</code>.
  12447. If any two samples detected as noise are spaced less than this value then any
  12448. sample between those two samples will be also detected as noise.
  12449. </p>
  12450. </dd>
  12451. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  12452. <dd><p>Set overlap method.
  12453. </p>
  12454. <p>It accepts the following values:
  12455. </p><dl compact="compact">
  12456. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12457. <dd><p>Select overlap-add method. Even not interpolated samples are slightly
  12458. changed with this method.
  12459. </p>
  12460. </dd>
  12461. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12462. <dd><p>Select overlap-save method. Not interpolated samples remain unchanged.
  12463. </p></dd>
  12464. </dl>
  12465. <p>Default value is <code>a</code>.
  12466. </p></dd>
  12467. </dl>
  12468. <a name="adeclip"></a>
  12469. <h2 class="section"><a href="ffprobe-all.html#toc-adeclip">29.9 adeclip</a></h2>
  12470. <p>Remove clipped samples from input audio.
  12471. </p>
  12472. <p>Samples detected as clipped are replaced by interpolated samples using
  12473. autoregressive modelling.
  12474. </p>
  12475. <dl compact="compact">
  12476. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12477. <dd><p>Set window size, in milliseconds. Allowed range is from <code>10</code> to <code>100</code>.
  12478. Default value is <code>55</code> milliseconds.
  12479. This sets size of window which will be processed at once.
  12480. </p>
  12481. </dd>
  12482. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12483. <dd><p>Set window overlap, in percentage of window size. Allowed range is from <code>50</code>
  12484. to <code>95</code>. Default value is <code>75</code> percent.
  12485. </p>
  12486. </dd>
  12487. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12488. <dd><p>Set autoregression order, in percentage of window size. Allowed range is from
  12489. <code>0</code> to <code>25</code>. Default value is <code>8</code> percent. This option also controls
  12490. quality of interpolated samples using neighbour good samples.
  12491. </p>
  12492. </dd>
  12493. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12494. <dd><p>Set threshold value. Allowed range is from <code>1</code> to <code>100</code>.
  12495. Default value is <code>10</code>. Higher values make clip detection less aggressive.
  12496. </p>
  12497. </dd>
  12498. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12499. <dd><p>Set size of histogram used to detect clips. Allowed range is from <code>100</code> to <code>9999</code>.
  12500. Default value is <code>1000</code>. Higher values make clip detection less aggressive.
  12501. </p>
  12502. </dd>
  12503. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  12504. <dd><p>Set overlap method.
  12505. </p>
  12506. <p>It accepts the following values:
  12507. </p><dl compact="compact">
  12508. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12509. <dd><p>Select overlap-add method. Even not interpolated samples are slightly changed
  12510. with this method.
  12511. </p>
  12512. </dd>
  12513. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12514. <dd><p>Select overlap-save method. Not interpolated samples remain unchanged.
  12515. </p></dd>
  12516. </dl>
  12517. <p>Default value is <code>a</code>.
  12518. </p></dd>
  12519. </dl>
  12520. <a name="adelay"></a>
  12521. <h2 class="section"><a href="ffprobe-all.html#toc-adelay">29.10 adelay</a></h2>
  12522. <p>Delay one or more audio channels.
  12523. </p>
  12524. <p>Samples in delayed channel are filled with silence.
  12525. </p>
  12526. <p>The filter accepts the following option:
  12527. </p>
  12528. <dl compact="compact">
  12529. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  12530. <dd><p>Set list of delays in milliseconds for each channel separated by &rsquo;|&rsquo;.
  12531. Unused delays will be silently ignored. If number of given delays is
  12532. smaller than number of channels all remaining channels will not be delayed.
  12533. If you want to delay exact number of samples, append &rsquo;S&rsquo; to number.
  12534. If you want instead to delay in seconds, append &rsquo;s&rsquo; to number.
  12535. </p>
  12536. </dd>
  12537. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  12538. <dd><p>Use last set delay for all remaining channels. By default is disabled.
  12539. This option if enabled changes how option <code>delays</code> is interpreted.
  12540. </p></dd>
  12541. </dl>
  12542. <a name="Examples-1"></a>
  12543. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-1">29.10.1 Examples</a></h3>
  12544. <ul>
  12545. <li>
  12546. Delay first channel by 1.5 seconds, the third channel by 0.5 seconds and leave
  12547. the second channel (and any other channels that may be present) unchanged.
  12548. <div class="example">
  12549. <pre class="example">adelay=1500|0|500
  12550. </pre></div>
  12551. </li><li>
  12552. Delay second channel by 500 samples, the third channel by 700 samples and leave
  12553. the first channel (and any other channels that may be present) unchanged.
  12554. <div class="example">
  12555. <pre class="example">adelay=0|500S|700S
  12556. </pre></div>
  12557. </li><li>
  12558. Delay all channels by same number of samples:
  12559. <div class="example">
  12560. <pre class="example">adelay=delays=64S:all=1
  12561. </pre></div>
  12562. </li></ul>
  12563. <a name="aderivative_002c-aintegral"></a>
  12564. <h2 class="section"><a href="ffprobe-all.html#toc-aderivative_002c-aintegral">29.11 aderivative, aintegral</a></h2>
  12565. <p>Compute derivative/integral of audio stream.
  12566. </p>
  12567. <p>Applying both filters one after another produces original audio.
  12568. </p>
  12569. <a name="aecho"></a>
  12570. <h2 class="section"><a href="ffprobe-all.html#toc-aecho">29.12 aecho</a></h2>
  12571. <p>Apply echoing to the input audio.
  12572. </p>
  12573. <p>Echoes are reflected sound and can occur naturally amongst mountains
  12574. (and sometimes large buildings) when talking or shouting; digital echo
  12575. effects emulate this behaviour and are often used to help fill out the
  12576. sound of a single instrument or vocal. The time difference between the
  12577. original signal and the reflection is the <code>delay</code>, and the
  12578. loudness of the reflected signal is the <code>decay</code>.
  12579. Multiple echoes can have different delays and decays.
  12580. </p>
  12581. <p>A description of the accepted parameters follows.
  12582. </p>
  12583. <dl compact="compact">
  12584. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  12585. <dd><p>Set input gain of reflected signal. Default is <code>0.6</code>.
  12586. </p>
  12587. </dd>
  12588. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  12589. <dd><p>Set output gain of reflected signal. Default is <code>0.3</code>.
  12590. </p>
  12591. </dd>
  12592. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  12593. <dd><p>Set list of time intervals in milliseconds between original signal and reflections
  12594. separated by &rsquo;|&rsquo;. Allowed range for each <code>delay</code> is <code>(0 - 90000.0]</code>.
  12595. Default is <code>1000</code>.
  12596. </p>
  12597. </dd>
  12598. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  12599. <dd><p>Set list of loudness of reflected signals separated by &rsquo;|&rsquo;.
  12600. Allowed range for each <code>decay</code> is <code>(0 - 1.0]</code>.
  12601. Default is <code>0.5</code>.
  12602. </p></dd>
  12603. </dl>
  12604. <a name="Examples-138"></a>
  12605. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-138">29.12.1 Examples</a></h3>
  12606. <ul>
  12607. <li>
  12608. Make it sound as if there are twice as many instruments as are actually playing:
  12609. <div class="example">
  12610. <pre class="example">aecho=0.8:0.88:60:0.4
  12611. </pre></div>
  12612. </li><li>
  12613. If delay is very short, then it sounds like a (metallic) robot playing music:
  12614. <div class="example">
  12615. <pre class="example">aecho=0.8:0.88:6:0.4
  12616. </pre></div>
  12617. </li><li>
  12618. A longer delay will sound like an open air concert in the mountains:
  12619. <div class="example">
  12620. <pre class="example">aecho=0.8:0.9:1000:0.3
  12621. </pre></div>
  12622. </li><li>
  12623. Same as above but with one more mountain:
  12624. <div class="example">
  12625. <pre class="example">aecho=0.8:0.9:1000|1800:0.3|0.25
  12626. </pre></div>
  12627. </li></ul>
  12628. <a name="aemphasis"></a>
  12629. <h2 class="section"><a href="ffprobe-all.html#toc-aemphasis">29.13 aemphasis</a></h2>
  12630. <p>Audio emphasis filter creates or restores material directly taken from LPs or
  12631. emphased CDs with different filter curves. E.g. to store music on vinyl the
  12632. signal has to be altered by a filter first to even out the disadvantages of
  12633. this recording medium.
  12634. Once the material is played back the inverse filter has to be applied to
  12635. restore the distortion of the frequency response.
  12636. </p>
  12637. <p>The filter accepts the following options:
  12638. </p>
  12639. <dl compact="compact">
  12640. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12641. <dd><p>Set input gain.
  12642. </p>
  12643. </dd>
  12644. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  12645. <dd><p>Set output gain.
  12646. </p>
  12647. </dd>
  12648. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12649. <dd><p>Set filter mode. For restoring material use <code>reproduction</code> mode, otherwise
  12650. use <code>production</code> mode. Default is <code>reproduction</code> mode.
  12651. </p>
  12652. </dd>
  12653. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  12654. <dd><p>Set filter type. Selects medium. Can be one of the following:
  12655. </p>
  12656. <dl compact="compact">
  12657. <dt>&lsquo;<samp>col</samp>&rsquo;</dt>
  12658. <dd><p>select Columbia.
  12659. </p></dd>
  12660. <dt>&lsquo;<samp>emi</samp>&rsquo;</dt>
  12661. <dd><p>select EMI.
  12662. </p></dd>
  12663. <dt>&lsquo;<samp>bsi</samp>&rsquo;</dt>
  12664. <dd><p>select BSI (78RPM).
  12665. </p></dd>
  12666. <dt>&lsquo;<samp>riaa</samp>&rsquo;</dt>
  12667. <dd><p>select RIAA.
  12668. </p></dd>
  12669. <dt>&lsquo;<samp>cd</samp>&rsquo;</dt>
  12670. <dd><p>select Compact Disc (CD).
  12671. </p></dd>
  12672. <dt>&lsquo;<samp>50fm</samp>&rsquo;</dt>
  12673. <dd><p>select 50µs (FM).
  12674. </p></dd>
  12675. <dt>&lsquo;<samp>75fm</samp>&rsquo;</dt>
  12676. <dd><p>select 75µs (FM).
  12677. </p></dd>
  12678. <dt>&lsquo;<samp>50kf</samp>&rsquo;</dt>
  12679. <dd><p>select 50µs (FM-KF).
  12680. </p></dd>
  12681. <dt>&lsquo;<samp>75kf</samp>&rsquo;</dt>
  12682. <dd><p>select 75µs (FM-KF).
  12683. </p></dd>
  12684. </dl>
  12685. </dd>
  12686. </dl>
  12687. <a name="aeval"></a>
  12688. <h2 class="section"><a href="ffprobe-all.html#toc-aeval">29.14 aeval</a></h2>
  12689. <p>Modify an audio signal according to the specified expressions.
  12690. </p>
  12691. <p>This filter accepts one or more expressions (one for each channel),
  12692. which are evaluated and used to modify a corresponding audio signal.
  12693. </p>
  12694. <p>It accepts the following parameters:
  12695. </p>
  12696. <dl compact="compact">
  12697. <dt>&lsquo;<samp>exprs</samp>&rsquo;</dt>
  12698. <dd><p>Set the &rsquo;|&rsquo;-separated expressions list for each separate channel. If
  12699. the number of input channels is greater than the number of
  12700. expressions, the last specified expression is used for the remaining
  12701. output channels.
  12702. </p>
  12703. </dd>
  12704. <dt>&lsquo;<samp>channel_layout, c</samp>&rsquo;</dt>
  12705. <dd><p>Set output channel layout. If not specified, the channel layout is
  12706. specified by the number of expressions. If set to &lsquo;<samp>same</samp>&rsquo;, it will
  12707. use by default the same input channel layout.
  12708. </p></dd>
  12709. </dl>
  12710. <p>Each expression in <var>exprs</var> can contain the following constants and functions:
  12711. </p>
  12712. <dl compact="compact">
  12713. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  12714. <dd><p>channel number of the current expression
  12715. </p>
  12716. </dd>
  12717. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12718. <dd><p>number of the evaluated sample, starting from 0
  12719. </p>
  12720. </dd>
  12721. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12722. <dd><p>sample rate
  12723. </p>
  12724. </dd>
  12725. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12726. <dd><p>time of the evaluated sample expressed in seconds
  12727. </p>
  12728. </dd>
  12729. <dt>&lsquo;<samp>nb_in_channels</samp>&rsquo;</dt>
  12730. <dt>&lsquo;<samp>nb_out_channels</samp>&rsquo;</dt>
  12731. <dd><p>input and output number of channels
  12732. </p>
  12733. </dd>
  12734. <dt>&lsquo;<samp>val(CH)</samp>&rsquo;</dt>
  12735. <dd><p>the value of input channel with number <var>CH</var>
  12736. </p></dd>
  12737. </dl>
  12738. <p>Note: this filter is slow. For faster processing you should use a
  12739. dedicated filter.
  12740. </p>
  12741. <a name="Examples-124"></a>
  12742. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-124">29.14.1 Examples</a></h3>
  12743. <ul>
  12744. <li>
  12745. Half volume:
  12746. <div class="example">
  12747. <pre class="example">aeval=val(ch)/2:c=same
  12748. </pre></div>
  12749. </li><li>
  12750. Invert phase of the second channel:
  12751. <div class="example">
  12752. <pre class="example">aeval=val(0)|-val(1)
  12753. </pre></div>
  12754. </li></ul>
  12755. <p><a name="afade"></a>
  12756. </p><a name="afade-1"></a>
  12757. <h2 class="section"><a href="ffprobe-all.html#toc-afade-1">29.15 afade</a></h2>
  12758. <p>Apply fade-in/out effect to input audio.
  12759. </p>
  12760. <p>A description of the accepted parameters follows.
  12761. </p>
  12762. <dl compact="compact">
  12763. <dt>&lsquo;<samp>type, t</samp>&rsquo;</dt>
  12764. <dd><p>Specify the effect type, can be either <code>in</code> for fade-in, or
  12765. <code>out</code> for a fade-out effect. Default is <code>in</code>.
  12766. </p>
  12767. </dd>
  12768. <dt>&lsquo;<samp>start_sample, ss</samp>&rsquo;</dt>
  12769. <dd><p>Specify the number of the start sample for starting to apply the fade
  12770. effect. Default is 0.
  12771. </p>
  12772. </dd>
  12773. <dt>&lsquo;<samp>nb_samples, ns</samp>&rsquo;</dt>
  12774. <dd><p>Specify the number of samples for which the fade effect has to last. At
  12775. the end of the fade-in effect the output audio will have the same
  12776. volume as the input audio, at the end of the fade-out transition
  12777. the output audio will be silence. Default is 44100.
  12778. </p>
  12779. </dd>
  12780. <dt>&lsquo;<samp>start_time, st</samp>&rsquo;</dt>
  12781. <dd><p>Specify the start time of the fade effect. Default is 0.
  12782. The value must be specified as a time duration; see
  12783. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12784. for the accepted syntax.
  12785. If set this option is used instead of <var>start_sample</var>.
  12786. </p>
  12787. </dd>
  12788. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  12789. <dd><p>Specify the duration of the fade effect. See
  12790. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12791. for the accepted syntax.
  12792. At the end of the fade-in effect the output audio will have the same
  12793. volume as the input audio, at the end of the fade-out transition
  12794. the output audio will be silence.
  12795. By default the duration is determined by <var>nb_samples</var>.
  12796. If set this option is used instead of <var>nb_samples</var>.
  12797. </p>
  12798. </dd>
  12799. <dt>&lsquo;<samp>curve</samp>&rsquo;</dt>
  12800. <dd><p>Set curve for fade transition.
  12801. </p>
  12802. <p>It accepts the following values:
  12803. </p><dl compact="compact">
  12804. <dt>&lsquo;<samp>tri</samp>&rsquo;</dt>
  12805. <dd><p>select triangular, linear slope (default)
  12806. </p></dd>
  12807. <dt>&lsquo;<samp>qsin</samp>&rsquo;</dt>
  12808. <dd><p>select quarter of sine wave
  12809. </p></dd>
  12810. <dt>&lsquo;<samp>hsin</samp>&rsquo;</dt>
  12811. <dd><p>select half of sine wave
  12812. </p></dd>
  12813. <dt>&lsquo;<samp>esin</samp>&rsquo;</dt>
  12814. <dd><p>select exponential sine wave
  12815. </p></dd>
  12816. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  12817. <dd><p>select logarithmic
  12818. </p></dd>
  12819. <dt>&lsquo;<samp>ipar</samp>&rsquo;</dt>
  12820. <dd><p>select inverted parabola
  12821. </p></dd>
  12822. <dt>&lsquo;<samp>qua</samp>&rsquo;</dt>
  12823. <dd><p>select quadratic
  12824. </p></dd>
  12825. <dt>&lsquo;<samp>cub</samp>&rsquo;</dt>
  12826. <dd><p>select cubic
  12827. </p></dd>
  12828. <dt>&lsquo;<samp>squ</samp>&rsquo;</dt>
  12829. <dd><p>select square root
  12830. </p></dd>
  12831. <dt>&lsquo;<samp>cbr</samp>&rsquo;</dt>
  12832. <dd><p>select cubic root
  12833. </p></dd>
  12834. <dt>&lsquo;<samp>par</samp>&rsquo;</dt>
  12835. <dd><p>select parabola
  12836. </p></dd>
  12837. <dt>&lsquo;<samp>exp</samp>&rsquo;</dt>
  12838. <dd><p>select exponential
  12839. </p></dd>
  12840. <dt>&lsquo;<samp>iqsin</samp>&rsquo;</dt>
  12841. <dd><p>select inverted quarter of sine wave
  12842. </p></dd>
  12843. <dt>&lsquo;<samp>ihsin</samp>&rsquo;</dt>
  12844. <dd><p>select inverted half of sine wave
  12845. </p></dd>
  12846. <dt>&lsquo;<samp>dese</samp>&rsquo;</dt>
  12847. <dd><p>select double-exponential seat
  12848. </p></dd>
  12849. <dt>&lsquo;<samp>desi</samp>&rsquo;</dt>
  12850. <dd><p>select double-exponential sigmoid
  12851. </p></dd>
  12852. <dt>&lsquo;<samp>losi</samp>&rsquo;</dt>
  12853. <dd><p>select logistic sigmoid
  12854. </p></dd>
  12855. <dt>&lsquo;<samp>nofade</samp>&rsquo;</dt>
  12856. <dd><p>no fade applied
  12857. </p></dd>
  12858. </dl>
  12859. </dd>
  12860. </dl>
  12861. <a name="Examples-39"></a>
  12862. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-39">29.15.1 Examples</a></h3>
  12863. <ul>
  12864. <li>
  12865. Fade in first 15 seconds of audio:
  12866. <div class="example">
  12867. <pre class="example">afade=t=in:ss=0:d=15
  12868. </pre></div>
  12869. </li><li>
  12870. Fade out last 25 seconds of a 900 seconds audio:
  12871. <div class="example">
  12872. <pre class="example">afade=t=out:st=875:d=25
  12873. </pre></div>
  12874. </li></ul>
  12875. <a name="afftdn"></a>
  12876. <h2 class="section"><a href="ffprobe-all.html#toc-afftdn">29.16 afftdn</a></h2>
  12877. <p>Denoise audio samples with FFT.
  12878. </p>
  12879. <p>A description of the accepted parameters follows.
  12880. </p>
  12881. <dl compact="compact">
  12882. <dt>&lsquo;<samp>nr</samp>&rsquo;</dt>
  12883. <dd><p>Set the noise reduction in dB, allowed range is 0.01 to 97.
  12884. Default value is 12 dB.
  12885. </p>
  12886. </dd>
  12887. <dt>&lsquo;<samp>nf</samp>&rsquo;</dt>
  12888. <dd><p>Set the noise floor in dB, allowed range is -80 to -20.
  12889. Default value is -50 dB.
  12890. </p>
  12891. </dd>
  12892. <dt>&lsquo;<samp>nt</samp>&rsquo;</dt>
  12893. <dd><p>Set the noise type.
  12894. </p>
  12895. <p>It accepts the following values:
  12896. </p><dl compact="compact">
  12897. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12898. <dd><p>Select white noise.
  12899. </p>
  12900. </dd>
  12901. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  12902. <dd><p>Select vinyl noise.
  12903. </p>
  12904. </dd>
  12905. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12906. <dd><p>Select shellac noise.
  12907. </p>
  12908. </dd>
  12909. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  12910. <dd><p>Select custom noise, defined in <code>bn</code> option.
  12911. </p>
  12912. <p>Default value is white noise.
  12913. </p></dd>
  12914. </dl>
  12915. </dd>
  12916. <dt>&lsquo;<samp>bn</samp>&rsquo;</dt>
  12917. <dd><p>Set custom band noise for every one of 15 bands.
  12918. Bands are separated by &rsquo; &rsquo; or &rsquo;|&rsquo;.
  12919. </p>
  12920. </dd>
  12921. <dt>&lsquo;<samp>rf</samp>&rsquo;</dt>
  12922. <dd><p>Set the residual floor in dB, allowed range is -80 to -20.
  12923. Default value is -38 dB.
  12924. </p>
  12925. </dd>
  12926. <dt>&lsquo;<samp>tn</samp>&rsquo;</dt>
  12927. <dd><p>Enable noise tracking. By default is disabled.
  12928. With this enabled, noise floor is automatically adjusted.
  12929. </p>
  12930. </dd>
  12931. <dt>&lsquo;<samp>tr</samp>&rsquo;</dt>
  12932. <dd><p>Enable residual tracking. By default is disabled.
  12933. </p>
  12934. </dd>
  12935. <dt>&lsquo;<samp>om</samp>&rsquo;</dt>
  12936. <dd><p>Set the output mode.
  12937. </p>
  12938. <p>It accepts the following values:
  12939. </p><dl compact="compact">
  12940. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  12941. <dd><p>Pass input unchanged.
  12942. </p>
  12943. </dd>
  12944. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12945. <dd><p>Pass noise filtered out.
  12946. </p>
  12947. </dd>
  12948. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12949. <dd><p>Pass only noise.
  12950. </p>
  12951. <p>Default value is <var>o</var>.
  12952. </p></dd>
  12953. </dl>
  12954. </dd>
  12955. </dl>
  12956. <a name="Commands-40"></a>
  12957. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-40">29.16.1 Commands</a></h3>
  12958. <p>This filter supports the following commands:
  12959. </p><dl compact="compact">
  12960. <dt>&lsquo;<samp>sample_noise, sn</samp>&rsquo;</dt>
  12961. <dd><p>Start or stop measuring noise profile.
  12962. Syntax for the command is : &quot;start&quot; or &quot;stop&quot; string.
  12963. After measuring noise profile is stopped it will be
  12964. automatically applied in filtering.
  12965. </p>
  12966. </dd>
  12967. <dt>&lsquo;<samp>noise_reduction, nr</samp>&rsquo;</dt>
  12968. <dd><p>Change noise reduction. Argument is single float number.
  12969. Syntax for the command is : &quot;<var>noise_reduction</var>&quot;
  12970. </p>
  12971. </dd>
  12972. <dt>&lsquo;<samp>noise_floor, nf</samp>&rsquo;</dt>
  12973. <dd><p>Change noise floor. Argument is single float number.
  12974. Syntax for the command is : &quot;<var>noise_floor</var>&quot;
  12975. </p>
  12976. </dd>
  12977. <dt>&lsquo;<samp>output_mode, om</samp>&rsquo;</dt>
  12978. <dd><p>Change output mode operation.
  12979. Syntax for the command is : &quot;i&quot;, &quot;o&quot; or &quot;n&quot; string.
  12980. </p></dd>
  12981. </dl>
  12982. <a name="afftfilt"></a>
  12983. <h2 class="section"><a href="ffprobe-all.html#toc-afftfilt">29.17 afftfilt</a></h2>
  12984. <p>Apply arbitrary expressions to samples in frequency domain.
  12985. </p>
  12986. <dl compact="compact">
  12987. <dt>&lsquo;<samp>real</samp>&rsquo;</dt>
  12988. <dd><p>Set frequency domain real expression for each separate channel separated
  12989. by &rsquo;|&rsquo;. Default is &quot;re&quot;.
  12990. If the number of input channels is greater than the number of
  12991. expressions, the last specified expression is used for the remaining
  12992. output channels.
  12993. </p>
  12994. </dd>
  12995. <dt>&lsquo;<samp>imag</samp>&rsquo;</dt>
  12996. <dd><p>Set frequency domain imaginary expression for each separate channel
  12997. separated by &rsquo;|&rsquo;. Default is &quot;im&quot;.
  12998. </p>
  12999. <p>Each expression in <var>real</var> and <var>imag</var> can contain the following
  13000. constants and functions:
  13001. </p>
  13002. <dl compact="compact">
  13003. <dt>&lsquo;<samp>sr</samp>&rsquo;</dt>
  13004. <dd><p>sample rate
  13005. </p>
  13006. </dd>
  13007. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  13008. <dd><p>current frequency bin number
  13009. </p>
  13010. </dd>
  13011. <dt>&lsquo;<samp>nb</samp>&rsquo;</dt>
  13012. <dd><p>number of available bins
  13013. </p>
  13014. </dd>
  13015. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  13016. <dd><p>channel number of the current expression
  13017. </p>
  13018. </dd>
  13019. <dt>&lsquo;<samp>chs</samp>&rsquo;</dt>
  13020. <dd><p>number of channels
  13021. </p>
  13022. </dd>
  13023. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  13024. <dd><p>current frame pts
  13025. </p>
  13026. </dd>
  13027. <dt>&lsquo;<samp>re</samp>&rsquo;</dt>
  13028. <dd><p>current real part of frequency bin of current channel
  13029. </p>
  13030. </dd>
  13031. <dt>&lsquo;<samp>im</samp>&rsquo;</dt>
  13032. <dd><p>current imaginary part of frequency bin of current channel
  13033. </p>
  13034. </dd>
  13035. <dt>&lsquo;<samp>real(b, ch)</samp>&rsquo;</dt>
  13036. <dd><p>Return the value of real part of frequency bin at location (<var>bin</var>,<var>channel</var>)
  13037. </p>
  13038. </dd>
  13039. <dt>&lsquo;<samp>imag(b, ch)</samp>&rsquo;</dt>
  13040. <dd><p>Return the value of imaginary part of frequency bin at location (<var>bin</var>,<var>channel</var>)
  13041. </p></dd>
  13042. </dl>
  13043. </dd>
  13044. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  13045. <dd><p>Set window size. Allowed range is from 16 to 131072.
  13046. Default is <code>4096</code>
  13047. </p>
  13048. </dd>
  13049. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  13050. <dd><p>Set window function. Default is <code>hann</code>.
  13051. </p>
  13052. </dd>
  13053. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  13054. <dd><p>Set window overlap. If set to 1, the recommended overlap for selected
  13055. window function will be picked. Default is <code>0.75</code>.
  13056. </p></dd>
  13057. </dl>
  13058. <a name="Examples-18"></a>
  13059. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-18">29.17.1 Examples</a></h3>
  13060. <ul>
  13061. <li>
  13062. Leave almost only low frequencies in audio:
  13063. <div class="example">
  13064. <pre class="example">afftfilt=&quot;'real=re * (1-clip((b/nb)*b,0,1))':imag='im * (1-clip((b/nb)*b,0,1))'&quot;
  13065. </pre></div>
  13066. </li><li>
  13067. Apply robotize effect:
  13068. <div class="example">
  13069. <pre class="example">afftfilt=&quot;real='hypot(re,im)*sin(0)':imag='hypot(re,im)*cos(0)':win_size=512:overlap=0.75&quot;
  13070. </pre></div>
  13071. </li><li>
  13072. Apply whisper effect:
  13073. <div class="example">
  13074. <pre class="example">afftfilt=&quot;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&quot;
  13075. </pre></div>
  13076. </li></ul>
  13077. <p><a name="afir"></a>
  13078. </p><a name="afir-1"></a>
  13079. <h2 class="section"><a href="ffprobe-all.html#toc-afir-1">29.18 afir</a></h2>
  13080. <p>Apply an arbitrary Finite Impulse Response filter.
  13081. </p>
  13082. <p>This filter is designed for applying long FIR filters,
  13083. up to 60 seconds long.
  13084. </p>
  13085. <p>It can be used as component for digital crossover filters,
  13086. room equalization, cross talk cancellation, wavefield synthesis,
  13087. auralization, ambiophonics, ambisonics and spatialization.
  13088. </p>
  13089. <p>This filter uses the streams higher than first one as FIR coefficients.
  13090. If the non-first stream holds a single channel, it will be used
  13091. for all input channels in the first stream, otherwise
  13092. the number of channels in the non-first stream must be same as
  13093. the number of channels in the first stream.
  13094. </p>
  13095. <p>It accepts the following parameters:
  13096. </p>
  13097. <dl compact="compact">
  13098. <dt>&lsquo;<samp>dry</samp>&rsquo;</dt>
  13099. <dd><p>Set dry gain. This sets input gain.
  13100. </p>
  13101. </dd>
  13102. <dt>&lsquo;<samp>wet</samp>&rsquo;</dt>
  13103. <dd><p>Set wet gain. This sets final output gain.
  13104. </p>
  13105. </dd>
  13106. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  13107. <dd><p>Set Impulse Response filter length. Default is 1, which means whole IR is processed.
  13108. </p>
  13109. </dd>
  13110. <dt>&lsquo;<samp>gtype</samp>&rsquo;</dt>
  13111. <dd><p>Enable applying gain measured from power of IR.
  13112. </p>
  13113. <p>Set which approach to use for auto gain measurement.
  13114. </p>
  13115. <dl compact="compact">
  13116. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  13117. <dd><p>Do not apply any gain.
  13118. </p>
  13119. </dd>
  13120. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  13121. <dd><p>select peak gain, very conservative approach. This is default value.
  13122. </p>
  13123. </dd>
  13124. <dt>&lsquo;<samp>dc</samp>&rsquo;</dt>
  13125. <dd><p>select DC gain, limited application.
  13126. </p>
  13127. </dd>
  13128. <dt>&lsquo;<samp>gn</samp>&rsquo;</dt>
  13129. <dd><p>select gain to noise approach, this is most popular one.
  13130. </p></dd>
  13131. </dl>
  13132. </dd>
  13133. <dt>&lsquo;<samp>irgain</samp>&rsquo;</dt>
  13134. <dd><p>Set gain to be applied to IR coefficients before filtering.
  13135. Allowed range is 0 to 1. This gain is applied after any gain applied with <var>gtype</var> option.
  13136. </p>
  13137. </dd>
  13138. <dt>&lsquo;<samp>irfmt</samp>&rsquo;</dt>
  13139. <dd><p>Set format of IR stream. Can be <code>mono</code> or <code>input</code>.
  13140. Default is <code>input</code>.
  13141. </p>
  13142. </dd>
  13143. <dt>&lsquo;<samp>maxir</samp>&rsquo;</dt>
  13144. <dd><p>Set max allowed Impulse Response filter duration in seconds. Default is 30 seconds.
  13145. Allowed range is 0.1 to 60 seconds.
  13146. </p>
  13147. </dd>
  13148. <dt>&lsquo;<samp>response</samp>&rsquo;</dt>
  13149. <dd><p>Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
  13150. By default it is disabled.
  13151. </p>
  13152. </dd>
  13153. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  13154. <dd><p>Set for which IR channel to display frequency response. By default is first channel
  13155. displayed. This option is used only when <var>response</var> is enabled.
  13156. </p>
  13157. </dd>
  13158. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13159. <dd><p>Set video stream size. This option is used only when <var>response</var> is enabled.
  13160. </p>
  13161. </dd>
  13162. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  13163. <dd><p>Set video stream frame rate. This option is used only when <var>response</var> is enabled.
  13164. </p>
  13165. </dd>
  13166. <dt>&lsquo;<samp>minp</samp>&rsquo;</dt>
  13167. <dd><p>Set minimal partition size used for convolution. Default is <var>8192</var>.
  13168. Allowed range is from <var>1</var> to <var>32768</var>.
  13169. Lower values decreases latency at cost of higher CPU usage.
  13170. </p>
  13171. </dd>
  13172. <dt>&lsquo;<samp>maxp</samp>&rsquo;</dt>
  13173. <dd><p>Set maximal partition size used for convolution. Default is <var>8192</var>.
  13174. Allowed range is from <var>8</var> to <var>32768</var>.
  13175. Lower values may increase CPU usage.
  13176. </p>
  13177. </dd>
  13178. <dt>&lsquo;<samp>nbirs</samp>&rsquo;</dt>
  13179. <dd><p>Set number of input impulse responses streams which will be switchable at runtime.
  13180. Allowed range is from <var>1</var> to <var>32</var>. Default is <var>1</var>.
  13181. </p>
  13182. </dd>
  13183. <dt>&lsquo;<samp>ir</samp>&rsquo;</dt>
  13184. <dd><p>Set IR stream which will be used for convolution, starting from <var>0</var>, should always be
  13185. lower than supplied value by <code>nbirs</code> option. Default is <var>0</var>.
  13186. This option can be changed at runtime via <a href="#commands">commands</a>.
  13187. </p></dd>
  13188. </dl>
  13189. <a name="Examples-42"></a>
  13190. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-42">29.18.1 Examples</a></h3>
  13191. <ul>
  13192. <li>
  13193. Apply reverb to stream using mono IR file as second input, complete command using ffmpeg:
  13194. <div class="example">
  13195. <pre class="example">ffmpeg -i input.wav -i middle_tunnel_1way_mono.wav -lavfi afir output.wav
  13196. </pre></div>
  13197. </li></ul>
  13198. <p><a name="aformat"></a>
  13199. </p><a name="aformat-1"></a>
  13200. <h2 class="section"><a href="ffprobe-all.html#toc-aformat-1">29.19 aformat</a></h2>
  13201. <p>Set output format constraints for the input audio. The framework will
  13202. negotiate the most appropriate format to minimize conversions.
  13203. </p>
  13204. <p>It accepts the following parameters:
  13205. </p><dl compact="compact">
  13206. <dt>&lsquo;<samp>sample_fmts, f</samp>&rsquo;</dt>
  13207. <dd><p>A &rsquo;|&rsquo;-separated list of requested sample formats.
  13208. </p>
  13209. </dd>
  13210. <dt>&lsquo;<samp>sample_rates, r</samp>&rsquo;</dt>
  13211. <dd><p>A &rsquo;|&rsquo;-separated list of requested sample rates.
  13212. </p>
  13213. </dd>
  13214. <dt>&lsquo;<samp>channel_layouts, cl</samp>&rsquo;</dt>
  13215. <dd><p>A &rsquo;|&rsquo;-separated list of requested channel layouts.
  13216. </p>
  13217. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  13218. for the required syntax.
  13219. </p></dd>
  13220. </dl>
  13221. <p>If a parameter is omitted, all values are allowed.
  13222. </p>
  13223. <p>Force the output to either unsigned 8-bit or signed 16-bit stereo
  13224. </p><div class="example">
  13225. <pre class="example">aformat=sample_fmts=u8|s16:channel_layouts=stereo
  13226. </pre></div>
  13227. <a name="agate"></a>
  13228. <h2 class="section"><a href="ffprobe-all.html#toc-agate">29.20 agate</a></h2>
  13229. <p>A gate is mainly used to reduce lower parts of a signal. This kind of signal
  13230. processing reduces disturbing noise between useful signals.
  13231. </p>
  13232. <p>Gating is done by detecting the volume below a chosen level <var>threshold</var>
  13233. and dividing it by the factor set with <var>ratio</var>. The bottom of the noise
  13234. floor is set via <var>range</var>. Because an exact manipulation of the signal
  13235. would cause distortion of the waveform the reduction can be levelled over
  13236. time. This is done by setting <var>attack</var> and <var>release</var>.
  13237. </p>
  13238. <p><var>attack</var> determines how long the signal has to fall below the threshold
  13239. before any reduction will occur and <var>release</var> sets the time the signal
  13240. has to rise above the threshold to reduce the reduction again.
  13241. Shorter signals than the chosen attack time will be left untouched.
  13242. </p>
  13243. <dl compact="compact">
  13244. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  13245. <dd><p>Set input level before filtering.
  13246. Default is 1. Allowed range is from 0.015625 to 64.
  13247. </p>
  13248. </dd>
  13249. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  13250. <dd><p>Set the mode of operation. Can be <code>upward</code> or <code>downward</code>.
  13251. Default is <code>downward</code>. If set to <code>upward</code> mode, higher parts of signal
  13252. will be amplified, expanding dynamic range in upward direction.
  13253. Otherwise, in case of <code>downward</code> lower parts of signal will be reduced.
  13254. </p>
  13255. </dd>
  13256. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  13257. <dd><p>Set the level of gain reduction when the signal is below the threshold.
  13258. Default is 0.06125. Allowed range is from 0 to 1.
  13259. Setting this to 0 disables reduction and then filter behaves like expander.
  13260. </p>
  13261. </dd>
  13262. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  13263. <dd><p>If a signal rises above this level the gain reduction is released.
  13264. Default is 0.125. Allowed range is from 0 to 1.
  13265. </p>
  13266. </dd>
  13267. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  13268. <dd><p>Set a ratio by which the signal is reduced.
  13269. Default is 2. Allowed range is from 1 to 9000.
  13270. </p>
  13271. </dd>
  13272. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  13273. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  13274. reduction stops.
  13275. Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
  13276. </p>
  13277. </dd>
  13278. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  13279. <dd><p>Amount of milliseconds the signal has to fall below the threshold before the
  13280. reduction is increased again. Default is 250 milliseconds.
  13281. Allowed range is from 0.01 to 9000.
  13282. </p>
  13283. </dd>
  13284. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  13285. <dd><p>Set amount of amplification of signal after processing.
  13286. Default is 1. Allowed range is from 1 to 64.
  13287. </p>
  13288. </dd>
  13289. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  13290. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  13291. Default is 2.828427125. Allowed range is from 1 to 8.
  13292. </p>
  13293. </dd>
  13294. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  13295. <dd><p>Choose if exact signal should be taken for detection or an RMS like one.
  13296. Default is <code>rms</code>. Can be <code>peak</code> or <code>rms</code>.
  13297. </p>
  13298. </dd>
  13299. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  13300. <dd><p>Choose if the average level between all channels or the louder channel affects
  13301. the reduction.
  13302. Default is <code>average</code>. Can be <code>average</code> or <code>maximum</code>.
  13303. </p></dd>
  13304. </dl>
  13305. <a name="aiir"></a>
  13306. <h2 class="section"><a href="ffprobe-all.html#toc-aiir">29.21 aiir</a></h2>
  13307. <p>Apply an arbitrary Infinite Impulse Response filter.
  13308. </p>
  13309. <p>It accepts the following parameters:
  13310. </p>
  13311. <dl compact="compact">
  13312. <dt>&lsquo;<samp>zeros, z</samp>&rsquo;</dt>
  13313. <dd><p>Set numerator/zeros coefficients.
  13314. </p>
  13315. </dd>
  13316. <dt>&lsquo;<samp>poles, p</samp>&rsquo;</dt>
  13317. <dd><p>Set denominator/poles coefficients.
  13318. </p>
  13319. </dd>
  13320. <dt>&lsquo;<samp>gains, k</samp>&rsquo;</dt>
  13321. <dd><p>Set channels gains.
  13322. </p>
  13323. </dd>
  13324. <dt>&lsquo;<samp>dry_gain</samp>&rsquo;</dt>
  13325. <dd><p>Set input gain.
  13326. </p>
  13327. </dd>
  13328. <dt>&lsquo;<samp>wet_gain</samp>&rsquo;</dt>
  13329. <dd><p>Set output gain.
  13330. </p>
  13331. </dd>
  13332. <dt>&lsquo;<samp>format, f</samp>&rsquo;</dt>
  13333. <dd><p>Set coefficients format.
  13334. </p>
  13335. <dl compact="compact">
  13336. <dt>&lsquo;<samp>tf</samp>&rsquo;</dt>
  13337. <dd><p>digital transfer function
  13338. </p></dd>
  13339. <dt>&lsquo;<samp>zp</samp>&rsquo;</dt>
  13340. <dd><p>Z-plane zeros/poles, cartesian (default)
  13341. </p></dd>
  13342. <dt>&lsquo;<samp>pr</samp>&rsquo;</dt>
  13343. <dd><p>Z-plane zeros/poles, polar radians
  13344. </p></dd>
  13345. <dt>&lsquo;<samp>pd</samp>&rsquo;</dt>
  13346. <dd><p>Z-plane zeros/poles, polar degrees
  13347. </p></dd>
  13348. <dt>&lsquo;<samp>sp</samp>&rsquo;</dt>
  13349. <dd><p>S-plane zeros/poles
  13350. </p></dd>
  13351. </dl>
  13352. </dd>
  13353. <dt>&lsquo;<samp>process, r</samp>&rsquo;</dt>
  13354. <dd><p>Set kind of processing.
  13355. Can be <code>d</code> - direct or <code>s</code> - serial cascading. Default is <code>s</code>.
  13356. </p>
  13357. </dd>
  13358. <dt>&lsquo;<samp>precision, e</samp>&rsquo;</dt>
  13359. <dd><p>Set filtering precision.
  13360. </p>
  13361. <dl compact="compact">
  13362. <dt>&lsquo;<samp>dbl</samp>&rsquo;</dt>
  13363. <dd><p>double-precision floating-point (default)
  13364. </p></dd>
  13365. <dt>&lsquo;<samp>flt</samp>&rsquo;</dt>
  13366. <dd><p>single-precision floating-point
  13367. </p></dd>
  13368. <dt>&lsquo;<samp>i32</samp>&rsquo;</dt>
  13369. <dd><p>32-bit integers
  13370. </p></dd>
  13371. <dt>&lsquo;<samp>i16</samp>&rsquo;</dt>
  13372. <dd><p>16-bit integers
  13373. </p></dd>
  13374. </dl>
  13375. </dd>
  13376. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  13377. <dd><p>Normalize filter coefficients, by default is enabled.
  13378. Enabling it will normalize magnitude response at DC to 0dB.
  13379. </p>
  13380. </dd>
  13381. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  13382. <dd><p>How much to use filtered signal in output. Default is 1.
  13383. Range is between 0 and 1.
  13384. </p>
  13385. </dd>
  13386. <dt>&lsquo;<samp>response</samp>&rsquo;</dt>
  13387. <dd><p>Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
  13388. By default it is disabled.
  13389. </p>
  13390. </dd>
  13391. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  13392. <dd><p>Set for which IR channel to display frequency response. By default is first channel
  13393. displayed. This option is used only when <var>response</var> is enabled.
  13394. </p>
  13395. </dd>
  13396. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13397. <dd><p>Set video stream size. This option is used only when <var>response</var> is enabled.
  13398. </p></dd>
  13399. </dl>
  13400. <p>Coefficients in <code>tf</code> format are separated by spaces and are in ascending
  13401. order.
  13402. </p>
  13403. <p>Coefficients in <code>zp</code> format are separated by spaces and order of coefficients
  13404. doesn&rsquo;t matter. Coefficients in <code>zp</code> format are complex numbers with <var>i</var>
  13405. imaginary unit.
  13406. </p>
  13407. <p>Different coefficients and gains can be provided for every channel, in such case
  13408. use &rsquo;|&rsquo; to separate coefficients or gains. Last provided coefficients will be
  13409. used for all remaining channels.
  13410. </p>
  13411. <a name="Examples-122"></a>
  13412. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-122">29.21.1 Examples</a></h3>
  13413. <ul>
  13414. <li>
  13415. Apply 2 pole elliptic notch at around 5000Hz for 48000 Hz sample rate:
  13416. <div class="example">
  13417. <pre class="example">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
  13418. </pre></div>
  13419. </li><li>
  13420. Same as above but in <code>zp</code> format:
  13421. <div class="example">
  13422. <pre class="example">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
  13423. </pre></div>
  13424. </li></ul>
  13425. <a name="alimiter"></a>
  13426. <h2 class="section"><a href="ffprobe-all.html#toc-alimiter">29.22 alimiter</a></h2>
  13427. <p>The limiter prevents an input signal from rising over a desired threshold.
  13428. This limiter uses lookahead technology to prevent your signal from distorting.
  13429. It means that there is a small delay after the signal is processed. Keep in mind
  13430. that the delay it produces is the attack time you set.
  13431. </p>
  13432. <p>The filter accepts the following options:
  13433. </p>
  13434. <dl compact="compact">
  13435. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  13436. <dd><p>Set input gain. Default is 1.
  13437. </p>
  13438. </dd>
  13439. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  13440. <dd><p>Set output gain. Default is 1.
  13441. </p>
  13442. </dd>
  13443. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  13444. <dd><p>Don&rsquo;t let signals above this level pass the limiter. Default is 1.
  13445. </p>
  13446. </dd>
  13447. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  13448. <dd><p>The limiter will reach its attenuation level in this amount of time in
  13449. milliseconds. Default is 5 milliseconds.
  13450. </p>
  13451. </dd>
  13452. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  13453. <dd><p>Come back from limiting to attenuation 1.0 in this amount of milliseconds.
  13454. Default is 50 milliseconds.
  13455. </p>
  13456. </dd>
  13457. <dt>&lsquo;<samp>asc</samp>&rsquo;</dt>
  13458. <dd><p>When gain reduction is always needed ASC takes care of releasing to an
  13459. average reduction level rather than reaching a reduction of 0 in the release
  13460. time.
  13461. </p>
  13462. </dd>
  13463. <dt>&lsquo;<samp>asc_level</samp>&rsquo;</dt>
  13464. <dd><p>Select how much the release time is affected by ASC, 0 means nearly no changes
  13465. in release time while 1 produces higher release times.
  13466. </p>
  13467. </dd>
  13468. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  13469. <dd><p>Auto level output signal. Default is enabled.
  13470. This normalizes audio back to 0dB if enabled.
  13471. </p></dd>
  13472. </dl>
  13473. <p>Depending on picked setting it is recommended to upsample input 2x or 4x times
  13474. with <a href="#aresample">aresample</a> before applying this filter.
  13475. </p>
  13476. <a name="allpass"></a>
  13477. <h2 class="section"><a href="ffprobe-all.html#toc-allpass">29.23 allpass</a></h2>
  13478. <p>Apply a two-pole all-pass filter with central frequency (in Hz)
  13479. <var>frequency</var>, and filter-width <var>width</var>.
  13480. An all-pass filter changes the audio&rsquo;s frequency to phase relationship
  13481. without changing its frequency to amplitude relationship.
  13482. </p>
  13483. <p>The filter accepts the following options:
  13484. </p>
  13485. <dl compact="compact">
  13486. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  13487. <dd><p>Set frequency in Hz.
  13488. </p>
  13489. </dd>
  13490. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  13491. <dd><p>Set method to specify band-width of filter.
  13492. </p><dl compact="compact">
  13493. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  13494. <dd><p>Hz
  13495. </p></dd>
  13496. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  13497. <dd><p>Q-Factor
  13498. </p></dd>
  13499. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13500. <dd><p>octave
  13501. </p></dd>
  13502. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13503. <dd><p>slope
  13504. </p></dd>
  13505. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  13506. <dd><p>kHz
  13507. </p></dd>
  13508. </dl>
  13509. </dd>
  13510. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  13511. <dd><p>Specify the band-width of a filter in width_type units.
  13512. </p>
  13513. </dd>
  13514. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  13515. <dd><p>How much to use filtered signal in output. Default is 1.
  13516. Range is between 0 and 1.
  13517. </p>
  13518. </dd>
  13519. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  13520. <dd><p>Specify which channels to filter, by default all available are filtered.
  13521. </p>
  13522. </dd>
  13523. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  13524. <dd><p>Normalize biquad coefficients, by default is disabled.
  13525. Enabling it will normalize magnitude response at DC to 0dB.
  13526. </p>
  13527. </dd>
  13528. <dt>&lsquo;<samp>order, o</samp>&rsquo;</dt>
  13529. <dd><p>Set the filter order, can be 1 or 2. Default is 2.
  13530. </p></dd>
  13531. </dl>
  13532. <a name="Commands-2"></a>
  13533. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-2">29.23.1 Commands</a></h3>
  13534. <p>This filter supports the following commands:
  13535. </p><dl compact="compact">
  13536. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  13537. <dd><p>Change allpass frequency.
  13538. Syntax for the command is : &quot;<var>frequency</var>&quot;
  13539. </p>
  13540. </dd>
  13541. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  13542. <dd><p>Change allpass width_type.
  13543. Syntax for the command is : &quot;<var>width_type</var>&quot;
  13544. </p>
  13545. </dd>
  13546. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  13547. <dd><p>Change allpass width.
  13548. Syntax for the command is : &quot;<var>width</var>&quot;
  13549. </p>
  13550. </dd>
  13551. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  13552. <dd><p>Change allpass mix.
  13553. Syntax for the command is : &quot;<var>mix</var>&quot;
  13554. </p></dd>
  13555. </dl>
  13556. <a name="aloop"></a>
  13557. <h2 class="section"><a href="ffprobe-all.html#toc-aloop">29.24 aloop</a></h2>
  13558. <p>Loop audio samples.
  13559. </p>
  13560. <p>The filter accepts the following options:
  13561. </p>
  13562. <dl compact="compact">
  13563. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  13564. <dd><p>Set the number of loops. Setting this value to -1 will result in infinite loops.
  13565. Default is 0.
  13566. </p>
  13567. </dd>
  13568. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13569. <dd><p>Set maximal number of samples. Default is 0.
  13570. </p>
  13571. </dd>
  13572. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  13573. <dd><p>Set first sample of loop. Default is 0.
  13574. </p></dd>
  13575. </dl>
  13576. <p><a name="amerge"></a>
  13577. </p><a name="amerge-1"></a>
  13578. <h2 class="section"><a href="ffprobe-all.html#toc-amerge-1">29.25 amerge</a></h2>
  13579. <p>Merge two or more audio streams into a single multi-channel stream.
  13580. </p>
  13581. <p>The filter accepts the following options:
  13582. </p>
  13583. <dl compact="compact">
  13584. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  13585. <dd><p>Set the number of inputs. Default is 2.
  13586. </p>
  13587. </dd>
  13588. </dl>
  13589. <p>If the channel layouts of the inputs are disjoint, and therefore compatible,
  13590. the channel layout of the output will be set accordingly and the channels
  13591. will be reordered as necessary. If the channel layouts of the inputs are not
  13592. disjoint, the output will have all the channels of the first input then all
  13593. the channels of the second input, in that order, and the channel layout of
  13594. the output will be the default value corresponding to the total number of
  13595. channels.
  13596. </p>
  13597. <p>For example, if the first input is in 2.1 (FL+FR+LF) and the second input
  13598. is FC+BL+BR, then the output will be in 5.1, with the channels in the
  13599. following order: a1, a2, b1, a3, b2, b3 (a1 is the first channel of the
  13600. first input, b1 is the first channel of the second input).
  13601. </p>
  13602. <p>On the other hand, if both input are in stereo, the output channels will be
  13603. in the default order: a1, a2, b1, b2, and the channel layout will be
  13604. arbitrarily set to 4.0, which may or may not be the expected value.
  13605. </p>
  13606. <p>All inputs must have the same sample rate, and format.
  13607. </p>
  13608. <p>If inputs do not have the same duration, the output will stop with the
  13609. shortest.
  13610. </p>
  13611. <a name="Examples-144"></a>
  13612. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-144">29.25.1 Examples</a></h3>
  13613. <ul>
  13614. <li>
  13615. Merge two mono files into a stereo stream:
  13616. <div class="example">
  13617. <pre class="example">amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
  13618. </pre></div>
  13619. </li><li>
  13620. Multiple merges assuming 1 video stream and 6 audio streams in &lsquo;<tt>input.mkv</tt>&rsquo;:
  13621. <div class="example">
  13622. <pre class="example">ffmpeg -i input.mkv -filter_complex &quot;[0:1][0:2][0:3][0:4][0:5][0:6] amerge=inputs=6&quot; -c:a pcm_s16le output.mkv
  13623. </pre></div>
  13624. </li></ul>
  13625. <a name="amix"></a>
  13626. <h2 class="section"><a href="ffprobe-all.html#toc-amix">29.26 amix</a></h2>
  13627. <p>Mixes multiple audio inputs into a single output.
  13628. </p>
  13629. <p>Note that this filter only supports float samples (the <var>amerge</var>
  13630. and <var>pan</var> audio filters support many formats). If the <var>amix</var>
  13631. input has integer samples then <a href="#aresample">aresample</a> will be automatically
  13632. inserted to perform the conversion to float samples.
  13633. </p>
  13634. <p>For example
  13635. </p><div class="example">
  13636. <pre class="example">ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
  13637. </pre></div>
  13638. <p>will mix 3 input audio streams to a single output with the same duration as the
  13639. first input and a dropout transition time of 3 seconds.
  13640. </p>
  13641. <p>It accepts the following parameters:
  13642. </p><dl compact="compact">
  13643. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  13644. <dd><p>The number of inputs. If unspecified, it defaults to 2.
  13645. </p>
  13646. </dd>
  13647. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  13648. <dd><p>How to determine the end-of-stream.
  13649. </p><dl compact="compact">
  13650. <dt>&lsquo;<samp>longest</samp>&rsquo;</dt>
  13651. <dd><p>The duration of the longest input. (default)
  13652. </p>
  13653. </dd>
  13654. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  13655. <dd><p>The duration of the shortest input.
  13656. </p>
  13657. </dd>
  13658. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  13659. <dd><p>The duration of the first input.
  13660. </p>
  13661. </dd>
  13662. </dl>
  13663. </dd>
  13664. <dt>&lsquo;<samp>dropout_transition</samp>&rsquo;</dt>
  13665. <dd><p>The transition time, in seconds, for volume renormalization when an input
  13666. stream ends. The default value is 2 seconds.
  13667. </p>
  13668. </dd>
  13669. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  13670. <dd><p>Specify weight of each input audio stream as sequence.
  13671. Each weight is separated by space. By default all inputs have same weight.
  13672. </p></dd>
  13673. </dl>
  13674. <a name="Commands-24"></a>
  13675. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-24">29.26.1 Commands</a></h3>
  13676. <p>This filter supports the following commands:
  13677. </p><dl compact="compact">
  13678. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  13679. <dd><p>Syntax is same as option with same name.
  13680. </p></dd>
  13681. </dl>
  13682. <a name="amultiply"></a>
  13683. <h2 class="section"><a href="ffprobe-all.html#toc-amultiply">29.27 amultiply</a></h2>
  13684. <p>Multiply first audio stream with second audio stream and store result
  13685. in output audio stream. Multiplication is done by multiplying each
  13686. sample from first stream with sample at same position from second stream.
  13687. </p>
  13688. <p>With this element-wise multiplication one can create amplitude fades and
  13689. amplitude modulations.
  13690. </p>
  13691. <a name="anequalizer"></a>
  13692. <h2 class="section"><a href="ffprobe-all.html#toc-anequalizer">29.28 anequalizer</a></h2>
  13693. <p>High-order parametric multiband equalizer for each channel.
  13694. </p>
  13695. <p>It accepts the following parameters:
  13696. </p><dl compact="compact">
  13697. <dt>&lsquo;<samp>params</samp>&rsquo;</dt>
  13698. <dd>
  13699. <p>This option string is in format:
  13700. &quot;c<var>chn</var> f=<var>cf</var> w=<var>w</var> g=<var>g</var> t=<var>f</var> | ...&quot;
  13701. Each equalizer band is separated by &rsquo;|&rsquo;.
  13702. </p>
  13703. <dl compact="compact">
  13704. <dt>&lsquo;<samp>chn</samp>&rsquo;</dt>
  13705. <dd><p>Set channel number to which equalization will be applied.
  13706. If input doesn&rsquo;t have that channel the entry is ignored.
  13707. </p>
  13708. </dd>
  13709. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  13710. <dd><p>Set central frequency for band.
  13711. If input doesn&rsquo;t have that frequency the entry is ignored.
  13712. </p>
  13713. </dd>
  13714. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  13715. <dd><p>Set band width in hertz.
  13716. </p>
  13717. </dd>
  13718. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  13719. <dd><p>Set band gain in dB.
  13720. </p>
  13721. </dd>
  13722. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  13723. <dd><p>Set filter type for band, optional, can be:
  13724. </p>
  13725. <dl compact="compact">
  13726. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  13727. <dd><p>Butterworth, this is default.
  13728. </p>
  13729. </dd>
  13730. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  13731. <dd><p>Chebyshev type 1.
  13732. </p>
  13733. </dd>
  13734. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  13735. <dd><p>Chebyshev type 2.
  13736. </p></dd>
  13737. </dl>
  13738. </dd>
  13739. </dl>
  13740. </dd>
  13741. <dt>&lsquo;<samp>curves</samp>&rsquo;</dt>
  13742. <dd><p>With this option activated frequency response of anequalizer is displayed
  13743. in video stream.
  13744. </p>
  13745. </dd>
  13746. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13747. <dd><p>Set video stream size. Only useful if curves option is activated.
  13748. </p>
  13749. </dd>
  13750. <dt>&lsquo;<samp>mgain</samp>&rsquo;</dt>
  13751. <dd><p>Set max gain that will be displayed. Only useful if curves option is activated.
  13752. Setting this to a reasonable value makes it possible to display gain which is derived from
  13753. neighbour bands which are too close to each other and thus produce higher gain
  13754. when both are activated.
  13755. </p>
  13756. </dd>
  13757. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  13758. <dd><p>Set frequency scale used to draw frequency response in video output.
  13759. Can be linear or logarithmic. Default is logarithmic.
  13760. </p>
  13761. </dd>
  13762. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  13763. <dd><p>Set color for each channel curve which is going to be displayed in video stream.
  13764. This is list of color names separated by space or by &rsquo;|&rsquo;.
  13765. Unrecognised or missing colors will be replaced by white color.
  13766. </p></dd>
  13767. </dl>
  13768. <a name="Examples-31"></a>
  13769. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-31">29.28.1 Examples</a></h3>
  13770. <ul>
  13771. <li>
  13772. Lower gain by 10 of central frequency 200Hz and width 100 Hz
  13773. for first 2 channels using Chebyshev type 1 filter:
  13774. <div class="example">
  13775. <pre class="example">anequalizer=c0 f=200 w=100 g=-10 t=1|c1 f=200 w=100 g=-10 t=1
  13776. </pre></div>
  13777. </li></ul>
  13778. <a name="Commands-13"></a>
  13779. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-13">29.28.2 Commands</a></h3>
  13780. <p>This filter supports the following commands:
  13781. </p><dl compact="compact">
  13782. <dt>&lsquo;<samp>change</samp>&rsquo;</dt>
  13783. <dd><p>Alter existing filter parameters.
  13784. Syntax for the commands is : &quot;<var>fN</var>|f=<var>freq</var>|w=<var>width</var>|g=<var>gain</var>&quot;
  13785. </p>
  13786. <p><var>fN</var> is existing filter number, starting from 0, if no such filter is available
  13787. error is returned.
  13788. <var>freq</var> set new frequency parameter.
  13789. <var>width</var> set new width parameter in herz.
  13790. <var>gain</var> set new gain parameter in dB.
  13791. </p>
  13792. <p>Full filter invocation with asendcmd may look like this:
  13793. asendcmd=c=&rsquo;4.0 anequalizer change 0|f=200|w=50|g=1&rsquo;,anequalizer=...
  13794. </p></dd>
  13795. </dl>
  13796. <a name="anlmdn"></a>
  13797. <h2 class="section"><a href="ffprobe-all.html#toc-anlmdn">29.29 anlmdn</a></h2>
  13798. <p>Reduce broadband noise in audio samples using Non-Local Means algorithm.
  13799. </p>
  13800. <p>Each sample is adjusted by looking for other samples with similar contexts. This
  13801. context similarity is defined by comparing their surrounding patches of size
  13802. &lsquo;<samp>p</samp>&rsquo;. Patches are searched in an area of &lsquo;<samp>r</samp>&rsquo; around the sample.
  13803. </p>
  13804. <p>The filter accepts the following options:
  13805. </p>
  13806. <dl compact="compact">
  13807. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13808. <dd><p>Set denoising strength. Allowed range is from 0.00001 to 10. Default value is 0.00001.
  13809. </p>
  13810. </dd>
  13811. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  13812. <dd><p>Set patch radius duration. Allowed range is from 1 to 100 milliseconds.
  13813. Default value is 2 milliseconds.
  13814. </p>
  13815. </dd>
  13816. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  13817. <dd><p>Set research radius duration. Allowed range is from 2 to 300 milliseconds.
  13818. Default value is 6 milliseconds.
  13819. </p>
  13820. </dd>
  13821. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13822. <dd><p>Set the output mode.
  13823. </p>
  13824. <p>It accepts the following values:
  13825. </p><dl compact="compact">
  13826. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  13827. <dd><p>Pass input unchanged.
  13828. </p>
  13829. </dd>
  13830. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13831. <dd><p>Pass noise filtered out.
  13832. </p>
  13833. </dd>
  13834. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  13835. <dd><p>Pass only noise.
  13836. </p>
  13837. <p>Default value is <var>o</var>.
  13838. </p></dd>
  13839. </dl>
  13840. </dd>
  13841. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  13842. <dd><p>Set smooth factor. Default value is <var>11</var>. Allowed range is from <var>1</var> to <var>15</var>.
  13843. </p></dd>
  13844. </dl>
  13845. <a name="Commands-17"></a>
  13846. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-17">29.29.1 Commands</a></h3>
  13847. <p>This filter supports the following commands:
  13848. </p><dl compact="compact">
  13849. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13850. <dd><p>Change denoise strength. Argument is single float number.
  13851. Syntax for the command is : &quot;<var>s</var>&quot;
  13852. </p>
  13853. </dd>
  13854. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13855. <dd><p>Change output mode.
  13856. Syntax for the command is : &quot;i&quot;, &quot;o&quot; or &quot;n&quot; string.
  13857. </p></dd>
  13858. </dl>
  13859. <a name="anlms"></a>
  13860. <h2 class="section"><a href="ffprobe-all.html#toc-anlms">29.30 anlms</a></h2>
  13861. <p>Apply Normalized Least-Mean-Squares algorithm to the first audio stream using the second audio stream.
  13862. </p>
  13863. <p>This adaptive filter is used to mimic a desired filter by finding the filter coefficients that
  13864. relate to producing the least mean square of the error signal (difference between the desired,
  13865. 2nd input audio stream and the actual signal, the 1st input audio stream).
  13866. </p>
  13867. <p>A description of the accepted options follows.
  13868. </p>
  13869. <dl compact="compact">
  13870. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  13871. <dd><p>Set filter order.
  13872. </p>
  13873. </dd>
  13874. <dt>&lsquo;<samp>mu</samp>&rsquo;</dt>
  13875. <dd><p>Set filter mu.
  13876. </p>
  13877. </dd>
  13878. <dt>&lsquo;<samp>eps</samp>&rsquo;</dt>
  13879. <dd><p>Set the filter eps.
  13880. </p>
  13881. </dd>
  13882. <dt>&lsquo;<samp>leakage</samp>&rsquo;</dt>
  13883. <dd><p>Set the filter leakage.
  13884. </p>
  13885. </dd>
  13886. <dt>&lsquo;<samp>out_mode</samp>&rsquo;</dt>
  13887. <dd><p>It accepts the following values:
  13888. </p><dl compact="compact">
  13889. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  13890. <dd><p>Pass the 1st input.
  13891. </p>
  13892. </dd>
  13893. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  13894. <dd><p>Pass the 2nd input.
  13895. </p>
  13896. </dd>
  13897. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13898. <dd><p>Pass filtered samples.
  13899. </p>
  13900. </dd>
  13901. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  13902. <dd><p>Pass difference between desired and filtered samples.
  13903. </p>
  13904. <p>Default value is <var>o</var>.
  13905. </p></dd>
  13906. </dl>
  13907. </dd>
  13908. </dl>
  13909. <a name="Examples-10"></a>
  13910. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-10">29.30.1 Examples</a></h3>
  13911. <ul>
  13912. <li>
  13913. One of many usages of this filter is noise reduction, input audio is filtered
  13914. with same samples that are delayed by fixed amount, one such example for stereo audio is:
  13915. <div class="example">
  13916. <pre class="example">asplit[a][b],[a]adelay=32S|32S[a],[b][a]anlms=order=128:leakage=0.0005:mu=.5:out_mode=o
  13917. </pre></div>
  13918. </li></ul>
  13919. <a name="Commands-58"></a>
  13920. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-58">29.30.2 Commands</a></h3>
  13921. <p>This filter supports the same commands as options, excluding option <code>order</code>.
  13922. </p>
  13923. <a name="anull"></a>
  13924. <h2 class="section"><a href="ffprobe-all.html#toc-anull">29.31 anull</a></h2>
  13925. <p>Pass the audio source unchanged to the output.
  13926. </p>
  13927. <a name="apad"></a>
  13928. <h2 class="section"><a href="ffprobe-all.html#toc-apad">29.32 apad</a></h2>
  13929. <p>Pad the end of an audio stream with silence.
  13930. </p>
  13931. <p>This can be used together with <code>ffmpeg</code> &lsquo;<samp>-shortest</samp>&rsquo; to
  13932. extend audio streams to the same length as the video stream.
  13933. </p>
  13934. <p>A description of the accepted options follows.
  13935. </p>
  13936. <dl compact="compact">
  13937. <dt>&lsquo;<samp>packet_size</samp>&rsquo;</dt>
  13938. <dd><p>Set silence packet size. Default value is 4096.
  13939. </p>
  13940. </dd>
  13941. <dt>&lsquo;<samp>pad_len</samp>&rsquo;</dt>
  13942. <dd><p>Set the number of samples of silence to add to the end. After the
  13943. value is reached, the stream is terminated. This option is mutually
  13944. exclusive with &lsquo;<samp>whole_len</samp>&rsquo;.
  13945. </p>
  13946. </dd>
  13947. <dt>&lsquo;<samp>whole_len</samp>&rsquo;</dt>
  13948. <dd><p>Set the minimum total number of samples in the output audio stream. If
  13949. the value is longer than the input audio length, silence is added to
  13950. the end, until the value is reached. This option is mutually exclusive
  13951. with &lsquo;<samp>pad_len</samp>&rsquo;.
  13952. </p>
  13953. </dd>
  13954. <dt>&lsquo;<samp>pad_dur</samp>&rsquo;</dt>
  13955. <dd><p>Specify the duration of samples of silence to add. See
  13956. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  13957. for the accepted syntax. Used only if set to non-zero value.
  13958. </p>
  13959. </dd>
  13960. <dt>&lsquo;<samp>whole_dur</samp>&rsquo;</dt>
  13961. <dd><p>Specify the minimum total duration in the output audio stream. See
  13962. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  13963. for the accepted syntax. Used only if set to non-zero value. If the value is longer than
  13964. the input audio length, silence is added to the end, until the value is reached.
  13965. This option is mutually exclusive with &lsquo;<samp>pad_dur</samp>&rsquo;
  13966. </p></dd>
  13967. </dl>
  13968. <p>If neither the &lsquo;<samp>pad_len</samp>&rsquo; nor the &lsquo;<samp>whole_len</samp>&rsquo; nor &lsquo;<samp>pad_dur</samp>&rsquo;
  13969. nor &lsquo;<samp>whole_dur</samp>&rsquo; option is set, the filter will add silence to the end of
  13970. the input stream indefinitely.
  13971. </p>
  13972. <a name="Examples-161"></a>
  13973. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-161">29.32.1 Examples</a></h3>
  13974. <ul>
  13975. <li>
  13976. Add 1024 samples of silence to the end of the input:
  13977. <div class="example">
  13978. <pre class="example">apad=pad_len=1024
  13979. </pre></div>
  13980. </li><li>
  13981. Make sure the audio output will contain at least 10000 samples, pad
  13982. the input with silence if required:
  13983. <div class="example">
  13984. <pre class="example">apad=whole_len=10000
  13985. </pre></div>
  13986. </li><li>
  13987. Use <code>ffmpeg</code> to pad the audio input with silence, so that the
  13988. video stream will always result the shortest and will be converted
  13989. until the end in the output file when using the &lsquo;<samp>shortest</samp>&rsquo;
  13990. option:
  13991. <div class="example">
  13992. <pre class="example">ffmpeg -i VIDEO -i AUDIO -filter_complex &quot;[1:0]apad&quot; -shortest OUTPUT
  13993. </pre></div>
  13994. </li></ul>
  13995. <a name="aphaser"></a>
  13996. <h2 class="section"><a href="ffprobe-all.html#toc-aphaser">29.33 aphaser</a></h2>
  13997. <p>Add a phasing effect to the input audio.
  13998. </p>
  13999. <p>A phaser filter creates series of peaks and troughs in the frequency spectrum.
  14000. The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect.
  14001. </p>
  14002. <p>A description of the accepted parameters follows.
  14003. </p>
  14004. <dl compact="compact">
  14005. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  14006. <dd><p>Set input gain. Default is 0.4.
  14007. </p>
  14008. </dd>
  14009. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  14010. <dd><p>Set output gain. Default is 0.74
  14011. </p>
  14012. </dd>
  14013. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  14014. <dd><p>Set delay in milliseconds. Default is 3.0.
  14015. </p>
  14016. </dd>
  14017. <dt>&lsquo;<samp>decay</samp>&rsquo;</dt>
  14018. <dd><p>Set decay. Default is 0.4.
  14019. </p>
  14020. </dd>
  14021. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  14022. <dd><p>Set modulation speed in Hz. Default is 0.5.
  14023. </p>
  14024. </dd>
  14025. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  14026. <dd><p>Set modulation type. Default is triangular.
  14027. </p>
  14028. <p>It accepts the following values:
  14029. </p><dl compact="compact">
  14030. <dt>&lsquo;<samp>triangular, t</samp>&rsquo;</dt>
  14031. <dt>&lsquo;<samp>sinusoidal, s</samp>&rsquo;</dt>
  14032. </dl>
  14033. </dd>
  14034. </dl>
  14035. <a name="apulsator"></a>
  14036. <h2 class="section"><a href="ffprobe-all.html#toc-apulsator">29.34 apulsator</a></h2>
  14037. <p>Audio pulsator is something between an autopanner and a tremolo.
  14038. But it can produce funny stereo effects as well. Pulsator changes the volume
  14039. of the left and right channel based on a LFO (low frequency oscillator) with
  14040. different waveforms and shifted phases.
  14041. This filter have the ability to define an offset between left and right
  14042. channel. An offset of 0 means that both LFO shapes match each other.
  14043. The left and right channel are altered equally - a conventional tremolo.
  14044. An offset of 50% means that the shape of the right channel is exactly shifted
  14045. in phase (or moved backwards about half of the frequency) - pulsator acts as
  14046. an autopanner. At 1 both curves match again. Every setting in between moves the
  14047. phase shift gapless between all stages and produces some &quot;bypassing&quot; sounds with
  14048. sine and triangle waveforms. The more you set the offset near 1 (starting from
  14049. the 0.5) the faster the signal passes from the left to the right speaker.
  14050. </p>
  14051. <p>The filter accepts the following options:
  14052. </p>
  14053. <dl compact="compact">
  14054. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  14055. <dd><p>Set input gain. By default it is 1. Range is [0.015625 - 64].
  14056. </p>
  14057. </dd>
  14058. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  14059. <dd><p>Set output gain. By default it is 1. Range is [0.015625 - 64].
  14060. </p>
  14061. </dd>
  14062. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  14063. <dd><p>Set waveform shape the LFO will use. Can be one of: sine, triangle, square,
  14064. sawup or sawdown. Default is sine.
  14065. </p>
  14066. </dd>
  14067. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  14068. <dd><p>Set modulation. Define how much of original signal is affected by the LFO.
  14069. </p>
  14070. </dd>
  14071. <dt>&lsquo;<samp>offset_l</samp>&rsquo;</dt>
  14072. <dd><p>Set left channel offset. Default is 0. Allowed range is [0 - 1].
  14073. </p>
  14074. </dd>
  14075. <dt>&lsquo;<samp>offset_r</samp>&rsquo;</dt>
  14076. <dd><p>Set right channel offset. Default is 0.5. Allowed range is [0 - 1].
  14077. </p>
  14078. </dd>
  14079. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  14080. <dd><p>Set pulse width. Default is 1. Allowed range is [0 - 2].
  14081. </p>
  14082. </dd>
  14083. <dt>&lsquo;<samp>timing</samp>&rsquo;</dt>
  14084. <dd><p>Set possible timing mode. Can be one of: bpm, ms or hz. Default is hz.
  14085. </p>
  14086. </dd>
  14087. <dt>&lsquo;<samp>bpm</samp>&rsquo;</dt>
  14088. <dd><p>Set bpm. Default is 120. Allowed range is [30 - 300]. Only used if timing
  14089. is set to bpm.
  14090. </p>
  14091. </dd>
  14092. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  14093. <dd><p>Set ms. Default is 500. Allowed range is [10 - 2000]. Only used if timing
  14094. is set to ms.
  14095. </p>
  14096. </dd>
  14097. <dt>&lsquo;<samp>hz</samp>&rsquo;</dt>
  14098. <dd><p>Set frequency in Hz. Default is 2. Allowed range is [0.01 - 100]. Only used
  14099. if timing is set to hz.
  14100. </p></dd>
  14101. </dl>
  14102. <p><a name="aresample"></a>
  14103. </p><a name="aresample-1"></a>
  14104. <h2 class="section"><a href="ffprobe-all.html#toc-aresample-1">29.35 aresample</a></h2>
  14105. <p>Resample the input audio to the specified parameters, using the
  14106. libswresample library. If none are specified then the filter will
  14107. automatically convert between its input and output.
  14108. </p>
  14109. <p>This filter is also able to stretch/squeeze the audio data to make it match
  14110. the timestamps or to inject silence / cut out audio to make it match the
  14111. timestamps, do a combination of both or do neither.
  14112. </p>
  14113. <p>The filter accepts the syntax
  14114. [<var>sample_rate</var>:]<var>resampler_options</var>, where <var>sample_rate</var>
  14115. expresses a sample rate and <var>resampler_options</var> is a list of
  14116. <var>key</var>=<var>value</var> pairs, separated by &quot;:&quot;. See the
  14117. <a href="ffmpeg-resampler.html#Resampler-Options">(ffmpeg-resampler)&quot;Resampler Options&quot; section in the ffmpeg-resampler(1) manual</a>
  14118. for the complete list of supported options.
  14119. </p>
  14120. <a name="Examples-83"></a>
  14121. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-83">29.35.1 Examples</a></h3>
  14122. <ul>
  14123. <li>
  14124. Resample the input audio to 44100Hz:
  14125. <div class="example">
  14126. <pre class="example">aresample=44100
  14127. </pre></div>
  14128. </li><li>
  14129. Stretch/squeeze samples to the given timestamps, with a maximum of 1000
  14130. samples per second compensation:
  14131. <div class="example">
  14132. <pre class="example">aresample=async=1000
  14133. </pre></div>
  14134. </li></ul>
  14135. <a name="areverse"></a>
  14136. <h2 class="section"><a href="ffprobe-all.html#toc-areverse">29.36 areverse</a></h2>
  14137. <p>Reverse an audio clip.
  14138. </p>
  14139. <p>Warning: This filter requires memory to buffer the entire clip, so trimming
  14140. is suggested.
  14141. </p>
  14142. <a name="Examples-96"></a>
  14143. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-96">29.36.1 Examples</a></h3>
  14144. <ul>
  14145. <li>
  14146. Take the first 5 seconds of a clip, and reverse it.
  14147. <div class="example">
  14148. <pre class="example">atrim=end=5,areverse
  14149. </pre></div>
  14150. </li></ul>
  14151. <a name="arnndn"></a>
  14152. <h2 class="section"><a href="ffprobe-all.html#toc-arnndn">29.37 arnndn</a></h2>
  14153. <p>Reduce noise from speech using Recurrent Neural Networks.
  14154. </p>
  14155. <p>This filter accepts the following options:
  14156. </p>
  14157. <dl compact="compact">
  14158. <dt>&lsquo;<samp>model, m</samp>&rsquo;</dt>
  14159. <dd><p>Set train model file to load. This option is always required.
  14160. </p></dd>
  14161. </dl>
  14162. <a name="asetnsamples"></a>
  14163. <h2 class="section"><a href="ffprobe-all.html#toc-asetnsamples">29.38 asetnsamples</a></h2>
  14164. <p>Set the number of samples per each output audio frame.
  14165. </p>
  14166. <p>The last output packet may contain a different number of samples, as
  14167. the filter will flush all the remaining samples when the input audio
  14168. signals its end.
  14169. </p>
  14170. <p>The filter accepts the following options:
  14171. </p>
  14172. <dl compact="compact">
  14173. <dt>&lsquo;<samp>nb_out_samples, n</samp>&rsquo;</dt>
  14174. <dd><p>Set the number of frames per each output audio frame. The number is
  14175. intended as the number of samples <em>per each channel</em>.
  14176. Default value is 1024.
  14177. </p>
  14178. </dd>
  14179. <dt>&lsquo;<samp>pad, p</samp>&rsquo;</dt>
  14180. <dd><p>If set to 1, the filter will pad the last audio frame with zeroes, so
  14181. that the last frame will contain the same number of samples as the
  14182. previous ones. Default value is 1.
  14183. </p></dd>
  14184. </dl>
  14185. <p>For example, to set the number of per-frame samples to 1234 and
  14186. disable padding for the last frame, use:
  14187. </p><div class="example">
  14188. <pre class="example">asetnsamples=n=1234:p=0
  14189. </pre></div>
  14190. <a name="asetrate"></a>
  14191. <h2 class="section"><a href="ffprobe-all.html#toc-asetrate">29.39 asetrate</a></h2>
  14192. <p>Set the sample rate without altering the PCM data.
  14193. This will result in a change of speed and pitch.
  14194. </p>
  14195. <p>The filter accepts the following options:
  14196. </p>
  14197. <dl compact="compact">
  14198. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  14199. <dd><p>Set the output sample rate. Default is 44100 Hz.
  14200. </p></dd>
  14201. </dl>
  14202. <a name="ashowinfo"></a>
  14203. <h2 class="section"><a href="ffprobe-all.html#toc-ashowinfo">29.40 ashowinfo</a></h2>
  14204. <p>Show a line containing various information for each input audio frame.
  14205. The input audio is not modified.
  14206. </p>
  14207. <p>The shown line contains a sequence of key/value pairs of the form
  14208. <var>key</var>:<var>value</var>.
  14209. </p>
  14210. <p>The following values are shown in the output:
  14211. </p>
  14212. <dl compact="compact">
  14213. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  14214. <dd><p>The (sequential) number of the input frame, starting from 0.
  14215. </p>
  14216. </dd>
  14217. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  14218. <dd><p>The presentation timestamp of the input frame, in time base units; the time base
  14219. depends on the filter input pad, and is usually 1/<var>sample_rate</var>.
  14220. </p>
  14221. </dd>
  14222. <dt>&lsquo;<samp>pts_time</samp>&rsquo;</dt>
  14223. <dd><p>The presentation timestamp of the input frame in seconds.
  14224. </p>
  14225. </dd>
  14226. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  14227. <dd><p>position of the frame in the input stream, -1 if this information in
  14228. unavailable and/or meaningless (for example in case of synthetic audio)
  14229. </p>
  14230. </dd>
  14231. <dt>&lsquo;<samp>fmt</samp>&rsquo;</dt>
  14232. <dd><p>The sample format.
  14233. </p>
  14234. </dd>
  14235. <dt>&lsquo;<samp>chlayout</samp>&rsquo;</dt>
  14236. <dd><p>The channel layout.
  14237. </p>
  14238. </dd>
  14239. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  14240. <dd><p>The sample rate for the audio frame.
  14241. </p>
  14242. </dd>
  14243. <dt>&lsquo;<samp>nb_samples</samp>&rsquo;</dt>
  14244. <dd><p>The number of samples (per channel) in the frame.
  14245. </p>
  14246. </dd>
  14247. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  14248. <dd><p>The Adler-32 checksum (printed in hexadecimal) of the audio data. For planar
  14249. audio, the data is treated as if all the planes were concatenated.
  14250. </p>
  14251. </dd>
  14252. <dt>&lsquo;<samp>plane_checksums</samp>&rsquo;</dt>
  14253. <dd><p>A list of Adler-32 checksums for each data plane.
  14254. </p></dd>
  14255. </dl>
  14256. <a name="asoftclip"></a>
  14257. <h2 class="section"><a href="ffprobe-all.html#toc-asoftclip">29.41 asoftclip</a></h2>
  14258. <p>Apply audio soft clipping.
  14259. </p>
  14260. <p>Soft clipping is a type of distortion effect where the amplitude of a signal is saturated
  14261. along a smooth curve, rather than the abrupt shape of hard-clipping.
  14262. </p>
  14263. <p>This filter accepts the following options:
  14264. </p>
  14265. <dl compact="compact">
  14266. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  14267. <dd><p>Set type of soft-clipping.
  14268. </p>
  14269. <p>It accepts the following values:
  14270. </p><dl compact="compact">
  14271. <dt>&lsquo;<samp>tanh</samp>&rsquo;</dt>
  14272. <dt>&lsquo;<samp>atan</samp>&rsquo;</dt>
  14273. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  14274. <dt>&lsquo;<samp>exp</samp>&rsquo;</dt>
  14275. <dt>&lsquo;<samp>alg</samp>&rsquo;</dt>
  14276. <dt>&lsquo;<samp>quintic</samp>&rsquo;</dt>
  14277. <dt>&lsquo;<samp>sin</samp>&rsquo;</dt>
  14278. </dl>
  14279. </dd>
  14280. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  14281. <dd><p>Set additional parameter which controls sigmoid function.
  14282. </p></dd>
  14283. </dl>
  14284. <a name="Commands-53"></a>
  14285. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-53">29.41.1 Commands</a></h3>
  14286. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  14287. </p>
  14288. <a name="asr"></a>
  14289. <h2 class="section"><a href="ffprobe-all.html#toc-asr">29.42 asr</a></h2>
  14290. <p>Automatic Speech Recognition
  14291. </p>
  14292. <p>This filter uses PocketSphinx for speech recognition. To enable
  14293. compilation of this filter, you need to configure FFmpeg with
  14294. <code>--enable-pocketsphinx</code>.
  14295. </p>
  14296. <p>It accepts the following options:
  14297. </p>
  14298. <dl compact="compact">
  14299. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  14300. <dd><p>Set sampling rate of input audio. Defaults is <code>16000</code>.
  14301. This need to match speech models, otherwise one will get poor results.
  14302. </p>
  14303. </dd>
  14304. <dt>&lsquo;<samp>hmm</samp>&rsquo;</dt>
  14305. <dd><p>Set dictionary containing acoustic model files.
  14306. </p>
  14307. </dd>
  14308. <dt>&lsquo;<samp>dict</samp>&rsquo;</dt>
  14309. <dd><p>Set pronunciation dictionary.
  14310. </p>
  14311. </dd>
  14312. <dt>&lsquo;<samp>lm</samp>&rsquo;</dt>
  14313. <dd><p>Set language model file.
  14314. </p>
  14315. </dd>
  14316. <dt>&lsquo;<samp>lmctl</samp>&rsquo;</dt>
  14317. <dd><p>Set language model set.
  14318. </p>
  14319. </dd>
  14320. <dt>&lsquo;<samp>lmname</samp>&rsquo;</dt>
  14321. <dd><p>Set which language model to use.
  14322. </p>
  14323. </dd>
  14324. <dt>&lsquo;<samp>logfn</samp>&rsquo;</dt>
  14325. <dd><p>Set output for log messages.
  14326. </p></dd>
  14327. </dl>
  14328. <p>The filter exports recognized speech as the frame metadata <code>lavfi.asr.text</code>.
  14329. </p>
  14330. <p><a name="astats"></a>
  14331. </p><a name="astats-1"></a>
  14332. <h2 class="section"><a href="ffprobe-all.html#toc-astats-1">29.43 astats</a></h2>
  14333. <p>Display time domain statistical information about the audio channels.
  14334. Statistics are calculated and displayed for each audio channel and,
  14335. where applicable, an overall figure is also given.
  14336. </p>
  14337. <p>It accepts the following option:
  14338. </p><dl compact="compact">
  14339. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  14340. <dd><p>Short window length in seconds, used for peak and trough RMS measurement.
  14341. Default is <code>0.05</code> (50 milliseconds). Allowed range is <code>[0.01 - 10]</code>.
  14342. </p>
  14343. </dd>
  14344. <dt>&lsquo;<samp>metadata</samp>&rsquo;</dt>
  14345. <dd>
  14346. <p>Set metadata injection. All the metadata keys are prefixed with <code>lavfi.astats.X</code>,
  14347. where <code>X</code> is channel number starting from 1 or string <code>Overall</code>. Default is
  14348. disabled.
  14349. </p>
  14350. <p>Available keys for each channel are:
  14351. DC_offset
  14352. Min_level
  14353. Max_level
  14354. Min_difference
  14355. Max_difference
  14356. Mean_difference
  14357. RMS_difference
  14358. Peak_level
  14359. RMS_peak
  14360. RMS_trough
  14361. Crest_factor
  14362. Flat_factor
  14363. Peak_count
  14364. Noise_floor
  14365. Noise_floor_count
  14366. Bit_depth
  14367. Dynamic_range
  14368. Zero_crossings
  14369. Zero_crossings_rate
  14370. Number_of_NaNs
  14371. Number_of_Infs
  14372. Number_of_denormals
  14373. </p>
  14374. <p>and for Overall:
  14375. DC_offset
  14376. Min_level
  14377. Max_level
  14378. Min_difference
  14379. Max_difference
  14380. Mean_difference
  14381. RMS_difference
  14382. Peak_level
  14383. RMS_level
  14384. RMS_peak
  14385. RMS_trough
  14386. Flat_factor
  14387. Peak_count
  14388. Noise_floor
  14389. Noise_floor_count
  14390. Bit_depth
  14391. Number_of_samples
  14392. Number_of_NaNs
  14393. Number_of_Infs
  14394. Number_of_denormals
  14395. </p>
  14396. <p>For example full key look like this <code>lavfi.astats.1.DC_offset</code> or
  14397. this <code>lavfi.astats.Overall.Peak_count</code>.
  14398. </p>
  14399. <p>For description what each key means read below.
  14400. </p>
  14401. </dd>
  14402. <dt>&lsquo;<samp>reset</samp>&rsquo;</dt>
  14403. <dd><p>Set number of frame after which stats are going to be recalculated.
  14404. Default is disabled.
  14405. </p>
  14406. </dd>
  14407. <dt>&lsquo;<samp>measure_perchannel</samp>&rsquo;</dt>
  14408. <dd><p>Select the entries which need to be measured per channel. The metadata keys can
  14409. be used as flags, default is &lsquo;<samp>all</samp>&rsquo; which measures everything.
  14410. &lsquo;<samp>none</samp>&rsquo; disables all per channel measurement.
  14411. </p>
  14412. </dd>
  14413. <dt>&lsquo;<samp>measure_overall</samp>&rsquo;</dt>
  14414. <dd><p>Select the entries which need to be measured overall. The metadata keys can
  14415. be used as flags, default is &lsquo;<samp>all</samp>&rsquo; which measures everything.
  14416. &lsquo;<samp>none</samp>&rsquo; disables all overall measurement.
  14417. </p>
  14418. </dd>
  14419. </dl>
  14420. <p>A description of each shown parameter follows:
  14421. </p>
  14422. <dl compact="compact">
  14423. <dt>&lsquo;<samp>DC offset</samp>&rsquo;</dt>
  14424. <dd><p>Mean amplitude displacement from zero.
  14425. </p>
  14426. </dd>
  14427. <dt>&lsquo;<samp>Min level</samp>&rsquo;</dt>
  14428. <dd><p>Minimal sample level.
  14429. </p>
  14430. </dd>
  14431. <dt>&lsquo;<samp>Max level</samp>&rsquo;</dt>
  14432. <dd><p>Maximal sample level.
  14433. </p>
  14434. </dd>
  14435. <dt>&lsquo;<samp>Min difference</samp>&rsquo;</dt>
  14436. <dd><p>Minimal difference between two consecutive samples.
  14437. </p>
  14438. </dd>
  14439. <dt>&lsquo;<samp>Max difference</samp>&rsquo;</dt>
  14440. <dd><p>Maximal difference between two consecutive samples.
  14441. </p>
  14442. </dd>
  14443. <dt>&lsquo;<samp>Mean difference</samp>&rsquo;</dt>
  14444. <dd><p>Mean difference between two consecutive samples.
  14445. The average of each difference between two consecutive samples.
  14446. </p>
  14447. </dd>
  14448. <dt>&lsquo;<samp>RMS difference</samp>&rsquo;</dt>
  14449. <dd><p>Root Mean Square difference between two consecutive samples.
  14450. </p>
  14451. </dd>
  14452. <dt>&lsquo;<samp>Peak level dB</samp>&rsquo;</dt>
  14453. <dt>&lsquo;<samp>RMS level dB</samp>&rsquo;</dt>
  14454. <dd><p>Standard peak and RMS level measured in dBFS.
  14455. </p>
  14456. </dd>
  14457. <dt>&lsquo;<samp>RMS peak dB</samp>&rsquo;</dt>
  14458. <dt>&lsquo;<samp>RMS trough dB</samp>&rsquo;</dt>
  14459. <dd><p>Peak and trough values for RMS level measured over a short window.
  14460. </p>
  14461. </dd>
  14462. <dt>&lsquo;<samp>Crest factor</samp>&rsquo;</dt>
  14463. <dd><p>Standard ratio of peak to RMS level (note: not in dB).
  14464. </p>
  14465. </dd>
  14466. <dt>&lsquo;<samp>Flat factor</samp>&rsquo;</dt>
  14467. <dd><p>Flatness (i.e. consecutive samples with the same value) of the signal at its peak levels
  14468. (i.e. either <var>Min level</var> or <var>Max level</var>).
  14469. </p>
  14470. </dd>
  14471. <dt>&lsquo;<samp>Peak count</samp>&rsquo;</dt>
  14472. <dd><p>Number of occasions (not the number of samples) that the signal attained either
  14473. <var>Min level</var> or <var>Max level</var>.
  14474. </p>
  14475. </dd>
  14476. <dt>&lsquo;<samp>Noise floor dB</samp>&rsquo;</dt>
  14477. <dd><p>Minimum local peak measured in dBFS over a short window.
  14478. </p>
  14479. </dd>
  14480. <dt>&lsquo;<samp>Noise floor count</samp>&rsquo;</dt>
  14481. <dd><p>Number of occasions (not the number of samples) that the signal attained
  14482. <var>Noise floor</var>.
  14483. </p>
  14484. </dd>
  14485. <dt>&lsquo;<samp>Bit depth</samp>&rsquo;</dt>
  14486. <dd><p>Overall bit depth of audio. Number of bits used for each sample.
  14487. </p>
  14488. </dd>
  14489. <dt>&lsquo;<samp>Dynamic range</samp>&rsquo;</dt>
  14490. <dd><p>Measured dynamic range of audio in dB.
  14491. </p>
  14492. </dd>
  14493. <dt>&lsquo;<samp>Zero crossings</samp>&rsquo;</dt>
  14494. <dd><p>Number of points where the waveform crosses the zero level axis.
  14495. </p>
  14496. </dd>
  14497. <dt>&lsquo;<samp>Zero crossings rate</samp>&rsquo;</dt>
  14498. <dd><p>Rate of Zero crossings and number of audio samples.
  14499. </p></dd>
  14500. </dl>
  14501. <a name="asubboost"></a>
  14502. <h2 class="section"><a href="ffprobe-all.html#toc-asubboost">29.44 asubboost</a></h2>
  14503. <p>Boost subwoofer frequencies.
  14504. </p>
  14505. <p>The filter accepts the following options:
  14506. </p>
  14507. <dl compact="compact">
  14508. <dt>&lsquo;<samp>dry</samp>&rsquo;</dt>
  14509. <dd><p>Set dry gain, how much of original signal is kept. Allowed range is from 0 to 1.
  14510. Default value is 0.5.
  14511. </p>
  14512. </dd>
  14513. <dt>&lsquo;<samp>wet</samp>&rsquo;</dt>
  14514. <dd><p>Set wet gain, how much of filtered signal is kept. Allowed range is from 0 to 1.
  14515. Default value is 0.8.
  14516. </p>
  14517. </dd>
  14518. <dt>&lsquo;<samp>decay</samp>&rsquo;</dt>
  14519. <dd><p>Set delay line decay gain value. Allowed range is from 0 to 1.
  14520. Default value is 0.7.
  14521. </p>
  14522. </dd>
  14523. <dt>&lsquo;<samp>feedback</samp>&rsquo;</dt>
  14524. <dd><p>Set delay line feedback gain value. Allowed range is from 0 to 1.
  14525. Default value is 0.5.
  14526. </p>
  14527. </dd>
  14528. <dt>&lsquo;<samp>cutoff</samp>&rsquo;</dt>
  14529. <dd><p>Set cutoff frequency in herz. Allowed range is 50 to 900.
  14530. Default value is 100.
  14531. </p>
  14532. </dd>
  14533. <dt>&lsquo;<samp>slope</samp>&rsquo;</dt>
  14534. <dd><p>Set slope amount for cutoff frequency. Allowed range is 0.0001 to 1.
  14535. Default value is 0.5.
  14536. </p>
  14537. </dd>
  14538. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  14539. <dd><p>Set delay. Allowed range is from 1 to 100.
  14540. Default value is 20.
  14541. </p></dd>
  14542. </dl>
  14543. <a name="Commands-65"></a>
  14544. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-65">29.44.1 Commands</a></h3>
  14545. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  14546. </p>
  14547. <a name="atempo"></a>
  14548. <h2 class="section"><a href="ffprobe-all.html#toc-atempo">29.45 atempo</a></h2>
  14549. <p>Adjust audio tempo.
  14550. </p>
  14551. <p>The filter accepts exactly one parameter, the audio tempo. If not
  14552. specified then the filter will assume nominal 1.0 tempo. Tempo must
  14553. be in the [0.5, 100.0] range.
  14554. </p>
  14555. <p>Note that tempo greater than 2 will skip some samples rather than
  14556. blend them in. If for any reason this is a concern it is always
  14557. possible to daisy-chain several instances of atempo to achieve the
  14558. desired product tempo.
  14559. </p>
  14560. <a name="Examples-162"></a>
  14561. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-162">29.45.1 Examples</a></h3>
  14562. <ul>
  14563. <li>
  14564. Slow down audio to 80% tempo:
  14565. <div class="example">
  14566. <pre class="example">atempo=0.8
  14567. </pre></div>
  14568. </li><li>
  14569. To speed up audio to 300% tempo:
  14570. <div class="example">
  14571. <pre class="example">atempo=3
  14572. </pre></div>
  14573. </li><li>
  14574. To speed up audio to 300% tempo by daisy-chaining two atempo instances:
  14575. <div class="example">
  14576. <pre class="example">atempo=sqrt(3),atempo=sqrt(3)
  14577. </pre></div>
  14578. </li></ul>
  14579. <a name="Commands-69"></a>
  14580. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-69">29.45.2 Commands</a></h3>
  14581. <p>This filter supports the following commands:
  14582. </p><dl compact="compact">
  14583. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  14584. <dd><p>Change filter tempo scale factor.
  14585. Syntax for the command is : &quot;<var>tempo</var>&quot;
  14586. </p></dd>
  14587. </dl>
  14588. <a name="atrim"></a>
  14589. <h2 class="section"><a href="ffprobe-all.html#toc-atrim">29.46 atrim</a></h2>
  14590. <p>Trim the input so that the output contains one continuous subpart of the input.
  14591. </p>
  14592. <p>It accepts the following parameters:
  14593. </p><dl compact="compact">
  14594. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  14595. <dd><p>Timestamp (in seconds) of the start of the section to keep. I.e. the audio
  14596. sample with the timestamp <var>start</var> will be the first sample in the output.
  14597. </p>
  14598. </dd>
  14599. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  14600. <dd><p>Specify time of the first audio sample that will be dropped, i.e. the
  14601. audio sample immediately preceding the one with the timestamp <var>end</var> will be
  14602. the last sample in the output.
  14603. </p>
  14604. </dd>
  14605. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  14606. <dd><p>Same as <var>start</var>, except this option sets the start timestamp in samples
  14607. instead of seconds.
  14608. </p>
  14609. </dd>
  14610. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  14611. <dd><p>Same as <var>end</var>, except this option sets the end timestamp in samples instead
  14612. of seconds.
  14613. </p>
  14614. </dd>
  14615. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  14616. <dd><p>The maximum duration of the output in seconds.
  14617. </p>
  14618. </dd>
  14619. <dt>&lsquo;<samp>start_sample</samp>&rsquo;</dt>
  14620. <dd><p>The number of the first sample that should be output.
  14621. </p>
  14622. </dd>
  14623. <dt>&lsquo;<samp>end_sample</samp>&rsquo;</dt>
  14624. <dd><p>The number of the first sample that should be dropped.
  14625. </p></dd>
  14626. </dl>
  14627. <p>&lsquo;<samp>start</samp>&rsquo;, &lsquo;<samp>end</samp>&rsquo;, and &lsquo;<samp>duration</samp>&rsquo; are expressed as time
  14628. duration specifications; see
  14629. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  14630. </p>
  14631. <p>Note that the first two sets of the start/end options and the &lsquo;<samp>duration</samp>&rsquo;
  14632. option look at the frame timestamp, while the _sample options simply count the
  14633. samples that pass through the filter. So start/end_pts and start/end_sample will
  14634. give different results when the timestamps are wrong, inexact or do not start at
  14635. zero. Also note that this filter does not modify the timestamps. If you wish
  14636. to have the output timestamps start at zero, insert the asetpts filter after the
  14637. atrim filter.
  14638. </p>
  14639. <p>If multiple start or end options are set, this filter tries to be greedy and
  14640. keep all samples that match at least one of the specified constraints. To keep
  14641. only the part that matches all the constraints at once, chain multiple atrim
  14642. filters.
  14643. </p>
  14644. <p>The defaults are such that all the input is kept. So it is possible to set e.g.
  14645. just the end values to keep everything before the specified time.
  14646. </p>
  14647. <p>Examples:
  14648. </p><ul>
  14649. <li>
  14650. Drop everything except the second minute of input:
  14651. <div class="example">
  14652. <pre class="example">ffmpeg -i INPUT -af atrim=60:120
  14653. </pre></div>
  14654. </li><li>
  14655. Keep only the first 1000 samples:
  14656. <div class="example">
  14657. <pre class="example">ffmpeg -i INPUT -af atrim=end_sample=1000
  14658. </pre></div>
  14659. </li></ul>
  14660. <a name="axcorrelate"></a>
  14661. <h2 class="section"><a href="ffprobe-all.html#toc-axcorrelate">29.47 axcorrelate</a></h2>
  14662. <p>Calculate normalized cross-correlation between two input audio streams.
  14663. </p>
  14664. <p>Resulted samples are always between -1 and 1 inclusive.
  14665. If result is 1 it means two input samples are highly correlated in that selected segment.
  14666. Result 0 means they are not correlated at all.
  14667. If result is -1 it means two input samples are out of phase, which means they cancel each
  14668. other.
  14669. </p>
  14670. <p>The filter accepts the following options:
  14671. </p>
  14672. <dl compact="compact">
  14673. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  14674. <dd><p>Set size of segment over which cross-correlation is calculated.
  14675. Default is 256. Allowed range is from 2 to 131072.
  14676. </p>
  14677. </dd>
  14678. <dt>&lsquo;<samp>algo</samp>&rsquo;</dt>
  14679. <dd><p>Set algorithm for cross-correlation. Can be <code>slow</code> or <code>fast</code>.
  14680. Default is <code>slow</code>. Fast algorithm assumes mean values over any given segment
  14681. are always zero and thus need much less calculations to make.
  14682. This is generally not true, but is valid for typical audio streams.
  14683. </p></dd>
  14684. </dl>
  14685. <a name="Examples-153"></a>
  14686. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-153">29.47.1 Examples</a></h3>
  14687. <ul>
  14688. <li>
  14689. Calculate correlation between channels in stereo audio stream:
  14690. <div class="example">
  14691. <pre class="example">ffmpeg -i stereo.wav -af channelsplit,axcorrelate=size=1024:algo=fast correlation.wav
  14692. </pre></div>
  14693. </li></ul>
  14694. <a name="bandpass"></a>
  14695. <h2 class="section"><a href="ffprobe-all.html#toc-bandpass">29.48 bandpass</a></h2>
  14696. <p>Apply a two-pole Butterworth band-pass filter with central
  14697. frequency <var>frequency</var>, and (3dB-point) band-width width.
  14698. The <var>csg</var> option selects a constant skirt gain (peak gain = Q)
  14699. instead of the default: constant 0dB peak gain.
  14700. The filter roll off at 6dB per octave (20dB per decade).
  14701. </p>
  14702. <p>The filter accepts the following options:
  14703. </p>
  14704. <dl compact="compact">
  14705. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14706. <dd><p>Set the filter&rsquo;s central frequency. Default is <code>3000</code>.
  14707. </p>
  14708. </dd>
  14709. <dt>&lsquo;<samp>csg</samp>&rsquo;</dt>
  14710. <dd><p>Constant skirt gain if set to 1. Defaults to 0.
  14711. </p>
  14712. </dd>
  14713. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14714. <dd><p>Set method to specify band-width of filter.
  14715. </p><dl compact="compact">
  14716. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14717. <dd><p>Hz
  14718. </p></dd>
  14719. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14720. <dd><p>Q-Factor
  14721. </p></dd>
  14722. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14723. <dd><p>octave
  14724. </p></dd>
  14725. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14726. <dd><p>slope
  14727. </p></dd>
  14728. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14729. <dd><p>kHz
  14730. </p></dd>
  14731. </dl>
  14732. </dd>
  14733. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14734. <dd><p>Specify the band-width of a filter in width_type units.
  14735. </p>
  14736. </dd>
  14737. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14738. <dd><p>How much to use filtered signal in output. Default is 1.
  14739. Range is between 0 and 1.
  14740. </p>
  14741. </dd>
  14742. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14743. <dd><p>Specify which channels to filter, by default all available are filtered.
  14744. </p>
  14745. </dd>
  14746. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14747. <dd><p>Normalize biquad coefficients, by default is disabled.
  14748. Enabling it will normalize magnitude response at DC to 0dB.
  14749. </p></dd>
  14750. </dl>
  14751. <a name="Commands-25"></a>
  14752. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-25">29.48.1 Commands</a></h3>
  14753. <p>This filter supports the following commands:
  14754. </p><dl compact="compact">
  14755. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14756. <dd><p>Change bandpass frequency.
  14757. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14758. </p>
  14759. </dd>
  14760. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14761. <dd><p>Change bandpass width_type.
  14762. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14763. </p>
  14764. </dd>
  14765. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14766. <dd><p>Change bandpass width.
  14767. Syntax for the command is : &quot;<var>width</var>&quot;
  14768. </p>
  14769. </dd>
  14770. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14771. <dd><p>Change bandpass mix.
  14772. Syntax for the command is : &quot;<var>mix</var>&quot;
  14773. </p></dd>
  14774. </dl>
  14775. <a name="bandreject"></a>
  14776. <h2 class="section"><a href="ffprobe-all.html#toc-bandreject">29.49 bandreject</a></h2>
  14777. <p>Apply a two-pole Butterworth band-reject filter with central
  14778. frequency <var>frequency</var>, and (3dB-point) band-width <var>width</var>.
  14779. The filter roll off at 6dB per octave (20dB per decade).
  14780. </p>
  14781. <p>The filter accepts the following options:
  14782. </p>
  14783. <dl compact="compact">
  14784. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14785. <dd><p>Set the filter&rsquo;s central frequency. Default is <code>3000</code>.
  14786. </p>
  14787. </dd>
  14788. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14789. <dd><p>Set method to specify band-width of filter.
  14790. </p><dl compact="compact">
  14791. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14792. <dd><p>Hz
  14793. </p></dd>
  14794. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14795. <dd><p>Q-Factor
  14796. </p></dd>
  14797. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14798. <dd><p>octave
  14799. </p></dd>
  14800. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14801. <dd><p>slope
  14802. </p></dd>
  14803. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14804. <dd><p>kHz
  14805. </p></dd>
  14806. </dl>
  14807. </dd>
  14808. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14809. <dd><p>Specify the band-width of a filter in width_type units.
  14810. </p>
  14811. </dd>
  14812. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14813. <dd><p>How much to use filtered signal in output. Default is 1.
  14814. Range is between 0 and 1.
  14815. </p>
  14816. </dd>
  14817. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14818. <dd><p>Specify which channels to filter, by default all available are filtered.
  14819. </p>
  14820. </dd>
  14821. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14822. <dd><p>Normalize biquad coefficients, by default is disabled.
  14823. Enabling it will normalize magnitude response at DC to 0dB.
  14824. </p></dd>
  14825. </dl>
  14826. <a name="Commands-54"></a>
  14827. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-54">29.49.1 Commands</a></h3>
  14828. <p>This filter supports the following commands:
  14829. </p><dl compact="compact">
  14830. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14831. <dd><p>Change bandreject frequency.
  14832. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14833. </p>
  14834. </dd>
  14835. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14836. <dd><p>Change bandreject width_type.
  14837. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14838. </p>
  14839. </dd>
  14840. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14841. <dd><p>Change bandreject width.
  14842. Syntax for the command is : &quot;<var>width</var>&quot;
  14843. </p>
  14844. </dd>
  14845. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14846. <dd><p>Change bandreject mix.
  14847. Syntax for the command is : &quot;<var>mix</var>&quot;
  14848. </p></dd>
  14849. </dl>
  14850. <a name="bass_002c-lowshelf"></a>
  14851. <h2 class="section"><a href="ffprobe-all.html#toc-bass_002c-lowshelf">29.50 bass, lowshelf</a></h2>
  14852. <p>Boost or cut the bass (lower) frequencies of the audio using a two-pole
  14853. shelving filter with a response similar to that of a standard
  14854. hi-fi&rsquo;s tone-controls. This is also known as shelving equalisation (EQ).
  14855. </p>
  14856. <p>The filter accepts the following options:
  14857. </p>
  14858. <dl compact="compact">
  14859. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  14860. <dd><p>Give the gain at 0 Hz. Its useful range is about -20
  14861. (for a large cut) to +20 (for a large boost).
  14862. Beware of clipping when using a positive gain.
  14863. </p>
  14864. </dd>
  14865. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14866. <dd><p>Set the filter&rsquo;s central frequency and so can be used
  14867. to extend or reduce the frequency range to be boosted or cut.
  14868. The default value is <code>100</code> Hz.
  14869. </p>
  14870. </dd>
  14871. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14872. <dd><p>Set method to specify band-width of filter.
  14873. </p><dl compact="compact">
  14874. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14875. <dd><p>Hz
  14876. </p></dd>
  14877. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14878. <dd><p>Q-Factor
  14879. </p></dd>
  14880. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14881. <dd><p>octave
  14882. </p></dd>
  14883. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14884. <dd><p>slope
  14885. </p></dd>
  14886. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14887. <dd><p>kHz
  14888. </p></dd>
  14889. </dl>
  14890. </dd>
  14891. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14892. <dd><p>Determine how steep is the filter&rsquo;s shelf transition.
  14893. </p>
  14894. </dd>
  14895. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14896. <dd><p>How much to use filtered signal in output. Default is 1.
  14897. Range is between 0 and 1.
  14898. </p>
  14899. </dd>
  14900. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14901. <dd><p>Specify which channels to filter, by default all available are filtered.
  14902. </p>
  14903. </dd>
  14904. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14905. <dd><p>Normalize biquad coefficients, by default is disabled.
  14906. Enabling it will normalize magnitude response at DC to 0dB.
  14907. </p></dd>
  14908. </dl>
  14909. <a name="Commands-70"></a>
  14910. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-70">29.50.1 Commands</a></h3>
  14911. <p>This filter supports the following commands:
  14912. </p><dl compact="compact">
  14913. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14914. <dd><p>Change bass frequency.
  14915. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14916. </p>
  14917. </dd>
  14918. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14919. <dd><p>Change bass width_type.
  14920. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14921. </p>
  14922. </dd>
  14923. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14924. <dd><p>Change bass width.
  14925. Syntax for the command is : &quot;<var>width</var>&quot;
  14926. </p>
  14927. </dd>
  14928. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  14929. <dd><p>Change bass gain.
  14930. Syntax for the command is : &quot;<var>gain</var>&quot;
  14931. </p>
  14932. </dd>
  14933. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14934. <dd><p>Change bass mix.
  14935. Syntax for the command is : &quot;<var>mix</var>&quot;
  14936. </p></dd>
  14937. </dl>
  14938. <a name="biquad"></a>
  14939. <h2 class="section"><a href="ffprobe-all.html#toc-biquad">29.51 biquad</a></h2>
  14940. <p>Apply a biquad IIR filter with the given coefficients.
  14941. Where <var>b0</var>, <var>b1</var>, <var>b2</var> and <var>a0</var>, <var>a1</var>, <var>a2</var>
  14942. are the numerator and denominator coefficients respectively.
  14943. and <var>channels</var>, <var>c</var> specify which channels to filter, by default all
  14944. available are filtered.
  14945. </p>
  14946. <a name="Commands-29"></a>
  14947. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-29">29.51.1 Commands</a></h3>
  14948. <p>This filter supports the following commands:
  14949. </p><dl compact="compact">
  14950. <dt>&lsquo;<samp>a0</samp>&rsquo;</dt>
  14951. <dt>&lsquo;<samp>a1</samp>&rsquo;</dt>
  14952. <dt>&lsquo;<samp>a2</samp>&rsquo;</dt>
  14953. <dt>&lsquo;<samp>b0</samp>&rsquo;</dt>
  14954. <dt>&lsquo;<samp>b1</samp>&rsquo;</dt>
  14955. <dt>&lsquo;<samp>b2</samp>&rsquo;</dt>
  14956. <dd><p>Change biquad parameter.
  14957. Syntax for the command is : &quot;<var>value</var>&quot;
  14958. </p>
  14959. </dd>
  14960. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14961. <dd><p>How much to use filtered signal in output. Default is 1.
  14962. Range is between 0 and 1.
  14963. </p>
  14964. </dd>
  14965. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14966. <dd><p>Specify which channels to filter, by default all available are filtered.
  14967. </p>
  14968. </dd>
  14969. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14970. <dd><p>Normalize biquad coefficients, by default is disabled.
  14971. Enabling it will normalize magnitude response at DC to 0dB.
  14972. </p></dd>
  14973. </dl>
  14974. <a name="bs2b"></a>
  14975. <h2 class="section"><a href="ffprobe-all.html#toc-bs2b">29.52 bs2b</a></h2>
  14976. <p>Bauer stereo to binaural transformation, which improves headphone listening of
  14977. stereo audio records.
  14978. </p>
  14979. <p>To enable compilation of this filter you need to configure FFmpeg with
  14980. <code>--enable-libbs2b</code>.
  14981. </p>
  14982. <p>It accepts the following parameters:
  14983. </p><dl compact="compact">
  14984. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  14985. <dd><p>Pre-defined crossfeed level.
  14986. </p><dl compact="compact">
  14987. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  14988. <dd><p>Default level (fcut=700, feed=50).
  14989. </p>
  14990. </dd>
  14991. <dt>&lsquo;<samp>cmoy</samp>&rsquo;</dt>
  14992. <dd><p>Chu Moy circuit (fcut=700, feed=60).
  14993. </p>
  14994. </dd>
  14995. <dt>&lsquo;<samp>jmeier</samp>&rsquo;</dt>
  14996. <dd><p>Jan Meier circuit (fcut=650, feed=95).
  14997. </p>
  14998. </dd>
  14999. </dl>
  15000. </dd>
  15001. <dt>&lsquo;<samp>fcut</samp>&rsquo;</dt>
  15002. <dd><p>Cut frequency (in Hz).
  15003. </p>
  15004. </dd>
  15005. <dt>&lsquo;<samp>feed</samp>&rsquo;</dt>
  15006. <dd><p>Feed level (in Hz).
  15007. </p>
  15008. </dd>
  15009. </dl>
  15010. <a name="channelmap"></a>
  15011. <h2 class="section"><a href="ffprobe-all.html#toc-channelmap">29.53 channelmap</a></h2>
  15012. <p>Remap input channels to new locations.
  15013. </p>
  15014. <p>It accepts the following parameters:
  15015. </p><dl compact="compact">
  15016. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  15017. <dd><p>Map channels from input to output. The argument is a &rsquo;|&rsquo;-separated list of
  15018. mappings, each in the <code><var>in_channel</var>-<var>out_channel</var></code> or
  15019. <var>in_channel</var> form. <var>in_channel</var> can be either the name of the input
  15020. channel (e.g. FL for front left) or its index in the input channel layout.
  15021. <var>out_channel</var> is the name of the output channel or its index in the output
  15022. channel layout. If <var>out_channel</var> is not given then it is implicitly an
  15023. index, starting with zero and increasing by one for each mapping.
  15024. </p>
  15025. </dd>
  15026. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  15027. <dd><p>The channel layout of the output stream.
  15028. </p></dd>
  15029. </dl>
  15030. <p>If no mapping is present, the filter will implicitly map input channels to
  15031. output channels, preserving indices.
  15032. </p>
  15033. <a name="Examples-12"></a>
  15034. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-12">29.53.1 Examples</a></h3>
  15035. <ul>
  15036. <li>
  15037. For example, assuming a 5.1+downmix input MOV file,
  15038. <div class="example">
  15039. <pre class="example">ffmpeg -i in.mov -filter 'channelmap=map=DL-FL|DR-FR' out.wav
  15040. </pre></div>
  15041. <p>will create an output WAV file tagged as stereo from the downmix channels of
  15042. the input.
  15043. </p>
  15044. </li><li>
  15045. To fix a 5.1 WAV improperly encoded in AAC&rsquo;s native channel order
  15046. <div class="example">
  15047. <pre class="example">ffmpeg -i in.wav -filter 'channelmap=1|2|0|5|3|4:5.1' out.wav
  15048. </pre></div>
  15049. </li></ul>
  15050. <a name="channelsplit"></a>
  15051. <h2 class="section"><a href="ffprobe-all.html#toc-channelsplit">29.54 channelsplit</a></h2>
  15052. <p>Split each channel from an input audio stream into a separate output stream.
  15053. </p>
  15054. <p>It accepts the following parameters:
  15055. </p><dl compact="compact">
  15056. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  15057. <dd><p>The channel layout of the input stream. The default is &quot;stereo&quot;.
  15058. </p></dd>
  15059. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  15060. <dd><p>A channel layout describing the channels to be extracted as separate output streams
  15061. or &quot;all&quot; to extract each input channel as a separate stream. The default is &quot;all&quot;.
  15062. </p>
  15063. <p>Choosing channels not present in channel layout in the input will result in an error.
  15064. </p></dd>
  15065. </dl>
  15066. <a name="Examples-2"></a>
  15067. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-2">29.54.1 Examples</a></h3>
  15068. <ul>
  15069. <li>
  15070. For example, assuming a stereo input MP3 file,
  15071. <div class="example">
  15072. <pre class="example">ffmpeg -i in.mp3 -filter_complex channelsplit out.mkv
  15073. </pre></div>
  15074. <p>will create an output Matroska file with two audio streams, one containing only
  15075. the left channel and the other the right channel.
  15076. </p>
  15077. </li><li>
  15078. Split a 5.1 WAV file into per-channel files:
  15079. <div class="example">
  15080. <pre class="example">ffmpeg -i in.wav -filter_complex
  15081. 'channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]'
  15082. -map '[FL]' front_left.wav -map '[FR]' front_right.wav -map '[FC]'
  15083. front_center.wav -map '[LFE]' lfe.wav -map '[SL]' side_left.wav -map '[SR]'
  15084. side_right.wav
  15085. </pre></div>
  15086. </li><li>
  15087. Extract only LFE from a 5.1 WAV file:
  15088. <div class="example">
  15089. <pre class="example">ffmpeg -i in.wav -filter_complex 'channelsplit=channel_layout=5.1:channels=LFE[LFE]'
  15090. -map '[LFE]' lfe.wav
  15091. </pre></div>
  15092. </li></ul>
  15093. <a name="chorus"></a>
  15094. <h2 class="section"><a href="ffprobe-all.html#toc-chorus">29.55 chorus</a></h2>
  15095. <p>Add a chorus effect to the audio.
  15096. </p>
  15097. <p>Can make a single vocal sound like a chorus, but can also be applied to instrumentation.
  15098. </p>
  15099. <p>Chorus resembles an echo effect with a short delay, but whereas with echo the delay is
  15100. constant, with chorus, it is varied using using sinusoidal or triangular modulation.
  15101. The modulation depth defines the range the modulated delay is played before or after
  15102. the delay. Hence the delayed sound will sound slower or faster, that is the delayed
  15103. sound tuned around the original one, like in a chorus where some vocals are slightly
  15104. off key.
  15105. </p>
  15106. <p>It accepts the following parameters:
  15107. </p><dl compact="compact">
  15108. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  15109. <dd><p>Set input gain. Default is 0.4.
  15110. </p>
  15111. </dd>
  15112. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  15113. <dd><p>Set output gain. Default is 0.4.
  15114. </p>
  15115. </dd>
  15116. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  15117. <dd><p>Set delays. A typical delay is around 40ms to 60ms.
  15118. </p>
  15119. </dd>
  15120. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  15121. <dd><p>Set decays.
  15122. </p>
  15123. </dd>
  15124. <dt>&lsquo;<samp>speeds</samp>&rsquo;</dt>
  15125. <dd><p>Set speeds.
  15126. </p>
  15127. </dd>
  15128. <dt>&lsquo;<samp>depths</samp>&rsquo;</dt>
  15129. <dd><p>Set depths.
  15130. </p></dd>
  15131. </dl>
  15132. <a name="Examples-139"></a>
  15133. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-139">29.55.1 Examples</a></h3>
  15134. <ul>
  15135. <li>
  15136. A single delay:
  15137. <div class="example">
  15138. <pre class="example">chorus=0.7:0.9:55:0.4:0.25:2
  15139. </pre></div>
  15140. </li><li>
  15141. Two delays:
  15142. <div class="example">
  15143. <pre class="example">chorus=0.6:0.9:50|60:0.4|0.32:0.25|0.4:2|1.3
  15144. </pre></div>
  15145. </li><li>
  15146. Fuller sounding chorus with three delays:
  15147. <div class="example">
  15148. <pre class="example">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
  15149. </pre></div>
  15150. </li></ul>
  15151. <a name="compand"></a>
  15152. <h2 class="section"><a href="ffprobe-all.html#toc-compand">29.56 compand</a></h2>
  15153. <p>Compress or expand the audio&rsquo;s dynamic range.
  15154. </p>
  15155. <p>It accepts the following parameters:
  15156. </p>
  15157. <dl compact="compact">
  15158. <dt>&lsquo;<samp>attacks</samp>&rsquo;</dt>
  15159. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  15160. <dd><p>A list of times in seconds for each channel over which the instantaneous level
  15161. of the input signal is averaged to determine its volume. <var>attacks</var> refers to
  15162. increase of volume and <var>decays</var> refers to decrease of volume. For most
  15163. situations, the attack time (response to the audio getting louder) should be
  15164. shorter than the decay time, because the human ear is more sensitive to sudden
  15165. loud audio than sudden soft audio. A typical value for attack is 0.3 seconds and
  15166. a typical value for decay is 0.8 seconds.
  15167. If specified number of attacks &amp; decays is lower than number of channels, the last
  15168. set attack/decay will be used for all remaining channels.
  15169. </p>
  15170. </dd>
  15171. <dt>&lsquo;<samp>points</samp>&rsquo;</dt>
  15172. <dd><p>A list of points for the transfer function, specified in dB relative to the
  15173. maximum possible signal amplitude. Each key points list must be defined using
  15174. the following syntax: <code>x0/y0|x1/y1|x2/y2|....</code> or
  15175. <code>x0/y0 x1/y1 x2/y2 ....</code>
  15176. </p>
  15177. <p>The input values must be in strictly increasing order but the transfer function
  15178. does not have to be monotonically rising. The point <code>0/0</code> is assumed but
  15179. may be overridden (by <code>0/out-dBn</code>). Typical values for the transfer
  15180. function are <code>-70/-70|-60/-20|1/0</code>.
  15181. </p>
  15182. </dd>
  15183. <dt>&lsquo;<samp>soft-knee</samp>&rsquo;</dt>
  15184. <dd><p>Set the curve radius in dB for all joints. It defaults to 0.01.
  15185. </p>
  15186. </dd>
  15187. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  15188. <dd><p>Set the additional gain in dB to be applied at all points on the transfer
  15189. function. This allows for easy adjustment of the overall gain.
  15190. It defaults to 0.
  15191. </p>
  15192. </dd>
  15193. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  15194. <dd><p>Set an initial volume, in dB, to be assumed for each channel when filtering
  15195. starts. This permits the user to supply a nominal level initially, so that, for
  15196. example, a very large gain is not applied to initial signal levels before the
  15197. companding has begun to operate. A typical value for audio which is initially
  15198. quiet is -90 dB. It defaults to 0.
  15199. </p>
  15200. </dd>
  15201. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  15202. <dd><p>Set a delay, in seconds. The input audio is analyzed immediately, but audio is
  15203. delayed before being fed to the volume adjuster. Specifying a delay
  15204. approximately equal to the attack/decay times allows the filter to effectively
  15205. operate in predictive rather than reactive mode. It defaults to 0.
  15206. </p>
  15207. </dd>
  15208. </dl>
  15209. <a name="Examples-111"></a>
  15210. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-111">29.56.1 Examples</a></h3>
  15211. <ul>
  15212. <li>
  15213. Make music with both quiet and loud passages suitable for listening to in a
  15214. noisy environment:
  15215. <div class="example">
  15216. <pre class="example">compand=.3|.3:1|1:-90/-60|-60/-40|-40/-30|-20/-20:6:0:-90:0.2
  15217. </pre></div>
  15218. <p>Another example for audio with whisper and explosion parts:
  15219. </p><div class="example">
  15220. <pre class="example">compand=0|0:1|1:-90/-900|-70/-70|-30/-9|0/-3:6:0:0:0
  15221. </pre></div>
  15222. </li><li>
  15223. A noise gate for when the noise is at a lower level than the signal:
  15224. <div class="example">
  15225. <pre class="example">compand=.1|.1:.2|.2:-900/-900|-50.1/-900|-50/-50:.01:0:-90:.1
  15226. </pre></div>
  15227. </li><li>
  15228. Here is another noise gate, this time for when the noise is at a higher level
  15229. than the signal (making it, in some ways, similar to squelch):
  15230. <div class="example">
  15231. <pre class="example">compand=.1|.1:.1|.1:-45.1/-45.1|-45/-900|0/-900:.01:45:-90:.1
  15232. </pre></div>
  15233. </li><li>
  15234. 2:1 compression starting at -6dB:
  15235. <div class="example">
  15236. <pre class="example">compand=points=-80/-80|-6/-6|0/-3.8|20/3.5
  15237. </pre></div>
  15238. </li><li>
  15239. 2:1 compression starting at -9dB:
  15240. <div class="example">
  15241. <pre class="example">compand=points=-80/-80|-9/-9|0/-5.3|20/2.9
  15242. </pre></div>
  15243. </li><li>
  15244. 2:1 compression starting at -12dB:
  15245. <div class="example">
  15246. <pre class="example">compand=points=-80/-80|-12/-12|0/-6.8|20/1.9
  15247. </pre></div>
  15248. </li><li>
  15249. 2:1 compression starting at -18dB:
  15250. <div class="example">
  15251. <pre class="example">compand=points=-80/-80|-18/-18|0/-9.8|20/0.7
  15252. </pre></div>
  15253. </li><li>
  15254. 3:1 compression starting at -15dB:
  15255. <div class="example">
  15256. <pre class="example">compand=points=-80/-80|-15/-15|0/-10.8|20/-5.2
  15257. </pre></div>
  15258. </li><li>
  15259. Compressor/Gate:
  15260. <div class="example">
  15261. <pre class="example">compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6
  15262. </pre></div>
  15263. </li><li>
  15264. Expander:
  15265. <div class="example">
  15266. <pre class="example">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
  15267. </pre></div>
  15268. </li><li>
  15269. Hard limiter at -6dB:
  15270. <div class="example">
  15271. <pre class="example">compand=attacks=0:points=-80/-80|-6/-6|20/-6
  15272. </pre></div>
  15273. </li><li>
  15274. Hard limiter at -12dB:
  15275. <div class="example">
  15276. <pre class="example">compand=attacks=0:points=-80/-80|-12/-12|20/-12
  15277. </pre></div>
  15278. </li><li>
  15279. Hard noise gate at -35 dB:
  15280. <div class="example">
  15281. <pre class="example">compand=attacks=0:points=-80/-115|-35.1/-80|-35/-35|20/20
  15282. </pre></div>
  15283. </li><li>
  15284. Soft limiter:
  15285. <div class="example">
  15286. <pre class="example">compand=attacks=0:points=-80/-80|-12.4/-12.4|-6/-8|0/-6.8|20/-2.8
  15287. </pre></div>
  15288. </li></ul>
  15289. <a name="compensationdelay"></a>
  15290. <h2 class="section"><a href="ffprobe-all.html#toc-compensationdelay">29.57 compensationdelay</a></h2>
  15291. <p>Compensation Delay Line is a metric based delay to compensate differing
  15292. positions of microphones or speakers.
  15293. </p>
  15294. <p>For example, you have recorded guitar with two microphones placed in
  15295. different locations. Because the front of sound wave has fixed speed in
  15296. normal conditions, the phasing of microphones can vary and depends on
  15297. their location and interposition. The best sound mix can be achieved when
  15298. these microphones are in phase (synchronized). Note that a distance of
  15299. ~30 cm between microphones makes one microphone capture the signal in
  15300. antiphase to the other microphone. That makes the final mix sound moody.
  15301. This filter helps to solve phasing problems by adding different delays
  15302. to each microphone track and make them synchronized.
  15303. </p>
  15304. <p>The best result can be reached when you take one track as base and
  15305. synchronize other tracks one by one with it.
  15306. Remember that synchronization/delay tolerance depends on sample rate, too.
  15307. Higher sample rates will give more tolerance.
  15308. </p>
  15309. <p>The filter accepts the following parameters:
  15310. </p>
  15311. <dl compact="compact">
  15312. <dt>&lsquo;<samp>mm</samp>&rsquo;</dt>
  15313. <dd><p>Set millimeters distance. This is compensation distance for fine tuning.
  15314. Default is 0.
  15315. </p>
  15316. </dd>
  15317. <dt>&lsquo;<samp>cm</samp>&rsquo;</dt>
  15318. <dd><p>Set cm distance. This is compensation distance for tightening distance setup.
  15319. Default is 0.
  15320. </p>
  15321. </dd>
  15322. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15323. <dd><p>Set meters distance. This is compensation distance for hard distance setup.
  15324. Default is 0.
  15325. </p>
  15326. </dd>
  15327. <dt>&lsquo;<samp>dry</samp>&rsquo;</dt>
  15328. <dd><p>Set dry amount. Amount of unprocessed (dry) signal.
  15329. Default is 0.
  15330. </p>
  15331. </dd>
  15332. <dt>&lsquo;<samp>wet</samp>&rsquo;</dt>
  15333. <dd><p>Set wet amount. Amount of processed (wet) signal.
  15334. Default is 1.
  15335. </p>
  15336. </dd>
  15337. <dt>&lsquo;<samp>temp</samp>&rsquo;</dt>
  15338. <dd><p>Set temperature in degrees Celsius. This is the temperature of the environment.
  15339. Default is 20.
  15340. </p></dd>
  15341. </dl>
  15342. <a name="crossfeed"></a>
  15343. <h2 class="section"><a href="ffprobe-all.html#toc-crossfeed">29.58 crossfeed</a></h2>
  15344. <p>Apply headphone crossfeed filter.
  15345. </p>
  15346. <p>Crossfeed is the process of blending the left and right channels of stereo
  15347. audio recording.
  15348. It is mainly used to reduce extreme stereo separation of low frequencies.
  15349. </p>
  15350. <p>The intent is to produce more speaker like sound to the listener.
  15351. </p>
  15352. <p>The filter accepts the following options:
  15353. </p>
  15354. <dl compact="compact">
  15355. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  15356. <dd><p>Set strength of crossfeed. Default is 0.2. Allowed range is from 0 to 1.
  15357. This sets gain of low shelf filter for side part of stereo image.
  15358. Default is -6dB. Max allowed is -30db when strength is set to 1.
  15359. </p>
  15360. </dd>
  15361. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  15362. <dd><p>Set soundstage wideness. Default is 0.5. Allowed range is from 0 to 1.
  15363. This sets cut off frequency of low shelf filter. Default is cut off near
  15364. 1550 Hz. With range set to 1 cut off frequency is set to 2100 Hz.
  15365. </p>
  15366. </dd>
  15367. <dt>&lsquo;<samp>slope</samp>&rsquo;</dt>
  15368. <dd><p>Set curve slope of low shelf filter. Default is 0.5.
  15369. Allowed range is from 0.01 to 1.
  15370. </p>
  15371. </dd>
  15372. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  15373. <dd><p>Set input gain. Default is 0.9.
  15374. </p>
  15375. </dd>
  15376. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  15377. <dd><p>Set output gain. Default is 1.
  15378. </p></dd>
  15379. </dl>
  15380. <a name="Commands-35"></a>
  15381. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-35">29.58.1 Commands</a></h3>
  15382. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15383. </p>
  15384. <a name="crystalizer"></a>
  15385. <h2 class="section"><a href="ffprobe-all.html#toc-crystalizer">29.59 crystalizer</a></h2>
  15386. <p>Simple algorithm to expand audio dynamic range.
  15387. </p>
  15388. <p>The filter accepts the following options:
  15389. </p>
  15390. <dl compact="compact">
  15391. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15392. <dd><p>Sets the intensity of effect (default: 2.0). Must be in range between 0.0
  15393. (unchanged sound) to 10.0 (maximum effect).
  15394. </p>
  15395. </dd>
  15396. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  15397. <dd><p>Enable clipping. By default is enabled.
  15398. </p></dd>
  15399. </dl>
  15400. <a name="Commands-14"></a>
  15401. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-14">29.59.1 Commands</a></h3>
  15402. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15403. </p>
  15404. <a name="dcshift"></a>
  15405. <h2 class="section"><a href="ffprobe-all.html#toc-dcshift">29.60 dcshift</a></h2>
  15406. <p>Apply a DC shift to the audio.
  15407. </p>
  15408. <p>This can be useful to remove a DC offset (caused perhaps by a hardware problem
  15409. in the recording chain) from the audio. The effect of a DC offset is reduced
  15410. headroom and hence volume. The <a href="#astats">astats</a> filter can be used to determine if
  15411. a signal has a DC offset.
  15412. </p>
  15413. <dl compact="compact">
  15414. <dt>&lsquo;<samp>shift</samp>&rsquo;</dt>
  15415. <dd><p>Set the DC shift, allowed range is [-1, 1]. It indicates the amount to shift
  15416. the audio.
  15417. </p>
  15418. </dd>
  15419. <dt>&lsquo;<samp>limitergain</samp>&rsquo;</dt>
  15420. <dd><p>Optional. It should have a value much less than 1 (e.g. 0.05 or 0.02) and is
  15421. used to prevent clipping.
  15422. </p></dd>
  15423. </dl>
  15424. <a name="deesser"></a>
  15425. <h2 class="section"><a href="ffprobe-all.html#toc-deesser">29.61 deesser</a></h2>
  15426. <p>Apply de-essing to the audio samples.
  15427. </p>
  15428. <dl compact="compact">
  15429. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15430. <dd><p>Set intensity for triggering de-essing. Allowed range is from 0 to 1.
  15431. Default is 0.
  15432. </p>
  15433. </dd>
  15434. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15435. <dd><p>Set amount of ducking on treble part of sound. Allowed range is from 0 to 1.
  15436. Default is 0.5.
  15437. </p>
  15438. </dd>
  15439. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  15440. <dd><p>How much of original frequency content to keep when de-essing. Allowed range is from 0 to 1.
  15441. Default is 0.5.
  15442. </p>
  15443. </dd>
  15444. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  15445. <dd><p>Set the output mode.
  15446. </p>
  15447. <p>It accepts the following values:
  15448. </p><dl compact="compact">
  15449. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15450. <dd><p>Pass input unchanged.
  15451. </p>
  15452. </dd>
  15453. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  15454. <dd><p>Pass ess filtered out.
  15455. </p>
  15456. </dd>
  15457. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  15458. <dd><p>Pass only ess.
  15459. </p>
  15460. <p>Default value is <var>o</var>.
  15461. </p></dd>
  15462. </dl>
  15463. </dd>
  15464. </dl>
  15465. <a name="drmeter"></a>
  15466. <h2 class="section"><a href="ffprobe-all.html#toc-drmeter">29.62 drmeter</a></h2>
  15467. <p>Measure audio dynamic range.
  15468. </p>
  15469. <p>DR values of 14 and higher is found in very dynamic material. DR of 8 to 13
  15470. is found in transition material. And anything less that 8 have very poor dynamics
  15471. and is very compressed.
  15472. </p>
  15473. <p>The filter accepts the following options:
  15474. </p>
  15475. <dl compact="compact">
  15476. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  15477. <dd><p>Set window length in seconds used to split audio into segments of equal length.
  15478. Default is 3 seconds.
  15479. </p></dd>
  15480. </dl>
  15481. <a name="dynaudnorm"></a>
  15482. <h2 class="section"><a href="ffprobe-all.html#toc-dynaudnorm">29.63 dynaudnorm</a></h2>
  15483. <p>Dynamic Audio Normalizer.
  15484. </p>
  15485. <p>This filter applies a certain amount of gain to the input audio in order
  15486. to bring its peak magnitude to a target level (e.g. 0 dBFS). However, in
  15487. contrast to more &quot;simple&quot; normalization algorithms, the Dynamic Audio
  15488. Normalizer *dynamically* re-adjusts the gain factor to the input audio.
  15489. This allows for applying extra gain to the &quot;quiet&quot; sections of the audio
  15490. while avoiding distortions or clipping the &quot;loud&quot; sections. In other words:
  15491. The Dynamic Audio Normalizer will &quot;even out&quot; the volume of quiet and loud
  15492. sections, in the sense that the volume of each section is brought to the
  15493. same target level. Note, however, that the Dynamic Audio Normalizer achieves
  15494. this goal *without* applying &quot;dynamic range compressing&quot;. It will retain 100%
  15495. of the dynamic range *within* each section of the audio file.
  15496. </p>
  15497. <dl compact="compact">
  15498. <dt>&lsquo;<samp>framelen, f</samp>&rsquo;</dt>
  15499. <dd><p>Set the frame length in milliseconds. In range from 10 to 8000 milliseconds.
  15500. Default is 500 milliseconds.
  15501. The Dynamic Audio Normalizer processes the input audio in small chunks,
  15502. referred to as frames. This is required, because a peak magnitude has no
  15503. meaning for just a single sample value. Instead, we need to determine the
  15504. peak magnitude for a contiguous sequence of sample values. While a &quot;standard&quot;
  15505. normalizer would simply use the peak magnitude of the complete file, the
  15506. Dynamic Audio Normalizer determines the peak magnitude individually for each
  15507. frame. The length of a frame is specified in milliseconds. By default, the
  15508. Dynamic Audio Normalizer uses a frame length of 500 milliseconds, which has
  15509. been found to give good results with most files.
  15510. Note that the exact frame length, in number of samples, will be determined
  15511. automatically, based on the sampling rate of the individual input audio file.
  15512. </p>
  15513. </dd>
  15514. <dt>&lsquo;<samp>gausssize, g</samp>&rsquo;</dt>
  15515. <dd><p>Set the Gaussian filter window size. In range from 3 to 301, must be odd
  15516. number. Default is 31.
  15517. Probably the most important parameter of the Dynamic Audio Normalizer is the
  15518. <code>window size</code> of the Gaussian smoothing filter. The filter&rsquo;s window size
  15519. is specified in frames, centered around the current frame. For the sake of
  15520. simplicity, this must be an odd number. Consequently, the default value of 31
  15521. takes into account the current frame, as well as the 15 preceding frames and
  15522. the 15 subsequent frames. Using a larger window results in a stronger
  15523. smoothing effect and thus in less gain variation, i.e. slower gain
  15524. adaptation. Conversely, using a smaller window results in a weaker smoothing
  15525. effect and thus in more gain variation, i.e. faster gain adaptation.
  15526. In other words, the more you increase this value, the more the Dynamic Audio
  15527. Normalizer will behave like a &quot;traditional&quot; normalization filter. On the
  15528. contrary, the more you decrease this value, the more the Dynamic Audio
  15529. Normalizer will behave like a dynamic range compressor.
  15530. </p>
  15531. </dd>
  15532. <dt>&lsquo;<samp>peak, p</samp>&rsquo;</dt>
  15533. <dd><p>Set the target peak value. This specifies the highest permissible magnitude
  15534. level for the normalized audio input. This filter will try to approach the
  15535. target peak magnitude as closely as possible, but at the same time it also
  15536. makes sure that the normalized signal will never exceed the peak magnitude.
  15537. A frame&rsquo;s maximum local gain factor is imposed directly by the target peak
  15538. magnitude. The default value is 0.95 and thus leaves a headroom of 5%*.
  15539. It is not recommended to go above this value.
  15540. </p>
  15541. </dd>
  15542. <dt>&lsquo;<samp>maxgain, m</samp>&rsquo;</dt>
  15543. <dd><p>Set the maximum gain factor. In range from 1.0 to 100.0. Default is 10.0.
  15544. The Dynamic Audio Normalizer determines the maximum possible (local) gain
  15545. factor for each input frame, i.e. the maximum gain factor that does not
  15546. result in clipping or distortion. The maximum gain factor is determined by
  15547. the frame&rsquo;s highest magnitude sample. However, the Dynamic Audio Normalizer
  15548. additionally bounds the frame&rsquo;s maximum gain factor by a predetermined
  15549. (global) maximum gain factor. This is done in order to avoid excessive gain
  15550. factors in &quot;silent&quot; or almost silent frames. By default, the maximum gain
  15551. factor is 10.0, For most inputs the default value should be sufficient and
  15552. it usually is not recommended to increase this value. Though, for input
  15553. with an extremely low overall volume level, it may be necessary to allow even
  15554. higher gain factors. Note, however, that the Dynamic Audio Normalizer does
  15555. not simply apply a &quot;hard&quot; threshold (i.e. cut off values above the threshold).
  15556. Instead, a &quot;sigmoid&quot; threshold function will be applied. This way, the
  15557. gain factors will smoothly approach the threshold value, but never exceed that
  15558. value.
  15559. </p>
  15560. </dd>
  15561. <dt>&lsquo;<samp>targetrms, r</samp>&rsquo;</dt>
  15562. <dd><p>Set the target RMS. In range from 0.0 to 1.0. Default is 0.0 - disabled.
  15563. By default, the Dynamic Audio Normalizer performs &quot;peak&quot; normalization.
  15564. This means that the maximum local gain factor for each frame is defined
  15565. (only) by the frame&rsquo;s highest magnitude sample. This way, the samples can
  15566. be amplified as much as possible without exceeding the maximum signal
  15567. level, i.e. without clipping. Optionally, however, the Dynamic Audio
  15568. Normalizer can also take into account the frame&rsquo;s root mean square,
  15569. abbreviated RMS. In electrical engineering, the RMS is commonly used to
  15570. determine the power of a time-varying signal. It is therefore considered
  15571. that the RMS is a better approximation of the &quot;perceived loudness&quot; than
  15572. just looking at the signal&rsquo;s peak magnitude. Consequently, by adjusting all
  15573. frames to a constant RMS value, a uniform &quot;perceived loudness&quot; can be
  15574. established. If a target RMS value has been specified, a frame&rsquo;s local gain
  15575. factor is defined as the factor that would result in exactly that RMS value.
  15576. Note, however, that the maximum local gain factor is still restricted by the
  15577. frame&rsquo;s highest magnitude sample, in order to prevent clipping.
  15578. </p>
  15579. </dd>
  15580. <dt>&lsquo;<samp>coupling, n</samp>&rsquo;</dt>
  15581. <dd><p>Enable channels coupling. By default is enabled.
  15582. By default, the Dynamic Audio Normalizer will amplify all channels by the same
  15583. amount. This means the same gain factor will be applied to all channels, i.e.
  15584. the maximum possible gain factor is determined by the &quot;loudest&quot; channel.
  15585. However, in some recordings, it may happen that the volume of the different
  15586. channels is uneven, e.g. one channel may be &quot;quieter&quot; than the other one(s).
  15587. In this case, this option can be used to disable the channel coupling. This way,
  15588. the gain factor will be determined independently for each channel, depending
  15589. only on the individual channel&rsquo;s highest magnitude sample. This allows for
  15590. harmonizing the volume of the different channels.
  15591. </p>
  15592. </dd>
  15593. <dt>&lsquo;<samp>correctdc, c</samp>&rsquo;</dt>
  15594. <dd><p>Enable DC bias correction. By default is disabled.
  15595. An audio signal (in the time domain) is a sequence of sample values.
  15596. In the Dynamic Audio Normalizer these sample values are represented in the
  15597. -1.0 to 1.0 range, regardless of the original input format. Normally, the
  15598. audio signal, or &quot;waveform&quot;, should be centered around the zero point.
  15599. That means if we calculate the mean value of all samples in a file, or in a
  15600. single frame, then the result should be 0.0 or at least very close to that
  15601. value. If, however, there is a significant deviation of the mean value from
  15602. 0.0, in either positive or negative direction, this is referred to as a
  15603. DC bias or DC offset. Since a DC bias is clearly undesirable, the Dynamic
  15604. Audio Normalizer provides optional DC bias correction.
  15605. With DC bias correction enabled, the Dynamic Audio Normalizer will determine
  15606. the mean value, or &quot;DC correction&quot; offset, of each input frame and subtract
  15607. that value from all of the frame&rsquo;s sample values which ensures those samples
  15608. are centered around 0.0 again. Also, in order to avoid &quot;gaps&quot; at the frame
  15609. boundaries, the DC correction offset values will be interpolated smoothly
  15610. between neighbouring frames.
  15611. </p>
  15612. </dd>
  15613. <dt>&lsquo;<samp>altboundary, b</samp>&rsquo;</dt>
  15614. <dd><p>Enable alternative boundary mode. By default is disabled.
  15615. The Dynamic Audio Normalizer takes into account a certain neighbourhood
  15616. around each frame. This includes the preceding frames as well as the
  15617. subsequent frames. However, for the &quot;boundary&quot; frames, located at the very
  15618. beginning and at the very end of the audio file, not all neighbouring
  15619. frames are available. In particular, for the first few frames in the audio
  15620. file, the preceding frames are not known. And, similarly, for the last few
  15621. frames in the audio file, the subsequent frames are not known. Thus, the
  15622. question arises which gain factors should be assumed for the missing frames
  15623. in the &quot;boundary&quot; region. The Dynamic Audio Normalizer implements two modes
  15624. to deal with this situation. The default boundary mode assumes a gain factor
  15625. of exactly 1.0 for the missing frames, resulting in a smooth &quot;fade in&quot; and
  15626. &quot;fade out&quot; at the beginning and at the end of the input, respectively.
  15627. </p>
  15628. </dd>
  15629. <dt>&lsquo;<samp>compress, s</samp>&rsquo;</dt>
  15630. <dd><p>Set the compress factor. In range from 0.0 to 30.0. Default is 0.0.
  15631. By default, the Dynamic Audio Normalizer does not apply &quot;traditional&quot;
  15632. compression. This means that signal peaks will not be pruned and thus the
  15633. full dynamic range will be retained within each local neighbourhood. However,
  15634. in some cases it may be desirable to combine the Dynamic Audio Normalizer&rsquo;s
  15635. normalization algorithm with a more &quot;traditional&quot; compression.
  15636. For this purpose, the Dynamic Audio Normalizer provides an optional compression
  15637. (thresholding) function. If (and only if) the compression feature is enabled,
  15638. all input frames will be processed by a soft knee thresholding function prior
  15639. to the actual normalization process. Put simply, the thresholding function is
  15640. going to prune all samples whose magnitude exceeds a certain threshold value.
  15641. However, the Dynamic Audio Normalizer does not simply apply a fixed threshold
  15642. value. Instead, the threshold value will be adjusted for each individual
  15643. frame.
  15644. In general, smaller parameters result in stronger compression, and vice versa.
  15645. Values below 3.0 are not recommended, because audible distortion may appear.
  15646. </p>
  15647. </dd>
  15648. <dt>&lsquo;<samp>threshold, t</samp>&rsquo;</dt>
  15649. <dd><p>Set the target threshold value. This specifies the lowest permissible
  15650. magnitude level for the audio input which will be normalized.
  15651. If input frame volume is above this value frame will be normalized.
  15652. Otherwise frame may not be normalized at all. The default value is set
  15653. to 0, which means all input frames will be normalized.
  15654. This option is mostly useful if digital noise is not wanted to be amplified.
  15655. </p></dd>
  15656. </dl>
  15657. <a name="Commands-44"></a>
  15658. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-44">29.63.1 Commands</a></h3>
  15659. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15660. </p>
  15661. <a name="earwax"></a>
  15662. <h2 class="section"><a href="ffprobe-all.html#toc-earwax">29.64 earwax</a></h2>
  15663. <p>Make audio easier to listen to on headphones.
  15664. </p>
  15665. <p>This filter adds &lsquo;cues&rsquo; to 44.1kHz stereo (i.e. audio CD format) audio
  15666. so that when listened to on headphones the stereo image is moved from
  15667. inside your head (standard for headphones) to outside and in front of
  15668. the listener (standard for speakers).
  15669. </p>
  15670. <p>Ported from SoX.
  15671. </p>
  15672. <a name="equalizer"></a>
  15673. <h2 class="section"><a href="ffprobe-all.html#toc-equalizer">29.65 equalizer</a></h2>
  15674. <p>Apply a two-pole peaking equalisation (EQ) filter. With this
  15675. filter, the signal-level at and around a selected frequency can
  15676. be increased or decreased, whilst (unlike bandpass and bandreject
  15677. filters) that at all other frequencies is unchanged.
  15678. </p>
  15679. <p>In order to produce complex equalisation curves, this filter can
  15680. be given several times, each with a different central frequency.
  15681. </p>
  15682. <p>The filter accepts the following options:
  15683. </p>
  15684. <dl compact="compact">
  15685. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  15686. <dd><p>Set the filter&rsquo;s central frequency in Hz.
  15687. </p>
  15688. </dd>
  15689. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  15690. <dd><p>Set method to specify band-width of filter.
  15691. </p><dl compact="compact">
  15692. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  15693. <dd><p>Hz
  15694. </p></dd>
  15695. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  15696. <dd><p>Q-Factor
  15697. </p></dd>
  15698. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  15699. <dd><p>octave
  15700. </p></dd>
  15701. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  15702. <dd><p>slope
  15703. </p></dd>
  15704. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  15705. <dd><p>kHz
  15706. </p></dd>
  15707. </dl>
  15708. </dd>
  15709. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  15710. <dd><p>Specify the band-width of a filter in width_type units.
  15711. </p>
  15712. </dd>
  15713. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  15714. <dd><p>Set the required gain or attenuation in dB.
  15715. Beware of clipping when using a positive gain.
  15716. </p>
  15717. </dd>
  15718. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  15719. <dd><p>How much to use filtered signal in output. Default is 1.
  15720. Range is between 0 and 1.
  15721. </p>
  15722. </dd>
  15723. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  15724. <dd><p>Specify which channels to filter, by default all available are filtered.
  15725. </p>
  15726. </dd>
  15727. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  15728. <dd><p>Normalize biquad coefficients, by default is disabled.
  15729. Enabling it will normalize magnitude response at DC to 0dB.
  15730. </p></dd>
  15731. </dl>
  15732. <a name="Examples-68"></a>
  15733. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-68">29.65.1 Examples</a></h3>
  15734. <ul>
  15735. <li>
  15736. Attenuate 10 dB at 1000 Hz, with a bandwidth of 200 Hz:
  15737. <div class="example">
  15738. <pre class="example">equalizer=f=1000:t=h:width=200:g=-10
  15739. </pre></div>
  15740. </li><li>
  15741. Apply 2 dB gain at 1000 Hz with Q 1 and attenuate 5 dB at 100 Hz with Q 2:
  15742. <div class="example">
  15743. <pre class="example">equalizer=f=1000:t=q:w=1:g=2,equalizer=f=100:t=q:w=2:g=-5
  15744. </pre></div>
  15745. </li></ul>
  15746. <a name="Commands-19"></a>
  15747. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-19">29.65.2 Commands</a></h3>
  15748. <p>This filter supports the following commands:
  15749. </p><dl compact="compact">
  15750. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  15751. <dd><p>Change equalizer frequency.
  15752. Syntax for the command is : &quot;<var>frequency</var>&quot;
  15753. </p>
  15754. </dd>
  15755. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  15756. <dd><p>Change equalizer width_type.
  15757. Syntax for the command is : &quot;<var>width_type</var>&quot;
  15758. </p>
  15759. </dd>
  15760. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  15761. <dd><p>Change equalizer width.
  15762. Syntax for the command is : &quot;<var>width</var>&quot;
  15763. </p>
  15764. </dd>
  15765. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  15766. <dd><p>Change equalizer gain.
  15767. Syntax for the command is : &quot;<var>gain</var>&quot;
  15768. </p>
  15769. </dd>
  15770. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  15771. <dd><p>Change equalizer mix.
  15772. Syntax for the command is : &quot;<var>mix</var>&quot;
  15773. </p></dd>
  15774. </dl>
  15775. <a name="extrastereo"></a>
  15776. <h2 class="section"><a href="ffprobe-all.html#toc-extrastereo">29.66 extrastereo</a></h2>
  15777. <p>Linearly increases the difference between left and right channels which
  15778. adds some sort of &quot;live&quot; effect to playback.
  15779. </p>
  15780. <p>The filter accepts the following options:
  15781. </p>
  15782. <dl compact="compact">
  15783. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15784. <dd><p>Sets the difference coefficient (default: 2.5). 0.0 means mono sound
  15785. (average of both channels), with 1.0 sound will be unchanged, with
  15786. -1.0 left and right channels will be swapped.
  15787. </p>
  15788. </dd>
  15789. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  15790. <dd><p>Enable clipping. By default is enabled.
  15791. </p></dd>
  15792. </dl>
  15793. <a name="Commands-41"></a>
  15794. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-41">29.66.1 Commands</a></h3>
  15795. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15796. </p>
  15797. <a name="firequalizer"></a>
  15798. <h2 class="section"><a href="ffprobe-all.html#toc-firequalizer">29.67 firequalizer</a></h2>
  15799. <p>Apply FIR Equalization using arbitrary frequency response.
  15800. </p>
  15801. <p>The filter accepts the following option:
  15802. </p>
  15803. <dl compact="compact">
  15804. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  15805. <dd><p>Set gain curve equation (in dB). The expression can contain variables:
  15806. </p><dl compact="compact">
  15807. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  15808. <dd><p>the evaluated frequency
  15809. </p></dd>
  15810. <dt>&lsquo;<samp>sr</samp>&rsquo;</dt>
  15811. <dd><p>sample rate
  15812. </p></dd>
  15813. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  15814. <dd><p>channel number, set to 0 when multichannels evaluation is disabled
  15815. </p></dd>
  15816. <dt>&lsquo;<samp>chid</samp>&rsquo;</dt>
  15817. <dd><p>channel id, see libavutil/channel_layout.h, set to the first channel id when
  15818. multichannels evaluation is disabled
  15819. </p></dd>
  15820. <dt>&lsquo;<samp>chs</samp>&rsquo;</dt>
  15821. <dd><p>number of channels
  15822. </p></dd>
  15823. <dt>&lsquo;<samp>chlayout</samp>&rsquo;</dt>
  15824. <dd><p>channel_layout, see libavutil/channel_layout.h
  15825. </p>
  15826. </dd>
  15827. </dl>
  15828. <p>and functions:
  15829. </p><dl compact="compact">
  15830. <dt>&lsquo;<samp>gain_interpolate(f)</samp>&rsquo;</dt>
  15831. <dd><p>interpolate gain on frequency f based on gain_entry
  15832. </p></dd>
  15833. <dt>&lsquo;<samp>cubic_interpolate(f)</samp>&rsquo;</dt>
  15834. <dd><p>same as gain_interpolate, but smoother
  15835. </p></dd>
  15836. </dl>
  15837. <p>This option is also available as command. Default is <code>gain_interpolate(f)</code>.
  15838. </p>
  15839. </dd>
  15840. <dt>&lsquo;<samp>gain_entry</samp>&rsquo;</dt>
  15841. <dd><p>Set gain entry for gain_interpolate function. The expression can
  15842. contain functions:
  15843. </p><dl compact="compact">
  15844. <dt>&lsquo;<samp>entry(f, g)</samp>&rsquo;</dt>
  15845. <dd><p>store gain entry at frequency f with value g
  15846. </p></dd>
  15847. </dl>
  15848. <p>This option is also available as command.
  15849. </p>
  15850. </dd>
  15851. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  15852. <dd><p>Set filter delay in seconds. Higher value means more accurate.
  15853. Default is <code>0.01</code>.
  15854. </p>
  15855. </dd>
  15856. <dt>&lsquo;<samp>accuracy</samp>&rsquo;</dt>
  15857. <dd><p>Set filter accuracy in Hz. Lower value means more accurate.
  15858. Default is <code>5</code>.
  15859. </p>
  15860. </dd>
  15861. <dt>&lsquo;<samp>wfunc</samp>&rsquo;</dt>
  15862. <dd><p>Set window function. Acceptable values are:
  15863. </p><dl compact="compact">
  15864. <dt>&lsquo;<samp>rectangular</samp>&rsquo;</dt>
  15865. <dd><p>rectangular window, useful when gain curve is already smooth
  15866. </p></dd>
  15867. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  15868. <dd><p>hann window (default)
  15869. </p></dd>
  15870. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  15871. <dd><p>hamming window
  15872. </p></dd>
  15873. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  15874. <dd><p>blackman window
  15875. </p></dd>
  15876. <dt>&lsquo;<samp>nuttall3</samp>&rsquo;</dt>
  15877. <dd><p>3-terms continuous 1st derivative nuttall window
  15878. </p></dd>
  15879. <dt>&lsquo;<samp>mnuttall3</samp>&rsquo;</dt>
  15880. <dd><p>minimum 3-terms discontinuous nuttall window
  15881. </p></dd>
  15882. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  15883. <dd><p>4-terms continuous 1st derivative nuttall window
  15884. </p></dd>
  15885. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  15886. <dd><p>minimum 4-terms discontinuous nuttall (blackman-nuttall) window
  15887. </p></dd>
  15888. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  15889. <dd><p>blackman-harris window
  15890. </p></dd>
  15891. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  15892. <dd><p>tukey window
  15893. </p></dd>
  15894. </dl>
  15895. </dd>
  15896. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  15897. <dd><p>If enabled, use fixed number of audio samples. This improves speed when
  15898. filtering with large delay. Default is disabled.
  15899. </p>
  15900. </dd>
  15901. <dt>&lsquo;<samp>multi</samp>&rsquo;</dt>
  15902. <dd><p>Enable multichannels evaluation on gain. Default is disabled.
  15903. </p>
  15904. </dd>
  15905. <dt>&lsquo;<samp>zero_phase</samp>&rsquo;</dt>
  15906. <dd><p>Enable zero phase mode by subtracting timestamp to compensate delay.
  15907. Default is disabled.
  15908. </p>
  15909. </dd>
  15910. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  15911. <dd><p>Set scale used by gain. Acceptable values are:
  15912. </p><dl compact="compact">
  15913. <dt>&lsquo;<samp>linlin</samp>&rsquo;</dt>
  15914. <dd><p>linear frequency, linear gain
  15915. </p></dd>
  15916. <dt>&lsquo;<samp>linlog</samp>&rsquo;</dt>
  15917. <dd><p>linear frequency, logarithmic (in dB) gain (default)
  15918. </p></dd>
  15919. <dt>&lsquo;<samp>loglin</samp>&rsquo;</dt>
  15920. <dd><p>logarithmic (in octave scale where 20 Hz is 0) frequency, linear gain
  15921. </p></dd>
  15922. <dt>&lsquo;<samp>loglog</samp>&rsquo;</dt>
  15923. <dd><p>logarithmic frequency, logarithmic gain
  15924. </p></dd>
  15925. </dl>
  15926. </dd>
  15927. <dt>&lsquo;<samp>dumpfile</samp>&rsquo;</dt>
  15928. <dd><p>Set file for dumping, suitable for gnuplot.
  15929. </p>
  15930. </dd>
  15931. <dt>&lsquo;<samp>dumpscale</samp>&rsquo;</dt>
  15932. <dd><p>Set scale for dumpfile. Acceptable values are same with scale option.
  15933. Default is linlog.
  15934. </p>
  15935. </dd>
  15936. <dt>&lsquo;<samp>fft2</samp>&rsquo;</dt>
  15937. <dd><p>Enable 2-channel convolution using complex FFT. This improves speed significantly.
  15938. Default is disabled.
  15939. </p>
  15940. </dd>
  15941. <dt>&lsquo;<samp>min_phase</samp>&rsquo;</dt>
  15942. <dd><p>Enable minimum phase impulse response. Default is disabled.
  15943. </p></dd>
  15944. </dl>
  15945. <a name="Examples-22"></a>
  15946. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-22">29.67.1 Examples</a></h3>
  15947. <ul>
  15948. <li>
  15949. lowpass at 1000 Hz:
  15950. <div class="example">
  15951. <pre class="example">firequalizer=gain='if(lt(f,1000), 0, -INF)'
  15952. </pre></div>
  15953. </li><li>
  15954. lowpass at 1000 Hz with gain_entry:
  15955. <div class="example">
  15956. <pre class="example">firequalizer=gain_entry='entry(1000,0); entry(1001, -INF)'
  15957. </pre></div>
  15958. </li><li>
  15959. custom equalization:
  15960. <div class="example">
  15961. <pre class="example">firequalizer=gain_entry='entry(100,0); entry(400, -4); entry(1000, -6); entry(2000, 0)'
  15962. </pre></div>
  15963. </li><li>
  15964. higher delay with zero phase to compensate delay:
  15965. <div class="example">
  15966. <pre class="example">firequalizer=delay=0.1:fixed=on:zero_phase=on
  15967. </pre></div>
  15968. </li><li>
  15969. lowpass on left channel, highpass on right channel:
  15970. <div class="example">
  15971. <pre class="example">firequalizer=gain='if(eq(chid,1), gain_interpolate(f), if(eq(chid,2), gain_interpolate(1e6+f), 0))'
  15972. :gain_entry='entry(1000, 0); entry(1001,-INF); entry(1e6+1000,0)':multi=on
  15973. </pre></div>
  15974. </li></ul>
  15975. <a name="flanger"></a>
  15976. <h2 class="section"><a href="ffprobe-all.html#toc-flanger">29.68 flanger</a></h2>
  15977. <p>Apply a flanging effect to the audio.
  15978. </p>
  15979. <p>The filter accepts the following options:
  15980. </p>
  15981. <dl compact="compact">
  15982. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  15983. <dd><p>Set base delay in milliseconds. Range from 0 to 30. Default value is 0.
  15984. </p>
  15985. </dd>
  15986. <dt>&lsquo;<samp>depth</samp>&rsquo;</dt>
  15987. <dd><p>Set added sweep delay in milliseconds. Range from 0 to 10. Default value is 2.
  15988. </p>
  15989. </dd>
  15990. <dt>&lsquo;<samp>regen</samp>&rsquo;</dt>
  15991. <dd><p>Set percentage regeneration (delayed signal feedback). Range from -95 to 95.
  15992. Default value is 0.
  15993. </p>
  15994. </dd>
  15995. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  15996. <dd><p>Set percentage of delayed signal mixed with original. Range from 0 to 100.
  15997. Default value is 71.
  15998. </p>
  15999. </dd>
  16000. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  16001. <dd><p>Set sweeps per second (Hz). Range from 0.1 to 10. Default value is 0.5.
  16002. </p>
  16003. </dd>
  16004. <dt>&lsquo;<samp>shape</samp>&rsquo;</dt>
  16005. <dd><p>Set swept wave shape, can be <var>triangular</var> or <var>sinusoidal</var>.
  16006. Default value is <var>sinusoidal</var>.
  16007. </p>
  16008. </dd>
  16009. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  16010. <dd><p>Set swept wave percentage-shift for multi channel. Range from 0 to 100.
  16011. Default value is 25.
  16012. </p>
  16013. </dd>
  16014. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  16015. <dd><p>Set delay-line interpolation, <var>linear</var> or <var>quadratic</var>.
  16016. Default is <var>linear</var>.
  16017. </p></dd>
  16018. </dl>
  16019. <a name="haas"></a>
  16020. <h2 class="section"><a href="ffprobe-all.html#toc-haas">29.69 haas</a></h2>
  16021. <p>Apply Haas effect to audio.
  16022. </p>
  16023. <p>Note that this makes most sense to apply on mono signals.
  16024. With this filter applied to mono signals it give some directionality and
  16025. stretches its stereo image.
  16026. </p>
  16027. <p>The filter accepts the following options:
  16028. </p>
  16029. <dl compact="compact">
  16030. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  16031. <dd><p>Set input level. By default is <var>1</var>, or 0dB
  16032. </p>
  16033. </dd>
  16034. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  16035. <dd><p>Set output level. By default is <var>1</var>, or 0dB.
  16036. </p>
  16037. </dd>
  16038. <dt>&lsquo;<samp>side_gain</samp>&rsquo;</dt>
  16039. <dd><p>Set gain applied to side part of signal. By default is <var>1</var>.
  16040. </p>
  16041. </dd>
  16042. <dt>&lsquo;<samp>middle_source</samp>&rsquo;</dt>
  16043. <dd><p>Set kind of middle source. Can be one of the following:
  16044. </p>
  16045. <dl compact="compact">
  16046. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  16047. <dd><p>Pick left channel.
  16048. </p>
  16049. </dd>
  16050. <dt>&lsquo;<samp>right</samp>&rsquo;</dt>
  16051. <dd><p>Pick right channel.
  16052. </p>
  16053. </dd>
  16054. <dt>&lsquo;<samp>mid</samp>&rsquo;</dt>
  16055. <dd><p>Pick middle part signal of stereo image.
  16056. </p>
  16057. </dd>
  16058. <dt>&lsquo;<samp>side</samp>&rsquo;</dt>
  16059. <dd><p>Pick side part signal of stereo image.
  16060. </p></dd>
  16061. </dl>
  16062. </dd>
  16063. <dt>&lsquo;<samp>middle_phase</samp>&rsquo;</dt>
  16064. <dd><p>Change middle phase. By default is disabled.
  16065. </p>
  16066. </dd>
  16067. <dt>&lsquo;<samp>left_delay</samp>&rsquo;</dt>
  16068. <dd><p>Set left channel delay. By default is <var>2.05</var> milliseconds.
  16069. </p>
  16070. </dd>
  16071. <dt>&lsquo;<samp>left_balance</samp>&rsquo;</dt>
  16072. <dd><p>Set left channel balance. By default is <var>-1</var>.
  16073. </p>
  16074. </dd>
  16075. <dt>&lsquo;<samp>left_gain</samp>&rsquo;</dt>
  16076. <dd><p>Set left channel gain. By default is <var>1</var>.
  16077. </p>
  16078. </dd>
  16079. <dt>&lsquo;<samp>left_phase</samp>&rsquo;</dt>
  16080. <dd><p>Change left phase. By default is disabled.
  16081. </p>
  16082. </dd>
  16083. <dt>&lsquo;<samp>right_delay</samp>&rsquo;</dt>
  16084. <dd><p>Set right channel delay. By defaults is <var>2.12</var> milliseconds.
  16085. </p>
  16086. </dd>
  16087. <dt>&lsquo;<samp>right_balance</samp>&rsquo;</dt>
  16088. <dd><p>Set right channel balance. By default is <var>1</var>.
  16089. </p>
  16090. </dd>
  16091. <dt>&lsquo;<samp>right_gain</samp>&rsquo;</dt>
  16092. <dd><p>Set right channel gain. By default is <var>1</var>.
  16093. </p>
  16094. </dd>
  16095. <dt>&lsquo;<samp>right_phase</samp>&rsquo;</dt>
  16096. <dd><p>Change right phase. By default is enabled.
  16097. </p></dd>
  16098. </dl>
  16099. <a name="hdcd"></a>
  16100. <h2 class="section"><a href="ffprobe-all.html#toc-hdcd">29.70 hdcd</a></h2>
  16101. <p>Decodes High Definition Compatible Digital (HDCD) data. A 16-bit PCM stream with
  16102. embedded HDCD codes is expanded into a 20-bit PCM stream.
  16103. </p>
  16104. <p>The filter supports the Peak Extend and Low-level Gain Adjustment features
  16105. of HDCD, and detects the Transient Filter flag.
  16106. </p>
  16107. <div class="example">
  16108. <pre class="example">ffmpeg -i HDCD16.flac -af hdcd OUT24.flac
  16109. </pre></div>
  16110. <p>When using the filter with wav, note the default encoding for wav is 16-bit,
  16111. so the resulting 20-bit stream will be truncated back to 16-bit. Use something
  16112. like <code>-acodec pcm_s24le</code> after the filter to get 24-bit PCM output.
  16113. </p><div class="example">
  16114. <pre class="example">ffmpeg -i HDCD16.wav -af hdcd OUT16.wav
  16115. ffmpeg -i HDCD16.wav -af hdcd -c:a pcm_s24le OUT24.wav
  16116. </pre></div>
  16117. <p>The filter accepts the following options:
  16118. </p>
  16119. <dl compact="compact">
  16120. <dt>&lsquo;<samp>disable_autoconvert</samp>&rsquo;</dt>
  16121. <dd><p>Disable any automatic format conversion or resampling in the filter graph.
  16122. </p>
  16123. </dd>
  16124. <dt>&lsquo;<samp>process_stereo</samp>&rsquo;</dt>
  16125. <dd><p>Process the stereo channels together. If target_gain does not match between
  16126. channels, consider it invalid and use the last valid target_gain.
  16127. </p>
  16128. </dd>
  16129. <dt>&lsquo;<samp>cdt_ms</samp>&rsquo;</dt>
  16130. <dd><p>Set the code detect timer period in ms.
  16131. </p>
  16132. </dd>
  16133. <dt>&lsquo;<samp>force_pe</samp>&rsquo;</dt>
  16134. <dd><p>Always extend peaks above -3dBFS even if PE isn&rsquo;t signaled.
  16135. </p>
  16136. </dd>
  16137. <dt>&lsquo;<samp>analyze_mode</samp>&rsquo;</dt>
  16138. <dd><p>Replace audio with a solid tone and adjust the amplitude to signal some
  16139. specific aspect of the decoding process. The output file can be loaded in
  16140. an audio editor alongside the original to aid analysis.
  16141. </p>
  16142. <p><code>analyze_mode=pe:force_pe=true</code> can be used to see all samples above the PE level.
  16143. </p>
  16144. <p>Modes are:
  16145. </p><dl compact="compact">
  16146. <dt>&lsquo;<samp>0, off</samp>&rsquo;</dt>
  16147. <dd><p>Disabled
  16148. </p></dd>
  16149. <dt>&lsquo;<samp>1, lle</samp>&rsquo;</dt>
  16150. <dd><p>Gain adjustment level at each sample
  16151. </p></dd>
  16152. <dt>&lsquo;<samp>2, pe</samp>&rsquo;</dt>
  16153. <dd><p>Samples where peak extend occurs
  16154. </p></dd>
  16155. <dt>&lsquo;<samp>3, cdt</samp>&rsquo;</dt>
  16156. <dd><p>Samples where the code detect timer is active
  16157. </p></dd>
  16158. <dt>&lsquo;<samp>4, tgm</samp>&rsquo;</dt>
  16159. <dd><p>Samples where the target gain does not match between channels
  16160. </p></dd>
  16161. </dl>
  16162. </dd>
  16163. </dl>
  16164. <a name="headphone"></a>
  16165. <h2 class="section"><a href="ffprobe-all.html#toc-headphone">29.71 headphone</a></h2>
  16166. <p>Apply head-related transfer functions (HRTFs) to create virtual
  16167. loudspeakers around the user for binaural listening via headphones.
  16168. The HRIRs are provided via additional streams, for each channel
  16169. one stereo input stream is needed.
  16170. </p>
  16171. <p>The filter accepts the following options:
  16172. </p>
  16173. <dl compact="compact">
  16174. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  16175. <dd><p>Set mapping of input streams for convolution.
  16176. The argument is a &rsquo;|&rsquo;-separated list of channel names in order as they
  16177. are given as additional stream inputs for filter.
  16178. This also specify number of input streams. Number of input streams
  16179. must be not less than number of channels in first stream plus one.
  16180. </p>
  16181. </dd>
  16182. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  16183. <dd><p>Set gain applied to audio. Value is in dB. Default is 0.
  16184. </p>
  16185. </dd>
  16186. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  16187. <dd><p>Set processing type. Can be <var>time</var> or <var>freq</var>. <var>time</var> is
  16188. processing audio in time domain which is slow.
  16189. <var>freq</var> is processing audio in frequency domain which is fast.
  16190. Default is <var>freq</var>.
  16191. </p>
  16192. </dd>
  16193. <dt>&lsquo;<samp>lfe</samp>&rsquo;</dt>
  16194. <dd><p>Set custom gain for LFE channels. Value is in dB. Default is 0.
  16195. </p>
  16196. </dd>
  16197. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  16198. <dd><p>Set size of frame in number of samples which will be processed at once.
  16199. Default value is <var>1024</var>. Allowed range is from 1024 to 96000.
  16200. </p>
  16201. </dd>
  16202. <dt>&lsquo;<samp>hrir</samp>&rsquo;</dt>
  16203. <dd><p>Set format of hrir stream.
  16204. Default value is <var>stereo</var>. Alternative value is <var>multich</var>.
  16205. If value is set to <var>stereo</var>, number of additional streams should
  16206. be greater or equal to number of input channels in first input stream.
  16207. Also each additional stream should have stereo number of channels.
  16208. If value is set to <var>multich</var>, number of additional streams should
  16209. be exactly one. Also number of input channels of additional stream
  16210. should be equal or greater than twice number of channels of first input
  16211. stream.
  16212. </p></dd>
  16213. </dl>
  16214. <a name="Examples-131"></a>
  16215. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-131">29.71.1 Examples</a></h3>
  16216. <ul>
  16217. <li>
  16218. Full example using wav files as coefficients with amovie filters for 7.1 downmix,
  16219. each amovie filter use stereo file with IR coefficients as input.
  16220. The files give coefficients for each position of virtual loudspeaker:
  16221. <div class="example">
  16222. <pre class="example">ffmpeg -i input.wav
  16223. -filter_complex &quot;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&quot;
  16224. output.wav
  16225. </pre></div>
  16226. </li><li>
  16227. Full example using wav files as coefficients with amovie filters for 7.1 downmix,
  16228. but now in <var>multich</var> <var>hrir</var> format.
  16229. <div class="example">
  16230. <pre class="example">ffmpeg -i input.wav -filter_complex &quot;amovie=minp.wav[hrirs];[0:a][hrirs]headphone=map=FL|FR|FC|LFE|BL|BR|SL|SR:hrir=multich&quot;
  16231. output.wav
  16232. </pre></div>
  16233. </li></ul>
  16234. <a name="highpass"></a>
  16235. <h2 class="section"><a href="ffprobe-all.html#toc-highpass">29.72 highpass</a></h2>
  16236. <p>Apply a high-pass filter with 3dB point frequency.
  16237. The filter can be either single-pole, or double-pole (the default).
  16238. The filter roll off at 6dB per pole per octave (20dB per pole per decade).
  16239. </p>
  16240. <p>The filter accepts the following options:
  16241. </p>
  16242. <dl compact="compact">
  16243. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16244. <dd><p>Set frequency in Hz. Default is 3000.
  16245. </p>
  16246. </dd>
  16247. <dt>&lsquo;<samp>poles, p</samp>&rsquo;</dt>
  16248. <dd><p>Set number of poles. Default is 2.
  16249. </p>
  16250. </dd>
  16251. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16252. <dd><p>Set method to specify band-width of filter.
  16253. </p><dl compact="compact">
  16254. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  16255. <dd><p>Hz
  16256. </p></dd>
  16257. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  16258. <dd><p>Q-Factor
  16259. </p></dd>
  16260. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  16261. <dd><p>octave
  16262. </p></dd>
  16263. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  16264. <dd><p>slope
  16265. </p></dd>
  16266. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  16267. <dd><p>kHz
  16268. </p></dd>
  16269. </dl>
  16270. </dd>
  16271. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16272. <dd><p>Specify the band-width of a filter in width_type units.
  16273. Applies only to double-pole filter.
  16274. The default is 0.707q and gives a Butterworth response.
  16275. </p>
  16276. </dd>
  16277. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16278. <dd><p>How much to use filtered signal in output. Default is 1.
  16279. Range is between 0 and 1.
  16280. </p>
  16281. </dd>
  16282. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  16283. <dd><p>Specify which channels to filter, by default all available are filtered.
  16284. </p>
  16285. </dd>
  16286. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  16287. <dd><p>Normalize biquad coefficients, by default is disabled.
  16288. Enabling it will normalize magnitude response at DC to 0dB.
  16289. </p></dd>
  16290. </dl>
  16291. <a name="Commands-30"></a>
  16292. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-30">29.72.1 Commands</a></h3>
  16293. <p>This filter supports the following commands:
  16294. </p><dl compact="compact">
  16295. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16296. <dd><p>Change highpass frequency.
  16297. Syntax for the command is : &quot;<var>frequency</var>&quot;
  16298. </p>
  16299. </dd>
  16300. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16301. <dd><p>Change highpass width_type.
  16302. Syntax for the command is : &quot;<var>width_type</var>&quot;
  16303. </p>
  16304. </dd>
  16305. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16306. <dd><p>Change highpass width.
  16307. Syntax for the command is : &quot;<var>width</var>&quot;
  16308. </p>
  16309. </dd>
  16310. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16311. <dd><p>Change highpass mix.
  16312. Syntax for the command is : &quot;<var>mix</var>&quot;
  16313. </p></dd>
  16314. </dl>
  16315. <a name="join"></a>
  16316. <h2 class="section"><a href="ffprobe-all.html#toc-join">29.73 join</a></h2>
  16317. <p>Join multiple input streams into one multi-channel stream.
  16318. </p>
  16319. <p>It accepts the following parameters:
  16320. </p><dl compact="compact">
  16321. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  16322. <dd><p>The number of input streams. It defaults to 2.
  16323. </p>
  16324. </dd>
  16325. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  16326. <dd><p>The desired output channel layout. It defaults to stereo.
  16327. </p>
  16328. </dd>
  16329. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  16330. <dd><p>Map channels from inputs to output. The argument is a &rsquo;|&rsquo;-separated list of
  16331. mappings, each in the <code><var>input_idx</var>.<var>in_channel</var>-<var>out_channel</var></code>
  16332. form. <var>input_idx</var> is the 0-based index of the input stream. <var>in_channel</var>
  16333. can be either the name of the input channel (e.g. FL for front left) or its
  16334. index in the specified input stream. <var>out_channel</var> is the name of the output
  16335. channel.
  16336. </p></dd>
  16337. </dl>
  16338. <p>The filter will attempt to guess the mappings when they are not specified
  16339. explicitly. It does so by first trying to find an unused matching input channel
  16340. and if that fails it picks the first unused input channel.
  16341. </p>
  16342. <p>Join 3 inputs (with properly set channel layouts):
  16343. </p><div class="example">
  16344. <pre class="example">ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex join=inputs=3 OUTPUT
  16345. </pre></div>
  16346. <p>Build a 5.1 output from 6 single-channel streams:
  16347. </p><div class="example">
  16348. <pre class="example">ffmpeg -i fl -i fr -i fc -i sl -i sr -i lfe -filter_complex
  16349. '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'
  16350. out
  16351. </pre></div>
  16352. <a name="ladspa"></a>
  16353. <h2 class="section"><a href="ffprobe-all.html#toc-ladspa">29.74 ladspa</a></h2>
  16354. <p>Load a LADSPA (Linux Audio Developer&rsquo;s Simple Plugin API) plugin.
  16355. </p>
  16356. <p>To enable compilation of this filter you need to configure FFmpeg with
  16357. <code>--enable-ladspa</code>.
  16358. </p>
  16359. <dl compact="compact">
  16360. <dt>&lsquo;<samp>file, f</samp>&rsquo;</dt>
  16361. <dd><p>Specifies the name of LADSPA plugin library to load. If the environment
  16362. variable <code>LADSPA_PATH</code> is defined, the LADSPA plugin is searched in
  16363. each one of the directories specified by the colon separated list in
  16364. <code>LADSPA_PATH</code>, otherwise in the standard LADSPA paths, which are in
  16365. this order: &lsquo;<tt>HOME/.ladspa/lib/</tt>&rsquo;, &lsquo;<tt>/usr/local/lib/ladspa/</tt>&rsquo;,
  16366. &lsquo;<tt>/usr/lib/ladspa/</tt>&rsquo;.
  16367. </p>
  16368. </dd>
  16369. <dt>&lsquo;<samp>plugin, p</samp>&rsquo;</dt>
  16370. <dd><p>Specifies the plugin within the library. Some libraries contain only
  16371. one plugin, but others contain many of them. If this is not set filter
  16372. will list all available plugins within the specified library.
  16373. </p>
  16374. </dd>
  16375. <dt>&lsquo;<samp>controls, c</samp>&rsquo;</dt>
  16376. <dd><p>Set the &rsquo;|&rsquo; separated list of controls which are zero or more floating point
  16377. values that determine the behavior of the loaded plugin (for example delay,
  16378. threshold or gain).
  16379. Controls need to be defined using the following syntax:
  16380. c0=<var>value0</var>|c1=<var>value1</var>|c2=<var>value2</var>|..., where
  16381. <var>valuei</var> is the value set on the <var>i</var>-th control.
  16382. Alternatively they can be also defined using the following syntax:
  16383. <var>value0</var>|<var>value1</var>|<var>value2</var>|..., where
  16384. <var>valuei</var> is the value set on the <var>i</var>-th control.
  16385. If &lsquo;<samp>controls</samp>&rsquo; is set to <code>help</code>, all available controls and
  16386. their valid ranges are printed.
  16387. </p>
  16388. </dd>
  16389. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  16390. <dd><p>Specify the sample rate, default to 44100. Only used if plugin have
  16391. zero inputs.
  16392. </p>
  16393. </dd>
  16394. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  16395. <dd><p>Set the number of samples per channel per each output frame, default
  16396. is 1024. Only used if plugin have zero inputs.
  16397. </p>
  16398. </dd>
  16399. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  16400. <dd><p>Set the minimum duration of the sourced audio. See
  16401. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  16402. for the accepted syntax.
  16403. Note that the resulting duration may be greater than the specified duration,
  16404. as the generated audio is always cut at the end of a complete frame.
  16405. If not specified, or the expressed duration is negative, the audio is
  16406. supposed to be generated forever.
  16407. Only used if plugin have zero inputs.
  16408. </p>
  16409. </dd>
  16410. </dl>
  16411. <a name="Examples-165"></a>
  16412. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-165">29.74.1 Examples</a></h3>
  16413. <ul>
  16414. <li>
  16415. List all available plugins within amp (LADSPA example plugin) library:
  16416. <div class="example">
  16417. <pre class="example">ladspa=file=amp
  16418. </pre></div>
  16419. </li><li>
  16420. List all available controls and their valid ranges for <code>vcf_notch</code>
  16421. plugin from <code>VCF</code> library:
  16422. <div class="example">
  16423. <pre class="example">ladspa=f=vcf:p=vcf_notch:c=help
  16424. </pre></div>
  16425. </li><li>
  16426. Simulate low quality audio equipment using <code>Computer Music Toolkit</code> (CMT)
  16427. plugin library:
  16428. <div class="example">
  16429. <pre class="example">ladspa=file=cmt:plugin=lofi:controls=c0=22|c1=12|c2=12
  16430. </pre></div>
  16431. </li><li>
  16432. Add reverberation to the audio using TAP-plugins
  16433. (Tom&rsquo;s Audio Processing plugins):
  16434. <div class="example">
  16435. <pre class="example">ladspa=file=tap_reverb:tap_reverb
  16436. </pre></div>
  16437. </li><li>
  16438. Generate white noise, with 0.2 amplitude:
  16439. <div class="example">
  16440. <pre class="example">ladspa=file=cmt:noise_source_white:c=c0=.2
  16441. </pre></div>
  16442. </li><li>
  16443. Generate 20 bpm clicks using plugin <code>C* Click - Metronome</code> from the
  16444. <code>C* Audio Plugin Suite</code> (CAPS) library:
  16445. <div class="example">
  16446. <pre class="example">ladspa=file=caps:Click:c=c1=20'
  16447. </pre></div>
  16448. </li><li>
  16449. Apply <code>C* Eq10X2 - Stereo 10-band equaliser</code> effect:
  16450. <div class="example">
  16451. <pre class="example">ladspa=caps:Eq10X2:c=c0=-48|c9=-24|c3=12|c4=2
  16452. </pre></div>
  16453. </li><li>
  16454. Increase volume by 20dB using fast lookahead limiter from Steve Harris
  16455. <code>SWH Plugins</code> collection:
  16456. <div class="example">
  16457. <pre class="example">ladspa=fast_lookahead_limiter_1913:fastLookaheadLimiter:20|0|2
  16458. </pre></div>
  16459. </li><li>
  16460. Attenuate low frequencies using Multiband EQ from Steve Harris
  16461. <code>SWH Plugins</code> collection:
  16462. <div class="example">
  16463. <pre class="example">ladspa=mbeq_1197:mbeq:-24|-24|-24|0|0|0|0|0|0|0|0|0|0|0|0
  16464. </pre></div>
  16465. </li><li>
  16466. Reduce stereo image using <code>Narrower</code> from the <code>C* Audio Plugin Suite</code>
  16467. (CAPS) library:
  16468. <div class="example">
  16469. <pre class="example">ladspa=caps:Narrower
  16470. </pre></div>
  16471. </li><li>
  16472. Another white noise, now using <code>C* Audio Plugin Suite</code> (CAPS) library:
  16473. <div class="example">
  16474. <pre class="example">ladspa=caps:White:.2
  16475. </pre></div>
  16476. </li><li>
  16477. Some fractal noise, using <code>C* Audio Plugin Suite</code> (CAPS) library:
  16478. <div class="example">
  16479. <pre class="example">ladspa=caps:Fractal:c=c1=1
  16480. </pre></div>
  16481. </li><li>
  16482. Dynamic volume normalization using <code>VLevel</code> plugin:
  16483. <div class="example">
  16484. <pre class="example">ladspa=vlevel-ladspa:vlevel_mono
  16485. </pre></div>
  16486. </li></ul>
  16487. <a name="Commands-50"></a>
  16488. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-50">29.74.2 Commands</a></h3>
  16489. <p>This filter supports the following commands:
  16490. </p><dl compact="compact">
  16491. <dt>&lsquo;<samp>cN</samp>&rsquo;</dt>
  16492. <dd><p>Modify the <var>N</var>-th control value.
  16493. </p>
  16494. <p>If the specified value is not valid, it is ignored and prior one is kept.
  16495. </p></dd>
  16496. </dl>
  16497. <a name="loudnorm"></a>
  16498. <h2 class="section"><a href="ffprobe-all.html#toc-loudnorm">29.75 loudnorm</a></h2>
  16499. <p>EBU R128 loudness normalization. Includes both dynamic and linear normalization modes.
  16500. Support for both single pass (livestreams, files) and double pass (files) modes.
  16501. This algorithm can target IL, LRA, and maximum true peak. In dynamic mode, to accurately
  16502. detect true peaks, the audio stream will be upsampled to 192 kHz.
  16503. Use the <code>-ar</code> option or <code>aresample</code> filter to explicitly set an output sample rate.
  16504. </p>
  16505. <p>The filter accepts the following options:
  16506. </p>
  16507. <dl compact="compact">
  16508. <dt>&lsquo;<samp>I, i</samp>&rsquo;</dt>
  16509. <dd><p>Set integrated loudness target.
  16510. Range is -70.0 - -5.0. Default value is -24.0.
  16511. </p>
  16512. </dd>
  16513. <dt>&lsquo;<samp>LRA, lra</samp>&rsquo;</dt>
  16514. <dd><p>Set loudness range target.
  16515. Range is 1.0 - 20.0. Default value is 7.0.
  16516. </p>
  16517. </dd>
  16518. <dt>&lsquo;<samp>TP, tp</samp>&rsquo;</dt>
  16519. <dd><p>Set maximum true peak.
  16520. Range is -9.0 - +0.0. Default value is -2.0.
  16521. </p>
  16522. </dd>
  16523. <dt>&lsquo;<samp>measured_I, measured_i</samp>&rsquo;</dt>
  16524. <dd><p>Measured IL of input file.
  16525. Range is -99.0 - +0.0.
  16526. </p>
  16527. </dd>
  16528. <dt>&lsquo;<samp>measured_LRA, measured_lra</samp>&rsquo;</dt>
  16529. <dd><p>Measured LRA of input file.
  16530. Range is 0.0 - 99.0.
  16531. </p>
  16532. </dd>
  16533. <dt>&lsquo;<samp>measured_TP, measured_tp</samp>&rsquo;</dt>
  16534. <dd><p>Measured true peak of input file.
  16535. Range is -99.0 - +99.0.
  16536. </p>
  16537. </dd>
  16538. <dt>&lsquo;<samp>measured_thresh</samp>&rsquo;</dt>
  16539. <dd><p>Measured threshold of input file.
  16540. Range is -99.0 - +0.0.
  16541. </p>
  16542. </dd>
  16543. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  16544. <dd><p>Set offset gain. Gain is applied before the true-peak limiter.
  16545. Range is -99.0 - +99.0. Default is +0.0.
  16546. </p>
  16547. </dd>
  16548. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  16549. <dd><p>Normalize by linearly scaling the source audio.
  16550. <code>measured_I</code>, <code>measured_LRA</code>, <code>measured_TP</code>,
  16551. and <code>measured_thresh</code> must all be specified. Target LRA shouldn&rsquo;t
  16552. be lower than source LRA and the change in integrated loudness shouldn&rsquo;t
  16553. result in a true peak which exceeds the target TP. If any of these
  16554. conditions aren&rsquo;t met, normalization mode will revert to <var>dynamic</var>.
  16555. Options are <code>true</code> or <code>false</code>. Default is <code>true</code>.
  16556. </p>
  16557. </dd>
  16558. <dt>&lsquo;<samp>dual_mono</samp>&rsquo;</dt>
  16559. <dd><p>Treat mono input files as &quot;dual-mono&quot;. If a mono file is intended for playback
  16560. on a stereo system, its EBU R128 measurement will be perceptually incorrect.
  16561. If set to <code>true</code>, this option will compensate for this effect.
  16562. Multi-channel input files are not affected by this option.
  16563. Options are true or false. Default is false.
  16564. </p>
  16565. </dd>
  16566. <dt>&lsquo;<samp>print_format</samp>&rsquo;</dt>
  16567. <dd><p>Set print format for stats. Options are summary, json, or none.
  16568. Default value is none.
  16569. </p></dd>
  16570. </dl>
  16571. <a name="lowpass"></a>
  16572. <h2 class="section"><a href="ffprobe-all.html#toc-lowpass">29.76 lowpass</a></h2>
  16573. <p>Apply a low-pass filter with 3dB point frequency.
  16574. The filter can be either single-pole or double-pole (the default).
  16575. The filter roll off at 6dB per pole per octave (20dB per pole per decade).
  16576. </p>
  16577. <p>The filter accepts the following options:
  16578. </p>
  16579. <dl compact="compact">
  16580. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16581. <dd><p>Set frequency in Hz. Default is 500.
  16582. </p>
  16583. </dd>
  16584. <dt>&lsquo;<samp>poles, p</samp>&rsquo;</dt>
  16585. <dd><p>Set number of poles. Default is 2.
  16586. </p>
  16587. </dd>
  16588. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16589. <dd><p>Set method to specify band-width of filter.
  16590. </p><dl compact="compact">
  16591. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  16592. <dd><p>Hz
  16593. </p></dd>
  16594. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  16595. <dd><p>Q-Factor
  16596. </p></dd>
  16597. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  16598. <dd><p>octave
  16599. </p></dd>
  16600. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  16601. <dd><p>slope
  16602. </p></dd>
  16603. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  16604. <dd><p>kHz
  16605. </p></dd>
  16606. </dl>
  16607. </dd>
  16608. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16609. <dd><p>Specify the band-width of a filter in width_type units.
  16610. Applies only to double-pole filter.
  16611. The default is 0.707q and gives a Butterworth response.
  16612. </p>
  16613. </dd>
  16614. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16615. <dd><p>How much to use filtered signal in output. Default is 1.
  16616. Range is between 0 and 1.
  16617. </p>
  16618. </dd>
  16619. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  16620. <dd><p>Specify which channels to filter, by default all available are filtered.
  16621. </p>
  16622. </dd>
  16623. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  16624. <dd><p>Normalize biquad coefficients, by default is disabled.
  16625. Enabling it will normalize magnitude response at DC to 0dB.
  16626. </p></dd>
  16627. </dl>
  16628. <a name="Examples-102"></a>
  16629. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-102">29.76.1 Examples</a></h3>
  16630. <ul>
  16631. <li>
  16632. Lowpass only LFE channel, it LFE is not present it does nothing:
  16633. <div class="example">
  16634. <pre class="example">lowpass=c=LFE
  16635. </pre></div>
  16636. </li></ul>
  16637. <a name="Commands-27"></a>
  16638. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-27">29.76.2 Commands</a></h3>
  16639. <p>This filter supports the following commands:
  16640. </p><dl compact="compact">
  16641. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16642. <dd><p>Change lowpass frequency.
  16643. Syntax for the command is : &quot;<var>frequency</var>&quot;
  16644. </p>
  16645. </dd>
  16646. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16647. <dd><p>Change lowpass width_type.
  16648. Syntax for the command is : &quot;<var>width_type</var>&quot;
  16649. </p>
  16650. </dd>
  16651. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16652. <dd><p>Change lowpass width.
  16653. Syntax for the command is : &quot;<var>width</var>&quot;
  16654. </p>
  16655. </dd>
  16656. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16657. <dd><p>Change lowpass mix.
  16658. Syntax for the command is : &quot;<var>mix</var>&quot;
  16659. </p></dd>
  16660. </dl>
  16661. <a name="lv2"></a>
  16662. <h2 class="section"><a href="ffprobe-all.html#toc-lv2">29.77 lv2</a></h2>
  16663. <p>Load a LV2 (LADSPA Version 2) plugin.
  16664. </p>
  16665. <p>To enable compilation of this filter you need to configure FFmpeg with
  16666. <code>--enable-lv2</code>.
  16667. </p>
  16668. <dl compact="compact">
  16669. <dt>&lsquo;<samp>plugin, p</samp>&rsquo;</dt>
  16670. <dd><p>Specifies the plugin URI. You may need to escape &rsquo;:&rsquo;.
  16671. </p>
  16672. </dd>
  16673. <dt>&lsquo;<samp>controls, c</samp>&rsquo;</dt>
  16674. <dd><p>Set the &rsquo;|&rsquo; separated list of controls which are zero or more floating point
  16675. values that determine the behavior of the loaded plugin (for example delay,
  16676. threshold or gain).
  16677. If &lsquo;<samp>controls</samp>&rsquo; is set to <code>help</code>, all available controls and
  16678. their valid ranges are printed.
  16679. </p>
  16680. </dd>
  16681. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  16682. <dd><p>Specify the sample rate, default to 44100. Only used if plugin have
  16683. zero inputs.
  16684. </p>
  16685. </dd>
  16686. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  16687. <dd><p>Set the number of samples per channel per each output frame, default
  16688. is 1024. Only used if plugin have zero inputs.
  16689. </p>
  16690. </dd>
  16691. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  16692. <dd><p>Set the minimum duration of the sourced audio. See
  16693. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  16694. for the accepted syntax.
  16695. Note that the resulting duration may be greater than the specified duration,
  16696. as the generated audio is always cut at the end of a complete frame.
  16697. If not specified, or the expressed duration is negative, the audio is
  16698. supposed to be generated forever.
  16699. Only used if plugin have zero inputs.
  16700. </p></dd>
  16701. </dl>
  16702. <a name="Examples-79"></a>
  16703. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-79">29.77.1 Examples</a></h3>
  16704. <ul>
  16705. <li>
  16706. Apply bass enhancer plugin from Calf:
  16707. <div class="example">
  16708. <pre class="example">lv2=p=http\\\\://calf.sourceforge.net/plugins/BassEnhancer:c=amount=2
  16709. </pre></div>
  16710. </li><li>
  16711. Apply vinyl plugin from Calf:
  16712. <div class="example">
  16713. <pre class="example">lv2=p=http\\\\://calf.sourceforge.net/plugins/Vinyl:c=drone=0.2|aging=0.5
  16714. </pre></div>
  16715. </li><li>
  16716. Apply bit crusher plugin from ArtyFX:
  16717. <div class="example">
  16718. <pre class="example">lv2=p=http\\\\://www.openavproductions.com/artyfx#bitta:c=crush=0.3
  16719. </pre></div>
  16720. </li></ul>
  16721. <a name="mcompand"></a>
  16722. <h2 class="section"><a href="ffprobe-all.html#toc-mcompand">29.78 mcompand</a></h2>
  16723. <p>Multiband Compress or expand the audio&rsquo;s dynamic range.
  16724. </p>
  16725. <p>The input audio is divided into bands using 4th order Linkwitz-Riley IIRs.
  16726. This is akin to the crossover of a loudspeaker, and results in flat frequency
  16727. response when absent compander action.
  16728. </p>
  16729. <p>It accepts the following parameters:
  16730. </p>
  16731. <dl compact="compact">
  16732. <dt>&lsquo;<samp>args</samp>&rsquo;</dt>
  16733. <dd><p>This option syntax is:
  16734. attack,decay,[attack,decay..] soft-knee points crossover_frequency [delay [initial_volume [gain]]] | attack,decay ...
  16735. For explanation of each item refer to compand filter documentation.
  16736. </p></dd>
  16737. </dl>
  16738. <p><a name="pan"></a>
  16739. </p><a name="pan-1"></a>
  16740. <h2 class="section"><a href="ffprobe-all.html#toc-pan-1">29.79 pan</a></h2>
  16741. <p>Mix channels with specific gain levels. The filter accepts the output
  16742. channel layout followed by a set of channels definitions.
  16743. </p>
  16744. <p>This filter is also designed to efficiently remap the channels of an audio
  16745. stream.
  16746. </p>
  16747. <p>The filter accepts parameters of the form:
  16748. &quot;<var>l</var>|<var>outdef</var>|<var>outdef</var>|...&quot;
  16749. </p>
  16750. <dl compact="compact">
  16751. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  16752. <dd><p>output channel layout or number of channels
  16753. </p>
  16754. </dd>
  16755. <dt>&lsquo;<samp>outdef</samp>&rsquo;</dt>
  16756. <dd><p>output channel specification, of the form:
  16757. &quot;<var>out_name</var>=[<var>gain</var>*]<var>in_name</var>[(+-)[<var>gain</var>*]<var>in_name</var>...]&quot;
  16758. </p>
  16759. </dd>
  16760. <dt>&lsquo;<samp>out_name</samp>&rsquo;</dt>
  16761. <dd><p>output channel to define, either a channel name (FL, FR, etc.) or a channel
  16762. number (c0, c1, etc.)
  16763. </p>
  16764. </dd>
  16765. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  16766. <dd><p>multiplicative coefficient for the channel, 1 leaving the volume unchanged
  16767. </p>
  16768. </dd>
  16769. <dt>&lsquo;<samp>in_name</samp>&rsquo;</dt>
  16770. <dd><p>input channel to use, see out_name for details; it is not possible to mix
  16771. named and numbered input channels
  16772. </p></dd>
  16773. </dl>
  16774. <p>If the &lsquo;=&rsquo; in a channel specification is replaced by &lsquo;&lt;&rsquo;, then the gains for
  16775. that specification will be renormalized so that the total is 1, thus
  16776. avoiding clipping noise.
  16777. </p>
  16778. <a name="Mixing-examples"></a>
  16779. <h3 class="subsection"><a href="ffprobe-all.html#toc-Mixing-examples">29.79.1 Mixing examples</a></h3>
  16780. <p>For example, if you want to down-mix from stereo to mono, but with a bigger
  16781. factor for the left channel:
  16782. </p><div class="example">
  16783. <pre class="example">pan=1c|c0=0.9*c0+0.1*c1
  16784. </pre></div>
  16785. <p>A customized down-mix to stereo that works automatically for 3-, 4-, 5- and
  16786. 7-channels surround:
  16787. </p><div class="example">
  16788. <pre class="example">pan=stereo| FL &lt; FL + 0.5*FC + 0.6*BL + 0.6*SL | FR &lt; FR + 0.5*FC + 0.6*BR + 0.6*SR
  16789. </pre></div>
  16790. <p>Note that <code>ffmpeg</code> integrates a default down-mix (and up-mix) system
  16791. that should be preferred (see &quot;-ac&quot; option) unless you have very specific
  16792. needs.
  16793. </p>
  16794. <a name="Remapping-examples"></a>
  16795. <h3 class="subsection"><a href="ffprobe-all.html#toc-Remapping-examples">29.79.2 Remapping examples</a></h3>
  16796. <p>The channel remapping will be effective if, and only if:
  16797. </p>
  16798. <ul>
  16799. <li> gain coefficients are zeroes or ones,
  16800. </li><li> only one input per channel output,
  16801. </li></ul>
  16802. <p>If all these conditions are satisfied, the filter will notify the user (&quot;Pure
  16803. channel mapping detected&quot;), and use an optimized and lossless method to do the
  16804. remapping.
  16805. </p>
  16806. <p>For example, if you have a 5.1 source and want a stereo audio stream by
  16807. dropping the extra channels:
  16808. </p><div class="example">
  16809. <pre class="example">pan=&quot;stereo| c0=FL | c1=FR&quot;
  16810. </pre></div>
  16811. <p>Given the same source, you can also switch front left and front right channels
  16812. and keep the input channel layout:
  16813. </p><div class="example">
  16814. <pre class="example">pan=&quot;5.1| c0=c1 | c1=c0 | c2=c2 | c3=c3 | c4=c4 | c5=c5&quot;
  16815. </pre></div>
  16816. <p>If the input is a stereo audio stream, you can mute the front left channel (and
  16817. still keep the stereo channel layout) with:
  16818. </p><div class="example">
  16819. <pre class="example">pan=&quot;stereo|c1=c1&quot;
  16820. </pre></div>
  16821. <p>Still with a stereo audio stream input, you can copy the right channel in both
  16822. front left and right:
  16823. </p><div class="example">
  16824. <pre class="example">pan=&quot;stereo| c0=FR | c1=FR&quot;
  16825. </pre></div>
  16826. <a name="replaygain"></a>
  16827. <h2 class="section"><a href="ffprobe-all.html#toc-replaygain">29.80 replaygain</a></h2>
  16828. <p>ReplayGain scanner filter. This filter takes an audio stream as an input and
  16829. outputs it unchanged.
  16830. At end of filtering it displays <code>track_gain</code> and <code>track_peak</code>.
  16831. </p>
  16832. <a name="resample"></a>
  16833. <h2 class="section"><a href="ffprobe-all.html#toc-resample">29.81 resample</a></h2>
  16834. <p>Convert the audio sample format, sample rate and channel layout. It is
  16835. not meant to be used directly.
  16836. </p>
  16837. <a name="rubberband"></a>
  16838. <h2 class="section"><a href="ffprobe-all.html#toc-rubberband">29.82 rubberband</a></h2>
  16839. <p>Apply time-stretching and pitch-shifting with librubberband.
  16840. </p>
  16841. <p>To enable compilation of this filter, you need to configure FFmpeg with
  16842. <code>--enable-librubberband</code>.
  16843. </p>
  16844. <p>The filter accepts the following options:
  16845. </p>
  16846. <dl compact="compact">
  16847. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  16848. <dd><p>Set tempo scale factor.
  16849. </p>
  16850. </dd>
  16851. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  16852. <dd><p>Set pitch scale factor.
  16853. </p>
  16854. </dd>
  16855. <dt>&lsquo;<samp>transients</samp>&rsquo;</dt>
  16856. <dd><p>Set transients detector.
  16857. Possible values are:
  16858. </p><dl compact="compact">
  16859. <dt><var>crisp</var></dt>
  16860. <dt><var>mixed</var></dt>
  16861. <dt><var>smooth</var></dt>
  16862. </dl>
  16863. </dd>
  16864. <dt>&lsquo;<samp>detector</samp>&rsquo;</dt>
  16865. <dd><p>Set detector.
  16866. Possible values are:
  16867. </p><dl compact="compact">
  16868. <dt><var>compound</var></dt>
  16869. <dt><var>percussive</var></dt>
  16870. <dt><var>soft</var></dt>
  16871. </dl>
  16872. </dd>
  16873. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  16874. <dd><p>Set phase.
  16875. Possible values are:
  16876. </p><dl compact="compact">
  16877. <dt><var>laminar</var></dt>
  16878. <dt><var>independent</var></dt>
  16879. </dl>
  16880. </dd>
  16881. <dt>&lsquo;<samp>window</samp>&rsquo;</dt>
  16882. <dd><p>Set processing window size.
  16883. Possible values are:
  16884. </p><dl compact="compact">
  16885. <dt><var>standard</var></dt>
  16886. <dt><var>short</var></dt>
  16887. <dt><var>long</var></dt>
  16888. </dl>
  16889. </dd>
  16890. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  16891. <dd><p>Set smoothing.
  16892. Possible values are:
  16893. </p><dl compact="compact">
  16894. <dt><var>off</var></dt>
  16895. <dt><var>on</var></dt>
  16896. </dl>
  16897. </dd>
  16898. <dt>&lsquo;<samp>formant</samp>&rsquo;</dt>
  16899. <dd><p>Enable formant preservation when shift pitching.
  16900. Possible values are:
  16901. </p><dl compact="compact">
  16902. <dt><var>shifted</var></dt>
  16903. <dt><var>preserved</var></dt>
  16904. </dl>
  16905. </dd>
  16906. <dt>&lsquo;<samp>pitchq</samp>&rsquo;</dt>
  16907. <dd><p>Set pitch quality.
  16908. Possible values are:
  16909. </p><dl compact="compact">
  16910. <dt><var>quality</var></dt>
  16911. <dt><var>speed</var></dt>
  16912. <dt><var>consistency</var></dt>
  16913. </dl>
  16914. </dd>
  16915. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  16916. <dd><p>Set channels.
  16917. Possible values are:
  16918. </p><dl compact="compact">
  16919. <dt><var>apart</var></dt>
  16920. <dt><var>together</var></dt>
  16921. </dl>
  16922. </dd>
  16923. </dl>
  16924. <a name="Commands-8"></a>
  16925. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-8">29.82.1 Commands</a></h3>
  16926. <p>This filter supports the following commands:
  16927. </p><dl compact="compact">
  16928. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  16929. <dd><p>Change filter tempo scale factor.
  16930. Syntax for the command is : &quot;<var>tempo</var>&quot;
  16931. </p>
  16932. </dd>
  16933. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  16934. <dd><p>Change filter pitch scale factor.
  16935. Syntax for the command is : &quot;<var>pitch</var>&quot;
  16936. </p></dd>
  16937. </dl>
  16938. <a name="sidechaincompress"></a>
  16939. <h2 class="section"><a href="ffprobe-all.html#toc-sidechaincompress">29.83 sidechaincompress</a></h2>
  16940. <p>This filter acts like normal compressor but has the ability to compress
  16941. detected signal using second input signal.
  16942. It needs two input streams and returns one output stream.
  16943. First input stream will be processed depending on second stream signal.
  16944. The filtered signal then can be filtered with other filters in later stages of
  16945. processing. See <a href="#pan">pan</a> and <a href="#amerge">amerge</a> filter.
  16946. </p>
  16947. <p>The filter accepts the following options:
  16948. </p>
  16949. <dl compact="compact">
  16950. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  16951. <dd><p>Set input gain. Default is 1. Range is between 0.015625 and 64.
  16952. </p>
  16953. </dd>
  16954. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  16955. <dd><p>Set mode of compressor operation. Can be <code>upward</code> or <code>downward</code>.
  16956. Default is <code>downward</code>.
  16957. </p>
  16958. </dd>
  16959. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  16960. <dd><p>If a signal of second stream raises above this level it will affect the gain
  16961. reduction of first stream.
  16962. By default is 0.125. Range is between 0.00097563 and 1.
  16963. </p>
  16964. </dd>
  16965. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  16966. <dd><p>Set a ratio about which the signal is reduced. 1:2 means that if the level
  16967. raised 4dB above the threshold, it will be only 2dB above after the reduction.
  16968. Default is 2. Range is between 1 and 20.
  16969. </p>
  16970. </dd>
  16971. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  16972. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  16973. reduction starts. Default is 20. Range is between 0.01 and 2000.
  16974. </p>
  16975. </dd>
  16976. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  16977. <dd><p>Amount of milliseconds the signal has to fall below the threshold before
  16978. reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
  16979. </p>
  16980. </dd>
  16981. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  16982. <dd><p>Set the amount by how much signal will be amplified after processing.
  16983. Default is 1. Range is from 1 to 64.
  16984. </p>
  16985. </dd>
  16986. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  16987. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  16988. Default is 2.82843. Range is between 1 and 8.
  16989. </p>
  16990. </dd>
  16991. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  16992. <dd><p>Choose if the <code>average</code> level between all channels of side-chain stream
  16993. or the louder(<code>maximum</code>) channel of side-chain stream affects the
  16994. reduction. Default is <code>average</code>.
  16995. </p>
  16996. </dd>
  16997. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  16998. <dd><p>Should the exact signal be taken in case of <code>peak</code> or an RMS one in case
  16999. of <code>rms</code>. Default is <code>rms</code> which is mainly smoother.
  17000. </p>
  17001. </dd>
  17002. <dt>&lsquo;<samp>level_sc</samp>&rsquo;</dt>
  17003. <dd><p>Set sidechain gain. Default is 1. Range is between 0.015625 and 64.
  17004. </p>
  17005. </dd>
  17006. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  17007. <dd><p>How much to use compressed signal in output. Default is 1.
  17008. Range is between 0 and 1.
  17009. </p></dd>
  17010. </dl>
  17011. <a name="Commands-6"></a>
  17012. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-6">29.83.1 Commands</a></h3>
  17013. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  17014. </p>
  17015. <a name="Examples-117"></a>
  17016. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-117">29.83.2 Examples</a></h3>
  17017. <ul>
  17018. <li>
  17019. Full ffmpeg example taking 2 audio inputs, 1st input to be compressed
  17020. depending on the signal of 2nd input and later compressed signal to be
  17021. merged with 2nd input:
  17022. <div class="example">
  17023. <pre class="example">ffmpeg -i main.flac -i sidechain.flac -filter_complex &quot;[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress[compr];[compr][mix]amerge&quot;
  17024. </pre></div>
  17025. </li></ul>
  17026. <a name="sidechaingate"></a>
  17027. <h2 class="section"><a href="ffprobe-all.html#toc-sidechaingate">29.84 sidechaingate</a></h2>
  17028. <p>A sidechain gate acts like a normal (wideband) gate but has the ability to
  17029. filter the detected signal before sending it to the gain reduction stage.
  17030. Normally a gate uses the full range signal to detect a level above the
  17031. threshold.
  17032. For example: If you cut all lower frequencies from your sidechain signal
  17033. the gate will decrease the volume of your track only if not enough highs
  17034. appear. With this technique you are able to reduce the resonation of a
  17035. natural drum or remove &quot;rumbling&quot; of muted strokes from a heavily distorted
  17036. guitar.
  17037. It needs two input streams and returns one output stream.
  17038. First input stream will be processed depending on second stream signal.
  17039. </p>
  17040. <p>The filter accepts the following options:
  17041. </p>
  17042. <dl compact="compact">
  17043. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  17044. <dd><p>Set input level before filtering.
  17045. Default is 1. Allowed range is from 0.015625 to 64.
  17046. </p>
  17047. </dd>
  17048. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  17049. <dd><p>Set the mode of operation. Can be <code>upward</code> or <code>downward</code>.
  17050. Default is <code>downward</code>. If set to <code>upward</code> mode, higher parts of signal
  17051. will be amplified, expanding dynamic range in upward direction.
  17052. Otherwise, in case of <code>downward</code> lower parts of signal will be reduced.
  17053. </p>
  17054. </dd>
  17055. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  17056. <dd><p>Set the level of gain reduction when the signal is below the threshold.
  17057. Default is 0.06125. Allowed range is from 0 to 1.
  17058. Setting this to 0 disables reduction and then filter behaves like expander.
  17059. </p>
  17060. </dd>
  17061. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  17062. <dd><p>If a signal rises above this level the gain reduction is released.
  17063. Default is 0.125. Allowed range is from 0 to 1.
  17064. </p>
  17065. </dd>
  17066. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  17067. <dd><p>Set a ratio about which the signal is reduced.
  17068. Default is 2. Allowed range is from 1 to 9000.
  17069. </p>
  17070. </dd>
  17071. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  17072. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  17073. reduction stops.
  17074. Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
  17075. </p>
  17076. </dd>
  17077. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  17078. <dd><p>Amount of milliseconds the signal has to fall below the threshold before the
  17079. reduction is increased again. Default is 250 milliseconds.
  17080. Allowed range is from 0.01 to 9000.
  17081. </p>
  17082. </dd>
  17083. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  17084. <dd><p>Set amount of amplification of signal after processing.
  17085. Default is 1. Allowed range is from 1 to 64.
  17086. </p>
  17087. </dd>
  17088. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  17089. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  17090. Default is 2.828427125. Allowed range is from 1 to 8.
  17091. </p>
  17092. </dd>
  17093. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  17094. <dd><p>Choose if exact signal should be taken for detection or an RMS like one.
  17095. Default is rms. Can be peak or rms.
  17096. </p>
  17097. </dd>
  17098. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  17099. <dd><p>Choose if the average level between all channels or the louder channel affects
  17100. the reduction.
  17101. Default is average. Can be average or maximum.
  17102. </p>
  17103. </dd>
  17104. <dt>&lsquo;<samp>level_sc</samp>&rsquo;</dt>
  17105. <dd><p>Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
  17106. </p></dd>
  17107. </dl>
  17108. <a name="silencedetect"></a>
  17109. <h2 class="section"><a href="ffprobe-all.html#toc-silencedetect">29.85 silencedetect</a></h2>
  17110. <p>Detect silence in an audio stream.
  17111. </p>
  17112. <p>This filter logs a message when it detects that the input audio volume is less
  17113. or equal to a noise tolerance value for a duration greater or equal to the
  17114. minimum detected noise duration.
  17115. </p>
  17116. <p>The printed times and duration are expressed in seconds. The
  17117. <code>lavfi.silence_start</code> or <code>lavfi.silence_start.X</code> metadata key
  17118. is set on the first frame whose timestamp equals or exceeds the detection
  17119. duration and it contains the timestamp of the first frame of the silence.
  17120. </p>
  17121. <p>The <code>lavfi.silence_duration</code> or <code>lavfi.silence_duration.X</code>
  17122. and <code>lavfi.silence_end</code> or <code>lavfi.silence_end.X</code> metadata
  17123. keys are set on the first frame after the silence. If &lsquo;<samp>mono</samp>&rsquo; is
  17124. enabled, and each channel is evaluated separately, the <code>.X</code>
  17125. suffixed keys are used, and <code>X</code> corresponds to the channel number.
  17126. </p>
  17127. <p>The filter accepts the following options:
  17128. </p>
  17129. <dl compact="compact">
  17130. <dt>&lsquo;<samp>noise, n</samp>&rsquo;</dt>
  17131. <dd><p>Set noise tolerance. Can be specified in dB (in case &quot;dB&quot; is appended to the
  17132. specified value) or amplitude ratio. Default is -60dB, or 0.001.
  17133. </p>
  17134. </dd>
  17135. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  17136. <dd><p>Set silence duration until notification (default is 2 seconds). See
  17137. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  17138. for the accepted syntax.
  17139. </p>
  17140. </dd>
  17141. <dt>&lsquo;<samp>mono, m</samp>&rsquo;</dt>
  17142. <dd><p>Process each channel separately, instead of combined. By default is disabled.
  17143. </p></dd>
  17144. </dl>
  17145. <a name="Examples-20"></a>
  17146. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-20">29.85.1 Examples</a></h3>
  17147. <ul>
  17148. <li>
  17149. Detect 5 seconds of silence with -50dB noise tolerance:
  17150. <div class="example">
  17151. <pre class="example">silencedetect=n=-50dB:d=5
  17152. </pre></div>
  17153. </li><li>
  17154. Complete example with <code>ffmpeg</code> to detect silence with 0.0001 noise
  17155. tolerance in &lsquo;<tt>silence.mp3</tt>&rsquo;:
  17156. <div class="example">
  17157. <pre class="example">ffmpeg -i silence.mp3 -af silencedetect=noise=0.0001 -f null -
  17158. </pre></div>
  17159. </li></ul>
  17160. <a name="silenceremove"></a>
  17161. <h2 class="section"><a href="ffprobe-all.html#toc-silenceremove">29.86 silenceremove</a></h2>
  17162. <p>Remove silence from the beginning, middle or end of the audio.
  17163. </p>
  17164. <p>The filter accepts the following options:
  17165. </p>
  17166. <dl compact="compact">
  17167. <dt>&lsquo;<samp>start_periods</samp>&rsquo;</dt>
  17168. <dd><p>This value is used to indicate if audio should be trimmed at beginning of
  17169. the audio. A value of zero indicates no silence should be trimmed from the
  17170. beginning. When specifying a non-zero value, it trims audio up until it
  17171. finds non-silence. Normally, when trimming silence from beginning of audio
  17172. the <var>start_periods</var> will be <code>1</code> but it can be increased to higher
  17173. values to trim all audio up to specific count of non-silence periods.
  17174. Default value is <code>0</code>.
  17175. </p>
  17176. </dd>
  17177. <dt>&lsquo;<samp>start_duration</samp>&rsquo;</dt>
  17178. <dd><p>Specify the amount of time that non-silence must be detected before it stops
  17179. trimming audio. By increasing the duration, bursts of noises can be treated
  17180. as silence and trimmed off. Default value is <code>0</code>.
  17181. </p>
  17182. </dd>
  17183. <dt>&lsquo;<samp>start_threshold</samp>&rsquo;</dt>
  17184. <dd><p>This indicates what sample value should be treated as silence. For digital
  17185. audio, a value of <code>0</code> may be fine but for audio recorded from analog,
  17186. you may wish to increase the value to account for background noise.
  17187. Can be specified in dB (in case &quot;dB&quot; is appended to the specified value)
  17188. or amplitude ratio. Default value is <code>0</code>.
  17189. </p>
  17190. </dd>
  17191. <dt>&lsquo;<samp>start_silence</samp>&rsquo;</dt>
  17192. <dd><p>Specify max duration of silence at beginning that will be kept after
  17193. trimming. Default is 0, which is equal to trimming all samples detected
  17194. as silence.
  17195. </p>
  17196. </dd>
  17197. <dt>&lsquo;<samp>start_mode</samp>&rsquo;</dt>
  17198. <dd><p>Specify mode of detection of silence end in start of multi-channel audio.
  17199. Can be <var>any</var> or <var>all</var>. Default is <var>any</var>.
  17200. With <var>any</var>, any sample that is detected as non-silence will cause
  17201. stopped trimming of silence.
  17202. With <var>all</var>, only if all channels are detected as non-silence will cause
  17203. stopped trimming of silence.
  17204. </p>
  17205. </dd>
  17206. <dt>&lsquo;<samp>stop_periods</samp>&rsquo;</dt>
  17207. <dd><p>Set the count for trimming silence from the end of audio.
  17208. To remove silence from the middle of a file, specify a <var>stop_periods</var>
  17209. that is negative. This value is then treated as a positive value and is
  17210. used to indicate the effect should restart processing as specified by
  17211. <var>start_periods</var>, making it suitable for removing periods of silence
  17212. in the middle of the audio.
  17213. Default value is <code>0</code>.
  17214. </p>
  17215. </dd>
  17216. <dt>&lsquo;<samp>stop_duration</samp>&rsquo;</dt>
  17217. <dd><p>Specify a duration of silence that must exist before audio is not copied any
  17218. more. By specifying a higher duration, silence that is wanted can be left in
  17219. the audio.
  17220. Default value is <code>0</code>.
  17221. </p>
  17222. </dd>
  17223. <dt>&lsquo;<samp>stop_threshold</samp>&rsquo;</dt>
  17224. <dd><p>This is the same as &lsquo;<samp>start_threshold</samp>&rsquo; but for trimming silence from
  17225. the end of audio.
  17226. Can be specified in dB (in case &quot;dB&quot; is appended to the specified value)
  17227. or amplitude ratio. Default value is <code>0</code>.
  17228. </p>
  17229. </dd>
  17230. <dt>&lsquo;<samp>stop_silence</samp>&rsquo;</dt>
  17231. <dd><p>Specify max duration of silence at end that will be kept after
  17232. trimming. Default is 0, which is equal to trimming all samples detected
  17233. as silence.
  17234. </p>
  17235. </dd>
  17236. <dt>&lsquo;<samp>stop_mode</samp>&rsquo;</dt>
  17237. <dd><p>Specify mode of detection of silence start in end of multi-channel audio.
  17238. Can be <var>any</var> or <var>all</var>. Default is <var>any</var>.
  17239. With <var>any</var>, any sample that is detected as non-silence will cause
  17240. stopped trimming of silence.
  17241. With <var>all</var>, only if all channels are detected as non-silence will cause
  17242. stopped trimming of silence.
  17243. </p>
  17244. </dd>
  17245. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  17246. <dd><p>Set how is silence detected. Can be <code>rms</code> or <code>peak</code>. Second is faster
  17247. and works better with digital silence which is exactly 0.
  17248. Default value is <code>rms</code>.
  17249. </p>
  17250. </dd>
  17251. <dt>&lsquo;<samp>window</samp>&rsquo;</dt>
  17252. <dd><p>Set duration in number of seconds used to calculate size of window in number
  17253. of samples for detecting silence.
  17254. Default value is <code>0.02</code>. Allowed range is from <code>0</code> to <code>10</code>.
  17255. </p></dd>
  17256. </dl>
  17257. <a name="Examples-128"></a>
  17258. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-128">29.86.1 Examples</a></h3>
  17259. <ul>
  17260. <li>
  17261. The following example shows how this filter can be used to start a recording
  17262. that does not contain the delay at the start which usually occurs between
  17263. pressing the record button and the start of the performance:
  17264. <div class="example">
  17265. <pre class="example">silenceremove=start_periods=1:start_duration=5:start_threshold=0.02
  17266. </pre></div>
  17267. </li><li>
  17268. Trim all silence encountered from beginning to end where there is more than 1
  17269. second of silence in audio:
  17270. <div class="example">
  17271. <pre class="example">silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB
  17272. </pre></div>
  17273. </li><li>
  17274. Trim all digital silence samples, using peak detection, from beginning to end
  17275. where there is more than 0 samples of digital silence in audio and digital
  17276. silence is detected in all channels at same positions in stream:
  17277. <div class="example">
  17278. <pre class="example">silenceremove=window=0:detection=peak:stop_mode=all:start_mode=all:stop_periods=-1:stop_threshold=0
  17279. </pre></div>
  17280. </li></ul>
  17281. <a name="sofalizer"></a>
  17282. <h2 class="section"><a href="ffprobe-all.html#toc-sofalizer">29.87 sofalizer</a></h2>
  17283. <p>SOFAlizer uses head-related transfer functions (HRTFs) to create virtual
  17284. loudspeakers around the user for binaural listening via headphones (audio
  17285. formats up to 9 channels supported).
  17286. The HRTFs are stored in SOFA files (see <a href="http://www.sofacoustics.org/">http://www.sofacoustics.org/</a> for a database).
  17287. SOFAlizer is developed at the Acoustics Research Institute (ARI) of the
  17288. Austrian Academy of Sciences.
  17289. </p>
  17290. <p>To enable compilation of this filter you need to configure FFmpeg with
  17291. <code>--enable-libmysofa</code>.
  17292. </p>
  17293. <p>The filter accepts the following options:
  17294. </p>
  17295. <dl compact="compact">
  17296. <dt>&lsquo;<samp>sofa</samp>&rsquo;</dt>
  17297. <dd><p>Set the SOFA file used for rendering.
  17298. </p>
  17299. </dd>
  17300. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  17301. <dd><p>Set gain applied to audio. Value is in dB. Default is 0.
  17302. </p>
  17303. </dd>
  17304. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  17305. <dd><p>Set rotation of virtual loudspeakers in deg. Default is 0.
  17306. </p>
  17307. </dd>
  17308. <dt>&lsquo;<samp>elevation</samp>&rsquo;</dt>
  17309. <dd><p>Set elevation of virtual speakers in deg. Default is 0.
  17310. </p>
  17311. </dd>
  17312. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  17313. <dd><p>Set distance in meters between loudspeakers and the listener with near-field
  17314. HRTFs. Default is 1.
  17315. </p>
  17316. </dd>
  17317. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  17318. <dd><p>Set processing type. Can be <var>time</var> or <var>freq</var>. <var>time</var> is
  17319. processing audio in time domain which is slow.
  17320. <var>freq</var> is processing audio in frequency domain which is fast.
  17321. Default is <var>freq</var>.
  17322. </p>
  17323. </dd>
  17324. <dt>&lsquo;<samp>speakers</samp>&rsquo;</dt>
  17325. <dd><p>Set custom positions of virtual loudspeakers. Syntax for this option is:
  17326. &lt;CH&gt; &lt;AZIM&gt; &lt;ELEV&gt;[|&lt;CH&gt; &lt;AZIM&gt; &lt;ELEV&gt;|...].
  17327. Each virtual loudspeaker is described with short channel name following with
  17328. azimuth and elevation in degrees.
  17329. Each virtual loudspeaker description is separated by &rsquo;|&rsquo;.
  17330. For example to override front left and front right channel positions use:
  17331. &rsquo;speakers=FL 45 15|FR 345 15&rsquo;.
  17332. Descriptions with unrecognised channel names are ignored.
  17333. </p>
  17334. </dd>
  17335. <dt>&lsquo;<samp>lfegain</samp>&rsquo;</dt>
  17336. <dd><p>Set custom gain for LFE channels. Value is in dB. Default is 0.
  17337. </p>
  17338. </dd>
  17339. <dt>&lsquo;<samp>framesize</samp>&rsquo;</dt>
  17340. <dd><p>Set custom frame size in number of samples. Default is 1024.
  17341. Allowed range is from 1024 to 96000. Only used if option &lsquo;<samp>type</samp>&rsquo;
  17342. is set to <var>freq</var>.
  17343. </p>
  17344. </dd>
  17345. <dt>&lsquo;<samp>normalize</samp>&rsquo;</dt>
  17346. <dd><p>Should all IRs be normalized upon importing SOFA file.
  17347. By default is enabled.
  17348. </p>
  17349. </dd>
  17350. <dt>&lsquo;<samp>interpolate</samp>&rsquo;</dt>
  17351. <dd><p>Should nearest IRs be interpolated with neighbor IRs if exact position
  17352. does not match. By default is disabled.
  17353. </p>
  17354. </dd>
  17355. <dt>&lsquo;<samp>minphase</samp>&rsquo;</dt>
  17356. <dd><p>Minphase all IRs upon loading of SOFA file. By default is disabled.
  17357. </p>
  17358. </dd>
  17359. <dt>&lsquo;<samp>anglestep</samp>&rsquo;</dt>
  17360. <dd><p>Set neighbor search angle step. Only used if option <var>interpolate</var> is enabled.
  17361. </p>
  17362. </dd>
  17363. <dt>&lsquo;<samp>radstep</samp>&rsquo;</dt>
  17364. <dd><p>Set neighbor search radius step. Only used if option <var>interpolate</var> is enabled.
  17365. </p></dd>
  17366. </dl>
  17367. <a name="Examples-154"></a>
  17368. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-154">29.87.1 Examples</a></h3>
  17369. <ul>
  17370. <li>
  17371. Using ClubFritz6 sofa file:
  17372. <div class="example">
  17373. <pre class="example">sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=1
  17374. </pre></div>
  17375. </li><li>
  17376. Using ClubFritz12 sofa file and bigger radius with small rotation:
  17377. <div class="example">
  17378. <pre class="example">sofalizer=sofa=/path/to/ClubFritz12.sofa:type=freq:radius=2:rotation=5
  17379. </pre></div>
  17380. </li><li>
  17381. Similar as above but with custom speaker positions for front left, front right, back left and back right
  17382. and also with custom gain:
  17383. <div class="example">
  17384. <pre class="example">&quot;sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=2:speakers=FL 45|FR 315|BL 135|BR 225:gain=28&quot;
  17385. </pre></div>
  17386. </li></ul>
  17387. <a name="stereotools"></a>
  17388. <h2 class="section"><a href="ffprobe-all.html#toc-stereotools">29.88 stereotools</a></h2>
  17389. <p>This filter has some handy utilities to manage stereo signals, for converting
  17390. M/S stereo recordings to L/R signal while having control over the parameters
  17391. or spreading the stereo image of master track.
  17392. </p>
  17393. <p>The filter accepts the following options:
  17394. </p>
  17395. <dl compact="compact">
  17396. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  17397. <dd><p>Set input level before filtering for both channels. Defaults is 1.
  17398. Allowed range is from 0.015625 to 64.
  17399. </p>
  17400. </dd>
  17401. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  17402. <dd><p>Set output level after filtering for both channels. Defaults is 1.
  17403. Allowed range is from 0.015625 to 64.
  17404. </p>
  17405. </dd>
  17406. <dt>&lsquo;<samp>balance_in</samp>&rsquo;</dt>
  17407. <dd><p>Set input balance between both channels. Default is 0.
  17408. Allowed range is from -1 to 1.
  17409. </p>
  17410. </dd>
  17411. <dt>&lsquo;<samp>balance_out</samp>&rsquo;</dt>
  17412. <dd><p>Set output balance between both channels. Default is 0.
  17413. Allowed range is from -1 to 1.
  17414. </p>
  17415. </dd>
  17416. <dt>&lsquo;<samp>softclip</samp>&rsquo;</dt>
  17417. <dd><p>Enable softclipping. Results in analog distortion instead of harsh digital 0dB
  17418. clipping. Disabled by default.
  17419. </p>
  17420. </dd>
  17421. <dt>&lsquo;<samp>mutel</samp>&rsquo;</dt>
  17422. <dd><p>Mute the left channel. Disabled by default.
  17423. </p>
  17424. </dd>
  17425. <dt>&lsquo;<samp>muter</samp>&rsquo;</dt>
  17426. <dd><p>Mute the right channel. Disabled by default.
  17427. </p>
  17428. </dd>
  17429. <dt>&lsquo;<samp>phasel</samp>&rsquo;</dt>
  17430. <dd><p>Change the phase of the left channel. Disabled by default.
  17431. </p>
  17432. </dd>
  17433. <dt>&lsquo;<samp>phaser</samp>&rsquo;</dt>
  17434. <dd><p>Change the phase of the right channel. Disabled by default.
  17435. </p>
  17436. </dd>
  17437. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  17438. <dd><p>Set stereo mode. Available values are:
  17439. </p>
  17440. <dl compact="compact">
  17441. <dt>&lsquo;<samp>lr&gt;lr</samp>&rsquo;</dt>
  17442. <dd><p>Left/Right to Left/Right, this is default.
  17443. </p>
  17444. </dd>
  17445. <dt>&lsquo;<samp>lr&gt;ms</samp>&rsquo;</dt>
  17446. <dd><p>Left/Right to Mid/Side.
  17447. </p>
  17448. </dd>
  17449. <dt>&lsquo;<samp>ms&gt;lr</samp>&rsquo;</dt>
  17450. <dd><p>Mid/Side to Left/Right.
  17451. </p>
  17452. </dd>
  17453. <dt>&lsquo;<samp>lr&gt;ll</samp>&rsquo;</dt>
  17454. <dd><p>Left/Right to Left/Left.
  17455. </p>
  17456. </dd>
  17457. <dt>&lsquo;<samp>lr&gt;rr</samp>&rsquo;</dt>
  17458. <dd><p>Left/Right to Right/Right.
  17459. </p>
  17460. </dd>
  17461. <dt>&lsquo;<samp>lr&gt;l+r</samp>&rsquo;</dt>
  17462. <dd><p>Left/Right to Left + Right.
  17463. </p>
  17464. </dd>
  17465. <dt>&lsquo;<samp>lr&gt;rl</samp>&rsquo;</dt>
  17466. <dd><p>Left/Right to Right/Left.
  17467. </p>
  17468. </dd>
  17469. <dt>&lsquo;<samp>ms&gt;ll</samp>&rsquo;</dt>
  17470. <dd><p>Mid/Side to Left/Left.
  17471. </p>
  17472. </dd>
  17473. <dt>&lsquo;<samp>ms&gt;rr</samp>&rsquo;</dt>
  17474. <dd><p>Mid/Side to Right/Right.
  17475. </p></dd>
  17476. </dl>
  17477. </dd>
  17478. <dt>&lsquo;<samp>slev</samp>&rsquo;</dt>
  17479. <dd><p>Set level of side signal. Default is 1.
  17480. Allowed range is from 0.015625 to 64.
  17481. </p>
  17482. </dd>
  17483. <dt>&lsquo;<samp>sbal</samp>&rsquo;</dt>
  17484. <dd><p>Set balance of side signal. Default is 0.
  17485. Allowed range is from -1 to 1.
  17486. </p>
  17487. </dd>
  17488. <dt>&lsquo;<samp>mlev</samp>&rsquo;</dt>
  17489. <dd><p>Set level of the middle signal. Default is 1.
  17490. Allowed range is from 0.015625 to 64.
  17491. </p>
  17492. </dd>
  17493. <dt>&lsquo;<samp>mpan</samp>&rsquo;</dt>
  17494. <dd><p>Set middle signal pan. Default is 0. Allowed range is from -1 to 1.
  17495. </p>
  17496. </dd>
  17497. <dt>&lsquo;<samp>base</samp>&rsquo;</dt>
  17498. <dd><p>Set stereo base between mono and inversed channels. Default is 0.
  17499. Allowed range is from -1 to 1.
  17500. </p>
  17501. </dd>
  17502. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  17503. <dd><p>Set delay in milliseconds how much to delay left from right channel and
  17504. vice versa. Default is 0. Allowed range is from -20 to 20.
  17505. </p>
  17506. </dd>
  17507. <dt>&lsquo;<samp>sclevel</samp>&rsquo;</dt>
  17508. <dd><p>Set S/C level. Default is 1. Allowed range is from 1 to 100.
  17509. </p>
  17510. </dd>
  17511. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  17512. <dd><p>Set the stereo phase in degrees. Default is 0. Allowed range is from 0 to 360.
  17513. </p>
  17514. </dd>
  17515. <dt>&lsquo;<samp>bmode_in, bmode_out</samp>&rsquo;</dt>
  17516. <dd><p>Set balance mode for balance_in/balance_out option.
  17517. </p>
  17518. <p>Can be one of the following:
  17519. </p>
  17520. <dl compact="compact">
  17521. <dt>&lsquo;<samp>balance</samp>&rsquo;</dt>
  17522. <dd><p>Classic balance mode. Attenuate one channel at time.
  17523. Gain is raised up to 1.
  17524. </p>
  17525. </dd>
  17526. <dt>&lsquo;<samp>amplitude</samp>&rsquo;</dt>
  17527. <dd><p>Similar as classic mode above but gain is raised up to 2.
  17528. </p>
  17529. </dd>
  17530. <dt>&lsquo;<samp>power</samp>&rsquo;</dt>
  17531. <dd><p>Equal power distribution, from -6dB to +6dB range.
  17532. </p></dd>
  17533. </dl>
  17534. </dd>
  17535. </dl>
  17536. <a name="Examples-11"></a>
  17537. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-11">29.88.1 Examples</a></h3>
  17538. <ul>
  17539. <li>
  17540. Apply karaoke like effect:
  17541. <div class="example">
  17542. <pre class="example">stereotools=mlev=0.015625
  17543. </pre></div>
  17544. </li><li>
  17545. Convert M/S signal to L/R:
  17546. <div class="example">
  17547. <pre class="example">&quot;stereotools=mode=ms&gt;lr&quot;
  17548. </pre></div>
  17549. </li></ul>
  17550. <a name="stereowiden"></a>
  17551. <h2 class="section"><a href="ffprobe-all.html#toc-stereowiden">29.89 stereowiden</a></h2>
  17552. <p>This filter enhance the stereo effect by suppressing signal common to both
  17553. channels and by delaying the signal of left into right and vice versa,
  17554. thereby widening the stereo effect.
  17555. </p>
  17556. <p>The filter accepts the following options:
  17557. </p>
  17558. <dl compact="compact">
  17559. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  17560. <dd><p>Time in milliseconds of the delay of left signal into right and vice versa.
  17561. Default is 20 milliseconds.
  17562. </p>
  17563. </dd>
  17564. <dt>&lsquo;<samp>feedback</samp>&rsquo;</dt>
  17565. <dd><p>Amount of gain in delayed signal into right and vice versa. Gives a delay
  17566. effect of left signal in right output and vice versa which gives widening
  17567. effect. Default is 0.3.
  17568. </p>
  17569. </dd>
  17570. <dt>&lsquo;<samp>crossfeed</samp>&rsquo;</dt>
  17571. <dd><p>Cross feed of left into right with inverted phase. This helps in suppressing
  17572. the mono. If the value is 1 it will cancel all the signal common to both
  17573. channels. Default is 0.3.
  17574. </p>
  17575. </dd>
  17576. <dt>&lsquo;<samp>drymix</samp>&rsquo;</dt>
  17577. <dd><p>Set level of input signal of original channel. Default is 0.8.
  17578. </p></dd>
  17579. </dl>
  17580. <a name="Commands-57"></a>
  17581. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-57">29.89.1 Commands</a></h3>
  17582. <p>This filter supports the all above options except <code>delay</code> as <a href="#commands">commands</a>.
  17583. </p>
  17584. <a name="superequalizer"></a>
  17585. <h2 class="section"><a href="ffprobe-all.html#toc-superequalizer">29.90 superequalizer</a></h2>
  17586. <p>Apply 18 band equalizer.
  17587. </p>
  17588. <p>The filter accepts the following options:
  17589. </p><dl compact="compact">
  17590. <dt>&lsquo;<samp>1b</samp>&rsquo;</dt>
  17591. <dd><p>Set 65Hz band gain.
  17592. </p></dd>
  17593. <dt>&lsquo;<samp>2b</samp>&rsquo;</dt>
  17594. <dd><p>Set 92Hz band gain.
  17595. </p></dd>
  17596. <dt>&lsquo;<samp>3b</samp>&rsquo;</dt>
  17597. <dd><p>Set 131Hz band gain.
  17598. </p></dd>
  17599. <dt>&lsquo;<samp>4b</samp>&rsquo;</dt>
  17600. <dd><p>Set 185Hz band gain.
  17601. </p></dd>
  17602. <dt>&lsquo;<samp>5b</samp>&rsquo;</dt>
  17603. <dd><p>Set 262Hz band gain.
  17604. </p></dd>
  17605. <dt>&lsquo;<samp>6b</samp>&rsquo;</dt>
  17606. <dd><p>Set 370Hz band gain.
  17607. </p></dd>
  17608. <dt>&lsquo;<samp>7b</samp>&rsquo;</dt>
  17609. <dd><p>Set 523Hz band gain.
  17610. </p></dd>
  17611. <dt>&lsquo;<samp>8b</samp>&rsquo;</dt>
  17612. <dd><p>Set 740Hz band gain.
  17613. </p></dd>
  17614. <dt>&lsquo;<samp>9b</samp>&rsquo;</dt>
  17615. <dd><p>Set 1047Hz band gain.
  17616. </p></dd>
  17617. <dt>&lsquo;<samp>10b</samp>&rsquo;</dt>
  17618. <dd><p>Set 1480Hz band gain.
  17619. </p></dd>
  17620. <dt>&lsquo;<samp>11b</samp>&rsquo;</dt>
  17621. <dd><p>Set 2093Hz band gain.
  17622. </p></dd>
  17623. <dt>&lsquo;<samp>12b</samp>&rsquo;</dt>
  17624. <dd><p>Set 2960Hz band gain.
  17625. </p></dd>
  17626. <dt>&lsquo;<samp>13b</samp>&rsquo;</dt>
  17627. <dd><p>Set 4186Hz band gain.
  17628. </p></dd>
  17629. <dt>&lsquo;<samp>14b</samp>&rsquo;</dt>
  17630. <dd><p>Set 5920Hz band gain.
  17631. </p></dd>
  17632. <dt>&lsquo;<samp>15b</samp>&rsquo;</dt>
  17633. <dd><p>Set 8372Hz band gain.
  17634. </p></dd>
  17635. <dt>&lsquo;<samp>16b</samp>&rsquo;</dt>
  17636. <dd><p>Set 11840Hz band gain.
  17637. </p></dd>
  17638. <dt>&lsquo;<samp>17b</samp>&rsquo;</dt>
  17639. <dd><p>Set 16744Hz band gain.
  17640. </p></dd>
  17641. <dt>&lsquo;<samp>18b</samp>&rsquo;</dt>
  17642. <dd><p>Set 20000Hz band gain.
  17643. </p></dd>
  17644. </dl>
  17645. <a name="surround"></a>
  17646. <h2 class="section"><a href="ffprobe-all.html#toc-surround">29.91 surround</a></h2>
  17647. <p>Apply audio surround upmix filter.
  17648. </p>
  17649. <p>This filter allows to produce multichannel output from audio stream.
  17650. </p>
  17651. <p>The filter accepts the following options:
  17652. </p>
  17653. <dl compact="compact">
  17654. <dt>&lsquo;<samp>chl_out</samp>&rsquo;</dt>
  17655. <dd><p>Set output channel layout. By default, this is <var>5.1</var>.
  17656. </p>
  17657. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  17658. for the required syntax.
  17659. </p>
  17660. </dd>
  17661. <dt>&lsquo;<samp>chl_in</samp>&rsquo;</dt>
  17662. <dd><p>Set input channel layout. By default, this is <var>stereo</var>.
  17663. </p>
  17664. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  17665. for the required syntax.
  17666. </p>
  17667. </dd>
  17668. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  17669. <dd><p>Set input volume level. By default, this is <var>1</var>.
  17670. </p>
  17671. </dd>
  17672. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  17673. <dd><p>Set output volume level. By default, this is <var>1</var>.
  17674. </p>
  17675. </dd>
  17676. <dt>&lsquo;<samp>lfe</samp>&rsquo;</dt>
  17677. <dd><p>Enable LFE channel output if output channel layout has it. By default, this is enabled.
  17678. </p>
  17679. </dd>
  17680. <dt>&lsquo;<samp>lfe_low</samp>&rsquo;</dt>
  17681. <dd><p>Set LFE low cut off frequency. By default, this is <var>128</var> Hz.
  17682. </p>
  17683. </dd>
  17684. <dt>&lsquo;<samp>lfe_high</samp>&rsquo;</dt>
  17685. <dd><p>Set LFE high cut off frequency. By default, this is <var>256</var> Hz.
  17686. </p>
  17687. </dd>
  17688. <dt>&lsquo;<samp>lfe_mode</samp>&rsquo;</dt>
  17689. <dd><p>Set LFE mode, can be <var>add</var> or <var>sub</var>. Default is <var>add</var>.
  17690. In <var>add</var> mode, LFE channel is created from input audio and added to output.
  17691. In <var>sub</var> mode, LFE channel is created from input audio and added to output but
  17692. also all non-LFE output channels are subtracted with output LFE channel.
  17693. </p>
  17694. </dd>
  17695. <dt>&lsquo;<samp>angle</samp>&rsquo;</dt>
  17696. <dd><p>Set angle of stereo surround transform, Allowed range is from <var>0</var> to <var>360</var>.
  17697. Default is <var>90</var>.
  17698. </p>
  17699. </dd>
  17700. <dt>&lsquo;<samp>fc_in</samp>&rsquo;</dt>
  17701. <dd><p>Set front center input volume. By default, this is <var>1</var>.
  17702. </p>
  17703. </dd>
  17704. <dt>&lsquo;<samp>fc_out</samp>&rsquo;</dt>
  17705. <dd><p>Set front center output volume. By default, this is <var>1</var>.
  17706. </p>
  17707. </dd>
  17708. <dt>&lsquo;<samp>fl_in</samp>&rsquo;</dt>
  17709. <dd><p>Set front left input volume. By default, this is <var>1</var>.
  17710. </p>
  17711. </dd>
  17712. <dt>&lsquo;<samp>fl_out</samp>&rsquo;</dt>
  17713. <dd><p>Set front left output volume. By default, this is <var>1</var>.
  17714. </p>
  17715. </dd>
  17716. <dt>&lsquo;<samp>fr_in</samp>&rsquo;</dt>
  17717. <dd><p>Set front right input volume. By default, this is <var>1</var>.
  17718. </p>
  17719. </dd>
  17720. <dt>&lsquo;<samp>fr_out</samp>&rsquo;</dt>
  17721. <dd><p>Set front right output volume. By default, this is <var>1</var>.
  17722. </p>
  17723. </dd>
  17724. <dt>&lsquo;<samp>sl_in</samp>&rsquo;</dt>
  17725. <dd><p>Set side left input volume. By default, this is <var>1</var>.
  17726. </p>
  17727. </dd>
  17728. <dt>&lsquo;<samp>sl_out</samp>&rsquo;</dt>
  17729. <dd><p>Set side left output volume. By default, this is <var>1</var>.
  17730. </p>
  17731. </dd>
  17732. <dt>&lsquo;<samp>sr_in</samp>&rsquo;</dt>
  17733. <dd><p>Set side right input volume. By default, this is <var>1</var>.
  17734. </p>
  17735. </dd>
  17736. <dt>&lsquo;<samp>sr_out</samp>&rsquo;</dt>
  17737. <dd><p>Set side right output volume. By default, this is <var>1</var>.
  17738. </p>
  17739. </dd>
  17740. <dt>&lsquo;<samp>bl_in</samp>&rsquo;</dt>
  17741. <dd><p>Set back left input volume. By default, this is <var>1</var>.
  17742. </p>
  17743. </dd>
  17744. <dt>&lsquo;<samp>bl_out</samp>&rsquo;</dt>
  17745. <dd><p>Set back left output volume. By default, this is <var>1</var>.
  17746. </p>
  17747. </dd>
  17748. <dt>&lsquo;<samp>br_in</samp>&rsquo;</dt>
  17749. <dd><p>Set back right input volume. By default, this is <var>1</var>.
  17750. </p>
  17751. </dd>
  17752. <dt>&lsquo;<samp>br_out</samp>&rsquo;</dt>
  17753. <dd><p>Set back right output volume. By default, this is <var>1</var>.
  17754. </p>
  17755. </dd>
  17756. <dt>&lsquo;<samp>bc_in</samp>&rsquo;</dt>
  17757. <dd><p>Set back center input volume. By default, this is <var>1</var>.
  17758. </p>
  17759. </dd>
  17760. <dt>&lsquo;<samp>bc_out</samp>&rsquo;</dt>
  17761. <dd><p>Set back center output volume. By default, this is <var>1</var>.
  17762. </p>
  17763. </dd>
  17764. <dt>&lsquo;<samp>lfe_in</samp>&rsquo;</dt>
  17765. <dd><p>Set LFE input volume. By default, this is <var>1</var>.
  17766. </p>
  17767. </dd>
  17768. <dt>&lsquo;<samp>lfe_out</samp>&rsquo;</dt>
  17769. <dd><p>Set LFE output volume. By default, this is <var>1</var>.
  17770. </p>
  17771. </dd>
  17772. <dt>&lsquo;<samp>allx</samp>&rsquo;</dt>
  17773. <dd><p>Set spread usage of stereo image across X axis for all channels.
  17774. </p>
  17775. </dd>
  17776. <dt>&lsquo;<samp>ally</samp>&rsquo;</dt>
  17777. <dd><p>Set spread usage of stereo image across Y axis for all channels.
  17778. </p>
  17779. </dd>
  17780. <dt>&lsquo;<samp>fcx, flx, frx, blx, brx, slx, srx, bcx</samp>&rsquo;</dt>
  17781. <dd><p>Set spread usage of stereo image across X axis for each channel.
  17782. </p>
  17783. </dd>
  17784. <dt>&lsquo;<samp>fcy, fly, fry, bly, bry, sly, sry, bcy</samp>&rsquo;</dt>
  17785. <dd><p>Set spread usage of stereo image across Y axis for each channel.
  17786. </p>
  17787. </dd>
  17788. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  17789. <dd><p>Set window size. Allowed range is from <var>1024</var> to <var>65536</var>. Default size is <var>4096</var>.
  17790. </p>
  17791. </dd>
  17792. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  17793. <dd><p>Set window function.
  17794. </p>
  17795. <p>It accepts the following values:
  17796. </p><dl compact="compact">
  17797. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  17798. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  17799. <dt>&lsquo;<samp>hann, hanning</samp>&rsquo;</dt>
  17800. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  17801. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  17802. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  17803. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  17804. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  17805. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  17806. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  17807. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  17808. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  17809. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  17810. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  17811. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  17812. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  17813. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  17814. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  17815. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  17816. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  17817. </dl>
  17818. <p>Default is <code>hann</code>.
  17819. </p>
  17820. </dd>
  17821. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  17822. <dd><p>Set window overlap. If set to 1, the recommended overlap for selected
  17823. window function will be picked. Default is <code>0.5</code>.
  17824. </p></dd>
  17825. </dl>
  17826. <a name="treble_002c-highshelf"></a>
  17827. <h2 class="section"><a href="ffprobe-all.html#toc-treble_002c-highshelf">29.92 treble, highshelf</a></h2>
  17828. <p>Boost or cut treble (upper) frequencies of the audio using a two-pole
  17829. shelving filter with a response similar to that of a standard
  17830. hi-fi&rsquo;s tone-controls. This is also known as shelving equalisation (EQ).
  17831. </p>
  17832. <p>The filter accepts the following options:
  17833. </p>
  17834. <dl compact="compact">
  17835. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  17836. <dd><p>Give the gain at whichever is the lower of ~22 kHz and the
  17837. Nyquist frequency. Its useful range is about -20 (for a large cut)
  17838. to +20 (for a large boost). Beware of clipping when using a positive gain.
  17839. </p>
  17840. </dd>
  17841. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  17842. <dd><p>Set the filter&rsquo;s central frequency and so can be used
  17843. to extend or reduce the frequency range to be boosted or cut.
  17844. The default value is <code>3000</code> Hz.
  17845. </p>
  17846. </dd>
  17847. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  17848. <dd><p>Set method to specify band-width of filter.
  17849. </p><dl compact="compact">
  17850. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  17851. <dd><p>Hz
  17852. </p></dd>
  17853. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  17854. <dd><p>Q-Factor
  17855. </p></dd>
  17856. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  17857. <dd><p>octave
  17858. </p></dd>
  17859. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  17860. <dd><p>slope
  17861. </p></dd>
  17862. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  17863. <dd><p>kHz
  17864. </p></dd>
  17865. </dl>
  17866. </dd>
  17867. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  17868. <dd><p>Determine how steep is the filter&rsquo;s shelf transition.
  17869. </p>
  17870. </dd>
  17871. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  17872. <dd><p>How much to use filtered signal in output. Default is 1.
  17873. Range is between 0 and 1.
  17874. </p>
  17875. </dd>
  17876. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  17877. <dd><p>Specify which channels to filter, by default all available are filtered.
  17878. </p>
  17879. </dd>
  17880. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  17881. <dd><p>Normalize biquad coefficients, by default is disabled.
  17882. Enabling it will normalize magnitude response at DC to 0dB.
  17883. </p></dd>
  17884. </dl>
  17885. <a name="Commands-7"></a>
  17886. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-7">29.92.1 Commands</a></h3>
  17887. <p>This filter supports the following commands:
  17888. </p><dl compact="compact">
  17889. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  17890. <dd><p>Change treble frequency.
  17891. Syntax for the command is : &quot;<var>frequency</var>&quot;
  17892. </p>
  17893. </dd>
  17894. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  17895. <dd><p>Change treble width_type.
  17896. Syntax for the command is : &quot;<var>width_type</var>&quot;
  17897. </p>
  17898. </dd>
  17899. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  17900. <dd><p>Change treble width.
  17901. Syntax for the command is : &quot;<var>width</var>&quot;
  17902. </p>
  17903. </dd>
  17904. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  17905. <dd><p>Change treble gain.
  17906. Syntax for the command is : &quot;<var>gain</var>&quot;
  17907. </p>
  17908. </dd>
  17909. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  17910. <dd><p>Change treble mix.
  17911. Syntax for the command is : &quot;<var>mix</var>&quot;
  17912. </p></dd>
  17913. </dl>
  17914. <a name="tremolo"></a>
  17915. <h2 class="section"><a href="ffprobe-all.html#toc-tremolo">29.93 tremolo</a></h2>
  17916. <p>Sinusoidal amplitude modulation.
  17917. </p>
  17918. <p>The filter accepts the following options:
  17919. </p>
  17920. <dl compact="compact">
  17921. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  17922. <dd><p>Modulation frequency in Hertz. Modulation frequencies in the subharmonic range
  17923. (20 Hz or lower) will result in a tremolo effect.
  17924. This filter may also be used as a ring modulator by specifying
  17925. a modulation frequency higher than 20 Hz.
  17926. Range is 0.1 - 20000.0. Default value is 5.0 Hz.
  17927. </p>
  17928. </dd>
  17929. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  17930. <dd><p>Depth of modulation as a percentage. Range is 0.0 - 1.0.
  17931. Default value is 0.5.
  17932. </p></dd>
  17933. </dl>
  17934. <a name="vibrato"></a>
  17935. <h2 class="section"><a href="ffprobe-all.html#toc-vibrato">29.94 vibrato</a></h2>
  17936. <p>Sinusoidal phase modulation.
  17937. </p>
  17938. <p>The filter accepts the following options:
  17939. </p>
  17940. <dl compact="compact">
  17941. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  17942. <dd><p>Modulation frequency in Hertz.
  17943. Range is 0.1 - 20000.0. Default value is 5.0 Hz.
  17944. </p>
  17945. </dd>
  17946. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  17947. <dd><p>Depth of modulation as a percentage. Range is 0.0 - 1.0.
  17948. Default value is 0.5.
  17949. </p></dd>
  17950. </dl>
  17951. <a name="volume"></a>
  17952. <h2 class="section"><a href="ffprobe-all.html#toc-volume">29.95 volume</a></h2>
  17953. <p>Adjust the input audio volume.
  17954. </p>
  17955. <p>It accepts the following parameters:
  17956. </p><dl compact="compact">
  17957. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  17958. <dd><p>Set audio volume expression.
  17959. </p>
  17960. <p>Output values are clipped to the maximum value.
  17961. </p>
  17962. <p>The output audio volume is given by the relation:
  17963. </p><div class="example">
  17964. <pre class="example"><var>output_volume</var> = <var>volume</var> * <var>input_volume</var>
  17965. </pre></div>
  17966. <p>The default value for <var>volume</var> is &quot;1.0&quot;.
  17967. </p>
  17968. </dd>
  17969. <dt>&lsquo;<samp>precision</samp>&rsquo;</dt>
  17970. <dd><p>This parameter represents the mathematical precision.
  17971. </p>
  17972. <p>It determines which input sample formats will be allowed, which affects the
  17973. precision of the volume scaling.
  17974. </p>
  17975. <dl compact="compact">
  17976. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  17977. <dd><p>8-bit fixed-point; this limits input sample format to U8, S16, and S32.
  17978. </p></dd>
  17979. <dt>&lsquo;<samp>float</samp>&rsquo;</dt>
  17980. <dd><p>32-bit floating-point; this limits input sample format to FLT. (default)
  17981. </p></dd>
  17982. <dt>&lsquo;<samp>double</samp>&rsquo;</dt>
  17983. <dd><p>64-bit floating-point; this limits input sample format to DBL.
  17984. </p></dd>
  17985. </dl>
  17986. </dd>
  17987. <dt>&lsquo;<samp>replaygain</samp>&rsquo;</dt>
  17988. <dd><p>Choose the behaviour on encountering ReplayGain side data in input frames.
  17989. </p>
  17990. <dl compact="compact">
  17991. <dt>&lsquo;<samp>drop</samp>&rsquo;</dt>
  17992. <dd><p>Remove ReplayGain side data, ignoring its contents (the default).
  17993. </p>
  17994. </dd>
  17995. <dt>&lsquo;<samp>ignore</samp>&rsquo;</dt>
  17996. <dd><p>Ignore ReplayGain side data, but leave it in the frame.
  17997. </p>
  17998. </dd>
  17999. <dt>&lsquo;<samp>track</samp>&rsquo;</dt>
  18000. <dd><p>Prefer the track gain, if present.
  18001. </p>
  18002. </dd>
  18003. <dt>&lsquo;<samp>album</samp>&rsquo;</dt>
  18004. <dd><p>Prefer the album gain, if present.
  18005. </p></dd>
  18006. </dl>
  18007. </dd>
  18008. <dt>&lsquo;<samp>replaygain_preamp</samp>&rsquo;</dt>
  18009. <dd><p>Pre-amplification gain in dB to apply to the selected replaygain gain.
  18010. </p>
  18011. <p>Default value for <var>replaygain_preamp</var> is 0.0.
  18012. </p>
  18013. </dd>
  18014. <dt>&lsquo;<samp>replaygain_noclip</samp>&rsquo;</dt>
  18015. <dd><p>Prevent clipping by limiting the gain applied.
  18016. </p>
  18017. <p>Default value for <var>replaygain_noclip</var> is 1.
  18018. </p>
  18019. </dd>
  18020. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  18021. <dd><p>Set when the volume expression is evaluated.
  18022. </p>
  18023. <p>It accepts the following values:
  18024. </p><dl compact="compact">
  18025. <dt>&lsquo;<samp>once</samp>&rsquo;</dt>
  18026. <dd><p>only evaluate expression once during the filter initialization, or
  18027. when the &lsquo;<samp>volume</samp>&rsquo; command is sent
  18028. </p>
  18029. </dd>
  18030. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  18031. <dd><p>evaluate expression for each incoming frame
  18032. </p></dd>
  18033. </dl>
  18034. <p>Default value is &lsquo;<samp>once</samp>&rsquo;.
  18035. </p></dd>
  18036. </dl>
  18037. <p>The volume expression can contain the following parameters.
  18038. </p>
  18039. <dl compact="compact">
  18040. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  18041. <dd><p>frame number (starting at zero)
  18042. </p></dd>
  18043. <dt>&lsquo;<samp>nb_channels</samp>&rsquo;</dt>
  18044. <dd><p>number of channels
  18045. </p></dd>
  18046. <dt>&lsquo;<samp>nb_consumed_samples</samp>&rsquo;</dt>
  18047. <dd><p>number of samples consumed by the filter
  18048. </p></dd>
  18049. <dt>&lsquo;<samp>nb_samples</samp>&rsquo;</dt>
  18050. <dd><p>number of samples in the current frame
  18051. </p></dd>
  18052. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  18053. <dd><p>original frame position in the file
  18054. </p></dd>
  18055. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  18056. <dd><p>frame PTS
  18057. </p></dd>
  18058. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  18059. <dd><p>sample rate
  18060. </p></dd>
  18061. <dt>&lsquo;<samp>startpts</samp>&rsquo;</dt>
  18062. <dd><p>PTS at start of stream
  18063. </p></dd>
  18064. <dt>&lsquo;<samp>startt</samp>&rsquo;</dt>
  18065. <dd><p>time at start of stream
  18066. </p></dd>
  18067. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  18068. <dd><p>frame time
  18069. </p></dd>
  18070. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  18071. <dd><p>timestamp timebase
  18072. </p></dd>
  18073. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  18074. <dd><p>last set volume value
  18075. </p></dd>
  18076. </dl>
  18077. <p>Note that when &lsquo;<samp>eval</samp>&rsquo; is set to &lsquo;<samp>once</samp>&rsquo; only the
  18078. <var>sample_rate</var> and <var>tb</var> variables are available, all other
  18079. variables will evaluate to NAN.
  18080. </p>
  18081. <a name="Commands-4"></a>
  18082. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-4">29.95.1 Commands</a></h3>
  18083. <p>This filter supports the following commands:
  18084. </p><dl compact="compact">
  18085. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  18086. <dd><p>Modify the volume expression.
  18087. The command accepts the same syntax of the corresponding option.
  18088. </p>
  18089. <p>If the specified expression is not valid, it is kept at its current
  18090. value.
  18091. </p></dd>
  18092. </dl>
  18093. <a name="Examples-140"></a>
  18094. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-140">29.95.2 Examples</a></h3>
  18095. <ul>
  18096. <li>
  18097. Halve the input audio volume:
  18098. <div class="example">
  18099. <pre class="example">volume=volume=0.5
  18100. volume=volume=1/2
  18101. volume=volume=-6.0206dB
  18102. </pre></div>
  18103. <p>In all the above example the named key for &lsquo;<samp>volume</samp>&rsquo; can be
  18104. omitted, for example like in:
  18105. </p><div class="example">
  18106. <pre class="example">volume=0.5
  18107. </pre></div>
  18108. </li><li>
  18109. Increase input audio power by 6 decibels using fixed-point precision:
  18110. <div class="example">
  18111. <pre class="example">volume=volume=6dB:precision=fixed
  18112. </pre></div>
  18113. </li><li>
  18114. Fade volume after time 10 with an annihilation period of 5 seconds:
  18115. <div class="example">
  18116. <pre class="example">volume='if(lt(t,10),1,max(1-(t-10)/5,0))':eval=frame
  18117. </pre></div>
  18118. </li></ul>
  18119. <a name="volumedetect"></a>
  18120. <h2 class="section"><a href="ffprobe-all.html#toc-volumedetect">29.96 volumedetect</a></h2>
  18121. <p>Detect the volume of the input video.
  18122. </p>
  18123. <p>The filter has no parameters. The input is not modified. Statistics about
  18124. the volume will be printed in the log when the input stream end is reached.
  18125. </p>
  18126. <p>In particular it will show the mean volume (root mean square), maximum
  18127. volume (on a per-sample basis), and the beginning of a histogram of the
  18128. registered volume values (from the maximum value to a cumulated 1/1000 of
  18129. the samples).
  18130. </p>
  18131. <p>All volumes are in decibels relative to the maximum PCM value.
  18132. </p>
  18133. <a name="Examples-26"></a>
  18134. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-26">29.96.1 Examples</a></h3>
  18135. <p>Here is an excerpt of the output:
  18136. </p><div class="example">
  18137. <pre class="example">[Parsed_volumedetect_0 &nbsp;0xa23120] mean_volume: -27 dB
  18138. [Parsed_volumedetect_0 &nbsp;0xa23120] max_volume: -4 dB
  18139. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_4db: 6
  18140. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_5db: 62
  18141. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_6db: 286
  18142. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_7db: 1042
  18143. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_8db: 2551
  18144. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_9db: 4609
  18145. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_10db: 8409
  18146. </pre></div>
  18147. <p>It means that:
  18148. </p><ul>
  18149. <li>
  18150. The mean square energy is approximately -27 dB, or 10^-2.7.
  18151. </li><li>
  18152. The largest sample is at -4 dB, or more precisely between -4 dB and -5 dB.
  18153. </li><li>
  18154. There are 6 samples at -4 dB, 62 at -5 dB, 286 at -6 dB, etc.
  18155. </li></ul>
  18156. <p>In other words, raising the volume by +4 dB does not cause any clipping,
  18157. raising it by +5 dB causes clipping for 6 samples, etc.
  18158. </p>
  18159. <a name="Audio-Sources"></a>
  18160. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Sources">30 Audio Sources</a></h1>
  18161. <p>Below is a description of the currently available audio sources.
  18162. </p>
  18163. <a name="abuffer"></a>
  18164. <h2 class="section"><a href="ffprobe-all.html#toc-abuffer">30.1 abuffer</a></h2>
  18165. <p>Buffer audio frames, and make them available to the filter chain.
  18166. </p>
  18167. <p>This source is mainly intended for a programmatic use, in particular
  18168. through the interface defined in &lsquo;<tt>libavfilter/asrc_abuffer.h</tt>&rsquo;.
  18169. </p>
  18170. <p>It accepts the following parameters:
  18171. </p><dl compact="compact">
  18172. <dt>&lsquo;<samp>time_base</samp>&rsquo;</dt>
  18173. <dd><p>The timebase which will be used for timestamps of submitted frames. It must be
  18174. either a floating-point number or in <var>numerator</var>/<var>denominator</var> form.
  18175. </p>
  18176. </dd>
  18177. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  18178. <dd><p>The sample rate of the incoming audio buffers.
  18179. </p>
  18180. </dd>
  18181. <dt>&lsquo;<samp>sample_fmt</samp>&rsquo;</dt>
  18182. <dd><p>The sample format of the incoming audio buffers.
  18183. Either a sample format name or its corresponding integer representation from
  18184. the enum AVSampleFormat in &lsquo;<tt>libavutil/samplefmt.h</tt>&rsquo;
  18185. </p>
  18186. </dd>
  18187. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  18188. <dd><p>The channel layout of the incoming audio buffers.
  18189. Either a channel layout name from channel_layout_map in
  18190. &lsquo;<tt>libavutil/channel_layout.c</tt>&rsquo; or its corresponding integer representation
  18191. from the AV_CH_LAYOUT_* macros in &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;
  18192. </p>
  18193. </dd>
  18194. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  18195. <dd><p>The number of channels of the incoming audio buffers.
  18196. If both <var>channels</var> and <var>channel_layout</var> are specified, then they
  18197. must be consistent.
  18198. </p>
  18199. </dd>
  18200. </dl>
  18201. <a name="Examples-116"></a>
  18202. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-116">30.1.1 Examples</a></h3>
  18203. <div class="example">
  18204. <pre class="example">abuffer=sample_rate=44100:sample_fmt=s16p:channel_layout=stereo
  18205. </pre></div>
  18206. <p>will instruct the source to accept planar 16bit signed stereo at 44100Hz.
  18207. Since the sample format with name &quot;s16p&quot; corresponds to the number
  18208. 6 and the &quot;stereo&quot; channel layout corresponds to the value 0x3, this is
  18209. equivalent to:
  18210. </p><div class="example">
  18211. <pre class="example">abuffer=sample_rate=44100:sample_fmt=6:channel_layout=0x3
  18212. </pre></div>
  18213. <a name="aevalsrc"></a>
  18214. <h2 class="section"><a href="ffprobe-all.html#toc-aevalsrc">30.2 aevalsrc</a></h2>
  18215. <p>Generate an audio signal specified by an expression.
  18216. </p>
  18217. <p>This source accepts in input one or more expressions (one for each
  18218. channel), which are evaluated and used to generate a corresponding
  18219. audio signal.
  18220. </p>
  18221. <p>This source accepts the following options:
  18222. </p>
  18223. <dl compact="compact">
  18224. <dt>&lsquo;<samp>exprs</samp>&rsquo;</dt>
  18225. <dd><p>Set the &rsquo;|&rsquo;-separated expressions list for each separate channel. In case the
  18226. &lsquo;<samp>channel_layout</samp>&rsquo; option is not specified, the selected channel layout
  18227. depends on the number of provided expressions. Otherwise the last
  18228. specified expression is applied to the remaining output channels.
  18229. </p>
  18230. </dd>
  18231. <dt>&lsquo;<samp>channel_layout, c</samp>&rsquo;</dt>
  18232. <dd><p>Set the channel layout. The number of channels in the specified layout
  18233. must be equal to the number of specified expressions.
  18234. </p>
  18235. </dd>
  18236. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18237. <dd><p>Set the minimum duration of the sourced audio. See
  18238. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  18239. for the accepted syntax.
  18240. Note that the resulting duration may be greater than the specified
  18241. duration, as the generated audio is always cut at the end of a
  18242. complete frame.
  18243. </p>
  18244. <p>If not specified, or the expressed duration is negative, the audio is
  18245. supposed to be generated forever.
  18246. </p>
  18247. </dd>
  18248. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18249. <dd><p>Set the number of samples per channel per each output frame,
  18250. default to 1024.
  18251. </p>
  18252. </dd>
  18253. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  18254. <dd><p>Specify the sample rate, default to 44100.
  18255. </p></dd>
  18256. </dl>
  18257. <p>Each expression in <var>exprs</var> can contain the following constants:
  18258. </p>
  18259. <dl compact="compact">
  18260. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  18261. <dd><p>number of the evaluated sample, starting from 0
  18262. </p>
  18263. </dd>
  18264. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  18265. <dd><p>time of the evaluated sample expressed in seconds, starting from 0
  18266. </p>
  18267. </dd>
  18268. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  18269. <dd><p>sample rate
  18270. </p>
  18271. </dd>
  18272. </dl>
  18273. <a name="Examples-57"></a>
  18274. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-57">30.2.1 Examples</a></h3>
  18275. <ul>
  18276. <li>
  18277. Generate silence:
  18278. <div class="example">
  18279. <pre class="example">aevalsrc=0
  18280. </pre></div>
  18281. </li><li>
  18282. Generate a sin signal with frequency of 440 Hz, set sample rate to
  18283. 8000 Hz:
  18284. <div class="example">
  18285. <pre class="example">aevalsrc=&quot;sin(440*2*PI*t):s=8000&quot;
  18286. </pre></div>
  18287. </li><li>
  18288. Generate a two channels signal, specify the channel layout (Front
  18289. Center + Back Center) explicitly:
  18290. <div class="example">
  18291. <pre class="example">aevalsrc=&quot;sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC&quot;
  18292. </pre></div>
  18293. </li><li>
  18294. Generate white noise:
  18295. <div class="example">
  18296. <pre class="example">aevalsrc=&quot;-2+random(0)&quot;
  18297. </pre></div>
  18298. </li><li>
  18299. Generate an amplitude modulated signal:
  18300. <div class="example">
  18301. <pre class="example">aevalsrc=&quot;sin(10*2*PI*t)*sin(880*2*PI*t)&quot;
  18302. </pre></div>
  18303. </li><li>
  18304. Generate 2.5 Hz binaural beats on a 360 Hz carrier:
  18305. <div class="example">
  18306. <pre class="example">aevalsrc=&quot;0.1*sin(2*PI*(360-2.5/2)*t) | 0.1*sin(2*PI*(360+2.5/2)*t)&quot;
  18307. </pre></div>
  18308. </li></ul>
  18309. <a name="afirsrc"></a>
  18310. <h2 class="section"><a href="ffprobe-all.html#toc-afirsrc">30.3 afirsrc</a></h2>
  18311. <p>Generate a FIR coefficients using frequency sampling method.
  18312. </p>
  18313. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for filtering the audio signal.
  18314. </p>
  18315. <p>The filter accepts the following options:
  18316. </p>
  18317. <dl compact="compact">
  18318. <dt>&lsquo;<samp>taps, t</samp>&rsquo;</dt>
  18319. <dd><p>Set number of filter coefficents in output audio stream.
  18320. Default value is 1025.
  18321. </p>
  18322. </dd>
  18323. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  18324. <dd><p>Set frequency points from where magnitude and phase are set.
  18325. This must be in non decreasing order, and first element must be 0, while last element
  18326. must be 1. Elements are separated by white spaces.
  18327. </p>
  18328. </dd>
  18329. <dt>&lsquo;<samp>magnitude, m</samp>&rsquo;</dt>
  18330. <dd><p>Set magnitude value for every frequency point set by &lsquo;<samp>frequency</samp>&rsquo;.
  18331. Number of values must be same as number of frequency points.
  18332. Values are separated by white spaces.
  18333. </p>
  18334. </dd>
  18335. <dt>&lsquo;<samp>phase, p</samp>&rsquo;</dt>
  18336. <dd><p>Set phase value for every frequency point set by &lsquo;<samp>frequency</samp>&rsquo;.
  18337. Number of values must be same as number of frequency points.
  18338. Values are separated by white spaces.
  18339. </p>
  18340. </dd>
  18341. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18342. <dd><p>Set sample rate, default is 44100.
  18343. </p>
  18344. </dd>
  18345. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18346. <dd><p>Set number of samples per each frame. Default is 1024.
  18347. </p>
  18348. </dd>
  18349. <dt>&lsquo;<samp>win_func, w</samp>&rsquo;</dt>
  18350. <dd><p>Set window function. Default is blackman.
  18351. </p></dd>
  18352. </dl>
  18353. <a name="anullsrc"></a>
  18354. <h2 class="section"><a href="ffprobe-all.html#toc-anullsrc">30.4 anullsrc</a></h2>
  18355. <p>The null audio source, return unprocessed audio frames. It is mainly useful
  18356. as a template and to be employed in analysis / debugging tools, or as
  18357. the source for filters which ignore the input data (for example the sox
  18358. synth filter).
  18359. </p>
  18360. <p>This source accepts the following options:
  18361. </p>
  18362. <dl compact="compact">
  18363. <dt>&lsquo;<samp>channel_layout, cl</samp>&rsquo;</dt>
  18364. <dd>
  18365. <p>Specifies the channel layout, and can be either an integer or a string
  18366. representing a channel layout. The default value of <var>channel_layout</var>
  18367. is &quot;stereo&quot;.
  18368. </p>
  18369. <p>Check the channel_layout_map definition in
  18370. &lsquo;<tt>libavutil/channel_layout.c</tt>&rsquo; for the mapping between strings and
  18371. channel layout values.
  18372. </p>
  18373. </dd>
  18374. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18375. <dd><p>Specifies the sample rate, and defaults to 44100.
  18376. </p>
  18377. </dd>
  18378. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18379. <dd><p>Set the number of samples per requested frames.
  18380. </p>
  18381. </dd>
  18382. </dl>
  18383. <a name="Examples-34"></a>
  18384. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-34">30.4.1 Examples</a></h3>
  18385. <ul>
  18386. <li>
  18387. Set the sample rate to 48000 Hz and the channel layout to AV_CH_LAYOUT_MONO.
  18388. <div class="example">
  18389. <pre class="example">anullsrc=r=48000:cl=4
  18390. </pre></div>
  18391. </li><li>
  18392. Do the same operation with a more obvious syntax:
  18393. <div class="example">
  18394. <pre class="example">anullsrc=r=48000:cl=mono
  18395. </pre></div>
  18396. </li></ul>
  18397. <p>All the parameters need to be explicitly defined.
  18398. </p>
  18399. <a name="flite"></a>
  18400. <h2 class="section"><a href="ffprobe-all.html#toc-flite">30.5 flite</a></h2>
  18401. <p>Synthesize a voice utterance using the libflite library.
  18402. </p>
  18403. <p>To enable compilation of this filter you need to configure FFmpeg with
  18404. <code>--enable-libflite</code>.
  18405. </p>
  18406. <p>Note that versions of the flite library prior to 2.0 are not thread-safe.
  18407. </p>
  18408. <p>The filter accepts the following options:
  18409. </p>
  18410. <dl compact="compact">
  18411. <dt>&lsquo;<samp>list_voices</samp>&rsquo;</dt>
  18412. <dd><p>If set to 1, list the names of the available voices and exit
  18413. immediately. Default value is 0.
  18414. </p>
  18415. </dd>
  18416. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18417. <dd><p>Set the maximum number of samples per frame. Default value is 512.
  18418. </p>
  18419. </dd>
  18420. <dt>&lsquo;<samp>textfile</samp>&rsquo;</dt>
  18421. <dd><p>Set the filename containing the text to speak.
  18422. </p>
  18423. </dd>
  18424. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  18425. <dd><p>Set the text to speak.
  18426. </p>
  18427. </dd>
  18428. <dt>&lsquo;<samp>voice, v</samp>&rsquo;</dt>
  18429. <dd><p>Set the voice to use for the speech synthesis. Default value is
  18430. <code>kal</code>. See also the <var>list_voices</var> option.
  18431. </p></dd>
  18432. </dl>
  18433. <a name="Examples-23"></a>
  18434. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-23">30.5.1 Examples</a></h3>
  18435. <ul>
  18436. <li>
  18437. Read from file &lsquo;<tt>speech.txt</tt>&rsquo;, and synthesize the text using the
  18438. standard flite voice:
  18439. <div class="example">
  18440. <pre class="example">flite=textfile=speech.txt
  18441. </pre></div>
  18442. </li><li>
  18443. Read the specified text selecting the <code>slt</code> voice:
  18444. <div class="example">
  18445. <pre class="example">flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt
  18446. </pre></div>
  18447. </li><li>
  18448. Input text to ffmpeg:
  18449. <div class="example">
  18450. <pre class="example">ffmpeg -f lavfi -i flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt
  18451. </pre></div>
  18452. </li><li>
  18453. Make &lsquo;<tt>ffplay</tt>&rsquo; speak the specified text, using <code>flite</code> and
  18454. the <code>lavfi</code> device:
  18455. <div class="example">
  18456. <pre class="example">ffplay -f lavfi flite=text='No more be grieved for which that thou hast done.'
  18457. </pre></div>
  18458. </li></ul>
  18459. <p>For more information about libflite, check:
  18460. <a href="http://www.festvox.org/flite/">http://www.festvox.org/flite/</a>
  18461. </p>
  18462. <a name="anoisesrc"></a>
  18463. <h2 class="section"><a href="ffprobe-all.html#toc-anoisesrc">30.6 anoisesrc</a></h2>
  18464. <p>Generate a noise audio signal.
  18465. </p>
  18466. <p>The filter accepts the following options:
  18467. </p>
  18468. <dl compact="compact">
  18469. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18470. <dd><p>Specify the sample rate. Default value is 48000 Hz.
  18471. </p>
  18472. </dd>
  18473. <dt>&lsquo;<samp>amplitude, a</samp>&rsquo;</dt>
  18474. <dd><p>Specify the amplitude (0.0 - 1.0) of the generated audio stream. Default value
  18475. is 1.0.
  18476. </p>
  18477. </dd>
  18478. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18479. <dd><p>Specify the duration of the generated audio stream. Not specifying this option
  18480. results in noise with an infinite length.
  18481. </p>
  18482. </dd>
  18483. <dt>&lsquo;<samp>color, colour, c</samp>&rsquo;</dt>
  18484. <dd><p>Specify the color of noise. Available noise colors are white, pink, brown,
  18485. blue, violet and velvet. Default color is white.
  18486. </p>
  18487. </dd>
  18488. <dt>&lsquo;<samp>seed, s</samp>&rsquo;</dt>
  18489. <dd><p>Specify a value used to seed the PRNG.
  18490. </p>
  18491. </dd>
  18492. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18493. <dd><p>Set the number of samples per each output frame, default is 1024.
  18494. </p></dd>
  18495. </dl>
  18496. <a name="Examples-17"></a>
  18497. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-17">30.6.1 Examples</a></h3>
  18498. <ul>
  18499. <li>
  18500. Generate 60 seconds of pink noise, with a 44.1 kHz sampling rate and an amplitude of 0.5:
  18501. <div class="example">
  18502. <pre class="example">anoisesrc=d=60:c=pink:r=44100:a=0.5
  18503. </pre></div>
  18504. </li></ul>
  18505. <a name="hilbert"></a>
  18506. <h2 class="section"><a href="ffprobe-all.html#toc-hilbert">30.7 hilbert</a></h2>
  18507. <p>Generate odd-tap Hilbert transform FIR coefficients.
  18508. </p>
  18509. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for phase-shifting
  18510. the signal by 90 degrees.
  18511. </p>
  18512. <p>This is used in many matrix coding schemes and for analytic signal generation.
  18513. The process is often written as a multiplication by i (or j), the imaginary unit.
  18514. </p>
  18515. <p>The filter accepts the following options:
  18516. </p>
  18517. <dl compact="compact">
  18518. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  18519. <dd><p>Set sample rate, default is 44100.
  18520. </p>
  18521. </dd>
  18522. <dt>&lsquo;<samp>taps, t</samp>&rsquo;</dt>
  18523. <dd><p>Set length of FIR filter, default is 22051.
  18524. </p>
  18525. </dd>
  18526. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18527. <dd><p>Set number of samples per each frame.
  18528. </p>
  18529. </dd>
  18530. <dt>&lsquo;<samp>win_func, w</samp>&rsquo;</dt>
  18531. <dd><p>Set window function to be used when generating FIR coefficients.
  18532. </p></dd>
  18533. </dl>
  18534. <a name="sinc"></a>
  18535. <h2 class="section"><a href="ffprobe-all.html#toc-sinc">30.8 sinc</a></h2>
  18536. <p>Generate a sinc kaiser-windowed low-pass, high-pass, band-pass, or band-reject FIR coefficients.
  18537. </p>
  18538. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for filtering the audio signal.
  18539. </p>
  18540. <p>The filter accepts the following options:
  18541. </p>
  18542. <dl compact="compact">
  18543. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18544. <dd><p>Set sample rate, default is 44100.
  18545. </p>
  18546. </dd>
  18547. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18548. <dd><p>Set number of samples per each frame. Default is 1024.
  18549. </p>
  18550. </dd>
  18551. <dt>&lsquo;<samp>hp</samp>&rsquo;</dt>
  18552. <dd><p>Set high-pass frequency. Default is 0.
  18553. </p>
  18554. </dd>
  18555. <dt>&lsquo;<samp>lp</samp>&rsquo;</dt>
  18556. <dd><p>Set low-pass frequency. Default is 0.
  18557. If high-pass frequency is lower than low-pass frequency and low-pass frequency
  18558. is higher than 0 then filter will create band-pass filter coefficients,
  18559. otherwise band-reject filter coefficients.
  18560. </p>
  18561. </dd>
  18562. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  18563. <dd><p>Set filter phase response. Default is 50. Allowed range is from 0 to 100.
  18564. </p>
  18565. </dd>
  18566. <dt>&lsquo;<samp>beta</samp>&rsquo;</dt>
  18567. <dd><p>Set Kaiser window beta.
  18568. </p>
  18569. </dd>
  18570. <dt>&lsquo;<samp>att</samp>&rsquo;</dt>
  18571. <dd><p>Set stop-band attenuation. Default is 120dB, allowed range is from 40 to 180 dB.
  18572. </p>
  18573. </dd>
  18574. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  18575. <dd><p>Enable rounding, by default is disabled.
  18576. </p>
  18577. </dd>
  18578. <dt>&lsquo;<samp>hptaps</samp>&rsquo;</dt>
  18579. <dd><p>Set number of taps for high-pass filter.
  18580. </p>
  18581. </dd>
  18582. <dt>&lsquo;<samp>lptaps</samp>&rsquo;</dt>
  18583. <dd><p>Set number of taps for low-pass filter.
  18584. </p></dd>
  18585. </dl>
  18586. <a name="sine"></a>
  18587. <h2 class="section"><a href="ffprobe-all.html#toc-sine">30.9 sine</a></h2>
  18588. <p>Generate an audio signal made of a sine wave with amplitude 1/8.
  18589. </p>
  18590. <p>The audio signal is bit-exact.
  18591. </p>
  18592. <p>The filter accepts the following options:
  18593. </p>
  18594. <dl compact="compact">
  18595. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  18596. <dd><p>Set the carrier frequency. Default is 440 Hz.
  18597. </p>
  18598. </dd>
  18599. <dt>&lsquo;<samp>beep_factor, b</samp>&rsquo;</dt>
  18600. <dd><p>Enable a periodic beep every second with frequency <var>beep_factor</var> times
  18601. the carrier frequency. Default is 0, meaning the beep is disabled.
  18602. </p>
  18603. </dd>
  18604. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18605. <dd><p>Specify the sample rate, default is 44100.
  18606. </p>
  18607. </dd>
  18608. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18609. <dd><p>Specify the duration of the generated audio stream.
  18610. </p>
  18611. </dd>
  18612. <dt>&lsquo;<samp>samples_per_frame</samp>&rsquo;</dt>
  18613. <dd><p>Set the number of samples per output frame.
  18614. </p>
  18615. <p>The expression can contain the following constants:
  18616. </p>
  18617. <dl compact="compact">
  18618. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  18619. <dd><p>The (sequential) number of the output audio frame, starting from 0.
  18620. </p>
  18621. </dd>
  18622. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  18623. <dd><p>The PTS (Presentation TimeStamp) of the output audio frame,
  18624. expressed in <var>TB</var> units.
  18625. </p>
  18626. </dd>
  18627. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  18628. <dd><p>The PTS of the output audio frame, expressed in seconds.
  18629. </p>
  18630. </dd>
  18631. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  18632. <dd><p>The timebase of the output audio frames.
  18633. </p></dd>
  18634. </dl>
  18635. <p>Default is <code>1024</code>.
  18636. </p></dd>
  18637. </dl>
  18638. <a name="Examples-77"></a>
  18639. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-77">30.9.1 Examples</a></h3>
  18640. <ul>
  18641. <li>
  18642. Generate a simple 440 Hz sine wave:
  18643. <div class="example">
  18644. <pre class="example">sine
  18645. </pre></div>
  18646. </li><li>
  18647. Generate a 220 Hz sine wave with a 880 Hz beep each second, for 5 seconds:
  18648. <div class="example">
  18649. <pre class="example">sine=220:4:d=5
  18650. sine=f=220:b=4:d=5
  18651. sine=frequency=220:beep_factor=4:duration=5
  18652. </pre></div>
  18653. </li><li>
  18654. Generate a 1 kHz sine wave following <code>1602,1601,1602,1601,1602</code> NTSC
  18655. pattern:
  18656. <div class="example">
  18657. <pre class="example">sine=1000:samples_per_frame='st(0,mod(n,5)); 1602-not(not(eq(ld(0),1)+eq(ld(0),3)))'
  18658. </pre></div>
  18659. </li></ul>
  18660. <a name="Audio-Sinks"></a>
  18661. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Sinks">31 Audio Sinks</a></h1>
  18662. <p>Below is a description of the currently available audio sinks.
  18663. </p>
  18664. <a name="abuffersink"></a>
  18665. <h2 class="section"><a href="ffprobe-all.html#toc-abuffersink">31.1 abuffersink</a></h2>
  18666. <p>Buffer audio frames, and make them available to the end of filter chain.
  18667. </p>
  18668. <p>This sink is mainly intended for programmatic use, in particular
  18669. through the interface defined in &lsquo;<tt>libavfilter/buffersink.h</tt>&rsquo;
  18670. or the options system.
  18671. </p>
  18672. <p>It accepts a pointer to an AVABufferSinkContext structure, which
  18673. defines the incoming buffers&rsquo; formats, to be passed as the opaque
  18674. parameter to <code>avfilter_init_filter</code> for initialization.
  18675. </p><a name="anullsink"></a>
  18676. <h2 class="section"><a href="ffprobe-all.html#toc-anullsink">31.2 anullsink</a></h2>
  18677. <p>Null audio sink; do absolutely nothing with the input audio. It is
  18678. mainly useful as a template and for use in analysis / debugging
  18679. tools.
  18680. </p>
  18681. <a name="Video-Filters"></a>
  18682. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Filters">32 Video Filters</a></h1>
  18683. <p>When you configure your FFmpeg build, you can disable any of the
  18684. existing filters using <code>--disable-filters</code>.
  18685. The configure output will show the video filters included in your
  18686. build.
  18687. </p>
  18688. <p>Below is a description of the currently available video filters.
  18689. </p>
  18690. <a name="addroi"></a>
  18691. <h2 class="section"><a href="ffprobe-all.html#toc-addroi">32.1 addroi</a></h2>
  18692. <p>Mark a region of interest in a video frame.
  18693. </p>
  18694. <p>The frame data is passed through unchanged, but metadata is attached
  18695. to the frame indicating regions of interest which can affect the
  18696. behaviour of later encoding. Multiple regions can be marked by
  18697. applying the filter multiple times.
  18698. </p>
  18699. <dl compact="compact">
  18700. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  18701. <dd><p>Region distance in pixels from the left edge of the frame.
  18702. </p></dd>
  18703. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  18704. <dd><p>Region distance in pixels from the top edge of the frame.
  18705. </p></dd>
  18706. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  18707. <dd><p>Region width in pixels.
  18708. </p></dd>
  18709. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  18710. <dd><p>Region height in pixels.
  18711. </p>
  18712. <p>The parameters <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> are expressions,
  18713. and may contain the following variables:
  18714. </p><dl compact="compact">
  18715. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  18716. <dd><p>Width of the input frame.
  18717. </p></dd>
  18718. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  18719. <dd><p>Height of the input frame.
  18720. </p></dd>
  18721. </dl>
  18722. </dd>
  18723. <dt>&lsquo;<samp>qoffset</samp>&rsquo;</dt>
  18724. <dd><p>Quantisation offset to apply within the region.
  18725. </p>
  18726. <p>This must be a real value in the range -1 to +1. A value of zero
  18727. indicates no quality change. A negative value asks for better quality
  18728. (less quantisation), while a positive value asks for worse quality
  18729. (greater quantisation).
  18730. </p>
  18731. <p>The range is calibrated so that the extreme values indicate the
  18732. largest possible offset - if the rest of the frame is encoded with the
  18733. worst possible quality, an offset of -1 indicates that this region
  18734. should be encoded with the best possible quality anyway. Intermediate
  18735. values are then interpolated in some codec-dependent way.
  18736. </p>
  18737. <p>For example, in 10-bit H.264 the quantisation parameter varies between
  18738. -12 and 51. A typical qoffset value of -1/10 therefore indicates that
  18739. this region should be encoded with a QP around one-tenth of the full
  18740. range better than the rest of the frame. So, if most of the frame
  18741. were to be encoded with a QP of around 30, this region would get a QP
  18742. of around 24 (an offset of approximately -1/10 * (51 - -12) = -6.3).
  18743. An extreme value of -1 would indicate that this region should be
  18744. encoded with the best possible quality regardless of the treatment of
  18745. the rest of the frame - that is, should be encoded at a QP of -12.
  18746. </p></dd>
  18747. <dt>&lsquo;<samp>clear</samp>&rsquo;</dt>
  18748. <dd><p>If set to true, remove any existing regions of interest marked on the
  18749. frame before adding the new one.
  18750. </p></dd>
  18751. </dl>
  18752. <a name="Examples-62"></a>
  18753. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-62">32.1.1 Examples</a></h3>
  18754. <ul>
  18755. <li>
  18756. Mark the centre quarter of the frame as interesting.
  18757. <div class="example">
  18758. <pre class="example">addroi=iw/4:ih/4:iw/2:ih/2:-1/10
  18759. </pre></div>
  18760. </li><li>
  18761. Mark the 100-pixel-wide region on the left edge of the frame as very
  18762. uninteresting (to be encoded at much lower quality than the rest of
  18763. the frame).
  18764. <div class="example">
  18765. <pre class="example">addroi=0:0:100:ih:+1/5
  18766. </pre></div>
  18767. </li></ul>
  18768. <a name="alphaextract"></a>
  18769. <h2 class="section"><a href="ffprobe-all.html#toc-alphaextract">32.2 alphaextract</a></h2>
  18770. <p>Extract the alpha component from the input as a grayscale video. This
  18771. is especially useful with the <var>alphamerge</var> filter.
  18772. </p>
  18773. <a name="alphamerge"></a>
  18774. <h2 class="section"><a href="ffprobe-all.html#toc-alphamerge">32.3 alphamerge</a></h2>
  18775. <p>Add or replace the alpha component of the primary input with the
  18776. grayscale value of a second input. This is intended for use with
  18777. <var>alphaextract</var> to allow the transmission or storage of frame
  18778. sequences that have alpha in a format that doesn&rsquo;t support an alpha
  18779. channel.
  18780. </p>
  18781. <p>For example, to reconstruct full frames from a normal YUV-encoded video
  18782. and a separate video created with <var>alphaextract</var>, you might use:
  18783. </p><div class="example">
  18784. <pre class="example">movie=in_alpha.mkv [alpha]; [in][alpha] alphamerge [out]
  18785. </pre></div>
  18786. <p>Since this filter is designed for reconstruction, it operates on frame
  18787. sequences without considering timestamps, and terminates when either
  18788. input reaches end of stream. This will cause problems if your encoding
  18789. pipeline drops frames. If you&rsquo;re trying to apply an image as an
  18790. overlay to a video stream, consider the <var>overlay</var> filter instead.
  18791. </p>
  18792. <a name="amplify"></a>
  18793. <h2 class="section"><a href="ffprobe-all.html#toc-amplify">32.4 amplify</a></h2>
  18794. <p>Amplify differences between current pixel and pixels of adjacent frames in
  18795. same pixel location.
  18796. </p>
  18797. <p>This filter accepts the following options:
  18798. </p>
  18799. <dl compact="compact">
  18800. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  18801. <dd><p>Set frame radius. Default is 2. Allowed range is from 1 to 63.
  18802. For example radius of 3 will instruct filter to calculate average of 7 frames.
  18803. </p>
  18804. </dd>
  18805. <dt>&lsquo;<samp>factor</samp>&rsquo;</dt>
  18806. <dd><p>Set factor to amplify difference. Default is 2. Allowed range is from 0 to 65535.
  18807. </p>
  18808. </dd>
  18809. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  18810. <dd><p>Set threshold for difference amplification. Any difference greater or equal to
  18811. this value will not alter source pixel. Default is 10.
  18812. Allowed range is from 0 to 65535.
  18813. </p>
  18814. </dd>
  18815. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  18816. <dd><p>Set tolerance for difference amplification. Any difference lower to
  18817. this value will not alter source pixel. Default is 0.
  18818. Allowed range is from 0 to 65535.
  18819. </p>
  18820. </dd>
  18821. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  18822. <dd><p>Set lower limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
  18823. This option controls maximum possible value that will decrease source pixel value.
  18824. </p>
  18825. </dd>
  18826. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  18827. <dd><p>Set high limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
  18828. This option controls maximum possible value that will increase source pixel value.
  18829. </p>
  18830. </dd>
  18831. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18832. <dd><p>Set which planes to filter. Default is all. Allowed range is from 0 to 15.
  18833. </p></dd>
  18834. </dl>
  18835. <a name="Commands-20"></a>
  18836. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-20">32.4.1 Commands</a></h3>
  18837. <p>This filter supports the following <a href="#commands">commands</a> that corresponds to option of same name:
  18838. </p><dl compact="compact">
  18839. <dt>&lsquo;<samp>factor</samp>&rsquo;</dt>
  18840. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  18841. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  18842. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  18843. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  18844. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18845. </dl>
  18846. <a name="ass"></a>
  18847. <h2 class="section"><a href="ffprobe-all.html#toc-ass">32.5 ass</a></h2>
  18848. <p>Same as the <a href="#subtitles">subtitles</a> filter, except that it doesn&rsquo;t require libavcodec
  18849. and libavformat to work. On the other hand, it is limited to ASS (Advanced
  18850. Substation Alpha) subtitles files.
  18851. </p>
  18852. <p>This filter accepts the following option in addition to the common options from
  18853. the <a href="#subtitles">subtitles</a> filter:
  18854. </p>
  18855. <dl compact="compact">
  18856. <dt>&lsquo;<samp>shaping</samp>&rsquo;</dt>
  18857. <dd><p>Set the shaping engine
  18858. </p>
  18859. <p>Available values are:
  18860. </p><dl compact="compact">
  18861. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  18862. <dd><p>The default libass shaping engine, which is the best available.
  18863. </p></dd>
  18864. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  18865. <dd><p>Fast, font-agnostic shaper that can do only substitutions
  18866. </p></dd>
  18867. <dt>&lsquo;<samp>complex</samp>&rsquo;</dt>
  18868. <dd><p>Slower shaper using OpenType for substitutions and positioning
  18869. </p></dd>
  18870. </dl>
  18871. <p>The default is <code>auto</code>.
  18872. </p></dd>
  18873. </dl>
  18874. <a name="atadenoise"></a>
  18875. <h2 class="section"><a href="ffprobe-all.html#toc-atadenoise">32.6 atadenoise</a></h2>
  18876. <p>Apply an Adaptive Temporal Averaging Denoiser to the video input.
  18877. </p>
  18878. <p>The filter accepts the following options:
  18879. </p>
  18880. <dl compact="compact">
  18881. <dt>&lsquo;<samp>0a</samp>&rsquo;</dt>
  18882. <dd><p>Set threshold A for 1st plane. Default is 0.02.
  18883. Valid range is 0 to 0.3.
  18884. </p>
  18885. </dd>
  18886. <dt>&lsquo;<samp>0b</samp>&rsquo;</dt>
  18887. <dd><p>Set threshold B for 1st plane. Default is 0.04.
  18888. Valid range is 0 to 5.
  18889. </p>
  18890. </dd>
  18891. <dt>&lsquo;<samp>1a</samp>&rsquo;</dt>
  18892. <dd><p>Set threshold A for 2nd plane. Default is 0.02.
  18893. Valid range is 0 to 0.3.
  18894. </p>
  18895. </dd>
  18896. <dt>&lsquo;<samp>1b</samp>&rsquo;</dt>
  18897. <dd><p>Set threshold B for 2nd plane. Default is 0.04.
  18898. Valid range is 0 to 5.
  18899. </p>
  18900. </dd>
  18901. <dt>&lsquo;<samp>2a</samp>&rsquo;</dt>
  18902. <dd><p>Set threshold A for 3rd plane. Default is 0.02.
  18903. Valid range is 0 to 0.3.
  18904. </p>
  18905. </dd>
  18906. <dt>&lsquo;<samp>2b</samp>&rsquo;</dt>
  18907. <dd><p>Set threshold B for 3rd plane. Default is 0.04.
  18908. Valid range is 0 to 5.
  18909. </p>
  18910. <p>Threshold A is designed to react on abrupt changes in the input signal and
  18911. threshold B is designed to react on continuous changes in the input signal.
  18912. </p>
  18913. </dd>
  18914. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  18915. <dd><p>Set number of frames filter will use for averaging. Default is 9. Must be odd
  18916. number in range [5, 129].
  18917. </p>
  18918. </dd>
  18919. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  18920. <dd><p>Set what planes of frame filter will use for averaging. Default is all.
  18921. </p>
  18922. </dd>
  18923. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  18924. <dd><p>Set what variant of algorithm filter will use for averaging. Default is <code>p</code> parallel.
  18925. Alternatively can be set to <code>s</code> serial.
  18926. </p>
  18927. <p>Parallel can be faster then serial, while other way around is never true.
  18928. Parallel will abort early on first change being greater then thresholds, while serial
  18929. will continue processing other side of frames if they are equal or bellow thresholds.
  18930. </p></dd>
  18931. </dl>
  18932. <a name="Commands-48"></a>
  18933. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-48">32.6.1 Commands</a></h3>
  18934. <p>This filter supports same <a href="#commands">commands</a> as options except option <code>s</code>.
  18935. The command accepts the same syntax of the corresponding option.
  18936. </p>
  18937. <a name="avgblur"></a>
  18938. <h2 class="section"><a href="ffprobe-all.html#toc-avgblur">32.7 avgblur</a></h2>
  18939. <p>Apply average blur filter.
  18940. </p>
  18941. <p>The filter accepts the following options:
  18942. </p>
  18943. <dl compact="compact">
  18944. <dt>&lsquo;<samp>sizeX</samp>&rsquo;</dt>
  18945. <dd><p>Set horizontal radius size.
  18946. </p>
  18947. </dd>
  18948. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18949. <dd><p>Set which planes to filter. By default all planes are filtered.
  18950. </p>
  18951. </dd>
  18952. <dt>&lsquo;<samp>sizeY</samp>&rsquo;</dt>
  18953. <dd><p>Set vertical radius size, if zero it will be same as <code>sizeX</code>.
  18954. Default is <code>0</code>.
  18955. </p></dd>
  18956. </dl>
  18957. <a name="Commands-18"></a>
  18958. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-18">32.7.1 Commands</a></h3>
  18959. <p>This filter supports same commands as options.
  18960. The command accepts the same syntax of the corresponding option.
  18961. </p>
  18962. <p>If the specified expression is not valid, it is kept at its current
  18963. value.
  18964. </p>
  18965. <a name="bbox"></a>
  18966. <h2 class="section"><a href="ffprobe-all.html#toc-bbox">32.8 bbox</a></h2>
  18967. <p>Compute the bounding box for the non-black pixels in the input frame
  18968. luminance plane.
  18969. </p>
  18970. <p>This filter computes the bounding box containing all the pixels with a
  18971. luminance value greater than the minimum allowed value.
  18972. The parameters describing the bounding box are printed on the filter
  18973. log.
  18974. </p>
  18975. <p>The filter accepts the following option:
  18976. </p>
  18977. <dl compact="compact">
  18978. <dt>&lsquo;<samp>min_val</samp>&rsquo;</dt>
  18979. <dd><p>Set the minimal luminance value. Default is <code>16</code>.
  18980. </p></dd>
  18981. </dl>
  18982. <a name="bilateral"></a>
  18983. <h2 class="section"><a href="ffprobe-all.html#toc-bilateral">32.9 bilateral</a></h2>
  18984. <p>Apply bilateral filter, spatial smoothing while preserving edges.
  18985. </p>
  18986. <p>The filter accepts the following options:
  18987. </p><dl compact="compact">
  18988. <dt>&lsquo;<samp>sigmaS</samp>&rsquo;</dt>
  18989. <dd><p>Set sigma of gaussian function to calculate spatial weight.
  18990. Allowed range is 0 to 10. Default is 0.1.
  18991. </p>
  18992. </dd>
  18993. <dt>&lsquo;<samp>sigmaR</samp>&rsquo;</dt>
  18994. <dd><p>Set sigma of gaussian function to calculate range weight.
  18995. Allowed range is 0 to 1. Default is 0.1.
  18996. </p>
  18997. </dd>
  18998. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18999. <dd><p>Set planes to filter. Default is first only.
  19000. </p></dd>
  19001. </dl>
  19002. <a name="bitplanenoise"></a>
  19003. <h2 class="section"><a href="ffprobe-all.html#toc-bitplanenoise">32.10 bitplanenoise</a></h2>
  19004. <p>Show and measure bit plane noise.
  19005. </p>
  19006. <p>The filter accepts the following options:
  19007. </p>
  19008. <dl compact="compact">
  19009. <dt>&lsquo;<samp>bitplane</samp>&rsquo;</dt>
  19010. <dd><p>Set which plane to analyze. Default is <code>1</code>.
  19011. </p>
  19012. </dd>
  19013. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  19014. <dd><p>Filter out noisy pixels from <code>bitplane</code> set above.
  19015. Default is disabled.
  19016. </p></dd>
  19017. </dl>
  19018. <a name="blackdetect"></a>
  19019. <h2 class="section"><a href="ffprobe-all.html#toc-blackdetect">32.11 blackdetect</a></h2>
  19020. <p>Detect video intervals that are (almost) completely black. Can be
  19021. useful to detect chapter transitions, commercials, or invalid
  19022. recordings.
  19023. </p>
  19024. <p>The filter outputs its detection analysis to both the log as well as
  19025. frame metadata. If a black segment of at least the specified minimum
  19026. duration is found, a line with the start and end timestamps as well
  19027. as duration is printed to the log with level <code>info</code>. In addition,
  19028. a log line with level <code>debug</code> is printed per frame showing the
  19029. black amount detected for that frame.
  19030. </p>
  19031. <p>The filter also attaches metadata to the first frame of a black
  19032. segment with key <code>lavfi.black_start</code> and to the first frame
  19033. after the black segment ends with key <code>lavfi.black_end</code>. The
  19034. value is the frame&rsquo;s timestamp. This metadata is added regardless
  19035. of the minimum duration specified.
  19036. </p>
  19037. <p>The filter accepts the following options:
  19038. </p>
  19039. <dl compact="compact">
  19040. <dt>&lsquo;<samp>black_min_duration, d</samp>&rsquo;</dt>
  19041. <dd><p>Set the minimum detected black duration expressed in seconds. It must
  19042. be a non-negative floating point number.
  19043. </p>
  19044. <p>Default value is 2.0.
  19045. </p>
  19046. </dd>
  19047. <dt>&lsquo;<samp>picture_black_ratio_th, pic_th</samp>&rsquo;</dt>
  19048. <dd><p>Set the threshold for considering a picture &quot;black&quot;.
  19049. Express the minimum value for the ratio:
  19050. </p><div class="example">
  19051. <pre class="example"><var>nb_black_pixels</var> / <var>nb_pixels</var>
  19052. </pre></div>
  19053. <p>for which a picture is considered black.
  19054. Default value is 0.98.
  19055. </p>
  19056. </dd>
  19057. <dt>&lsquo;<samp>pixel_black_th, pix_th</samp>&rsquo;</dt>
  19058. <dd><p>Set the threshold for considering a pixel &quot;black&quot;.
  19059. </p>
  19060. <p>The threshold expresses the maximum pixel luminance value for which a
  19061. pixel is considered &quot;black&quot;. The provided value is scaled according to
  19062. the following equation:
  19063. </p><div class="example">
  19064. <pre class="example"><var>absolute_threshold</var> = <var>luminance_minimum_value</var> + <var>pixel_black_th</var> * <var>luminance_range_size</var>
  19065. </pre></div>
  19066. <p><var>luminance_range_size</var> and <var>luminance_minimum_value</var> depend on
  19067. the input video format, the range is [0-255] for YUV full-range
  19068. formats and [16-235] for YUV non full-range formats.
  19069. </p>
  19070. <p>Default value is 0.10.
  19071. </p></dd>
  19072. </dl>
  19073. <p>The following example sets the maximum pixel threshold to the minimum
  19074. value, and detects only black intervals of 2 or more seconds:
  19075. </p><div class="example">
  19076. <pre class="example">blackdetect=d=2:pix_th=0.00
  19077. </pre></div>
  19078. <a name="blackframe"></a>
  19079. <h2 class="section"><a href="ffprobe-all.html#toc-blackframe">32.12 blackframe</a></h2>
  19080. <p>Detect frames that are (almost) completely black. Can be useful to
  19081. detect chapter transitions or commercials. Output lines consist of
  19082. the frame number of the detected frame, the percentage of blackness,
  19083. the position in the file if known or -1 and the timestamp in seconds.
  19084. </p>
  19085. <p>In order to display the output lines, you need to set the loglevel at
  19086. least to the AV_LOG_INFO value.
  19087. </p>
  19088. <p>This filter exports frame metadata <code>lavfi.blackframe.pblack</code>.
  19089. The value represents the percentage of pixels in the picture that
  19090. are below the threshold value.
  19091. </p>
  19092. <p>It accepts the following parameters:
  19093. </p>
  19094. <dl compact="compact">
  19095. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  19096. <dd><p>The percentage of the pixels that have to be below the threshold; it defaults to
  19097. <code>98</code>.
  19098. </p>
  19099. </dd>
  19100. <dt>&lsquo;<samp>threshold, thresh</samp>&rsquo;</dt>
  19101. <dd><p>The threshold below which a pixel value is considered black; it defaults to
  19102. <code>32</code>.
  19103. </p>
  19104. </dd>
  19105. </dl>
  19106. <p><a name="blend"></a>
  19107. </p><a name="blend-1"></a>
  19108. <h2 class="section"><a href="ffprobe-all.html#toc-blend-1">32.13 blend</a></h2>
  19109. <p>Blend two video frames into each other.
  19110. </p>
  19111. <p>The <code>blend</code> filter takes two input streams and outputs one
  19112. stream, the first input is the &quot;top&quot; layer and second input is
  19113. &quot;bottom&quot; layer. By default, the output terminates when the longest input terminates.
  19114. </p>
  19115. <p>The <code>tblend</code> (time blend) filter takes two consecutive frames
  19116. from one single stream, and outputs the result obtained by blending
  19117. the new frame on top of the old frame.
  19118. </p>
  19119. <p>A description of the accepted options follows.
  19120. </p>
  19121. <dl compact="compact">
  19122. <dt>&lsquo;<samp>c0_mode</samp>&rsquo;</dt>
  19123. <dt>&lsquo;<samp>c1_mode</samp>&rsquo;</dt>
  19124. <dt>&lsquo;<samp>c2_mode</samp>&rsquo;</dt>
  19125. <dt>&lsquo;<samp>c3_mode</samp>&rsquo;</dt>
  19126. <dt>&lsquo;<samp>all_mode</samp>&rsquo;</dt>
  19127. <dd><p>Set blend mode for specific pixel component or all pixel components in case
  19128. of <var>all_mode</var>. Default value is <code>normal</code>.
  19129. </p>
  19130. <p>Available values for component modes are:
  19131. </p><dl compact="compact">
  19132. <dt>&lsquo;<samp>addition</samp>&rsquo;</dt>
  19133. <dt>&lsquo;<samp>grainmerge</samp>&rsquo;</dt>
  19134. <dt>&lsquo;<samp>and</samp>&rsquo;</dt>
  19135. <dt>&lsquo;<samp>average</samp>&rsquo;</dt>
  19136. <dt>&lsquo;<samp>burn</samp>&rsquo;</dt>
  19137. <dt>&lsquo;<samp>darken</samp>&rsquo;</dt>
  19138. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  19139. <dt>&lsquo;<samp>grainextract</samp>&rsquo;</dt>
  19140. <dt>&lsquo;<samp>divide</samp>&rsquo;</dt>
  19141. <dt>&lsquo;<samp>dodge</samp>&rsquo;</dt>
  19142. <dt>&lsquo;<samp>freeze</samp>&rsquo;</dt>
  19143. <dt>&lsquo;<samp>exclusion</samp>&rsquo;</dt>
  19144. <dt>&lsquo;<samp>extremity</samp>&rsquo;</dt>
  19145. <dt>&lsquo;<samp>glow</samp>&rsquo;</dt>
  19146. <dt>&lsquo;<samp>hardlight</samp>&rsquo;</dt>
  19147. <dt>&lsquo;<samp>hardmix</samp>&rsquo;</dt>
  19148. <dt>&lsquo;<samp>heat</samp>&rsquo;</dt>
  19149. <dt>&lsquo;<samp>lighten</samp>&rsquo;</dt>
  19150. <dt>&lsquo;<samp>linearlight</samp>&rsquo;</dt>
  19151. <dt>&lsquo;<samp>multiply</samp>&rsquo;</dt>
  19152. <dt>&lsquo;<samp>multiply128</samp>&rsquo;</dt>
  19153. <dt>&lsquo;<samp>negation</samp>&rsquo;</dt>
  19154. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  19155. <dt>&lsquo;<samp>or</samp>&rsquo;</dt>
  19156. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  19157. <dt>&lsquo;<samp>phoenix</samp>&rsquo;</dt>
  19158. <dt>&lsquo;<samp>pinlight</samp>&rsquo;</dt>
  19159. <dt>&lsquo;<samp>reflect</samp>&rsquo;</dt>
  19160. <dt>&lsquo;<samp>screen</samp>&rsquo;</dt>
  19161. <dt>&lsquo;<samp>softlight</samp>&rsquo;</dt>
  19162. <dt>&lsquo;<samp>subtract</samp>&rsquo;</dt>
  19163. <dt>&lsquo;<samp>vividlight</samp>&rsquo;</dt>
  19164. <dt>&lsquo;<samp>xor</samp>&rsquo;</dt>
  19165. </dl>
  19166. </dd>
  19167. <dt>&lsquo;<samp>c0_opacity</samp>&rsquo;</dt>
  19168. <dt>&lsquo;<samp>c1_opacity</samp>&rsquo;</dt>
  19169. <dt>&lsquo;<samp>c2_opacity</samp>&rsquo;</dt>
  19170. <dt>&lsquo;<samp>c3_opacity</samp>&rsquo;</dt>
  19171. <dt>&lsquo;<samp>all_opacity</samp>&rsquo;</dt>
  19172. <dd><p>Set blend opacity for specific pixel component or all pixel components in case
  19173. of <var>all_opacity</var>. Only used in combination with pixel component blend modes.
  19174. </p>
  19175. </dd>
  19176. <dt>&lsquo;<samp>c0_expr</samp>&rsquo;</dt>
  19177. <dt>&lsquo;<samp>c1_expr</samp>&rsquo;</dt>
  19178. <dt>&lsquo;<samp>c2_expr</samp>&rsquo;</dt>
  19179. <dt>&lsquo;<samp>c3_expr</samp>&rsquo;</dt>
  19180. <dt>&lsquo;<samp>all_expr</samp>&rsquo;</dt>
  19181. <dd><p>Set blend expression for specific pixel component or all pixel components in case
  19182. of <var>all_expr</var>. Note that related mode options will be ignored if those are set.
  19183. </p>
  19184. <p>The expressions can use the following variables:
  19185. </p>
  19186. <dl compact="compact">
  19187. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  19188. <dd><p>The sequential number of the filtered frame, starting from <code>0</code>.
  19189. </p>
  19190. </dd>
  19191. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  19192. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  19193. <dd><p>the coordinates of the current sample
  19194. </p>
  19195. </dd>
  19196. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  19197. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  19198. <dd><p>the width and height of currently filtered plane
  19199. </p>
  19200. </dd>
  19201. <dt>&lsquo;<samp>SW</samp>&rsquo;</dt>
  19202. <dt>&lsquo;<samp>SH</samp>&rsquo;</dt>
  19203. <dd><p>Width and height scale for the plane being filtered. It is the
  19204. ratio between the dimensions of the current plane to the luma plane,
  19205. e.g. for a <code>yuv420p</code> frame, the values are <code>1,1</code> for
  19206. the luma plane and <code>0.5,0.5</code> for the chroma planes.
  19207. </p>
  19208. </dd>
  19209. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  19210. <dd><p>Time of the current frame, expressed in seconds.
  19211. </p>
  19212. </dd>
  19213. <dt>&lsquo;<samp>TOP, A</samp>&rsquo;</dt>
  19214. <dd><p>Value of pixel component at current location for first video frame (top layer).
  19215. </p>
  19216. </dd>
  19217. <dt>&lsquo;<samp>BOTTOM, B</samp>&rsquo;</dt>
  19218. <dd><p>Value of pixel component at current location for second video frame (bottom layer).
  19219. </p></dd>
  19220. </dl>
  19221. </dd>
  19222. </dl>
  19223. <p>The <code>blend</code> filter also supports the <a href="#framesync">framesync</a> options.
  19224. </p>
  19225. <a name="Examples-66"></a>
  19226. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-66">32.13.1 Examples</a></h3>
  19227. <ul>
  19228. <li>
  19229. Apply transition from bottom layer to top layer in first 10 seconds:
  19230. <div class="example">
  19231. <pre class="example">blend=all_expr='A*(if(gte(T,10),1,T/10))+B*(1-(if(gte(T,10),1,T/10)))'
  19232. </pre></div>
  19233. </li><li>
  19234. Apply linear horizontal transition from top layer to bottom layer:
  19235. <div class="example">
  19236. <pre class="example">blend=all_expr='A*(X/W)+B*(1-X/W)'
  19237. </pre></div>
  19238. </li><li>
  19239. Apply 1x1 checkerboard effect:
  19240. <div class="example">
  19241. <pre class="example">blend=all_expr='if(eq(mod(X,2),mod(Y,2)),A,B)'
  19242. </pre></div>
  19243. </li><li>
  19244. Apply uncover left effect:
  19245. <div class="example">
  19246. <pre class="example">blend=all_expr='if(gte(N*SW+X,W),A,B)'
  19247. </pre></div>
  19248. </li><li>
  19249. Apply uncover down effect:
  19250. <div class="example">
  19251. <pre class="example">blend=all_expr='if(gte(Y-N*SH,0),A,B)'
  19252. </pre></div>
  19253. </li><li>
  19254. Apply uncover up-left effect:
  19255. <div class="example">
  19256. <pre class="example">blend=all_expr='if(gte(T*SH*40+Y,H)*gte((T*40*SW+X)*W/H,W),A,B)'
  19257. </pre></div>
  19258. </li><li>
  19259. Split diagonally video and shows top and bottom layer on each side:
  19260. <div class="example">
  19261. <pre class="example">blend=all_expr='if(gt(X,Y*(W/H)),A,B)'
  19262. </pre></div>
  19263. </li><li>
  19264. Display differences between the current and the previous frame:
  19265. <div class="example">
  19266. <pre class="example">tblend=all_mode=grainextract
  19267. </pre></div>
  19268. </li></ul>
  19269. <a name="bm3d"></a>
  19270. <h2 class="section"><a href="ffprobe-all.html#toc-bm3d">32.14 bm3d</a></h2>
  19271. <p>Denoise frames using Block-Matching 3D algorithm.
  19272. </p>
  19273. <p>The filter accepts the following options.
  19274. </p>
  19275. <dl compact="compact">
  19276. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  19277. <dd><p>Set denoising strength. Default value is 1.
  19278. Allowed range is from 0 to 999.9.
  19279. The denoising algorithm is very sensitive to sigma, so adjust it
  19280. according to the source.
  19281. </p>
  19282. </dd>
  19283. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  19284. <dd><p>Set local patch size. This sets dimensions in 2D.
  19285. </p>
  19286. </dd>
  19287. <dt>&lsquo;<samp>bstep</samp>&rsquo;</dt>
  19288. <dd><p>Set sliding step for processing blocks. Default value is 4.
  19289. Allowed range is from 1 to 64.
  19290. Smaller values allows processing more reference blocks and is slower.
  19291. </p>
  19292. </dd>
  19293. <dt>&lsquo;<samp>group</samp>&rsquo;</dt>
  19294. <dd><p>Set maximal number of similar blocks for 3rd dimension. Default value is 1.
  19295. When set to 1, no block matching is done. Larger values allows more blocks
  19296. in single group.
  19297. Allowed range is from 1 to 256.
  19298. </p>
  19299. </dd>
  19300. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  19301. <dd><p>Set radius for search block matching. Default is 9.
  19302. Allowed range is from 1 to INT32_MAX.
  19303. </p>
  19304. </dd>
  19305. <dt>&lsquo;<samp>mstep</samp>&rsquo;</dt>
  19306. <dd><p>Set step between two search locations for block matching. Default is 1.
  19307. Allowed range is from 1 to 64. Smaller is slower.
  19308. </p>
  19309. </dd>
  19310. <dt>&lsquo;<samp>thmse</samp>&rsquo;</dt>
  19311. <dd><p>Set threshold of mean square error for block matching. Valid range is 0 to
  19312. INT32_MAX.
  19313. </p>
  19314. </dd>
  19315. <dt>&lsquo;<samp>hdthr</samp>&rsquo;</dt>
  19316. <dd><p>Set thresholding parameter for hard thresholding in 3D transformed domain.
  19317. Larger values results in stronger hard-thresholding filtering in frequency
  19318. domain.
  19319. </p>
  19320. </dd>
  19321. <dt>&lsquo;<samp>estim</samp>&rsquo;</dt>
  19322. <dd><p>Set filtering estimation mode. Can be <code>basic</code> or <code>final</code>.
  19323. Default is <code>basic</code>.
  19324. </p>
  19325. </dd>
  19326. <dt>&lsquo;<samp>ref</samp>&rsquo;</dt>
  19327. <dd><p>If enabled, filter will use 2nd stream for block matching.
  19328. Default is disabled for <code>basic</code> value of <var>estim</var> option,
  19329. and always enabled if value of <var>estim</var> is <code>final</code>.
  19330. </p>
  19331. </dd>
  19332. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  19333. <dd><p>Set planes to filter. Default is all available except alpha.
  19334. </p></dd>
  19335. </dl>
  19336. <a name="Examples-30"></a>
  19337. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-30">32.14.1 Examples</a></h3>
  19338. <ul>
  19339. <li>
  19340. Basic filtering with bm3d:
  19341. <div class="example">
  19342. <pre class="example">bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic
  19343. </pre></div>
  19344. </li><li>
  19345. Same as above, but filtering only luma:
  19346. <div class="example">
  19347. <pre class="example">bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic:planes=1
  19348. </pre></div>
  19349. </li><li>
  19350. Same as above, but with both estimation modes:
  19351. <div class="example">
  19352. <pre class="example">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
  19353. </pre></div>
  19354. </li><li>
  19355. Same as above, but prefilter with <a href="#nlmeans">nlmeans</a> filter instead:
  19356. <div class="example">
  19357. <pre class="example">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
  19358. </pre></div>
  19359. </li></ul>
  19360. <a name="boxblur"></a>
  19361. <h2 class="section"><a href="ffprobe-all.html#toc-boxblur">32.15 boxblur</a></h2>
  19362. <p>Apply a boxblur algorithm to the input video.
  19363. </p>
  19364. <p>It accepts the following parameters:
  19365. </p>
  19366. <dl compact="compact">
  19367. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  19368. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  19369. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  19370. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  19371. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  19372. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  19373. </dl>
  19374. <p>A description of the accepted options follows.
  19375. </p>
  19376. <dl compact="compact">
  19377. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  19378. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  19379. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  19380. <dd><p>Set an expression for the box radius in pixels used for blurring the
  19381. corresponding input plane.
  19382. </p>
  19383. <p>The radius value must be a non-negative number, and must not be
  19384. greater than the value of the expression <code>min(w,h)/2</code> for the
  19385. luma and alpha planes, and of <code>min(cw,ch)/2</code> for the chroma
  19386. planes.
  19387. </p>
  19388. <p>Default value for &lsquo;<samp>luma_radius</samp>&rsquo; is &quot;2&quot;. If not specified,
  19389. &lsquo;<samp>chroma_radius</samp>&rsquo; and &lsquo;<samp>alpha_radius</samp>&rsquo; default to the
  19390. corresponding value set for &lsquo;<samp>luma_radius</samp>&rsquo;.
  19391. </p>
  19392. <p>The expressions can contain the following constants:
  19393. </p><dl compact="compact">
  19394. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  19395. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  19396. <dd><p>The input width and height in pixels.
  19397. </p>
  19398. </dd>
  19399. <dt>&lsquo;<samp>cw</samp>&rsquo;</dt>
  19400. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  19401. <dd><p>The input chroma image width and height in pixels.
  19402. </p>
  19403. </dd>
  19404. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  19405. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  19406. <dd><p>The horizontal and vertical chroma subsample values. For example, for the
  19407. pixel format &quot;yuv422p&quot;, <var>hsub</var> is 2 and <var>vsub</var> is 1.
  19408. </p></dd>
  19409. </dl>
  19410. </dd>
  19411. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  19412. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  19413. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  19414. <dd><p>Specify how many times the boxblur filter is applied to the
  19415. corresponding plane.
  19416. </p>
  19417. <p>Default value for &lsquo;<samp>luma_power</samp>&rsquo; is 2. If not specified,
  19418. &lsquo;<samp>chroma_power</samp>&rsquo; and &lsquo;<samp>alpha_power</samp>&rsquo; default to the
  19419. corresponding value set for &lsquo;<samp>luma_power</samp>&rsquo;.
  19420. </p>
  19421. <p>A value of 0 will disable the effect.
  19422. </p></dd>
  19423. </dl>
  19424. <a name="Examples-93"></a>
  19425. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-93">32.15.1 Examples</a></h3>
  19426. <ul>
  19427. <li>
  19428. Apply a boxblur filter with the luma, chroma, and alpha radii
  19429. set to 2:
  19430. <div class="example">
  19431. <pre class="example">boxblur=luma_radius=2:luma_power=1
  19432. boxblur=2:1
  19433. </pre></div>
  19434. </li><li>
  19435. Set the luma radius to 2, and alpha and chroma radius to 0:
  19436. <div class="example">
  19437. <pre class="example">boxblur=2:1:cr=0:ar=0
  19438. </pre></div>
  19439. </li><li>
  19440. Set the luma and chroma radii to a fraction of the video dimension:
  19441. <div class="example">
  19442. <pre class="example">boxblur=luma_radius=min(h\,w)/10:luma_power=1:chroma_radius=min(cw\,ch)/10:chroma_power=1
  19443. </pre></div>
  19444. </li></ul>
  19445. <a name="bwdif"></a>
  19446. <h2 class="section"><a href="ffprobe-all.html#toc-bwdif">32.16 bwdif</a></h2>
  19447. <p>Deinterlace the input video (&quot;bwdif&quot; stands for &quot;Bob Weaver
  19448. Deinterlacing Filter&quot;).
  19449. </p>
  19450. <p>Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic
  19451. interpolation algorithms.
  19452. It accepts the following parameters:
  19453. </p>
  19454. <dl compact="compact">
  19455. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  19456. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  19457. </p>
  19458. <dl compact="compact">
  19459. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  19460. <dd><p>Output one frame for each frame.
  19461. </p></dd>
  19462. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  19463. <dd><p>Output one frame for each field.
  19464. </p></dd>
  19465. </dl>
  19466. <p>The default value is <code>send_field</code>.
  19467. </p>
  19468. </dd>
  19469. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  19470. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  19471. of the following values:
  19472. </p>
  19473. <dl compact="compact">
  19474. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  19475. <dd><p>Assume the top field is first.
  19476. </p></dd>
  19477. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  19478. <dd><p>Assume the bottom field is first.
  19479. </p></dd>
  19480. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  19481. <dd><p>Enable automatic detection of field parity.
  19482. </p></dd>
  19483. </dl>
  19484. <p>The default value is <code>auto</code>.
  19485. If the interlacing is unknown or the decoder does not export this information,
  19486. top field first will be assumed.
  19487. </p>
  19488. </dd>
  19489. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  19490. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  19491. values:
  19492. </p>
  19493. <dl compact="compact">
  19494. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  19495. <dd><p>Deinterlace all frames.
  19496. </p></dd>
  19497. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  19498. <dd><p>Only deinterlace frames marked as interlaced.
  19499. </p></dd>
  19500. </dl>
  19501. <p>The default value is <code>all</code>.
  19502. </p></dd>
  19503. </dl>
  19504. <a name="cas"></a>
  19505. <h2 class="section"><a href="ffprobe-all.html#toc-cas">32.17 cas</a></h2>
  19506. <p>Apply Contrast Adaptive Sharpen filter to video stream.
  19507. </p>
  19508. <p>The filter accepts the following options:
  19509. </p>
  19510. <dl compact="compact">
  19511. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  19512. <dd><p>Set the sharpening strength. Default value is 0.
  19513. </p>
  19514. </dd>
  19515. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  19516. <dd><p>Set planes to filter. Default value is to filter all
  19517. planes except alpha plane.
  19518. </p></dd>
  19519. </dl>
  19520. <a name="chromahold"></a>
  19521. <h2 class="section"><a href="ffprobe-all.html#toc-chromahold">32.18 chromahold</a></h2>
  19522. <p>Remove all color information for all colors except for certain one.
  19523. </p>
  19524. <p>The filter accepts the following options:
  19525. </p>
  19526. <dl compact="compact">
  19527. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19528. <dd><p>The color which will not be replaced with neutral chroma.
  19529. </p>
  19530. </dd>
  19531. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19532. <dd><p>Similarity percentage with the above color.
  19533. 0.01 matches only the exact key color, while 1.0 matches everything.
  19534. </p>
  19535. </dd>
  19536. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19537. <dd><p>Blend percentage.
  19538. 0.0 makes pixels either fully gray, or not gray at all.
  19539. Higher values result in more preserved color.
  19540. </p>
  19541. </dd>
  19542. <dt>&lsquo;<samp>yuv</samp>&rsquo;</dt>
  19543. <dd><p>Signals that the color passed is already in YUV instead of RGB.
  19544. </p>
  19545. <p>Literal colors like &quot;green&quot; or &quot;red&quot; don&rsquo;t make sense with this enabled anymore.
  19546. This can be used to pass exact YUV values as hexadecimal numbers.
  19547. </p></dd>
  19548. </dl>
  19549. <a name="Commands-51"></a>
  19550. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-51">32.18.1 Commands</a></h3>
  19551. <p>This filter supports same <a href="#commands">commands</a> as options.
  19552. The command accepts the same syntax of the corresponding option.
  19553. </p>
  19554. <p>If the specified expression is not valid, it is kept at its current
  19555. value.
  19556. </p>
  19557. <a name="chromakey"></a>
  19558. <h2 class="section"><a href="ffprobe-all.html#toc-chromakey">32.19 chromakey</a></h2>
  19559. <p>YUV colorspace color/chroma keying.
  19560. </p>
  19561. <p>The filter accepts the following options:
  19562. </p>
  19563. <dl compact="compact">
  19564. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19565. <dd><p>The color which will be replaced with transparency.
  19566. </p>
  19567. </dd>
  19568. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19569. <dd><p>Similarity percentage with the key color.
  19570. </p>
  19571. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  19572. </p>
  19573. </dd>
  19574. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19575. <dd><p>Blend percentage.
  19576. </p>
  19577. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  19578. </p>
  19579. <p>Higher values result in semi-transparent pixels, with a higher transparency
  19580. the more similar the pixels color is to the key color.
  19581. </p>
  19582. </dd>
  19583. <dt>&lsquo;<samp>yuv</samp>&rsquo;</dt>
  19584. <dd><p>Signals that the color passed is already in YUV instead of RGB.
  19585. </p>
  19586. <p>Literal colors like &quot;green&quot; or &quot;red&quot; don&rsquo;t make sense with this enabled anymore.
  19587. This can be used to pass exact YUV values as hexadecimal numbers.
  19588. </p></dd>
  19589. </dl>
  19590. <a name="Commands-59"></a>
  19591. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-59">32.19.1 Commands</a></h3>
  19592. <p>This filter supports same <a href="#commands">commands</a> as options.
  19593. The command accepts the same syntax of the corresponding option.
  19594. </p>
  19595. <p>If the specified expression is not valid, it is kept at its current
  19596. value.
  19597. </p>
  19598. <a name="Examples-55"></a>
  19599. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-55">32.19.2 Examples</a></h3>
  19600. <ul>
  19601. <li>
  19602. Make every green pixel in the input image transparent:
  19603. <div class="example">
  19604. <pre class="example">ffmpeg -i input.png -vf chromakey=green out.png
  19605. </pre></div>
  19606. </li><li>
  19607. Overlay a greenscreen-video on top of a static black background.
  19608. <div class="example">
  19609. <pre class="example">ffmpeg -f lavfi -i color=c=black:s=1280x720 -i video.mp4 -shortest -filter_complex &quot;[1:v]chromakey=0x70de77:0.1:0.2[ckout];[0:v][ckout]overlay[out]&quot; -map &quot;[out]&quot; output.mkv
  19610. </pre></div>
  19611. </li></ul>
  19612. <a name="chromashift"></a>
  19613. <h2 class="section"><a href="ffprobe-all.html#toc-chromashift">32.20 chromashift</a></h2>
  19614. <p>Shift chroma pixels horizontally and/or vertically.
  19615. </p>
  19616. <p>The filter accepts the following options:
  19617. </p><dl compact="compact">
  19618. <dt>&lsquo;<samp>cbh</samp>&rsquo;</dt>
  19619. <dd><p>Set amount to shift chroma-blue horizontally.
  19620. </p></dd>
  19621. <dt>&lsquo;<samp>cbv</samp>&rsquo;</dt>
  19622. <dd><p>Set amount to shift chroma-blue vertically.
  19623. </p></dd>
  19624. <dt>&lsquo;<samp>crh</samp>&rsquo;</dt>
  19625. <dd><p>Set amount to shift chroma-red horizontally.
  19626. </p></dd>
  19627. <dt>&lsquo;<samp>crv</samp>&rsquo;</dt>
  19628. <dd><p>Set amount to shift chroma-red vertically.
  19629. </p></dd>
  19630. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  19631. <dd><p>Set edge mode, can be <var>smear</var>, default, or <var>warp</var>.
  19632. </p></dd>
  19633. </dl>
  19634. <a name="Commands-43"></a>
  19635. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-43">32.20.1 Commands</a></h3>
  19636. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19637. </p>
  19638. <a name="ciescope"></a>
  19639. <h2 class="section"><a href="ffprobe-all.html#toc-ciescope">32.21 ciescope</a></h2>
  19640. <p>Display CIE color diagram with pixels overlaid onto it.
  19641. </p>
  19642. <p>The filter accepts the following options:
  19643. </p>
  19644. <dl compact="compact">
  19645. <dt>&lsquo;<samp>system</samp>&rsquo;</dt>
  19646. <dd><p>Set color system.
  19647. </p>
  19648. <dl compact="compact">
  19649. <dt>&lsquo;<samp>ntsc, 470m</samp>&rsquo;</dt>
  19650. <dt>&lsquo;<samp>ebu, 470bg</samp>&rsquo;</dt>
  19651. <dt>&lsquo;<samp>smpte</samp>&rsquo;</dt>
  19652. <dt>&lsquo;<samp>240m</samp>&rsquo;</dt>
  19653. <dt>&lsquo;<samp>apple</samp>&rsquo;</dt>
  19654. <dt>&lsquo;<samp>widergb</samp>&rsquo;</dt>
  19655. <dt>&lsquo;<samp>cie1931</samp>&rsquo;</dt>
  19656. <dt>&lsquo;<samp>rec709, hdtv</samp>&rsquo;</dt>
  19657. <dt>&lsquo;<samp>uhdtv, rec2020</samp>&rsquo;</dt>
  19658. <dt>&lsquo;<samp>dcip3</samp>&rsquo;</dt>
  19659. </dl>
  19660. </dd>
  19661. <dt>&lsquo;<samp>cie</samp>&rsquo;</dt>
  19662. <dd><p>Set CIE system.
  19663. </p>
  19664. <dl compact="compact">
  19665. <dt>&lsquo;<samp>xyy</samp>&rsquo;</dt>
  19666. <dt>&lsquo;<samp>ucs</samp>&rsquo;</dt>
  19667. <dt>&lsquo;<samp>luv</samp>&rsquo;</dt>
  19668. </dl>
  19669. </dd>
  19670. <dt>&lsquo;<samp>gamuts</samp>&rsquo;</dt>
  19671. <dd><p>Set what gamuts to draw.
  19672. </p>
  19673. <p>See <code>system</code> option for available values.
  19674. </p>
  19675. </dd>
  19676. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  19677. <dd><p>Set ciescope size, by default set to 512.
  19678. </p>
  19679. </dd>
  19680. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  19681. <dd><p>Set intensity used to map input pixel values to CIE diagram.
  19682. </p>
  19683. </dd>
  19684. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  19685. <dd><p>Set contrast used to draw tongue colors that are out of active color system gamut.
  19686. </p>
  19687. </dd>
  19688. <dt>&lsquo;<samp>corrgamma</samp>&rsquo;</dt>
  19689. <dd><p>Correct gamma displayed on scope, by default enabled.
  19690. </p>
  19691. </dd>
  19692. <dt>&lsquo;<samp>showwhite</samp>&rsquo;</dt>
  19693. <dd><p>Show white point on CIE diagram, by default disabled.
  19694. </p>
  19695. </dd>
  19696. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  19697. <dd><p>Set input gamma. Used only with XYZ input color space.
  19698. </p></dd>
  19699. </dl>
  19700. <a name="codecview"></a>
  19701. <h2 class="section"><a href="ffprobe-all.html#toc-codecview">32.22 codecview</a></h2>
  19702. <p>Visualize information exported by some codecs.
  19703. </p>
  19704. <p>Some codecs can export information through frames using side-data or other
  19705. means. For example, some MPEG based codecs export motion vectors through the
  19706. <var>export_mvs</var> flag in the codec &lsquo;<samp>flags2</samp>&rsquo; option.
  19707. </p>
  19708. <p>The filter accepts the following option:
  19709. </p>
  19710. <dl compact="compact">
  19711. <dt>&lsquo;<samp>mv</samp>&rsquo;</dt>
  19712. <dd><p>Set motion vectors to visualize.
  19713. </p>
  19714. <p>Available flags for <var>mv</var> are:
  19715. </p>
  19716. <dl compact="compact">
  19717. <dt>&lsquo;<samp>pf</samp>&rsquo;</dt>
  19718. <dd><p>forward predicted MVs of P-frames
  19719. </p></dd>
  19720. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  19721. <dd><p>forward predicted MVs of B-frames
  19722. </p></dd>
  19723. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  19724. <dd><p>backward predicted MVs of B-frames
  19725. </p></dd>
  19726. </dl>
  19727. </dd>
  19728. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  19729. <dd><p>Display quantization parameters using the chroma planes.
  19730. </p>
  19731. </dd>
  19732. <dt>&lsquo;<samp>mv_type, mvt</samp>&rsquo;</dt>
  19733. <dd><p>Set motion vectors type to visualize. Includes MVs from all frames unless specified by <var>frame_type</var> option.
  19734. </p>
  19735. <p>Available flags for <var>mv_type</var> are:
  19736. </p>
  19737. <dl compact="compact">
  19738. <dt>&lsquo;<samp>fp</samp>&rsquo;</dt>
  19739. <dd><p>forward predicted MVs
  19740. </p></dd>
  19741. <dt>&lsquo;<samp>bp</samp>&rsquo;</dt>
  19742. <dd><p>backward predicted MVs
  19743. </p></dd>
  19744. </dl>
  19745. </dd>
  19746. <dt>&lsquo;<samp>frame_type, ft</samp>&rsquo;</dt>
  19747. <dd><p>Set frame type to visualize motion vectors of.
  19748. </p>
  19749. <p>Available flags for <var>frame_type</var> are:
  19750. </p>
  19751. <dl compact="compact">
  19752. <dt>&lsquo;<samp>if</samp>&rsquo;</dt>
  19753. <dd><p>intra-coded frames (I-frames)
  19754. </p></dd>
  19755. <dt>&lsquo;<samp>pf</samp>&rsquo;</dt>
  19756. <dd><p>predicted frames (P-frames)
  19757. </p></dd>
  19758. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  19759. <dd><p>bi-directionally predicted frames (B-frames)
  19760. </p></dd>
  19761. </dl>
  19762. </dd>
  19763. </dl>
  19764. <a name="Examples-94"></a>
  19765. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-94">32.22.1 Examples</a></h3>
  19766. <ul>
  19767. <li>
  19768. Visualize forward predicted MVs of all frames using <code>ffplay</code>:
  19769. <div class="example">
  19770. <pre class="example">ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv_type=fp
  19771. </pre></div>
  19772. </li><li>
  19773. Visualize multi-directionals MVs of P and B-Frames using <code>ffplay</code>:
  19774. <div class="example">
  19775. <pre class="example">ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv=pf+bf+bb
  19776. </pre></div>
  19777. </li></ul>
  19778. <a name="colorbalance"></a>
  19779. <h2 class="section"><a href="ffprobe-all.html#toc-colorbalance">32.23 colorbalance</a></h2>
  19780. <p>Modify intensity of primary colors (red, green and blue) of input frames.
  19781. </p>
  19782. <p>The filter allows an input frame to be adjusted in the shadows, midtones or highlights
  19783. regions for the red-cyan, green-magenta or blue-yellow balance.
  19784. </p>
  19785. <p>A positive adjustment value shifts the balance towards the primary color, a negative
  19786. value towards the complementary color.
  19787. </p>
  19788. <p>The filter accepts the following options:
  19789. </p>
  19790. <dl compact="compact">
  19791. <dt>&lsquo;<samp>rs</samp>&rsquo;</dt>
  19792. <dt>&lsquo;<samp>gs</samp>&rsquo;</dt>
  19793. <dt>&lsquo;<samp>bs</samp>&rsquo;</dt>
  19794. <dd><p>Adjust red, green and blue shadows (darkest pixels).
  19795. </p>
  19796. </dd>
  19797. <dt>&lsquo;<samp>rm</samp>&rsquo;</dt>
  19798. <dt>&lsquo;<samp>gm</samp>&rsquo;</dt>
  19799. <dt>&lsquo;<samp>bm</samp>&rsquo;</dt>
  19800. <dd><p>Adjust red, green and blue midtones (medium pixels).
  19801. </p>
  19802. </dd>
  19803. <dt>&lsquo;<samp>rh</samp>&rsquo;</dt>
  19804. <dt>&lsquo;<samp>gh</samp>&rsquo;</dt>
  19805. <dt>&lsquo;<samp>bh</samp>&rsquo;</dt>
  19806. <dd><p>Adjust red, green and blue highlights (brightest pixels).
  19807. </p>
  19808. <p>Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>0</code>.
  19809. </p>
  19810. </dd>
  19811. <dt>&lsquo;<samp>pl</samp>&rsquo;</dt>
  19812. <dd><p>Preserve lightness when changing color balance. Default is disabled.
  19813. </p></dd>
  19814. </dl>
  19815. <a name="Examples-148"></a>
  19816. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-148">32.23.1 Examples</a></h3>
  19817. <ul>
  19818. <li>
  19819. Add red color cast to shadows:
  19820. <div class="example">
  19821. <pre class="example">colorbalance=rs=.3
  19822. </pre></div>
  19823. </li></ul>
  19824. <a name="Commands-26"></a>
  19825. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-26">32.23.2 Commands</a></h3>
  19826. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19827. </p>
  19828. <a name="colorchannelmixer"></a>
  19829. <h2 class="section"><a href="ffprobe-all.html#toc-colorchannelmixer">32.24 colorchannelmixer</a></h2>
  19830. <p>Adjust video input frames by re-mixing color channels.
  19831. </p>
  19832. <p>This filter modifies a color channel by adding the values associated to
  19833. the other channels of the same pixels. For example if the value to
  19834. modify is red, the output value will be:
  19835. </p><div class="example">
  19836. <pre class="example"><var>red</var>=<var>red</var>*<var>rr</var> + <var>blue</var>*<var>rb</var> + <var>green</var>*<var>rg</var> + <var>alpha</var>*<var>ra</var>
  19837. </pre></div>
  19838. <p>The filter accepts the following options:
  19839. </p>
  19840. <dl compact="compact">
  19841. <dt>&lsquo;<samp>rr</samp>&rsquo;</dt>
  19842. <dt>&lsquo;<samp>rg</samp>&rsquo;</dt>
  19843. <dt>&lsquo;<samp>rb</samp>&rsquo;</dt>
  19844. <dt>&lsquo;<samp>ra</samp>&rsquo;</dt>
  19845. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output red channel.
  19846. Default is <code>1</code> for <var>rr</var>, and <code>0</code> for <var>rg</var>, <var>rb</var> and <var>ra</var>.
  19847. </p>
  19848. </dd>
  19849. <dt>&lsquo;<samp>gr</samp>&rsquo;</dt>
  19850. <dt>&lsquo;<samp>gg</samp>&rsquo;</dt>
  19851. <dt>&lsquo;<samp>gb</samp>&rsquo;</dt>
  19852. <dt>&lsquo;<samp>ga</samp>&rsquo;</dt>
  19853. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output green channel.
  19854. Default is <code>1</code> for <var>gg</var>, and <code>0</code> for <var>gr</var>, <var>gb</var> and <var>ga</var>.
  19855. </p>
  19856. </dd>
  19857. <dt>&lsquo;<samp>br</samp>&rsquo;</dt>
  19858. <dt>&lsquo;<samp>bg</samp>&rsquo;</dt>
  19859. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  19860. <dt>&lsquo;<samp>ba</samp>&rsquo;</dt>
  19861. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output blue channel.
  19862. Default is <code>1</code> for <var>bb</var>, and <code>0</code> for <var>br</var>, <var>bg</var> and <var>ba</var>.
  19863. </p>
  19864. </dd>
  19865. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  19866. <dt>&lsquo;<samp>ag</samp>&rsquo;</dt>
  19867. <dt>&lsquo;<samp>ab</samp>&rsquo;</dt>
  19868. <dt>&lsquo;<samp>aa</samp>&rsquo;</dt>
  19869. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output alpha channel.
  19870. Default is <code>1</code> for <var>aa</var>, and <code>0</code> for <var>ar</var>, <var>ag</var> and <var>ab</var>.
  19871. </p>
  19872. <p>Allowed ranges for options are <code>[-2.0, 2.0]</code>.
  19873. </p></dd>
  19874. </dl>
  19875. <a name="Examples-143"></a>
  19876. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-143">32.24.1 Examples</a></h3>
  19877. <ul>
  19878. <li>
  19879. Convert source to grayscale:
  19880. <div class="example">
  19881. <pre class="example">colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3
  19882. </pre></div>
  19883. </li><li>
  19884. Simulate sepia tones:
  19885. <div class="example">
  19886. <pre class="example">colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131
  19887. </pre></div>
  19888. </li></ul>
  19889. <a name="Commands-66"></a>
  19890. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-66">32.24.2 Commands</a></h3>
  19891. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19892. </p>
  19893. <a name="colorkey"></a>
  19894. <h2 class="section"><a href="ffprobe-all.html#toc-colorkey">32.25 colorkey</a></h2>
  19895. <p>RGB colorspace color keying.
  19896. </p>
  19897. <p>The filter accepts the following options:
  19898. </p>
  19899. <dl compact="compact">
  19900. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19901. <dd><p>The color which will be replaced with transparency.
  19902. </p>
  19903. </dd>
  19904. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19905. <dd><p>Similarity percentage with the key color.
  19906. </p>
  19907. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  19908. </p>
  19909. </dd>
  19910. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19911. <dd><p>Blend percentage.
  19912. </p>
  19913. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  19914. </p>
  19915. <p>Higher values result in semi-transparent pixels, with a higher transparency
  19916. the more similar the pixels color is to the key color.
  19917. </p></dd>
  19918. </dl>
  19919. <a name="Examples-104"></a>
  19920. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-104">32.25.1 Examples</a></h3>
  19921. <ul>
  19922. <li>
  19923. Make every green pixel in the input image transparent:
  19924. <div class="example">
  19925. <pre class="example">ffmpeg -i input.png -vf colorkey=green out.png
  19926. </pre></div>
  19927. </li><li>
  19928. Overlay a greenscreen-video on top of a static background image.
  19929. <div class="example">
  19930. <pre class="example">ffmpeg -i background.png -i video.mp4 -filter_complex &quot;[1:v]colorkey=0x3BBD1E:0.3:0.2[ckout];[0:v][ckout]overlay[out]&quot; -map &quot;[out]&quot; output.flv
  19931. </pre></div>
  19932. </li></ul>
  19933. <a name="Commands"></a>
  19934. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands">32.25.2 Commands</a></h3>
  19935. <p>This filter supports same <a href="#commands">commands</a> as options.
  19936. The command accepts the same syntax of the corresponding option.
  19937. </p>
  19938. <p>If the specified expression is not valid, it is kept at its current
  19939. value.
  19940. </p>
  19941. <a name="colorhold"></a>
  19942. <h2 class="section"><a href="ffprobe-all.html#toc-colorhold">32.26 colorhold</a></h2>
  19943. <p>Remove all color information for all RGB colors except for certain one.
  19944. </p>
  19945. <p>The filter accepts the following options:
  19946. </p>
  19947. <dl compact="compact">
  19948. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19949. <dd><p>The color which will not be replaced with neutral gray.
  19950. </p>
  19951. </dd>
  19952. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19953. <dd><p>Similarity percentage with the above color.
  19954. 0.01 matches only the exact key color, while 1.0 matches everything.
  19955. </p>
  19956. </dd>
  19957. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19958. <dd><p>Blend percentage. 0.0 makes pixels fully gray.
  19959. Higher values result in more preserved color.
  19960. </p></dd>
  19961. </dl>
  19962. <a name="Commands-63"></a>
  19963. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-63">32.26.1 Commands</a></h3>
  19964. <p>This filter supports same <a href="#commands">commands</a> as options.
  19965. The command accepts the same syntax of the corresponding option.
  19966. </p>
  19967. <p>If the specified expression is not valid, it is kept at its current
  19968. value.
  19969. </p>
  19970. <a name="colorlevels"></a>
  19971. <h2 class="section"><a href="ffprobe-all.html#toc-colorlevels">32.27 colorlevels</a></h2>
  19972. <p>Adjust video input frames using levels.
  19973. </p>
  19974. <p>The filter accepts the following options:
  19975. </p>
  19976. <dl compact="compact">
  19977. <dt>&lsquo;<samp>rimin</samp>&rsquo;</dt>
  19978. <dt>&lsquo;<samp>gimin</samp>&rsquo;</dt>
  19979. <dt>&lsquo;<samp>bimin</samp>&rsquo;</dt>
  19980. <dt>&lsquo;<samp>aimin</samp>&rsquo;</dt>
  19981. <dd><p>Adjust red, green, blue and alpha input black point.
  19982. Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>0</code>.
  19983. </p>
  19984. </dd>
  19985. <dt>&lsquo;<samp>rimax</samp>&rsquo;</dt>
  19986. <dt>&lsquo;<samp>gimax</samp>&rsquo;</dt>
  19987. <dt>&lsquo;<samp>bimax</samp>&rsquo;</dt>
  19988. <dt>&lsquo;<samp>aimax</samp>&rsquo;</dt>
  19989. <dd><p>Adjust red, green, blue and alpha input white point.
  19990. Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>1</code>.
  19991. </p>
  19992. <p>Input levels are used to lighten highlights (bright tones), darken shadows
  19993. (dark tones), change the balance of bright and dark tones.
  19994. </p>
  19995. </dd>
  19996. <dt>&lsquo;<samp>romin</samp>&rsquo;</dt>
  19997. <dt>&lsquo;<samp>gomin</samp>&rsquo;</dt>
  19998. <dt>&lsquo;<samp>bomin</samp>&rsquo;</dt>
  19999. <dt>&lsquo;<samp>aomin</samp>&rsquo;</dt>
  20000. <dd><p>Adjust red, green, blue and alpha output black point.
  20001. Allowed ranges for options are <code>[0, 1.0]</code>. Defaults are <code>0</code>.
  20002. </p>
  20003. </dd>
  20004. <dt>&lsquo;<samp>romax</samp>&rsquo;</dt>
  20005. <dt>&lsquo;<samp>gomax</samp>&rsquo;</dt>
  20006. <dt>&lsquo;<samp>bomax</samp>&rsquo;</dt>
  20007. <dt>&lsquo;<samp>aomax</samp>&rsquo;</dt>
  20008. <dd><p>Adjust red, green, blue and alpha output white point.
  20009. Allowed ranges for options are <code>[0, 1.0]</code>. Defaults are <code>1</code>.
  20010. </p>
  20011. <p>Output levels allows manual selection of a constrained output level range.
  20012. </p></dd>
  20013. </dl>
  20014. <a name="Examples-166"></a>
  20015. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-166">32.27.1 Examples</a></h3>
  20016. <ul>
  20017. <li>
  20018. Make video output darker:
  20019. <div class="example">
  20020. <pre class="example">colorlevels=rimin=0.058:gimin=0.058:bimin=0.058
  20021. </pre></div>
  20022. </li><li>
  20023. Increase contrast:
  20024. <div class="example">
  20025. <pre class="example">colorlevels=rimin=0.039:gimin=0.039:bimin=0.039:rimax=0.96:gimax=0.96:bimax=0.96
  20026. </pre></div>
  20027. </li><li>
  20028. Make video output lighter:
  20029. <div class="example">
  20030. <pre class="example">colorlevels=rimax=0.902:gimax=0.902:bimax=0.902
  20031. </pre></div>
  20032. </li><li>
  20033. Increase brightness:
  20034. <div class="example">
  20035. <pre class="example">colorlevels=romin=0.5:gomin=0.5:bomin=0.5
  20036. </pre></div>
  20037. </li></ul>
  20038. <a name="Commands-22"></a>
  20039. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-22">32.27.2 Commands</a></h3>
  20040. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  20041. </p>
  20042. <a name="colormatrix"></a>
  20043. <h2 class="section"><a href="ffprobe-all.html#toc-colormatrix">32.28 colormatrix</a></h2>
  20044. <p>Convert color matrix.
  20045. </p>
  20046. <p>The filter accepts the following options:
  20047. </p>
  20048. <dl compact="compact">
  20049. <dt>&lsquo;<samp>src</samp>&rsquo;</dt>
  20050. <dt>&lsquo;<samp>dst</samp>&rsquo;</dt>
  20051. <dd><p>Specify the source and destination color matrix. Both values must be
  20052. specified.
  20053. </p>
  20054. <p>The accepted values are:
  20055. </p><dl compact="compact">
  20056. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20057. <dd><p>BT.709
  20058. </p>
  20059. </dd>
  20060. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  20061. <dd><p>FCC
  20062. </p>
  20063. </dd>
  20064. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  20065. <dd><p>BT.601
  20066. </p>
  20067. </dd>
  20068. <dt>&lsquo;<samp>bt470</samp>&rsquo;</dt>
  20069. <dd><p>BT.470
  20070. </p>
  20071. </dd>
  20072. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20073. <dd><p>BT.470BG
  20074. </p>
  20075. </dd>
  20076. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20077. <dd><p>SMPTE-170M
  20078. </p>
  20079. </dd>
  20080. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20081. <dd><p>SMPTE-240M
  20082. </p>
  20083. </dd>
  20084. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  20085. <dd><p>BT.2020
  20086. </p></dd>
  20087. </dl>
  20088. </dd>
  20089. </dl>
  20090. <p>For example to convert from BT.601 to SMPTE-240M, use the command:
  20091. </p><div class="example">
  20092. <pre class="example">colormatrix=bt601:smpte240m
  20093. </pre></div>
  20094. <a name="colorspace"></a>
  20095. <h2 class="section"><a href="ffprobe-all.html#toc-colorspace">32.29 colorspace</a></h2>
  20096. <p>Convert colorspace, transfer characteristics or color primaries.
  20097. Input video needs to have an even size.
  20098. </p>
  20099. <p>The filter accepts the following options:
  20100. </p>
  20101. <dl compact="compact">
  20102. <dd><p><a name="all"></a>
  20103. </p></dd>
  20104. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  20105. <dd><p>Specify all color properties at once.
  20106. </p>
  20107. <p>The accepted values are:
  20108. </p><dl compact="compact">
  20109. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  20110. <dd><p>BT.470M
  20111. </p>
  20112. </dd>
  20113. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20114. <dd><p>BT.470BG
  20115. </p>
  20116. </dd>
  20117. <dt>&lsquo;<samp>bt601-6-525</samp>&rsquo;</dt>
  20118. <dd><p>BT.601-6 525
  20119. </p>
  20120. </dd>
  20121. <dt>&lsquo;<samp>bt601-6-625</samp>&rsquo;</dt>
  20122. <dd><p>BT.601-6 625
  20123. </p>
  20124. </dd>
  20125. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20126. <dd><p>BT.709
  20127. </p>
  20128. </dd>
  20129. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20130. <dd><p>SMPTE-170M
  20131. </p>
  20132. </dd>
  20133. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20134. <dd><p>SMPTE-240M
  20135. </p>
  20136. </dd>
  20137. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  20138. <dd><p>BT.2020
  20139. </p>
  20140. </dd>
  20141. </dl>
  20142. <p><a name="space"></a>
  20143. </p></dd>
  20144. <dt>&lsquo;<samp>space</samp>&rsquo;</dt>
  20145. <dd><p>Specify output colorspace.
  20146. </p>
  20147. <p>The accepted values are:
  20148. </p><dl compact="compact">
  20149. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20150. <dd><p>BT.709
  20151. </p>
  20152. </dd>
  20153. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  20154. <dd><p>FCC
  20155. </p>
  20156. </dd>
  20157. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20158. <dd><p>BT.470BG or BT.601-6 625
  20159. </p>
  20160. </dd>
  20161. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20162. <dd><p>SMPTE-170M or BT.601-6 525
  20163. </p>
  20164. </dd>
  20165. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20166. <dd><p>SMPTE-240M
  20167. </p>
  20168. </dd>
  20169. <dt>&lsquo;<samp>ycgco</samp>&rsquo;</dt>
  20170. <dd><p>YCgCo
  20171. </p>
  20172. </dd>
  20173. <dt>&lsquo;<samp>bt2020ncl</samp>&rsquo;</dt>
  20174. <dd><p>BT.2020 with non-constant luminance
  20175. </p>
  20176. </dd>
  20177. </dl>
  20178. <p><a name="trc"></a>
  20179. </p></dd>
  20180. <dt>&lsquo;<samp>trc</samp>&rsquo;</dt>
  20181. <dd><p>Specify output transfer characteristics.
  20182. </p>
  20183. <p>The accepted values are:
  20184. </p><dl compact="compact">
  20185. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20186. <dd><p>BT.709
  20187. </p>
  20188. </dd>
  20189. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  20190. <dd><p>BT.470M
  20191. </p>
  20192. </dd>
  20193. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20194. <dd><p>BT.470BG
  20195. </p>
  20196. </dd>
  20197. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  20198. <dd><p>Constant gamma of 2.2
  20199. </p>
  20200. </dd>
  20201. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  20202. <dd><p>Constant gamma of 2.8
  20203. </p>
  20204. </dd>
  20205. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20206. <dd><p>SMPTE-170M, BT.601-6 625 or BT.601-6 525
  20207. </p>
  20208. </dd>
  20209. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20210. <dd><p>SMPTE-240M
  20211. </p>
  20212. </dd>
  20213. <dt>&lsquo;<samp>srgb</samp>&rsquo;</dt>
  20214. <dd><p>SRGB
  20215. </p>
  20216. </dd>
  20217. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  20218. <dd><p>iec61966-2-1
  20219. </p>
  20220. </dd>
  20221. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  20222. <dd><p>iec61966-2-4
  20223. </p>
  20224. </dd>
  20225. <dt>&lsquo;<samp>xvycc</samp>&rsquo;</dt>
  20226. <dd><p>xvycc
  20227. </p>
  20228. </dd>
  20229. <dt>&lsquo;<samp>bt2020-10</samp>&rsquo;</dt>
  20230. <dd><p>BT.2020 for 10-bits content
  20231. </p>
  20232. </dd>
  20233. <dt>&lsquo;<samp>bt2020-12</samp>&rsquo;</dt>
  20234. <dd><p>BT.2020 for 12-bits content
  20235. </p>
  20236. </dd>
  20237. </dl>
  20238. <p><a name="primaries"></a>
  20239. </p></dd>
  20240. <dt>&lsquo;<samp>primaries</samp>&rsquo;</dt>
  20241. <dd><p>Specify output color primaries.
  20242. </p>
  20243. <p>The accepted values are:
  20244. </p><dl compact="compact">
  20245. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20246. <dd><p>BT.709
  20247. </p>
  20248. </dd>
  20249. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  20250. <dd><p>BT.470M
  20251. </p>
  20252. </dd>
  20253. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20254. <dd><p>BT.470BG or BT.601-6 625
  20255. </p>
  20256. </dd>
  20257. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20258. <dd><p>SMPTE-170M or BT.601-6 525
  20259. </p>
  20260. </dd>
  20261. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20262. <dd><p>SMPTE-240M
  20263. </p>
  20264. </dd>
  20265. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  20266. <dd><p>film
  20267. </p>
  20268. </dd>
  20269. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  20270. <dd><p>SMPTE-431
  20271. </p>
  20272. </dd>
  20273. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  20274. <dd><p>SMPTE-432
  20275. </p>
  20276. </dd>
  20277. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  20278. <dd><p>BT.2020
  20279. </p>
  20280. </dd>
  20281. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  20282. <dd><p>JEDEC P22 phosphors
  20283. </p>
  20284. </dd>
  20285. </dl>
  20286. <p><a name="range"></a>
  20287. </p></dd>
  20288. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  20289. <dd><p>Specify output color range.
  20290. </p>
  20291. <p>The accepted values are:
  20292. </p><dl compact="compact">
  20293. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  20294. <dd><p>TV (restricted) range
  20295. </p>
  20296. </dd>
  20297. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  20298. <dd><p>MPEG (restricted) range
  20299. </p>
  20300. </dd>
  20301. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  20302. <dd><p>PC (full) range
  20303. </p>
  20304. </dd>
  20305. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  20306. <dd><p>JPEG (full) range
  20307. </p>
  20308. </dd>
  20309. </dl>
  20310. </dd>
  20311. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  20312. <dd><p>Specify output color format.
  20313. </p>
  20314. <p>The accepted values are:
  20315. </p><dl compact="compact">
  20316. <dt>&lsquo;<samp>yuv420p</samp>&rsquo;</dt>
  20317. <dd><p>YUV 4:2:0 planar 8-bits
  20318. </p>
  20319. </dd>
  20320. <dt>&lsquo;<samp>yuv420p10</samp>&rsquo;</dt>
  20321. <dd><p>YUV 4:2:0 planar 10-bits
  20322. </p>
  20323. </dd>
  20324. <dt>&lsquo;<samp>yuv420p12</samp>&rsquo;</dt>
  20325. <dd><p>YUV 4:2:0 planar 12-bits
  20326. </p>
  20327. </dd>
  20328. <dt>&lsquo;<samp>yuv422p</samp>&rsquo;</dt>
  20329. <dd><p>YUV 4:2:2 planar 8-bits
  20330. </p>
  20331. </dd>
  20332. <dt>&lsquo;<samp>yuv422p10</samp>&rsquo;</dt>
  20333. <dd><p>YUV 4:2:2 planar 10-bits
  20334. </p>
  20335. </dd>
  20336. <dt>&lsquo;<samp>yuv422p12</samp>&rsquo;</dt>
  20337. <dd><p>YUV 4:2:2 planar 12-bits
  20338. </p>
  20339. </dd>
  20340. <dt>&lsquo;<samp>yuv444p</samp>&rsquo;</dt>
  20341. <dd><p>YUV 4:4:4 planar 8-bits
  20342. </p>
  20343. </dd>
  20344. <dt>&lsquo;<samp>yuv444p10</samp>&rsquo;</dt>
  20345. <dd><p>YUV 4:4:4 planar 10-bits
  20346. </p>
  20347. </dd>
  20348. <dt>&lsquo;<samp>yuv444p12</samp>&rsquo;</dt>
  20349. <dd><p>YUV 4:4:4 planar 12-bits
  20350. </p>
  20351. </dd>
  20352. </dl>
  20353. </dd>
  20354. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  20355. <dd><p>Do a fast conversion, which skips gamma/primary correction. This will take
  20356. significantly less CPU, but will be mathematically incorrect. To get output
  20357. compatible with that produced by the colormatrix filter, use fast=1.
  20358. </p>
  20359. </dd>
  20360. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  20361. <dd><p>Specify dithering mode.
  20362. </p>
  20363. <p>The accepted values are:
  20364. </p><dl compact="compact">
  20365. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  20366. <dd><p>No dithering
  20367. </p>
  20368. </dd>
  20369. <dt>&lsquo;<samp>fsb</samp>&rsquo;</dt>
  20370. <dd><p>Floyd-Steinberg dithering
  20371. </p></dd>
  20372. </dl>
  20373. </dd>
  20374. <dt>&lsquo;<samp>wpadapt</samp>&rsquo;</dt>
  20375. <dd><p>Whitepoint adaptation mode.
  20376. </p>
  20377. <p>The accepted values are:
  20378. </p><dl compact="compact">
  20379. <dt>&lsquo;<samp>bradford</samp>&rsquo;</dt>
  20380. <dd><p>Bradford whitepoint adaptation
  20381. </p>
  20382. </dd>
  20383. <dt>&lsquo;<samp>vonkries</samp>&rsquo;</dt>
  20384. <dd><p>von Kries whitepoint adaptation
  20385. </p>
  20386. </dd>
  20387. <dt>&lsquo;<samp>identity</samp>&rsquo;</dt>
  20388. <dd><p>identity whitepoint adaptation (i.e. no whitepoint adaptation)
  20389. </p></dd>
  20390. </dl>
  20391. </dd>
  20392. <dt>&lsquo;<samp>iall</samp>&rsquo;</dt>
  20393. <dd><p>Override all input properties at once. Same accepted values as <a href="#all">all</a>.
  20394. </p>
  20395. </dd>
  20396. <dt>&lsquo;<samp>ispace</samp>&rsquo;</dt>
  20397. <dd><p>Override input colorspace. Same accepted values as <a href="#space">space</a>.
  20398. </p>
  20399. </dd>
  20400. <dt>&lsquo;<samp>iprimaries</samp>&rsquo;</dt>
  20401. <dd><p>Override input color primaries. Same accepted values as <a href="#primaries">primaries</a>.
  20402. </p>
  20403. </dd>
  20404. <dt>&lsquo;<samp>itrc</samp>&rsquo;</dt>
  20405. <dd><p>Override input transfer characteristics. Same accepted values as <a href="#trc">trc</a>.
  20406. </p>
  20407. </dd>
  20408. <dt>&lsquo;<samp>irange</samp>&rsquo;</dt>
  20409. <dd><p>Override input color range. Same accepted values as <a href="#range">range</a>.
  20410. </p>
  20411. </dd>
  20412. </dl>
  20413. <p>The filter converts the transfer characteristics, color space and color
  20414. primaries to the specified user values. The output value, if not specified,
  20415. is set to a default value based on the &quot;all&quot; property. If that property is
  20416. also not specified, the filter will log an error. The output color range and
  20417. format default to the same value as the input color range and format. The
  20418. input transfer characteristics, color space, color primaries and color range
  20419. should be set on the input data. If any of these are missing, the filter will
  20420. log an error and no conversion will take place.
  20421. </p>
  20422. <p>For example to convert the input to SMPTE-240M, use the command:
  20423. </p><div class="example">
  20424. <pre class="example">colorspace=smpte240m
  20425. </pre></div>
  20426. <a name="convolution"></a>
  20427. <h2 class="section"><a href="ffprobe-all.html#toc-convolution">32.30 convolution</a></h2>
  20428. <p>Apply convolution of 3x3, 5x5, 7x7 or horizontal/vertical up to 49 elements.
  20429. </p>
  20430. <p>The filter accepts the following options:
  20431. </p>
  20432. <dl compact="compact">
  20433. <dt>&lsquo;<samp>0m</samp>&rsquo;</dt>
  20434. <dt>&lsquo;<samp>1m</samp>&rsquo;</dt>
  20435. <dt>&lsquo;<samp>2m</samp>&rsquo;</dt>
  20436. <dt>&lsquo;<samp>3m</samp>&rsquo;</dt>
  20437. <dd><p>Set matrix for each plane.
  20438. Matrix is sequence of 9, 25 or 49 signed integers in <var>square</var> mode,
  20439. and from 1 to 49 odd number of signed integers in <var>row</var> mode.
  20440. </p>
  20441. </dd>
  20442. <dt>&lsquo;<samp>0rdiv</samp>&rsquo;</dt>
  20443. <dt>&lsquo;<samp>1rdiv</samp>&rsquo;</dt>
  20444. <dt>&lsquo;<samp>2rdiv</samp>&rsquo;</dt>
  20445. <dt>&lsquo;<samp>3rdiv</samp>&rsquo;</dt>
  20446. <dd><p>Set multiplier for calculated value for each plane.
  20447. If unset or 0, it will be sum of all matrix elements.
  20448. </p>
  20449. </dd>
  20450. <dt>&lsquo;<samp>0bias</samp>&rsquo;</dt>
  20451. <dt>&lsquo;<samp>1bias</samp>&rsquo;</dt>
  20452. <dt>&lsquo;<samp>2bias</samp>&rsquo;</dt>
  20453. <dt>&lsquo;<samp>3bias</samp>&rsquo;</dt>
  20454. <dd><p>Set bias for each plane. This value is added to the result of the multiplication.
  20455. Useful for making the overall image brighter or darker. Default is 0.0.
  20456. </p>
  20457. </dd>
  20458. <dt>&lsquo;<samp>0mode</samp>&rsquo;</dt>
  20459. <dt>&lsquo;<samp>1mode</samp>&rsquo;</dt>
  20460. <dt>&lsquo;<samp>2mode</samp>&rsquo;</dt>
  20461. <dt>&lsquo;<samp>3mode</samp>&rsquo;</dt>
  20462. <dd><p>Set matrix mode for each plane. Can be <var>square</var>, <var>row</var> or <var>column</var>.
  20463. Default is <var>square</var>.
  20464. </p></dd>
  20465. </dl>
  20466. <a name="Examples-61"></a>
  20467. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-61">32.30.1 Examples</a></h3>
  20468. <ul>
  20469. <li>
  20470. Apply sharpen:
  20471. <div class="example">
  20472. <pre class="example">convolution=&quot;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&quot;
  20473. </pre></div>
  20474. </li><li>
  20475. Apply blur:
  20476. <div class="example">
  20477. <pre class="example">convolution=&quot;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&quot;
  20478. </pre></div>
  20479. </li><li>
  20480. Apply edge enhance:
  20481. <div class="example">
  20482. <pre class="example">convolution=&quot;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&quot;
  20483. </pre></div>
  20484. </li><li>
  20485. Apply edge detect:
  20486. <div class="example">
  20487. <pre class="example">convolution=&quot;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&quot;
  20488. </pre></div>
  20489. </li><li>
  20490. Apply laplacian edge detector which includes diagonals:
  20491. <div class="example">
  20492. <pre class="example">convolution=&quot;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&quot;
  20493. </pre></div>
  20494. </li><li>
  20495. Apply emboss:
  20496. <div class="example">
  20497. <pre class="example">convolution=&quot;-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&quot;
  20498. </pre></div>
  20499. </li></ul>
  20500. <a name="convolve"></a>
  20501. <h2 class="section"><a href="ffprobe-all.html#toc-convolve">32.31 convolve</a></h2>
  20502. <p>Apply 2D convolution of video stream in frequency domain using second stream
  20503. as impulse.
  20504. </p>
  20505. <p>The filter accepts the following options:
  20506. </p>
  20507. <dl compact="compact">
  20508. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  20509. <dd><p>Set which planes to process.
  20510. </p>
  20511. </dd>
  20512. <dt>&lsquo;<samp>impulse</samp>&rsquo;</dt>
  20513. <dd><p>Set which impulse video frames will be processed, can be <var>first</var>
  20514. or <var>all</var>. Default is <var>all</var>.
  20515. </p></dd>
  20516. </dl>
  20517. <p>The <code>convolve</code> filter also supports the <a href="#framesync">framesync</a> options.
  20518. </p>
  20519. <a name="copy"></a>
  20520. <h2 class="section"><a href="ffprobe-all.html#toc-copy">32.32 copy</a></h2>
  20521. <p>Copy the input video source unchanged to the output. This is mainly useful for
  20522. testing purposes.
  20523. </p>
  20524. <p><a name="coreimage"></a>
  20525. </p><a name="coreimage-1"></a>
  20526. <h2 class="section"><a href="ffprobe-all.html#toc-coreimage-1">32.33 coreimage</a></h2>
  20527. <p>Video filtering on GPU using Apple&rsquo;s CoreImage API on OSX.
  20528. </p>
  20529. <p>Hardware acceleration is based on an OpenGL context. Usually, this means it is
  20530. processed by video hardware. However, software-based OpenGL implementations
  20531. exist which means there is no guarantee for hardware processing. It depends on
  20532. the respective OSX.
  20533. </p>
  20534. <p>There are many filters and image generators provided by Apple that come with a
  20535. large variety of options. The filter has to be referenced by its name along
  20536. with its options.
  20537. </p>
  20538. <p>The coreimage filter accepts the following options:
  20539. </p><dl compact="compact">
  20540. <dt>&lsquo;<samp>list_filters</samp>&rsquo;</dt>
  20541. <dd><p>List all available filters and generators along with all their respective
  20542. options as well as possible minimum and maximum values along with the default
  20543. values.
  20544. </p><div class="example">
  20545. <pre class="example">list_filters=true
  20546. </pre></div>
  20547. </dd>
  20548. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  20549. <dd><p>Specify all filters by their respective name and options.
  20550. Use <var>list_filters</var> to determine all valid filter names and options.
  20551. Numerical options are specified by a float value and are automatically clamped
  20552. to their respective value range. Vector and color options have to be specified
  20553. by a list of space separated float values. Character escaping has to be done.
  20554. A special option name <code>default</code> is available to use default options for a
  20555. filter.
  20556. </p>
  20557. <p>It is required to specify either <code>default</code> or at least one of the filter options.
  20558. All omitted options are used with their default values.
  20559. The syntax of the filter string is as follows:
  20560. </p><div class="example">
  20561. <pre class="example">filter=&lt;NAME&gt;@&lt;OPTION&gt;=&lt;VALUE&gt;[@&lt;OPTION&gt;=&lt;VALUE&gt;][@...][#&lt;NAME&gt;@&lt;OPTION&gt;=&lt;VALUE&gt;[@&lt;OPTION&gt;=&lt;VALUE&gt;][@...]][#...]
  20562. </pre></div>
  20563. </dd>
  20564. <dt>&lsquo;<samp>output_rect</samp>&rsquo;</dt>
  20565. <dd><p>Specify a rectangle where the output of the filter chain is copied into the
  20566. input image. It is given by a list of space separated float values:
  20567. </p><div class="example">
  20568. <pre class="example">output_rect=x\ y\ width\ height
  20569. </pre></div>
  20570. <p>If not given, the output rectangle equals the dimensions of the input image.
  20571. The output rectangle is automatically cropped at the borders of the input
  20572. image. Negative values are valid for each component.
  20573. </p><div class="example">
  20574. <pre class="example">output_rect=25\ 25\ 100\ 100
  20575. </pre></div>
  20576. </dd>
  20577. </dl>
  20578. <p>Several filters can be chained for successive processing without GPU-HOST
  20579. transfers allowing for fast processing of complex filter chains.
  20580. Currently, only filters with zero (generators) or exactly one (filters) input
  20581. image and one output image are supported. Also, transition filters are not yet
  20582. usable as intended.
  20583. </p>
  20584. <p>Some filters generate output images with additional padding depending on the
  20585. respective filter kernel. The padding is automatically removed to ensure the
  20586. filter output has the same size as the input image.
  20587. </p>
  20588. <p>For image generators, the size of the output image is determined by the
  20589. previous output image of the filter chain or the input image of the whole
  20590. filterchain, respectively. The generators do not use the pixel information of
  20591. this image to generate their output. However, the generated output is
  20592. blended onto this image, resulting in partial or complete coverage of the
  20593. output image.
  20594. </p>
  20595. <p>The <a href="#coreimagesrc">coreimagesrc</a> video source can be used for generating input images
  20596. which are directly fed into the filter chain. By using it, providing input
  20597. images by another video source or an input video is not required.
  20598. </p>
  20599. <a name="Examples-99"></a>
  20600. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-99">32.33.1 Examples</a></h3>
  20601. <ul>
  20602. <li>
  20603. List all filters available:
  20604. <div class="example">
  20605. <pre class="example">coreimage=list_filters=true
  20606. </pre></div>
  20607. </li><li>
  20608. Use the CIBoxBlur filter with default options to blur an image:
  20609. <div class="example">
  20610. <pre class="example">coreimage=filter=CIBoxBlur@default
  20611. </pre></div>
  20612. </li><li>
  20613. Use a filter chain with CISepiaTone at default values and CIVignetteEffect with
  20614. its center at 100x100 and a radius of 50 pixels:
  20615. <div class="example">
  20616. <pre class="example">coreimage=filter=CIBoxBlur@default#CIVignetteEffect@inputCenter=100\ 100@inputRadius=50
  20617. </pre></div>
  20618. </li><li>
  20619. Use nullsrc and CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
  20620. given as complete and escaped command-line for Apple&rsquo;s standard bash shell:
  20621. <div class="example">
  20622. <pre class="example">ffmpeg -f lavfi -i nullsrc=s=100x100,coreimage=filter=CIQRCodeGenerator@inputMessage=https\\\\\://FFmpeg.org/@inputCorrectionLevel=H -frames:v 1 QRCode.png
  20623. </pre></div>
  20624. </li></ul>
  20625. <a name="cover_005frect"></a>
  20626. <h2 class="section"><a href="ffprobe-all.html#toc-cover_005frect">32.34 cover_rect</a></h2>
  20627. <p>Cover a rectangular object
  20628. </p>
  20629. <p>It accepts the following options:
  20630. </p>
  20631. <dl compact="compact">
  20632. <dt>&lsquo;<samp>cover</samp>&rsquo;</dt>
  20633. <dd><p>Filepath of the optional cover image, needs to be in yuv420.
  20634. </p>
  20635. </dd>
  20636. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  20637. <dd><p>Set covering mode.
  20638. </p>
  20639. <p>It accepts the following values:
  20640. </p><dl compact="compact">
  20641. <dt>&lsquo;<samp>cover</samp>&rsquo;</dt>
  20642. <dd><p>cover it by the supplied image
  20643. </p></dd>
  20644. <dt>&lsquo;<samp>blur</samp>&rsquo;</dt>
  20645. <dd><p>cover it by interpolating the surrounding pixels
  20646. </p></dd>
  20647. </dl>
  20648. <p>Default value is <var>blur</var>.
  20649. </p></dd>
  20650. </dl>
  20651. <a name="Examples"></a>
  20652. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples">32.34.1 Examples</a></h3>
  20653. <ul>
  20654. <li>
  20655. Cover a rectangular object by the supplied image of a given video using <code>ffmpeg</code>:
  20656. <div class="example">
  20657. <pre class="example">ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
  20658. </pre></div>
  20659. </li></ul>
  20660. <a name="crop"></a>
  20661. <h2 class="section"><a href="ffprobe-all.html#toc-crop">32.35 crop</a></h2>
  20662. <p>Crop the input video to given dimensions.
  20663. </p>
  20664. <p>It accepts the following parameters:
  20665. </p>
  20666. <dl compact="compact">
  20667. <dt>&lsquo;<samp>w, out_w</samp>&rsquo;</dt>
  20668. <dd><p>The width of the output video. It defaults to <code>iw</code>.
  20669. This expression is evaluated only once during the filter
  20670. configuration, or when the &lsquo;<samp>w</samp>&rsquo; or &lsquo;<samp>out_w</samp>&rsquo; command is sent.
  20671. </p>
  20672. </dd>
  20673. <dt>&lsquo;<samp>h, out_h</samp>&rsquo;</dt>
  20674. <dd><p>The height of the output video. It defaults to <code>ih</code>.
  20675. This expression is evaluated only once during the filter
  20676. configuration, or when the &lsquo;<samp>h</samp>&rsquo; or &lsquo;<samp>out_h</samp>&rsquo; command is sent.
  20677. </p>
  20678. </dd>
  20679. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20680. <dd><p>The horizontal position, in the input video, of the left edge of the output
  20681. video. It defaults to <code>(in_w-out_w)/2</code>.
  20682. This expression is evaluated per-frame.
  20683. </p>
  20684. </dd>
  20685. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20686. <dd><p>The vertical position, in the input video, of the top edge of the output video.
  20687. It defaults to <code>(in_h-out_h)/2</code>.
  20688. This expression is evaluated per-frame.
  20689. </p>
  20690. </dd>
  20691. <dt>&lsquo;<samp>keep_aspect</samp>&rsquo;</dt>
  20692. <dd><p>If set to 1 will force the output display aspect ratio
  20693. to be the same of the input, by changing the output sample aspect
  20694. ratio. It defaults to 0.
  20695. </p>
  20696. </dd>
  20697. <dt>&lsquo;<samp>exact</samp>&rsquo;</dt>
  20698. <dd><p>Enable exact cropping. If enabled, subsampled videos will be cropped at exact
  20699. width/height/x/y as specified and will not be rounded to nearest smaller value.
  20700. It defaults to 0.
  20701. </p></dd>
  20702. </dl>
  20703. <p>The <var>out_w</var>, <var>out_h</var>, <var>x</var>, <var>y</var> parameters are
  20704. expressions containing the following constants:
  20705. </p>
  20706. <dl compact="compact">
  20707. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20708. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20709. <dd><p>The computed values for <var>x</var> and <var>y</var>. They are evaluated for
  20710. each new frame.
  20711. </p>
  20712. </dd>
  20713. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  20714. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  20715. <dd><p>The input width and height.
  20716. </p>
  20717. </dd>
  20718. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  20719. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  20720. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  20721. </p>
  20722. </dd>
  20723. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  20724. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  20725. <dd><p>The output (cropped) width and height.
  20726. </p>
  20727. </dd>
  20728. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  20729. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  20730. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  20731. </p>
  20732. </dd>
  20733. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  20734. <dd><p>same as <var>iw</var> / <var>ih</var>
  20735. </p>
  20736. </dd>
  20737. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  20738. <dd><p>input sample aspect ratio
  20739. </p>
  20740. </dd>
  20741. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  20742. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  20743. </p>
  20744. </dd>
  20745. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  20746. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  20747. <dd><p>horizontal and vertical chroma subsample values. For example for the
  20748. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  20749. </p>
  20750. </dd>
  20751. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  20752. <dd><p>The number of the input frame, starting from 0.
  20753. </p>
  20754. </dd>
  20755. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  20756. <dd><p>the position in the file of the input frame, NAN if unknown
  20757. </p>
  20758. </dd>
  20759. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  20760. <dd><p>The timestamp expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  20761. </p>
  20762. </dd>
  20763. </dl>
  20764. <p>The expression for <var>out_w</var> may depend on the value of <var>out_h</var>,
  20765. and the expression for <var>out_h</var> may depend on <var>out_w</var>, but they
  20766. cannot depend on <var>x</var> and <var>y</var>, as <var>x</var> and <var>y</var> are
  20767. evaluated after <var>out_w</var> and <var>out_h</var>.
  20768. </p>
  20769. <p>The <var>x</var> and <var>y</var> parameters specify the expressions for the
  20770. position of the top-left corner of the output (non-cropped) area. They
  20771. are evaluated for each frame. If the evaluated value is not valid, it
  20772. is approximated to the nearest valid value.
  20773. </p>
  20774. <p>The expression for <var>x</var> may depend on <var>y</var>, and the expression
  20775. for <var>y</var> may depend on <var>x</var>.
  20776. </p>
  20777. <a name="Examples-147"></a>
  20778. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-147">32.35.1 Examples</a></h3>
  20779. <ul>
  20780. <li>
  20781. Crop area with size 100x100 at position (12,34).
  20782. <div class="example">
  20783. <pre class="example">crop=100:100:12:34
  20784. </pre></div>
  20785. <p>Using named options, the example above becomes:
  20786. </p><div class="example">
  20787. <pre class="example">crop=w=100:h=100:x=12:y=34
  20788. </pre></div>
  20789. </li><li>
  20790. Crop the central input area with size 100x100:
  20791. <div class="example">
  20792. <pre class="example">crop=100:100
  20793. </pre></div>
  20794. </li><li>
  20795. Crop the central input area with size 2/3 of the input video:
  20796. <div class="example">
  20797. <pre class="example">crop=2/3*in_w:2/3*in_h
  20798. </pre></div>
  20799. </li><li>
  20800. Crop the input video central square:
  20801. <div class="example">
  20802. <pre class="example">crop=out_w=in_h
  20803. crop=in_h
  20804. </pre></div>
  20805. </li><li>
  20806. Delimit the rectangle with the top-left corner placed at position
  20807. 100:100 and the right-bottom corner corresponding to the right-bottom
  20808. corner of the input image.
  20809. <div class="example">
  20810. <pre class="example">crop=in_w-100:in_h-100:100:100
  20811. </pre></div>
  20812. </li><li>
  20813. Crop 10 pixels from the left and right borders, and 20 pixels from
  20814. the top and bottom borders
  20815. <div class="example">
  20816. <pre class="example">crop=in_w-2*10:in_h-2*20
  20817. </pre></div>
  20818. </li><li>
  20819. Keep only the bottom right quarter of the input image:
  20820. <div class="example">
  20821. <pre class="example">crop=in_w/2:in_h/2:in_w/2:in_h/2
  20822. </pre></div>
  20823. </li><li>
  20824. Crop height for getting Greek harmony:
  20825. <div class="example">
  20826. <pre class="example">crop=in_w:1/PHI*in_w
  20827. </pre></div>
  20828. </li><li>
  20829. Apply trembling effect:
  20830. <div class="example">
  20831. <pre class="example">crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(n/10):(in_h-out_h)/2 +((in_h-out_h)/2)*sin(n/7)
  20832. </pre></div>
  20833. </li><li>
  20834. Apply erratic camera effect depending on timestamp:
  20835. <div class="example">
  20836. <pre class="example">crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(t*10):(in_h-out_h)/2 +((in_h-out_h)/2)*sin(t*13)&quot;
  20837. </pre></div>
  20838. </li><li>
  20839. Set x depending on the value of y:
  20840. <div class="example">
  20841. <pre class="example">crop=in_w/2:in_h/2:y:10+10*sin(n/10)
  20842. </pre></div>
  20843. </li></ul>
  20844. <a name="Commands-68"></a>
  20845. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-68">32.35.2 Commands</a></h3>
  20846. <p>This filter supports the following commands:
  20847. </p><dl compact="compact">
  20848. <dt>&lsquo;<samp>w, out_w</samp>&rsquo;</dt>
  20849. <dt>&lsquo;<samp>h, out_h</samp>&rsquo;</dt>
  20850. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20851. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20852. <dd><p>Set width/height of the output video and the horizontal/vertical position
  20853. in the input video.
  20854. The command accepts the same syntax of the corresponding option.
  20855. </p>
  20856. <p>If the specified expression is not valid, it is kept at its current
  20857. value.
  20858. </p></dd>
  20859. </dl>
  20860. <a name="cropdetect"></a>
  20861. <h2 class="section"><a href="ffprobe-all.html#toc-cropdetect">32.36 cropdetect</a></h2>
  20862. <p>Auto-detect the crop size.
  20863. </p>
  20864. <p>It calculates the necessary cropping parameters and prints the
  20865. recommended parameters via the logging system. The detected dimensions
  20866. correspond to the non-black area of the input video.
  20867. </p>
  20868. <p>It accepts the following parameters:
  20869. </p>
  20870. <dl compact="compact">
  20871. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  20872. <dd><p>Set higher black value threshold, which can be optionally specified
  20873. from nothing (0) to everything (255 for 8-bit based formats). An intensity
  20874. value greater to the set value is considered non-black. It defaults to 24.
  20875. You can also specify a value between 0.0 and 1.0 which will be scaled depending
  20876. on the bitdepth of the pixel format.
  20877. </p>
  20878. </dd>
  20879. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  20880. <dd><p>The value which the width/height should be divisible by. It defaults to
  20881. 16. The offset is automatically adjusted to center the video. Use 2 to
  20882. get only even dimensions (needed for 4:2:2 video). 16 is best when
  20883. encoding to most video codecs.
  20884. </p>
  20885. </dd>
  20886. <dt>&lsquo;<samp>reset_count, reset</samp>&rsquo;</dt>
  20887. <dd><p>Set the counter that determines after how many frames cropdetect will
  20888. reset the previously detected largest video area and start over to
  20889. detect the current optimal crop area. Default value is 0.
  20890. </p>
  20891. <p>This can be useful when channel logos distort the video area. 0
  20892. indicates &rsquo;never reset&rsquo;, and returns the largest area encountered during
  20893. playback.
  20894. </p></dd>
  20895. </dl>
  20896. <p><a name="cue"></a>
  20897. </p><a name="cue-1"></a>
  20898. <h2 class="section"><a href="ffprobe-all.html#toc-cue-1">32.37 cue</a></h2>
  20899. <p>Delay video filtering until a given wallclock timestamp. The filter first
  20900. passes on &lsquo;<samp>preroll</samp>&rsquo; amount of frames, then it buffers at most
  20901. &lsquo;<samp>buffer</samp>&rsquo; amount of frames and waits for the cue. After reaching the cue
  20902. it forwards the buffered frames and also any subsequent frames coming in its
  20903. input.
  20904. </p>
  20905. <p>The filter can be used synchronize the output of multiple ffmpeg processes for
  20906. realtime output devices like decklink. By putting the delay in the filtering
  20907. chain and pre-buffering frames the process can pass on data to output almost
  20908. immediately after the target wallclock timestamp is reached.
  20909. </p>
  20910. <p>Perfect frame accuracy cannot be guaranteed, but the result is good enough for
  20911. some use cases.
  20912. </p>
  20913. <dl compact="compact">
  20914. <dt>&lsquo;<samp>cue</samp>&rsquo;</dt>
  20915. <dd><p>The cue timestamp expressed in a UNIX timestamp in microseconds. Default is 0.
  20916. </p>
  20917. </dd>
  20918. <dt>&lsquo;<samp>preroll</samp>&rsquo;</dt>
  20919. <dd><p>The duration of content to pass on as preroll expressed in seconds. Default is 0.
  20920. </p>
  20921. </dd>
  20922. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  20923. <dd><p>The maximum duration of content to buffer before waiting for the cue expressed
  20924. in seconds. Default is 0.
  20925. </p>
  20926. </dd>
  20927. </dl>
  20928. <p><a name="curves"></a>
  20929. </p><a name="curves-1"></a>
  20930. <h2 class="section"><a href="ffprobe-all.html#toc-curves-1">32.38 curves</a></h2>
  20931. <p>Apply color adjustments using curves.
  20932. </p>
  20933. <p>This filter is similar to the Adobe Photoshop and GIMP curves tools. Each
  20934. component (red, green and blue) has its values defined by <var>N</var> key points
  20935. tied from each other using a smooth curve. The x-axis represents the pixel
  20936. values from the input frame, and the y-axis the new pixel values to be set for
  20937. the output frame.
  20938. </p>
  20939. <p>By default, a component curve is defined by the two points <var>(0;0)</var> and
  20940. <var>(1;1)</var>. This creates a straight line where each original pixel value is
  20941. &quot;adjusted&quot; to its own value, which means no change to the image.
  20942. </p>
  20943. <p>The filter allows you to redefine these two points and add some more. A new
  20944. curve (using a natural cubic spline interpolation) will be define to pass
  20945. smoothly through all these new coordinates. The new defined points needs to be
  20946. strictly increasing over the x-axis, and their <var>x</var> and <var>y</var> values must
  20947. be in the <var>[0;1]</var> interval. If the computed curves happened to go outside
  20948. the vector spaces, the values will be clipped accordingly.
  20949. </p>
  20950. <p>The filter accepts the following options:
  20951. </p>
  20952. <dl compact="compact">
  20953. <dt>&lsquo;<samp>preset</samp>&rsquo;</dt>
  20954. <dd><p>Select one of the available color presets. This option can be used in addition
  20955. to the &lsquo;<samp>r</samp>&rsquo;, &lsquo;<samp>g</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; parameters; in this case, the later
  20956. options takes priority on the preset values.
  20957. Available presets are:
  20958. </p><dl compact="compact">
  20959. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  20960. <dt>&lsquo;<samp>color_negative</samp>&rsquo;</dt>
  20961. <dt>&lsquo;<samp>cross_process</samp>&rsquo;</dt>
  20962. <dt>&lsquo;<samp>darker</samp>&rsquo;</dt>
  20963. <dt>&lsquo;<samp>increase_contrast</samp>&rsquo;</dt>
  20964. <dt>&lsquo;<samp>lighter</samp>&rsquo;</dt>
  20965. <dt>&lsquo;<samp>linear_contrast</samp>&rsquo;</dt>
  20966. <dt>&lsquo;<samp>medium_contrast</samp>&rsquo;</dt>
  20967. <dt>&lsquo;<samp>negative</samp>&rsquo;</dt>
  20968. <dt>&lsquo;<samp>strong_contrast</samp>&rsquo;</dt>
  20969. <dt>&lsquo;<samp>vintage</samp>&rsquo;</dt>
  20970. </dl>
  20971. <p>Default is <code>none</code>.
  20972. </p></dd>
  20973. <dt>&lsquo;<samp>master, m</samp>&rsquo;</dt>
  20974. <dd><p>Set the master key points. These points will define a second pass mapping. It
  20975. is sometimes called a &quot;luminance&quot; or &quot;value&quot; mapping. It can be used with
  20976. &lsquo;<samp>r</samp>&rsquo;, &lsquo;<samp>g</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; or &lsquo;<samp>all</samp>&rsquo; since it acts like a
  20977. post-processing LUT.
  20978. </p></dd>
  20979. <dt>&lsquo;<samp>red, r</samp>&rsquo;</dt>
  20980. <dd><p>Set the key points for the red component.
  20981. </p></dd>
  20982. <dt>&lsquo;<samp>green, g</samp>&rsquo;</dt>
  20983. <dd><p>Set the key points for the green component.
  20984. </p></dd>
  20985. <dt>&lsquo;<samp>blue, b</samp>&rsquo;</dt>
  20986. <dd><p>Set the key points for the blue component.
  20987. </p></dd>
  20988. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  20989. <dd><p>Set the key points for all components (not including master).
  20990. Can be used in addition to the other key points component
  20991. options. In this case, the unset component(s) will fallback on this
  20992. &lsquo;<samp>all</samp>&rsquo; setting.
  20993. </p></dd>
  20994. <dt>&lsquo;<samp>psfile</samp>&rsquo;</dt>
  20995. <dd><p>Specify a Photoshop curves file (<code>.acv</code>) to import the settings from.
  20996. </p></dd>
  20997. <dt>&lsquo;<samp>plot</samp>&rsquo;</dt>
  20998. <dd><p>Save Gnuplot script of the curves in specified file.
  20999. </p></dd>
  21000. </dl>
  21001. <p>To avoid some filtergraph syntax conflicts, each key points list need to be
  21002. defined using the following syntax: <code>x0/y0 x1/y1 x2/y2 ...</code>.
  21003. </p>
  21004. <a name="Examples-75"></a>
  21005. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-75">32.38.1 Examples</a></h3>
  21006. <ul>
  21007. <li>
  21008. Increase slightly the middle level of blue:
  21009. <div class="example">
  21010. <pre class="example">curves=blue='0/0 0.5/0.58 1/1'
  21011. </pre></div>
  21012. </li><li>
  21013. Vintage effect:
  21014. <div class="example">
  21015. <pre class="example">curves=r='0/0.11 .42/.51 1/0.95':g='0/0 0.50/0.48 1/1':b='0/0.22 .49/.44 1/0.8'
  21016. </pre></div>
  21017. <p>Here we obtain the following coordinates for each components:
  21018. </p><dl compact="compact">
  21019. <dt><var>red</var></dt>
  21020. <dd><p><code>(0;0.11) (0.42;0.51) (1;0.95)</code>
  21021. </p></dd>
  21022. <dt><var>green</var></dt>
  21023. <dd><p><code>(0;0) (0.50;0.48) (1;1)</code>
  21024. </p></dd>
  21025. <dt><var>blue</var></dt>
  21026. <dd><p><code>(0;0.22) (0.49;0.44) (1;0.80)</code>
  21027. </p></dd>
  21028. </dl>
  21029. </li><li>
  21030. The previous example can also be achieved with the associated built-in preset:
  21031. <div class="example">
  21032. <pre class="example">curves=preset=vintage
  21033. </pre></div>
  21034. </li><li>
  21035. Or simply:
  21036. <div class="example">
  21037. <pre class="example">curves=vintage
  21038. </pre></div>
  21039. </li><li>
  21040. Use a Photoshop preset and redefine the points of the green component:
  21041. <div class="example">
  21042. <pre class="example">curves=psfile='MyCurvesPresets/purple.acv':green='0/0 0.45/0.53 1/1'
  21043. </pre></div>
  21044. </li><li>
  21045. Check out the curves of the <code>cross_process</code> profile using <code>ffmpeg</code>
  21046. and <code>gnuplot</code>:
  21047. <div class="example">
  21048. <pre class="example">ffmpeg -f lavfi -i color -vf curves=cross_process:plot=/tmp/curves.plt -frames:v 1 -f null -
  21049. gnuplot -p /tmp/curves.plt
  21050. </pre></div>
  21051. </li></ul>
  21052. <a name="datascope"></a>
  21053. <h2 class="section"><a href="ffprobe-all.html#toc-datascope">32.39 datascope</a></h2>
  21054. <p>Video data analysis filter.
  21055. </p>
  21056. <p>This filter shows hexadecimal pixel values of part of video.
  21057. </p>
  21058. <p>The filter accepts the following options:
  21059. </p>
  21060. <dl compact="compact">
  21061. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  21062. <dd><p>Set output video size.
  21063. </p>
  21064. </dd>
  21065. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21066. <dd><p>Set x offset from where to pick pixels.
  21067. </p>
  21068. </dd>
  21069. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21070. <dd><p>Set y offset from where to pick pixels.
  21071. </p>
  21072. </dd>
  21073. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  21074. <dd><p>Set scope mode, can be one of the following:
  21075. </p><dl compact="compact">
  21076. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  21077. <dd><p>Draw hexadecimal pixel values with white color on black background.
  21078. </p>
  21079. </dd>
  21080. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  21081. <dd><p>Draw hexadecimal pixel values with input video pixel color on black
  21082. background.
  21083. </p>
  21084. </dd>
  21085. <dt>&lsquo;<samp>color2</samp>&rsquo;</dt>
  21086. <dd><p>Draw hexadecimal pixel values on color background picked from input video,
  21087. the text color is picked in such way so its always visible.
  21088. </p></dd>
  21089. </dl>
  21090. </dd>
  21091. <dt>&lsquo;<samp>axis</samp>&rsquo;</dt>
  21092. <dd><p>Draw rows and columns numbers on left and top of video.
  21093. </p>
  21094. </dd>
  21095. <dt>&lsquo;<samp>opacity</samp>&rsquo;</dt>
  21096. <dd><p>Set background opacity.
  21097. </p>
  21098. </dd>
  21099. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  21100. <dd><p>Set display number format. Can be <code>hex</code>, or <code>dec</code>. Default is <code>hex</code>.
  21101. </p></dd>
  21102. </dl>
  21103. <a name="dblur"></a>
  21104. <h2 class="section"><a href="ffprobe-all.html#toc-dblur">32.40 dblur</a></h2>
  21105. <p>Apply Directional blur filter.
  21106. </p>
  21107. <p>The filter accepts the following options:
  21108. </p>
  21109. <dl compact="compact">
  21110. <dt>&lsquo;<samp>angle</samp>&rsquo;</dt>
  21111. <dd><p>Set angle of directional blur. Default is <code>45</code>.
  21112. </p>
  21113. </dd>
  21114. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  21115. <dd><p>Set radius of directional blur. Default is <code>5</code>.
  21116. </p>
  21117. </dd>
  21118. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  21119. <dd><p>Set which planes to filter. By default all planes are filtered.
  21120. </p></dd>
  21121. </dl>
  21122. <a name="Commands-52"></a>
  21123. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-52">32.40.1 Commands</a></h3>
  21124. <p>This filter supports same <a href="#commands">commands</a> as options.
  21125. The command accepts the same syntax of the corresponding option.
  21126. </p>
  21127. <p>If the specified expression is not valid, it is kept at its current
  21128. value.
  21129. </p>
  21130. <a name="dctdnoiz"></a>
  21131. <h2 class="section"><a href="ffprobe-all.html#toc-dctdnoiz">32.41 dctdnoiz</a></h2>
  21132. <p>Denoise frames using 2D DCT (frequency domain filtering).
  21133. </p>
  21134. <p>This filter is not designed for real time.
  21135. </p>
  21136. <p>The filter accepts the following options:
  21137. </p>
  21138. <dl compact="compact">
  21139. <dt>&lsquo;<samp>sigma, s</samp>&rsquo;</dt>
  21140. <dd><p>Set the noise sigma constant.
  21141. </p>
  21142. <p>This <var>sigma</var> defines a hard threshold of <code>3 * sigma</code>; every DCT
  21143. coefficient (absolute value) below this threshold with be dropped.
  21144. </p>
  21145. <p>If you need a more advanced filtering, see &lsquo;<samp>expr</samp>&rsquo;.
  21146. </p>
  21147. <p>Default is <code>0</code>.
  21148. </p>
  21149. </dd>
  21150. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  21151. <dd><p>Set number overlapping pixels for each block. Since the filter can be slow, you
  21152. may want to reduce this value, at the cost of a less effective filter and the
  21153. risk of various artefacts.
  21154. </p>
  21155. <p>If the overlapping value doesn&rsquo;t permit processing the whole input width or
  21156. height, a warning will be displayed and according borders won&rsquo;t be denoised.
  21157. </p>
  21158. <p>Default value is <var>blocksize</var>-1, which is the best possible setting.
  21159. </p>
  21160. </dd>
  21161. <dt>&lsquo;<samp>expr, e</samp>&rsquo;</dt>
  21162. <dd><p>Set the coefficient factor expression.
  21163. </p>
  21164. <p>For each coefficient of a DCT block, this expression will be evaluated as a
  21165. multiplier value for the coefficient.
  21166. </p>
  21167. <p>If this is option is set, the &lsquo;<samp>sigma</samp>&rsquo; option will be ignored.
  21168. </p>
  21169. <p>The absolute value of the coefficient can be accessed through the <var>c</var>
  21170. variable.
  21171. </p>
  21172. </dd>
  21173. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  21174. <dd><p>Set the <var>blocksize</var> using the number of bits. <code>1&lt;&lt;<var>n</var></code> defines the
  21175. <var>blocksize</var>, which is the width and height of the processed blocks.
  21176. </p>
  21177. <p>The default value is <var>3</var> (8x8) and can be raised to <var>4</var> for a
  21178. <var>blocksize</var> of 16x16. Note that changing this setting has huge consequences
  21179. on the speed processing. Also, a larger block size does not necessarily means a
  21180. better de-noising.
  21181. </p></dd>
  21182. </dl>
  21183. <a name="Examples-32"></a>
  21184. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-32">32.41.1 Examples</a></h3>
  21185. <p>Apply a denoise with a &lsquo;<samp>sigma</samp>&rsquo; of <code>4.5</code>:
  21186. </p><div class="example">
  21187. <pre class="example">dctdnoiz=4.5
  21188. </pre></div>
  21189. <p>The same operation can be achieved using the expression system:
  21190. </p><div class="example">
  21191. <pre class="example">dctdnoiz=e='gte(c, 4.5*3)'
  21192. </pre></div>
  21193. <p>Violent denoise using a block size of <code>16x16</code>:
  21194. </p><div class="example">
  21195. <pre class="example">dctdnoiz=15:n=4
  21196. </pre></div>
  21197. <a name="deband"></a>
  21198. <h2 class="section"><a href="ffprobe-all.html#toc-deband">32.42 deband</a></h2>
  21199. <p>Remove banding artifacts from input video.
  21200. It works by replacing banded pixels with average value of referenced pixels.
  21201. </p>
  21202. <p>The filter accepts the following options:
  21203. </p>
  21204. <dl compact="compact">
  21205. <dt>&lsquo;<samp>1thr</samp>&rsquo;</dt>
  21206. <dt>&lsquo;<samp>2thr</samp>&rsquo;</dt>
  21207. <dt>&lsquo;<samp>3thr</samp>&rsquo;</dt>
  21208. <dt>&lsquo;<samp>4thr</samp>&rsquo;</dt>
  21209. <dd><p>Set banding detection threshold for each plane. Default is 0.02.
  21210. Valid range is 0.00003 to 0.5.
  21211. If difference between current pixel and reference pixel is less than threshold,
  21212. it will be considered as banded.
  21213. </p>
  21214. </dd>
  21215. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  21216. <dd><p>Banding detection range in pixels. Default is 16. If positive, random number
  21217. in range 0 to set value will be used. If negative, exact absolute value
  21218. will be used.
  21219. The range defines square of four pixels around current pixel.
  21220. </p>
  21221. </dd>
  21222. <dt>&lsquo;<samp>direction, d</samp>&rsquo;</dt>
  21223. <dd><p>Set direction in radians from which four pixel will be compared. If positive,
  21224. random direction from 0 to set direction will be picked. If negative, exact of
  21225. absolute value will be picked. For example direction 0, -PI or -2*PI radians
  21226. will pick only pixels on same row and -PI/2 will pick only pixels on same
  21227. column.
  21228. </p>
  21229. </dd>
  21230. <dt>&lsquo;<samp>blur, b</samp>&rsquo;</dt>
  21231. <dd><p>If enabled, current pixel is compared with average value of all four
  21232. surrounding pixels. The default is enabled. If disabled current pixel is
  21233. compared with all four surrounding pixels. The pixel is considered banded
  21234. if only all four differences with surrounding pixels are less than threshold.
  21235. </p>
  21236. </dd>
  21237. <dt>&lsquo;<samp>coupling, c</samp>&rsquo;</dt>
  21238. <dd><p>If enabled, current pixel is changed if and only if all pixel components are banded,
  21239. e.g. banding detection threshold is triggered for all color components.
  21240. The default is disabled.
  21241. </p></dd>
  21242. </dl>
  21243. <a name="deblock"></a>
  21244. <h2 class="section"><a href="ffprobe-all.html#toc-deblock">32.43 deblock</a></h2>
  21245. <p>Remove blocking artifacts from input video.
  21246. </p>
  21247. <p>The filter accepts the following options:
  21248. </p>
  21249. <dl compact="compact">
  21250. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  21251. <dd><p>Set filter type, can be <var>weak</var> or <var>strong</var>. Default is <var>strong</var>.
  21252. This controls what kind of deblocking is applied.
  21253. </p>
  21254. </dd>
  21255. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  21256. <dd><p>Set size of block, allowed range is from 4 to 512. Default is <var>8</var>.
  21257. </p>
  21258. </dd>
  21259. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  21260. <dt>&lsquo;<samp>beta</samp>&rsquo;</dt>
  21261. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  21262. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  21263. <dd><p>Set blocking detection thresholds. Allowed range is 0 to 1.
  21264. Defaults are: <var>0.098</var> for <var>alpha</var> and <var>0.05</var> for the rest.
  21265. Using higher threshold gives more deblocking strength.
  21266. Setting <var>alpha</var> controls threshold detection at exact edge of block.
  21267. Remaining options controls threshold detection near the edge. Each one for
  21268. below/above or left/right. Setting any of those to <var>0</var> disables
  21269. deblocking.
  21270. </p>
  21271. </dd>
  21272. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  21273. <dd><p>Set planes to filter. Default is to filter all available planes.
  21274. </p></dd>
  21275. </dl>
  21276. <a name="Examples-97"></a>
  21277. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-97">32.43.1 Examples</a></h3>
  21278. <ul>
  21279. <li>
  21280. Deblock using weak filter and block size of 4 pixels.
  21281. <div class="example">
  21282. <pre class="example">deblock=filter=weak:block=4
  21283. </pre></div>
  21284. </li><li>
  21285. Deblock using strong filter, block size of 4 pixels and custom thresholds for
  21286. deblocking more edges.
  21287. <div class="example">
  21288. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05
  21289. </pre></div>
  21290. </li><li>
  21291. Similar as above, but filter only first plane.
  21292. <div class="example">
  21293. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=1
  21294. </pre></div>
  21295. </li><li>
  21296. Similar as above, but filter only second and third plane.
  21297. <div class="example">
  21298. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=6
  21299. </pre></div>
  21300. </li></ul>
  21301. <p><a name="decimate"></a>
  21302. </p><a name="decimate-1"></a>
  21303. <h2 class="section"><a href="ffprobe-all.html#toc-decimate-1">32.44 decimate</a></h2>
  21304. <p>Drop duplicated frames at regular intervals.
  21305. </p>
  21306. <p>The filter accepts the following options:
  21307. </p>
  21308. <dl compact="compact">
  21309. <dt>&lsquo;<samp>cycle</samp>&rsquo;</dt>
  21310. <dd><p>Set the number of frames from which one will be dropped. Setting this to
  21311. <var>N</var> means one frame in every batch of <var>N</var> frames will be dropped.
  21312. Default is <code>5</code>.
  21313. </p>
  21314. </dd>
  21315. <dt>&lsquo;<samp>dupthresh</samp>&rsquo;</dt>
  21316. <dd><p>Set the threshold for duplicate detection. If the difference metric for a frame
  21317. is less than or equal to this value, then it is declared as duplicate. Default
  21318. is <code>1.1</code>
  21319. </p>
  21320. </dd>
  21321. <dt>&lsquo;<samp>scthresh</samp>&rsquo;</dt>
  21322. <dd><p>Set scene change threshold. Default is <code>15</code>.
  21323. </p>
  21324. </dd>
  21325. <dt>&lsquo;<samp>blockx</samp>&rsquo;</dt>
  21326. <dt>&lsquo;<samp>blocky</samp>&rsquo;</dt>
  21327. <dd><p>Set the size of the x and y-axis blocks used during metric calculations.
  21328. Larger blocks give better noise suppression, but also give worse detection of
  21329. small movements. Must be a power of two. Default is <code>32</code>.
  21330. </p>
  21331. </dd>
  21332. <dt>&lsquo;<samp>ppsrc</samp>&rsquo;</dt>
  21333. <dd><p>Mark main input as a pre-processed input and activate clean source input
  21334. stream. This allows the input to be pre-processed with various filters to help
  21335. the metrics calculation while keeping the frame selection lossless. When set to
  21336. <code>1</code>, the first stream is for the pre-processed input, and the second
  21337. stream is the clean source from where the kept frames are chosen. Default is
  21338. <code>0</code>.
  21339. </p>
  21340. </dd>
  21341. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  21342. <dd><p>Set whether or not chroma is considered in the metric calculations. Default is
  21343. <code>1</code>.
  21344. </p></dd>
  21345. </dl>
  21346. <a name="deconvolve"></a>
  21347. <h2 class="section"><a href="ffprobe-all.html#toc-deconvolve">32.45 deconvolve</a></h2>
  21348. <p>Apply 2D deconvolution of video stream in frequency domain using second stream
  21349. as impulse.
  21350. </p>
  21351. <p>The filter accepts the following options:
  21352. </p>
  21353. <dl compact="compact">
  21354. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  21355. <dd><p>Set which planes to process.
  21356. </p>
  21357. </dd>
  21358. <dt>&lsquo;<samp>impulse</samp>&rsquo;</dt>
  21359. <dd><p>Set which impulse video frames will be processed, can be <var>first</var>
  21360. or <var>all</var>. Default is <var>all</var>.
  21361. </p>
  21362. </dd>
  21363. <dt>&lsquo;<samp>noise</samp>&rsquo;</dt>
  21364. <dd><p>Set noise when doing divisions. Default is <var>0.0000001</var>. Useful when width
  21365. and height are not same and not power of 2 or if stream prior to convolving
  21366. had noise.
  21367. </p></dd>
  21368. </dl>
  21369. <p>The <code>deconvolve</code> filter also supports the <a href="#framesync">framesync</a> options.
  21370. </p>
  21371. <a name="dedot"></a>
  21372. <h2 class="section"><a href="ffprobe-all.html#toc-dedot">32.46 dedot</a></h2>
  21373. <p>Reduce cross-luminance (dot-crawl) and cross-color (rainbows) from video.
  21374. </p>
  21375. <p>It accepts the following options:
  21376. </p>
  21377. <dl compact="compact">
  21378. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  21379. <dd><p>Set mode of operation. Can be combination of <var>dotcrawl</var> for cross-luminance reduction and/or
  21380. <var>rainbows</var> for cross-color reduction.
  21381. </p>
  21382. </dd>
  21383. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  21384. <dd><p>Set spatial luma threshold. Lower values increases reduction of cross-luminance.
  21385. </p>
  21386. </dd>
  21387. <dt>&lsquo;<samp>tl</samp>&rsquo;</dt>
  21388. <dd><p>Set tolerance for temporal luma. Higher values increases reduction of cross-luminance.
  21389. </p>
  21390. </dd>
  21391. <dt>&lsquo;<samp>tc</samp>&rsquo;</dt>
  21392. <dd><p>Set tolerance for chroma temporal variation. Higher values increases reduction of cross-color.
  21393. </p>
  21394. </dd>
  21395. <dt>&lsquo;<samp>ct</samp>&rsquo;</dt>
  21396. <dd><p>Set temporal chroma threshold. Lower values increases reduction of cross-color.
  21397. </p></dd>
  21398. </dl>
  21399. <a name="deflate"></a>
  21400. <h2 class="section"><a href="ffprobe-all.html#toc-deflate">32.47 deflate</a></h2>
  21401. <p>Apply deflate effect to the video.
  21402. </p>
  21403. <p>This filter replaces the pixel by the local(3x3) average by taking into account
  21404. only values lower than the pixel.
  21405. </p>
  21406. <p>It accepts the following options:
  21407. </p>
  21408. <dl compact="compact">
  21409. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  21410. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  21411. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  21412. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  21413. <dd><p>Limit the maximum change for each plane, default is 65535.
  21414. If 0, plane will remain unchanged.
  21415. </p></dd>
  21416. </dl>
  21417. <a name="Commands-12"></a>
  21418. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-12">32.47.1 Commands</a></h3>
  21419. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  21420. </p>
  21421. <a name="deflicker"></a>
  21422. <h2 class="section"><a href="ffprobe-all.html#toc-deflicker">32.48 deflicker</a></h2>
  21423. <p>Remove temporal frame luminance variations.
  21424. </p>
  21425. <p>It accepts the following options:
  21426. </p>
  21427. <dl compact="compact">
  21428. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  21429. <dd><p>Set moving-average filter size in frames. Default is 5. Allowed range is 2 - 129.
  21430. </p>
  21431. </dd>
  21432. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  21433. <dd><p>Set averaging mode to smooth temporal luminance variations.
  21434. </p>
  21435. <p>Available values are:
  21436. </p><dl compact="compact">
  21437. <dt>&lsquo;<samp>am</samp>&rsquo;</dt>
  21438. <dd><p>Arithmetic mean
  21439. </p>
  21440. </dd>
  21441. <dt>&lsquo;<samp>gm</samp>&rsquo;</dt>
  21442. <dd><p>Geometric mean
  21443. </p>
  21444. </dd>
  21445. <dt>&lsquo;<samp>hm</samp>&rsquo;</dt>
  21446. <dd><p>Harmonic mean
  21447. </p>
  21448. </dd>
  21449. <dt>&lsquo;<samp>qm</samp>&rsquo;</dt>
  21450. <dd><p>Quadratic mean
  21451. </p>
  21452. </dd>
  21453. <dt>&lsquo;<samp>cm</samp>&rsquo;</dt>
  21454. <dd><p>Cubic mean
  21455. </p>
  21456. </dd>
  21457. <dt>&lsquo;<samp>pm</samp>&rsquo;</dt>
  21458. <dd><p>Power mean
  21459. </p>
  21460. </dd>
  21461. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  21462. <dd><p>Median
  21463. </p></dd>
  21464. </dl>
  21465. </dd>
  21466. <dt>&lsquo;<samp>bypass</samp>&rsquo;</dt>
  21467. <dd><p>Do not actually modify frame. Useful when one only wants metadata.
  21468. </p></dd>
  21469. </dl>
  21470. <a name="dejudder"></a>
  21471. <h2 class="section"><a href="ffprobe-all.html#toc-dejudder">32.49 dejudder</a></h2>
  21472. <p>Remove judder produced by partially interlaced telecined content.
  21473. </p>
  21474. <p>Judder can be introduced, for instance, by <a href="#pullup">pullup</a> filter. If the original
  21475. source was partially telecined content then the output of <code>pullup,dejudder</code>
  21476. will have a variable frame rate. May change the recorded frame rate of the
  21477. container. Aside from that change, this filter will not affect constant frame
  21478. rate video.
  21479. </p>
  21480. <p>The option available in this filter is:
  21481. </p><dl compact="compact">
  21482. <dt>&lsquo;<samp>cycle</samp>&rsquo;</dt>
  21483. <dd><p>Specify the length of the window over which the judder repeats.
  21484. </p>
  21485. <p>Accepts any integer greater than 1. Useful values are:
  21486. </p><dl compact="compact">
  21487. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  21488. <dd><p>If the original was telecined from 24 to 30 fps (Film to NTSC).
  21489. </p>
  21490. </dd>
  21491. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  21492. <dd><p>If the original was telecined from 25 to 30 fps (PAL to NTSC).
  21493. </p>
  21494. </dd>
  21495. <dt>&lsquo;<samp>20</samp>&rsquo;</dt>
  21496. <dd><p>If a mixture of the two.
  21497. </p></dd>
  21498. </dl>
  21499. <p>The default is &lsquo;<samp>4</samp>&rsquo;.
  21500. </p></dd>
  21501. </dl>
  21502. <a name="delogo"></a>
  21503. <h2 class="section"><a href="ffprobe-all.html#toc-delogo">32.50 delogo</a></h2>
  21504. <p>Suppress a TV station logo by a simple interpolation of the surrounding
  21505. pixels. Just set a rectangle covering the logo and watch it disappear
  21506. (and sometimes something even uglier appear - your mileage may vary).
  21507. </p>
  21508. <p>It accepts the following parameters:
  21509. </p><dl compact="compact">
  21510. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21511. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21512. <dd><p>Specify the top left corner coordinates of the logo. They must be
  21513. specified.
  21514. </p>
  21515. </dd>
  21516. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21517. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21518. <dd><p>Specify the width and height of the logo to clear. They must be
  21519. specified.
  21520. </p>
  21521. </dd>
  21522. <dt>&lsquo;<samp>band, t</samp>&rsquo;</dt>
  21523. <dd><p>Specify the thickness of the fuzzy edge of the rectangle (added to
  21524. <var>w</var> and <var>h</var>). The default value is 1. This option is
  21525. deprecated, setting higher values should no longer be necessary and
  21526. is not recommended.
  21527. </p>
  21528. </dd>
  21529. <dt>&lsquo;<samp>show</samp>&rsquo;</dt>
  21530. <dd><p>When set to 1, a green rectangle is drawn on the screen to simplify
  21531. finding the right <var>x</var>, <var>y</var>, <var>w</var>, and <var>h</var> parameters.
  21532. The default value is 0.
  21533. </p>
  21534. <p>The rectangle is drawn on the outermost pixels which will be (partly)
  21535. replaced with interpolated values. The values of the next pixels
  21536. immediately outside this rectangle in each direction will be used to
  21537. compute the interpolated pixel values inside the rectangle.
  21538. </p>
  21539. </dd>
  21540. </dl>
  21541. <a name="Examples-160"></a>
  21542. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-160">32.50.1 Examples</a></h3>
  21543. <ul>
  21544. <li>
  21545. Set a rectangle covering the area with top left corner coordinates 0,0
  21546. and size 100x77, and a band of size 10:
  21547. <div class="example">
  21548. <pre class="example">delogo=x=0:y=0:w=100:h=77:band=10
  21549. </pre></div>
  21550. </li></ul>
  21551. <p><a name="derain"></a>
  21552. </p><a name="derain-1"></a>
  21553. <h2 class="section"><a href="ffprobe-all.html#toc-derain-1">32.51 derain</a></h2>
  21554. <p>Remove the rain in the input image/video by applying the derain methods based on
  21555. convolutional neural networks. Supported models:
  21556. </p>
  21557. <ul>
  21558. <li>
  21559. Recurrent Squeeze-and-Excitation Context Aggregation Net (RESCAN).
  21560. See <a href="http://openaccess.thecvf.com/content_ECCV_2018/papers/Xia_Li_Recurrent_Squeeze-and-Excitation_Context_ECCV_2018_paper.pdf">http://openaccess.thecvf.com/content_ECCV_2018/papers/Xia_Li_Recurrent_Squeeze-and-Excitation_Context_ECCV_2018_paper.pdf</a>.
  21561. </li></ul>
  21562. <p>Training as well as model generation scripts are provided in
  21563. the repository at <a href="https://github.com/XueweiMeng/derain_filter.git">https://github.com/XueweiMeng/derain_filter.git</a>.
  21564. </p>
  21565. <p>Native model files (.model) can be generated from TensorFlow model
  21566. files (.pb) by using tools/python/convert.py
  21567. </p>
  21568. <p>The filter accepts the following options:
  21569. </p>
  21570. <dl compact="compact">
  21571. <dt>&lsquo;<samp>filter_type</samp>&rsquo;</dt>
  21572. <dd><p>Specify which filter to use. This option accepts the following values:
  21573. </p>
  21574. <dl compact="compact">
  21575. <dt>&lsquo;<samp>derain</samp>&rsquo;</dt>
  21576. <dd><p>Derain filter. To conduct derain filter, you need to use a derain model.
  21577. </p>
  21578. </dd>
  21579. <dt>&lsquo;<samp>dehaze</samp>&rsquo;</dt>
  21580. <dd><p>Dehaze filter. To conduct dehaze filter, you need to use a dehaze model.
  21581. </p></dd>
  21582. </dl>
  21583. <p>Default value is &lsquo;<samp>derain</samp>&rsquo;.
  21584. </p>
  21585. </dd>
  21586. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  21587. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  21588. the following values:
  21589. </p>
  21590. <dl compact="compact">
  21591. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  21592. <dd><p>Native implementation of DNN loading and execution.
  21593. </p>
  21594. </dd>
  21595. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  21596. <dd><p>TensorFlow backend. To enable this backend you
  21597. need to install the TensorFlow for C library (see
  21598. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  21599. <code>--enable-libtensorflow</code>
  21600. </p></dd>
  21601. </dl>
  21602. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  21603. </p>
  21604. </dd>
  21605. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  21606. <dd><p>Set path to model file specifying network architecture and its parameters.
  21607. Note that different backends use different file formats. TensorFlow and native
  21608. backend can load files for only its format.
  21609. </p></dd>
  21610. </dl>
  21611. <p>It can also be finished with <a href="#dnn_005fprocessing">dnn_processing</a> filter.
  21612. </p>
  21613. <a name="deshake"></a>
  21614. <h2 class="section"><a href="ffprobe-all.html#toc-deshake">32.52 deshake</a></h2>
  21615. <p>Attempt to fix small changes in horizontal and/or vertical shift. This
  21616. filter helps remove camera shake from hand-holding a camera, bumping a
  21617. tripod, moving on a vehicle, etc.
  21618. </p>
  21619. <p>The filter accepts the following options:
  21620. </p>
  21621. <dl compact="compact">
  21622. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21623. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21624. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21625. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21626. <dd><p>Specify a rectangular area where to limit the search for motion
  21627. vectors.
  21628. If desired the search for motion vectors can be limited to a
  21629. rectangular area of the frame defined by its top left corner, width
  21630. and height. These parameters have the same meaning as the drawbox
  21631. filter which can be used to visualise the position of the bounding
  21632. box.
  21633. </p>
  21634. <p>This is useful when simultaneous movement of subjects within the frame
  21635. might be confused for camera motion by the motion vector search.
  21636. </p>
  21637. <p>If any or all of <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> are set to -1
  21638. then the full frame is used. This allows later options to be set
  21639. without specifying the bounding box for the motion vector search.
  21640. </p>
  21641. <p>Default - search the whole frame.
  21642. </p>
  21643. </dd>
  21644. <dt>&lsquo;<samp>rx</samp>&rsquo;</dt>
  21645. <dt>&lsquo;<samp>ry</samp>&rsquo;</dt>
  21646. <dd><p>Specify the maximum extent of movement in x and y directions in the
  21647. range 0-64 pixels. Default 16.
  21648. </p>
  21649. </dd>
  21650. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  21651. <dd><p>Specify how to generate pixels to fill blanks at the edge of the
  21652. frame. Available values are:
  21653. </p><dl compact="compact">
  21654. <dt>&lsquo;<samp>blank, 0</samp>&rsquo;</dt>
  21655. <dd><p>Fill zeroes at blank locations
  21656. </p></dd>
  21657. <dt>&lsquo;<samp>original, 1</samp>&rsquo;</dt>
  21658. <dd><p>Original image at blank locations
  21659. </p></dd>
  21660. <dt>&lsquo;<samp>clamp, 2</samp>&rsquo;</dt>
  21661. <dd><p>Extruded edge value at blank locations
  21662. </p></dd>
  21663. <dt>&lsquo;<samp>mirror, 3</samp>&rsquo;</dt>
  21664. <dd><p>Mirrored edge at blank locations
  21665. </p></dd>
  21666. </dl>
  21667. <p>Default value is &lsquo;<samp>mirror</samp>&rsquo;.
  21668. </p>
  21669. </dd>
  21670. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  21671. <dd><p>Specify the blocksize to use for motion search. Range 4-128 pixels,
  21672. default 8.
  21673. </p>
  21674. </dd>
  21675. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  21676. <dd><p>Specify the contrast threshold for blocks. Only blocks with more than
  21677. the specified contrast (difference between darkest and lightest
  21678. pixels) will be considered. Range 1-255, default 125.
  21679. </p>
  21680. </dd>
  21681. <dt>&lsquo;<samp>search</samp>&rsquo;</dt>
  21682. <dd><p>Specify the search strategy. Available values are:
  21683. </p><dl compact="compact">
  21684. <dt>&lsquo;<samp>exhaustive, 0</samp>&rsquo;</dt>
  21685. <dd><p>Set exhaustive search
  21686. </p></dd>
  21687. <dt>&lsquo;<samp>less, 1</samp>&rsquo;</dt>
  21688. <dd><p>Set less exhaustive search.
  21689. </p></dd>
  21690. </dl>
  21691. <p>Default value is &lsquo;<samp>exhaustive</samp>&rsquo;.
  21692. </p>
  21693. </dd>
  21694. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  21695. <dd><p>If set then a detailed log of the motion search is written to the
  21696. specified file.
  21697. </p>
  21698. </dd>
  21699. </dl>
  21700. <a name="despill"></a>
  21701. <h2 class="section"><a href="ffprobe-all.html#toc-despill">32.53 despill</a></h2>
  21702. <p>Remove unwanted contamination of foreground colors, caused by reflected color of
  21703. greenscreen or bluescreen.
  21704. </p>
  21705. <p>This filter accepts the following options:
  21706. </p>
  21707. <dl compact="compact">
  21708. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  21709. <dd><p>Set what type of despill to use.
  21710. </p>
  21711. </dd>
  21712. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  21713. <dd><p>Set how spillmap will be generated.
  21714. </p>
  21715. </dd>
  21716. <dt>&lsquo;<samp>expand</samp>&rsquo;</dt>
  21717. <dd><p>Set how much to get rid of still remaining spill.
  21718. </p>
  21719. </dd>
  21720. <dt>&lsquo;<samp>red</samp>&rsquo;</dt>
  21721. <dd><p>Controls amount of red in spill area.
  21722. </p>
  21723. </dd>
  21724. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  21725. <dd><p>Controls amount of green in spill area.
  21726. Should be -1 for greenscreen.
  21727. </p>
  21728. </dd>
  21729. <dt>&lsquo;<samp>blue</samp>&rsquo;</dt>
  21730. <dd><p>Controls amount of blue in spill area.
  21731. Should be -1 for bluescreen.
  21732. </p>
  21733. </dd>
  21734. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  21735. <dd><p>Controls brightness of spill area, preserving colors.
  21736. </p>
  21737. </dd>
  21738. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  21739. <dd><p>Modify alpha from generated spillmap.
  21740. </p></dd>
  21741. </dl>
  21742. <a name="detelecine"></a>
  21743. <h2 class="section"><a href="ffprobe-all.html#toc-detelecine">32.54 detelecine</a></h2>
  21744. <p>Apply an exact inverse of the telecine operation. It requires a predefined
  21745. pattern specified using the pattern option which must be the same as that passed
  21746. to the telecine filter.
  21747. </p>
  21748. <p>This filter accepts the following options:
  21749. </p>
  21750. <dl compact="compact">
  21751. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  21752. <dd><dl compact="compact">
  21753. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  21754. <dd><p>top field first
  21755. </p></dd>
  21756. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  21757. <dd><p>bottom field first
  21758. The default value is <code>top</code>.
  21759. </p></dd>
  21760. </dl>
  21761. </dd>
  21762. <dt>&lsquo;<samp>pattern</samp>&rsquo;</dt>
  21763. <dd><p>A string of numbers representing the pulldown pattern you wish to apply.
  21764. The default value is <code>23</code>.
  21765. </p>
  21766. </dd>
  21767. <dt>&lsquo;<samp>start_frame</samp>&rsquo;</dt>
  21768. <dd><p>A number representing position of the first frame with respect to the telecine
  21769. pattern. This is to be used if the stream is cut. The default value is <code>0</code>.
  21770. </p></dd>
  21771. </dl>
  21772. <a name="dilation"></a>
  21773. <h2 class="section"><a href="ffprobe-all.html#toc-dilation">32.55 dilation</a></h2>
  21774. <p>Apply dilation effect to the video.
  21775. </p>
  21776. <p>This filter replaces the pixel by the local(3x3) maximum.
  21777. </p>
  21778. <p>It accepts the following options:
  21779. </p>
  21780. <dl compact="compact">
  21781. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  21782. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  21783. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  21784. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  21785. <dd><p>Limit the maximum change for each plane, default is 65535.
  21786. If 0, plane will remain unchanged.
  21787. </p>
  21788. </dd>
  21789. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  21790. <dd><p>Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
  21791. pixels are used.
  21792. </p>
  21793. <p>Flags to local 3x3 coordinates maps like this:
  21794. </p>
  21795. <p> 1 2 3
  21796. 4 5
  21797. 6 7 8
  21798. </p></dd>
  21799. </dl>
  21800. <a name="Commands-61"></a>
  21801. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-61">32.55.1 Commands</a></h3>
  21802. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  21803. </p>
  21804. <a name="displace"></a>
  21805. <h2 class="section"><a href="ffprobe-all.html#toc-displace">32.56 displace</a></h2>
  21806. <p>Displace pixels as indicated by second and third input stream.
  21807. </p>
  21808. <p>It takes three input streams and outputs one stream, the first input is the
  21809. source, and second and third input are displacement maps.
  21810. </p>
  21811. <p>The second input specifies how much to displace pixels along the
  21812. x-axis, while the third input specifies how much to displace pixels
  21813. along the y-axis.
  21814. If one of displacement map streams terminates, last frame from that
  21815. displacement map will be used.
  21816. </p>
  21817. <p>Note that once generated, displacements maps can be reused over and over again.
  21818. </p>
  21819. <p>A description of the accepted options follows.
  21820. </p>
  21821. <dl compact="compact">
  21822. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  21823. <dd><p>Set displace behavior for pixels that are out of range.
  21824. </p>
  21825. <p>Available values are:
  21826. </p><dl compact="compact">
  21827. <dt>&lsquo;<samp>blank</samp>&rsquo;</dt>
  21828. <dd><p>Missing pixels are replaced by black pixels.
  21829. </p>
  21830. </dd>
  21831. <dt>&lsquo;<samp>smear</samp>&rsquo;</dt>
  21832. <dd><p>Adjacent pixels will spread out to replace missing pixels.
  21833. </p>
  21834. </dd>
  21835. <dt>&lsquo;<samp>wrap</samp>&rsquo;</dt>
  21836. <dd><p>Out of range pixels are wrapped so they point to pixels of other side.
  21837. </p>
  21838. </dd>
  21839. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  21840. <dd><p>Out of range pixels will be replaced with mirrored pixels.
  21841. </p></dd>
  21842. </dl>
  21843. <p>Default is &lsquo;<samp>smear</samp>&rsquo;.
  21844. </p>
  21845. </dd>
  21846. </dl>
  21847. <a name="Examples-113"></a>
  21848. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-113">32.56.1 Examples</a></h3>
  21849. <ul>
  21850. <li>
  21851. Add ripple effect to rgb input of video size hd720:
  21852. <div class="example">
  21853. <pre class="example">ffmpeg -i INPUT -f lavfi -i nullsrc=s=hd720,lutrgb=128:128:128 -f lavfi -i nullsrc=s=hd720,geq='r=128+30*sin(2*PI*X/400+T):g=128+30*sin(2*PI*X/400+T):b=128+30*sin(2*PI*X/400+T)' -lavfi '[0][1][2]displace' OUTPUT
  21854. </pre></div>
  21855. </li><li>
  21856. Add wave effect to rgb input of video size hd720:
  21857. <div class="example">
  21858. <pre class="example">ffmpeg -i INPUT -f lavfi -i nullsrc=hd720,geq='r=128+80*(sin(sqrt((X-W/2)*(X-W/2)+(Y-H/2)*(Y-H/2))/220*2*PI+T)):g=128+80*(sin(sqrt((X-W/2)*(X-W/2)+(Y-H/2)*(Y-H/2))/220*2*PI+T)):b=128+80*(sin(sqrt((X-W/2)*(X-W/2)+(Y-H/2)*(Y-H/2))/220*2*PI+T))' -lavfi '[1]split[x][y],[0][x][y]displace' OUTPUT
  21859. </pre></div>
  21860. </li></ul>
  21861. <p><a name="dnn_005fprocessing"></a>
  21862. </p><a name="dnn_005fprocessing-1"></a>
  21863. <h2 class="section"><a href="ffprobe-all.html#toc-dnn_005fprocessing-1">32.57 dnn_processing</a></h2>
  21864. <p>Do image processing with deep neural networks. It works together with another filter
  21865. which converts the pixel format of the Frame to what the dnn network requires.
  21866. </p>
  21867. <p>The filter accepts the following options:
  21868. </p>
  21869. <dl compact="compact">
  21870. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  21871. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  21872. the following values:
  21873. </p>
  21874. <dl compact="compact">
  21875. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  21876. <dd><p>Native implementation of DNN loading and execution.
  21877. </p>
  21878. </dd>
  21879. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  21880. <dd><p>TensorFlow backend. To enable this backend you
  21881. need to install the TensorFlow for C library (see
  21882. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  21883. <code>--enable-libtensorflow</code>
  21884. </p></dd>
  21885. </dl>
  21886. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  21887. </p>
  21888. </dd>
  21889. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  21890. <dd><p>Set path to model file specifying network architecture and its parameters.
  21891. Note that different backends use different file formats. TensorFlow and native
  21892. backend can load files for only its format.
  21893. </p>
  21894. <p>Native model file (.model) can be generated from TensorFlow model file (.pb) by using tools/python/convert.py
  21895. </p>
  21896. </dd>
  21897. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  21898. <dd><p>Set the input name of the dnn network.
  21899. </p>
  21900. </dd>
  21901. <dt>&lsquo;<samp>output</samp>&rsquo;</dt>
  21902. <dd><p>Set the output name of the dnn network.
  21903. </p>
  21904. </dd>
  21905. </dl>
  21906. <a name="Examples-145"></a>
  21907. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-145">32.57.1 Examples</a></h3>
  21908. <ul>
  21909. <li>
  21910. Remove rain in rgb24 frame with can.pb (see <a href="#derain">derain</a> filter):
  21911. <div class="example">
  21912. <pre class="example">./ffmpeg -i rain.jpg -vf format=rgb24,dnn_processing=dnn_backend=tensorflow:model=can.pb:input=x:output=y derain.jpg
  21913. </pre></div>
  21914. </li><li>
  21915. Halve the pixel value of the frame with format gray32f:
  21916. <div class="example">
  21917. <pre class="example">ffmpeg -i input.jpg -vf format=grayf32,dnn_processing=model=halve_gray_float.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png
  21918. </pre></div>
  21919. </li><li>
  21920. Handle the Y channel with srcnn.pb (see <a href="#sr">sr</a> filter) for frame with yuv420p (planar YUV formats supported):
  21921. <div class="example">
  21922. <pre class="example">./ffmpeg -i 480p.jpg -vf format=yuv420p,scale=w=iw*2:h=ih*2,dnn_processing=dnn_backend=tensorflow:model=srcnn.pb:input=x:output=y -y srcnn.jpg
  21923. </pre></div>
  21924. </li><li>
  21925. Handle the Y channel with espcn.pb (see <a href="#sr">sr</a> filter), which changes frame size, for format yuv420p (planar YUV formats supported):
  21926. <div class="example">
  21927. <pre class="example">./ffmpeg -i 480p.jpg -vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y -y tmp.espcn.jpg
  21928. </pre></div>
  21929. </li></ul>
  21930. <a name="drawbox"></a>
  21931. <h2 class="section"><a href="ffprobe-all.html#toc-drawbox">32.58 drawbox</a></h2>
  21932. <p>Draw a colored box on the input image.
  21933. </p>
  21934. <p>It accepts the following parameters:
  21935. </p>
  21936. <dl compact="compact">
  21937. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21938. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21939. <dd><p>The expressions which specify the top left corner coordinates of the box. It defaults to 0.
  21940. </p>
  21941. </dd>
  21942. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  21943. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  21944. <dd><p>The expressions which specify the width and height of the box; if 0 they are interpreted as
  21945. the input width and height. It defaults to 0.
  21946. </p>
  21947. </dd>
  21948. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  21949. <dd><p>Specify the color of the box to write. For the general syntax of this option,
  21950. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>. If the special
  21951. value <code>invert</code> is used, the box edge color is the same as the
  21952. video with inverted luma.
  21953. </p>
  21954. </dd>
  21955. <dt>&lsquo;<samp>thickness, t</samp>&rsquo;</dt>
  21956. <dd><p>The expression which sets the thickness of the box edge.
  21957. A value of <code>fill</code> will create a filled box. Default value is <code>3</code>.
  21958. </p>
  21959. <p>See below for the list of accepted constants.
  21960. </p>
  21961. </dd>
  21962. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  21963. <dd><p>Applicable if the input has alpha. With value <code>1</code>, the pixels of the painted box
  21964. will overwrite the video&rsquo;s color and alpha pixels.
  21965. Default is <code>0</code>, which composites the box onto the input, leaving the video&rsquo;s alpha intact.
  21966. </p></dd>
  21967. </dl>
  21968. <p>The parameters for <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> and <var>t</var> are expressions containing the
  21969. following constants:
  21970. </p>
  21971. <dl compact="compact">
  21972. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  21973. <dd><p>The input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>.
  21974. </p>
  21975. </dd>
  21976. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  21977. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  21978. <dd><p>horizontal and vertical chroma subsample values. For example for the
  21979. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  21980. </p>
  21981. </dd>
  21982. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  21983. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  21984. <dd><p>The input width and height.
  21985. </p>
  21986. </dd>
  21987. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  21988. <dd><p>The input sample aspect ratio.
  21989. </p>
  21990. </dd>
  21991. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21992. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21993. <dd><p>The x and y offset coordinates where the box is drawn.
  21994. </p>
  21995. </dd>
  21996. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21997. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21998. <dd><p>The width and height of the drawn box.
  21999. </p>
  22000. </dd>
  22001. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  22002. <dd><p>The thickness of the drawn box.
  22003. </p>
  22004. <p>These constants allow the <var>x</var>, <var>y</var>, <var>w</var>, <var>h</var> and <var>t</var> expressions to refer to
  22005. each other, so you may for example specify <code>y=x/dar</code> or <code>h=w/dar</code>.
  22006. </p>
  22007. </dd>
  22008. </dl>
  22009. <a name="Examples-69"></a>
  22010. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-69">32.58.1 Examples</a></h3>
  22011. <ul>
  22012. <li>
  22013. Draw a black box around the edge of the input image:
  22014. <div class="example">
  22015. <pre class="example">drawbox
  22016. </pre></div>
  22017. </li><li>
  22018. Draw a box with color red and an opacity of 50%:
  22019. <div class="example">
  22020. <pre class="example">drawbox=10:20:200:60:red@0.5
  22021. </pre></div>
  22022. <p>The previous example can be specified as:
  22023. </p><div class="example">
  22024. <pre class="example">drawbox=x=10:y=20:w=200:h=60:color=red@0.5
  22025. </pre></div>
  22026. </li><li>
  22027. Fill the box with pink color:
  22028. <div class="example">
  22029. <pre class="example">drawbox=x=10:y=10:w=100:h=100:color=pink@0.5:t=fill
  22030. </pre></div>
  22031. </li><li>
  22032. Draw a 2-pixel red 2.40:1 mask:
  22033. <div class="example">
  22034. <pre class="example">drawbox=x=-t:y=0.5*(ih-iw/2.4)-t:w=iw+t*2:h=iw/2.4+t*2:t=2:c=red
  22035. </pre></div>
  22036. </li></ul>
  22037. <a name="Commands-49"></a>
  22038. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-49">32.58.2 Commands</a></h3>
  22039. <p>This filter supports same commands as options.
  22040. The command accepts the same syntax of the corresponding option.
  22041. </p>
  22042. <p>If the specified expression is not valid, it is kept at its current
  22043. value.
  22044. </p>
  22045. <p><a name="drawgraph"></a>
  22046. </p><a name="drawgraph-1"></a>
  22047. <h2 class="section"><a href="ffprobe-all.html#toc-drawgraph-1">32.59 drawgraph</a></h2>
  22048. <p>Draw a graph using input video metadata.
  22049. </p>
  22050. <p>It accepts the following parameters:
  22051. </p>
  22052. <dl compact="compact">
  22053. <dt>&lsquo;<samp>m1</samp>&rsquo;</dt>
  22054. <dd><p>Set 1st frame metadata key from which metadata values will be used to draw a graph.
  22055. </p>
  22056. </dd>
  22057. <dt>&lsquo;<samp>fg1</samp>&rsquo;</dt>
  22058. <dd><p>Set 1st foreground color expression.
  22059. </p>
  22060. </dd>
  22061. <dt>&lsquo;<samp>m2</samp>&rsquo;</dt>
  22062. <dd><p>Set 2nd frame metadata key from which metadata values will be used to draw a graph.
  22063. </p>
  22064. </dd>
  22065. <dt>&lsquo;<samp>fg2</samp>&rsquo;</dt>
  22066. <dd><p>Set 2nd foreground color expression.
  22067. </p>
  22068. </dd>
  22069. <dt>&lsquo;<samp>m3</samp>&rsquo;</dt>
  22070. <dd><p>Set 3rd frame metadata key from which metadata values will be used to draw a graph.
  22071. </p>
  22072. </dd>
  22073. <dt>&lsquo;<samp>fg3</samp>&rsquo;</dt>
  22074. <dd><p>Set 3rd foreground color expression.
  22075. </p>
  22076. </dd>
  22077. <dt>&lsquo;<samp>m4</samp>&rsquo;</dt>
  22078. <dd><p>Set 4th frame metadata key from which metadata values will be used to draw a graph.
  22079. </p>
  22080. </dd>
  22081. <dt>&lsquo;<samp>fg4</samp>&rsquo;</dt>
  22082. <dd><p>Set 4th foreground color expression.
  22083. </p>
  22084. </dd>
  22085. <dt>&lsquo;<samp>min</samp>&rsquo;</dt>
  22086. <dd><p>Set minimal value of metadata value.
  22087. </p>
  22088. </dd>
  22089. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  22090. <dd><p>Set maximal value of metadata value.
  22091. </p>
  22092. </dd>
  22093. <dt>&lsquo;<samp>bg</samp>&rsquo;</dt>
  22094. <dd><p>Set graph background color. Default is white.
  22095. </p>
  22096. </dd>
  22097. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  22098. <dd><p>Set graph mode.
  22099. </p>
  22100. <p>Available values for mode is:
  22101. </p><dl compact="compact">
  22102. <dt>&lsquo;<samp>bar</samp>&rsquo;</dt>
  22103. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  22104. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  22105. </dl>
  22106. <p>Default is <code>line</code>.
  22107. </p>
  22108. </dd>
  22109. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  22110. <dd><p>Set slide mode.
  22111. </p>
  22112. <p>Available values for slide is:
  22113. </p><dl compact="compact">
  22114. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  22115. <dd><p>Draw new frame when right border is reached.
  22116. </p>
  22117. </dd>
  22118. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  22119. <dd><p>Replace old columns with new ones.
  22120. </p>
  22121. </dd>
  22122. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  22123. <dd><p>Scroll from right to left.
  22124. </p>
  22125. </dd>
  22126. <dt>&lsquo;<samp>rscroll</samp>&rsquo;</dt>
  22127. <dd><p>Scroll from left to right.
  22128. </p>
  22129. </dd>
  22130. <dt>&lsquo;<samp>picture</samp>&rsquo;</dt>
  22131. <dd><p>Draw single picture.
  22132. </p></dd>
  22133. </dl>
  22134. <p>Default is <code>frame</code>.
  22135. </p>
  22136. </dd>
  22137. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  22138. <dd><p>Set size of graph video. For the syntax of this option, check the
  22139. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  22140. The default value is <code>900x256</code>.
  22141. </p>
  22142. </dd>
  22143. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  22144. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  22145. </p>
  22146. <p>The foreground color expressions can use the following variables:
  22147. </p><dl compact="compact">
  22148. <dt>&lsquo;<samp>MIN</samp>&rsquo;</dt>
  22149. <dd><p>Minimal value of metadata value.
  22150. </p>
  22151. </dd>
  22152. <dt>&lsquo;<samp>MAX</samp>&rsquo;</dt>
  22153. <dd><p>Maximal value of metadata value.
  22154. </p>
  22155. </dd>
  22156. <dt>&lsquo;<samp>VAL</samp>&rsquo;</dt>
  22157. <dd><p>Current metadata key value.
  22158. </p></dd>
  22159. </dl>
  22160. <p>The color is defined as 0xAABBGGRR.
  22161. </p></dd>
  22162. </dl>
  22163. <p>Example using metadata from <a href="#signalstats">signalstats</a> filter:
  22164. </p><div class="example">
  22165. <pre class="example">signalstats,drawgraph=lavfi.signalstats.YAVG:min=0:max=255
  22166. </pre></div>
  22167. <p>Example using metadata from <a href="#ebur128">ebur128</a> filter:
  22168. </p><div class="example">
  22169. <pre class="example">ebur128=metadata=1,adrawgraph=lavfi.r128.M:min=-120:max=5
  22170. </pre></div>
  22171. <a name="drawgrid"></a>
  22172. <h2 class="section"><a href="ffprobe-all.html#toc-drawgrid">32.60 drawgrid</a></h2>
  22173. <p>Draw a grid on the input image.
  22174. </p>
  22175. <p>It accepts the following parameters:
  22176. </p>
  22177. <dl compact="compact">
  22178. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22179. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22180. <dd><p>The expressions which specify the coordinates of some point of grid intersection (meant to configure offset). Both default to 0.
  22181. </p>
  22182. </dd>
  22183. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  22184. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  22185. <dd><p>The expressions which specify the width and height of the grid cell, if 0 they are interpreted as the
  22186. input width and height, respectively, minus <code>thickness</code>, so image gets
  22187. framed. Default to 0.
  22188. </p>
  22189. </dd>
  22190. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  22191. <dd><p>Specify the color of the grid. For the general syntax of this option,
  22192. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>. If the special
  22193. value <code>invert</code> is used, the grid color is the same as the
  22194. video with inverted luma.
  22195. </p>
  22196. </dd>
  22197. <dt>&lsquo;<samp>thickness, t</samp>&rsquo;</dt>
  22198. <dd><p>The expression which sets the thickness of the grid line. Default value is <code>1</code>.
  22199. </p>
  22200. <p>See below for the list of accepted constants.
  22201. </p>
  22202. </dd>
  22203. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  22204. <dd><p>Applicable if the input has alpha. With <code>1</code> the pixels of the painted grid
  22205. will overwrite the video&rsquo;s color and alpha pixels.
  22206. Default is <code>0</code>, which composites the grid onto the input, leaving the video&rsquo;s alpha intact.
  22207. </p></dd>
  22208. </dl>
  22209. <p>The parameters for <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> and <var>t</var> are expressions containing the
  22210. following constants:
  22211. </p>
  22212. <dl compact="compact">
  22213. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  22214. <dd><p>The input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>.
  22215. </p>
  22216. </dd>
  22217. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  22218. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  22219. <dd><p>horizontal and vertical chroma subsample values. For example for the
  22220. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  22221. </p>
  22222. </dd>
  22223. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  22224. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  22225. <dd><p>The input grid cell width and height.
  22226. </p>
  22227. </dd>
  22228. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  22229. <dd><p>The input sample aspect ratio.
  22230. </p>
  22231. </dd>
  22232. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22233. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22234. <dd><p>The x and y coordinates of some point of grid intersection (meant to configure offset).
  22235. </p>
  22236. </dd>
  22237. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  22238. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  22239. <dd><p>The width and height of the drawn cell.
  22240. </p>
  22241. </dd>
  22242. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  22243. <dd><p>The thickness of the drawn cell.
  22244. </p>
  22245. <p>These constants allow the <var>x</var>, <var>y</var>, <var>w</var>, <var>h</var> and <var>t</var> expressions to refer to
  22246. each other, so you may for example specify <code>y=x/dar</code> or <code>h=w/dar</code>.
  22247. </p>
  22248. </dd>
  22249. </dl>
  22250. <a name="Examples-14"></a>
  22251. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-14">32.60.1 Examples</a></h3>
  22252. <ul>
  22253. <li>
  22254. Draw a grid with cell 100x100 pixels, thickness 2 pixels, with color red and an opacity of 50%:
  22255. <div class="example">
  22256. <pre class="example">drawgrid=width=100:height=100:thickness=2:color=red@0.5
  22257. </pre></div>
  22258. </li><li>
  22259. Draw a white 3x3 grid with an opacity of 50%:
  22260. <div class="example">
  22261. <pre class="example">drawgrid=w=iw/3:h=ih/3:t=2:c=white@0.5
  22262. </pre></div>
  22263. </li></ul>
  22264. <a name="Commands-38"></a>
  22265. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-38">32.60.2 Commands</a></h3>
  22266. <p>This filter supports same commands as options.
  22267. The command accepts the same syntax of the corresponding option.
  22268. </p>
  22269. <p>If the specified expression is not valid, it is kept at its current
  22270. value.
  22271. </p>
  22272. <p><a name="drawtext"></a>
  22273. </p><a name="drawtext-1"></a>
  22274. <h2 class="section"><a href="ffprobe-all.html#toc-drawtext-1">32.61 drawtext</a></h2>
  22275. <p>Draw a text string or text from a specified file on top of a video, using the
  22276. libfreetype library.
  22277. </p>
  22278. <p>To enable compilation of this filter, you need to configure FFmpeg with
  22279. <code>--enable-libfreetype</code>.
  22280. To enable default font fallback and the <var>font</var> option you need to
  22281. configure FFmpeg with <code>--enable-libfontconfig</code>.
  22282. To enable the <var>text_shaping</var> option, you need to configure FFmpeg with
  22283. <code>--enable-libfribidi</code>.
  22284. </p>
  22285. <a name="Syntax-2"></a>
  22286. <h3 class="subsection"><a href="ffprobe-all.html#toc-Syntax-2">32.61.1 Syntax</a></h3>
  22287. <p>It accepts the following parameters:
  22288. </p>
  22289. <dl compact="compact">
  22290. <dt>&lsquo;<samp>box</samp>&rsquo;</dt>
  22291. <dd><p>Used to draw a box around text using the background color.
  22292. The value must be either 1 (enable) or 0 (disable).
  22293. The default value of <var>box</var> is 0.
  22294. </p>
  22295. </dd>
  22296. <dt>&lsquo;<samp>boxborderw</samp>&rsquo;</dt>
  22297. <dd><p>Set the width of the border to be drawn around the box using <var>boxcolor</var>.
  22298. The default value of <var>boxborderw</var> is 0.
  22299. </p>
  22300. </dd>
  22301. <dt>&lsquo;<samp>boxcolor</samp>&rsquo;</dt>
  22302. <dd><p>The color to be used for drawing box around text. For the syntax of this
  22303. option, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22304. </p>
  22305. <p>The default value of <var>boxcolor</var> is &quot;white&quot;.
  22306. </p>
  22307. </dd>
  22308. <dt>&lsquo;<samp>line_spacing</samp>&rsquo;</dt>
  22309. <dd><p>Set the line spacing in pixels of the border to be drawn around the box using <var>box</var>.
  22310. The default value of <var>line_spacing</var> is 0.
  22311. </p>
  22312. </dd>
  22313. <dt>&lsquo;<samp>borderw</samp>&rsquo;</dt>
  22314. <dd><p>Set the width of the border to be drawn around the text using <var>bordercolor</var>.
  22315. The default value of <var>borderw</var> is 0.
  22316. </p>
  22317. </dd>
  22318. <dt>&lsquo;<samp>bordercolor</samp>&rsquo;</dt>
  22319. <dd><p>Set the color to be used for drawing border around text. For the syntax of this
  22320. option, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22321. </p>
  22322. <p>The default value of <var>bordercolor</var> is &quot;black&quot;.
  22323. </p>
  22324. </dd>
  22325. <dt>&lsquo;<samp>expansion</samp>&rsquo;</dt>
  22326. <dd><p>Select how the <var>text</var> is expanded. Can be either <code>none</code>,
  22327. <code>strftime</code> (deprecated) or
  22328. <code>normal</code> (default). See the <a href="#drawtext_005fexpansion">Text expansion</a> section
  22329. below for details.
  22330. </p>
  22331. </dd>
  22332. <dt>&lsquo;<samp>basetime</samp>&rsquo;</dt>
  22333. <dd><p>Set a start time for the count. Value is in microseconds. Only applied
  22334. in the deprecated strftime expansion mode. To emulate in normal expansion
  22335. mode use the <code>pts</code> function, supplying the start time (in seconds)
  22336. as the second argument.
  22337. </p>
  22338. </dd>
  22339. <dt>&lsquo;<samp>fix_bounds</samp>&rsquo;</dt>
  22340. <dd><p>If true, check and fix text coords to avoid clipping.
  22341. </p>
  22342. </dd>
  22343. <dt>&lsquo;<samp>fontcolor</samp>&rsquo;</dt>
  22344. <dd><p>The color to be used for drawing fonts. For the syntax of this option, check
  22345. the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22346. </p>
  22347. <p>The default value of <var>fontcolor</var> is &quot;black&quot;.
  22348. </p>
  22349. </dd>
  22350. <dt>&lsquo;<samp>fontcolor_expr</samp>&rsquo;</dt>
  22351. <dd><p>String which is expanded the same way as <var>text</var> to obtain dynamic
  22352. <var>fontcolor</var> value. By default this option has empty value and is not
  22353. processed. When this option is set, it overrides <var>fontcolor</var> option.
  22354. </p>
  22355. </dd>
  22356. <dt>&lsquo;<samp>font</samp>&rsquo;</dt>
  22357. <dd><p>The font family to be used for drawing text. By default Sans.
  22358. </p>
  22359. </dd>
  22360. <dt>&lsquo;<samp>fontfile</samp>&rsquo;</dt>
  22361. <dd><p>The font file to be used for drawing text. The path must be included.
  22362. This parameter is mandatory if the fontconfig support is disabled.
  22363. </p>
  22364. </dd>
  22365. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  22366. <dd><p>Draw the text applying alpha blending. The value can
  22367. be a number between 0.0 and 1.0.
  22368. The expression accepts the same variables <var>x, y</var> as well.
  22369. The default value is 1.
  22370. Please see <var>fontcolor_expr</var>.
  22371. </p>
  22372. </dd>
  22373. <dt>&lsquo;<samp>fontsize</samp>&rsquo;</dt>
  22374. <dd><p>The font size to be used for drawing text.
  22375. The default value of <var>fontsize</var> is 16.
  22376. </p>
  22377. </dd>
  22378. <dt>&lsquo;<samp>text_shaping</samp>&rsquo;</dt>
  22379. <dd><p>If set to 1, attempt to shape the text (for example, reverse the order of
  22380. right-to-left text and join Arabic characters) before drawing it.
  22381. Otherwise, just draw the text exactly as given.
  22382. By default 1 (if supported).
  22383. </p>
  22384. </dd>
  22385. <dt>&lsquo;<samp>ft_load_flags</samp>&rsquo;</dt>
  22386. <dd><p>The flags to be used for loading the fonts.
  22387. </p>
  22388. <p>The flags map the corresponding flags supported by libfreetype, and are
  22389. a combination of the following values:
  22390. </p><dl compact="compact">
  22391. <dt><var>default</var></dt>
  22392. <dt><var>no_scale</var></dt>
  22393. <dt><var>no_hinting</var></dt>
  22394. <dt><var>render</var></dt>
  22395. <dt><var>no_bitmap</var></dt>
  22396. <dt><var>vertical_layout</var></dt>
  22397. <dt><var>force_autohint</var></dt>
  22398. <dt><var>crop_bitmap</var></dt>
  22399. <dt><var>pedantic</var></dt>
  22400. <dt><var>ignore_global_advance_width</var></dt>
  22401. <dt><var>no_recurse</var></dt>
  22402. <dt><var>ignore_transform</var></dt>
  22403. <dt><var>monochrome</var></dt>
  22404. <dt><var>linear_design</var></dt>
  22405. <dt><var>no_autohint</var></dt>
  22406. </dl>
  22407. <p>Default value is &quot;default&quot;.
  22408. </p>
  22409. <p>For more information consult the documentation for the FT_LOAD_*
  22410. libfreetype flags.
  22411. </p>
  22412. </dd>
  22413. <dt>&lsquo;<samp>shadowcolor</samp>&rsquo;</dt>
  22414. <dd><p>The color to be used for drawing a shadow behind the drawn text. For the
  22415. syntax of this option, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22416. </p>
  22417. <p>The default value of <var>shadowcolor</var> is &quot;black&quot;.
  22418. </p>
  22419. </dd>
  22420. <dt>&lsquo;<samp>shadowx</samp>&rsquo;</dt>
  22421. <dt>&lsquo;<samp>shadowy</samp>&rsquo;</dt>
  22422. <dd><p>The x and y offsets for the text shadow position with respect to the
  22423. position of the text. They can be either positive or negative
  22424. values. The default value for both is &quot;0&quot;.
  22425. </p>
  22426. </dd>
  22427. <dt>&lsquo;<samp>start_number</samp>&rsquo;</dt>
  22428. <dd><p>The starting frame number for the n/frame_num variable. The default value
  22429. is &quot;0&quot;.
  22430. </p>
  22431. </dd>
  22432. <dt>&lsquo;<samp>tabsize</samp>&rsquo;</dt>
  22433. <dd><p>The size in number of spaces to use for rendering the tab.
  22434. Default value is 4.
  22435. </p>
  22436. </dd>
  22437. <dt>&lsquo;<samp>timecode</samp>&rsquo;</dt>
  22438. <dd><p>Set the initial timecode representation in &quot;hh:mm:ss[:;.]ff&quot;
  22439. format. It can be used with or without text parameter. <var>timecode_rate</var>
  22440. option must be specified.
  22441. </p>
  22442. </dd>
  22443. <dt>&lsquo;<samp>timecode_rate, rate, r</samp>&rsquo;</dt>
  22444. <dd><p>Set the timecode frame rate (timecode only). Value will be rounded to nearest
  22445. integer. Minimum value is &quot;1&quot;.
  22446. Drop-frame timecode is supported for frame rates 30 &amp; 60.
  22447. </p>
  22448. </dd>
  22449. <dt>&lsquo;<samp>tc24hmax</samp>&rsquo;</dt>
  22450. <dd><p>If set to 1, the output of the timecode option will wrap around at 24 hours.
  22451. Default is 0 (disabled).
  22452. </p>
  22453. </dd>
  22454. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  22455. <dd><p>The text string to be drawn. The text must be a sequence of UTF-8
  22456. encoded characters.
  22457. This parameter is mandatory if no file is specified with the parameter
  22458. <var>textfile</var>.
  22459. </p>
  22460. </dd>
  22461. <dt>&lsquo;<samp>textfile</samp>&rsquo;</dt>
  22462. <dd><p>A text file containing text to be drawn. The text must be a sequence
  22463. of UTF-8 encoded characters.
  22464. </p>
  22465. <p>This parameter is mandatory if no text string is specified with the
  22466. parameter <var>text</var>.
  22467. </p>
  22468. <p>If both <var>text</var> and <var>textfile</var> are specified, an error is thrown.
  22469. </p>
  22470. </dd>
  22471. <dt>&lsquo;<samp>reload</samp>&rsquo;</dt>
  22472. <dd><p>If set to 1, the <var>textfile</var> will be reloaded before each frame.
  22473. Be sure to update it atomically, or it may be read partially, or even fail.
  22474. </p>
  22475. </dd>
  22476. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22477. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22478. <dd><p>The expressions which specify the offsets where text will be drawn
  22479. within the video frame. They are relative to the top/left border of the
  22480. output image.
  22481. </p>
  22482. <p>The default value of <var>x</var> and <var>y</var> is &quot;0&quot;.
  22483. </p>
  22484. <p>See below for the list of accepted constants and functions.
  22485. </p></dd>
  22486. </dl>
  22487. <p>The parameters for <var>x</var> and <var>y</var> are expressions containing the
  22488. following constants and functions:
  22489. </p>
  22490. <dl compact="compact">
  22491. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  22492. <dd><p>input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>
  22493. </p>
  22494. </dd>
  22495. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  22496. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  22497. <dd><p>horizontal and vertical chroma subsample values. For example for the
  22498. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  22499. </p>
  22500. </dd>
  22501. <dt>&lsquo;<samp>line_h, lh</samp>&rsquo;</dt>
  22502. <dd><p>the height of each text line
  22503. </p>
  22504. </dd>
  22505. <dt>&lsquo;<samp>main_h, h, H</samp>&rsquo;</dt>
  22506. <dd><p>the input height
  22507. </p>
  22508. </dd>
  22509. <dt>&lsquo;<samp>main_w, w, W</samp>&rsquo;</dt>
  22510. <dd><p>the input width
  22511. </p>
  22512. </dd>
  22513. <dt>&lsquo;<samp>max_glyph_a, ascent</samp>&rsquo;</dt>
  22514. <dd><p>the maximum distance from the baseline to the highest/upper grid
  22515. coordinate used to place a glyph outline point, for all the rendered
  22516. glyphs.
  22517. It is a positive value, due to the grid&rsquo;s orientation with the Y axis
  22518. upwards.
  22519. </p>
  22520. </dd>
  22521. <dt>&lsquo;<samp>max_glyph_d, descent</samp>&rsquo;</dt>
  22522. <dd><p>the maximum distance from the baseline to the lowest grid coordinate
  22523. used to place a glyph outline point, for all the rendered glyphs.
  22524. This is a negative value, due to the grid&rsquo;s orientation, with the Y axis
  22525. upwards.
  22526. </p>
  22527. </dd>
  22528. <dt>&lsquo;<samp>max_glyph_h</samp>&rsquo;</dt>
  22529. <dd><p>maximum glyph height, that is the maximum height for all the glyphs
  22530. contained in the rendered text, it is equivalent to <var>ascent</var> -
  22531. <var>descent</var>.
  22532. </p>
  22533. </dd>
  22534. <dt>&lsquo;<samp>max_glyph_w</samp>&rsquo;</dt>
  22535. <dd><p>maximum glyph width, that is the maximum width for all the glyphs
  22536. contained in the rendered text
  22537. </p>
  22538. </dd>
  22539. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  22540. <dd><p>the number of input frame, starting from 0
  22541. </p>
  22542. </dd>
  22543. <dt>&lsquo;<samp>rand(min, max)</samp>&rsquo;</dt>
  22544. <dd><p>return a random number included between <var>min</var> and <var>max</var>
  22545. </p>
  22546. </dd>
  22547. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  22548. <dd><p>The input sample aspect ratio.
  22549. </p>
  22550. </dd>
  22551. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  22552. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  22553. </p>
  22554. </dd>
  22555. <dt>&lsquo;<samp>text_h, th</samp>&rsquo;</dt>
  22556. <dd><p>the height of the rendered text
  22557. </p>
  22558. </dd>
  22559. <dt>&lsquo;<samp>text_w, tw</samp>&rsquo;</dt>
  22560. <dd><p>the width of the rendered text
  22561. </p>
  22562. </dd>
  22563. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22564. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22565. <dd><p>the x and y offset coordinates where the text is drawn.
  22566. </p>
  22567. <p>These parameters allow the <var>x</var> and <var>y</var> expressions to refer
  22568. to each other, so you can for example specify <code>y=x/dar</code>.
  22569. </p>
  22570. </dd>
  22571. <dt>&lsquo;<samp>pict_type</samp>&rsquo;</dt>
  22572. <dd><p>A one character description of the current frame&rsquo;s picture type.
  22573. </p>
  22574. </dd>
  22575. <dt>&lsquo;<samp>pkt_pos</samp>&rsquo;</dt>
  22576. <dd><p>The current packet&rsquo;s position in the input file or stream
  22577. (in bytes, from the start of the input). A value of -1 indicates
  22578. this info is not available.
  22579. </p>
  22580. </dd>
  22581. <dt>&lsquo;<samp>pkt_duration</samp>&rsquo;</dt>
  22582. <dd><p>The current packet&rsquo;s duration, in seconds.
  22583. </p>
  22584. </dd>
  22585. <dt>&lsquo;<samp>pkt_size</samp>&rsquo;</dt>
  22586. <dd><p>The current packet&rsquo;s size (in bytes).
  22587. </p></dd>
  22588. </dl>
  22589. <p><a name="drawtext_005fexpansion"></a>
  22590. </p><a name="Text-expansion"></a>
  22591. <h3 class="subsection"><a href="ffprobe-all.html#toc-Text-expansion">32.61.2 Text expansion</a></h3>
  22592. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>strftime</code>,
  22593. the filter recognizes strftime() sequences in the provided text and
  22594. expands them accordingly. Check the documentation of strftime(). This
  22595. feature is deprecated.
  22596. </p>
  22597. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>none</code>, the text is printed verbatim.
  22598. </p>
  22599. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>normal</code> (which is the default),
  22600. the following expansion mechanism is used.
  22601. </p>
  22602. <p>The backslash character &lsquo;<samp>\</samp>&rsquo;, followed by any character, always expands to
  22603. the second character.
  22604. </p>
  22605. <p>Sequences of the form <code>%{...}</code> are expanded. The text between the
  22606. braces is a function name, possibly followed by arguments separated by &rsquo;:&rsquo;.
  22607. If the arguments contain special characters or delimiters (&rsquo;:&rsquo; or &rsquo;}&rsquo;),
  22608. they should be escaped.
  22609. </p>
  22610. <p>Note that they probably must also be escaped as the value for the
  22611. &lsquo;<samp>text</samp>&rsquo; option in the filter argument string and as the filter
  22612. argument in the filtergraph description, and possibly also for the shell,
  22613. that makes up to four levels of escaping; using a text file avoids these
  22614. problems.
  22615. </p>
  22616. <p>The following functions are available:
  22617. </p>
  22618. <dl compact="compact">
  22619. <dt><code>expr, e</code></dt>
  22620. <dd><p>The expression evaluation result.
  22621. </p>
  22622. <p>It must take one argument specifying the expression to be evaluated,
  22623. which accepts the same constants and functions as the <var>x</var> and
  22624. <var>y</var> values. Note that not all constants should be used, for
  22625. example the text size is not known when evaluating the expression, so
  22626. the constants <var>text_w</var> and <var>text_h</var> will have an undefined
  22627. value.
  22628. </p>
  22629. </dd>
  22630. <dt><code>expr_int_format, eif</code></dt>
  22631. <dd><p>Evaluate the expression&rsquo;s value and output as formatted integer.
  22632. </p>
  22633. <p>The first argument is the expression to be evaluated, just as for the <var>expr</var> function.
  22634. The second argument specifies the output format. Allowed values are &lsquo;<samp>x</samp>&rsquo;,
  22635. &lsquo;<samp>X</samp>&rsquo;, &lsquo;<samp>d</samp>&rsquo; and &lsquo;<samp>u</samp>&rsquo;. They are treated exactly as in the
  22636. <code>printf</code> function.
  22637. The third parameter is optional and sets the number of positions taken by the output.
  22638. It can be used to add padding with zeros from the left.
  22639. </p>
  22640. </dd>
  22641. <dt><code>gmtime</code></dt>
  22642. <dd><p>The time at which the filter is running, expressed in UTC.
  22643. It can accept an argument: a strftime() format string.
  22644. </p>
  22645. </dd>
  22646. <dt><code>localtime</code></dt>
  22647. <dd><p>The time at which the filter is running, expressed in the local time zone.
  22648. It can accept an argument: a strftime() format string.
  22649. </p>
  22650. </dd>
  22651. <dt><code>metadata</code></dt>
  22652. <dd><p>Frame metadata. Takes one or two arguments.
  22653. </p>
  22654. <p>The first argument is mandatory and specifies the metadata key.
  22655. </p>
  22656. <p>The second argument is optional and specifies a default value, used when the
  22657. metadata key is not found or empty.
  22658. </p>
  22659. <p>Available metadata can be identified by inspecting entries
  22660. starting with TAG included within each frame section
  22661. printed by running <code>ffprobe -show_frames</code>.
  22662. </p>
  22663. <p>String metadata generated in filters leading to
  22664. the drawtext filter are also available.
  22665. </p>
  22666. </dd>
  22667. <dt><code>n, frame_num</code></dt>
  22668. <dd><p>The frame number, starting from 0.
  22669. </p>
  22670. </dd>
  22671. <dt><code>pict_type</code></dt>
  22672. <dd><p>A one character description of the current picture type.
  22673. </p>
  22674. </dd>
  22675. <dt><code>pts</code></dt>
  22676. <dd><p>The timestamp of the current frame.
  22677. It can take up to three arguments.
  22678. </p>
  22679. <p>The first argument is the format of the timestamp; it defaults to <code>flt</code>
  22680. for seconds as a decimal number with microsecond accuracy; <code>hms</code> stands
  22681. for a formatted <var>[-]HH:MM:SS.mmm</var> timestamp with millisecond accuracy.
  22682. <code>gmtime</code> stands for the timestamp of the frame formatted as UTC time;
  22683. <code>localtime</code> stands for the timestamp of the frame formatted as
  22684. local time zone time.
  22685. </p>
  22686. <p>The second argument is an offset added to the timestamp.
  22687. </p>
  22688. <p>If the format is set to <code>hms</code>, a third argument <code>24HH</code> may be
  22689. supplied to present the hour part of the formatted timestamp in 24h format
  22690. (00-23).
  22691. </p>
  22692. <p>If the format is set to <code>localtime</code> or <code>gmtime</code>,
  22693. a third argument may be supplied: a strftime() format string.
  22694. By default, <var>YYYY-MM-DD HH:MM:SS</var> format will be used.
  22695. </p></dd>
  22696. </dl>
  22697. <a name="Commands-10"></a>
  22698. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-10">32.61.3 Commands</a></h3>
  22699. <p>This filter supports altering parameters via commands:
  22700. </p><dl compact="compact">
  22701. <dt>&lsquo;<samp>reinit</samp>&rsquo;</dt>
  22702. <dd><p>Alter existing filter parameters.
  22703. </p>
  22704. <p>Syntax for the argument is the same as for filter invocation, e.g.
  22705. </p>
  22706. <div class="example">
  22707. <pre class="example">fontsize=56:fontcolor=green:text='Hello World'
  22708. </pre></div>
  22709. <p>Full filter invocation with sendcmd would look like this:
  22710. </p>
  22711. <div class="example">
  22712. <pre class="example">sendcmd=c='56.0 drawtext reinit fontsize=56\:fontcolor=green\:text=Hello\\ World'
  22713. </pre></div>
  22714. </dd>
  22715. </dl>
  22716. <p>If the entire argument can&rsquo;t be parsed or applied as valid values then the filter will
  22717. continue with its existing parameters.
  22718. </p>
  22719. <a name="Examples-52"></a>
  22720. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-52">32.61.4 Examples</a></h3>
  22721. <ul>
  22722. <li>
  22723. Draw &quot;Test Text&quot; with font FreeSerif, using the default values for the
  22724. optional parameters.
  22725. <div class="example">
  22726. <pre class="example">drawtext=&quot;fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'&quot;
  22727. </pre></div>
  22728. </li><li>
  22729. Draw &rsquo;Test Text&rsquo; with font FreeSerif of size 24 at position x=100
  22730. and y=50 (counting from the top-left corner of the screen), text is
  22731. yellow with a red box around it. Both the text and the box have an
  22732. opacity of 20%.
  22733. <div class="example">
  22734. <pre class="example">drawtext=&quot;fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
  22735. x=100: y=50: fontsize=24: fontcolor=yellow@0.2: box=1: boxcolor=red@0.2&quot;
  22736. </pre></div>
  22737. <p>Note that the double quotes are not necessary if spaces are not used
  22738. within the parameter list.
  22739. </p>
  22740. </li><li>
  22741. Show the text at the center of the video frame:
  22742. <div class="example">
  22743. <pre class="example">drawtext=&quot;fontsize=30:fontfile=FreeSerif.ttf:text='hello world':x=(w-text_w)/2:y=(h-text_h)/2&quot;
  22744. </pre></div>
  22745. </li><li>
  22746. Show the text at a random position, switching to a new position every 30 seconds:
  22747. <div class="example">
  22748. <pre class="example">drawtext=&quot;fontsize=30:fontfile=FreeSerif.ttf:text='hello world':x=if(eq(mod(t\,30)\,0)\,rand(0\,(w-text_w))\,x):y=if(eq(mod(t\,30)\,0)\,rand(0\,(h-text_h))\,y)&quot;
  22749. </pre></div>
  22750. </li><li>
  22751. Show a text line sliding from right to left in the last row of the video
  22752. frame. The file &lsquo;<tt>LONG_LINE</tt>&rsquo; is assumed to contain a single line
  22753. with no newlines.
  22754. <div class="example">
  22755. <pre class="example">drawtext=&quot;fontsize=15:fontfile=FreeSerif.ttf:text=LONG_LINE:y=h-line_h:x=-50*t&quot;
  22756. </pre></div>
  22757. </li><li>
  22758. Show the content of file &lsquo;<tt>CREDITS</tt>&rsquo; off the bottom of the frame and scroll up.
  22759. <div class="example">
  22760. <pre class="example">drawtext=&quot;fontsize=20:fontfile=FreeSerif.ttf:textfile=CREDITS:y=h-20*t&quot;
  22761. </pre></div>
  22762. </li><li>
  22763. Draw a single green letter &quot;g&quot;, at the center of the input video.
  22764. The glyph baseline is placed at half screen height.
  22765. <div class="example">
  22766. <pre class="example">drawtext=&quot;fontsize=60:fontfile=FreeSerif.ttf:fontcolor=green:text=g:x=(w-max_glyph_w)/2:y=h/2-ascent&quot;
  22767. </pre></div>
  22768. </li><li>
  22769. Show text for 1 second every 3 seconds:
  22770. <div class="example">
  22771. <pre class="example">drawtext=&quot;fontfile=FreeSerif.ttf:fontcolor=white:x=100:y=x/dar:enable=lt(mod(t\,3)\,1):text='blink'&quot;
  22772. </pre></div>
  22773. </li><li>
  22774. Use fontconfig to set the font. Note that the colons need to be escaped.
  22775. <div class="example">
  22776. <pre class="example">drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
  22777. </pre></div>
  22778. </li><li>
  22779. Print the date of a real-time encoding (see strftime(3)):
  22780. <div class="example">
  22781. <pre class="example">drawtext='fontfile=FreeSans.ttf:text=%{localtime\:%a %b %d %Y}'
  22782. </pre></div>
  22783. </li><li>
  22784. Show text fading in and out (appearing/disappearing):
  22785. <div class="example">
  22786. <pre class="example">#!/bin/sh
  22787. DS=1.0 # display start
  22788. DE=10.0 # display end
  22789. FID=1.5 # fade in duration
  22790. FOD=5 # fade out duration
  22791. ffplay -f lavfi &quot;color,drawtext=text=TEST:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000%{eif\\\\: clip(255*(1*between(t\\, $DS + $FID\\, $DE - $FOD) + ((t - $DS)/$FID)*between(t\\, $DS\\, $DS + $FID) + (-(t - $DE)/$FOD)*between(t\\, $DE - $FOD\\, $DE) )\\, 0\\, 255) \\\\: x\\\\: 2 }&quot;
  22792. </pre></div>
  22793. </li><li>
  22794. Horizontally align multiple separate texts. Note that &lsquo;<samp>max_glyph_a</samp>&rsquo;
  22795. and the &lsquo;<samp>fontsize</samp>&rsquo; value are included in the &lsquo;<samp>y</samp>&rsquo; offset.
  22796. <div class="example">
  22797. <pre class="example">drawtext=fontfile=FreeSans.ttf:text=DOG:fontsize=24:x=10:y=20+24-max_glyph_a,
  22798. drawtext=fontfile=FreeSans.ttf:text=cow:fontsize=24:x=80:y=20+24-max_glyph_a
  22799. </pre></div>
  22800. </li><li>
  22801. Plot special <var>lavf.image2dec.source_basename</var> metadata onto each frame if
  22802. such metadata exists. Otherwise, plot the string &quot;NA&quot;. Note that image2 demuxer
  22803. must have option &lsquo;<samp>-export_path_metadata 1</samp>&rsquo; for the special metadata fields
  22804. to be available for filters.
  22805. <div class="example">
  22806. <pre class="example">drawtext=&quot;fontsize=20:fontcolor=white:fontfile=FreeSans.ttf:text='%{metadata\:lavf.image2dec.source_basename\:NA}':x=10:y=10&quot;
  22807. </pre></div>
  22808. </li></ul>
  22809. <p>For more information about libfreetype, check:
  22810. <a href="http://www.freetype.org/">http://www.freetype.org/</a>.
  22811. </p>
  22812. <p>For more information about fontconfig, check:
  22813. <a href="http://freedesktop.org/software/fontconfig/fontconfig-user.html">http://freedesktop.org/software/fontconfig/fontconfig-user.html</a>.
  22814. </p>
  22815. <p>For more information about libfribidi, check:
  22816. <a href="http://fribidi.org/">http://fribidi.org/</a>.
  22817. </p>
  22818. <a name="edgedetect"></a>
  22819. <h2 class="section"><a href="ffprobe-all.html#toc-edgedetect">32.62 edgedetect</a></h2>
  22820. <p>Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
  22821. </p>
  22822. <p>The filter accepts the following options:
  22823. </p>
  22824. <dl compact="compact">
  22825. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  22826. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  22827. <dd><p>Set low and high threshold values used by the Canny thresholding
  22828. algorithm.
  22829. </p>
  22830. <p>The high threshold selects the &quot;strong&quot; edge pixels, which are then
  22831. connected through 8-connectivity with the &quot;weak&quot; edge pixels selected
  22832. by the low threshold.
  22833. </p>
  22834. <p><var>low</var> and <var>high</var> threshold values must be chosen in the range
  22835. [0,1], and <var>low</var> should be lesser or equal to <var>high</var>.
  22836. </p>
  22837. <p>Default value for <var>low</var> is <code>20/255</code>, and default value for <var>high</var>
  22838. is <code>50/255</code>.
  22839. </p>
  22840. </dd>
  22841. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  22842. <dd><p>Define the drawing mode.
  22843. </p>
  22844. <dl compact="compact">
  22845. <dt>&lsquo;<samp>wires</samp>&rsquo;</dt>
  22846. <dd><p>Draw white/gray wires on black background.
  22847. </p>
  22848. </dd>
  22849. <dt>&lsquo;<samp>colormix</samp>&rsquo;</dt>
  22850. <dd><p>Mix the colors to create a paint/cartoon effect.
  22851. </p>
  22852. </dd>
  22853. <dt>&lsquo;<samp>canny</samp>&rsquo;</dt>
  22854. <dd><p>Apply Canny edge detector on all selected planes.
  22855. </p></dd>
  22856. </dl>
  22857. <p>Default value is <var>wires</var>.
  22858. </p>
  22859. </dd>
  22860. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  22861. <dd><p>Select planes for filtering. By default all available planes are filtered.
  22862. </p></dd>
  22863. </dl>
  22864. <a name="Examples-100"></a>
  22865. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-100">32.62.1 Examples</a></h3>
  22866. <ul>
  22867. <li>
  22868. Standard edge detection with custom values for the hysteresis thresholding:
  22869. <div class="example">
  22870. <pre class="example">edgedetect=low=0.1:high=0.4
  22871. </pre></div>
  22872. </li><li>
  22873. Painting effect without thresholding:
  22874. <div class="example">
  22875. <pre class="example">edgedetect=mode=colormix:high=0
  22876. </pre></div>
  22877. </li></ul>
  22878. <a name="elbg"></a>
  22879. <h2 class="section"><a href="ffprobe-all.html#toc-elbg">32.63 elbg</a></h2>
  22880. <p>Apply a posterize effect using the ELBG (Enhanced LBG) algorithm.
  22881. </p>
  22882. <p>For each input image, the filter will compute the optimal mapping from
  22883. the input to the output given the codebook length, that is the number
  22884. of distinct output colors.
  22885. </p>
  22886. <p>This filter accepts the following options.
  22887. </p>
  22888. <dl compact="compact">
  22889. <dt>&lsquo;<samp>codebook_length, l</samp>&rsquo;</dt>
  22890. <dd><p>Set codebook length. The value must be a positive integer, and
  22891. represents the number of distinct output colors. Default value is 256.
  22892. </p>
  22893. </dd>
  22894. <dt>&lsquo;<samp>nb_steps, n</samp>&rsquo;</dt>
  22895. <dd><p>Set the maximum number of iterations to apply for computing the optimal
  22896. mapping. The higher the value the better the result and the higher the
  22897. computation time. Default value is 1.
  22898. </p>
  22899. </dd>
  22900. <dt>&lsquo;<samp>seed, s</samp>&rsquo;</dt>
  22901. <dd><p>Set a random seed, must be an integer included between 0 and
  22902. UINT32_MAX. If not specified, or if explicitly set to -1, the filter
  22903. will try to use a good random seed on a best effort basis.
  22904. </p>
  22905. </dd>
  22906. <dt>&lsquo;<samp>pal8</samp>&rsquo;</dt>
  22907. <dd><p>Set pal8 output pixel format. This option does not work with codebook
  22908. length greater than 256.
  22909. </p></dd>
  22910. </dl>
  22911. <a name="entropy"></a>
  22912. <h2 class="section"><a href="ffprobe-all.html#toc-entropy">32.64 entropy</a></h2>
  22913. <p>Measure graylevel entropy in histogram of color channels of video frames.
  22914. </p>
  22915. <p>It accepts the following parameters:
  22916. </p>
  22917. <dl compact="compact">
  22918. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  22919. <dd><p>Can be either <var>normal</var> or <var>diff</var>. Default is <var>normal</var>.
  22920. </p>
  22921. <p><var>diff</var> mode measures entropy of histogram delta values, absolute differences
  22922. between neighbour histogram values.
  22923. </p></dd>
  22924. </dl>
  22925. <a name="eq"></a>
  22926. <h2 class="section"><a href="ffprobe-all.html#toc-eq">32.65 eq</a></h2>
  22927. <p>Set brightness, contrast, saturation and approximate gamma adjustment.
  22928. </p>
  22929. <p>The filter accepts the following options:
  22930. </p>
  22931. <dl compact="compact">
  22932. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  22933. <dd><p>Set the contrast expression. The value must be a float value in range
  22934. <code>-1000.0</code> to <code>1000.0</code>. The default value is &quot;1&quot;.
  22935. </p>
  22936. </dd>
  22937. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  22938. <dd><p>Set the brightness expression. The value must be a float value in
  22939. range <code>-1.0</code> to <code>1.0</code>. The default value is &quot;0&quot;.
  22940. </p>
  22941. </dd>
  22942. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  22943. <dd><p>Set the saturation expression. The value must be a float in
  22944. range <code>0.0</code> to <code>3.0</code>. The default value is &quot;1&quot;.
  22945. </p>
  22946. </dd>
  22947. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  22948. <dd><p>Set the gamma expression. The value must be a float in range
  22949. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22950. </p>
  22951. </dd>
  22952. <dt>&lsquo;<samp>gamma_r</samp>&rsquo;</dt>
  22953. <dd><p>Set the gamma expression for red. The value must be a float in
  22954. range <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22955. </p>
  22956. </dd>
  22957. <dt>&lsquo;<samp>gamma_g</samp>&rsquo;</dt>
  22958. <dd><p>Set the gamma expression for green. The value must be a float in range
  22959. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22960. </p>
  22961. </dd>
  22962. <dt>&lsquo;<samp>gamma_b</samp>&rsquo;</dt>
  22963. <dd><p>Set the gamma expression for blue. The value must be a float in range
  22964. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22965. </p>
  22966. </dd>
  22967. <dt>&lsquo;<samp>gamma_weight</samp>&rsquo;</dt>
  22968. <dd><p>Set the gamma weight expression. It can be used to reduce the effect
  22969. of a high gamma value on bright image areas, e.g. keep them from
  22970. getting overamplified and just plain white. The value must be a float
  22971. in range <code>0.0</code> to <code>1.0</code>. A value of <code>0.0</code> turns the
  22972. gamma correction all the way down while <code>1.0</code> leaves it at its
  22973. full strength. Default is &quot;1&quot;.
  22974. </p>
  22975. </dd>
  22976. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  22977. <dd><p>Set when the expressions for brightness, contrast, saturation and
  22978. gamma expressions are evaluated.
  22979. </p>
  22980. <p>It accepts the following values:
  22981. </p><dl compact="compact">
  22982. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  22983. <dd><p>only evaluate expressions once during the filter initialization or
  22984. when a command is processed
  22985. </p>
  22986. </dd>
  22987. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  22988. <dd><p>evaluate expressions for each incoming frame
  22989. </p></dd>
  22990. </dl>
  22991. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  22992. </p></dd>
  22993. </dl>
  22994. <p>The expressions accept the following parameters:
  22995. </p><dl compact="compact">
  22996. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  22997. <dd><p>frame count of the input frame starting from 0
  22998. </p>
  22999. </dd>
  23000. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  23001. <dd><p>byte position of the corresponding packet in the input file, NAN if
  23002. unspecified
  23003. </p>
  23004. </dd>
  23005. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  23006. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  23007. </p>
  23008. </dd>
  23009. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  23010. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  23011. </p></dd>
  23012. </dl>
  23013. <a name="Commands-9"></a>
  23014. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-9">32.65.1 Commands</a></h3>
  23015. <p>The filter supports the following commands:
  23016. </p>
  23017. <dl compact="compact">
  23018. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  23019. <dd><p>Set the contrast expression.
  23020. </p>
  23021. </dd>
  23022. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  23023. <dd><p>Set the brightness expression.
  23024. </p>
  23025. </dd>
  23026. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  23027. <dd><p>Set the saturation expression.
  23028. </p>
  23029. </dd>
  23030. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  23031. <dd><p>Set the gamma expression.
  23032. </p>
  23033. </dd>
  23034. <dt>&lsquo;<samp>gamma_r</samp>&rsquo;</dt>
  23035. <dd><p>Set the gamma_r expression.
  23036. </p>
  23037. </dd>
  23038. <dt>&lsquo;<samp>gamma_g</samp>&rsquo;</dt>
  23039. <dd><p>Set gamma_g expression.
  23040. </p>
  23041. </dd>
  23042. <dt>&lsquo;<samp>gamma_b</samp>&rsquo;</dt>
  23043. <dd><p>Set gamma_b expression.
  23044. </p>
  23045. </dd>
  23046. <dt>&lsquo;<samp>gamma_weight</samp>&rsquo;</dt>
  23047. <dd><p>Set gamma_weight expression.
  23048. </p>
  23049. <p>The command accepts the same syntax of the corresponding option.
  23050. </p>
  23051. <p>If the specified expression is not valid, it is kept at its current
  23052. value.
  23053. </p>
  23054. </dd>
  23055. </dl>
  23056. <a name="erosion"></a>
  23057. <h2 class="section"><a href="ffprobe-all.html#toc-erosion">32.66 erosion</a></h2>
  23058. <p>Apply erosion effect to the video.
  23059. </p>
  23060. <p>This filter replaces the pixel by the local(3x3) minimum.
  23061. </p>
  23062. <p>It accepts the following options:
  23063. </p>
  23064. <dl compact="compact">
  23065. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  23066. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  23067. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  23068. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  23069. <dd><p>Limit the maximum change for each plane, default is 65535.
  23070. If 0, plane will remain unchanged.
  23071. </p>
  23072. </dd>
  23073. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  23074. <dd><p>Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
  23075. pixels are used.
  23076. </p>
  23077. <p>Flags to local 3x3 coordinates maps like this:
  23078. </p>
  23079. <p> 1 2 3
  23080. 4 5
  23081. 6 7 8
  23082. </p></dd>
  23083. </dl>
  23084. <a name="Commands-11"></a>
  23085. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-11">32.66.1 Commands</a></h3>
  23086. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  23087. </p>
  23088. <a name="extractplanes"></a>
  23089. <h2 class="section"><a href="ffprobe-all.html#toc-extractplanes">32.67 extractplanes</a></h2>
  23090. <p>Extract color channel components from input video stream into
  23091. separate grayscale video streams.
  23092. </p>
  23093. <p>The filter accepts the following option:
  23094. </p>
  23095. <dl compact="compact">
  23096. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  23097. <dd><p>Set plane(s) to extract.
  23098. </p>
  23099. <p>Available values for planes are:
  23100. </p><dl compact="compact">
  23101. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  23102. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  23103. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  23104. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  23105. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  23106. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  23107. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  23108. </dl>
  23109. <p>Choosing planes not available in the input will result in an error.
  23110. That means you cannot select <code>r</code>, <code>g</code>, <code>b</code> planes
  23111. with <code>y</code>, <code>u</code>, <code>v</code> planes at same time.
  23112. </p></dd>
  23113. </dl>
  23114. <a name="Examples-84"></a>
  23115. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-84">32.67.1 Examples</a></h3>
  23116. <ul>
  23117. <li>
  23118. Extract luma, u and v color channel component from input video frame
  23119. into 3 grayscale outputs:
  23120. <div class="example">
  23121. <pre class="example">ffmpeg -i video.avi -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]' y.avi -map '[u]' u.avi -map '[v]' v.avi
  23122. </pre></div>
  23123. </li></ul>
  23124. <a name="fade"></a>
  23125. <h2 class="section"><a href="ffprobe-all.html#toc-fade">32.68 fade</a></h2>
  23126. <p>Apply a fade-in/out effect to the input video.
  23127. </p>
  23128. <p>It accepts the following parameters:
  23129. </p>
  23130. <dl compact="compact">
  23131. <dt>&lsquo;<samp>type, t</samp>&rsquo;</dt>
  23132. <dd><p>The effect type can be either &quot;in&quot; for a fade-in, or &quot;out&quot; for a fade-out
  23133. effect.
  23134. Default is <code>in</code>.
  23135. </p>
  23136. </dd>
  23137. <dt>&lsquo;<samp>start_frame, s</samp>&rsquo;</dt>
  23138. <dd><p>Specify the number of the frame to start applying the fade
  23139. effect at. Default is 0.
  23140. </p>
  23141. </dd>
  23142. <dt>&lsquo;<samp>nb_frames, n</samp>&rsquo;</dt>
  23143. <dd><p>The number of frames that the fade effect lasts. At the end of the
  23144. fade-in effect, the output video will have the same intensity as the input video.
  23145. At the end of the fade-out transition, the output video will be filled with the
  23146. selected &lsquo;<samp>color</samp>&rsquo;.
  23147. Default is 25.
  23148. </p>
  23149. </dd>
  23150. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  23151. <dd><p>If set to 1, fade only alpha channel, if one exists on the input.
  23152. Default value is 0.
  23153. </p>
  23154. </dd>
  23155. <dt>&lsquo;<samp>start_time, st</samp>&rsquo;</dt>
  23156. <dd><p>Specify the timestamp (in seconds) of the frame to start to apply the fade
  23157. effect. If both start_frame and start_time are specified, the fade will start at
  23158. whichever comes last. Default is 0.
  23159. </p>
  23160. </dd>
  23161. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  23162. <dd><p>The number of seconds for which the fade effect has to last. At the end of the
  23163. fade-in effect the output video will have the same intensity as the input video,
  23164. at the end of the fade-out transition the output video will be filled with the
  23165. selected &lsquo;<samp>color</samp>&rsquo;.
  23166. If both duration and nb_frames are specified, duration is used. Default is 0
  23167. (nb_frames is used by default).
  23168. </p>
  23169. </dd>
  23170. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  23171. <dd><p>Specify the color of the fade. Default is &quot;black&quot;.
  23172. </p></dd>
  23173. </dl>
  23174. <a name="Examples-27"></a>
  23175. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-27">32.68.1 Examples</a></h3>
  23176. <ul>
  23177. <li>
  23178. Fade in the first 30 frames of video:
  23179. <div class="example">
  23180. <pre class="example">fade=in:0:30
  23181. </pre></div>
  23182. <p>The command above is equivalent to:
  23183. </p><div class="example">
  23184. <pre class="example">fade=t=in:s=0:n=30
  23185. </pre></div>
  23186. </li><li>
  23187. Fade out the last 45 frames of a 200-frame video:
  23188. <div class="example">
  23189. <pre class="example">fade=out:155:45
  23190. fade=type=out:start_frame=155:nb_frames=45
  23191. </pre></div>
  23192. </li><li>
  23193. Fade in the first 25 frames and fade out the last 25 frames of a 1000-frame video:
  23194. <div class="example">
  23195. <pre class="example">fade=in:0:25, fade=out:975:25
  23196. </pre></div>
  23197. </li><li>
  23198. Make the first 5 frames yellow, then fade in from frame 5-24:
  23199. <div class="example">
  23200. <pre class="example">fade=in:5:20:color=yellow
  23201. </pre></div>
  23202. </li><li>
  23203. Fade in alpha over first 25 frames of video:
  23204. <div class="example">
  23205. <pre class="example">fade=in:0:25:alpha=1
  23206. </pre></div>
  23207. </li><li>
  23208. Make the first 5.5 seconds black, then fade in for 0.5 seconds:
  23209. <div class="example">
  23210. <pre class="example">fade=t=in:st=5.5:d=0.5
  23211. </pre></div>
  23212. </li></ul>
  23213. <a name="fftdnoiz"></a>
  23214. <h2 class="section"><a href="ffprobe-all.html#toc-fftdnoiz">32.69 fftdnoiz</a></h2>
  23215. <p>Denoise frames using 3D FFT (frequency domain filtering).
  23216. </p>
  23217. <p>The filter accepts the following options:
  23218. </p>
  23219. <dl compact="compact">
  23220. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  23221. <dd><p>Set the noise sigma constant. This sets denoising strength.
  23222. Default value is 1. Allowed range is from 0 to 30.
  23223. Using very high sigma with low overlap may give blocking artifacts.
  23224. </p>
  23225. </dd>
  23226. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  23227. <dd><p>Set amount of denoising. By default all detected noise is reduced.
  23228. Default value is 1. Allowed range is from 0 to 1.
  23229. </p>
  23230. </dd>
  23231. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  23232. <dd><p>Set size of block, Default is 4, can be 3, 4, 5 or 6.
  23233. Actual size of block in pixels is 2 to power of <var>block</var>, so by default
  23234. block size in pixels is 2^4 which is 16.
  23235. </p>
  23236. </dd>
  23237. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  23238. <dd><p>Set block overlap. Default is 0.5. Allowed range is from 0.2 to 0.8.
  23239. </p>
  23240. </dd>
  23241. <dt>&lsquo;<samp>prev</samp>&rsquo;</dt>
  23242. <dd><p>Set number of previous frames to use for denoising. By default is set to 0.
  23243. </p>
  23244. </dd>
  23245. <dt>&lsquo;<samp>next</samp>&rsquo;</dt>
  23246. <dd><p>Set number of next frames to to use for denoising. By default is set to 0.
  23247. </p>
  23248. </dd>
  23249. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  23250. <dd><p>Set planes which will be filtered, by default are all available filtered
  23251. except alpha.
  23252. </p></dd>
  23253. </dl>
  23254. <a name="fftfilt"></a>
  23255. <h2 class="section"><a href="ffprobe-all.html#toc-fftfilt">32.70 fftfilt</a></h2>
  23256. <p>Apply arbitrary expressions to samples in frequency domain
  23257. </p>
  23258. <dl compact="compact">
  23259. <dt>&lsquo;<samp>dc_Y</samp>&rsquo;</dt>
  23260. <dd><p>Adjust the dc value (gain) of the luma plane of the image. The filter
  23261. accepts an integer value in range <code>0</code> to <code>1000</code>. The default
  23262. value is set to <code>0</code>.
  23263. </p>
  23264. </dd>
  23265. <dt>&lsquo;<samp>dc_U</samp>&rsquo;</dt>
  23266. <dd><p>Adjust the dc value (gain) of the 1st chroma plane of the image. The
  23267. filter accepts an integer value in range <code>0</code> to <code>1000</code>. The
  23268. default value is set to <code>0</code>.
  23269. </p>
  23270. </dd>
  23271. <dt>&lsquo;<samp>dc_V</samp>&rsquo;</dt>
  23272. <dd><p>Adjust the dc value (gain) of the 2nd chroma plane of the image. The
  23273. filter accepts an integer value in range <code>0</code> to <code>1000</code>. The
  23274. default value is set to <code>0</code>.
  23275. </p>
  23276. </dd>
  23277. <dt>&lsquo;<samp>weight_Y</samp>&rsquo;</dt>
  23278. <dd><p>Set the frequency domain weight expression for the luma plane.
  23279. </p>
  23280. </dd>
  23281. <dt>&lsquo;<samp>weight_U</samp>&rsquo;</dt>
  23282. <dd><p>Set the frequency domain weight expression for the 1st chroma plane.
  23283. </p>
  23284. </dd>
  23285. <dt>&lsquo;<samp>weight_V</samp>&rsquo;</dt>
  23286. <dd><p>Set the frequency domain weight expression for the 2nd chroma plane.
  23287. </p>
  23288. </dd>
  23289. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  23290. <dd><p>Set when the expressions are evaluated.
  23291. </p>
  23292. <p>It accepts the following values:
  23293. </p><dl compact="compact">
  23294. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  23295. <dd><p>Only evaluate expressions once during the filter initialization.
  23296. </p>
  23297. </dd>
  23298. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  23299. <dd><p>Evaluate expressions for each incoming frame.
  23300. </p></dd>
  23301. </dl>
  23302. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  23303. </p>
  23304. <p>The filter accepts the following variables:
  23305. </p></dd>
  23306. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  23307. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  23308. <dd><p>The coordinates of the current sample.
  23309. </p>
  23310. </dd>
  23311. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  23312. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  23313. <dd><p>The width and height of the image.
  23314. </p>
  23315. </dd>
  23316. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  23317. <dd><p>The number of input frame, starting from 0.
  23318. </p></dd>
  23319. </dl>
  23320. <a name="Examples-82"></a>
  23321. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-82">32.70.1 Examples</a></h3>
  23322. <ul>
  23323. <li>
  23324. High-pass:
  23325. <div class="example">
  23326. <pre class="example">fftfilt=dc_Y=128:weight_Y='squish(1-(Y+X)/100)'
  23327. </pre></div>
  23328. </li><li>
  23329. Low-pass:
  23330. <div class="example">
  23331. <pre class="example">fftfilt=dc_Y=0:weight_Y='squish((Y+X)/100-1)'
  23332. </pre></div>
  23333. </li><li>
  23334. Sharpen:
  23335. <div class="example">
  23336. <pre class="example">fftfilt=dc_Y=0:weight_Y='1+squish(1-(Y+X)/100)'
  23337. </pre></div>
  23338. </li><li>
  23339. Blur:
  23340. <div class="example">
  23341. <pre class="example">fftfilt=dc_Y=0:weight_Y='exp(-4 * ((Y+X)/(W+H)))'
  23342. </pre></div>
  23343. </li></ul>
  23344. <a name="field"></a>
  23345. <h2 class="section"><a href="ffprobe-all.html#toc-field">32.71 field</a></h2>
  23346. <p>Extract a single field from an interlaced image using stride
  23347. arithmetic to avoid wasting CPU time. The output frames are marked as
  23348. non-interlaced.
  23349. </p>
  23350. <p>The filter accepts the following options:
  23351. </p>
  23352. <dl compact="compact">
  23353. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  23354. <dd><p>Specify whether to extract the top (if the value is <code>0</code> or
  23355. <code>top</code>) or the bottom field (if the value is <code>1</code> or
  23356. <code>bottom</code>).
  23357. </p></dd>
  23358. </dl>
  23359. <a name="fieldhint"></a>
  23360. <h2 class="section"><a href="ffprobe-all.html#toc-fieldhint">32.72 fieldhint</a></h2>
  23361. <p>Create new frames by copying the top and bottom fields from surrounding frames
  23362. supplied as numbers by the hint file.
  23363. </p>
  23364. <dl compact="compact">
  23365. <dt>&lsquo;<samp>hint</samp>&rsquo;</dt>
  23366. <dd><p>Set file containing hints: absolute/relative frame numbers.
  23367. </p>
  23368. <p>There must be one line for each frame in a clip. Each line must contain two
  23369. numbers separated by the comma, optionally followed by <code>-</code> or <code>+</code>.
  23370. Numbers supplied on each line of file can not be out of [N-1,N+1] where N
  23371. is current frame number for <code>absolute</code> mode or out of [-1, 1] range
  23372. for <code>relative</code> mode. First number tells from which frame to pick up top
  23373. field and second number tells from which frame to pick up bottom field.
  23374. </p>
  23375. <p>If optionally followed by <code>+</code> output frame will be marked as interlaced,
  23376. else if followed by <code>-</code> output frame will be marked as progressive, else
  23377. it will be marked same as input frame.
  23378. If optionally followed by <code>t</code> output frame will use only top field, or in
  23379. case of <code>b</code> it will use only bottom field.
  23380. If line starts with <code>#</code> or <code>;</code> that line is skipped.
  23381. </p>
  23382. </dd>
  23383. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23384. <dd><p>Can be item <code>absolute</code> or <code>relative</code>. Default is <code>absolute</code>.
  23385. </p></dd>
  23386. </dl>
  23387. <p>Example of first several lines of <code>hint</code> file for <code>relative</code> mode:
  23388. </p><div class="example">
  23389. <pre class="example">0,0 - # first frame
  23390. 1,0 - # second frame, use third's frame top field and second's frame bottom field
  23391. 1,0 - # third frame, use fourth's frame top field and third's frame bottom field
  23392. 1,0 -
  23393. 0,0 -
  23394. 0,0 -
  23395. 1,0 -
  23396. 1,0 -
  23397. 1,0 -
  23398. 0,0 -
  23399. 0,0 -
  23400. 1,0 -
  23401. 1,0 -
  23402. 1,0 -
  23403. 0,0 -
  23404. </pre></div>
  23405. <a name="fieldmatch"></a>
  23406. <h2 class="section"><a href="ffprobe-all.html#toc-fieldmatch">32.73 fieldmatch</a></h2>
  23407. <p>Field matching filter for inverse telecine. It is meant to reconstruct the
  23408. progressive frames from a telecined stream. The filter does not drop duplicated
  23409. frames, so to achieve a complete inverse telecine <code>fieldmatch</code> needs to be
  23410. followed by a decimation filter such as <a href="#decimate">decimate</a> in the filtergraph.
  23411. </p>
  23412. <p>The separation of the field matching and the decimation is notably motivated by
  23413. the possibility of inserting a de-interlacing filter fallback between the two.
  23414. If the source has mixed telecined and real interlaced content,
  23415. <code>fieldmatch</code> will not be able to match fields for the interlaced parts.
  23416. But these remaining combed frames will be marked as interlaced, and thus can be
  23417. de-interlaced by a later filter such as <a href="#yadif">yadif</a> before decimation.
  23418. </p>
  23419. <p>In addition to the various configuration options, <code>fieldmatch</code> can take an
  23420. optional second stream, activated through the &lsquo;<samp>ppsrc</samp>&rsquo; option. If
  23421. enabled, the frames reconstruction will be based on the fields and frames from
  23422. this second stream. This allows the first input to be pre-processed in order to
  23423. help the various algorithms of the filter, while keeping the output lossless
  23424. (assuming the fields are matched properly). Typically, a field-aware denoiser,
  23425. or brightness/contrast adjustments can help.
  23426. </p>
  23427. <p>Note that this filter uses the same algorithms as TIVTC/TFM (AviSynth project)
  23428. and VIVTC/VFM (VapourSynth project). The later is a light clone of TFM from
  23429. which <code>fieldmatch</code> is based on. While the semantic and usage are very
  23430. close, some behaviour and options names can differ.
  23431. </p>
  23432. <p>The <a href="#decimate">decimate</a> filter currently only works for constant frame rate input.
  23433. If your input has mixed telecined (30fps) and progressive content with a lower
  23434. framerate like 24fps use the following filterchain to produce the necessary cfr
  23435. stream: <code>dejudder,fps=30000/1001,fieldmatch,decimate</code>.
  23436. </p>
  23437. <p>The filter accepts the following options:
  23438. </p>
  23439. <dl compact="compact">
  23440. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  23441. <dd><p>Specify the assumed field order of the input stream. Available values are:
  23442. </p>
  23443. <dl compact="compact">
  23444. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  23445. <dd><p>Auto detect parity (use FFmpeg&rsquo;s internal parity value).
  23446. </p></dd>
  23447. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  23448. <dd><p>Assume bottom field first.
  23449. </p></dd>
  23450. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  23451. <dd><p>Assume top field first.
  23452. </p></dd>
  23453. </dl>
  23454. <p>Note that it is sometimes recommended not to trust the parity announced by the
  23455. stream.
  23456. </p>
  23457. <p>Default value is <var>auto</var>.
  23458. </p>
  23459. </dd>
  23460. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23461. <dd><p>Set the matching mode or strategy to use. &lsquo;<samp>pc</samp>&rsquo; mode is the safest in the
  23462. sense that it won&rsquo;t risk creating jerkiness due to duplicate frames when
  23463. possible, but if there are bad edits or blended fields it will end up
  23464. outputting combed frames when a good match might actually exist. On the other
  23465. hand, &lsquo;<samp>pcn_ub</samp>&rsquo; mode is the most risky in terms of creating jerkiness,
  23466. but will almost always find a good frame if there is one. The other values are
  23467. all somewhere in between &lsquo;<samp>pc</samp>&rsquo; and &lsquo;<samp>pcn_ub</samp>&rsquo; in terms of risking
  23468. jerkiness and creating duplicate frames versus finding good matches in sections
  23469. with bad edits, orphaned fields, blended fields, etc.
  23470. </p>
  23471. <p>More details about p/c/n/u/b are available in <a href="#p_002fc_002fn_002fu_002fb-meaning">p/c/n/u/b meaning</a> section.
  23472. </p>
  23473. <p>Available values are:
  23474. </p>
  23475. <dl compact="compact">
  23476. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  23477. <dd><p>2-way matching (p/c)
  23478. </p></dd>
  23479. <dt>&lsquo;<samp>pc_n</samp>&rsquo;</dt>
  23480. <dd><p>2-way matching, and trying 3rd match if still combed (p/c + n)
  23481. </p></dd>
  23482. <dt>&lsquo;<samp>pc_u</samp>&rsquo;</dt>
  23483. <dd><p>2-way matching, and trying 3rd match (same order) if still combed (p/c + u)
  23484. </p></dd>
  23485. <dt>&lsquo;<samp>pc_n_ub</samp>&rsquo;</dt>
  23486. <dd><p>2-way matching, trying 3rd match if still combed, and trying 4th/5th matches if
  23487. still combed (p/c + n + u/b)
  23488. </p></dd>
  23489. <dt>&lsquo;<samp>pcn</samp>&rsquo;</dt>
  23490. <dd><p>3-way matching (p/c/n)
  23491. </p></dd>
  23492. <dt>&lsquo;<samp>pcn_ub</samp>&rsquo;</dt>
  23493. <dd><p>3-way matching, and trying 4th/5th matches if all 3 of the original matches are
  23494. detected as combed (p/c/n + u/b)
  23495. </p></dd>
  23496. </dl>
  23497. <p>The parenthesis at the end indicate the matches that would be used for that
  23498. mode assuming &lsquo;<samp>order</samp>&rsquo;=<var>tff</var> (and &lsquo;<samp>field</samp>&rsquo; on <var>auto</var> or
  23499. <var>top</var>).
  23500. </p>
  23501. <p>In terms of speed &lsquo;<samp>pc</samp>&rsquo; mode is by far the fastest and &lsquo;<samp>pcn_ub</samp>&rsquo; is
  23502. the slowest.
  23503. </p>
  23504. <p>Default value is <var>pc_n</var>.
  23505. </p>
  23506. </dd>
  23507. <dt>&lsquo;<samp>ppsrc</samp>&rsquo;</dt>
  23508. <dd><p>Mark the main input stream as a pre-processed input, and enable the secondary
  23509. input stream as the clean source to pick the fields from. See the filter
  23510. introduction for more details. It is similar to the &lsquo;<samp>clip2</samp>&rsquo; feature from
  23511. VFM/TFM.
  23512. </p>
  23513. <p>Default value is <code>0</code> (disabled).
  23514. </p>
  23515. </dd>
  23516. <dt>&lsquo;<samp>field</samp>&rsquo;</dt>
  23517. <dd><p>Set the field to match from. It is recommended to set this to the same value as
  23518. &lsquo;<samp>order</samp>&rsquo; unless you experience matching failures with that setting. In
  23519. certain circumstances changing the field that is used to match from can have a
  23520. large impact on matching performance. Available values are:
  23521. </p>
  23522. <dl compact="compact">
  23523. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  23524. <dd><p>Automatic (same value as &lsquo;<samp>order</samp>&rsquo;).
  23525. </p></dd>
  23526. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  23527. <dd><p>Match from the bottom field.
  23528. </p></dd>
  23529. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  23530. <dd><p>Match from the top field.
  23531. </p></dd>
  23532. </dl>
  23533. <p>Default value is <var>auto</var>.
  23534. </p>
  23535. </dd>
  23536. <dt>&lsquo;<samp>mchroma</samp>&rsquo;</dt>
  23537. <dd><p>Set whether or not chroma is included during the match comparisons. In most
  23538. cases it is recommended to leave this enabled. You should set this to <code>0</code>
  23539. only if your clip has bad chroma problems such as heavy rainbowing or other
  23540. artifacts. Setting this to <code>0</code> could also be used to speed things up at
  23541. the cost of some accuracy.
  23542. </p>
  23543. <p>Default value is <code>1</code>.
  23544. </p>
  23545. </dd>
  23546. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  23547. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  23548. <dd><p>These define an exclusion band which excludes the lines between &lsquo;<samp>y0</samp>&rsquo; and
  23549. &lsquo;<samp>y1</samp>&rsquo; from being included in the field matching decision. An exclusion
  23550. band can be used to ignore subtitles, a logo, or other things that may
  23551. interfere with the matching. &lsquo;<samp>y0</samp>&rsquo; sets the starting scan line and
  23552. &lsquo;<samp>y1</samp>&rsquo; sets the ending line; all lines in between &lsquo;<samp>y0</samp>&rsquo; and
  23553. &lsquo;<samp>y1</samp>&rsquo; (including &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo;) will be ignored. Setting
  23554. &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo; to the same value will disable the feature.
  23555. &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo; defaults to <code>0</code>.
  23556. </p>
  23557. </dd>
  23558. <dt>&lsquo;<samp>scthresh</samp>&rsquo;</dt>
  23559. <dd><p>Set the scene change detection threshold as a percentage of maximum change on
  23560. the luma plane. Good values are in the <code>[8.0, 14.0]</code> range. Scene change
  23561. detection is only relevant in case &lsquo;<samp>combmatch</samp>&rsquo;=<var>sc</var>. The range for
  23562. &lsquo;<samp>scthresh</samp>&rsquo; is <code>[0.0, 100.0]</code>.
  23563. </p>
  23564. <p>Default value is <code>12.0</code>.
  23565. </p>
  23566. </dd>
  23567. <dt>&lsquo;<samp>combmatch</samp>&rsquo;</dt>
  23568. <dd><p>When &lsquo;<samp>combatch</samp>&rsquo; is not <var>none</var>, <code>fieldmatch</code> will take into
  23569. account the combed scores of matches when deciding what match to use as the
  23570. final match. Available values are:
  23571. </p>
  23572. <dl compact="compact">
  23573. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  23574. <dd><p>No final matching based on combed scores.
  23575. </p></dd>
  23576. <dt>&lsquo;<samp>sc</samp>&rsquo;</dt>
  23577. <dd><p>Combed scores are only used when a scene change is detected.
  23578. </p></dd>
  23579. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  23580. <dd><p>Use combed scores all the time.
  23581. </p></dd>
  23582. </dl>
  23583. <p>Default is <var>sc</var>.
  23584. </p>
  23585. </dd>
  23586. <dt>&lsquo;<samp>combdbg</samp>&rsquo;</dt>
  23587. <dd><p>Force <code>fieldmatch</code> to calculate the combed metrics for certain matches and
  23588. print them. This setting is known as &lsquo;<samp>micout</samp>&rsquo; in TFM/VFM vocabulary.
  23589. Available values are:
  23590. </p>
  23591. <dl compact="compact">
  23592. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  23593. <dd><p>No forced calculation.
  23594. </p></dd>
  23595. <dt>&lsquo;<samp>pcn</samp>&rsquo;</dt>
  23596. <dd><p>Force p/c/n calculations.
  23597. </p></dd>
  23598. <dt>&lsquo;<samp>pcnub</samp>&rsquo;</dt>
  23599. <dd><p>Force p/c/n/u/b calculations.
  23600. </p></dd>
  23601. </dl>
  23602. <p>Default value is <var>none</var>.
  23603. </p>
  23604. </dd>
  23605. <dt>&lsquo;<samp>cthresh</samp>&rsquo;</dt>
  23606. <dd><p>This is the area combing threshold used for combed frame detection. This
  23607. essentially controls how &quot;strong&quot; or &quot;visible&quot; combing must be to be detected.
  23608. Larger values mean combing must be more visible and smaller values mean combing
  23609. can be less visible or strong and still be detected. Valid settings are from
  23610. <code>-1</code> (every pixel will be detected as combed) to <code>255</code> (no pixel will
  23611. be detected as combed). This is basically a pixel difference value. A good
  23612. range is <code>[8, 12]</code>.
  23613. </p>
  23614. <p>Default value is <code>9</code>.
  23615. </p>
  23616. </dd>
  23617. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  23618. <dd><p>Sets whether or not chroma is considered in the combed frame decision. Only
  23619. disable this if your source has chroma problems (rainbowing, etc.) that are
  23620. causing problems for the combed frame detection with chroma enabled. Actually,
  23621. using &lsquo;<samp>chroma</samp>&rsquo;=<var>0</var> is usually more reliable, except for the case
  23622. where there is chroma only combing in the source.
  23623. </p>
  23624. <p>Default value is <code>0</code>.
  23625. </p>
  23626. </dd>
  23627. <dt>&lsquo;<samp>blockx</samp>&rsquo;</dt>
  23628. <dt>&lsquo;<samp>blocky</samp>&rsquo;</dt>
  23629. <dd><p>Respectively set the x-axis and y-axis size of the window used during combed
  23630. frame detection. This has to do with the size of the area in which
  23631. &lsquo;<samp>combpel</samp>&rsquo; pixels are required to be detected as combed for a frame to be
  23632. declared combed. See the &lsquo;<samp>combpel</samp>&rsquo; parameter description for more info.
  23633. Possible values are any number that is a power of 2 starting at 4 and going up
  23634. to 512.
  23635. </p>
  23636. <p>Default value is <code>16</code>.
  23637. </p>
  23638. </dd>
  23639. <dt>&lsquo;<samp>combpel</samp>&rsquo;</dt>
  23640. <dd><p>The number of combed pixels inside any of the &lsquo;<samp>blocky</samp>&rsquo; by
  23641. &lsquo;<samp>blockx</samp>&rsquo; size blocks on the frame for the frame to be detected as
  23642. combed. While &lsquo;<samp>cthresh</samp>&rsquo; controls how &quot;visible&quot; the combing must be, this
  23643. setting controls &quot;how much&quot; combing there must be in any localized area (a
  23644. window defined by the &lsquo;<samp>blockx</samp>&rsquo; and &lsquo;<samp>blocky</samp>&rsquo; settings) on the
  23645. frame. Minimum value is <code>0</code> and maximum is <code>blocky x blockx</code> (at
  23646. which point no frames will ever be detected as combed). This setting is known
  23647. as &lsquo;<samp>MI</samp>&rsquo; in TFM/VFM vocabulary.
  23648. </p>
  23649. <p>Default value is <code>80</code>.
  23650. </p></dd>
  23651. </dl>
  23652. <p><a name="p_002fc_002fn_002fu_002fb-meaning"></a>
  23653. </p><a name="p_002fc_002fn_002fu_002fb-meaning-1"></a>
  23654. <h3 class="subsection"><a href="ffprobe-all.html#toc-p_002fc_002fn_002fu_002fb-meaning-1">32.73.1 p/c/n/u/b meaning</a></h3>
  23655. <a name="p_002fc_002fn"></a>
  23656. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-p_002fc_002fn">32.73.1.1 p/c/n</a></h4>
  23657. <p>We assume the following telecined stream:
  23658. </p>
  23659. <div class="example">
  23660. <pre class="example">Top fields: 1 2 2 3 4
  23661. Bottom fields: 1 2 3 4 4
  23662. </pre></div>
  23663. <p>The numbers correspond to the progressive frame the fields relate to. Here, the
  23664. first two frames are progressive, the 3rd and 4th are combed, and so on.
  23665. </p>
  23666. <p>When <code>fieldmatch</code> is configured to run a matching from bottom
  23667. (&lsquo;<samp>field</samp>&rsquo;=<var>bottom</var>) this is how this input stream get transformed:
  23668. </p>
  23669. <div class="example">
  23670. <pre class="example">Input stream:
  23671. T 1 2 2 3 4
  23672. B 1 2 3 4 4 &lt;-- matching reference
  23673. Matches: c c n n c
  23674. Output stream:
  23675. T 1 2 3 4 4
  23676. B 1 2 3 4 4
  23677. </pre></div>
  23678. <p>As a result of the field matching, we can see that some frames get duplicated.
  23679. To perform a complete inverse telecine, you need to rely on a decimation filter
  23680. after this operation. See for instance the <a href="#decimate">decimate</a> filter.
  23681. </p>
  23682. <p>The same operation now matching from top fields (&lsquo;<samp>field</samp>&rsquo;=<var>top</var>)
  23683. looks like this:
  23684. </p>
  23685. <div class="example">
  23686. <pre class="example">Input stream:
  23687. T 1 2 2 3 4 &lt;-- matching reference
  23688. B 1 2 3 4 4
  23689. Matches: c c p p c
  23690. Output stream:
  23691. T 1 2 2 3 4
  23692. B 1 2 2 3 4
  23693. </pre></div>
  23694. <p>In these examples, we can see what <var>p</var>, <var>c</var> and <var>n</var> mean;
  23695. basically, they refer to the frame and field of the opposite parity:
  23696. </p>
  23697. <ul>
  23698. <li> <var>p</var> matches the field of the opposite parity in the previous frame
  23699. </li><li> <var>c</var> matches the field of the opposite parity in the current frame
  23700. </li><li> <var>n</var> matches the field of the opposite parity in the next frame
  23701. </li></ul>
  23702. <a name="u_002fb"></a>
  23703. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-u_002fb">32.73.1.2 u/b</a></h4>
  23704. <p>The <var>u</var> and <var>b</var> matching are a bit special in the sense that they match
  23705. from the opposite parity flag. In the following examples, we assume that we are
  23706. currently matching the 2nd frame (Top:2, bottom:2). According to the match, a
  23707. &rsquo;x&rsquo; is placed above and below each matched fields.
  23708. </p>
  23709. <p>With bottom matching (&lsquo;<samp>field</samp>&rsquo;=<var>bottom</var>):
  23710. </p><div class="example">
  23711. <pre class="example">Match: c p n b u
  23712. x x x x x
  23713. Top 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2
  23714. Bottom 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
  23715. x x x x x
  23716. Output frames:
  23717. 2 1 2 2 2
  23718. 2 2 2 1 3
  23719. </pre></div>
  23720. <p>With top matching (&lsquo;<samp>field</samp>&rsquo;=<var>top</var>):
  23721. </p><div class="example">
  23722. <pre class="example">Match: c p n b u
  23723. x x x x x
  23724. Top 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2
  23725. Bottom 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
  23726. x x x x x
  23727. Output frames:
  23728. 2 2 2 1 2
  23729. 2 1 3 2 2
  23730. </pre></div>
  23731. <a name="Examples-47"></a>
  23732. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-47">32.73.2 Examples</a></h3>
  23733. <p>Simple IVTC of a top field first telecined stream:
  23734. </p><div class="example">
  23735. <pre class="example">fieldmatch=order=tff:combmatch=none, decimate
  23736. </pre></div>
  23737. <p>Advanced IVTC, with fallback on <a href="#yadif">yadif</a> for still combed frames:
  23738. </p><div class="example">
  23739. <pre class="example">fieldmatch=order=tff:combmatch=full, yadif=deint=interlaced, decimate
  23740. </pre></div>
  23741. <a name="fieldorder"></a>
  23742. <h2 class="section"><a href="ffprobe-all.html#toc-fieldorder">32.74 fieldorder</a></h2>
  23743. <p>Transform the field order of the input video.
  23744. </p>
  23745. <p>It accepts the following parameters:
  23746. </p>
  23747. <dl compact="compact">
  23748. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  23749. <dd><p>The output field order. Valid values are <var>tff</var> for top field first or <var>bff</var>
  23750. for bottom field first.
  23751. </p></dd>
  23752. </dl>
  23753. <p>The default value is &lsquo;<samp>tff</samp>&rsquo;.
  23754. </p>
  23755. <p>The transformation is done by shifting the picture content up or down
  23756. by one line, and filling the remaining line with appropriate picture content.
  23757. This method is consistent with most broadcast field order converters.
  23758. </p>
  23759. <p>If the input video is not flagged as being interlaced, or it is already
  23760. flagged as being of the required output field order, then this filter does
  23761. not alter the incoming video.
  23762. </p>
  23763. <p>It is very useful when converting to or from PAL DV material,
  23764. which is bottom field first.
  23765. </p>
  23766. <p>For example:
  23767. </p><div class="example">
  23768. <pre class="example">ffmpeg -i in.vob -vf &quot;fieldorder=bff&quot; out.dv
  23769. </pre></div>
  23770. <a name="fifo_002c-afifo"></a>
  23771. <h2 class="section"><a href="ffprobe-all.html#toc-fifo_002c-afifo">32.75 fifo, afifo</a></h2>
  23772. <p>Buffer input images and send them when they are requested.
  23773. </p>
  23774. <p>It is mainly useful when auto-inserted by the libavfilter
  23775. framework.
  23776. </p>
  23777. <p>It does not take parameters.
  23778. </p>
  23779. <a name="fillborders"></a>
  23780. <h2 class="section"><a href="ffprobe-all.html#toc-fillborders">32.76 fillborders</a></h2>
  23781. <p>Fill borders of the input video, without changing video stream dimensions.
  23782. Sometimes video can have garbage at the four edges and you may not want to
  23783. crop video input to keep size multiple of some number.
  23784. </p>
  23785. <p>This filter accepts the following options:
  23786. </p>
  23787. <dl compact="compact">
  23788. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  23789. <dd><p>Number of pixels to fill from left border.
  23790. </p>
  23791. </dd>
  23792. <dt>&lsquo;<samp>right</samp>&rsquo;</dt>
  23793. <dd><p>Number of pixels to fill from right border.
  23794. </p>
  23795. </dd>
  23796. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  23797. <dd><p>Number of pixels to fill from top border.
  23798. </p>
  23799. </dd>
  23800. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  23801. <dd><p>Number of pixels to fill from bottom border.
  23802. </p>
  23803. </dd>
  23804. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23805. <dd><p>Set fill mode.
  23806. </p>
  23807. <p>It accepts the following values:
  23808. </p><dl compact="compact">
  23809. <dt>&lsquo;<samp>smear</samp>&rsquo;</dt>
  23810. <dd><p>fill pixels using outermost pixels
  23811. </p>
  23812. </dd>
  23813. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  23814. <dd><p>fill pixels using mirroring
  23815. </p>
  23816. </dd>
  23817. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  23818. <dd><p>fill pixels with constant value
  23819. </p></dd>
  23820. </dl>
  23821. <p>Default is <var>smear</var>.
  23822. </p>
  23823. </dd>
  23824. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  23825. <dd><p>Set color for pixels in fixed mode. Default is <var>black</var>.
  23826. </p></dd>
  23827. </dl>
  23828. <a name="Commands-37"></a>
  23829. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-37">32.76.1 Commands</a></h3>
  23830. <p>This filter supports same <a href="#commands">commands</a> as options.
  23831. The command accepts the same syntax of the corresponding option.
  23832. </p>
  23833. <p>If the specified expression is not valid, it is kept at its current
  23834. value.
  23835. </p>
  23836. <a name="find_005frect"></a>
  23837. <h2 class="section"><a href="ffprobe-all.html#toc-find_005frect">32.77 find_rect</a></h2>
  23838. <p>Find a rectangular object
  23839. </p>
  23840. <p>It accepts the following options:
  23841. </p>
  23842. <dl compact="compact">
  23843. <dt>&lsquo;<samp>object</samp>&rsquo;</dt>
  23844. <dd><p>Filepath of the object image, needs to be in gray8.
  23845. </p>
  23846. </dd>
  23847. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  23848. <dd><p>Detection threshold, default is 0.5.
  23849. </p>
  23850. </dd>
  23851. <dt>&lsquo;<samp>mipmaps</samp>&rsquo;</dt>
  23852. <dd><p>Number of mipmaps, default is 3.
  23853. </p>
  23854. </dd>
  23855. <dt>&lsquo;<samp>xmin, ymin, xmax, ymax</samp>&rsquo;</dt>
  23856. <dd><p>Specifies the rectangle in which to search.
  23857. </p></dd>
  23858. </dl>
  23859. <a name="Examples-37"></a>
  23860. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-37">32.77.1 Examples</a></h3>
  23861. <ul>
  23862. <li>
  23863. Cover a rectangular object by the supplied image of a given video using <code>ffmpeg</code>:
  23864. <div class="example">
  23865. <pre class="example">ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
  23866. </pre></div>
  23867. </li></ul>
  23868. <a name="floodfill"></a>
  23869. <h2 class="section"><a href="ffprobe-all.html#toc-floodfill">32.78 floodfill</a></h2>
  23870. <p>Flood area with values of same pixel components with another values.
  23871. </p>
  23872. <p>It accepts the following options:
  23873. </p><dl compact="compact">
  23874. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  23875. <dd><p>Set pixel x coordinate.
  23876. </p>
  23877. </dd>
  23878. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  23879. <dd><p>Set pixel y coordinate.
  23880. </p>
  23881. </dd>
  23882. <dt>&lsquo;<samp>s0</samp>&rsquo;</dt>
  23883. <dd><p>Set source #0 component value.
  23884. </p>
  23885. </dd>
  23886. <dt>&lsquo;<samp>s1</samp>&rsquo;</dt>
  23887. <dd><p>Set source #1 component value.
  23888. </p>
  23889. </dd>
  23890. <dt>&lsquo;<samp>s2</samp>&rsquo;</dt>
  23891. <dd><p>Set source #2 component value.
  23892. </p>
  23893. </dd>
  23894. <dt>&lsquo;<samp>s3</samp>&rsquo;</dt>
  23895. <dd><p>Set source #3 component value.
  23896. </p>
  23897. </dd>
  23898. <dt>&lsquo;<samp>d0</samp>&rsquo;</dt>
  23899. <dd><p>Set destination #0 component value.
  23900. </p>
  23901. </dd>
  23902. <dt>&lsquo;<samp>d1</samp>&rsquo;</dt>
  23903. <dd><p>Set destination #1 component value.
  23904. </p>
  23905. </dd>
  23906. <dt>&lsquo;<samp>d2</samp>&rsquo;</dt>
  23907. <dd><p>Set destination #2 component value.
  23908. </p>
  23909. </dd>
  23910. <dt>&lsquo;<samp>d3</samp>&rsquo;</dt>
  23911. <dd><p>Set destination #3 component value.
  23912. </p></dd>
  23913. </dl>
  23914. <p><a name="format"></a>
  23915. </p><a name="format-1"></a>
  23916. <h2 class="section"><a href="ffprobe-all.html#toc-format-1">32.79 format</a></h2>
  23917. <p>Convert the input video to one of the specified pixel formats.
  23918. Libavfilter will try to pick one that is suitable as input to
  23919. the next filter.
  23920. </p>
  23921. <p>It accepts the following parameters:
  23922. </p><dl compact="compact">
  23923. <dt>&lsquo;<samp>pix_fmts</samp>&rsquo;</dt>
  23924. <dd><p>A &rsquo;|&rsquo;-separated list of pixel format names, such as
  23925. &quot;pix_fmts=yuv420p|monow|rgb24&quot;.
  23926. </p>
  23927. </dd>
  23928. </dl>
  23929. <a name="Examples-41"></a>
  23930. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-41">32.79.1 Examples</a></h3>
  23931. <ul>
  23932. <li>
  23933. Convert the input video to the <var>yuv420p</var> format
  23934. <div class="example">
  23935. <pre class="example">format=pix_fmts=yuv420p
  23936. </pre></div>
  23937. <p>Convert the input video to any of the formats in the list
  23938. </p><div class="example">
  23939. <pre class="example">format=pix_fmts=yuv420p|yuv444p|yuv410p
  23940. </pre></div>
  23941. </li></ul>
  23942. <p><a name="fps"></a>
  23943. </p><a name="fps-1"></a>
  23944. <h2 class="section"><a href="ffprobe-all.html#toc-fps-1">32.80 fps</a></h2>
  23945. <p>Convert the video to specified constant frame rate by duplicating or dropping
  23946. frames as necessary.
  23947. </p>
  23948. <p>It accepts the following parameters:
  23949. </p><dl compact="compact">
  23950. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  23951. <dd><p>The desired output frame rate. The default is <code>25</code>.
  23952. </p>
  23953. </dd>
  23954. <dt>&lsquo;<samp>start_time</samp>&rsquo;</dt>
  23955. <dd><p>Assume the first PTS should be the given value, in seconds. This allows for
  23956. padding/trimming at the start of stream. By default, no assumption is made
  23957. about the first frame&rsquo;s expected PTS, so no padding or trimming is done.
  23958. For example, this could be set to 0 to pad the beginning with duplicates of
  23959. the first frame if a video stream starts after the audio stream or to trim any
  23960. frames with a negative PTS.
  23961. </p>
  23962. </dd>
  23963. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  23964. <dd><p>Timestamp (PTS) rounding method.
  23965. </p>
  23966. <p>Possible values are:
  23967. </p><dl compact="compact">
  23968. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  23969. <dd><p>round towards 0
  23970. </p></dd>
  23971. <dt>&lsquo;<samp>inf</samp>&rsquo;</dt>
  23972. <dd><p>round away from 0
  23973. </p></dd>
  23974. <dt>&lsquo;<samp>down</samp>&rsquo;</dt>
  23975. <dd><p>round towards -infinity
  23976. </p></dd>
  23977. <dt>&lsquo;<samp>up</samp>&rsquo;</dt>
  23978. <dd><p>round towards +infinity
  23979. </p></dd>
  23980. <dt>&lsquo;<samp>near</samp>&rsquo;</dt>
  23981. <dd><p>round to nearest
  23982. </p></dd>
  23983. </dl>
  23984. <p>The default is <code>near</code>.
  23985. </p>
  23986. </dd>
  23987. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  23988. <dd><p>Action performed when reading the last frame.
  23989. </p>
  23990. <p>Possible values are:
  23991. </p><dl compact="compact">
  23992. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  23993. <dd><p>Use same timestamp rounding method as used for other frames.
  23994. </p></dd>
  23995. <dt>&lsquo;<samp>pass</samp>&rsquo;</dt>
  23996. <dd><p>Pass through last frame if input duration has not been reached yet.
  23997. </p></dd>
  23998. </dl>
  23999. <p>The default is <code>round</code>.
  24000. </p>
  24001. </dd>
  24002. </dl>
  24003. <p>Alternatively, the options can be specified as a flat string:
  24004. <var>fps</var>[:<var>start_time</var>[:<var>round</var>]].
  24005. </p>
  24006. <p>See also the <a href="#setpts">setpts</a> filter.
  24007. </p>
  24008. <a name="Examples-64"></a>
  24009. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-64">32.80.1 Examples</a></h3>
  24010. <ul>
  24011. <li>
  24012. A typical usage in order to set the fps to 25:
  24013. <div class="example">
  24014. <pre class="example">fps=fps=25
  24015. </pre></div>
  24016. </li><li>
  24017. Sets the fps to 24, using abbreviation and rounding method to round to nearest:
  24018. <div class="example">
  24019. <pre class="example">fps=fps=film:round=near
  24020. </pre></div>
  24021. </li></ul>
  24022. <a name="framepack"></a>
  24023. <h2 class="section"><a href="ffprobe-all.html#toc-framepack">32.81 framepack</a></h2>
  24024. <p>Pack two different video streams into a stereoscopic video, setting proper
  24025. metadata on supported codecs. The two views should have the same size and
  24026. framerate and processing will stop when the shorter video ends. Please note
  24027. that you may conveniently adjust view properties with the <a href="#scale">scale</a> and
  24028. <a href="#fps">fps</a> filters.
  24029. </p>
  24030. <p>It accepts the following parameters:
  24031. </p><dl compact="compact">
  24032. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  24033. <dd><p>The desired packing format. Supported values are:
  24034. </p>
  24035. <dl compact="compact">
  24036. <dt>&lsquo;<samp>sbs</samp>&rsquo;</dt>
  24037. <dd><p>The views are next to each other (default).
  24038. </p>
  24039. </dd>
  24040. <dt>&lsquo;<samp>tab</samp>&rsquo;</dt>
  24041. <dd><p>The views are on top of each other.
  24042. </p>
  24043. </dd>
  24044. <dt>&lsquo;<samp>lines</samp>&rsquo;</dt>
  24045. <dd><p>The views are packed by line.
  24046. </p>
  24047. </dd>
  24048. <dt>&lsquo;<samp>columns</samp>&rsquo;</dt>
  24049. <dd><p>The views are packed by column.
  24050. </p>
  24051. </dd>
  24052. <dt>&lsquo;<samp>frameseq</samp>&rsquo;</dt>
  24053. <dd><p>The views are temporally interleaved.
  24054. </p>
  24055. </dd>
  24056. </dl>
  24057. </dd>
  24058. </dl>
  24059. <p>Some examples:
  24060. </p>
  24061. <div class="example">
  24062. <pre class="example"># Convert left and right views into a frame-sequential video
  24063. ffmpeg -i LEFT -i RIGHT -filter_complex framepack=frameseq OUTPUT
  24064. # Convert views into a side-by-side video with the same output resolution as the input
  24065. ffmpeg -i LEFT -i RIGHT -filter_complex [0:v]scale=w=iw/2[left],[1:v]scale=w=iw/2[right],[left][right]framepack=sbs OUTPUT
  24066. </pre></div>
  24067. <a name="framerate"></a>
  24068. <h2 class="section"><a href="ffprobe-all.html#toc-framerate">32.82 framerate</a></h2>
  24069. <p>Change the frame rate by interpolating new video output frames from the source
  24070. frames.
  24071. </p>
  24072. <p>This filter is not designed to function correctly with interlaced media. If
  24073. you wish to change the frame rate of interlaced media then you are required
  24074. to deinterlace before this filter and re-interlace after this filter.
  24075. </p>
  24076. <p>A description of the accepted options follows.
  24077. </p>
  24078. <dl compact="compact">
  24079. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  24080. <dd><p>Specify the output frames per second. This option can also be specified
  24081. as a value alone. The default is <code>50</code>.
  24082. </p>
  24083. </dd>
  24084. <dt>&lsquo;<samp>interp_start</samp>&rsquo;</dt>
  24085. <dd><p>Specify the start of a range where the output frame will be created as a
  24086. linear interpolation of two frames. The range is [<code>0</code>-<code>255</code>],
  24087. the default is <code>15</code>.
  24088. </p>
  24089. </dd>
  24090. <dt>&lsquo;<samp>interp_end</samp>&rsquo;</dt>
  24091. <dd><p>Specify the end of a range where the output frame will be created as a
  24092. linear interpolation of two frames. The range is [<code>0</code>-<code>255</code>],
  24093. the default is <code>240</code>.
  24094. </p>
  24095. </dd>
  24096. <dt>&lsquo;<samp>scene</samp>&rsquo;</dt>
  24097. <dd><p>Specify the level at which a scene change is detected as a value between
  24098. 0 and 100 to indicate a new scene; a low value reflects a low
  24099. probability for the current frame to introduce a new scene, while a higher
  24100. value means the current frame is more likely to be one.
  24101. The default is <code>8.2</code>.
  24102. </p>
  24103. </dd>
  24104. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  24105. <dd><p>Specify flags influencing the filter process.
  24106. </p>
  24107. <p>Available value for <var>flags</var> is:
  24108. </p>
  24109. <dl compact="compact">
  24110. <dt>&lsquo;<samp>scene_change_detect, scd</samp>&rsquo;</dt>
  24111. <dd><p>Enable scene change detection using the value of the option <var>scene</var>.
  24112. This flag is enabled by default.
  24113. </p></dd>
  24114. </dl>
  24115. </dd>
  24116. </dl>
  24117. <a name="framestep"></a>
  24118. <h2 class="section"><a href="ffprobe-all.html#toc-framestep">32.83 framestep</a></h2>
  24119. <p>Select one frame every N-th frame.
  24120. </p>
  24121. <p>This filter accepts the following option:
  24122. </p><dl compact="compact">
  24123. <dt>&lsquo;<samp>step</samp>&rsquo;</dt>
  24124. <dd><p>Select frame after every <code>step</code> frames.
  24125. Allowed values are positive integers higher than 0. Default value is <code>1</code>.
  24126. </p></dd>
  24127. </dl>
  24128. <a name="freezedetect"></a>
  24129. <h2 class="section"><a href="ffprobe-all.html#toc-freezedetect">32.84 freezedetect</a></h2>
  24130. <p>Detect frozen video.
  24131. </p>
  24132. <p>This filter logs a message and sets frame metadata when it detects that the
  24133. input video has no significant change in content during a specified duration.
  24134. Video freeze detection calculates the mean average absolute difference of all
  24135. the components of video frames and compares it to a noise floor.
  24136. </p>
  24137. <p>The printed times and duration are expressed in seconds. The
  24138. <code>lavfi.freezedetect.freeze_start</code> metadata key is set on the first frame
  24139. whose timestamp equals or exceeds the detection duration and it contains the
  24140. timestamp of the first frame of the freeze. The
  24141. <code>lavfi.freezedetect.freeze_duration</code> and
  24142. <code>lavfi.freezedetect.freeze_end</code> metadata keys are set on the first frame
  24143. after the freeze.
  24144. </p>
  24145. <p>The filter accepts the following options:
  24146. </p>
  24147. <dl compact="compact">
  24148. <dt>&lsquo;<samp>noise, n</samp>&rsquo;</dt>
  24149. <dd><p>Set noise tolerance. Can be specified in dB (in case &quot;dB&quot; is appended to the
  24150. specified value) or as a difference ratio between 0 and 1. Default is -60dB, or
  24151. 0.001.
  24152. </p>
  24153. </dd>
  24154. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  24155. <dd><p>Set freeze duration until notification (default is 2 seconds).
  24156. </p></dd>
  24157. </dl>
  24158. <a name="freezeframes"></a>
  24159. <h2 class="section"><a href="ffprobe-all.html#toc-freezeframes">32.85 freezeframes</a></h2>
  24160. <p>Freeze video frames.
  24161. </p>
  24162. <p>This filter freezes video frames using frame from 2nd input.
  24163. </p>
  24164. <p>The filter accepts the following options:
  24165. </p>
  24166. <dl compact="compact">
  24167. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  24168. <dd><p>Set number of first frame from which to start freeze.
  24169. </p>
  24170. </dd>
  24171. <dt>&lsquo;<samp>last</samp>&rsquo;</dt>
  24172. <dd><p>Set number of last frame from which to end freeze.
  24173. </p>
  24174. </dd>
  24175. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  24176. <dd><p>Set number of frame from 2nd input which will be used instead of replaced frames.
  24177. </p></dd>
  24178. </dl>
  24179. <p><a name="frei0r"></a>
  24180. </p><a name="frei0r-1"></a>
  24181. <h2 class="section"><a href="ffprobe-all.html#toc-frei0r-1">32.86 frei0r</a></h2>
  24182. <p>Apply a frei0r effect to the input video.
  24183. </p>
  24184. <p>To enable the compilation of this filter, you need to install the frei0r
  24185. header and configure FFmpeg with <code>--enable-frei0r</code>.
  24186. </p>
  24187. <p>It accepts the following parameters:
  24188. </p>
  24189. <dl compact="compact">
  24190. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  24191. <dd><p>The name of the frei0r effect to load. If the environment variable
  24192. <code>FREI0R_PATH</code> is defined, the frei0r effect is searched for in each of the
  24193. directories specified by the colon-separated list in <code>FREI0R_PATH</code>.
  24194. Otherwise, the standard frei0r paths are searched, in this order:
  24195. &lsquo;<tt>HOME/.frei0r-1/lib/</tt>&rsquo;, &lsquo;<tt>/usr/local/lib/frei0r-1/</tt>&rsquo;,
  24196. &lsquo;<tt>/usr/lib/frei0r-1/</tt>&rsquo;.
  24197. </p>
  24198. </dd>
  24199. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  24200. <dd><p>A &rsquo;|&rsquo;-separated list of parameters to pass to the frei0r effect.
  24201. </p>
  24202. </dd>
  24203. </dl>
  24204. <p>A frei0r effect parameter can be a boolean (its value is either
  24205. &quot;y&quot; or &quot;n&quot;), a double, a color (specified as
  24206. <var>R</var>/<var>G</var>/<var>B</var>, where <var>R</var>, <var>G</var>, and <var>B</var> are floating point
  24207. numbers between 0.0 and 1.0, inclusive) or a color description as specified in the
  24208. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>,
  24209. a position (specified as <var>X</var>/<var>Y</var>, where
  24210. <var>X</var> and <var>Y</var> are floating point numbers) and/or a string.
  24211. </p>
  24212. <p>The number and types of parameters depend on the loaded effect. If an
  24213. effect parameter is not specified, the default value is set.
  24214. </p>
  24215. <a name="Examples-159"></a>
  24216. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-159">32.86.1 Examples</a></h3>
  24217. <ul>
  24218. <li>
  24219. Apply the distort0r effect, setting the first two double parameters:
  24220. <div class="example">
  24221. <pre class="example">frei0r=filter_name=distort0r:filter_params=0.5|0.01
  24222. </pre></div>
  24223. </li><li>
  24224. Apply the colordistance effect, taking a color as the first parameter:
  24225. <div class="example">
  24226. <pre class="example">frei0r=colordistance:0.2/0.3/0.4
  24227. frei0r=colordistance:violet
  24228. frei0r=colordistance:0x112233
  24229. </pre></div>
  24230. </li><li>
  24231. Apply the perspective effect, specifying the top left and top right image
  24232. positions:
  24233. <div class="example">
  24234. <pre class="example">frei0r=perspective:0.2/0.2|0.8/0.2
  24235. </pre></div>
  24236. </li></ul>
  24237. <p>For more information, see
  24238. <a href="http://frei0r.dyne.org">http://frei0r.dyne.org</a>
  24239. </p>
  24240. <a name="fspp"></a>
  24241. <h2 class="section"><a href="ffprobe-all.html#toc-fspp">32.87 fspp</a></h2>
  24242. <p>Apply fast and simple postprocessing. It is a faster version of <a href="#spp">spp</a>.
  24243. </p>
  24244. <p>It splits (I)DCT into horizontal/vertical passes. Unlike the simple post-
  24245. processing filter, one of them is performed once per block, not per pixel.
  24246. This allows for much higher speed.
  24247. </p>
  24248. <p>The filter accepts the following options:
  24249. </p>
  24250. <dl compact="compact">
  24251. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  24252. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  24253. an integer in the range 4-5. Default value is <code>4</code>.
  24254. </p>
  24255. </dd>
  24256. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  24257. <dd><p>Force a constant quantization parameter. It accepts an integer in range 0-63.
  24258. If not set, the filter will use the QP from the video stream (if available).
  24259. </p>
  24260. </dd>
  24261. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  24262. <dd><p>Set filter strength. It accepts an integer in range -15 to 32. Lower values mean
  24263. more details but also more artifacts, while higher values make the image smoother
  24264. but also blurrier. Default value is <code>0</code> − PSNR optimal.
  24265. </p>
  24266. </dd>
  24267. <dt>&lsquo;<samp>use_bframe_qp</samp>&rsquo;</dt>
  24268. <dd><p>Enable the use of the QP from the B-Frames if set to <code>1</code>. Using this
  24269. option may cause flicker since the B-Frames have often larger QP. Default is
  24270. <code>0</code> (not enabled).
  24271. </p>
  24272. </dd>
  24273. </dl>
  24274. <a name="gblur"></a>
  24275. <h2 class="section"><a href="ffprobe-all.html#toc-gblur">32.88 gblur</a></h2>
  24276. <p>Apply Gaussian blur filter.
  24277. </p>
  24278. <p>The filter accepts the following options:
  24279. </p>
  24280. <dl compact="compact">
  24281. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  24282. <dd><p>Set horizontal sigma, standard deviation of Gaussian blur. Default is <code>0.5</code>.
  24283. </p>
  24284. </dd>
  24285. <dt>&lsquo;<samp>steps</samp>&rsquo;</dt>
  24286. <dd><p>Set number of steps for Gaussian approximation. Default is <code>1</code>.
  24287. </p>
  24288. </dd>
  24289. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  24290. <dd><p>Set which planes to filter. By default all planes are filtered.
  24291. </p>
  24292. </dd>
  24293. <dt>&lsquo;<samp>sigmaV</samp>&rsquo;</dt>
  24294. <dd><p>Set vertical sigma, if negative it will be same as <code>sigma</code>.
  24295. Default is <code>-1</code>.
  24296. </p></dd>
  24297. </dl>
  24298. <a name="Commands-46"></a>
  24299. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-46">32.88.1 Commands</a></h3>
  24300. <p>This filter supports same commands as options.
  24301. The command accepts the same syntax of the corresponding option.
  24302. </p>
  24303. <p>If the specified expression is not valid, it is kept at its current
  24304. value.
  24305. </p>
  24306. <a name="geq"></a>
  24307. <h2 class="section"><a href="ffprobe-all.html#toc-geq">32.89 geq</a></h2>
  24308. <p>Apply generic equation to each pixel.
  24309. </p>
  24310. <p>The filter accepts the following options:
  24311. </p>
  24312. <dl compact="compact">
  24313. <dt>&lsquo;<samp>lum_expr, lum</samp>&rsquo;</dt>
  24314. <dd><p>Set the luminance expression.
  24315. </p></dd>
  24316. <dt>&lsquo;<samp>cb_expr, cb</samp>&rsquo;</dt>
  24317. <dd><p>Set the chrominance blue expression.
  24318. </p></dd>
  24319. <dt>&lsquo;<samp>cr_expr, cr</samp>&rsquo;</dt>
  24320. <dd><p>Set the chrominance red expression.
  24321. </p></dd>
  24322. <dt>&lsquo;<samp>alpha_expr, a</samp>&rsquo;</dt>
  24323. <dd><p>Set the alpha expression.
  24324. </p></dd>
  24325. <dt>&lsquo;<samp>red_expr, r</samp>&rsquo;</dt>
  24326. <dd><p>Set the red expression.
  24327. </p></dd>
  24328. <dt>&lsquo;<samp>green_expr, g</samp>&rsquo;</dt>
  24329. <dd><p>Set the green expression.
  24330. </p></dd>
  24331. <dt>&lsquo;<samp>blue_expr, b</samp>&rsquo;</dt>
  24332. <dd><p>Set the blue expression.
  24333. </p></dd>
  24334. </dl>
  24335. <p>The colorspace is selected according to the specified options. If one
  24336. of the &lsquo;<samp>lum_expr</samp>&rsquo;, &lsquo;<samp>cb_expr</samp>&rsquo;, or &lsquo;<samp>cr_expr</samp>&rsquo;
  24337. options is specified, the filter will automatically select a YCbCr
  24338. colorspace. If one of the &lsquo;<samp>red_expr</samp>&rsquo;, &lsquo;<samp>green_expr</samp>&rsquo;, or
  24339. &lsquo;<samp>blue_expr</samp>&rsquo; options is specified, it will select an RGB
  24340. colorspace.
  24341. </p>
  24342. <p>If one of the chrominance expression is not defined, it falls back on the other
  24343. one. If no alpha expression is specified it will evaluate to opaque value.
  24344. If none of chrominance expressions are specified, they will evaluate
  24345. to the luminance expression.
  24346. </p>
  24347. <p>The expressions can use the following variables and functions:
  24348. </p>
  24349. <dl compact="compact">
  24350. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  24351. <dd><p>The sequential number of the filtered frame, starting from <code>0</code>.
  24352. </p>
  24353. </dd>
  24354. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  24355. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  24356. <dd><p>The coordinates of the current sample.
  24357. </p>
  24358. </dd>
  24359. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  24360. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  24361. <dd><p>The width and height of the image.
  24362. </p>
  24363. </dd>
  24364. <dt>&lsquo;<samp>SW</samp>&rsquo;</dt>
  24365. <dt>&lsquo;<samp>SH</samp>&rsquo;</dt>
  24366. <dd><p>Width and height scale depending on the currently filtered plane. It is the
  24367. ratio between the corresponding luma plane number of pixels and the current
  24368. plane ones. E.g. for YUV4:2:0 the values are <code>1,1</code> for the luma plane, and
  24369. <code>0.5,0.5</code> for chroma planes.
  24370. </p>
  24371. </dd>
  24372. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  24373. <dd><p>Time of the current frame, expressed in seconds.
  24374. </p>
  24375. </dd>
  24376. <dt>&lsquo;<samp>p(x, y)</samp>&rsquo;</dt>
  24377. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the current
  24378. plane.
  24379. </p>
  24380. </dd>
  24381. <dt>&lsquo;<samp>lum(x, y)</samp>&rsquo;</dt>
  24382. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the luminance
  24383. plane.
  24384. </p>
  24385. </dd>
  24386. <dt>&lsquo;<samp>cb(x, y)</samp>&rsquo;</dt>
  24387. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24388. blue-difference chroma plane. Return 0 if there is no such plane.
  24389. </p>
  24390. </dd>
  24391. <dt>&lsquo;<samp>cr(x, y)</samp>&rsquo;</dt>
  24392. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24393. red-difference chroma plane. Return 0 if there is no such plane.
  24394. </p>
  24395. </dd>
  24396. <dt>&lsquo;<samp>r(x, y)</samp>&rsquo;</dt>
  24397. <dt>&lsquo;<samp>g(x, y)</samp>&rsquo;</dt>
  24398. <dt>&lsquo;<samp>b(x, y)</samp>&rsquo;</dt>
  24399. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24400. red/green/blue component. Return 0 if there is no such component.
  24401. </p>
  24402. </dd>
  24403. <dt>&lsquo;<samp>alpha(x, y)</samp>&rsquo;</dt>
  24404. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the alpha
  24405. plane. Return 0 if there is no such plane.
  24406. </p>
  24407. </dd>
  24408. <dt>&lsquo;<samp>psum(x,y), lumsum(x, y), cbsum(x,y), crsum(x,y), rsum(x,y), gsum(x,y), bsum(x,y), alphasum(x,y)</samp>&rsquo;</dt>
  24409. <dd><p>Sum of sample values in the rectangle from (0,0) to (x,y), this allows obtaining
  24410. sums of samples within a rectangle. See the functions without the sum postfix.
  24411. </p>
  24412. </dd>
  24413. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  24414. <dd><p>Set one of interpolation methods:
  24415. </p><dl compact="compact">
  24416. <dt>&lsquo;<samp>nearest, n</samp>&rsquo;</dt>
  24417. <dt>&lsquo;<samp>bilinear, b</samp>&rsquo;</dt>
  24418. </dl>
  24419. <p>Default is bilinear.
  24420. </p></dd>
  24421. </dl>
  24422. <p>For functions, if <var>x</var> and <var>y</var> are outside the area, the value will be
  24423. automatically clipped to the closer edge.
  24424. </p>
  24425. <p>Please note that this filter can use multiple threads in which case each slice
  24426. will have its own expression state. If you want to use only a single expression
  24427. state because your expressions depend on previous state then you should limit
  24428. the number of filter threads to 1.
  24429. </p>
  24430. <a name="Examples-120"></a>
  24431. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-120">32.89.1 Examples</a></h3>
  24432. <ul>
  24433. <li>
  24434. Flip the image horizontally:
  24435. <div class="example">
  24436. <pre class="example">geq=p(W-X\,Y)
  24437. </pre></div>
  24438. </li><li>
  24439. Generate a bidimensional sine wave, with angle <code>PI/3</code> and a
  24440. wavelength of 100 pixels:
  24441. <div class="example">
  24442. <pre class="example">geq=128 + 100*sin(2*(PI/100)*(cos(PI/3)*(X-50*T) + sin(PI/3)*Y)):128:128
  24443. </pre></div>
  24444. </li><li>
  24445. Generate a fancy enigmatic moving light:
  24446. <div class="example">
  24447. <pre class="example">nullsrc=s=256x256,geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128
  24448. </pre></div>
  24449. </li><li>
  24450. Generate a quick emboss effect:
  24451. <div class="example">
  24452. <pre class="example">format=gray,geq=lum_expr='(p(X,Y)+(256-p(X-4,Y-4)))/2'
  24453. </pre></div>
  24454. </li><li>
  24455. Modify RGB components depending on pixel position:
  24456. <div class="example">
  24457. <pre class="example">geq=r='X/W*r(X,Y)':g='(1-X/W)*g(X,Y)':b='(H-Y)/H*b(X,Y)'
  24458. </pre></div>
  24459. </li><li>
  24460. Create a radial gradient that is the same size as the input (also see
  24461. the <a href="#vignette">vignette</a> filter):
  24462. <div class="example">
  24463. <pre class="example">geq=lum=255*gauss((X/W-0.5)*3)*gauss((Y/H-0.5)*3)/gauss(0)/gauss(0),format=gray
  24464. </pre></div>
  24465. </li></ul>
  24466. <a name="gradfun"></a>
  24467. <h2 class="section"><a href="ffprobe-all.html#toc-gradfun">32.90 gradfun</a></h2>
  24468. <p>Fix the banding artifacts that are sometimes introduced into nearly flat
  24469. regions by truncation to 8-bit color depth.
  24470. Interpolate the gradients that should go where the bands are, and
  24471. dither them.
  24472. </p>
  24473. <p>It is designed for playback only. Do not use it prior to
  24474. lossy compression, because compression tends to lose the dither and
  24475. bring back the bands.
  24476. </p>
  24477. <p>It accepts the following parameters:
  24478. </p>
  24479. <dl compact="compact">
  24480. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  24481. <dd><p>The maximum amount by which the filter will change any one pixel. This is also
  24482. the threshold for detecting nearly flat regions. Acceptable values range from
  24483. .51 to 64; the default value is 1.2. Out-of-range values will be clipped to the
  24484. valid range.
  24485. </p>
  24486. </dd>
  24487. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  24488. <dd><p>The neighborhood to fit the gradient to. A larger radius makes for smoother
  24489. gradients, but also prevents the filter from modifying the pixels near detailed
  24490. regions. Acceptable values are 8-32; the default value is 16. Out-of-range
  24491. values will be clipped to the valid range.
  24492. </p>
  24493. </dd>
  24494. </dl>
  24495. <p>Alternatively, the options can be specified as a flat string:
  24496. <var>strength</var>[:<var>radius</var>]
  24497. </p>
  24498. <a name="Examples-108"></a>
  24499. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-108">32.90.1 Examples</a></h3>
  24500. <ul>
  24501. <li>
  24502. Apply the filter with a <code>3.5</code> strength and radius of <code>8</code>:
  24503. <div class="example">
  24504. <pre class="example">gradfun=3.5:8
  24505. </pre></div>
  24506. </li><li>
  24507. Specify radius, omitting the strength (which will fall-back to the default
  24508. value):
  24509. <div class="example">
  24510. <pre class="example">gradfun=radius=8
  24511. </pre></div>
  24512. </li></ul>
  24513. <p><a name="graphmonitor"></a>
  24514. </p><a name="graphmonitor-1"></a>
  24515. <h2 class="section"><a href="ffprobe-all.html#toc-graphmonitor-1">32.91 graphmonitor</a></h2>
  24516. <p>Show various filtergraph stats.
  24517. </p>
  24518. <p>With this filter one can debug complete filtergraph.
  24519. Especially issues with links filling with queued frames.
  24520. </p>
  24521. <p>The filter accepts the following options:
  24522. </p>
  24523. <dl compact="compact">
  24524. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  24525. <dd><p>Set video output size. Default is <var>hd720</var>.
  24526. </p>
  24527. </dd>
  24528. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  24529. <dd><p>Set video opacity. Default is <var>0.9</var>. Allowed range is from <var>0</var> to <var>1</var>.
  24530. </p>
  24531. </dd>
  24532. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  24533. <dd><p>Set output mode, can be <var>fulll</var> or <var>compact</var>.
  24534. In <var>compact</var> mode only filters with some queued frames have displayed stats.
  24535. </p>
  24536. </dd>
  24537. <dt>&lsquo;<samp>flags, f</samp>&rsquo;</dt>
  24538. <dd><p>Set flags which enable which stats are shown in video.
  24539. </p>
  24540. <p>Available values for flags are:
  24541. </p><dl compact="compact">
  24542. <dt>&lsquo;<samp>queue</samp>&rsquo;</dt>
  24543. <dd><p>Display number of queued frames in each link.
  24544. </p>
  24545. </dd>
  24546. <dt>&lsquo;<samp>frame_count_in</samp>&rsquo;</dt>
  24547. <dd><p>Display number of frames taken from filter.
  24548. </p>
  24549. </dd>
  24550. <dt>&lsquo;<samp>frame_count_out</samp>&rsquo;</dt>
  24551. <dd><p>Display number of frames given out from filter.
  24552. </p>
  24553. </dd>
  24554. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  24555. <dd><p>Display current filtered frame pts.
  24556. </p>
  24557. </dd>
  24558. <dt>&lsquo;<samp>time</samp>&rsquo;</dt>
  24559. <dd><p>Display current filtered frame time.
  24560. </p>
  24561. </dd>
  24562. <dt>&lsquo;<samp>timebase</samp>&rsquo;</dt>
  24563. <dd><p>Display time base for filter link.
  24564. </p>
  24565. </dd>
  24566. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  24567. <dd><p>Display used format for filter link.
  24568. </p>
  24569. </dd>
  24570. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  24571. <dd><p>Display video size or number of audio channels in case of audio used by filter link.
  24572. </p>
  24573. </dd>
  24574. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  24575. <dd><p>Display video frame rate or sample rate in case of audio used by filter link.
  24576. </p></dd>
  24577. </dl>
  24578. </dd>
  24579. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  24580. <dd><p>Set upper limit for video rate of output stream, Default value is <var>25</var>.
  24581. This guarantee that output video frame rate will not be higher than this value.
  24582. </p></dd>
  24583. </dl>
  24584. <a name="greyedge"></a>
  24585. <h2 class="section"><a href="ffprobe-all.html#toc-greyedge">32.92 greyedge</a></h2>
  24586. <p>A color constancy variation filter which estimates scene illumination via grey edge algorithm
  24587. and corrects the scene colors accordingly.
  24588. </p>
  24589. <p>See: <a href="https://staff.science.uva.nl/th.gevers/pub/GeversTIP07.pdf">https://staff.science.uva.nl/th.gevers/pub/GeversTIP07.pdf</a>
  24590. </p>
  24591. <p>The filter accepts the following options:
  24592. </p>
  24593. <dl compact="compact">
  24594. <dt>&lsquo;<samp>difford</samp>&rsquo;</dt>
  24595. <dd><p>The order of differentiation to be applied on the scene. Must be chosen in the range
  24596. [0,2] and default value is 1.
  24597. </p>
  24598. </dd>
  24599. <dt>&lsquo;<samp>minknorm</samp>&rsquo;</dt>
  24600. <dd><p>The Minkowski parameter to be used for calculating the Minkowski distance. Must
  24601. be chosen in the range [0,20] and default value is 1. Set to 0 for getting
  24602. max value instead of calculating Minkowski distance.
  24603. </p>
  24604. </dd>
  24605. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  24606. <dd><p>The standard deviation of Gaussian blur to be applied on the scene. Must be
  24607. chosen in the range [0,1024.0] and default value = 1. floor( <var>sigma</var> * break_off_sigma(3) )
  24608. can&rsquo;t be equal to 0 if <var>difford</var> is greater than 0.
  24609. </p></dd>
  24610. </dl>
  24611. <a name="Examples-136"></a>
  24612. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-136">32.92.1 Examples</a></h3>
  24613. <ul>
  24614. <li>
  24615. Grey Edge:
  24616. <div class="example">
  24617. <pre class="example">greyedge=difford=1:minknorm=5:sigma=2
  24618. </pre></div>
  24619. </li><li>
  24620. Max Edge:
  24621. <div class="example">
  24622. <pre class="example">greyedge=difford=1:minknorm=0:sigma=2
  24623. </pre></div>
  24624. </li></ul>
  24625. <p><a name="haldclut"></a>
  24626. </p><a name="haldclut-1"></a>
  24627. <h2 class="section"><a href="ffprobe-all.html#toc-haldclut-1">32.93 haldclut</a></h2>
  24628. <p>Apply a Hald CLUT to a video stream.
  24629. </p>
  24630. <p>First input is the video stream to process, and second one is the Hald CLUT.
  24631. The Hald CLUT input can be a simple picture or a complete video stream.
  24632. </p>
  24633. <p>The filter accepts the following options:
  24634. </p>
  24635. <dl compact="compact">
  24636. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  24637. <dd><p>Force termination when the shortest input terminates. Default is <code>0</code>.
  24638. </p></dd>
  24639. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  24640. <dd><p>Continue applying the last CLUT after the end of the stream. A value of
  24641. <code>0</code> disable the filter after the last frame of the CLUT is reached.
  24642. Default is <code>1</code>.
  24643. </p></dd>
  24644. </dl>
  24645. <p><code>haldclut</code> also has the same interpolation options as <a href="#lut3d">lut3d</a> (both
  24646. filters share the same internals).
  24647. </p>
  24648. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  24649. </p>
  24650. <p>More information about the Hald CLUT can be found on Eskil Steenberg&rsquo;s website
  24651. (Hald CLUT author) at <a href="http://www.quelsolaar.com/technology/clut.html">http://www.quelsolaar.com/technology/clut.html</a>.
  24652. </p>
  24653. <a name="Workflow-examples"></a>
  24654. <h3 class="subsection"><a href="ffprobe-all.html#toc-Workflow-examples">32.93.1 Workflow examples</a></h3>
  24655. <a name="Hald-CLUT-video-stream"></a>
  24656. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-Hald-CLUT-video-stream">32.93.1.1 Hald CLUT video stream</a></h4>
  24657. <p>Generate an identity Hald CLUT stream altered with various effects:
  24658. </p><div class="example">
  24659. <pre class="example">ffmpeg -f lavfi -i <a href="#haldclutsrc">haldclutsrc</a>=8 -vf &quot;hue=H=2*PI*t:s=sin(2*PI*t)+1, curves=cross_process&quot; -t 10 -c:v ffv1 clut.nut
  24660. </pre></div>
  24661. <p>Note: make sure you use a lossless codec.
  24662. </p>
  24663. <p>Then use it with <code>haldclut</code> to apply it on some random stream:
  24664. </p><div class="example">
  24665. <pre class="example">ffmpeg -f lavfi -i mandelbrot -i clut.nut -filter_complex '[0][1] haldclut' -t 20 mandelclut.mkv
  24666. </pre></div>
  24667. <p>The Hald CLUT will be applied to the 10 first seconds (duration of
  24668. &lsquo;<tt>clut.nut</tt>&rsquo;), then the latest picture of that CLUT stream will be applied
  24669. to the remaining frames of the <code>mandelbrot</code> stream.
  24670. </p>
  24671. <a name="Hald-CLUT-with-preview"></a>
  24672. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-Hald-CLUT-with-preview">32.93.1.2 Hald CLUT with preview</a></h4>
  24673. <p>A Hald CLUT is supposed to be a squared image of <code>Level*Level*Level</code> by
  24674. <code>Level*Level*Level</code> pixels. For a given Hald CLUT, FFmpeg will select the
  24675. biggest possible square starting at the top left of the picture. The remaining
  24676. padding pixels (bottom or right) will be ignored. This area can be used to add
  24677. a preview of the Hald CLUT.
  24678. </p>
  24679. <p>Typically, the following generated Hald CLUT will be supported by the
  24680. <code>haldclut</code> filter:
  24681. </p>
  24682. <div class="example">
  24683. <pre class="example">ffmpeg -f lavfi -i <a href="#haldclutsrc">haldclutsrc</a>=8 -vf &quot;
  24684. pad=iw+320 [padded_clut];
  24685. smptebars=s=320x256, split [a][b];
  24686. [padded_clut][a] overlay=W-320:h, curves=color_negative [main];
  24687. [main][b] overlay=W-320&quot; -frames:v 1 clut.png
  24688. </pre></div>
  24689. <p>It contains the original and a preview of the effect of the CLUT: SMPTE color
  24690. bars are displayed on the right-top, and below the same color bars processed by
  24691. the color changes.
  24692. </p>
  24693. <p>Then, the effect of this Hald CLUT can be visualized with:
  24694. </p><div class="example">
  24695. <pre class="example">ffplay input.mkv -vf &quot;movie=clut.png, [in] haldclut&quot;
  24696. </pre></div>
  24697. <a name="hflip"></a>
  24698. <h2 class="section"><a href="ffprobe-all.html#toc-hflip">32.94 hflip</a></h2>
  24699. <p>Flip the input video horizontally.
  24700. </p>
  24701. <p>For example, to horizontally flip the input video with <code>ffmpeg</code>:
  24702. </p><div class="example">
  24703. <pre class="example">ffmpeg -i in.avi -vf &quot;hflip&quot; out.avi
  24704. </pre></div>
  24705. <a name="histeq"></a>
  24706. <h2 class="section"><a href="ffprobe-all.html#toc-histeq">32.95 histeq</a></h2>
  24707. <p>This filter applies a global color histogram equalization on a
  24708. per-frame basis.
  24709. </p>
  24710. <p>It can be used to correct video that has a compressed range of pixel
  24711. intensities. The filter redistributes the pixel intensities to
  24712. equalize their distribution across the intensity range. It may be
  24713. viewed as an &quot;automatically adjusting contrast filter&quot;. This filter is
  24714. useful only for correcting degraded or poorly captured source
  24715. video.
  24716. </p>
  24717. <p>The filter accepts the following options:
  24718. </p>
  24719. <dl compact="compact">
  24720. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  24721. <dd><p>Determine the amount of equalization to be applied. As the strength
  24722. is reduced, the distribution of pixel intensities more-and-more
  24723. approaches that of the input frame. The value must be a float number
  24724. in the range [0,1] and defaults to 0.200.
  24725. </p>
  24726. </dd>
  24727. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  24728. <dd><p>Set the maximum intensity that can generated and scale the output
  24729. values appropriately. The strength should be set as desired and then
  24730. the intensity can be limited if needed to avoid washing-out. The value
  24731. must be a float number in the range [0,1] and defaults to 0.210.
  24732. </p>
  24733. </dd>
  24734. <dt>&lsquo;<samp>antibanding</samp>&rsquo;</dt>
  24735. <dd><p>Set the antibanding level. If enabled the filter will randomly vary
  24736. the luminance of output pixels by a small amount to avoid banding of
  24737. the histogram. Possible values are <code>none</code>, <code>weak</code> or
  24738. <code>strong</code>. It defaults to <code>none</code>.
  24739. </p></dd>
  24740. </dl>
  24741. <p><a name="histogram"></a>
  24742. </p><a name="histogram-1"></a>
  24743. <h2 class="section"><a href="ffprobe-all.html#toc-histogram-1">32.96 histogram</a></h2>
  24744. <p>Compute and draw a color distribution histogram for the input video.
  24745. </p>
  24746. <p>The computed histogram is a representation of the color component
  24747. distribution in an image.
  24748. </p>
  24749. <p>Standard histogram displays the color components distribution in an image.
  24750. Displays color graph for each color component. Shows distribution of
  24751. the Y, U, V, A or R, G, B components, depending on input format, in the
  24752. current frame. Below each graph a color component scale meter is shown.
  24753. </p>
  24754. <p>The filter accepts the following options:
  24755. </p>
  24756. <dl compact="compact">
  24757. <dt>&lsquo;<samp>level_height</samp>&rsquo;</dt>
  24758. <dd><p>Set height of level. Default value is <code>200</code>.
  24759. Allowed range is [50, 2048].
  24760. </p>
  24761. </dd>
  24762. <dt>&lsquo;<samp>scale_height</samp>&rsquo;</dt>
  24763. <dd><p>Set height of color scale. Default value is <code>12</code>.
  24764. Allowed range is [0, 40].
  24765. </p>
  24766. </dd>
  24767. <dt>&lsquo;<samp>display_mode</samp>&rsquo;</dt>
  24768. <dd><p>Set display mode.
  24769. It accepts the following values:
  24770. </p><dl compact="compact">
  24771. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  24772. <dd><p>Per color component graphs are placed below each other.
  24773. </p>
  24774. </dd>
  24775. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  24776. <dd><p>Per color component graphs are placed side by side.
  24777. </p>
  24778. </dd>
  24779. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  24780. <dd><p>Presents information identical to that in the <code>parade</code>, except
  24781. that the graphs representing color components are superimposed directly
  24782. over one another.
  24783. </p></dd>
  24784. </dl>
  24785. <p>Default is <code>stack</code>.
  24786. </p>
  24787. </dd>
  24788. <dt>&lsquo;<samp>levels_mode</samp>&rsquo;</dt>
  24789. <dd><p>Set mode. Can be either <code>linear</code>, or <code>logarithmic</code>.
  24790. Default is <code>linear</code>.
  24791. </p>
  24792. </dd>
  24793. <dt>&lsquo;<samp>components</samp>&rsquo;</dt>
  24794. <dd><p>Set what color components to display.
  24795. Default is <code>7</code>.
  24796. </p>
  24797. </dd>
  24798. <dt>&lsquo;<samp>fgopacity</samp>&rsquo;</dt>
  24799. <dd><p>Set foreground opacity. Default is <code>0.7</code>.
  24800. </p>
  24801. </dd>
  24802. <dt>&lsquo;<samp>bgopacity</samp>&rsquo;</dt>
  24803. <dd><p>Set background opacity. Default is <code>0.5</code>.
  24804. </p></dd>
  24805. </dl>
  24806. <a name="Examples-98"></a>
  24807. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-98">32.96.1 Examples</a></h3>
  24808. <ul>
  24809. <li>
  24810. Calculate and draw histogram:
  24811. <div class="example">
  24812. <pre class="example">ffplay -i input -vf histogram
  24813. </pre></div>
  24814. </li></ul>
  24815. <p><a name="hqdn3d"></a>
  24816. </p><a name="hqdn3d-1"></a>
  24817. <h2 class="section"><a href="ffprobe-all.html#toc-hqdn3d-1">32.97 hqdn3d</a></h2>
  24818. <p>This is a high precision/quality 3d denoise filter. It aims to reduce
  24819. image noise, producing smooth images and making still images really
  24820. still. It should enhance compressibility.
  24821. </p>
  24822. <p>It accepts the following optional parameters:
  24823. </p>
  24824. <dl compact="compact">
  24825. <dt>&lsquo;<samp>luma_spatial</samp>&rsquo;</dt>
  24826. <dd><p>A non-negative floating point number which specifies spatial luma strength.
  24827. It defaults to 4.0.
  24828. </p>
  24829. </dd>
  24830. <dt>&lsquo;<samp>chroma_spatial</samp>&rsquo;</dt>
  24831. <dd><p>A non-negative floating point number which specifies spatial chroma strength.
  24832. It defaults to 3.0*<var>luma_spatial</var>/4.0.
  24833. </p>
  24834. </dd>
  24835. <dt>&lsquo;<samp>luma_tmp</samp>&rsquo;</dt>
  24836. <dd><p>A floating point number which specifies luma temporal strength. It defaults to
  24837. 6.0*<var>luma_spatial</var>/4.0.
  24838. </p>
  24839. </dd>
  24840. <dt>&lsquo;<samp>chroma_tmp</samp>&rsquo;</dt>
  24841. <dd><p>A floating point number which specifies chroma temporal strength. It defaults to
  24842. <var>luma_tmp</var>*<var>chroma_spatial</var>/<var>luma_spatial</var>.
  24843. </p></dd>
  24844. </dl>
  24845. <a name="Commands-67"></a>
  24846. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-67">32.97.1 Commands</a></h3>
  24847. <p>This filter supports same <a href="#commands">commands</a> as options.
  24848. The command accepts the same syntax of the corresponding option.
  24849. </p>
  24850. <p>If the specified expression is not valid, it is kept at its current
  24851. value.
  24852. </p>
  24853. <p><a name="hwdownload"></a>
  24854. </p><a name="hwdownload-1"></a>
  24855. <h2 class="section"><a href="ffprobe-all.html#toc-hwdownload-1">32.98 hwdownload</a></h2>
  24856. <p>Download hardware frames to system memory.
  24857. </p>
  24858. <p>The input must be in hardware frames, and the output a non-hardware format.
  24859. Not all formats will be supported on the output - it may be necessary to insert
  24860. an additional &lsquo;<samp>format</samp>&rsquo; filter immediately following in the graph to get
  24861. the output in a supported format.
  24862. </p>
  24863. <a name="hwmap"></a>
  24864. <h2 class="section"><a href="ffprobe-all.html#toc-hwmap">32.99 hwmap</a></h2>
  24865. <p>Map hardware frames to system memory or to another device.
  24866. </p>
  24867. <p>This filter has several different modes of operation; which one is used depends
  24868. on the input and output formats:
  24869. </p><ul>
  24870. <li>
  24871. Hardware frame input, normal frame output
  24872. <p>Map the input frames to system memory and pass them to the output. If the
  24873. original hardware frame is later required (for example, after overlaying
  24874. something else on part of it), the &lsquo;<samp>hwmap</samp>&rsquo; filter can be used again
  24875. in the next mode to retrieve it.
  24876. </p></li><li>
  24877. Normal frame input, hardware frame output
  24878. <p>If the input is actually a software-mapped hardware frame, then unmap it -
  24879. that is, return the original hardware frame.
  24880. </p>
  24881. <p>Otherwise, a device must be provided. Create new hardware surfaces on that
  24882. device for the output, then map them back to the software format at the input
  24883. and give those frames to the preceding filter. This will then act like the
  24884. &lsquo;<samp>hwupload</samp>&rsquo; filter, but may be able to avoid an additional copy when
  24885. the input is already in a compatible format.
  24886. </p></li><li>
  24887. Hardware frame input and output
  24888. <p>A device must be supplied for the output, either directly or with the
  24889. &lsquo;<samp>derive_device</samp>&rsquo; option. The input and output devices must be of
  24890. different types and compatible - the exact meaning of this is
  24891. system-dependent, but typically it means that they must refer to the same
  24892. underlying hardware context (for example, refer to the same graphics card).
  24893. </p>
  24894. <p>If the input frames were originally created on the output device, then unmap
  24895. to retrieve the original frames.
  24896. </p>
  24897. <p>Otherwise, map the frames to the output device - create new hardware frames
  24898. on the output corresponding to the frames on the input.
  24899. </p></li></ul>
  24900. <p>The following additional parameters are accepted:
  24901. </p>
  24902. <dl compact="compact">
  24903. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  24904. <dd><p>Set the frame mapping mode. Some combination of:
  24905. </p><dl compact="compact">
  24906. <dt><var>read</var></dt>
  24907. <dd><p>The mapped frame should be readable.
  24908. </p></dd>
  24909. <dt><var>write</var></dt>
  24910. <dd><p>The mapped frame should be writeable.
  24911. </p></dd>
  24912. <dt><var>overwrite</var></dt>
  24913. <dd><p>The mapping will always overwrite the entire frame.
  24914. </p>
  24915. <p>This may improve performance in some cases, as the original contents of the
  24916. frame need not be loaded.
  24917. </p></dd>
  24918. <dt><var>direct</var></dt>
  24919. <dd><p>The mapping must not involve any copying.
  24920. </p>
  24921. <p>Indirect mappings to copies of frames are created in some cases where either
  24922. direct mapping is not possible or it would have unexpected properties.
  24923. Setting this flag ensures that the mapping is direct and will fail if that is
  24924. not possible.
  24925. </p></dd>
  24926. </dl>
  24927. <p>Defaults to <var>read+write</var> if not specified.
  24928. </p>
  24929. </dd>
  24930. <dt>&lsquo;<samp>derive_device <var>type</var></samp>&rsquo;</dt>
  24931. <dd><p>Rather than using the device supplied at initialisation, instead derive a new
  24932. device of type <var>type</var> from the device the input frames exist on.
  24933. </p>
  24934. </dd>
  24935. <dt>&lsquo;<samp>reverse</samp>&rsquo;</dt>
  24936. <dd><p>In a hardware to hardware mapping, map in reverse - create frames in the sink
  24937. and map them back to the source. This may be necessary in some cases where
  24938. a mapping in one direction is required but only the opposite direction is
  24939. supported by the devices being used.
  24940. </p>
  24941. <p>This option is dangerous - it may break the preceding filter in undefined
  24942. ways if there are any additional constraints on that filter&rsquo;s output.
  24943. Do not use it without fully understanding the implications of its use.
  24944. </p></dd>
  24945. </dl>
  24946. <p><a name="hwupload"></a>
  24947. </p><a name="hwupload-1"></a>
  24948. <h2 class="section"><a href="ffprobe-all.html#toc-hwupload-1">32.100 hwupload</a></h2>
  24949. <p>Upload system memory frames to hardware surfaces.
  24950. </p>
  24951. <p>The device to upload to must be supplied when the filter is initialised. If
  24952. using ffmpeg, select the appropriate device with the &lsquo;<samp>-filter_hw_device</samp>&rsquo;
  24953. option or with the &lsquo;<samp>derive_device</samp>&rsquo; option. The input and output devices
  24954. must be of different types and compatible - the exact meaning of this is
  24955. system-dependent, but typically it means that they must refer to the same
  24956. underlying hardware context (for example, refer to the same graphics card).
  24957. </p>
  24958. <p>The following additional parameters are accepted:
  24959. </p>
  24960. <dl compact="compact">
  24961. <dt>&lsquo;<samp>derive_device <var>type</var></samp>&rsquo;</dt>
  24962. <dd><p>Rather than using the device supplied at initialisation, instead derive a new
  24963. device of type <var>type</var> from the device the input frames exist on.
  24964. </p></dd>
  24965. </dl>
  24966. <p><a name="hwupload_005fcuda"></a>
  24967. </p><a name="hwupload_005fcuda-1"></a>
  24968. <h2 class="section"><a href="ffprobe-all.html#toc-hwupload_005fcuda-1">32.101 hwupload_cuda</a></h2>
  24969. <p>Upload system memory frames to a CUDA device.
  24970. </p>
  24971. <p>It accepts the following optional parameters:
  24972. </p>
  24973. <dl compact="compact">
  24974. <dt>&lsquo;<samp>device</samp>&rsquo;</dt>
  24975. <dd><p>The number of the CUDA device to use
  24976. </p></dd>
  24977. </dl>
  24978. <a name="hqx"></a>
  24979. <h2 class="section"><a href="ffprobe-all.html#toc-hqx">32.102 hqx</a></h2>
  24980. <p>Apply a high-quality magnification filter designed for pixel art. This filter
  24981. was originally created by Maxim Stepin.
  24982. </p>
  24983. <p>It accepts the following option:
  24984. </p>
  24985. <dl compact="compact">
  24986. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  24987. <dd><p>Set the scaling dimension: <code>2</code> for <code>hq2x</code>, <code>3</code> for
  24988. <code>hq3x</code> and <code>4</code> for <code>hq4x</code>.
  24989. Default is <code>3</code>.
  24990. </p></dd>
  24991. </dl>
  24992. <a name="hstack"></a>
  24993. <h2 class="section"><a href="ffprobe-all.html#toc-hstack">32.103 hstack</a></h2>
  24994. <p>Stack input videos horizontally.
  24995. </p>
  24996. <p>All streams must be of same pixel format and of same height.
  24997. </p>
  24998. <p>Note that this filter is faster than using <a href="#overlay">overlay</a> and <a href="#pad">pad</a> filter
  24999. to create same output.
  25000. </p>
  25001. <p>The filter accepts the following option:
  25002. </p>
  25003. <dl compact="compact">
  25004. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  25005. <dd><p>Set number of input streams. Default is 2.
  25006. </p>
  25007. </dd>
  25008. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  25009. <dd><p>If set to 1, force the output to terminate when the shortest input
  25010. terminates. Default value is 0.
  25011. </p></dd>
  25012. </dl>
  25013. <a name="hue"></a>
  25014. <h2 class="section"><a href="ffprobe-all.html#toc-hue">32.104 hue</a></h2>
  25015. <p>Modify the hue and/or the saturation of the input.
  25016. </p>
  25017. <p>It accepts the following parameters:
  25018. </p>
  25019. <dl compact="compact">
  25020. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  25021. <dd><p>Specify the hue angle as a number of degrees. It accepts an expression,
  25022. and defaults to &quot;0&quot;.
  25023. </p>
  25024. </dd>
  25025. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  25026. <dd><p>Specify the saturation in the [-10,10] range. It accepts an expression and
  25027. defaults to &quot;1&quot;.
  25028. </p>
  25029. </dd>
  25030. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  25031. <dd><p>Specify the hue angle as a number of radians. It accepts an
  25032. expression, and defaults to &quot;0&quot;.
  25033. </p>
  25034. </dd>
  25035. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  25036. <dd><p>Specify the brightness in the [-10,10] range. It accepts an expression and
  25037. defaults to &quot;0&quot;.
  25038. </p></dd>
  25039. </dl>
  25040. <p>&lsquo;<samp>h</samp>&rsquo; and &lsquo;<samp>H</samp>&rsquo; are mutually exclusive, and can&rsquo;t be
  25041. specified at the same time.
  25042. </p>
  25043. <p>The &lsquo;<samp>b</samp>&rsquo;, &lsquo;<samp>h</samp>&rsquo;, &lsquo;<samp>H</samp>&rsquo; and &lsquo;<samp>s</samp>&rsquo; option values are
  25044. expressions containing the following constants:
  25045. </p>
  25046. <dl compact="compact">
  25047. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  25048. <dd><p>frame count of the input frame starting from 0
  25049. </p>
  25050. </dd>
  25051. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  25052. <dd><p>presentation timestamp of the input frame expressed in time base units
  25053. </p>
  25054. </dd>
  25055. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  25056. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  25057. </p>
  25058. </dd>
  25059. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  25060. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  25061. </p>
  25062. </dd>
  25063. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  25064. <dd><p>time base of the input video
  25065. </p></dd>
  25066. </dl>
  25067. <a name="Examples-7"></a>
  25068. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-7">32.104.1 Examples</a></h3>
  25069. <ul>
  25070. <li>
  25071. Set the hue to 90 degrees and the saturation to 1.0:
  25072. <div class="example">
  25073. <pre class="example">hue=h=90:s=1
  25074. </pre></div>
  25075. </li><li>
  25076. Same command but expressing the hue in radians:
  25077. <div class="example">
  25078. <pre class="example">hue=H=PI/2:s=1
  25079. </pre></div>
  25080. </li><li>
  25081. Rotate hue and make the saturation swing between 0
  25082. and 2 over a period of 1 second:
  25083. <div class="example">
  25084. <pre class="example">hue=&quot;H=2*PI*t: s=sin(2*PI*t)+1&quot;
  25085. </pre></div>
  25086. </li><li>
  25087. Apply a 3 seconds saturation fade-in effect starting at 0:
  25088. <div class="example">
  25089. <pre class="example">hue=&quot;s=min(t/3\,1)&quot;
  25090. </pre></div>
  25091. <p>The general fade-in expression can be written as:
  25092. </p><div class="example">
  25093. <pre class="example">hue=&quot;s=min(0\, max((t-START)/DURATION\, 1))&quot;
  25094. </pre></div>
  25095. </li><li>
  25096. Apply a 3 seconds saturation fade-out effect starting at 5 seconds:
  25097. <div class="example">
  25098. <pre class="example">hue=&quot;s=max(0\, min(1\, (8-t)/3))&quot;
  25099. </pre></div>
  25100. <p>The general fade-out expression can be written as:
  25101. </p><div class="example">
  25102. <pre class="example">hue=&quot;s=max(0\, min(1\, (START+DURATION-t)/DURATION))&quot;
  25103. </pre></div>
  25104. </li></ul>
  25105. <a name="Commands-62"></a>
  25106. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-62">32.104.2 Commands</a></h3>
  25107. <p>This filter supports the following commands:
  25108. </p><dl compact="compact">
  25109. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  25110. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  25111. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  25112. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  25113. <dd><p>Modify the hue and/or the saturation and/or brightness of the input video.
  25114. The command accepts the same syntax of the corresponding option.
  25115. </p>
  25116. <p>If the specified expression is not valid, it is kept at its current
  25117. value.
  25118. </p></dd>
  25119. </dl>
  25120. <a name="hysteresis"></a>
  25121. <h2 class="section"><a href="ffprobe-all.html#toc-hysteresis">32.105 hysteresis</a></h2>
  25122. <p>Grow first stream into second stream by connecting components.
  25123. This makes it possible to build more robust edge masks.
  25124. </p>
  25125. <p>This filter accepts the following options:
  25126. </p>
  25127. <dl compact="compact">
  25128. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25129. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  25130. copied from first stream.
  25131. By default value 0xf, all planes will be processed.
  25132. </p>
  25133. </dd>
  25134. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  25135. <dd><p>Set threshold which is used in filtering. If pixel component value is higher than
  25136. this value filter algorithm for connecting components is activated.
  25137. By default value is 0.
  25138. </p></dd>
  25139. </dl>
  25140. <p>The <code>hysteresis</code> filter also supports the <a href="#framesync">framesync</a> options.
  25141. </p>
  25142. <a name="idet"></a>
  25143. <h2 class="section"><a href="ffprobe-all.html#toc-idet">32.106 idet</a></h2>
  25144. <p>Detect video interlacing type.
  25145. </p>
  25146. <p>This filter tries to detect if the input frames are interlaced, progressive,
  25147. top or bottom field first. It will also try to detect fields that are
  25148. repeated between adjacent frames (a sign of telecine).
  25149. </p>
  25150. <p>Single frame detection considers only immediately adjacent frames when classifying each frame.
  25151. Multiple frame detection incorporates the classification history of previous frames.
  25152. </p>
  25153. <p>The filter will log these metadata values:
  25154. </p>
  25155. <dl compact="compact">
  25156. <dt>&lsquo;<samp>single.current_frame</samp>&rsquo;</dt>
  25157. <dd><p>Detected type of current frame using single-frame detection. One of:
  25158. &ldquo;tff&rdquo; (top field first), &ldquo;bff&rdquo; (bottom field first),
  25159. &ldquo;progressive&rdquo;, or &ldquo;undetermined&rdquo;
  25160. </p>
  25161. </dd>
  25162. <dt>&lsquo;<samp>single.tff</samp>&rsquo;</dt>
  25163. <dd><p>Cumulative number of frames detected as top field first using single-frame detection.
  25164. </p>
  25165. </dd>
  25166. <dt>&lsquo;<samp>multiple.tff</samp>&rsquo;</dt>
  25167. <dd><p>Cumulative number of frames detected as top field first using multiple-frame detection.
  25168. </p>
  25169. </dd>
  25170. <dt>&lsquo;<samp>single.bff</samp>&rsquo;</dt>
  25171. <dd><p>Cumulative number of frames detected as bottom field first using single-frame detection.
  25172. </p>
  25173. </dd>
  25174. <dt>&lsquo;<samp>multiple.current_frame</samp>&rsquo;</dt>
  25175. <dd><p>Detected type of current frame using multiple-frame detection. One of:
  25176. &ldquo;tff&rdquo; (top field first), &ldquo;bff&rdquo; (bottom field first),
  25177. &ldquo;progressive&rdquo;, or &ldquo;undetermined&rdquo;
  25178. </p>
  25179. </dd>
  25180. <dt>&lsquo;<samp>multiple.bff</samp>&rsquo;</dt>
  25181. <dd><p>Cumulative number of frames detected as bottom field first using multiple-frame detection.
  25182. </p>
  25183. </dd>
  25184. <dt>&lsquo;<samp>single.progressive</samp>&rsquo;</dt>
  25185. <dd><p>Cumulative number of frames detected as progressive using single-frame detection.
  25186. </p>
  25187. </dd>
  25188. <dt>&lsquo;<samp>multiple.progressive</samp>&rsquo;</dt>
  25189. <dd><p>Cumulative number of frames detected as progressive using multiple-frame detection.
  25190. </p>
  25191. </dd>
  25192. <dt>&lsquo;<samp>single.undetermined</samp>&rsquo;</dt>
  25193. <dd><p>Cumulative number of frames that could not be classified using single-frame detection.
  25194. </p>
  25195. </dd>
  25196. <dt>&lsquo;<samp>multiple.undetermined</samp>&rsquo;</dt>
  25197. <dd><p>Cumulative number of frames that could not be classified using multiple-frame detection.
  25198. </p>
  25199. </dd>
  25200. <dt>&lsquo;<samp>repeated.current_frame</samp>&rsquo;</dt>
  25201. <dd><p>Which field in the current frame is repeated from the last. One of &ldquo;neither&rdquo;, &ldquo;top&rdquo;, or &ldquo;bottom&rdquo;.
  25202. </p>
  25203. </dd>
  25204. <dt>&lsquo;<samp>repeated.neither</samp>&rsquo;</dt>
  25205. <dd><p>Cumulative number of frames with no repeated field.
  25206. </p>
  25207. </dd>
  25208. <dt>&lsquo;<samp>repeated.top</samp>&rsquo;</dt>
  25209. <dd><p>Cumulative number of frames with the top field repeated from the previous frame&rsquo;s top field.
  25210. </p>
  25211. </dd>
  25212. <dt>&lsquo;<samp>repeated.bottom</samp>&rsquo;</dt>
  25213. <dd><p>Cumulative number of frames with the bottom field repeated from the previous frame&rsquo;s bottom field.
  25214. </p></dd>
  25215. </dl>
  25216. <p>The filter accepts the following options:
  25217. </p>
  25218. <dl compact="compact">
  25219. <dt>&lsquo;<samp>intl_thres</samp>&rsquo;</dt>
  25220. <dd><p>Set interlacing threshold.
  25221. </p></dd>
  25222. <dt>&lsquo;<samp>prog_thres</samp>&rsquo;</dt>
  25223. <dd><p>Set progressive threshold.
  25224. </p></dd>
  25225. <dt>&lsquo;<samp>rep_thres</samp>&rsquo;</dt>
  25226. <dd><p>Threshold for repeated field detection.
  25227. </p></dd>
  25228. <dt>&lsquo;<samp>half_life</samp>&rsquo;</dt>
  25229. <dd><p>Number of frames after which a given frame&rsquo;s contribution to the
  25230. statistics is halved (i.e., it contributes only 0.5 to its
  25231. classification). The default of 0 means that all frames seen are given
  25232. full weight of 1.0 forever.
  25233. </p></dd>
  25234. <dt>&lsquo;<samp>analyze_interlaced_flag</samp>&rsquo;</dt>
  25235. <dd><p>When this is not 0 then idet will use the specified number of frames to determine
  25236. if the interlaced flag is accurate, it will not count undetermined frames.
  25237. If the flag is found to be accurate it will be used without any further
  25238. computations, if it is found to be inaccurate it will be cleared without any
  25239. further computations. This allows inserting the idet filter as a low computational
  25240. method to clean up the interlaced flag
  25241. </p></dd>
  25242. </dl>
  25243. <a name="il"></a>
  25244. <h2 class="section"><a href="ffprobe-all.html#toc-il">32.107 il</a></h2>
  25245. <p>Deinterleave or interleave fields.
  25246. </p>
  25247. <p>This filter allows one to process interlaced images fields without
  25248. deinterlacing them. Deinterleaving splits the input frame into 2
  25249. fields (so called half pictures). Odd lines are moved to the top
  25250. half of the output image, even lines to the bottom half.
  25251. You can process (filter) them independently and then re-interleave them.
  25252. </p>
  25253. <p>The filter accepts the following options:
  25254. </p>
  25255. <dl compact="compact">
  25256. <dt>&lsquo;<samp>luma_mode, l</samp>&rsquo;</dt>
  25257. <dt>&lsquo;<samp>chroma_mode, c</samp>&rsquo;</dt>
  25258. <dt>&lsquo;<samp>alpha_mode, a</samp>&rsquo;</dt>
  25259. <dd><p>Available values for <var>luma_mode</var>, <var>chroma_mode</var> and
  25260. <var>alpha_mode</var> are:
  25261. </p>
  25262. <dl compact="compact">
  25263. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  25264. <dd><p>Do nothing.
  25265. </p>
  25266. </dd>
  25267. <dt>&lsquo;<samp>deinterleave, d</samp>&rsquo;</dt>
  25268. <dd><p>Deinterleave fields, placing one above the other.
  25269. </p>
  25270. </dd>
  25271. <dt>&lsquo;<samp>interleave, i</samp>&rsquo;</dt>
  25272. <dd><p>Interleave fields. Reverse the effect of deinterleaving.
  25273. </p></dd>
  25274. </dl>
  25275. <p>Default value is <code>none</code>.
  25276. </p>
  25277. </dd>
  25278. <dt>&lsquo;<samp>luma_swap, ls</samp>&rsquo;</dt>
  25279. <dt>&lsquo;<samp>chroma_swap, cs</samp>&rsquo;</dt>
  25280. <dt>&lsquo;<samp>alpha_swap, as</samp>&rsquo;</dt>
  25281. <dd><p>Swap luma/chroma/alpha fields. Exchange even &amp; odd lines. Default value is <code>0</code>.
  25282. </p></dd>
  25283. </dl>
  25284. <a name="Commands-55"></a>
  25285. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-55">32.107.1 Commands</a></h3>
  25286. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  25287. </p>
  25288. <a name="inflate"></a>
  25289. <h2 class="section"><a href="ffprobe-all.html#toc-inflate">32.108 inflate</a></h2>
  25290. <p>Apply inflate effect to the video.
  25291. </p>
  25292. <p>This filter replaces the pixel by the local(3x3) average by taking into account
  25293. only values higher than the pixel.
  25294. </p>
  25295. <p>It accepts the following options:
  25296. </p>
  25297. <dl compact="compact">
  25298. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  25299. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  25300. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  25301. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  25302. <dd><p>Limit the maximum change for each plane, default is 65535.
  25303. If 0, plane will remain unchanged.
  25304. </p></dd>
  25305. </dl>
  25306. <a name="Commands-1"></a>
  25307. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-1">32.108.1 Commands</a></h3>
  25308. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  25309. </p>
  25310. <a name="interlace"></a>
  25311. <h2 class="section"><a href="ffprobe-all.html#toc-interlace">32.109 interlace</a></h2>
  25312. <p>Simple interlacing filter from progressive contents. This interleaves upper (or
  25313. lower) lines from odd frames with lower (or upper) lines from even frames,
  25314. halving the frame rate and preserving image height.
  25315. </p>
  25316. <div class="example">
  25317. <pre class="example"> Original Original New Frame
  25318. Frame 'j' Frame 'j+1' (tff)
  25319. ========== =========== ==================
  25320. Line 0 --------------------&gt; Frame 'j' Line 0
  25321. Line 1 Line 1 ----&gt; Frame 'j+1' Line 1
  25322. Line 2 ---------------------&gt; Frame 'j' Line 2
  25323. Line 3 Line 3 ----&gt; Frame 'j+1' Line 3
  25324. ... ... ...
  25325. New Frame + 1 will be generated by Frame 'j+2' and Frame 'j+3' and so on
  25326. </pre></div>
  25327. <p>It accepts the following optional parameters:
  25328. </p>
  25329. <dl compact="compact">
  25330. <dt>&lsquo;<samp>scan</samp>&rsquo;</dt>
  25331. <dd><p>This determines whether the interlaced frame is taken from the even
  25332. (tff - default) or odd (bff) lines of the progressive frame.
  25333. </p>
  25334. </dd>
  25335. <dt>&lsquo;<samp>lowpass</samp>&rsquo;</dt>
  25336. <dd><p>Vertical lowpass filter to avoid twitter interlacing and
  25337. reduce moire patterns.
  25338. </p>
  25339. <dl compact="compact">
  25340. <dt>&lsquo;<samp>0, off</samp>&rsquo;</dt>
  25341. <dd><p>Disable vertical lowpass filter
  25342. </p>
  25343. </dd>
  25344. <dt>&lsquo;<samp>1, linear</samp>&rsquo;</dt>
  25345. <dd><p>Enable linear filter (default)
  25346. </p>
  25347. </dd>
  25348. <dt>&lsquo;<samp>2, complex</samp>&rsquo;</dt>
  25349. <dd><p>Enable complex filter. This will slightly less reduce twitter and moire
  25350. but better retain detail and subjective sharpness impression.
  25351. </p>
  25352. </dd>
  25353. </dl>
  25354. </dd>
  25355. </dl>
  25356. <a name="kerndeint"></a>
  25357. <h2 class="section"><a href="ffprobe-all.html#toc-kerndeint">32.110 kerndeint</a></h2>
  25358. <p>Deinterlace input video by applying Donald Graft&rsquo;s adaptive kernel
  25359. deinterling. Work on interlaced parts of a video to produce
  25360. progressive frames.
  25361. </p>
  25362. <p>The description of the accepted parameters follows.
  25363. </p>
  25364. <dl compact="compact">
  25365. <dt>&lsquo;<samp>thresh</samp>&rsquo;</dt>
  25366. <dd><p>Set the threshold which affects the filter&rsquo;s tolerance when
  25367. determining if a pixel line must be processed. It must be an integer
  25368. in the range [0,255] and defaults to 10. A value of 0 will result in
  25369. applying the process on every pixels.
  25370. </p>
  25371. </dd>
  25372. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  25373. <dd><p>Paint pixels exceeding the threshold value to white if set to 1.
  25374. Default is 0.
  25375. </p>
  25376. </dd>
  25377. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  25378. <dd><p>Set the fields order. Swap fields if set to 1, leave fields alone if
  25379. 0. Default is 0.
  25380. </p>
  25381. </dd>
  25382. <dt>&lsquo;<samp>sharp</samp>&rsquo;</dt>
  25383. <dd><p>Enable additional sharpening if set to 1. Default is 0.
  25384. </p>
  25385. </dd>
  25386. <dt>&lsquo;<samp>twoway</samp>&rsquo;</dt>
  25387. <dd><p>Enable twoway sharpening if set to 1. Default is 0.
  25388. </p></dd>
  25389. </dl>
  25390. <a name="Examples-73"></a>
  25391. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-73">32.110.1 Examples</a></h3>
  25392. <ul>
  25393. <li>
  25394. Apply default values:
  25395. <div class="example">
  25396. <pre class="example">kerndeint=thresh=10:map=0:order=0:sharp=0:twoway=0
  25397. </pre></div>
  25398. </li><li>
  25399. Enable additional sharpening:
  25400. <div class="example">
  25401. <pre class="example">kerndeint=sharp=1
  25402. </pre></div>
  25403. </li><li>
  25404. Paint processed pixels in white:
  25405. <div class="example">
  25406. <pre class="example">kerndeint=map=1
  25407. </pre></div>
  25408. </li></ul>
  25409. <a name="lagfun"></a>
  25410. <h2 class="section"><a href="ffprobe-all.html#toc-lagfun">32.111 lagfun</a></h2>
  25411. <p>Slowly update darker pixels.
  25412. </p>
  25413. <p>This filter makes short flashes of light appear longer.
  25414. This filter accepts the following options:
  25415. </p>
  25416. <dl compact="compact">
  25417. <dt>&lsquo;<samp>decay</samp>&rsquo;</dt>
  25418. <dd><p>Set factor for decaying. Default is .95. Allowed range is from 0 to 1.
  25419. </p>
  25420. </dd>
  25421. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25422. <dd><p>Set which planes to filter. Default is all. Allowed range is from 0 to 15.
  25423. </p></dd>
  25424. </dl>
  25425. <a name="lenscorrection"></a>
  25426. <h2 class="section"><a href="ffprobe-all.html#toc-lenscorrection">32.112 lenscorrection</a></h2>
  25427. <p>Correct radial lens distortion
  25428. </p>
  25429. <p>This filter can be used to correct for radial distortion as can result from the use
  25430. of wide angle lenses, and thereby re-rectify the image. To find the right parameters
  25431. one can use tools available for example as part of opencv or simply trial-and-error.
  25432. To use opencv use the calibration sample (under samples/cpp) from the opencv sources
  25433. and extract the k1 and k2 coefficients from the resulting matrix.
  25434. </p>
  25435. <p>Note that effectively the same filter is available in the open-source tools Krita and
  25436. Digikam from the KDE project.
  25437. </p>
  25438. <p>In contrast to the <a href="#vignette">vignette</a> filter, which can also be used to compensate lens errors,
  25439. this filter corrects the distortion of the image, whereas <a href="#vignette">vignette</a> corrects the
  25440. brightness distribution, so you may want to use both filters together in certain
  25441. cases, though you will have to take care of ordering, i.e. whether vignetting should
  25442. be applied before or after lens correction.
  25443. </p>
  25444. <a name="Options-9"></a>
  25445. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-9">32.112.1 Options</a></h3>
  25446. <p>The filter accepts the following options:
  25447. </p>
  25448. <dl compact="compact">
  25449. <dt>&lsquo;<samp>cx</samp>&rsquo;</dt>
  25450. <dd><p>Relative x-coordinate of the focal point of the image, and thereby the center of the
  25451. distortion. This value has a range [0,1] and is expressed as fractions of the image
  25452. width. Default is 0.5.
  25453. </p></dd>
  25454. <dt>&lsquo;<samp>cy</samp>&rsquo;</dt>
  25455. <dd><p>Relative y-coordinate of the focal point of the image, and thereby the center of the
  25456. distortion. This value has a range [0,1] and is expressed as fractions of the image
  25457. height. Default is 0.5.
  25458. </p></dd>
  25459. <dt>&lsquo;<samp>k1</samp>&rsquo;</dt>
  25460. <dd><p>Coefficient of the quadratic correction term. This value has a range [-1,1]. 0 means
  25461. no correction. Default is 0.
  25462. </p></dd>
  25463. <dt>&lsquo;<samp>k2</samp>&rsquo;</dt>
  25464. <dd><p>Coefficient of the double quadratic correction term. This value has a range [-1,1].
  25465. 0 means no correction. Default is 0.
  25466. </p></dd>
  25467. </dl>
  25468. <p>The formula that generates the correction is:
  25469. </p>
  25470. <p><var>r_src</var> = <var>r_tgt</var> * (1 + <var>k1</var> * (<var>r_tgt</var> / <var>r_0</var>)^2 + <var>k2</var> * (<var>r_tgt</var> / <var>r_0</var>)^4)
  25471. </p>
  25472. <p>where <var>r_0</var> is halve of the image diagonal and <var>r_src</var> and <var>r_tgt</var> are the
  25473. distances from the focal point in the source and target images, respectively.
  25474. </p>
  25475. <a name="lensfun"></a>
  25476. <h2 class="section"><a href="ffprobe-all.html#toc-lensfun">32.113 lensfun</a></h2>
  25477. <p>Apply lens correction via the lensfun library (<a href="http://lensfun.sourceforge.net/">http://lensfun.sourceforge.net/</a>).
  25478. </p>
  25479. <p>The <code>lensfun</code> filter requires the camera make, camera model, and lens model
  25480. to apply the lens correction. The filter will load the lensfun database and
  25481. query it to find the corresponding camera and lens entries in the database. As
  25482. long as these entries can be found with the given options, the filter can
  25483. perform corrections on frames. Note that incomplete strings will result in the
  25484. filter choosing the best match with the given options, and the filter will
  25485. output the chosen camera and lens models (logged with level &quot;info&quot;). You must
  25486. provide the make, camera model, and lens model as they are required.
  25487. </p>
  25488. <p>The filter accepts the following options:
  25489. </p>
  25490. <dl compact="compact">
  25491. <dt>&lsquo;<samp>make</samp>&rsquo;</dt>
  25492. <dd><p>The make of the camera (for example, &quot;Canon&quot;). This option is required.
  25493. </p>
  25494. </dd>
  25495. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  25496. <dd><p>The model of the camera (for example, &quot;Canon EOS 100D&quot;). This option is
  25497. required.
  25498. </p>
  25499. </dd>
  25500. <dt>&lsquo;<samp>lens_model</samp>&rsquo;</dt>
  25501. <dd><p>The model of the lens (for example, &quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot;). This
  25502. option is required.
  25503. </p>
  25504. </dd>
  25505. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  25506. <dd><p>The type of correction to apply. The following values are valid options:
  25507. </p>
  25508. <dl compact="compact">
  25509. <dt>&lsquo;<samp>vignetting</samp>&rsquo;</dt>
  25510. <dd><p>Enables fixing lens vignetting.
  25511. </p>
  25512. </dd>
  25513. <dt>&lsquo;<samp>geometry</samp>&rsquo;</dt>
  25514. <dd><p>Enables fixing lens geometry. This is the default.
  25515. </p>
  25516. </dd>
  25517. <dt>&lsquo;<samp>subpixel</samp>&rsquo;</dt>
  25518. <dd><p>Enables fixing chromatic aberrations.
  25519. </p>
  25520. </dd>
  25521. <dt>&lsquo;<samp>vig_geo</samp>&rsquo;</dt>
  25522. <dd><p>Enables fixing lens vignetting and lens geometry.
  25523. </p>
  25524. </dd>
  25525. <dt>&lsquo;<samp>vig_subpixel</samp>&rsquo;</dt>
  25526. <dd><p>Enables fixing lens vignetting and chromatic aberrations.
  25527. </p>
  25528. </dd>
  25529. <dt>&lsquo;<samp>distortion</samp>&rsquo;</dt>
  25530. <dd><p>Enables fixing both lens geometry and chromatic aberrations.
  25531. </p>
  25532. </dd>
  25533. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  25534. <dd><p>Enables all possible corrections.
  25535. </p>
  25536. </dd>
  25537. </dl>
  25538. </dd>
  25539. <dt>&lsquo;<samp>focal_length</samp>&rsquo;</dt>
  25540. <dd><p>The focal length of the image/video (zoom; expected constant for video). For
  25541. example, a 18&ndash;55mm lens has focal length range of [18&ndash;55], so a value in that
  25542. range should be chosen when using that lens. Default 18.
  25543. </p>
  25544. </dd>
  25545. <dt>&lsquo;<samp>aperture</samp>&rsquo;</dt>
  25546. <dd><p>The aperture of the image/video (expected constant for video). Note that
  25547. aperture is only used for vignetting correction. Default 3.5.
  25548. </p>
  25549. </dd>
  25550. <dt>&lsquo;<samp>focus_distance</samp>&rsquo;</dt>
  25551. <dd><p>The focus distance of the image/video (expected constant for video). Note that
  25552. focus distance is only used for vignetting and only slightly affects the
  25553. vignetting correction process. If unknown, leave it at the default value (which
  25554. is 1000).
  25555. </p>
  25556. </dd>
  25557. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  25558. <dd><p>The scale factor which is applied after transformation. After correction the
  25559. video is no longer necessarily rectangular. This parameter controls how much of
  25560. the resulting image is visible. The value 0 means that a value will be chosen
  25561. automatically such that there is little or no unmapped area in the output
  25562. image. 1.0 means that no additional scaling is done. Lower values may result
  25563. in more of the corrected image being visible, while higher values may avoid
  25564. unmapped areas in the output.
  25565. </p>
  25566. </dd>
  25567. <dt>&lsquo;<samp>target_geometry</samp>&rsquo;</dt>
  25568. <dd><p>The target geometry of the output image/video. The following values are valid
  25569. options:
  25570. </p>
  25571. <dl compact="compact">
  25572. <dt>&lsquo;<samp>rectilinear (default)</samp>&rsquo;</dt>
  25573. <dt>&lsquo;<samp>fisheye</samp>&rsquo;</dt>
  25574. <dt>&lsquo;<samp>panoramic</samp>&rsquo;</dt>
  25575. <dt>&lsquo;<samp>equirectangular</samp>&rsquo;</dt>
  25576. <dt>&lsquo;<samp>fisheye_orthographic</samp>&rsquo;</dt>
  25577. <dt>&lsquo;<samp>fisheye_stereographic</samp>&rsquo;</dt>
  25578. <dt>&lsquo;<samp>fisheye_equisolid</samp>&rsquo;</dt>
  25579. <dt>&lsquo;<samp>fisheye_thoby</samp>&rsquo;</dt>
  25580. </dl>
  25581. </dd>
  25582. <dt>&lsquo;<samp>reverse</samp>&rsquo;</dt>
  25583. <dd><p>Apply the reverse of image correction (instead of correcting distortion, apply
  25584. it).
  25585. </p>
  25586. </dd>
  25587. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  25588. <dd><p>The type of interpolation used when correcting distortion. The following values
  25589. are valid options:
  25590. </p>
  25591. <dl compact="compact">
  25592. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25593. <dt>&lsquo;<samp>linear (default)</samp>&rsquo;</dt>
  25594. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  25595. </dl>
  25596. </dd>
  25597. </dl>
  25598. <a name="Examples-21"></a>
  25599. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-21">32.113.1 Examples</a></h3>
  25600. <ul>
  25601. <li>
  25602. Apply lens correction with make &quot;Canon&quot;, camera model &quot;Canon EOS 100D&quot;, and lens
  25603. model &quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot; with focal length of &quot;18&quot; and
  25604. aperture of &quot;8.0&quot;.
  25605. <div class="example">
  25606. <pre class="example">ffmpeg -i input.mov -vf lensfun=make=Canon:model=&quot;Canon EOS 100D&quot;:lens_model=&quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot;:focal_length=18:aperture=8 -c:v h264 -b:v 8000k output.mov
  25607. </pre></div>
  25608. </li><li>
  25609. Apply the same as before, but only for the first 5 seconds of video.
  25610. <div class="example">
  25611. <pre class="example">ffmpeg -i input.mov -vf lensfun=make=Canon:model=&quot;Canon EOS 100D&quot;:lens_model=&quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot;:focal_length=18:aperture=8:enable='lte(t\,5)' -c:v h264 -b:v 8000k output.mov
  25612. </pre></div>
  25613. </li></ul>
  25614. <a name="libvmaf"></a>
  25615. <h2 class="section"><a href="ffprobe-all.html#toc-libvmaf">32.114 libvmaf</a></h2>
  25616. <p>Obtain the VMAF (Video Multi-Method Assessment Fusion)
  25617. score between two input videos.
  25618. </p>
  25619. <p>The obtained VMAF score is printed through the logging system.
  25620. </p>
  25621. <p>It requires Netflix&rsquo;s vmaf library (libvmaf) as a pre-requisite.
  25622. After installing the library it can be enabled using:
  25623. <code>./configure --enable-libvmaf --enable-version3</code>.
  25624. If no model path is specified it uses the default model: <code>vmaf_v0.6.1.pkl</code>.
  25625. </p>
  25626. <p>The filter has following options:
  25627. </p>
  25628. <dl compact="compact">
  25629. <dt>&lsquo;<samp>model_path</samp>&rsquo;</dt>
  25630. <dd><p>Set the model path which is to be used for SVM.
  25631. Default value: <code>&quot;/usr/local/share/model/vmaf_v0.6.1.pkl&quot;</code>
  25632. </p>
  25633. </dd>
  25634. <dt>&lsquo;<samp>log_path</samp>&rsquo;</dt>
  25635. <dd><p>Set the file path to be used to store logs.
  25636. </p>
  25637. </dd>
  25638. <dt>&lsquo;<samp>log_fmt</samp>&rsquo;</dt>
  25639. <dd><p>Set the format of the log file (xml or json).
  25640. </p>
  25641. </dd>
  25642. <dt>&lsquo;<samp>enable_transform</samp>&rsquo;</dt>
  25643. <dd><p>This option can enable/disable the <code>score_transform</code> applied to the final predicted VMAF score,
  25644. if you have specified score_transform option in the input parameter file passed to <code>run_vmaf_training.py</code>
  25645. Default value: <code>false</code>
  25646. </p>
  25647. </dd>
  25648. <dt>&lsquo;<samp>phone_model</samp>&rsquo;</dt>
  25649. <dd><p>Invokes the phone model which will generate VMAF scores higher than in the
  25650. regular model, which is more suitable for laptop, TV, etc. viewing conditions.
  25651. Default value: <code>false</code>
  25652. </p>
  25653. </dd>
  25654. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  25655. <dd><p>Enables computing psnr along with vmaf.
  25656. Default value: <code>false</code>
  25657. </p>
  25658. </dd>
  25659. <dt>&lsquo;<samp>ssim</samp>&rsquo;</dt>
  25660. <dd><p>Enables computing ssim along with vmaf.
  25661. Default value: <code>false</code>
  25662. </p>
  25663. </dd>
  25664. <dt>&lsquo;<samp>ms_ssim</samp>&rsquo;</dt>
  25665. <dd><p>Enables computing ms_ssim along with vmaf.
  25666. Default value: <code>false</code>
  25667. </p>
  25668. </dd>
  25669. <dt>&lsquo;<samp>pool</samp>&rsquo;</dt>
  25670. <dd><p>Set the pool method to be used for computing vmaf.
  25671. Options are <code>min</code>, <code>harmonic_mean</code> or <code>mean</code> (default).
  25672. </p>
  25673. </dd>
  25674. <dt>&lsquo;<samp>n_threads</samp>&rsquo;</dt>
  25675. <dd><p>Set number of threads to be used when computing vmaf.
  25676. Default value: <code>0</code>, which makes use of all available logical processors.
  25677. </p>
  25678. </dd>
  25679. <dt>&lsquo;<samp>n_subsample</samp>&rsquo;</dt>
  25680. <dd><p>Set interval for frame subsampling used when computing vmaf.
  25681. Default value: <code>1</code>
  25682. </p>
  25683. </dd>
  25684. <dt>&lsquo;<samp>enable_conf_interval</samp>&rsquo;</dt>
  25685. <dd><p>Enables confidence interval.
  25686. Default value: <code>false</code>
  25687. </p></dd>
  25688. </dl>
  25689. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  25690. </p>
  25691. <a name="Examples-156"></a>
  25692. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-156">32.114.1 Examples</a></h3>
  25693. <ul>
  25694. <li>
  25695. On the below examples the input file &lsquo;<tt>main.mpg</tt>&rsquo; being processed is
  25696. compared with the reference file &lsquo;<tt>ref.mpg</tt>&rsquo;.
  25697. <div class="example">
  25698. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi libvmaf -f null -
  25699. </pre></div>
  25700. </li><li>
  25701. Example with options:
  25702. <div class="example">
  25703. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi libvmaf=&quot;psnr=1:log_fmt=json&quot; -f null -
  25704. </pre></div>
  25705. </li><li>
  25706. Example with options and different containers:
  25707. <div class="example">
  25708. <pre class="example">ffmpeg -i main.mpg -i ref.mkv -lavfi &quot;[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]libvmaf=psnr=1:log_fmt=json&quot; -f null -
  25709. </pre></div>
  25710. </li></ul>
  25711. <a name="limiter"></a>
  25712. <h2 class="section"><a href="ffprobe-all.html#toc-limiter">32.115 limiter</a></h2>
  25713. <p>Limits the pixel components values to the specified range [min, max].
  25714. </p>
  25715. <p>The filter accepts the following options:
  25716. </p>
  25717. <dl compact="compact">
  25718. <dt>&lsquo;<samp>min</samp>&rsquo;</dt>
  25719. <dd><p>Lower bound. Defaults to the lowest allowed value for the input.
  25720. </p>
  25721. </dd>
  25722. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  25723. <dd><p>Upper bound. Defaults to the highest allowed value for the input.
  25724. </p>
  25725. </dd>
  25726. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25727. <dd><p>Specify which planes will be processed. Defaults to all available.
  25728. </p></dd>
  25729. </dl>
  25730. <a name="loop"></a>
  25731. <h2 class="section"><a href="ffprobe-all.html#toc-loop">32.116 loop</a></h2>
  25732. <p>Loop video frames.
  25733. </p>
  25734. <p>The filter accepts the following options:
  25735. </p>
  25736. <dl compact="compact">
  25737. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  25738. <dd><p>Set the number of loops. Setting this value to -1 will result in infinite loops.
  25739. Default is 0.
  25740. </p>
  25741. </dd>
  25742. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  25743. <dd><p>Set maximal size in number of frames. Default is 0.
  25744. </p>
  25745. </dd>
  25746. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  25747. <dd><p>Set first frame of loop. Default is 0.
  25748. </p></dd>
  25749. </dl>
  25750. <a name="Examples-28"></a>
  25751. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-28">32.116.1 Examples</a></h3>
  25752. <ul>
  25753. <li>
  25754. Loop single first frame infinitely:
  25755. <div class="example">
  25756. <pre class="example">loop=loop=-1:size=1:start=0
  25757. </pre></div>
  25758. </li><li>
  25759. Loop single first frame 10 times:
  25760. <div class="example">
  25761. <pre class="example">loop=loop=10:size=1:start=0
  25762. </pre></div>
  25763. </li><li>
  25764. Loop 10 first frames 5 times:
  25765. <div class="example">
  25766. <pre class="example">loop=loop=5:size=10:start=0
  25767. </pre></div>
  25768. </li></ul>
  25769. <a name="lut1d"></a>
  25770. <h2 class="section"><a href="ffprobe-all.html#toc-lut1d">32.117 lut1d</a></h2>
  25771. <p>Apply a 1D LUT to an input video.
  25772. </p>
  25773. <p>The filter accepts the following options:
  25774. </p>
  25775. <dl compact="compact">
  25776. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  25777. <dd><p>Set the 1D LUT file name.
  25778. </p>
  25779. <p>Currently supported formats:
  25780. </p><dl compact="compact">
  25781. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  25782. <dd><p>Iridas
  25783. </p></dd>
  25784. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  25785. <dd><p>cineSpace
  25786. </p></dd>
  25787. </dl>
  25788. </dd>
  25789. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  25790. <dd><p>Select interpolation mode.
  25791. </p>
  25792. <p>Available values are:
  25793. </p>
  25794. <dl compact="compact">
  25795. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25796. <dd><p>Use values from the nearest defined point.
  25797. </p></dd>
  25798. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  25799. <dd><p>Interpolate values using the linear interpolation.
  25800. </p></dd>
  25801. <dt>&lsquo;<samp>cosine</samp>&rsquo;</dt>
  25802. <dd><p>Interpolate values using the cosine interpolation.
  25803. </p></dd>
  25804. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  25805. <dd><p>Interpolate values using the cubic interpolation.
  25806. </p></dd>
  25807. <dt>&lsquo;<samp>spline</samp>&rsquo;</dt>
  25808. <dd><p>Interpolate values using the spline interpolation.
  25809. </p></dd>
  25810. </dl>
  25811. </dd>
  25812. </dl>
  25813. <p><a name="lut3d"></a>
  25814. </p><a name="lut3d-1"></a>
  25815. <h2 class="section"><a href="ffprobe-all.html#toc-lut3d-1">32.118 lut3d</a></h2>
  25816. <p>Apply a 3D LUT to an input video.
  25817. </p>
  25818. <p>The filter accepts the following options:
  25819. </p>
  25820. <dl compact="compact">
  25821. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  25822. <dd><p>Set the 3D LUT file name.
  25823. </p>
  25824. <p>Currently supported formats:
  25825. </p><dl compact="compact">
  25826. <dt>&lsquo;<samp>3dl</samp>&rsquo;</dt>
  25827. <dd><p>AfterEffects
  25828. </p></dd>
  25829. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  25830. <dd><p>Iridas
  25831. </p></dd>
  25832. <dt>&lsquo;<samp>dat</samp>&rsquo;</dt>
  25833. <dd><p>DaVinci
  25834. </p></dd>
  25835. <dt>&lsquo;<samp>m3d</samp>&rsquo;</dt>
  25836. <dd><p>Pandora
  25837. </p></dd>
  25838. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  25839. <dd><p>cineSpace
  25840. </p></dd>
  25841. </dl>
  25842. </dd>
  25843. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  25844. <dd><p>Select interpolation mode.
  25845. </p>
  25846. <p>Available values are:
  25847. </p>
  25848. <dl compact="compact">
  25849. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25850. <dd><p>Use values from the nearest defined point.
  25851. </p></dd>
  25852. <dt>&lsquo;<samp>trilinear</samp>&rsquo;</dt>
  25853. <dd><p>Interpolate values using the 8 points defining a cube.
  25854. </p></dd>
  25855. <dt>&lsquo;<samp>tetrahedral</samp>&rsquo;</dt>
  25856. <dd><p>Interpolate values using a tetrahedron.
  25857. </p></dd>
  25858. </dl>
  25859. </dd>
  25860. </dl>
  25861. <a name="lumakey"></a>
  25862. <h2 class="section"><a href="ffprobe-all.html#toc-lumakey">32.119 lumakey</a></h2>
  25863. <p>Turn certain luma values into transparency.
  25864. </p>
  25865. <p>The filter accepts the following options:
  25866. </p>
  25867. <dl compact="compact">
  25868. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  25869. <dd><p>Set the luma which will be used as base for transparency.
  25870. Default value is <code>0</code>.
  25871. </p>
  25872. </dd>
  25873. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  25874. <dd><p>Set the range of luma values to be keyed out.
  25875. Default value is <code>0.01</code>.
  25876. </p>
  25877. </dd>
  25878. <dt>&lsquo;<samp>softness</samp>&rsquo;</dt>
  25879. <dd><p>Set the range of softness. Default value is <code>0</code>.
  25880. Use this to control gradual transition from zero to full transparency.
  25881. </p></dd>
  25882. </dl>
  25883. <a name="Commands-34"></a>
  25884. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-34">32.119.1 Commands</a></h3>
  25885. <p>This filter supports same <a href="#commands">commands</a> as options.
  25886. The command accepts the same syntax of the corresponding option.
  25887. </p>
  25888. <p>If the specified expression is not valid, it is kept at its current
  25889. value.
  25890. </p>
  25891. <a name="lut_002c-lutrgb_002c-lutyuv"></a>
  25892. <h2 class="section"><a href="ffprobe-all.html#toc-lut_002c-lutrgb_002c-lutyuv">32.120 lut, lutrgb, lutyuv</a></h2>
  25893. <p>Compute a look-up table for binding each pixel component input value
  25894. to an output value, and apply it to the input video.
  25895. </p>
  25896. <p><var>lutyuv</var> applies a lookup table to a YUV input video, <var>lutrgb</var>
  25897. to an RGB input video.
  25898. </p>
  25899. <p>These filters accept the following parameters:
  25900. </p><dl compact="compact">
  25901. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  25902. <dd><p>set first pixel component expression
  25903. </p></dd>
  25904. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  25905. <dd><p>set second pixel component expression
  25906. </p></dd>
  25907. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  25908. <dd><p>set third pixel component expression
  25909. </p></dd>
  25910. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  25911. <dd><p>set fourth pixel component expression, corresponds to the alpha component
  25912. </p>
  25913. </dd>
  25914. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  25915. <dd><p>set red component expression
  25916. </p></dd>
  25917. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  25918. <dd><p>set green component expression
  25919. </p></dd>
  25920. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  25921. <dd><p>set blue component expression
  25922. </p></dd>
  25923. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  25924. <dd><p>alpha component expression
  25925. </p>
  25926. </dd>
  25927. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  25928. <dd><p>set Y/luminance component expression
  25929. </p></dd>
  25930. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  25931. <dd><p>set U/Cb component expression
  25932. </p></dd>
  25933. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  25934. <dd><p>set V/Cr component expression
  25935. </p></dd>
  25936. </dl>
  25937. <p>Each of them specifies the expression to use for computing the lookup table for
  25938. the corresponding pixel component values.
  25939. </p>
  25940. <p>The exact component associated to each of the <var>c*</var> options depends on the
  25941. format in input.
  25942. </p>
  25943. <p>The <var>lut</var> filter requires either YUV or RGB pixel formats in input,
  25944. <var>lutrgb</var> requires RGB pixel formats in input, and <var>lutyuv</var> requires YUV.
  25945. </p>
  25946. <p>The expressions can contain the following constants and functions:
  25947. </p>
  25948. <dl compact="compact">
  25949. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  25950. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  25951. <dd><p>The input width and height.
  25952. </p>
  25953. </dd>
  25954. <dt>&lsquo;<samp>val</samp>&rsquo;</dt>
  25955. <dd><p>The input value for the pixel component.
  25956. </p>
  25957. </dd>
  25958. <dt>&lsquo;<samp>clipval</samp>&rsquo;</dt>
  25959. <dd><p>The input value, clipped to the <var>minval</var>-<var>maxval</var> range.
  25960. </p>
  25961. </dd>
  25962. <dt>&lsquo;<samp>maxval</samp>&rsquo;</dt>
  25963. <dd><p>The maximum value for the pixel component.
  25964. </p>
  25965. </dd>
  25966. <dt>&lsquo;<samp>minval</samp>&rsquo;</dt>
  25967. <dd><p>The minimum value for the pixel component.
  25968. </p>
  25969. </dd>
  25970. <dt>&lsquo;<samp>negval</samp>&rsquo;</dt>
  25971. <dd><p>The negated value for the pixel component value, clipped to the
  25972. <var>minval</var>-<var>maxval</var> range; it corresponds to the expression
  25973. &quot;maxval-clipval+minval&quot;.
  25974. </p>
  25975. </dd>
  25976. <dt>&lsquo;<samp>clip(val)</samp>&rsquo;</dt>
  25977. <dd><p>The computed value in <var>val</var>, clipped to the
  25978. <var>minval</var>-<var>maxval</var> range.
  25979. </p>
  25980. </dd>
  25981. <dt>&lsquo;<samp>gammaval(gamma)</samp>&rsquo;</dt>
  25982. <dd><p>The computed gamma correction value of the pixel component value,
  25983. clipped to the <var>minval</var>-<var>maxval</var> range. It corresponds to the
  25984. expression
  25985. &quot;pow((clipval-minval)/(maxval-minval)\,<var>gamma</var>)*(maxval-minval)+minval&quot;
  25986. </p>
  25987. </dd>
  25988. </dl>
  25989. <p>All expressions default to &quot;val&quot;.
  25990. </p>
  25991. <a name="Examples-53"></a>
  25992. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-53">32.120.1 Examples</a></h3>
  25993. <ul>
  25994. <li>
  25995. Negate input video:
  25996. <div class="example">
  25997. <pre class="example">lutrgb=&quot;r=maxval+minval-val:g=maxval+minval-val:b=maxval+minval-val&quot;
  25998. lutyuv=&quot;y=maxval+minval-val:u=maxval+minval-val:v=maxval+minval-val&quot;
  25999. </pre></div>
  26000. <p>The above is the same as:
  26001. </p><div class="example">
  26002. <pre class="example">lutrgb=&quot;r=negval:g=negval:b=negval&quot;
  26003. lutyuv=&quot;y=negval:u=negval:v=negval&quot;
  26004. </pre></div>
  26005. </li><li>
  26006. Negate luminance:
  26007. <div class="example">
  26008. <pre class="example">lutyuv=y=negval
  26009. </pre></div>
  26010. </li><li>
  26011. Remove chroma components, turning the video into a graytone image:
  26012. <div class="example">
  26013. <pre class="example">lutyuv=&quot;u=128:v=128&quot;
  26014. </pre></div>
  26015. </li><li>
  26016. Apply a luma burning effect:
  26017. <div class="example">
  26018. <pre class="example">lutyuv=&quot;y=2*val&quot;
  26019. </pre></div>
  26020. </li><li>
  26021. Remove green and blue components:
  26022. <div class="example">
  26023. <pre class="example">lutrgb=&quot;g=0:b=0&quot;
  26024. </pre></div>
  26025. </li><li>
  26026. Set a constant alpha channel value on input:
  26027. <div class="example">
  26028. <pre class="example">format=rgba,lutrgb=a=&quot;maxval-minval/2&quot;
  26029. </pre></div>
  26030. </li><li>
  26031. Correct luminance gamma by a factor of 0.5:
  26032. <div class="example">
  26033. <pre class="example">lutyuv=y=gammaval(0.5)
  26034. </pre></div>
  26035. </li><li>
  26036. Discard least significant bits of luma:
  26037. <div class="example">
  26038. <pre class="example">lutyuv=y='bitand(val, 128+64+32)'
  26039. </pre></div>
  26040. </li><li>
  26041. Technicolor like effect:
  26042. <div class="example">
  26043. <pre class="example">lutyuv=u='(val-maxval/2)*2+maxval/2':v='(val-maxval/2)*2+maxval/2'
  26044. </pre></div>
  26045. </li></ul>
  26046. <a name="lut2_002c-tlut2"></a>
  26047. <h2 class="section"><a href="ffprobe-all.html#toc-lut2_002c-tlut2">32.121 lut2, tlut2</a></h2>
  26048. <p>The <code>lut2</code> filter takes two input streams and outputs one
  26049. stream.
  26050. </p>
  26051. <p>The <code>tlut2</code> (time lut2) filter takes two consecutive frames
  26052. from one single stream.
  26053. </p>
  26054. <p>This filter accepts the following parameters:
  26055. </p><dl compact="compact">
  26056. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  26057. <dd><p>set first pixel component expression
  26058. </p></dd>
  26059. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  26060. <dd><p>set second pixel component expression
  26061. </p></dd>
  26062. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  26063. <dd><p>set third pixel component expression
  26064. </p></dd>
  26065. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  26066. <dd><p>set fourth pixel component expression, corresponds to the alpha component
  26067. </p>
  26068. </dd>
  26069. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  26070. <dd><p>set output bit depth, only available for <code>lut2</code> filter. By default is 0,
  26071. which means bit depth is automatically picked from first input format.
  26072. </p></dd>
  26073. </dl>
  26074. <p>The <code>lut2</code> filter also supports the <a href="#framesync">framesync</a> options.
  26075. </p>
  26076. <p>Each of them specifies the expression to use for computing the lookup table for
  26077. the corresponding pixel component values.
  26078. </p>
  26079. <p>The exact component associated to each of the <var>c*</var> options depends on the
  26080. format in inputs.
  26081. </p>
  26082. <p>The expressions can contain the following constants:
  26083. </p>
  26084. <dl compact="compact">
  26085. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  26086. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  26087. <dd><p>The input width and height.
  26088. </p>
  26089. </dd>
  26090. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  26091. <dd><p>The first input value for the pixel component.
  26092. </p>
  26093. </dd>
  26094. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  26095. <dd><p>The second input value for the pixel component.
  26096. </p>
  26097. </dd>
  26098. <dt>&lsquo;<samp>bdx</samp>&rsquo;</dt>
  26099. <dd><p>The first input video bit depth.
  26100. </p>
  26101. </dd>
  26102. <dt>&lsquo;<samp>bdy</samp>&rsquo;</dt>
  26103. <dd><p>The second input video bit depth.
  26104. </p></dd>
  26105. </dl>
  26106. <p>All expressions default to &quot;x&quot;.
  26107. </p>
  26108. <a name="Examples-86"></a>
  26109. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-86">32.121.1 Examples</a></h3>
  26110. <ul>
  26111. <li>
  26112. Highlight differences between two RGB video streams:
  26113. <div class="example">
  26114. <pre class="example">lut2='ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,0,pow(2,bdx)-1)'
  26115. </pre></div>
  26116. </li><li>
  26117. Highlight differences between two YUV video streams:
  26118. <div class="example">
  26119. <pre class="example">lut2='ifnot(x-y,0,pow(2,bdx)-1):ifnot(x-y,pow(2,bdx-1),pow(2,bdx)-1):ifnot(x-y,pow(2,bdx-1),pow(2,bdx)-1)'
  26120. </pre></div>
  26121. </li><li>
  26122. Show max difference between two video streams:
  26123. <div class="example">
  26124. <pre class="example">lut2='if(lt(x,y),0,if(gt(x,y),pow(2,bdx)-1,pow(2,bdx-1))):if(lt(x,y),0,if(gt(x,y),pow(2,bdx)-1,pow(2,bdx-1))):if(lt(x,y),0,if(gt(x,y),pow(2,bdx)-1,pow(2,bdx-1)))'
  26125. </pre></div>
  26126. </li></ul>
  26127. <a name="maskedclamp"></a>
  26128. <h2 class="section"><a href="ffprobe-all.html#toc-maskedclamp">32.122 maskedclamp</a></h2>
  26129. <p>Clamp the first input stream with the second input and third input stream.
  26130. </p>
  26131. <p>Returns the value of first stream to be between second input
  26132. stream - <code>undershoot</code> and third input stream + <code>overshoot</code>.
  26133. </p>
  26134. <p>This filter accepts the following options:
  26135. </p><dl compact="compact">
  26136. <dt>&lsquo;<samp>undershoot</samp>&rsquo;</dt>
  26137. <dd><p>Default value is <code>0</code>.
  26138. </p>
  26139. </dd>
  26140. <dt>&lsquo;<samp>overshoot</samp>&rsquo;</dt>
  26141. <dd><p>Default value is <code>0</code>.
  26142. </p>
  26143. </dd>
  26144. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26145. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  26146. copied from first stream.
  26147. By default value 0xf, all planes will be processed.
  26148. </p></dd>
  26149. </dl>
  26150. <a name="maskedmax"></a>
  26151. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmax">32.123 maskedmax</a></h2>
  26152. <p>Merge the second and third input stream into output stream using absolute differences
  26153. between second input stream and first input stream and absolute difference between
  26154. third input stream and first input stream. The picked value will be from second input
  26155. stream if second absolute difference is greater than first one or from third input stream
  26156. otherwise.
  26157. </p>
  26158. <p>This filter accepts the following options:
  26159. </p><dl compact="compact">
  26160. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26161. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  26162. copied from first stream.
  26163. By default value 0xf, all planes will be processed.
  26164. </p></dd>
  26165. </dl>
  26166. <a name="maskedmerge"></a>
  26167. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmerge">32.124 maskedmerge</a></h2>
  26168. <p>Merge the first input stream with the second input stream using per pixel
  26169. weights in the third input stream.
  26170. </p>
  26171. <p>A value of 0 in the third stream pixel component means that pixel component
  26172. from first stream is returned unchanged, while maximum value (eg. 255 for
  26173. 8-bit videos) means that pixel component from second stream is returned
  26174. unchanged. Intermediate values define the amount of merging between both
  26175. input stream&rsquo;s pixel components.
  26176. </p>
  26177. <p>This filter accepts the following options:
  26178. </p><dl compact="compact">
  26179. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26180. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  26181. copied from first stream.
  26182. By default value 0xf, all planes will be processed.
  26183. </p></dd>
  26184. </dl>
  26185. <a name="maskedmin"></a>
  26186. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmin">32.125 maskedmin</a></h2>
  26187. <p>Merge the second and third input stream into output stream using absolute differences
  26188. between second input stream and first input stream and absolute difference between
  26189. third input stream and first input stream. The picked value will be from second input
  26190. stream if second absolute difference is less than first one or from third input stream
  26191. otherwise.
  26192. </p>
  26193. <p>This filter accepts the following options:
  26194. </p><dl compact="compact">
  26195. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26196. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  26197. copied from first stream.
  26198. By default value 0xf, all planes will be processed.
  26199. </p></dd>
  26200. </dl>
  26201. <a name="maskedthreshold"></a>
  26202. <h2 class="section"><a href="ffprobe-all.html#toc-maskedthreshold">32.126 maskedthreshold</a></h2>
  26203. <p>Pick pixels comparing absolute difference of two video streams with fixed
  26204. threshold.
  26205. </p>
  26206. <p>If absolute difference between pixel component of first and second video
  26207. stream is equal or lower than user supplied threshold than pixel component
  26208. from first video stream is picked, otherwise pixel component from second
  26209. video stream is picked.
  26210. </p>
  26211. <p>This filter accepts the following options:
  26212. </p><dl compact="compact">
  26213. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  26214. <dd><p>Set threshold used when picking pixels from absolute difference from two input
  26215. video streams.
  26216. </p>
  26217. </dd>
  26218. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26219. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  26220. copied from second stream.
  26221. By default value 0xf, all planes will be processed.
  26222. </p></dd>
  26223. </dl>
  26224. <a name="maskfun"></a>
  26225. <h2 class="section"><a href="ffprobe-all.html#toc-maskfun">32.127 maskfun</a></h2>
  26226. <p>Create mask from input video.
  26227. </p>
  26228. <p>For example it is useful to create motion masks after <code>tblend</code> filter.
  26229. </p>
  26230. <p>This filter accepts the following options:
  26231. </p>
  26232. <dl compact="compact">
  26233. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  26234. <dd><p>Set low threshold. Any pixel component lower or exact than this value will be set to 0.
  26235. </p>
  26236. </dd>
  26237. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  26238. <dd><p>Set high threshold. Any pixel component higher than this value will be set to max value
  26239. allowed for current pixel format.
  26240. </p>
  26241. </dd>
  26242. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26243. <dd><p>Set planes to filter, by default all available planes are filtered.
  26244. </p>
  26245. </dd>
  26246. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  26247. <dd><p>Fill all frame pixels with this value.
  26248. </p>
  26249. </dd>
  26250. <dt>&lsquo;<samp>sum</samp>&rsquo;</dt>
  26251. <dd><p>Set max average pixel value for frame. If sum of all pixel components is higher that this
  26252. average, output frame will be completely filled with value set by <var>fill</var> option.
  26253. Typically useful for scene changes when used in combination with <code>tblend</code> filter.
  26254. </p></dd>
  26255. </dl>
  26256. <a name="mcdeint"></a>
  26257. <h2 class="section"><a href="ffprobe-all.html#toc-mcdeint">32.128 mcdeint</a></h2>
  26258. <p>Apply motion-compensation deinterlacing.
  26259. </p>
  26260. <p>It needs one field per frame as input and must thus be used together
  26261. with yadif=1/3 or equivalent.
  26262. </p>
  26263. <p>This filter accepts the following options:
  26264. </p><dl compact="compact">
  26265. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  26266. <dd><p>Set the deinterlacing mode.
  26267. </p>
  26268. <p>It accepts one of the following values:
  26269. </p><dl compact="compact">
  26270. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  26271. <dt>&lsquo;<samp>medium</samp>&rsquo;</dt>
  26272. <dt>&lsquo;<samp>slow</samp>&rsquo;</dt>
  26273. <dd><p>use iterative motion estimation
  26274. </p></dd>
  26275. <dt>&lsquo;<samp>extra_slow</samp>&rsquo;</dt>
  26276. <dd><p>like &lsquo;<samp>slow</samp>&rsquo;, but use multiple reference frames.
  26277. </p></dd>
  26278. </dl>
  26279. <p>Default value is &lsquo;<samp>fast</samp>&rsquo;.
  26280. </p>
  26281. </dd>
  26282. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  26283. <dd><p>Set the picture field parity assumed for the input video. It must be
  26284. one of the following values:
  26285. </p>
  26286. <dl compact="compact">
  26287. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  26288. <dd><p>assume top field first
  26289. </p></dd>
  26290. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  26291. <dd><p>assume bottom field first
  26292. </p></dd>
  26293. </dl>
  26294. <p>Default value is &lsquo;<samp>bff</samp>&rsquo;.
  26295. </p>
  26296. </dd>
  26297. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  26298. <dd><p>Set per-block quantization parameter (QP) used by the internal
  26299. encoder.
  26300. </p>
  26301. <p>Higher values should result in a smoother motion vector field but less
  26302. optimal individual vectors. Default value is 1.
  26303. </p></dd>
  26304. </dl>
  26305. <a name="median"></a>
  26306. <h2 class="section"><a href="ffprobe-all.html#toc-median">32.129 median</a></h2>
  26307. <p>Pick median pixel from certain rectangle defined by radius.
  26308. </p>
  26309. <p>This filter accepts the following options:
  26310. </p>
  26311. <dl compact="compact">
  26312. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  26313. <dd><p>Set horizontal radius size. Default value is <code>1</code>.
  26314. Allowed range is integer from 1 to 127.
  26315. </p>
  26316. </dd>
  26317. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26318. <dd><p>Set which planes to process. Default is <code>15</code>, which is all available planes.
  26319. </p>
  26320. </dd>
  26321. <dt>&lsquo;<samp>radiusV</samp>&rsquo;</dt>
  26322. <dd><p>Set vertical radius size. Default value is <code>0</code>.
  26323. Allowed range is integer from 0 to 127.
  26324. If it is 0, value will be picked from horizontal <code>radius</code> option.
  26325. </p>
  26326. </dd>
  26327. <dt>&lsquo;<samp>percentile</samp>&rsquo;</dt>
  26328. <dd><p>Set median percentile. Default value is <code>0.5</code>.
  26329. Default value of <code>0.5</code> will pick always median values, while <code>0</code> will pick
  26330. minimum values, and <code>1</code> maximum values.
  26331. </p></dd>
  26332. </dl>
  26333. <a name="Commands-36"></a>
  26334. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-36">32.129.1 Commands</a></h3>
  26335. <p>This filter supports same <a href="#commands">commands</a> as options.
  26336. The command accepts the same syntax of the corresponding option.
  26337. </p>
  26338. <p>If the specified expression is not valid, it is kept at its current
  26339. value.
  26340. </p>
  26341. <a name="mergeplanes"></a>
  26342. <h2 class="section"><a href="ffprobe-all.html#toc-mergeplanes">32.130 mergeplanes</a></h2>
  26343. <p>Merge color channel components from several video streams.
  26344. </p>
  26345. <p>The filter accepts up to 4 input streams, and merge selected input
  26346. planes to the output video.
  26347. </p>
  26348. <p>This filter accepts the following options:
  26349. </p><dl compact="compact">
  26350. <dt>&lsquo;<samp>mapping</samp>&rsquo;</dt>
  26351. <dd><p>Set input to output plane mapping. Default is <code>0</code>.
  26352. </p>
  26353. <p>The mappings is specified as a bitmap. It should be specified as a
  26354. hexadecimal number in the form 0xAa[Bb[Cc[Dd]]]. &rsquo;Aa&rsquo; describes the
  26355. mapping for the first plane of the output stream. &rsquo;A&rsquo; sets the number of
  26356. the input stream to use (from 0 to 3), and &rsquo;a&rsquo; the plane number of the
  26357. corresponding input to use (from 0 to 3). The rest of the mappings is
  26358. similar, &rsquo;Bb&rsquo; describes the mapping for the output stream second
  26359. plane, &rsquo;Cc&rsquo; describes the mapping for the output stream third plane and
  26360. &rsquo;Dd&rsquo; describes the mapping for the output stream fourth plane.
  26361. </p>
  26362. </dd>
  26363. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  26364. <dd><p>Set output pixel format. Default is <code>yuva444p</code>.
  26365. </p></dd>
  26366. </dl>
  26367. <a name="Examples-46"></a>
  26368. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-46">32.130.1 Examples</a></h3>
  26369. <ul>
  26370. <li>
  26371. Merge three gray video streams of same width and height into single video stream:
  26372. <div class="example">
  26373. <pre class="example">[a0][a1][a2]mergeplanes=0x001020:yuv444p
  26374. </pre></div>
  26375. </li><li>
  26376. Merge 1st yuv444p stream and 2nd gray video stream into yuva444p video stream:
  26377. <div class="example">
  26378. <pre class="example">[a0][a1]mergeplanes=0x00010210:yuva444p
  26379. </pre></div>
  26380. </li><li>
  26381. Swap Y and A plane in yuva444p stream:
  26382. <div class="example">
  26383. <pre class="example">format=yuva444p,mergeplanes=0x03010200:yuva444p
  26384. </pre></div>
  26385. </li><li>
  26386. Swap U and V plane in yuv420p stream:
  26387. <div class="example">
  26388. <pre class="example">format=yuv420p,mergeplanes=0x000201:yuv420p
  26389. </pre></div>
  26390. </li><li>
  26391. Cast a rgb24 clip to yuv444p:
  26392. <div class="example">
  26393. <pre class="example">format=rgb24,mergeplanes=0x000102:yuv444p
  26394. </pre></div>
  26395. </li></ul>
  26396. <a name="mestimate"></a>
  26397. <h2 class="section"><a href="ffprobe-all.html#toc-mestimate">32.131 mestimate</a></h2>
  26398. <p>Estimate and export motion vectors using block matching algorithms.
  26399. Motion vectors are stored in frame side data to be used by other filters.
  26400. </p>
  26401. <p>This filter accepts the following options:
  26402. </p><dl compact="compact">
  26403. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  26404. <dd><p>Specify the motion estimation method. Accepts one of the following values:
  26405. </p>
  26406. <dl compact="compact">
  26407. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  26408. <dd><p>Exhaustive search algorithm.
  26409. </p></dd>
  26410. <dt>&lsquo;<samp>tss</samp>&rsquo;</dt>
  26411. <dd><p>Three step search algorithm.
  26412. </p></dd>
  26413. <dt>&lsquo;<samp>tdls</samp>&rsquo;</dt>
  26414. <dd><p>Two dimensional logarithmic search algorithm.
  26415. </p></dd>
  26416. <dt>&lsquo;<samp>ntss</samp>&rsquo;</dt>
  26417. <dd><p>New three step search algorithm.
  26418. </p></dd>
  26419. <dt>&lsquo;<samp>fss</samp>&rsquo;</dt>
  26420. <dd><p>Four step search algorithm.
  26421. </p></dd>
  26422. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  26423. <dd><p>Diamond search algorithm.
  26424. </p></dd>
  26425. <dt>&lsquo;<samp>hexbs</samp>&rsquo;</dt>
  26426. <dd><p>Hexagon-based search algorithm.
  26427. </p></dd>
  26428. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  26429. <dd><p>Enhanced predictive zonal search algorithm.
  26430. </p></dd>
  26431. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  26432. <dd><p>Uneven multi-hexagon search algorithm.
  26433. </p></dd>
  26434. </dl>
  26435. <p>Default value is &lsquo;<samp>esa</samp>&rsquo;.
  26436. </p>
  26437. </dd>
  26438. <dt>&lsquo;<samp>mb_size</samp>&rsquo;</dt>
  26439. <dd><p>Macroblock size. Default <code>16</code>.
  26440. </p>
  26441. </dd>
  26442. <dt>&lsquo;<samp>search_param</samp>&rsquo;</dt>
  26443. <dd><p>Search parameter. Default <code>7</code>.
  26444. </p></dd>
  26445. </dl>
  26446. <a name="midequalizer"></a>
  26447. <h2 class="section"><a href="ffprobe-all.html#toc-midequalizer">32.132 midequalizer</a></h2>
  26448. <p>Apply Midway Image Equalization effect using two video streams.
  26449. </p>
  26450. <p>Midway Image Equalization adjusts a pair of images to have the same
  26451. histogram, while maintaining their dynamics as much as possible. It&rsquo;s
  26452. useful for e.g. matching exposures from a pair of stereo cameras.
  26453. </p>
  26454. <p>This filter has two inputs and one output, which must be of same pixel format, but
  26455. may be of different sizes. The output of filter is first input adjusted with
  26456. midway histogram of both inputs.
  26457. </p>
  26458. <p>This filter accepts the following option:
  26459. </p>
  26460. <dl compact="compact">
  26461. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26462. <dd><p>Set which planes to process. Default is <code>15</code>, which is all available planes.
  26463. </p></dd>
  26464. </dl>
  26465. <a name="minterpolate"></a>
  26466. <h2 class="section"><a href="ffprobe-all.html#toc-minterpolate">32.133 minterpolate</a></h2>
  26467. <p>Convert the video to specified frame rate using motion interpolation.
  26468. </p>
  26469. <p>This filter accepts the following options:
  26470. </p><dl compact="compact">
  26471. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  26472. <dd><p>Specify the output frame rate. This can be rational e.g. <code>60000/1001</code>. Frames are dropped if <var>fps</var> is lower than source fps. Default <code>60</code>.
  26473. </p>
  26474. </dd>
  26475. <dt>&lsquo;<samp>mi_mode</samp>&rsquo;</dt>
  26476. <dd><p>Motion interpolation mode. Following values are accepted:
  26477. </p><dl compact="compact">
  26478. <dt>&lsquo;<samp>dup</samp>&rsquo;</dt>
  26479. <dd><p>Duplicate previous or next frame for interpolating new ones.
  26480. </p></dd>
  26481. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  26482. <dd><p>Blend source frames. Interpolated frame is mean of previous and next frames.
  26483. </p></dd>
  26484. <dt>&lsquo;<samp>mci</samp>&rsquo;</dt>
  26485. <dd><p>Motion compensated interpolation. Following options are effective when this mode is selected:
  26486. </p>
  26487. <dl compact="compact">
  26488. <dt>&lsquo;<samp>mc_mode</samp>&rsquo;</dt>
  26489. <dd><p>Motion compensation mode. Following values are accepted:
  26490. </p><dl compact="compact">
  26491. <dt>&lsquo;<samp>obmc</samp>&rsquo;</dt>
  26492. <dd><p>Overlapped block motion compensation.
  26493. </p></dd>
  26494. <dt>&lsquo;<samp>aobmc</samp>&rsquo;</dt>
  26495. <dd><p>Adaptive overlapped block motion compensation. Window weighting coefficients are controlled adaptively according to the reliabilities of the neighboring motion vectors to reduce oversmoothing.
  26496. </p></dd>
  26497. </dl>
  26498. <p>Default mode is &lsquo;<samp>obmc</samp>&rsquo;.
  26499. </p>
  26500. </dd>
  26501. <dt>&lsquo;<samp>me_mode</samp>&rsquo;</dt>
  26502. <dd><p>Motion estimation mode. Following values are accepted:
  26503. </p><dl compact="compact">
  26504. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  26505. <dd><p>Bidirectional motion estimation. Motion vectors are estimated for each source frame in both forward and backward directions.
  26506. </p></dd>
  26507. <dt>&lsquo;<samp>bilat</samp>&rsquo;</dt>
  26508. <dd><p>Bilateral motion estimation. Motion vectors are estimated directly for interpolated frame.
  26509. </p></dd>
  26510. </dl>
  26511. <p>Default mode is &lsquo;<samp>bilat</samp>&rsquo;.
  26512. </p>
  26513. </dd>
  26514. <dt>&lsquo;<samp>me</samp>&rsquo;</dt>
  26515. <dd><p>The algorithm to be used for motion estimation. Following values are accepted:
  26516. </p><dl compact="compact">
  26517. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  26518. <dd><p>Exhaustive search algorithm.
  26519. </p></dd>
  26520. <dt>&lsquo;<samp>tss</samp>&rsquo;</dt>
  26521. <dd><p>Three step search algorithm.
  26522. </p></dd>
  26523. <dt>&lsquo;<samp>tdls</samp>&rsquo;</dt>
  26524. <dd><p>Two dimensional logarithmic search algorithm.
  26525. </p></dd>
  26526. <dt>&lsquo;<samp>ntss</samp>&rsquo;</dt>
  26527. <dd><p>New three step search algorithm.
  26528. </p></dd>
  26529. <dt>&lsquo;<samp>fss</samp>&rsquo;</dt>
  26530. <dd><p>Four step search algorithm.
  26531. </p></dd>
  26532. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  26533. <dd><p>Diamond search algorithm.
  26534. </p></dd>
  26535. <dt>&lsquo;<samp>hexbs</samp>&rsquo;</dt>
  26536. <dd><p>Hexagon-based search algorithm.
  26537. </p></dd>
  26538. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  26539. <dd><p>Enhanced predictive zonal search algorithm.
  26540. </p></dd>
  26541. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  26542. <dd><p>Uneven multi-hexagon search algorithm.
  26543. </p></dd>
  26544. </dl>
  26545. <p>Default algorithm is &lsquo;<samp>epzs</samp>&rsquo;.
  26546. </p>
  26547. </dd>
  26548. <dt>&lsquo;<samp>mb_size</samp>&rsquo;</dt>
  26549. <dd><p>Macroblock size. Default <code>16</code>.
  26550. </p>
  26551. </dd>
  26552. <dt>&lsquo;<samp>search_param</samp>&rsquo;</dt>
  26553. <dd><p>Motion estimation search parameter. Default <code>32</code>.
  26554. </p>
  26555. </dd>
  26556. <dt>&lsquo;<samp>vsbmc</samp>&rsquo;</dt>
  26557. <dd><p>Enable variable-size block motion compensation. Motion estimation is applied with smaller block sizes at object boundaries in order to make the them less blur. Default is <code>0</code> (disabled).
  26558. </p></dd>
  26559. </dl>
  26560. </dd>
  26561. </dl>
  26562. </dd>
  26563. <dt>&lsquo;<samp>scd</samp>&rsquo;</dt>
  26564. <dd><p>Scene change detection method. Scene change leads motion vectors to be in random direction. Scene change detection replace interpolated frames by duplicate ones. May not be needed for other modes. Following values are accepted:
  26565. </p><dl compact="compact">
  26566. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  26567. <dd><p>Disable scene change detection.
  26568. </p></dd>
  26569. <dt>&lsquo;<samp>fdiff</samp>&rsquo;</dt>
  26570. <dd><p>Frame difference. Corresponding pixel values are compared and if it satisfies <var>scd_threshold</var> scene change is detected.
  26571. </p></dd>
  26572. </dl>
  26573. <p>Default method is &lsquo;<samp>fdiff</samp>&rsquo;.
  26574. </p>
  26575. </dd>
  26576. <dt>&lsquo;<samp>scd_threshold</samp>&rsquo;</dt>
  26577. <dd><p>Scene change detection threshold. Default is <code>10.</code>.
  26578. </p></dd>
  26579. </dl>
  26580. <a name="mix"></a>
  26581. <h2 class="section"><a href="ffprobe-all.html#toc-mix">32.134 mix</a></h2>
  26582. <p>Mix several video input streams into one video stream.
  26583. </p>
  26584. <p>A description of the accepted options follows.
  26585. </p>
  26586. <dl compact="compact">
  26587. <dt>&lsquo;<samp>nb_inputs</samp>&rsquo;</dt>
  26588. <dd><p>The number of inputs. If unspecified, it defaults to 2.
  26589. </p>
  26590. </dd>
  26591. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  26592. <dd><p>Specify weight of each input video stream as sequence.
  26593. Each weight is separated by space. If number of weights
  26594. is smaller than number of <var>frames</var> last specified
  26595. weight will be used for all remaining unset weights.
  26596. </p>
  26597. </dd>
  26598. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  26599. <dd><p>Specify scale, if it is set it will be multiplied with sum
  26600. of each weight multiplied with pixel values to give final destination
  26601. pixel value. By default <var>scale</var> is auto scaled to sum of weights.
  26602. </p>
  26603. </dd>
  26604. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  26605. <dd><p>Specify how end of stream is determined.
  26606. </p><dl compact="compact">
  26607. <dt>&lsquo;<samp>longest</samp>&rsquo;</dt>
  26608. <dd><p>The duration of the longest input. (default)
  26609. </p>
  26610. </dd>
  26611. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  26612. <dd><p>The duration of the shortest input.
  26613. </p>
  26614. </dd>
  26615. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  26616. <dd><p>The duration of the first input.
  26617. </p></dd>
  26618. </dl>
  26619. </dd>
  26620. </dl>
  26621. <a name="mpdecimate"></a>
  26622. <h2 class="section"><a href="ffprobe-all.html#toc-mpdecimate">32.135 mpdecimate</a></h2>
  26623. <p>Drop frames that do not differ greatly from the previous frame in
  26624. order to reduce frame rate.
  26625. </p>
  26626. <p>The main use of this filter is for very-low-bitrate encoding
  26627. (e.g. streaming over dialup modem), but it could in theory be used for
  26628. fixing movies that were inverse-telecined incorrectly.
  26629. </p>
  26630. <p>A description of the accepted options follows.
  26631. </p>
  26632. <dl compact="compact">
  26633. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  26634. <dd><p>Set the maximum number of consecutive frames which can be dropped (if
  26635. positive), or the minimum interval between dropped frames (if
  26636. negative). If the value is 0, the frame is dropped disregarding the
  26637. number of previous sequentially dropped frames.
  26638. </p>
  26639. <p>Default value is 0.
  26640. </p>
  26641. </dd>
  26642. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  26643. <dt>&lsquo;<samp>lo</samp>&rsquo;</dt>
  26644. <dt>&lsquo;<samp>frac</samp>&rsquo;</dt>
  26645. <dd><p>Set the dropping threshold values.
  26646. </p>
  26647. <p>Values for &lsquo;<samp>hi</samp>&rsquo; and &lsquo;<samp>lo</samp>&rsquo; are for 8x8 pixel blocks and
  26648. represent actual pixel value differences, so a threshold of 64
  26649. corresponds to 1 unit of difference for each pixel, or the same spread
  26650. out differently over the block.
  26651. </p>
  26652. <p>A frame is a candidate for dropping if no 8x8 blocks differ by more
  26653. than a threshold of &lsquo;<samp>hi</samp>&rsquo;, and if no more than &lsquo;<samp>frac</samp>&rsquo; blocks (1
  26654. meaning the whole image) differ by more than a threshold of &lsquo;<samp>lo</samp>&rsquo;.
  26655. </p>
  26656. <p>Default value for &lsquo;<samp>hi</samp>&rsquo; is 64*12, default value for &lsquo;<samp>lo</samp>&rsquo; is
  26657. 64*5, and default value for &lsquo;<samp>frac</samp>&rsquo; is 0.33.
  26658. </p></dd>
  26659. </dl>
  26660. <a name="negate"></a>
  26661. <h2 class="section"><a href="ffprobe-all.html#toc-negate">32.136 negate</a></h2>
  26662. <p>Negate (invert) the input video.
  26663. </p>
  26664. <p>It accepts the following option:
  26665. </p>
  26666. <dl compact="compact">
  26667. <dt>&lsquo;<samp>negate_alpha</samp>&rsquo;</dt>
  26668. <dd><p>With value 1, it negates the alpha component, if present. Default value is 0.
  26669. </p></dd>
  26670. </dl>
  26671. <p><a name="nlmeans"></a>
  26672. </p><a name="nlmeans-1"></a>
  26673. <h2 class="section"><a href="ffprobe-all.html#toc-nlmeans-1">32.137 nlmeans</a></h2>
  26674. <p>Denoise frames using Non-Local Means algorithm.
  26675. </p>
  26676. <p>Each pixel is adjusted by looking for other pixels with similar contexts. This
  26677. context similarity is defined by comparing their surrounding patches of size
  26678. &lsquo;<samp>p</samp>&rsquo;x&lsquo;<samp>p</samp>&rsquo;. Patches are searched in an area of &lsquo;<samp>r</samp>&rsquo;x&lsquo;<samp>r</samp>&rsquo;
  26679. around the pixel.
  26680. </p>
  26681. <p>Note that the research area defines centers for patches, which means some
  26682. patches will be made of pixels outside that research area.
  26683. </p>
  26684. <p>The filter accepts the following options.
  26685. </p>
  26686. <dl compact="compact">
  26687. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  26688. <dd><p>Set denoising strength. Default is 1.0. Must be in range [1.0, 30.0].
  26689. </p>
  26690. </dd>
  26691. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  26692. <dd><p>Set patch size. Default is 7. Must be odd number in range [0, 99].
  26693. </p>
  26694. </dd>
  26695. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  26696. <dd><p>Same as &lsquo;<samp>p</samp>&rsquo; but for chroma planes.
  26697. </p>
  26698. <p>The default value is <var>0</var> and means automatic.
  26699. </p>
  26700. </dd>
  26701. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  26702. <dd><p>Set research size. Default is 15. Must be odd number in range [0, 99].
  26703. </p>
  26704. </dd>
  26705. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  26706. <dd><p>Same as &lsquo;<samp>r</samp>&rsquo; but for chroma planes.
  26707. </p>
  26708. <p>The default value is <var>0</var> and means automatic.
  26709. </p></dd>
  26710. </dl>
  26711. <a name="nnedi"></a>
  26712. <h2 class="section"><a href="ffprobe-all.html#toc-nnedi">32.138 nnedi</a></h2>
  26713. <p>Deinterlace video using neural network edge directed interpolation.
  26714. </p>
  26715. <p>This filter accepts the following options:
  26716. </p>
  26717. <dl compact="compact">
  26718. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  26719. <dd><p>Mandatory option, without binary file filter can not work.
  26720. Currently file can be found here:
  26721. https://github.com/dubhater/vapoursynth-nnedi3/blob/master/src/nnedi3_weights.bin
  26722. </p>
  26723. </dd>
  26724. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  26725. <dd><p>Set which frames to deinterlace, by default it is <code>all</code>.
  26726. Can be <code>all</code> or <code>interlaced</code>.
  26727. </p>
  26728. </dd>
  26729. <dt>&lsquo;<samp>field</samp>&rsquo;</dt>
  26730. <dd><p>Set mode of operation.
  26731. </p>
  26732. <p>Can be one of the following:
  26733. </p>
  26734. <dl compact="compact">
  26735. <dt>&lsquo;<samp>af</samp>&rsquo;</dt>
  26736. <dd><p>Use frame flags, both fields.
  26737. </p></dd>
  26738. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26739. <dd><p>Use frame flags, single field.
  26740. </p></dd>
  26741. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  26742. <dd><p>Use top field only.
  26743. </p></dd>
  26744. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  26745. <dd><p>Use bottom field only.
  26746. </p></dd>
  26747. <dt>&lsquo;<samp>tf</samp>&rsquo;</dt>
  26748. <dd><p>Use both fields, top first.
  26749. </p></dd>
  26750. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  26751. <dd><p>Use both fields, bottom first.
  26752. </p></dd>
  26753. </dl>
  26754. </dd>
  26755. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26756. <dd><p>Set which planes to process, by default filter process all frames.
  26757. </p>
  26758. </dd>
  26759. <dt>&lsquo;<samp>nsize</samp>&rsquo;</dt>
  26760. <dd><p>Set size of local neighborhood around each pixel, used by the predictor neural
  26761. network.
  26762. </p>
  26763. <p>Can be one of the following:
  26764. </p>
  26765. <dl compact="compact">
  26766. <dt>&lsquo;<samp>s8x6</samp>&rsquo;</dt>
  26767. <dt>&lsquo;<samp>s16x6</samp>&rsquo;</dt>
  26768. <dt>&lsquo;<samp>s32x6</samp>&rsquo;</dt>
  26769. <dt>&lsquo;<samp>s48x6</samp>&rsquo;</dt>
  26770. <dt>&lsquo;<samp>s8x4</samp>&rsquo;</dt>
  26771. <dt>&lsquo;<samp>s16x4</samp>&rsquo;</dt>
  26772. <dt>&lsquo;<samp>s32x4</samp>&rsquo;</dt>
  26773. </dl>
  26774. </dd>
  26775. <dt>&lsquo;<samp>nns</samp>&rsquo;</dt>
  26776. <dd><p>Set the number of neurons in predictor neural network.
  26777. Can be one of the following:
  26778. </p>
  26779. <dl compact="compact">
  26780. <dt>&lsquo;<samp>n16</samp>&rsquo;</dt>
  26781. <dt>&lsquo;<samp>n32</samp>&rsquo;</dt>
  26782. <dt>&lsquo;<samp>n64</samp>&rsquo;</dt>
  26783. <dt>&lsquo;<samp>n128</samp>&rsquo;</dt>
  26784. <dt>&lsquo;<samp>n256</samp>&rsquo;</dt>
  26785. </dl>
  26786. </dd>
  26787. <dt>&lsquo;<samp>qual</samp>&rsquo;</dt>
  26788. <dd><p>Controls the number of different neural network predictions that are blended
  26789. together to compute the final output value. Can be <code>fast</code>, default or
  26790. <code>slow</code>.
  26791. </p>
  26792. </dd>
  26793. <dt>&lsquo;<samp>etype</samp>&rsquo;</dt>
  26794. <dd><p>Set which set of weights to use in the predictor.
  26795. Can be one of the following:
  26796. </p>
  26797. <dl compact="compact">
  26798. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26799. <dd><p>weights trained to minimize absolute error
  26800. </p></dd>
  26801. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  26802. <dd><p>weights trained to minimize squared error
  26803. </p></dd>
  26804. </dl>
  26805. </dd>
  26806. <dt>&lsquo;<samp>pscrn</samp>&rsquo;</dt>
  26807. <dd><p>Controls whether or not the prescreener neural network is used to decide
  26808. which pixels should be processed by the predictor neural network and which
  26809. can be handled by simple cubic interpolation.
  26810. The prescreener is trained to know whether cubic interpolation will be
  26811. sufficient for a pixel or whether it should be predicted by the predictor nn.
  26812. The computational complexity of the prescreener nn is much less than that of
  26813. the predictor nn. Since most pixels can be handled by cubic interpolation,
  26814. using the prescreener generally results in much faster processing.
  26815. The prescreener is pretty accurate, so the difference between using it and not
  26816. using it is almost always unnoticeable.
  26817. </p>
  26818. <p>Can be one of the following:
  26819. </p>
  26820. <dl compact="compact">
  26821. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  26822. <dt>&lsquo;<samp>original</samp>&rsquo;</dt>
  26823. <dt>&lsquo;<samp>new</samp>&rsquo;</dt>
  26824. </dl>
  26825. <p>Default is <code>new</code>.
  26826. </p>
  26827. </dd>
  26828. <dt>&lsquo;<samp>fapprox</samp>&rsquo;</dt>
  26829. <dd><p>Set various debugging flags.
  26830. </p></dd>
  26831. </dl>
  26832. <a name="noformat"></a>
  26833. <h2 class="section"><a href="ffprobe-all.html#toc-noformat">32.139 noformat</a></h2>
  26834. <p>Force libavfilter not to use any of the specified pixel formats for the
  26835. input to the next filter.
  26836. </p>
  26837. <p>It accepts the following parameters:
  26838. </p><dl compact="compact">
  26839. <dt>&lsquo;<samp>pix_fmts</samp>&rsquo;</dt>
  26840. <dd><p>A &rsquo;|&rsquo;-separated list of pixel format names, such as
  26841. pix_fmts=yuv420p|monow|rgb24&quot;.
  26842. </p>
  26843. </dd>
  26844. </dl>
  26845. <a name="Examples-4"></a>
  26846. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-4">32.139.1 Examples</a></h3>
  26847. <ul>
  26848. <li>
  26849. Force libavfilter to use a format different from <var>yuv420p</var> for the
  26850. input to the vflip filter:
  26851. <div class="example">
  26852. <pre class="example">noformat=pix_fmts=yuv420p,vflip
  26853. </pre></div>
  26854. </li><li>
  26855. Convert the input video to any of the formats not contained in the list:
  26856. <div class="example">
  26857. <pre class="example">noformat=yuv420p|yuv444p|yuv410p
  26858. </pre></div>
  26859. </li></ul>
  26860. <a name="noise-1"></a>
  26861. <h2 class="section"><a href="ffprobe-all.html#toc-noise-1">32.140 noise</a></h2>
  26862. <p>Add noise on video input frame.
  26863. </p>
  26864. <p>The filter accepts the following options:
  26865. </p>
  26866. <dl compact="compact">
  26867. <dt>&lsquo;<samp>all_seed</samp>&rsquo;</dt>
  26868. <dt>&lsquo;<samp>c0_seed</samp>&rsquo;</dt>
  26869. <dt>&lsquo;<samp>c1_seed</samp>&rsquo;</dt>
  26870. <dt>&lsquo;<samp>c2_seed</samp>&rsquo;</dt>
  26871. <dt>&lsquo;<samp>c3_seed</samp>&rsquo;</dt>
  26872. <dd><p>Set noise seed for specific pixel component or all pixel components in case
  26873. of <var>all_seed</var>. Default value is <code>123457</code>.
  26874. </p>
  26875. </dd>
  26876. <dt>&lsquo;<samp>all_strength, alls</samp>&rsquo;</dt>
  26877. <dt>&lsquo;<samp>c0_strength, c0s</samp>&rsquo;</dt>
  26878. <dt>&lsquo;<samp>c1_strength, c1s</samp>&rsquo;</dt>
  26879. <dt>&lsquo;<samp>c2_strength, c2s</samp>&rsquo;</dt>
  26880. <dt>&lsquo;<samp>c3_strength, c3s</samp>&rsquo;</dt>
  26881. <dd><p>Set noise strength for specific pixel component or all pixel components in case
  26882. <var>all_strength</var>. Default value is <code>0</code>. Allowed range is [0, 100].
  26883. </p>
  26884. </dd>
  26885. <dt>&lsquo;<samp>all_flags, allf</samp>&rsquo;</dt>
  26886. <dt>&lsquo;<samp>c0_flags, c0f</samp>&rsquo;</dt>
  26887. <dt>&lsquo;<samp>c1_flags, c1f</samp>&rsquo;</dt>
  26888. <dt>&lsquo;<samp>c2_flags, c2f</samp>&rsquo;</dt>
  26889. <dt>&lsquo;<samp>c3_flags, c3f</samp>&rsquo;</dt>
  26890. <dd><p>Set pixel component flags or set flags for all components if <var>all_flags</var>.
  26891. Available values for component flags are:
  26892. </p><dl compact="compact">
  26893. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26894. <dd><p>averaged temporal noise (smoother)
  26895. </p></dd>
  26896. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  26897. <dd><p>mix random noise with a (semi)regular pattern
  26898. </p></dd>
  26899. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  26900. <dd><p>temporal noise (noise pattern changes between frames)
  26901. </p></dd>
  26902. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  26903. <dd><p>uniform noise (gaussian otherwise)
  26904. </p></dd>
  26905. </dl>
  26906. </dd>
  26907. </dl>
  26908. <a name="Examples-45"></a>
  26909. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-45">32.140.1 Examples</a></h3>
  26910. <p>Add temporal and uniform noise to input video:
  26911. </p><div class="example">
  26912. <pre class="example">noise=alls=20:allf=t+u
  26913. </pre></div>
  26914. <a name="normalize"></a>
  26915. <h2 class="section"><a href="ffprobe-all.html#toc-normalize">32.141 normalize</a></h2>
  26916. <p>Normalize RGB video (aka histogram stretching, contrast stretching).
  26917. See: https://en.wikipedia.org/wiki/Normalization_(image_processing)
  26918. </p>
  26919. <p>For each channel of each frame, the filter computes the input range and maps
  26920. it linearly to the user-specified output range. The output range defaults
  26921. to the full dynamic range from pure black to pure white.
  26922. </p>
  26923. <p>Temporal smoothing can be used on the input range to reduce flickering (rapid
  26924. changes in brightness) caused when small dark or bright objects enter or leave
  26925. the scene. This is similar to the auto-exposure (automatic gain control) on a
  26926. video camera, and, like a video camera, it may cause a period of over- or
  26927. under-exposure of the video.
  26928. </p>
  26929. <p>The R,G,B channels can be normalized independently, which may cause some
  26930. color shifting, or linked together as a single channel, which prevents
  26931. color shifting. Linked normalization preserves hue. Independent normalization
  26932. does not, so it can be used to remove some color casts. Independent and linked
  26933. normalization can be combined in any ratio.
  26934. </p>
  26935. <p>The normalize filter accepts the following options:
  26936. </p>
  26937. <dl compact="compact">
  26938. <dt>&lsquo;<samp>blackpt</samp>&rsquo;</dt>
  26939. <dt>&lsquo;<samp>whitept</samp>&rsquo;</dt>
  26940. <dd><p>Colors which define the output range. The minimum input value is mapped to
  26941. the <var>blackpt</var>. The maximum input value is mapped to the <var>whitept</var>.
  26942. The defaults are black and white respectively. Specifying white for
  26943. <var>blackpt</var> and black for <var>whitept</var> will give color-inverted,
  26944. normalized video. Shades of grey can be used to reduce the dynamic range
  26945. (contrast). Specifying saturated colors here can create some interesting
  26946. effects.
  26947. </p>
  26948. </dd>
  26949. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  26950. <dd><p>The number of previous frames to use for temporal smoothing. The input range
  26951. of each channel is smoothed using a rolling average over the current frame
  26952. and the <var>smoothing</var> previous frames. The default is 0 (no temporal
  26953. smoothing).
  26954. </p>
  26955. </dd>
  26956. <dt>&lsquo;<samp>independence</samp>&rsquo;</dt>
  26957. <dd><p>Controls the ratio of independent (color shifting) channel normalization to
  26958. linked (color preserving) normalization. 0.0 is fully linked, 1.0 is fully
  26959. independent. Defaults to 1.0 (fully independent).
  26960. </p>
  26961. </dd>
  26962. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  26963. <dd><p>Overall strength of the filter. 1.0 is full strength. 0.0 is a rather
  26964. expensive no-op. Defaults to 1.0 (full strength).
  26965. </p>
  26966. </dd>
  26967. </dl>
  26968. <a name="Commands-42"></a>
  26969. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-42">32.141.1 Commands</a></h3>
  26970. <p>This filter supports same <a href="#commands">commands</a> as options, excluding <var>smoothing</var> option.
  26971. The command accepts the same syntax of the corresponding option.
  26972. </p>
  26973. <p>If the specified expression is not valid, it is kept at its current
  26974. value.
  26975. </p>
  26976. <a name="Examples-35"></a>
  26977. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-35">32.141.2 Examples</a></h3>
  26978. <p>Stretch video contrast to use the full dynamic range, with no temporal
  26979. smoothing; may flicker depending on the source content:
  26980. </p><div class="example">
  26981. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=0
  26982. </pre></div>
  26983. <p>As above, but with 50 frames of temporal smoothing; flicker should be
  26984. reduced, depending on the source content:
  26985. </p><div class="example">
  26986. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50
  26987. </pre></div>
  26988. <p>As above, but with hue-preserving linked channel normalization:
  26989. </p><div class="example">
  26990. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50:independence=0
  26991. </pre></div>
  26992. <p>As above, but with half strength:
  26993. </p><div class="example">
  26994. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50:independence=0:strength=0.5
  26995. </pre></div>
  26996. <p>Map the darkest input color to red, the brightest input color to cyan:
  26997. </p><div class="example">
  26998. <pre class="example">normalize=blackpt=red:whitept=cyan
  26999. </pre></div>
  27000. <a name="null"></a>
  27001. <h2 class="section"><a href="ffprobe-all.html#toc-null">32.142 null</a></h2>
  27002. <p>Pass the video source unchanged to the output.
  27003. </p>
  27004. <a name="ocr"></a>
  27005. <h2 class="section"><a href="ffprobe-all.html#toc-ocr">32.143 ocr</a></h2>
  27006. <p>Optical Character Recognition
  27007. </p>
  27008. <p>This filter uses Tesseract for optical character recognition. To enable
  27009. compilation of this filter, you need to configure FFmpeg with
  27010. <code>--enable-libtesseract</code>.
  27011. </p>
  27012. <p>It accepts the following options:
  27013. </p>
  27014. <dl compact="compact">
  27015. <dt>&lsquo;<samp>datapath</samp>&rsquo;</dt>
  27016. <dd><p>Set datapath to tesseract data. Default is to use whatever was
  27017. set at installation.
  27018. </p>
  27019. </dd>
  27020. <dt>&lsquo;<samp>language</samp>&rsquo;</dt>
  27021. <dd><p>Set language, default is &quot;eng&quot;.
  27022. </p>
  27023. </dd>
  27024. <dt>&lsquo;<samp>whitelist</samp>&rsquo;</dt>
  27025. <dd><p>Set character whitelist.
  27026. </p>
  27027. </dd>
  27028. <dt>&lsquo;<samp>blacklist</samp>&rsquo;</dt>
  27029. <dd><p>Set character blacklist.
  27030. </p></dd>
  27031. </dl>
  27032. <p>The filter exports recognized text as the frame metadata <code>lavfi.ocr.text</code>.
  27033. The filter exports confidence of recognized words as the frame metadata <code>lavfi.ocr.confidence</code>.
  27034. </p>
  27035. <a name="ocv"></a>
  27036. <h2 class="section"><a href="ffprobe-all.html#toc-ocv">32.144 ocv</a></h2>
  27037. <p>Apply a video transform using libopencv.
  27038. </p>
  27039. <p>To enable this filter, install the libopencv library and headers and
  27040. configure FFmpeg with <code>--enable-libopencv</code>.
  27041. </p>
  27042. <p>It accepts the following parameters:
  27043. </p>
  27044. <dl compact="compact">
  27045. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  27046. <dd><p>The name of the libopencv filter to apply.
  27047. </p>
  27048. </dd>
  27049. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  27050. <dd><p>The parameters to pass to the libopencv filter. If not specified, the default
  27051. values are assumed.
  27052. </p>
  27053. </dd>
  27054. </dl>
  27055. <p>Refer to the official libopencv documentation for more precise
  27056. information:
  27057. <a href="http://docs.opencv.org/master/modules/imgproc/doc/filtering.html">http://docs.opencv.org/master/modules/imgproc/doc/filtering.html</a>
  27058. </p>
  27059. <p>Several libopencv filters are supported; see the following subsections.
  27060. </p>
  27061. <p><a name="dilate"></a>
  27062. </p><a name="dilate-1"></a>
  27063. <h3 class="subsection"><a href="ffprobe-all.html#toc-dilate-1">32.144.1 dilate</a></h3>
  27064. <p>Dilate an image by using a specific structuring element.
  27065. It corresponds to the libopencv function <code>cvDilate</code>.
  27066. </p>
  27067. <p>It accepts the parameters: <var>struct_el</var>|<var>nb_iterations</var>.
  27068. </p>
  27069. <p><var>struct_el</var> represents a structuring element, and has the syntax:
  27070. <var>cols</var>x<var>rows</var>+<var>anchor_x</var>x<var>anchor_y</var>/<var>shape</var>
  27071. </p>
  27072. <p><var>cols</var> and <var>rows</var> represent the number of columns and rows of
  27073. the structuring element, <var>anchor_x</var> and <var>anchor_y</var> the anchor
  27074. point, and <var>shape</var> the shape for the structuring element. <var>shape</var>
  27075. must be &quot;rect&quot;, &quot;cross&quot;, &quot;ellipse&quot;, or &quot;custom&quot;.
  27076. </p>
  27077. <p>If the value for <var>shape</var> is &quot;custom&quot;, it must be followed by a
  27078. string of the form &quot;=<var>filename</var>&quot;. The file with name
  27079. <var>filename</var> is assumed to represent a binary image, with each
  27080. printable character corresponding to a bright pixel. When a custom
  27081. <var>shape</var> is used, <var>cols</var> and <var>rows</var> are ignored, the number
  27082. or columns and rows of the read file are assumed instead.
  27083. </p>
  27084. <p>The default value for <var>struct_el</var> is &quot;3x3+0x0/rect&quot;.
  27085. </p>
  27086. <p><var>nb_iterations</var> specifies the number of times the transform is
  27087. applied to the image, and defaults to 1.
  27088. </p>
  27089. <p>Some examples:
  27090. </p><div class="example">
  27091. <pre class="example"># Use the default values
  27092. ocv=dilate
  27093. # Dilate using a structuring element with a 5x5 cross, iterating two times
  27094. ocv=filter_name=dilate:filter_params=5x5+2x2/cross|2
  27095. # Read the shape from the file diamond.shape, iterating two times.
  27096. # The file diamond.shape may contain a pattern of characters like this
  27097. # *
  27098. # ***
  27099. # *****
  27100. # ***
  27101. # *
  27102. # The specified columns and rows are ignored
  27103. # but the anchor point coordinates are not
  27104. ocv=dilate:0x0+2x2/custom=diamond.shape|2
  27105. </pre></div>
  27106. <a name="erode"></a>
  27107. <h3 class="subsection"><a href="ffprobe-all.html#toc-erode">32.144.2 erode</a></h3>
  27108. <p>Erode an image by using a specific structuring element.
  27109. It corresponds to the libopencv function <code>cvErode</code>.
  27110. </p>
  27111. <p>It accepts the parameters: <var>struct_el</var>:<var>nb_iterations</var>,
  27112. with the same syntax and semantics as the <a href="#dilate">dilate</a> filter.
  27113. </p>
  27114. <a name="smooth"></a>
  27115. <h3 class="subsection"><a href="ffprobe-all.html#toc-smooth">32.144.3 smooth</a></h3>
  27116. <p>Smooth the input video.
  27117. </p>
  27118. <p>The filter takes the following parameters:
  27119. <var>type</var>|<var>param1</var>|<var>param2</var>|<var>param3</var>|<var>param4</var>.
  27120. </p>
  27121. <p><var>type</var> is the type of smooth filter to apply, and must be one of
  27122. the following values: &quot;blur&quot;, &quot;blur_no_scale&quot;, &quot;median&quot;, &quot;gaussian&quot;,
  27123. or &quot;bilateral&quot;. The default value is &quot;gaussian&quot;.
  27124. </p>
  27125. <p>The meaning of <var>param1</var>, <var>param2</var>, <var>param3</var>, and <var>param4</var>
  27126. depends on the smooth type. <var>param1</var> and
  27127. <var>param2</var> accept integer positive values or 0. <var>param3</var> and
  27128. <var>param4</var> accept floating point values.
  27129. </p>
  27130. <p>The default value for <var>param1</var> is 3. The default value for the
  27131. other parameters is 0.
  27132. </p>
  27133. <p>These parameters correspond to the parameters assigned to the
  27134. libopencv function <code>cvSmooth</code>.
  27135. </p>
  27136. <a name="oscilloscope"></a>
  27137. <h2 class="section"><a href="ffprobe-all.html#toc-oscilloscope">32.145 oscilloscope</a></h2>
  27138. <p>2D Video Oscilloscope.
  27139. </p>
  27140. <p>Useful to measure spatial impulse, step responses, chroma delays, etc.
  27141. </p>
  27142. <p>It accepts the following parameters:
  27143. </p>
  27144. <dl compact="compact">
  27145. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27146. <dd><p>Set scope center x position.
  27147. </p>
  27148. </dd>
  27149. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27150. <dd><p>Set scope center y position.
  27151. </p>
  27152. </dd>
  27153. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  27154. <dd><p>Set scope size, relative to frame diagonal.
  27155. </p>
  27156. </dd>
  27157. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  27158. <dd><p>Set scope tilt/rotation.
  27159. </p>
  27160. </dd>
  27161. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  27162. <dd><p>Set trace opacity.
  27163. </p>
  27164. </dd>
  27165. <dt>&lsquo;<samp>tx</samp>&rsquo;</dt>
  27166. <dd><p>Set trace center x position.
  27167. </p>
  27168. </dd>
  27169. <dt>&lsquo;<samp>ty</samp>&rsquo;</dt>
  27170. <dd><p>Set trace center y position.
  27171. </p>
  27172. </dd>
  27173. <dt>&lsquo;<samp>tw</samp>&rsquo;</dt>
  27174. <dd><p>Set trace width, relative to width of frame.
  27175. </p>
  27176. </dd>
  27177. <dt>&lsquo;<samp>th</samp>&rsquo;</dt>
  27178. <dd><p>Set trace height, relative to height of frame.
  27179. </p>
  27180. </dd>
  27181. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  27182. <dd><p>Set which components to trace. By default it traces first three components.
  27183. </p>
  27184. </dd>
  27185. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  27186. <dd><p>Draw trace grid. By default is enabled.
  27187. </p>
  27188. </dd>
  27189. <dt>&lsquo;<samp>st</samp>&rsquo;</dt>
  27190. <dd><p>Draw some statistics. By default is enabled.
  27191. </p>
  27192. </dd>
  27193. <dt>&lsquo;<samp>sc</samp>&rsquo;</dt>
  27194. <dd><p>Draw scope. By default is enabled.
  27195. </p></dd>
  27196. </dl>
  27197. <a name="Commands-32"></a>
  27198. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-32">32.145.1 Commands</a></h3>
  27199. <p>This filter supports same <a href="#commands">commands</a> as options.
  27200. The command accepts the same syntax of the corresponding option.
  27201. </p>
  27202. <p>If the specified expression is not valid, it is kept at its current
  27203. value.
  27204. </p>
  27205. <a name="Examples-74"></a>
  27206. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-74">32.145.2 Examples</a></h3>
  27207. <ul>
  27208. <li>
  27209. Inspect full first row of video frame.
  27210. <div class="example">
  27211. <pre class="example">oscilloscope=x=0.5:y=0:s=1
  27212. </pre></div>
  27213. </li><li>
  27214. Inspect full last row of video frame.
  27215. <div class="example">
  27216. <pre class="example">oscilloscope=x=0.5:y=1:s=1
  27217. </pre></div>
  27218. </li><li>
  27219. Inspect full 5th line of video frame of height 1080.
  27220. <div class="example">
  27221. <pre class="example">oscilloscope=x=0.5:y=5/1080:s=1
  27222. </pre></div>
  27223. </li><li>
  27224. Inspect full last column of video frame.
  27225. <div class="example">
  27226. <pre class="example">oscilloscope=x=1:y=0.5:s=1:t=1
  27227. </pre></div>
  27228. </li></ul>
  27229. <p><a name="overlay"></a>
  27230. </p><a name="overlay-1"></a>
  27231. <h2 class="section"><a href="ffprobe-all.html#toc-overlay-1">32.146 overlay</a></h2>
  27232. <p>Overlay one video on top of another.
  27233. </p>
  27234. <p>It takes two inputs and has one output. The first input is the &quot;main&quot;
  27235. video on which the second input is overlaid.
  27236. </p>
  27237. <p>It accepts the following parameters:
  27238. </p>
  27239. <p>A description of the accepted options follows.
  27240. </p>
  27241. <dl compact="compact">
  27242. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27243. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27244. <dd><p>Set the expression for the x and y coordinates of the overlaid video
  27245. on the main video. Default value is &quot;0&quot; for both expressions. In case
  27246. the expression is invalid, it is set to a huge value (meaning that the
  27247. overlay will not be displayed within the output visible area).
  27248. </p>
  27249. </dd>
  27250. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  27251. <dd><p>See <a href="#framesync">framesync</a>.
  27252. </p>
  27253. </dd>
  27254. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  27255. <dd><p>Set when the expressions for &lsquo;<samp>x</samp>&rsquo;, and &lsquo;<samp>y</samp>&rsquo; are evaluated.
  27256. </p>
  27257. <p>It accepts the following values:
  27258. </p><dl compact="compact">
  27259. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  27260. <dd><p>only evaluate expressions once during the filter initialization or
  27261. when a command is processed
  27262. </p>
  27263. </dd>
  27264. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  27265. <dd><p>evaluate expressions for each incoming frame
  27266. </p></dd>
  27267. </dl>
  27268. <p>Default value is &lsquo;<samp>frame</samp>&rsquo;.
  27269. </p>
  27270. </dd>
  27271. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  27272. <dd><p>See <a href="#framesync">framesync</a>.
  27273. </p>
  27274. </dd>
  27275. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  27276. <dd><p>Set the format for the output video.
  27277. </p>
  27278. <p>It accepts the following values:
  27279. </p><dl compact="compact">
  27280. <dt>&lsquo;<samp>yuv420</samp>&rsquo;</dt>
  27281. <dd><p>force YUV420 output
  27282. </p>
  27283. </dd>
  27284. <dt>&lsquo;<samp>yuv422</samp>&rsquo;</dt>
  27285. <dd><p>force YUV422 output
  27286. </p>
  27287. </dd>
  27288. <dt>&lsquo;<samp>yuv444</samp>&rsquo;</dt>
  27289. <dd><p>force YUV444 output
  27290. </p>
  27291. </dd>
  27292. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  27293. <dd><p>force packed RGB output
  27294. </p>
  27295. </dd>
  27296. <dt>&lsquo;<samp>gbrp</samp>&rsquo;</dt>
  27297. <dd><p>force planar RGB output
  27298. </p>
  27299. </dd>
  27300. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  27301. <dd><p>automatically pick format
  27302. </p></dd>
  27303. </dl>
  27304. <p>Default value is &lsquo;<samp>yuv420</samp>&rsquo;.
  27305. </p>
  27306. </dd>
  27307. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  27308. <dd><p>See <a href="#framesync">framesync</a>.
  27309. </p>
  27310. </dd>
  27311. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  27312. <dd><p>Set format of alpha of the overlaid video, it can be <var>straight</var> or
  27313. <var>premultiplied</var>. Default is <var>straight</var>.
  27314. </p></dd>
  27315. </dl>
  27316. <p>The &lsquo;<samp>x</samp>&rsquo;, and &lsquo;<samp>y</samp>&rsquo; expressions can contain the following
  27317. parameters.
  27318. </p>
  27319. <dl compact="compact">
  27320. <dt>&lsquo;<samp>main_w, W</samp>&rsquo;</dt>
  27321. <dt>&lsquo;<samp>main_h, H</samp>&rsquo;</dt>
  27322. <dd><p>The main input width and height.
  27323. </p>
  27324. </dd>
  27325. <dt>&lsquo;<samp>overlay_w, w</samp>&rsquo;</dt>
  27326. <dt>&lsquo;<samp>overlay_h, h</samp>&rsquo;</dt>
  27327. <dd><p>The overlay input width and height.
  27328. </p>
  27329. </dd>
  27330. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27331. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27332. <dd><p>The computed values for <var>x</var> and <var>y</var>. They are evaluated for
  27333. each new frame.
  27334. </p>
  27335. </dd>
  27336. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  27337. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  27338. <dd><p>horizontal and vertical chroma subsample values of the output
  27339. format. For example for the pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and
  27340. <var>vsub</var> is 1.
  27341. </p>
  27342. </dd>
  27343. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  27344. <dd><p>the number of input frame, starting from 0
  27345. </p>
  27346. </dd>
  27347. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  27348. <dd><p>the position in the file of the input frame, NAN if unknown
  27349. </p>
  27350. </dd>
  27351. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  27352. <dd><p>The timestamp, expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  27353. </p>
  27354. </dd>
  27355. </dl>
  27356. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  27357. </p>
  27358. <p>Note that the <var>n</var>, <var>pos</var>, <var>t</var> variables are available only
  27359. when evaluation is done <em>per frame</em>, and will evaluate to NAN
  27360. when &lsquo;<samp>eval</samp>&rsquo; is set to &lsquo;<samp>init</samp>&rsquo;.
  27361. </p>
  27362. <p>Be aware that frames are taken from each input video in timestamp
  27363. order, hence, if their initial timestamps differ, it is a good idea
  27364. to pass the two inputs through a <var>setpts=PTS-STARTPTS</var> filter to
  27365. have them begin in the same zero timestamp, as the example for
  27366. the <var>movie</var> filter does.
  27367. </p>
  27368. <p>You can chain together more overlays but you should test the
  27369. efficiency of such approach.
  27370. </p>
  27371. <a name="Commands-47"></a>
  27372. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-47">32.146.1 Commands</a></h3>
  27373. <p>This filter supports the following commands:
  27374. </p><dl compact="compact">
  27375. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27376. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27377. <dd><p>Modify the x and y of the overlay input.
  27378. The command accepts the same syntax of the corresponding option.
  27379. </p>
  27380. <p>If the specified expression is not valid, it is kept at its current
  27381. value.
  27382. </p></dd>
  27383. </dl>
  27384. <a name="Examples-33"></a>
  27385. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-33">32.146.2 Examples</a></h3>
  27386. <ul>
  27387. <li>
  27388. Draw the overlay at 10 pixels from the bottom right corner of the main
  27389. video:
  27390. <div class="example">
  27391. <pre class="example">overlay=main_w-overlay_w-10:main_h-overlay_h-10
  27392. </pre></div>
  27393. <p>Using named options the example above becomes:
  27394. </p><div class="example">
  27395. <pre class="example">overlay=x=main_w-overlay_w-10:y=main_h-overlay_h-10
  27396. </pre></div>
  27397. </li><li>
  27398. Insert a transparent PNG logo in the bottom left corner of the input,
  27399. using the <code>ffmpeg</code> tool with the <code>-filter_complex</code> option:
  27400. <div class="example">
  27401. <pre class="example">ffmpeg -i input -i logo -filter_complex 'overlay=10:main_h-overlay_h-10' output
  27402. </pre></div>
  27403. </li><li>
  27404. Insert 2 different transparent PNG logos (second logo on bottom
  27405. right corner) using the <code>ffmpeg</code> tool:
  27406. <div class="example">
  27407. <pre class="example">ffmpeg -i input -i logo1 -i logo2 -filter_complex 'overlay=x=10:y=H-h-10,overlay=x=W-w-10:y=H-h-10' output
  27408. </pre></div>
  27409. </li><li>
  27410. Add a transparent color layer on top of the main video; <code>WxH</code>
  27411. must specify the size of the main input to the overlay filter:
  27412. <div class="example">
  27413. <pre class="example">color=color=red@.3:size=WxH [over]; [in][over] overlay [out]
  27414. </pre></div>
  27415. </li><li>
  27416. Play an original video and a filtered version (here with the deshake
  27417. filter) side by side using the <code>ffplay</code> tool:
  27418. <div class="example">
  27419. <pre class="example">ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w'
  27420. </pre></div>
  27421. <p>The above command is the same as:
  27422. </p><div class="example">
  27423. <pre class="example">ffplay input.avi -vf 'split[b], pad=iw*2[src], [b]deshake, [src]overlay=w'
  27424. </pre></div>
  27425. </li><li>
  27426. Make a sliding overlay appearing from the left to the right top part of the
  27427. screen starting since time 2:
  27428. <div class="example">
  27429. <pre class="example">overlay=x='if(gte(t,2), -w+(t-2)*20, NAN)':y=0
  27430. </pre></div>
  27431. </li><li>
  27432. Compose output by putting two input videos side to side:
  27433. <div class="example">
  27434. <pre class="example">ffmpeg -i left.avi -i right.avi -filter_complex &quot;
  27435. nullsrc=size=200x100 [background];
  27436. [0:v] setpts=PTS-STARTPTS, scale=100x100 [left];
  27437. [1:v] setpts=PTS-STARTPTS, scale=100x100 [right];
  27438. [background][left] overlay=shortest=1 [background+left];
  27439. [background+left][right] overlay=shortest=1:x=100 [left+right]
  27440. &quot;
  27441. </pre></div>
  27442. </li><li>
  27443. Mask 10-20 seconds of a video by applying the delogo filter to a section
  27444. <div class="example">
  27445. <pre class="example">ffmpeg -i test.avi -codec:v:0 wmv2 -ar 11025 -b:v 9000k
  27446. -vf '[in]split[split_main][split_delogo];[split_delogo]trim=start=360:end=371,delogo=0:0:640:480[delogoed];[split_main][delogoed]overlay=eof_action=pass[out]'
  27447. masked.avi
  27448. </pre></div>
  27449. </li><li>
  27450. Chain several overlays in cascade:
  27451. <div class="example">
  27452. <pre class="example">nullsrc=s=200x200 [bg];
  27453. testsrc=s=100x100, split=4 [in0][in1][in2][in3];
  27454. [in0] lutrgb=r=0, [bg] overlay=0:0 [mid0];
  27455. [in1] lutrgb=g=0, [mid0] overlay=100:0 [mid1];
  27456. [in2] lutrgb=b=0, [mid1] overlay=0:100 [mid2];
  27457. [in3] null, [mid2] overlay=100:100 [out0]
  27458. </pre></div>
  27459. </li></ul>
  27460. <p><a name="overlay_005fcuda"></a>
  27461. </p><a name="overlay_005fcuda-1"></a>
  27462. <h2 class="section"><a href="ffprobe-all.html#toc-overlay_005fcuda-1">32.147 overlay_cuda</a></h2>
  27463. <p>Overlay one video on top of another.
  27464. </p>
  27465. <p>This is the CUDA cariant of the <a href="#overlay">overlay</a> filter.
  27466. It only accepts CUDA frames. The underlying input pixel formats have to match.
  27467. </p>
  27468. <p>It takes two inputs and has one output. The first input is the &quot;main&quot;
  27469. video on which the second input is overlaid.
  27470. </p>
  27471. <p>It accepts the following parameters:
  27472. </p>
  27473. <dl compact="compact">
  27474. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27475. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27476. <dd><p>Set the x and y coordinates of the overlaid video on the main video.
  27477. Default value is &quot;0&quot; for both expressions.
  27478. </p>
  27479. </dd>
  27480. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  27481. <dd><p>See <a href="#framesync">framesync</a>.
  27482. </p>
  27483. </dd>
  27484. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  27485. <dd><p>See <a href="#framesync">framesync</a>.
  27486. </p>
  27487. </dd>
  27488. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  27489. <dd><p>See <a href="#framesync">framesync</a>.
  27490. </p>
  27491. </dd>
  27492. </dl>
  27493. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  27494. </p>
  27495. <a name="owdenoise"></a>
  27496. <h2 class="section"><a href="ffprobe-all.html#toc-owdenoise">32.148 owdenoise</a></h2>
  27497. <p>Apply Overcomplete Wavelet denoiser.
  27498. </p>
  27499. <p>The filter accepts the following options:
  27500. </p>
  27501. <dl compact="compact">
  27502. <dt>&lsquo;<samp>depth</samp>&rsquo;</dt>
  27503. <dd><p>Set depth.
  27504. </p>
  27505. <p>Larger depth values will denoise lower frequency components more, but
  27506. slow down filtering.
  27507. </p>
  27508. <p>Must be an int in the range 8-16, default is <code>8</code>.
  27509. </p>
  27510. </dd>
  27511. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  27512. <dd><p>Set luma strength.
  27513. </p>
  27514. <p>Must be a double value in the range 0-1000, default is <code>1.0</code>.
  27515. </p>
  27516. </dd>
  27517. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  27518. <dd><p>Set chroma strength.
  27519. </p>
  27520. <p>Must be a double value in the range 0-1000, default is <code>1.0</code>.
  27521. </p></dd>
  27522. </dl>
  27523. <p><a name="pad"></a>
  27524. </p><a name="pad-1"></a>
  27525. <h2 class="section"><a href="ffprobe-all.html#toc-pad-1">32.149 pad</a></h2>
  27526. <p>Add paddings to the input image, and place the original input at the
  27527. provided <var>x</var>, <var>y</var> coordinates.
  27528. </p>
  27529. <p>It accepts the following parameters:
  27530. </p>
  27531. <dl compact="compact">
  27532. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  27533. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  27534. <dd><p>Specify an expression for the size of the output image with the
  27535. paddings added. If the value for <var>width</var> or <var>height</var> is 0, the
  27536. corresponding input size is used for the output.
  27537. </p>
  27538. <p>The <var>width</var> expression can reference the value set by the
  27539. <var>height</var> expression, and vice versa.
  27540. </p>
  27541. <p>The default value of <var>width</var> and <var>height</var> is 0.
  27542. </p>
  27543. </dd>
  27544. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27545. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27546. <dd><p>Specify the offsets to place the input image at within the padded area,
  27547. with respect to the top/left border of the output image.
  27548. </p>
  27549. <p>The <var>x</var> expression can reference the value set by the <var>y</var>
  27550. expression, and vice versa.
  27551. </p>
  27552. <p>The default value of <var>x</var> and <var>y</var> is 0.
  27553. </p>
  27554. <p>If <var>x</var> or <var>y</var> evaluate to a negative number, they&rsquo;ll be changed
  27555. so the input image is centered on the padded area.
  27556. </p>
  27557. </dd>
  27558. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  27559. <dd><p>Specify the color of the padded area. For the syntax of this option,
  27560. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  27561. </p>
  27562. <p>The default value of <var>color</var> is &quot;black&quot;.
  27563. </p>
  27564. </dd>
  27565. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  27566. <dd><p>Specify when to evaluate <var>width</var>, <var>height</var>, <var>x</var> and <var>y</var> expression.
  27567. </p>
  27568. <p>It accepts the following values:
  27569. </p>
  27570. <dl compact="compact">
  27571. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  27572. <dd><p>Only evaluate expressions once during the filter initialization or when
  27573. a command is processed.
  27574. </p>
  27575. </dd>
  27576. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  27577. <dd><p>Evaluate expressions for each incoming frame.
  27578. </p>
  27579. </dd>
  27580. </dl>
  27581. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  27582. </p>
  27583. </dd>
  27584. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  27585. <dd><p>Pad to aspect instead to a resolution.
  27586. </p>
  27587. </dd>
  27588. </dl>
  27589. <p>The value for the <var>width</var>, <var>height</var>, <var>x</var>, and <var>y</var>
  27590. options are expressions containing the following constants:
  27591. </p>
  27592. <dl compact="compact">
  27593. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  27594. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  27595. <dd><p>The input video width and height.
  27596. </p>
  27597. </dd>
  27598. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  27599. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  27600. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  27601. </p>
  27602. </dd>
  27603. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  27604. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  27605. <dd><p>The output width and height (the size of the padded area), as
  27606. specified by the <var>width</var> and <var>height</var> expressions.
  27607. </p>
  27608. </dd>
  27609. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  27610. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  27611. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  27612. </p>
  27613. </dd>
  27614. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27615. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27616. <dd><p>The x and y offsets as specified by the <var>x</var> and <var>y</var>
  27617. expressions, or NAN if not yet specified.
  27618. </p>
  27619. </dd>
  27620. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  27621. <dd><p>same as <var>iw</var> / <var>ih</var>
  27622. </p>
  27623. </dd>
  27624. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  27625. <dd><p>input sample aspect ratio
  27626. </p>
  27627. </dd>
  27628. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  27629. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  27630. </p>
  27631. </dd>
  27632. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  27633. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  27634. <dd><p>The horizontal and vertical chroma subsample values. For example for the
  27635. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  27636. </p></dd>
  27637. </dl>
  27638. <a name="Examples-56"></a>
  27639. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-56">32.149.1 Examples</a></h3>
  27640. <ul>
  27641. <li>
  27642. Add paddings with the color &quot;violet&quot; to the input video. The output video
  27643. size is 640x480, and the top-left corner of the input video is placed at
  27644. column 0, row 40
  27645. <div class="example">
  27646. <pre class="example">pad=640:480:0:40:violet
  27647. </pre></div>
  27648. <p>The example above is equivalent to the following command:
  27649. </p><div class="example">
  27650. <pre class="example">pad=width=640:height=480:x=0:y=40:color=violet
  27651. </pre></div>
  27652. </li><li>
  27653. Pad the input to get an output with dimensions increased by 3/2,
  27654. and put the input video at the center of the padded area:
  27655. <div class="example">
  27656. <pre class="example">pad=&quot;3/2*iw:3/2*ih:(ow-iw)/2:(oh-ih)/2&quot;
  27657. </pre></div>
  27658. </li><li>
  27659. Pad the input to get a squared output with size equal to the maximum
  27660. value between the input width and height, and put the input video at
  27661. the center of the padded area:
  27662. <div class="example">
  27663. <pre class="example">pad=&quot;max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2&quot;
  27664. </pre></div>
  27665. </li><li>
  27666. Pad the input to get a final w/h ratio of 16:9:
  27667. <div class="example">
  27668. <pre class="example">pad=&quot;ih*16/9:ih:(ow-iw)/2:(oh-ih)/2&quot;
  27669. </pre></div>
  27670. </li><li>
  27671. In case of anamorphic video, in order to set the output display aspect
  27672. correctly, it is necessary to use <var>sar</var> in the expression,
  27673. according to the relation:
  27674. <div class="example">
  27675. <pre class="example">(ih * X / ih) * sar = output_dar
  27676. X = output_dar / sar
  27677. </pre></div>
  27678. <p>Thus the previous example needs to be modified to:
  27679. </p><div class="example">
  27680. <pre class="example">pad=&quot;ih*16/9/sar:ih:(ow-iw)/2:(oh-ih)/2&quot;
  27681. </pre></div>
  27682. </li><li>
  27683. Double the output size and put the input video in the bottom-right
  27684. corner of the output padded area:
  27685. <div class="example">
  27686. <pre class="example">pad=&quot;2*iw:2*ih:ow-iw:oh-ih&quot;
  27687. </pre></div>
  27688. </li></ul>
  27689. <p><a name="palettegen"></a>
  27690. </p><a name="palettegen-1"></a>
  27691. <h2 class="section"><a href="ffprobe-all.html#toc-palettegen-1">32.150 palettegen</a></h2>
  27692. <p>Generate one palette for a whole video stream.
  27693. </p>
  27694. <p>It accepts the following options:
  27695. </p>
  27696. <dl compact="compact">
  27697. <dt>&lsquo;<samp>max_colors</samp>&rsquo;</dt>
  27698. <dd><p>Set the maximum number of colors to quantize in the palette.
  27699. Note: the palette will still contain 256 colors; the unused palette entries
  27700. will be black.
  27701. </p>
  27702. </dd>
  27703. <dt>&lsquo;<samp>reserve_transparent</samp>&rsquo;</dt>
  27704. <dd><p>Create a palette of 255 colors maximum and reserve the last one for
  27705. transparency. Reserving the transparency color is useful for GIF optimization.
  27706. If not set, the maximum of colors in the palette will be 256. You probably want
  27707. to disable this option for a standalone image.
  27708. Set by default.
  27709. </p>
  27710. </dd>
  27711. <dt>&lsquo;<samp>transparency_color</samp>&rsquo;</dt>
  27712. <dd><p>Set the color that will be used as background for transparency.
  27713. </p>
  27714. </dd>
  27715. <dt>&lsquo;<samp>stats_mode</samp>&rsquo;</dt>
  27716. <dd><p>Set statistics mode.
  27717. </p>
  27718. <p>It accepts the following values:
  27719. </p><dl compact="compact">
  27720. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  27721. <dd><p>Compute full frame histograms.
  27722. </p></dd>
  27723. <dt>&lsquo;<samp>diff</samp>&rsquo;</dt>
  27724. <dd><p>Compute histograms only for the part that differs from previous frame. This
  27725. might be relevant to give more importance to the moving part of your input if
  27726. the background is static.
  27727. </p></dd>
  27728. <dt>&lsquo;<samp>single</samp>&rsquo;</dt>
  27729. <dd><p>Compute new histogram for each frame.
  27730. </p></dd>
  27731. </dl>
  27732. <p>Default value is <var>full</var>.
  27733. </p></dd>
  27734. </dl>
  27735. <p>The filter also exports the frame metadata <code>lavfi.color_quant_ratio</code>
  27736. (<code>nb_color_in / nb_color_out</code>) which you can use to evaluate the degree of
  27737. color quantization of the palette. This information is also visible at
  27738. <var>info</var> logging level.
  27739. </p>
  27740. <a name="Examples-87"></a>
  27741. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-87">32.150.1 Examples</a></h3>
  27742. <ul>
  27743. <li>
  27744. Generate a representative palette of a given video using <code>ffmpeg</code>:
  27745. <div class="example">
  27746. <pre class="example">ffmpeg -i input.mkv -vf palettegen palette.png
  27747. </pre></div>
  27748. </li></ul>
  27749. <a name="paletteuse"></a>
  27750. <h2 class="section"><a href="ffprobe-all.html#toc-paletteuse">32.151 paletteuse</a></h2>
  27751. <p>Use a palette to downsample an input video stream.
  27752. </p>
  27753. <p>The filter takes two inputs: one video stream and a palette. The palette must
  27754. be a 256 pixels image.
  27755. </p>
  27756. <p>It accepts the following options:
  27757. </p>
  27758. <dl compact="compact">
  27759. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  27760. <dd><p>Select dithering mode. Available algorithms are:
  27761. </p><dl compact="compact">
  27762. <dt>&lsquo;<samp>bayer</samp>&rsquo;</dt>
  27763. <dd><p>Ordered 8x8 bayer dithering (deterministic)
  27764. </p></dd>
  27765. <dt>&lsquo;<samp>heckbert</samp>&rsquo;</dt>
  27766. <dd><p>Dithering as defined by Paul Heckbert in 1982 (simple error diffusion).
  27767. Note: this dithering is sometimes considered &quot;wrong&quot; and is included as a
  27768. reference.
  27769. </p></dd>
  27770. <dt>&lsquo;<samp>floyd_steinberg</samp>&rsquo;</dt>
  27771. <dd><p>Floyd and Steingberg dithering (error diffusion)
  27772. </p></dd>
  27773. <dt>&lsquo;<samp>sierra2</samp>&rsquo;</dt>
  27774. <dd><p>Frankie Sierra dithering v2 (error diffusion)
  27775. </p></dd>
  27776. <dt>&lsquo;<samp>sierra2_4a</samp>&rsquo;</dt>
  27777. <dd><p>Frankie Sierra dithering v2 &quot;Lite&quot; (error diffusion)
  27778. </p></dd>
  27779. </dl>
  27780. <p>Default is <var>sierra2_4a</var>.
  27781. </p>
  27782. </dd>
  27783. <dt>&lsquo;<samp>bayer_scale</samp>&rsquo;</dt>
  27784. <dd><p>When <var>bayer</var> dithering is selected, this option defines the scale of the
  27785. pattern (how much the crosshatch pattern is visible). A low value means more
  27786. visible pattern for less banding, and higher value means less visible pattern
  27787. at the cost of more banding.
  27788. </p>
  27789. <p>The option must be an integer value in the range [0,5]. Default is <var>2</var>.
  27790. </p>
  27791. </dd>
  27792. <dt>&lsquo;<samp>diff_mode</samp>&rsquo;</dt>
  27793. <dd><p>If set, define the zone to process
  27794. </p>
  27795. <dl compact="compact">
  27796. <dt>&lsquo;<samp>rectangle</samp>&rsquo;</dt>
  27797. <dd><p>Only the changing rectangle will be reprocessed. This is similar to GIF
  27798. cropping/offsetting compression mechanism. This option can be useful for speed
  27799. if only a part of the image is changing, and has use cases such as limiting the
  27800. scope of the error diffusal &lsquo;<samp>dither</samp>&rsquo; to the rectangle that bounds the
  27801. moving scene (it leads to more deterministic output if the scene doesn&rsquo;t change
  27802. much, and as a result less moving noise and better GIF compression).
  27803. </p></dd>
  27804. </dl>
  27805. <p>Default is <var>none</var>.
  27806. </p>
  27807. </dd>
  27808. <dt>&lsquo;<samp>new</samp>&rsquo;</dt>
  27809. <dd><p>Take new palette for each output frame.
  27810. </p>
  27811. </dd>
  27812. <dt>&lsquo;<samp>alpha_threshold</samp>&rsquo;</dt>
  27813. <dd><p>Sets the alpha threshold for transparency. Alpha values above this threshold
  27814. will be treated as completely opaque, and values below this threshold will be
  27815. treated as completely transparent.
  27816. </p>
  27817. <p>The option must be an integer value in the range [0,255]. Default is <var>128</var>.
  27818. </p></dd>
  27819. </dl>
  27820. <a name="Examples-67"></a>
  27821. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-67">32.151.1 Examples</a></h3>
  27822. <ul>
  27823. <li>
  27824. Use a palette (generated for example with <a href="#palettegen">palettegen</a>) to encode a GIF
  27825. using <code>ffmpeg</code>:
  27826. <div class="example">
  27827. <pre class="example">ffmpeg -i input.mkv -i palette.png -lavfi paletteuse output.gif
  27828. </pre></div>
  27829. </li></ul>
  27830. <a name="perspective"></a>
  27831. <h2 class="section"><a href="ffprobe-all.html#toc-perspective">32.152 perspective</a></h2>
  27832. <p>Correct perspective of video not recorded perpendicular to the screen.
  27833. </p>
  27834. <p>A description of the accepted parameters follows.
  27835. </p>
  27836. <dl compact="compact">
  27837. <dt>&lsquo;<samp>x0</samp>&rsquo;</dt>
  27838. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  27839. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  27840. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  27841. <dt>&lsquo;<samp>x2</samp>&rsquo;</dt>
  27842. <dt>&lsquo;<samp>y2</samp>&rsquo;</dt>
  27843. <dt>&lsquo;<samp>x3</samp>&rsquo;</dt>
  27844. <dt>&lsquo;<samp>y3</samp>&rsquo;</dt>
  27845. <dd><p>Set coordinates expression for top left, top right, bottom left and bottom right corners.
  27846. Default values are <code>0:0:W:0:0:H:W:H</code> with which perspective will remain unchanged.
  27847. If the <code>sense</code> option is set to <code>source</code>, then the specified points will be sent
  27848. to the corners of the destination. If the <code>sense</code> option is set to <code>destination</code>,
  27849. then the corners of the source will be sent to the specified coordinates.
  27850. </p>
  27851. <p>The expressions can use the following variables:
  27852. </p>
  27853. <dl compact="compact">
  27854. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  27855. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  27856. <dd><p>the width and height of video frame.
  27857. </p></dd>
  27858. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  27859. <dd><p>Input frame count.
  27860. </p></dd>
  27861. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  27862. <dd><p>Output frame count.
  27863. </p></dd>
  27864. </dl>
  27865. </dd>
  27866. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  27867. <dd><p>Set interpolation for perspective correction.
  27868. </p>
  27869. <p>It accepts the following values:
  27870. </p><dl compact="compact">
  27871. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  27872. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  27873. </dl>
  27874. <p>Default value is &lsquo;<samp>linear</samp>&rsquo;.
  27875. </p>
  27876. </dd>
  27877. <dt>&lsquo;<samp>sense</samp>&rsquo;</dt>
  27878. <dd><p>Set interpretation of coordinate options.
  27879. </p>
  27880. <p>It accepts the following values:
  27881. </p><dl compact="compact">
  27882. <dt>&lsquo;<samp>0, source</samp>&rsquo;</dt>
  27883. <dd>
  27884. <p>Send point in the source specified by the given coordinates to
  27885. the corners of the destination.
  27886. </p>
  27887. </dd>
  27888. <dt>&lsquo;<samp>1, destination</samp>&rsquo;</dt>
  27889. <dd>
  27890. <p>Send the corners of the source to the point in the destination specified
  27891. by the given coordinates.
  27892. </p>
  27893. <p>Default value is &lsquo;<samp>source</samp>&rsquo;.
  27894. </p></dd>
  27895. </dl>
  27896. </dd>
  27897. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  27898. <dd><p>Set when the expressions for coordinates &lsquo;<samp>x0,y0,...x3,y3</samp>&rsquo; are evaluated.
  27899. </p>
  27900. <p>It accepts the following values:
  27901. </p><dl compact="compact">
  27902. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  27903. <dd><p>only evaluate expressions once during the filter initialization or
  27904. when a command is processed
  27905. </p>
  27906. </dd>
  27907. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  27908. <dd><p>evaluate expressions for each incoming frame
  27909. </p></dd>
  27910. </dl>
  27911. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  27912. </p></dd>
  27913. </dl>
  27914. <a name="phase"></a>
  27915. <h2 class="section"><a href="ffprobe-all.html#toc-phase">32.153 phase</a></h2>
  27916. <p>Delay interlaced video by one field time so that the field order changes.
  27917. </p>
  27918. <p>The intended use is to fix PAL movies that have been captured with the
  27919. opposite field order to the film-to-video transfer.
  27920. </p>
  27921. <p>A description of the accepted parameters follows.
  27922. </p>
  27923. <dl compact="compact">
  27924. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  27925. <dd><p>Set phase mode.
  27926. </p>
  27927. <p>It accepts the following values:
  27928. </p><dl compact="compact">
  27929. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  27930. <dd><p>Capture field order top-first, transfer bottom-first.
  27931. Filter will delay the bottom field.
  27932. </p>
  27933. </dd>
  27934. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  27935. <dd><p>Capture field order bottom-first, transfer top-first.
  27936. Filter will delay the top field.
  27937. </p>
  27938. </dd>
  27939. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  27940. <dd><p>Capture and transfer with the same field order. This mode only exists
  27941. for the documentation of the other options to refer to, but if you
  27942. actually select it, the filter will faithfully do nothing.
  27943. </p>
  27944. </dd>
  27945. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  27946. <dd><p>Capture field order determined automatically by field flags, transfer
  27947. opposite.
  27948. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>b</samp>&rsquo; modes on a frame by frame
  27949. basis using field flags. If no field information is available,
  27950. then this works just like &lsquo;<samp>u</samp>&rsquo;.
  27951. </p>
  27952. </dd>
  27953. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  27954. <dd><p>Capture unknown or varying, transfer opposite.
  27955. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>b</samp>&rsquo; on a frame by frame basis by
  27956. analyzing the images and selecting the alternative that produces best
  27957. match between the fields.
  27958. </p>
  27959. </dd>
  27960. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  27961. <dd><p>Capture top-first, transfer unknown or varying.
  27962. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis.
  27963. </p>
  27964. </dd>
  27965. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  27966. <dd><p>Capture bottom-first, transfer unknown or varying.
  27967. Filter selects among &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis.
  27968. </p>
  27969. </dd>
  27970. <dt>&lsquo;<samp>A</samp>&rsquo;</dt>
  27971. <dd><p>Capture determined by field flags, transfer unknown or varying.
  27972. Filter selects among &lsquo;<samp>t</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using field flags and
  27973. image analysis. If no field information is available, then this works just
  27974. like &lsquo;<samp>U</samp>&rsquo;. This is the default mode.
  27975. </p>
  27976. </dd>
  27977. <dt>&lsquo;<samp>U</samp>&rsquo;</dt>
  27978. <dd><p>Both capture and transfer unknown or varying.
  27979. Filter selects among &lsquo;<samp>t</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis only.
  27980. </p></dd>
  27981. </dl>
  27982. </dd>
  27983. </dl>
  27984. <a name="photosensitivity"></a>
  27985. <h2 class="section"><a href="ffprobe-all.html#toc-photosensitivity">32.154 photosensitivity</a></h2>
  27986. <p>Reduce various flashes in video, so to help users with epilepsy.
  27987. </p>
  27988. <p>It accepts the following options:
  27989. </p><dl compact="compact">
  27990. <dt>&lsquo;<samp>frames, f</samp>&rsquo;</dt>
  27991. <dd><p>Set how many frames to use when filtering. Default is 30.
  27992. </p>
  27993. </dd>
  27994. <dt>&lsquo;<samp>threshold, t</samp>&rsquo;</dt>
  27995. <dd><p>Set detection threshold factor. Default is 1.
  27996. Lower is stricter.
  27997. </p>
  27998. </dd>
  27999. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  28000. <dd><p>Set how many pixels to skip when sampling frames. Default is 1.
  28001. Allowed range is from 1 to 1024.
  28002. </p>
  28003. </dd>
  28004. <dt>&lsquo;<samp>bypass</samp>&rsquo;</dt>
  28005. <dd><p>Leave frames unchanged. Default is disabled.
  28006. </p></dd>
  28007. </dl>
  28008. <a name="pixdesctest"></a>
  28009. <h2 class="section"><a href="ffprobe-all.html#toc-pixdesctest">32.155 pixdesctest</a></h2>
  28010. <p>Pixel format descriptor test filter, mainly useful for internal
  28011. testing. The output video should be equal to the input video.
  28012. </p>
  28013. <p>For example:
  28014. </p><div class="example">
  28015. <pre class="example">format=monow, pixdesctest
  28016. </pre></div>
  28017. <p>can be used to test the monowhite pixel format descriptor definition.
  28018. </p>
  28019. <a name="pixscope"></a>
  28020. <h2 class="section"><a href="ffprobe-all.html#toc-pixscope">32.156 pixscope</a></h2>
  28021. <p>Display sample values of color channels. Mainly useful for checking color
  28022. and levels. Minimum supported resolution is 640x480.
  28023. </p>
  28024. <p>The filters accept the following options:
  28025. </p>
  28026. <dl compact="compact">
  28027. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  28028. <dd><p>Set scope X position, relative offset on X axis.
  28029. </p>
  28030. </dd>
  28031. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  28032. <dd><p>Set scope Y position, relative offset on Y axis.
  28033. </p>
  28034. </dd>
  28035. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  28036. <dd><p>Set scope width.
  28037. </p>
  28038. </dd>
  28039. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  28040. <dd><p>Set scope height.
  28041. </p>
  28042. </dd>
  28043. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  28044. <dd><p>Set window opacity. This window also holds statistics about pixel area.
  28045. </p>
  28046. </dd>
  28047. <dt>&lsquo;<samp>wx</samp>&rsquo;</dt>
  28048. <dd><p>Set window X position, relative offset on X axis.
  28049. </p>
  28050. </dd>
  28051. <dt>&lsquo;<samp>wy</samp>&rsquo;</dt>
  28052. <dd><p>Set window Y position, relative offset on Y axis.
  28053. </p></dd>
  28054. </dl>
  28055. <a name="pp"></a>
  28056. <h2 class="section"><a href="ffprobe-all.html#toc-pp">32.157 pp</a></h2>
  28057. <p>Enable the specified chain of postprocessing subfilters using libpostproc. This
  28058. library should be automatically selected with a GPL build (<code>--enable-gpl</code>).
  28059. Subfilters must be separated by &rsquo;/&rsquo; and can be disabled by prepending a &rsquo;-&rsquo;.
  28060. Each subfilter and some options have a short and a long name that can be used
  28061. interchangeably, i.e. dr/dering are the same.
  28062. </p>
  28063. <p>The filters accept the following options:
  28064. </p>
  28065. <dl compact="compact">
  28066. <dt>&lsquo;<samp>subfilters</samp>&rsquo;</dt>
  28067. <dd><p>Set postprocessing subfilters string.
  28068. </p></dd>
  28069. </dl>
  28070. <p>All subfilters share common options to determine their scope:
  28071. </p>
  28072. <dl compact="compact">
  28073. <dt>&lsquo;<samp>a/autoq</samp>&rsquo;</dt>
  28074. <dd><p>Honor the quality commands for this subfilter.
  28075. </p>
  28076. </dd>
  28077. <dt>&lsquo;<samp>c/chrom</samp>&rsquo;</dt>
  28078. <dd><p>Do chrominance filtering, too (default).
  28079. </p>
  28080. </dd>
  28081. <dt>&lsquo;<samp>y/nochrom</samp>&rsquo;</dt>
  28082. <dd><p>Do luminance filtering only (no chrominance).
  28083. </p>
  28084. </dd>
  28085. <dt>&lsquo;<samp>n/noluma</samp>&rsquo;</dt>
  28086. <dd><p>Do chrominance filtering only (no luminance).
  28087. </p></dd>
  28088. </dl>
  28089. <p>These options can be appended after the subfilter name, separated by a &rsquo;|&rsquo;.
  28090. </p>
  28091. <p>Available subfilters are:
  28092. </p>
  28093. <dl compact="compact">
  28094. <dt>&lsquo;<samp>hb/hdeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  28095. <dd><p>Horizontal deblocking filter
  28096. </p><dl compact="compact">
  28097. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  28098. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  28099. </p></dd>
  28100. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  28101. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  28102. </p></dd>
  28103. </dl>
  28104. </dd>
  28105. <dt>&lsquo;<samp>vb/vdeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  28106. <dd><p>Vertical deblocking filter
  28107. </p><dl compact="compact">
  28108. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  28109. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  28110. </p></dd>
  28111. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  28112. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  28113. </p></dd>
  28114. </dl>
  28115. </dd>
  28116. <dt>&lsquo;<samp>ha/hadeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  28117. <dd><p>Accurate horizontal deblocking filter
  28118. </p><dl compact="compact">
  28119. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  28120. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  28121. </p></dd>
  28122. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  28123. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  28124. </p></dd>
  28125. </dl>
  28126. </dd>
  28127. <dt>&lsquo;<samp>va/vadeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  28128. <dd><p>Accurate vertical deblocking filter
  28129. </p><dl compact="compact">
  28130. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  28131. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  28132. </p></dd>
  28133. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  28134. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  28135. </p></dd>
  28136. </dl>
  28137. </dd>
  28138. </dl>
  28139. <p>The horizontal and vertical deblocking filters share the difference and
  28140. flatness values so you cannot set different horizontal and vertical
  28141. thresholds.
  28142. </p>
  28143. <dl compact="compact">
  28144. <dt>&lsquo;<samp>h1/x1hdeblock</samp>&rsquo;</dt>
  28145. <dd><p>Experimental horizontal deblocking filter
  28146. </p>
  28147. </dd>
  28148. <dt>&lsquo;<samp>v1/x1vdeblock</samp>&rsquo;</dt>
  28149. <dd><p>Experimental vertical deblocking filter
  28150. </p>
  28151. </dd>
  28152. <dt>&lsquo;<samp>dr/dering</samp>&rsquo;</dt>
  28153. <dd><p>Deringing filter
  28154. </p>
  28155. </dd>
  28156. <dt>&lsquo;<samp>tn/tmpnoise[|threshold1[|threshold2[|threshold3]]], temporal noise reducer</samp>&rsquo;</dt>
  28157. <dd><dl compact="compact">
  28158. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  28159. <dd><p>larger -&gt; stronger filtering
  28160. </p></dd>
  28161. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  28162. <dd><p>larger -&gt; stronger filtering
  28163. </p></dd>
  28164. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  28165. <dd><p>larger -&gt; stronger filtering
  28166. </p></dd>
  28167. </dl>
  28168. </dd>
  28169. <dt>&lsquo;<samp>al/autolevels[:f/fullyrange], automatic brightness / contrast correction</samp>&rsquo;</dt>
  28170. <dd><dl compact="compact">
  28171. <dt>&lsquo;<samp>f/fullyrange</samp>&rsquo;</dt>
  28172. <dd><p>Stretch luminance to <code>0-255</code>.
  28173. </p></dd>
  28174. </dl>
  28175. </dd>
  28176. <dt>&lsquo;<samp>lb/linblenddeint</samp>&rsquo;</dt>
  28177. <dd><p>Linear blend deinterlacing filter that deinterlaces the given block by
  28178. filtering all lines with a <code>(1 2 1)</code> filter.
  28179. </p>
  28180. </dd>
  28181. <dt>&lsquo;<samp>li/linipoldeint</samp>&rsquo;</dt>
  28182. <dd><p>Linear interpolating deinterlacing filter that deinterlaces the given block by
  28183. linearly interpolating every second line.
  28184. </p>
  28185. </dd>
  28186. <dt>&lsquo;<samp>ci/cubicipoldeint</samp>&rsquo;</dt>
  28187. <dd><p>Cubic interpolating deinterlacing filter deinterlaces the given block by
  28188. cubically interpolating every second line.
  28189. </p>
  28190. </dd>
  28191. <dt>&lsquo;<samp>md/mediandeint</samp>&rsquo;</dt>
  28192. <dd><p>Median deinterlacing filter that deinterlaces the given block by applying a
  28193. median filter to every second line.
  28194. </p>
  28195. </dd>
  28196. <dt>&lsquo;<samp>fd/ffmpegdeint</samp>&rsquo;</dt>
  28197. <dd><p>FFmpeg deinterlacing filter that deinterlaces the given block by filtering every
  28198. second line with a <code>(-1 4 2 4 -1)</code> filter.
  28199. </p>
  28200. </dd>
  28201. <dt>&lsquo;<samp>l5/lowpass5</samp>&rsquo;</dt>
  28202. <dd><p>Vertically applied FIR lowpass deinterlacing filter that deinterlaces the given
  28203. block by filtering all lines with a <code>(-1 2 6 2 -1)</code> filter.
  28204. </p>
  28205. </dd>
  28206. <dt>&lsquo;<samp>fq/forceQuant[|quantizer]</samp>&rsquo;</dt>
  28207. <dd><p>Overrides the quantizer table from the input with the constant quantizer you
  28208. specify.
  28209. </p><dl compact="compact">
  28210. <dt>&lsquo;<samp>quantizer</samp>&rsquo;</dt>
  28211. <dd><p>Quantizer to use
  28212. </p></dd>
  28213. </dl>
  28214. </dd>
  28215. <dt>&lsquo;<samp>de/default</samp>&rsquo;</dt>
  28216. <dd><p>Default pp filter combination (<code>hb|a,vb|a,dr|a</code>)
  28217. </p>
  28218. </dd>
  28219. <dt>&lsquo;<samp>fa/fast</samp>&rsquo;</dt>
  28220. <dd><p>Fast pp filter combination (<code>h1|a,v1|a,dr|a</code>)
  28221. </p>
  28222. </dd>
  28223. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  28224. <dd><p>High quality pp filter combination (<code>ha|a|128|7,va|a,dr|a</code>)
  28225. </p></dd>
  28226. </dl>
  28227. <a name="Examples-137"></a>
  28228. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-137">32.157.1 Examples</a></h3>
  28229. <ul>
  28230. <li>
  28231. Apply horizontal and vertical deblocking, deringing and automatic
  28232. brightness/contrast:
  28233. <div class="example">
  28234. <pre class="example">pp=hb/vb/dr/al
  28235. </pre></div>
  28236. </li><li>
  28237. Apply default filters without brightness/contrast correction:
  28238. <div class="example">
  28239. <pre class="example">pp=de/-al
  28240. </pre></div>
  28241. </li><li>
  28242. Apply default filters and temporal denoiser:
  28243. <div class="example">
  28244. <pre class="example">pp=default/tmpnoise|1|2|3
  28245. </pre></div>
  28246. </li><li>
  28247. Apply deblocking on luminance only, and switch vertical deblocking on or off
  28248. automatically depending on available CPU time:
  28249. <div class="example">
  28250. <pre class="example">pp=hb|y/vb|a
  28251. </pre></div>
  28252. </li></ul>
  28253. <a name="pp7"></a>
  28254. <h2 class="section"><a href="ffprobe-all.html#toc-pp7">32.158 pp7</a></h2>
  28255. <p>Apply Postprocessing filter 7. It is variant of the <a href="#spp">spp</a> filter,
  28256. similar to spp = 6 with 7 point DCT, where only the center sample is
  28257. used after IDCT.
  28258. </p>
  28259. <p>The filter accepts the following options:
  28260. </p>
  28261. <dl compact="compact">
  28262. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  28263. <dd><p>Force a constant quantization parameter. It accepts an integer in range
  28264. 0 to 63. If not set, the filter will use the QP from the video stream
  28265. (if available).
  28266. </p>
  28267. </dd>
  28268. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  28269. <dd><p>Set thresholding mode. Available modes are:
  28270. </p>
  28271. <dl compact="compact">
  28272. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  28273. <dd><p>Set hard thresholding.
  28274. </p></dd>
  28275. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  28276. <dd><p>Set soft thresholding (better de-ringing effect, but likely blurrier).
  28277. </p></dd>
  28278. <dt>&lsquo;<samp>medium</samp>&rsquo;</dt>
  28279. <dd><p>Set medium thresholding (good results, default).
  28280. </p></dd>
  28281. </dl>
  28282. </dd>
  28283. </dl>
  28284. <a name="premultiply"></a>
  28285. <h2 class="section"><a href="ffprobe-all.html#toc-premultiply">32.159 premultiply</a></h2>
  28286. <p>Apply alpha premultiply effect to input video stream using first plane
  28287. of second stream as alpha.
  28288. </p>
  28289. <p>Both streams must have same dimensions and same pixel format.
  28290. </p>
  28291. <p>The filter accepts the following option:
  28292. </p>
  28293. <dl compact="compact">
  28294. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  28295. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  28296. By default value 0xf, all planes will be processed.
  28297. </p>
  28298. </dd>
  28299. <dt>&lsquo;<samp>inplace</samp>&rsquo;</dt>
  28300. <dd><p>Do not require 2nd input for processing, instead use alpha plane from input stream.
  28301. </p></dd>
  28302. </dl>
  28303. <a name="prewitt"></a>
  28304. <h2 class="section"><a href="ffprobe-all.html#toc-prewitt">32.160 prewitt</a></h2>
  28305. <p>Apply prewitt operator to input video stream.
  28306. </p>
  28307. <p>The filter accepts the following option:
  28308. </p>
  28309. <dl compact="compact">
  28310. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  28311. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  28312. By default value 0xf, all planes will be processed.
  28313. </p>
  28314. </dd>
  28315. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  28316. <dd><p>Set value which will be multiplied with filtered result.
  28317. </p>
  28318. </dd>
  28319. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  28320. <dd><p>Set value which will be added to filtered result.
  28321. </p></dd>
  28322. </dl>
  28323. <a name="pseudocolor"></a>
  28324. <h2 class="section"><a href="ffprobe-all.html#toc-pseudocolor">32.161 pseudocolor</a></h2>
  28325. <p>Alter frame colors in video with pseudocolors.
  28326. </p>
  28327. <p>This filter accepts the following options:
  28328. </p>
  28329. <dl compact="compact">
  28330. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  28331. <dd><p>set pixel first component expression
  28332. </p>
  28333. </dd>
  28334. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  28335. <dd><p>set pixel second component expression
  28336. </p>
  28337. </dd>
  28338. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  28339. <dd><p>set pixel third component expression
  28340. </p>
  28341. </dd>
  28342. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  28343. <dd><p>set pixel fourth component expression, corresponds to the alpha component
  28344. </p>
  28345. </dd>
  28346. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  28347. <dd><p>set component to use as base for altering colors
  28348. </p></dd>
  28349. </dl>
  28350. <p>Each of them specifies the expression to use for computing the lookup table for
  28351. the corresponding pixel component values.
  28352. </p>
  28353. <p>The expressions can contain the following constants and functions:
  28354. </p>
  28355. <dl compact="compact">
  28356. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  28357. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  28358. <dd><p>The input width and height.
  28359. </p>
  28360. </dd>
  28361. <dt>&lsquo;<samp>val</samp>&rsquo;</dt>
  28362. <dd><p>The input value for the pixel component.
  28363. </p>
  28364. </dd>
  28365. <dt>&lsquo;<samp>ymin, umin, vmin, amin</samp>&rsquo;</dt>
  28366. <dd><p>The minimum allowed component value.
  28367. </p>
  28368. </dd>
  28369. <dt>&lsquo;<samp>ymax, umax, vmax, amax</samp>&rsquo;</dt>
  28370. <dd><p>The maximum allowed component value.
  28371. </p></dd>
  28372. </dl>
  28373. <p>All expressions default to &quot;val&quot;.
  28374. </p>
  28375. <a name="Examples-92"></a>
  28376. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-92">32.161.1 Examples</a></h3>
  28377. <ul>
  28378. <li>
  28379. Change too high luma values to gradient:
  28380. <div class="example">
  28381. <pre class="example">pseudocolor=&quot;'if(between(val,ymax,amax),lerp(ymin,ymax,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(umax,umin,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(vmin,vmax,(val-ymax)/(amax-ymax)),-1):-1'&quot;
  28382. </pre></div>
  28383. </li></ul>
  28384. <a name="psnr"></a>
  28385. <h2 class="section"><a href="ffprobe-all.html#toc-psnr">32.162 psnr</a></h2>
  28386. <p>Obtain the average, maximum and minimum PSNR (Peak Signal to Noise
  28387. Ratio) between two input videos.
  28388. </p>
  28389. <p>This filter takes in input two input videos, the first input is
  28390. considered the &quot;main&quot; source and is passed unchanged to the
  28391. output. The second input is used as a &quot;reference&quot; video for computing
  28392. the PSNR.
  28393. </p>
  28394. <p>Both video inputs must have the same resolution and pixel format for
  28395. this filter to work correctly. Also it assumes that both inputs
  28396. have the same number of frames, which are compared one by one.
  28397. </p>
  28398. <p>The obtained average PSNR is printed through the logging system.
  28399. </p>
  28400. <p>The filter stores the accumulated MSE (mean squared error) of each
  28401. frame, and at the end of the processing it is averaged across all frames
  28402. equally, and the following formula is applied to obtain the PSNR:
  28403. </p>
  28404. <div class="example">
  28405. <pre class="example">PSNR = 10*log10(MAX^2/MSE)
  28406. </pre></div>
  28407. <p>Where MAX is the average of the maximum values of each component of the
  28408. image.
  28409. </p>
  28410. <p>The description of the accepted parameters follows.
  28411. </p>
  28412. <dl compact="compact">
  28413. <dt>&lsquo;<samp>stats_file, f</samp>&rsquo;</dt>
  28414. <dd><p>If specified the filter will use the named file to save the PSNR of
  28415. each individual frame. When filename equals &quot;-&quot; the data is sent to
  28416. standard output.
  28417. </p>
  28418. </dd>
  28419. <dt>&lsquo;<samp>stats_version</samp>&rsquo;</dt>
  28420. <dd><p>Specifies which version of the stats file format to use. Details of
  28421. each format are written below.
  28422. Default value is 1.
  28423. </p>
  28424. </dd>
  28425. <dt>&lsquo;<samp>stats_add_max</samp>&rsquo;</dt>
  28426. <dd><p>Determines whether the max value is output to the stats log.
  28427. Default value is 0.
  28428. Requires stats_version &gt;= 2. If this is set and stats_version &lt; 2,
  28429. the filter will return an error.
  28430. </p></dd>
  28431. </dl>
  28432. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  28433. </p>
  28434. <p>The file printed if <var>stats_file</var> is selected, contains a sequence of
  28435. key/value pairs of the form <var>key</var>:<var>value</var> for each compared
  28436. couple of frames.
  28437. </p>
  28438. <p>If a <var>stats_version</var> greater than 1 is specified, a header line precedes
  28439. the list of per-frame-pair stats, with key value pairs following the frame
  28440. format with the following parameters:
  28441. </p>
  28442. <dl compact="compact">
  28443. <dt>&lsquo;<samp>psnr_log_version</samp>&rsquo;</dt>
  28444. <dd><p>The version of the log file format. Will match <var>stats_version</var>.
  28445. </p>
  28446. </dd>
  28447. <dt>&lsquo;<samp>fields</samp>&rsquo;</dt>
  28448. <dd><p>A comma separated list of the per-frame-pair parameters included in
  28449. the log.
  28450. </p></dd>
  28451. </dl>
  28452. <p>A description of each shown per-frame-pair parameter follows:
  28453. </p>
  28454. <dl compact="compact">
  28455. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  28456. <dd><p>sequential number of the input frame, starting from 1
  28457. </p>
  28458. </dd>
  28459. <dt>&lsquo;<samp>mse_avg</samp>&rsquo;</dt>
  28460. <dd><p>Mean Square Error pixel-by-pixel average difference of the compared
  28461. frames, averaged over all the image components.
  28462. </p>
  28463. </dd>
  28464. <dt>&lsquo;<samp>mse_y, mse_u, mse_v, mse_r, mse_g, mse_b, mse_a</samp>&rsquo;</dt>
  28465. <dd><p>Mean Square Error pixel-by-pixel average difference of the compared
  28466. frames for the component specified by the suffix.
  28467. </p>
  28468. </dd>
  28469. <dt>&lsquo;<samp>psnr_y, psnr_u, psnr_v, psnr_r, psnr_g, psnr_b, psnr_a</samp>&rsquo;</dt>
  28470. <dd><p>Peak Signal to Noise ratio of the compared frames for the component
  28471. specified by the suffix.
  28472. </p>
  28473. </dd>
  28474. <dt>&lsquo;<samp>max_avg, max_y, max_u, max_v</samp>&rsquo;</dt>
  28475. <dd><p>Maximum allowed value for each channel, and average over all
  28476. channels.
  28477. </p></dd>
  28478. </dl>
  28479. <a name="Examples-49"></a>
  28480. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-49">32.162.1 Examples</a></h3>
  28481. <ul>
  28482. <li>
  28483. For example:
  28484. <div class="example">
  28485. <pre class="example">movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
  28486. [main][ref] psnr=&quot;stats_file=stats.log&quot; [out]
  28487. </pre></div>
  28488. <p>On this example the input file being processed is compared with the
  28489. reference file &lsquo;<tt>ref_movie.mpg</tt>&rsquo;. The PSNR of each individual frame
  28490. is stored in &lsquo;<tt>stats.log</tt>&rsquo;.
  28491. </p>
  28492. </li><li>
  28493. Another example with different containers:
  28494. <div class="example">
  28495. <pre class="example">ffmpeg -i main.mpg -i ref.mkv -lavfi &quot;[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]psnr&quot; -f null -
  28496. </pre></div>
  28497. </li></ul>
  28498. <p><a name="pullup"></a>
  28499. </p><a name="pullup-1"></a>
  28500. <h2 class="section"><a href="ffprobe-all.html#toc-pullup-1">32.163 pullup</a></h2>
  28501. <p>Pulldown reversal (inverse telecine) filter, capable of handling mixed
  28502. hard-telecine, 24000/1001 fps progressive, and 30000/1001 fps progressive
  28503. content.
  28504. </p>
  28505. <p>The pullup filter is designed to take advantage of future context in making
  28506. its decisions. This filter is stateless in the sense that it does not lock
  28507. onto a pattern to follow, but it instead looks forward to the following
  28508. fields in order to identify matches and rebuild progressive frames.
  28509. </p>
  28510. <p>To produce content with an even framerate, insert the fps filter after
  28511. pullup, use <code>fps=24000/1001</code> if the input frame rate is 29.97fps,
  28512. <code>fps=24</code> for 30fps and the (rare) telecined 25fps input.
  28513. </p>
  28514. <p>The filter accepts the following options:
  28515. </p>
  28516. <dl compact="compact">
  28517. <dt>&lsquo;<samp>jl</samp>&rsquo;</dt>
  28518. <dt>&lsquo;<samp>jr</samp>&rsquo;</dt>
  28519. <dt>&lsquo;<samp>jt</samp>&rsquo;</dt>
  28520. <dt>&lsquo;<samp>jb</samp>&rsquo;</dt>
  28521. <dd><p>These options set the amount of &quot;junk&quot; to ignore at the left, right, top, and
  28522. bottom of the image, respectively. Left and right are in units of 8 pixels,
  28523. while top and bottom are in units of 2 lines.
  28524. The default is 8 pixels on each side.
  28525. </p>
  28526. </dd>
  28527. <dt>&lsquo;<samp>sb</samp>&rsquo;</dt>
  28528. <dd><p>Set the strict breaks. Setting this option to 1 will reduce the chances of
  28529. filter generating an occasional mismatched frame, but it may also cause an
  28530. excessive number of frames to be dropped during high motion sequences.
  28531. Conversely, setting it to -1 will make filter match fields more easily.
  28532. This may help processing of video where there is slight blurring between
  28533. the fields, but may also cause there to be interlaced frames in the output.
  28534. Default value is <code>0</code>.
  28535. </p>
  28536. </dd>
  28537. <dt>&lsquo;<samp>mp</samp>&rsquo;</dt>
  28538. <dd><p>Set the metric plane to use. It accepts the following values:
  28539. </p><dl compact="compact">
  28540. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  28541. <dd><p>Use luma plane.
  28542. </p>
  28543. </dd>
  28544. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  28545. <dd><p>Use chroma blue plane.
  28546. </p>
  28547. </dd>
  28548. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  28549. <dd><p>Use chroma red plane.
  28550. </p></dd>
  28551. </dl>
  28552. <p>This option may be set to use chroma plane instead of the default luma plane
  28553. for doing filter&rsquo;s computations. This may improve accuracy on very clean
  28554. source material, but more likely will decrease accuracy, especially if there
  28555. is chroma noise (rainbow effect) or any grayscale video.
  28556. The main purpose of setting &lsquo;<samp>mp</samp>&rsquo; to a chroma plane is to reduce CPU
  28557. load and make pullup usable in realtime on slow machines.
  28558. </p></dd>
  28559. </dl>
  28560. <p>For best results (without duplicated frames in the output file) it is
  28561. necessary to change the output frame rate. For example, to inverse
  28562. telecine NTSC input:
  28563. </p><div class="example">
  28564. <pre class="example">ffmpeg -i input -vf pullup -r 24000/1001 ...
  28565. </pre></div>
  28566. <a name="qp"></a>
  28567. <h2 class="section"><a href="ffprobe-all.html#toc-qp">32.164 qp</a></h2>
  28568. <p>Change video quantization parameters (QP).
  28569. </p>
  28570. <p>The filter accepts the following option:
  28571. </p>
  28572. <dl compact="compact">
  28573. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  28574. <dd><p>Set expression for quantization parameter.
  28575. </p></dd>
  28576. </dl>
  28577. <p>The expression is evaluated through the eval API and can contain, among others,
  28578. the following constants:
  28579. </p>
  28580. <dl compact="compact">
  28581. <dt><var>known</var></dt>
  28582. <dd><p>1 if index is not 129, 0 otherwise.
  28583. </p>
  28584. </dd>
  28585. <dt><var>qp</var></dt>
  28586. <dd><p>Sequential index starting from -129 to 128.
  28587. </p></dd>
  28588. </dl>
  28589. <a name="Examples-51"></a>
  28590. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-51">32.164.1 Examples</a></h3>
  28591. <ul>
  28592. <li>
  28593. Some equation like:
  28594. <div class="example">
  28595. <pre class="example">qp=2+2*sin(PI*qp)
  28596. </pre></div>
  28597. </li></ul>
  28598. <a name="random"></a>
  28599. <h2 class="section"><a href="ffprobe-all.html#toc-random">32.165 random</a></h2>
  28600. <p>Flush video frames from internal cache of frames into a random order.
  28601. No frame is discarded.
  28602. Inspired by <a href="#frei0r">frei0r</a> nervous filter.
  28603. </p>
  28604. <dl compact="compact">
  28605. <dt>&lsquo;<samp>frames</samp>&rsquo;</dt>
  28606. <dd><p>Set size in number of frames of internal cache, in range from <code>2</code> to
  28607. <code>512</code>. Default is <code>30</code>.
  28608. </p>
  28609. </dd>
  28610. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  28611. <dd><p>Set seed for random number generator, must be an integer included between
  28612. <code>0</code> and <code>UINT32_MAX</code>. If not specified, or if explicitly set to
  28613. less than <code>0</code>, the filter will try to use a good random seed on a
  28614. best effort basis.
  28615. </p></dd>
  28616. </dl>
  28617. <a name="readeia608"></a>
  28618. <h2 class="section"><a href="ffprobe-all.html#toc-readeia608">32.166 readeia608</a></h2>
  28619. <p>Read closed captioning (EIA-608) information from the top lines of a video frame.
  28620. </p>
  28621. <p>This filter adds frame metadata for <code>lavfi.readeia608.X.cc</code> and
  28622. <code>lavfi.readeia608.X.line</code>, where <code>X</code> is the number of the identified line
  28623. with EIA-608 data (starting from 0). A description of each metadata value follows:
  28624. </p>
  28625. <dl compact="compact">
  28626. <dt>&lsquo;<samp>lavfi.readeia608.X.cc</samp>&rsquo;</dt>
  28627. <dd><p>The two bytes stored as EIA-608 data (printed in hexadecimal).
  28628. </p>
  28629. </dd>
  28630. <dt>&lsquo;<samp>lavfi.readeia608.X.line</samp>&rsquo;</dt>
  28631. <dd><p>The number of the line on which the EIA-608 data was identified and read.
  28632. </p></dd>
  28633. </dl>
  28634. <p>This filter accepts the following options:
  28635. </p>
  28636. <dl compact="compact">
  28637. <dt>&lsquo;<samp>scan_min</samp>&rsquo;</dt>
  28638. <dd><p>Set the line to start scanning for EIA-608 data. Default is <code>0</code>.
  28639. </p>
  28640. </dd>
  28641. <dt>&lsquo;<samp>scan_max</samp>&rsquo;</dt>
  28642. <dd><p>Set the line to end scanning for EIA-608 data. Default is <code>29</code>.
  28643. </p>
  28644. </dd>
  28645. <dt>&lsquo;<samp>spw</samp>&rsquo;</dt>
  28646. <dd><p>Set the ratio of width reserved for sync code detection.
  28647. Default is <code>0.27</code>. Allowed range is <code>[0.1 - 0.7]</code>.
  28648. </p>
  28649. </dd>
  28650. <dt>&lsquo;<samp>chp</samp>&rsquo;</dt>
  28651. <dd><p>Enable checking the parity bit. In the event of a parity error, the filter will output
  28652. <code>0x00</code> for that character. Default is false.
  28653. </p>
  28654. </dd>
  28655. <dt>&lsquo;<samp>lp</samp>&rsquo;</dt>
  28656. <dd><p>Lowpass lines prior to further processing. Default is enabled.
  28657. </p></dd>
  28658. </dl>
  28659. <a name="Examples-38"></a>
  28660. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-38">32.166.1 Examples</a></h3>
  28661. <ul>
  28662. <li>
  28663. Output a csv with presentation time and the first two lines of identified EIA-608 captioning data.
  28664. <div class="example">
  28665. <pre class="example">ffprobe -f lavfi -i movie=captioned_video.mov,readeia608 -show_entries frame=pkt_pts_time:frame_tags=lavfi.readeia608.0.cc,lavfi.readeia608.1.cc -of csv
  28666. </pre></div>
  28667. </li></ul>
  28668. <a name="readvitc"></a>
  28669. <h2 class="section"><a href="ffprobe-all.html#toc-readvitc">32.167 readvitc</a></h2>
  28670. <p>Read vertical interval timecode (VITC) information from the top lines of a
  28671. video frame.
  28672. </p>
  28673. <p>The filter adds frame metadata key <code>lavfi.readvitc.tc_str</code> with the
  28674. timecode value, if a valid timecode has been detected. Further metadata key
  28675. <code>lavfi.readvitc.found</code> is set to 0/1 depending on whether
  28676. timecode data has been found or not.
  28677. </p>
  28678. <p>This filter accepts the following options:
  28679. </p>
  28680. <dl compact="compact">
  28681. <dt>&lsquo;<samp>scan_max</samp>&rsquo;</dt>
  28682. <dd><p>Set the maximum number of lines to scan for VITC data. If the value is set to
  28683. <code>-1</code> the full video frame is scanned. Default is <code>45</code>.
  28684. </p>
  28685. </dd>
  28686. <dt>&lsquo;<samp>thr_b</samp>&rsquo;</dt>
  28687. <dd><p>Set the luma threshold for black. Accepts float numbers in the range [0.0,1.0],
  28688. default value is <code>0.2</code>. The value must be equal or less than <code>thr_w</code>.
  28689. </p>
  28690. </dd>
  28691. <dt>&lsquo;<samp>thr_w</samp>&rsquo;</dt>
  28692. <dd><p>Set the luma threshold for white. Accepts float numbers in the range [0.0,1.0],
  28693. default value is <code>0.6</code>. The value must be equal or greater than <code>thr_b</code>.
  28694. </p></dd>
  28695. </dl>
  28696. <a name="Examples-6"></a>
  28697. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-6">32.167.1 Examples</a></h3>
  28698. <ul>
  28699. <li>
  28700. Detect and draw VITC data onto the video frame; if no valid VITC is detected,
  28701. draw <code>--:--:--:--</code> as a placeholder:
  28702. <div class="example">
  28703. <pre class="example">ffmpeg -i input.avi -filter:v 'readvitc,drawtext=fontfile=FreeMono.ttf:text=%{metadata\\:lavfi.readvitc.tc_str\\:--\\\\\\:--\\\\\\:--\\\\\\:--}:x=(w-tw)/2:y=400-ascent'
  28704. </pre></div>
  28705. </li></ul>
  28706. <a name="remap"></a>
  28707. <h2 class="section"><a href="ffprobe-all.html#toc-remap">32.168 remap</a></h2>
  28708. <p>Remap pixels using 2nd: Xmap and 3rd: Ymap input video stream.
  28709. </p>
  28710. <p>Destination pixel at position (X, Y) will be picked from source (x, y) position
  28711. where x = Xmap(X, Y) and y = Ymap(X, Y). If mapping values are out of range, zero
  28712. value for pixel will be used for destination pixel.
  28713. </p>
  28714. <p>Xmap and Ymap input video streams must be of same dimensions. Output video stream
  28715. will have Xmap/Ymap video stream dimensions.
  28716. Xmap and Ymap input video streams are 16bit depth, single channel.
  28717. </p>
  28718. <dl compact="compact">
  28719. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  28720. <dd><p>Specify pixel format of output from this filter. Can be <code>color</code> or <code>gray</code>.
  28721. Default is <code>color</code>.
  28722. </p>
  28723. </dd>
  28724. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  28725. <dd><p>Specify the color of the unmapped pixels. For the syntax of this option,
  28726. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>. Default color is <code>black</code>.
  28727. </p></dd>
  28728. </dl>
  28729. <a name="removegrain"></a>
  28730. <h2 class="section"><a href="ffprobe-all.html#toc-removegrain">32.169 removegrain</a></h2>
  28731. <p>The removegrain filter is a spatial denoiser for progressive video.
  28732. </p>
  28733. <dl compact="compact">
  28734. <dt>&lsquo;<samp>m0</samp>&rsquo;</dt>
  28735. <dd><p>Set mode for the first plane.
  28736. </p>
  28737. </dd>
  28738. <dt>&lsquo;<samp>m1</samp>&rsquo;</dt>
  28739. <dd><p>Set mode for the second plane.
  28740. </p>
  28741. </dd>
  28742. <dt>&lsquo;<samp>m2</samp>&rsquo;</dt>
  28743. <dd><p>Set mode for the third plane.
  28744. </p>
  28745. </dd>
  28746. <dt>&lsquo;<samp>m3</samp>&rsquo;</dt>
  28747. <dd><p>Set mode for the fourth plane.
  28748. </p></dd>
  28749. </dl>
  28750. <p>Range of mode is from 0 to 24. Description of each mode follows:
  28751. </p>
  28752. <dl compact="compact">
  28753. <dt><var>0</var></dt>
  28754. <dd><p>Leave input plane unchanged. Default.
  28755. </p>
  28756. </dd>
  28757. <dt><var>1</var></dt>
  28758. <dd><p>Clips the pixel with the minimum and maximum of the 8 neighbour pixels.
  28759. </p>
  28760. </dd>
  28761. <dt><var>2</var></dt>
  28762. <dd><p>Clips the pixel with the second minimum and maximum of the 8 neighbour pixels.
  28763. </p>
  28764. </dd>
  28765. <dt><var>3</var></dt>
  28766. <dd><p>Clips the pixel with the third minimum and maximum of the 8 neighbour pixels.
  28767. </p>
  28768. </dd>
  28769. <dt><var>4</var></dt>
  28770. <dd><p>Clips the pixel with the fourth minimum and maximum of the 8 neighbour pixels.
  28771. This is equivalent to a median filter.
  28772. </p>
  28773. </dd>
  28774. <dt><var>5</var></dt>
  28775. <dd><p>Line-sensitive clipping giving the minimal change.
  28776. </p>
  28777. </dd>
  28778. <dt><var>6</var></dt>
  28779. <dd><p>Line-sensitive clipping, intermediate.
  28780. </p>
  28781. </dd>
  28782. <dt><var>7</var></dt>
  28783. <dd><p>Line-sensitive clipping, intermediate.
  28784. </p>
  28785. </dd>
  28786. <dt><var>8</var></dt>
  28787. <dd><p>Line-sensitive clipping, intermediate.
  28788. </p>
  28789. </dd>
  28790. <dt><var>9</var></dt>
  28791. <dd><p>Line-sensitive clipping on a line where the neighbours pixels are the closest.
  28792. </p>
  28793. </dd>
  28794. <dt><var>10</var></dt>
  28795. <dd><p>Replaces the target pixel with the closest neighbour.
  28796. </p>
  28797. </dd>
  28798. <dt><var>11</var></dt>
  28799. <dd><p>[1 2 1] horizontal and vertical kernel blur.
  28800. </p>
  28801. </dd>
  28802. <dt><var>12</var></dt>
  28803. <dd><p>Same as mode 11.
  28804. </p>
  28805. </dd>
  28806. <dt><var>13</var></dt>
  28807. <dd><p>Bob mode, interpolates top field from the line where the neighbours
  28808. pixels are the closest.
  28809. </p>
  28810. </dd>
  28811. <dt><var>14</var></dt>
  28812. <dd><p>Bob mode, interpolates bottom field from the line where the neighbours
  28813. pixels are the closest.
  28814. </p>
  28815. </dd>
  28816. <dt><var>15</var></dt>
  28817. <dd><p>Bob mode, interpolates top field. Same as 13 but with a more complicated
  28818. interpolation formula.
  28819. </p>
  28820. </dd>
  28821. <dt><var>16</var></dt>
  28822. <dd><p>Bob mode, interpolates bottom field. Same as 14 but with a more complicated
  28823. interpolation formula.
  28824. </p>
  28825. </dd>
  28826. <dt><var>17</var></dt>
  28827. <dd><p>Clips the pixel with the minimum and maximum of respectively the maximum and
  28828. minimum of each pair of opposite neighbour pixels.
  28829. </p>
  28830. </dd>
  28831. <dt><var>18</var></dt>
  28832. <dd><p>Line-sensitive clipping using opposite neighbours whose greatest distance from
  28833. the current pixel is minimal.
  28834. </p>
  28835. </dd>
  28836. <dt><var>19</var></dt>
  28837. <dd><p>Replaces the pixel with the average of its 8 neighbours.
  28838. </p>
  28839. </dd>
  28840. <dt><var>20</var></dt>
  28841. <dd><p>Averages the 9 pixels ([1 1 1] horizontal and vertical blur).
  28842. </p>
  28843. </dd>
  28844. <dt><var>21</var></dt>
  28845. <dd><p>Clips pixels using the averages of opposite neighbour.
  28846. </p>
  28847. </dd>
  28848. <dt><var>22</var></dt>
  28849. <dd><p>Same as mode 21 but simpler and faster.
  28850. </p>
  28851. </dd>
  28852. <dt><var>23</var></dt>
  28853. <dd><p>Small edge and halo removal, but reputed useless.
  28854. </p>
  28855. </dd>
  28856. <dt><var>24</var></dt>
  28857. <dd><p>Similar as 23.
  28858. </p></dd>
  28859. </dl>
  28860. <a name="removelogo"></a>
  28861. <h2 class="section"><a href="ffprobe-all.html#toc-removelogo">32.170 removelogo</a></h2>
  28862. <p>Suppress a TV station logo, using an image file to determine which
  28863. pixels comprise the logo. It works by filling in the pixels that
  28864. comprise the logo with neighboring pixels.
  28865. </p>
  28866. <p>The filter accepts the following options:
  28867. </p>
  28868. <dl compact="compact">
  28869. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  28870. <dd><p>Set the filter bitmap file, which can be any image format supported by
  28871. libavformat. The width and height of the image file must match those of the
  28872. video stream being processed.
  28873. </p></dd>
  28874. </dl>
  28875. <p>Pixels in the provided bitmap image with a value of zero are not
  28876. considered part of the logo, non-zero pixels are considered part of
  28877. the logo. If you use white (255) for the logo and black (0) for the
  28878. rest, you will be safe. For making the filter bitmap, it is
  28879. recommended to take a screen capture of a black frame with the logo
  28880. visible, and then using a threshold filter followed by the erode
  28881. filter once or twice.
  28882. </p>
  28883. <p>If needed, little splotches can be fixed manually. Remember that if
  28884. logo pixels are not covered, the filter quality will be much
  28885. reduced. Marking too many pixels as part of the logo does not hurt as
  28886. much, but it will increase the amount of blurring needed to cover over
  28887. the image and will destroy more information than necessary, and extra
  28888. pixels will slow things down on a large logo.
  28889. </p>
  28890. <a name="repeatfields"></a>
  28891. <h2 class="section"><a href="ffprobe-all.html#toc-repeatfields">32.171 repeatfields</a></h2>
  28892. <p>This filter uses the repeat_field flag from the Video ES headers and hard repeats
  28893. fields based on its value.
  28894. </p>
  28895. <a name="reverse"></a>
  28896. <h2 class="section"><a href="ffprobe-all.html#toc-reverse">32.172 reverse</a></h2>
  28897. <p>Reverse a video clip.
  28898. </p>
  28899. <p>Warning: This filter requires memory to buffer the entire clip, so trimming
  28900. is suggested.
  28901. </p>
  28902. <a name="Examples-36"></a>
  28903. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-36">32.172.1 Examples</a></h3>
  28904. <ul>
  28905. <li>
  28906. Take the first 5 seconds of a clip, and reverse it.
  28907. <div class="example">
  28908. <pre class="example">trim=end=5,reverse
  28909. </pre></div>
  28910. </li></ul>
  28911. <a name="rgbashift"></a>
  28912. <h2 class="section"><a href="ffprobe-all.html#toc-rgbashift">32.173 rgbashift</a></h2>
  28913. <p>Shift R/G/B/A pixels horizontally and/or vertically.
  28914. </p>
  28915. <p>The filter accepts the following options:
  28916. </p><dl compact="compact">
  28917. <dt>&lsquo;<samp>rh</samp>&rsquo;</dt>
  28918. <dd><p>Set amount to shift red horizontally.
  28919. </p></dd>
  28920. <dt>&lsquo;<samp>rv</samp>&rsquo;</dt>
  28921. <dd><p>Set amount to shift red vertically.
  28922. </p></dd>
  28923. <dt>&lsquo;<samp>gh</samp>&rsquo;</dt>
  28924. <dd><p>Set amount to shift green horizontally.
  28925. </p></dd>
  28926. <dt>&lsquo;<samp>gv</samp>&rsquo;</dt>
  28927. <dd><p>Set amount to shift green vertically.
  28928. </p></dd>
  28929. <dt>&lsquo;<samp>bh</samp>&rsquo;</dt>
  28930. <dd><p>Set amount to shift blue horizontally.
  28931. </p></dd>
  28932. <dt>&lsquo;<samp>bv</samp>&rsquo;</dt>
  28933. <dd><p>Set amount to shift blue vertically.
  28934. </p></dd>
  28935. <dt>&lsquo;<samp>ah</samp>&rsquo;</dt>
  28936. <dd><p>Set amount to shift alpha horizontally.
  28937. </p></dd>
  28938. <dt>&lsquo;<samp>av</samp>&rsquo;</dt>
  28939. <dd><p>Set amount to shift alpha vertically.
  28940. </p></dd>
  28941. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  28942. <dd><p>Set edge mode, can be <var>smear</var>, default, or <var>warp</var>.
  28943. </p></dd>
  28944. </dl>
  28945. <a name="Commands-56"></a>
  28946. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-56">32.173.1 Commands</a></h3>
  28947. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  28948. </p>
  28949. <a name="roberts"></a>
  28950. <h2 class="section"><a href="ffprobe-all.html#toc-roberts">32.174 roberts</a></h2>
  28951. <p>Apply roberts cross operator to input video stream.
  28952. </p>
  28953. <p>The filter accepts the following option:
  28954. </p>
  28955. <dl compact="compact">
  28956. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  28957. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  28958. By default value 0xf, all planes will be processed.
  28959. </p>
  28960. </dd>
  28961. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  28962. <dd><p>Set value which will be multiplied with filtered result.
  28963. </p>
  28964. </dd>
  28965. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  28966. <dd><p>Set value which will be added to filtered result.
  28967. </p></dd>
  28968. </dl>
  28969. <a name="rotate"></a>
  28970. <h2 class="section"><a href="ffprobe-all.html#toc-rotate">32.175 rotate</a></h2>
  28971. <p>Rotate video by an arbitrary angle expressed in radians.
  28972. </p>
  28973. <p>The filter accepts the following options:
  28974. </p>
  28975. <p>A description of the optional parameters follows.
  28976. </p><dl compact="compact">
  28977. <dt>&lsquo;<samp>angle, a</samp>&rsquo;</dt>
  28978. <dd><p>Set an expression for the angle by which to rotate the input video
  28979. clockwise, expressed as a number of radians. A negative value will
  28980. result in a counter-clockwise rotation. By default it is set to &quot;0&quot;.
  28981. </p>
  28982. <p>This expression is evaluated for each frame.
  28983. </p>
  28984. </dd>
  28985. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  28986. <dd><p>Set the output width expression, default value is &quot;iw&quot;.
  28987. This expression is evaluated just once during configuration.
  28988. </p>
  28989. </dd>
  28990. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  28991. <dd><p>Set the output height expression, default value is &quot;ih&quot;.
  28992. This expression is evaluated just once during configuration.
  28993. </p>
  28994. </dd>
  28995. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  28996. <dd><p>Enable bilinear interpolation if set to 1, a value of 0 disables
  28997. it. Default value is 1.
  28998. </p>
  28999. </dd>
  29000. <dt>&lsquo;<samp>fillcolor, c</samp>&rsquo;</dt>
  29001. <dd><p>Set the color used to fill the output area not covered by the rotated
  29002. image. For the general syntax of this option, check the
  29003. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  29004. If the special value &quot;none&quot; is selected then no
  29005. background is printed (useful for example if the background is never shown).
  29006. </p>
  29007. <p>Default value is &quot;black&quot;.
  29008. </p></dd>
  29009. </dl>
  29010. <p>The expressions for the angle and the output size can contain the
  29011. following constants and functions:
  29012. </p>
  29013. <dl compact="compact">
  29014. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  29015. <dd><p>sequential number of the input frame, starting from 0. It is always NAN
  29016. before the first frame is filtered.
  29017. </p>
  29018. </dd>
  29019. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  29020. <dd><p>time in seconds of the input frame, it is set to 0 when the filter is
  29021. configured. It is always NAN before the first frame is filtered.
  29022. </p>
  29023. </dd>
  29024. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  29025. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  29026. <dd><p>horizontal and vertical chroma subsample values. For example for the
  29027. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29028. </p>
  29029. </dd>
  29030. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  29031. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  29032. <dd><p>the input video width and height
  29033. </p>
  29034. </dd>
  29035. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  29036. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  29037. <dd><p>the output width and height, that is the size of the padded area as
  29038. specified by the <var>width</var> and <var>height</var> expressions
  29039. </p>
  29040. </dd>
  29041. <dt>&lsquo;<samp>rotw(a)</samp>&rsquo;</dt>
  29042. <dt>&lsquo;<samp>roth(a)</samp>&rsquo;</dt>
  29043. <dd><p>the minimal width/height required for completely containing the input
  29044. video rotated by <var>a</var> radians.
  29045. </p>
  29046. <p>These are only available when computing the &lsquo;<samp>out_w</samp>&rsquo; and
  29047. &lsquo;<samp>out_h</samp>&rsquo; expressions.
  29048. </p></dd>
  29049. </dl>
  29050. <a name="Examples-157"></a>
  29051. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-157">32.175.1 Examples</a></h3>
  29052. <ul>
  29053. <li>
  29054. Rotate the input by PI/6 radians clockwise:
  29055. <div class="example">
  29056. <pre class="example">rotate=PI/6
  29057. </pre></div>
  29058. </li><li>
  29059. Rotate the input by PI/6 radians counter-clockwise:
  29060. <div class="example">
  29061. <pre class="example">rotate=-PI/6
  29062. </pre></div>
  29063. </li><li>
  29064. Rotate the input by 45 degrees clockwise:
  29065. <div class="example">
  29066. <pre class="example">rotate=45*PI/180
  29067. </pre></div>
  29068. </li><li>
  29069. Apply a constant rotation with period T, starting from an angle of PI/3:
  29070. <div class="example">
  29071. <pre class="example">rotate=PI/3+2*PI*t/T
  29072. </pre></div>
  29073. </li><li>
  29074. Make the input video rotation oscillating with a period of T
  29075. seconds and an amplitude of A radians:
  29076. <div class="example">
  29077. <pre class="example">rotate=A*sin(2*PI/T*t)
  29078. </pre></div>
  29079. </li><li>
  29080. Rotate the video, output size is chosen so that the whole rotating
  29081. input video is always completely contained in the output:
  29082. <div class="example">
  29083. <pre class="example">rotate='2*PI*t:ow=hypot(iw,ih):oh=ow'
  29084. </pre></div>
  29085. </li><li>
  29086. Rotate the video, reduce the output size so that no background is ever
  29087. shown:
  29088. <div class="example">
  29089. <pre class="example">rotate=2*PI*t:ow='min(iw,ih)/sqrt(2)':oh=ow:c=none
  29090. </pre></div>
  29091. </li></ul>
  29092. <a name="Commands-16"></a>
  29093. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-16">32.175.2 Commands</a></h3>
  29094. <p>The filter supports the following commands:
  29095. </p>
  29096. <dl compact="compact">
  29097. <dt>&lsquo;<samp>a, angle</samp>&rsquo;</dt>
  29098. <dd><p>Set the angle expression.
  29099. The command accepts the same syntax of the corresponding option.
  29100. </p>
  29101. <p>If the specified expression is not valid, it is kept at its current
  29102. value.
  29103. </p></dd>
  29104. </dl>
  29105. <a name="sab"></a>
  29106. <h2 class="section"><a href="ffprobe-all.html#toc-sab">32.176 sab</a></h2>
  29107. <p>Apply Shape Adaptive Blur.
  29108. </p>
  29109. <p>The filter accepts the following options:
  29110. </p>
  29111. <dl compact="compact">
  29112. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  29113. <dd><p>Set luma blur filter strength, must be a value in range 0.1-4.0, default
  29114. value is 1.0. A greater value will result in a more blurred image, and
  29115. in slower processing.
  29116. </p>
  29117. </dd>
  29118. <dt>&lsquo;<samp>luma_pre_filter_radius, lpfr</samp>&rsquo;</dt>
  29119. <dd><p>Set luma pre-filter radius, must be a value in the 0.1-2.0 range, default
  29120. value is 1.0.
  29121. </p>
  29122. </dd>
  29123. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  29124. <dd><p>Set luma maximum difference between pixels to still be considered, must
  29125. be a value in the 0.1-100.0 range, default value is 1.0.
  29126. </p>
  29127. </dd>
  29128. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  29129. <dd><p>Set chroma blur filter strength, must be a value in range -0.9-4.0. A
  29130. greater value will result in a more blurred image, and in slower
  29131. processing.
  29132. </p>
  29133. </dd>
  29134. <dt>&lsquo;<samp>chroma_pre_filter_radius, cpfr</samp>&rsquo;</dt>
  29135. <dd><p>Set chroma pre-filter radius, must be a value in the -0.9-2.0 range.
  29136. </p>
  29137. </dd>
  29138. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  29139. <dd><p>Set chroma maximum difference between pixels to still be considered,
  29140. must be a value in the -0.9-100.0 range.
  29141. </p></dd>
  29142. </dl>
  29143. <p>Each chroma option value, if not explicitly specified, is set to the
  29144. corresponding luma option value.
  29145. </p>
  29146. <p><a name="scale"></a>
  29147. </p><a name="scale-1"></a>
  29148. <h2 class="section"><a href="ffprobe-all.html#toc-scale-1">32.177 scale</a></h2>
  29149. <p>Scale (resize) the input video, using the libswscale library.
  29150. </p>
  29151. <p>The scale filter forces the output display aspect ratio to be the same
  29152. of the input, by changing the output sample aspect ratio.
  29153. </p>
  29154. <p>If the input image format is different from the format requested by
  29155. the next filter, the scale filter will convert the input to the
  29156. requested format.
  29157. </p>
  29158. <a name="Options-16"></a>
  29159. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-16">32.177.1 Options</a></h3>
  29160. <p>The filter accepts the following options, or any of the options
  29161. supported by the libswscale scaler.
  29162. </p>
  29163. <p>See <a href="ffmpeg-scaler.html#scaler_005foptions">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for
  29164. the complete list of scaler options.
  29165. </p>
  29166. <dl compact="compact">
  29167. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  29168. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  29169. <dd><p>Set the output video dimension expression. Default value is the input
  29170. dimension.
  29171. </p>
  29172. <p>If the <var>width</var> or <var>w</var> value is 0, the input width is used for
  29173. the output. If the <var>height</var> or <var>h</var> value is 0, the input height
  29174. is used for the output.
  29175. </p>
  29176. <p>If one and only one of the values is -n with n &gt;= 1, the scale filter
  29177. will use a value that maintains the aspect ratio of the input image,
  29178. calculated from the other specified dimension. After that it will,
  29179. however, make sure that the calculated dimension is divisible by n and
  29180. adjust the value if necessary.
  29181. </p>
  29182. <p>If both values are -n with n &gt;= 1, the behavior will be identical to
  29183. both values being set to 0 as previously detailed.
  29184. </p>
  29185. <p>See below for the list of accepted constants for use in the dimension
  29186. expression.
  29187. </p>
  29188. </dd>
  29189. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  29190. <dd><p>Specify when to evaluate <var>width</var> and <var>height</var> expression. It accepts the following values:
  29191. </p>
  29192. <dl compact="compact">
  29193. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  29194. <dd><p>Only evaluate expressions once during the filter initialization or when a command is processed.
  29195. </p>
  29196. </dd>
  29197. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  29198. <dd><p>Evaluate expressions for each incoming frame.
  29199. </p>
  29200. </dd>
  29201. </dl>
  29202. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  29203. </p>
  29204. </dd>
  29205. <dt>&lsquo;<samp>interl</samp>&rsquo;</dt>
  29206. <dd><p>Set the interlacing mode. It accepts the following values:
  29207. </p>
  29208. <dl compact="compact">
  29209. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  29210. <dd><p>Force interlaced aware scaling.
  29211. </p>
  29212. </dd>
  29213. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  29214. <dd><p>Do not apply interlaced scaling.
  29215. </p>
  29216. </dd>
  29217. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  29218. <dd><p>Select interlaced aware scaling depending on whether the source frames
  29219. are flagged as interlaced or not.
  29220. </p></dd>
  29221. </dl>
  29222. <p>Default value is &lsquo;<samp>0</samp>&rsquo;.
  29223. </p>
  29224. </dd>
  29225. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  29226. <dd><p>Set libswscale scaling flags. See
  29227. <a href="ffmpeg-scaler.html#sws_005fflags">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for the
  29228. complete list of values. If not explicitly specified the filter applies
  29229. the default flags.
  29230. </p>
  29231. </dd>
  29232. <dt>&lsquo;<samp>param0, param1</samp>&rsquo;</dt>
  29233. <dd><p>Set libswscale input parameters for scaling algorithms that need them. See
  29234. <a href="ffmpeg-scaler.html#sws_005fparams">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for the
  29235. complete documentation. If not explicitly specified the filter applies
  29236. empty parameters.
  29237. </p>
  29238. </dd>
  29239. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  29240. <dd><p>Set the video size. For the syntax of this option, check the
  29241. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  29242. </p>
  29243. </dd>
  29244. <dt>&lsquo;<samp>in_color_matrix</samp>&rsquo;</dt>
  29245. <dt>&lsquo;<samp>out_color_matrix</samp>&rsquo;</dt>
  29246. <dd><p>Set in/output YCbCr color space type.
  29247. </p>
  29248. <p>This allows the autodetected value to be overridden as well as allows forcing
  29249. a specific value used for the output and encoder.
  29250. </p>
  29251. <p>If not specified, the color space type depends on the pixel format.
  29252. </p>
  29253. <p>Possible values:
  29254. </p>
  29255. <dl compact="compact">
  29256. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29257. <dd><p>Choose automatically.
  29258. </p>
  29259. </dd>
  29260. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  29261. <dd><p>Format conforming to International Telecommunication Union (ITU)
  29262. Recommendation BT.709.
  29263. </p>
  29264. </dd>
  29265. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  29266. <dd><p>Set color space conforming to the United States Federal Communications
  29267. Commission (FCC) Code of Federal Regulations (CFR) Title 47 (2003) 73.682 (a).
  29268. </p>
  29269. </dd>
  29270. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  29271. <dt>&lsquo;<samp>bt470</samp>&rsquo;</dt>
  29272. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  29273. <dd><p>Set color space conforming to:
  29274. </p>
  29275. <ul>
  29276. <li>
  29277. ITU Radiocommunication Sector (ITU-R) Recommendation BT.601
  29278. </li><li>
  29279. ITU-R Rec. BT.470-6 (1998) Systems B, B1, and G
  29280. </li><li>
  29281. Society of Motion Picture and Television Engineers (SMPTE) ST 170:2004
  29282. </li></ul>
  29283. </dd>
  29284. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  29285. <dd><p>Set color space conforming to SMPTE ST 240:1999.
  29286. </p>
  29287. </dd>
  29288. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  29289. <dd><p>Set color space conforming to ITU-R BT.2020 non-constant luminance system.
  29290. </p></dd>
  29291. </dl>
  29292. </dd>
  29293. <dt>&lsquo;<samp>in_range</samp>&rsquo;</dt>
  29294. <dt>&lsquo;<samp>out_range</samp>&rsquo;</dt>
  29295. <dd><p>Set in/output YCbCr sample range.
  29296. </p>
  29297. <p>This allows the autodetected value to be overridden as well as allows forcing
  29298. a specific value used for the output and encoder. If not specified, the
  29299. range depends on the pixel format. Possible values:
  29300. </p>
  29301. <dl compact="compact">
  29302. <dt>&lsquo;<samp>auto/unknown</samp>&rsquo;</dt>
  29303. <dd><p>Choose automatically.
  29304. </p>
  29305. </dd>
  29306. <dt>&lsquo;<samp>jpeg/full/pc</samp>&rsquo;</dt>
  29307. <dd><p>Set full range (0-255 in case of 8-bit luma).
  29308. </p>
  29309. </dd>
  29310. <dt>&lsquo;<samp>mpeg/limited/tv</samp>&rsquo;</dt>
  29311. <dd><p>Set &quot;MPEG&quot; range (16-235 in case of 8-bit luma).
  29312. </p></dd>
  29313. </dl>
  29314. </dd>
  29315. <dt>&lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;</dt>
  29316. <dd><p>Enable decreasing or increasing output video width or height if necessary to
  29317. keep the original aspect ratio. Possible values:
  29318. </p>
  29319. <dl compact="compact">
  29320. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  29321. <dd><p>Scale the video as specified and disable this feature.
  29322. </p>
  29323. </dd>
  29324. <dt>&lsquo;<samp>decrease</samp>&rsquo;</dt>
  29325. <dd><p>The output video dimensions will automatically be decreased if needed.
  29326. </p>
  29327. </dd>
  29328. <dt>&lsquo;<samp>increase</samp>&rsquo;</dt>
  29329. <dd><p>The output video dimensions will automatically be increased if needed.
  29330. </p>
  29331. </dd>
  29332. </dl>
  29333. <p>One useful instance of this option is that when you know a specific device&rsquo;s
  29334. maximum allowed resolution, you can use this to limit the output video to
  29335. that, while retaining the aspect ratio. For example, device A allows
  29336. 1280x720 playback, and your video is 1920x800. Using this option (set it to
  29337. decrease) and specifying 1280x720 to the command line makes the output
  29338. 1280x533.
  29339. </p>
  29340. <p>Please note that this is a different thing than specifying -1 for &lsquo;<samp>w</samp>&rsquo;
  29341. or &lsquo;<samp>h</samp>&rsquo;, you still need to specify the output resolution for this option
  29342. to work.
  29343. </p>
  29344. </dd>
  29345. <dt>&lsquo;<samp>force_divisible_by</samp>&rsquo;</dt>
  29346. <dd><p>Ensures that both the output dimensions, width and height, are divisible by the
  29347. given integer when used together with &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;. This
  29348. works similar to using <code>-n</code> in the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options.
  29349. </p>
  29350. <p>This option respects the value set for &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;,
  29351. increasing or decreasing the resolution accordingly. The video&rsquo;s aspect ratio
  29352. may be slightly modified.
  29353. </p>
  29354. <p>This option can be handy if you need to have a video fit within or exceed
  29355. a defined resolution using &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo; but also have
  29356. encoder restrictions on width or height divisibility.
  29357. </p>
  29358. </dd>
  29359. </dl>
  29360. <p>The values of the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options are expressions
  29361. containing the following constants:
  29362. </p>
  29363. <dl compact="compact">
  29364. <dt><var>in_w</var></dt>
  29365. <dt><var>in_h</var></dt>
  29366. <dd><p>The input width and height
  29367. </p>
  29368. </dd>
  29369. <dt><var>iw</var></dt>
  29370. <dt><var>ih</var></dt>
  29371. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  29372. </p>
  29373. </dd>
  29374. <dt><var>out_w</var></dt>
  29375. <dt><var>out_h</var></dt>
  29376. <dd><p>The output (scaled) width and height
  29377. </p>
  29378. </dd>
  29379. <dt><var>ow</var></dt>
  29380. <dt><var>oh</var></dt>
  29381. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>
  29382. </p>
  29383. </dd>
  29384. <dt><var>a</var></dt>
  29385. <dd><p>The same as <var>iw</var> / <var>ih</var>
  29386. </p>
  29387. </dd>
  29388. <dt><var>sar</var></dt>
  29389. <dd><p>input sample aspect ratio
  29390. </p>
  29391. </dd>
  29392. <dt><var>dar</var></dt>
  29393. <dd><p>The input display aspect ratio. Calculated from <code>(iw / ih) * sar</code>.
  29394. </p>
  29395. </dd>
  29396. <dt><var>hsub</var></dt>
  29397. <dt><var>vsub</var></dt>
  29398. <dd><p>horizontal and vertical input chroma subsample values. For example for the
  29399. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29400. </p>
  29401. </dd>
  29402. <dt><var>ohsub</var></dt>
  29403. <dt><var>ovsub</var></dt>
  29404. <dd><p>horizontal and vertical output chroma subsample values. For example for the
  29405. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29406. </p>
  29407. </dd>
  29408. <dt><var>n</var></dt>
  29409. <dd><p>The (sequential) number of the input frame, starting from 0.
  29410. Only available with <code>eval=frame</code>.
  29411. </p>
  29412. </dd>
  29413. <dt><var>t</var></dt>
  29414. <dd><p>The presentation timestamp of the input frame, expressed as a number of
  29415. seconds. Only available with <code>eval=frame</code>.
  29416. </p>
  29417. </dd>
  29418. <dt><var>pos</var></dt>
  29419. <dd><p>The position (byte offset) of the frame in the input stream, or NaN if
  29420. this information is unavailable and/or meaningless (for example in case of synthetic video).
  29421. Only available with <code>eval=frame</code>.
  29422. </p></dd>
  29423. </dl>
  29424. <a name="Examples-63"></a>
  29425. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-63">32.177.2 Examples</a></h3>
  29426. <ul>
  29427. <li>
  29428. Scale the input video to a size of 200x100
  29429. <div class="example">
  29430. <pre class="example">scale=w=200:h=100
  29431. </pre></div>
  29432. <p>This is equivalent to:
  29433. </p><div class="example">
  29434. <pre class="example">scale=200:100
  29435. </pre></div>
  29436. <p>or:
  29437. </p><div class="example">
  29438. <pre class="example">scale=200x100
  29439. </pre></div>
  29440. </li><li>
  29441. Specify a size abbreviation for the output size:
  29442. <div class="example">
  29443. <pre class="example">scale=qcif
  29444. </pre></div>
  29445. <p>which can also be written as:
  29446. </p><div class="example">
  29447. <pre class="example">scale=size=qcif
  29448. </pre></div>
  29449. </li><li>
  29450. Scale the input to 2x:
  29451. <div class="example">
  29452. <pre class="example">scale=w=2*iw:h=2*ih
  29453. </pre></div>
  29454. </li><li>
  29455. The above is the same as:
  29456. <div class="example">
  29457. <pre class="example">scale=2*in_w:2*in_h
  29458. </pre></div>
  29459. </li><li>
  29460. Scale the input to 2x with forced interlaced scaling:
  29461. <div class="example">
  29462. <pre class="example">scale=2*iw:2*ih:interl=1
  29463. </pre></div>
  29464. </li><li>
  29465. Scale the input to half size:
  29466. <div class="example">
  29467. <pre class="example">scale=w=iw/2:h=ih/2
  29468. </pre></div>
  29469. </li><li>
  29470. Increase the width, and set the height to the same size:
  29471. <div class="example">
  29472. <pre class="example">scale=3/2*iw:ow
  29473. </pre></div>
  29474. </li><li>
  29475. Seek Greek harmony:
  29476. <div class="example">
  29477. <pre class="example">scale=iw:1/PHI*iw
  29478. scale=ih*PHI:ih
  29479. </pre></div>
  29480. </li><li>
  29481. Increase the height, and set the width to 3/2 of the height:
  29482. <div class="example">
  29483. <pre class="example">scale=w=3/2*oh:h=3/5*ih
  29484. </pre></div>
  29485. </li><li>
  29486. Increase the size, making the size a multiple of the chroma
  29487. subsample values:
  29488. <div class="example">
  29489. <pre class="example">scale=&quot;trunc(3/2*iw/hsub)*hsub:trunc(3/2*ih/vsub)*vsub&quot;
  29490. </pre></div>
  29491. </li><li>
  29492. Increase the width to a maximum of 500 pixels,
  29493. keeping the same aspect ratio as the input:
  29494. <div class="example">
  29495. <pre class="example">scale=w='min(500\, iw*3/2):h=-1'
  29496. </pre></div>
  29497. </li><li>
  29498. Make pixels square by combining scale and setsar:
  29499. <div class="example">
  29500. <pre class="example">scale='trunc(ih*dar):ih',setsar=1/1
  29501. </pre></div>
  29502. </li><li>
  29503. Make pixels square by combining scale and setsar,
  29504. making sure the resulting resolution is even (required by some codecs):
  29505. <div class="example">
  29506. <pre class="example">scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1
  29507. </pre></div>
  29508. </li></ul>
  29509. <a name="Commands-33"></a>
  29510. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-33">32.177.3 Commands</a></h3>
  29511. <p>This filter supports the following commands:
  29512. </p><dl compact="compact">
  29513. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  29514. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  29515. <dd><p>Set the output video dimension expression.
  29516. The command accepts the same syntax of the corresponding option.
  29517. </p>
  29518. <p>If the specified expression is not valid, it is kept at its current
  29519. value.
  29520. </p></dd>
  29521. </dl>
  29522. <a name="scale_005fnpp"></a>
  29523. <h2 class="section"><a href="ffprobe-all.html#toc-scale_005fnpp">32.178 scale_npp</a></h2>
  29524. <p>Use the NVIDIA Performance Primitives (libnpp) to perform scaling and/or pixel
  29525. format conversion on CUDA video frames. Setting the output width and height
  29526. works in the same way as for the <var>scale</var> filter.
  29527. </p>
  29528. <p>The following additional options are accepted:
  29529. </p><dl compact="compact">
  29530. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  29531. <dd><p>The pixel format of the output CUDA frames. If set to the string &quot;same&quot; (the
  29532. default), the input format will be kept. Note that automatic format negotiation
  29533. and conversion is not yet supported for hardware frames
  29534. </p>
  29535. </dd>
  29536. <dt>&lsquo;<samp>interp_algo</samp>&rsquo;</dt>
  29537. <dd><p>The interpolation algorithm used for resizing. One of the following:
  29538. </p><dl compact="compact">
  29539. <dt>&lsquo;<samp>nn</samp>&rsquo;</dt>
  29540. <dd><p>Nearest neighbour.
  29541. </p>
  29542. </dd>
  29543. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  29544. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  29545. <dt>&lsquo;<samp>cubic2p_bspline</samp>&rsquo;</dt>
  29546. <dd><p>2-parameter cubic (B=1, C=0)
  29547. </p>
  29548. </dd>
  29549. <dt>&lsquo;<samp>cubic2p_catmullrom</samp>&rsquo;</dt>
  29550. <dd><p>2-parameter cubic (B=0, C=1/2)
  29551. </p>
  29552. </dd>
  29553. <dt>&lsquo;<samp>cubic2p_b05c03</samp>&rsquo;</dt>
  29554. <dd><p>2-parameter cubic (B=1/2, C=3/10)
  29555. </p>
  29556. </dd>
  29557. <dt>&lsquo;<samp>super</samp>&rsquo;</dt>
  29558. <dd><p>Supersampling
  29559. </p>
  29560. </dd>
  29561. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  29562. </dl>
  29563. </dd>
  29564. <dt>&lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;</dt>
  29565. <dd><p>Enable decreasing or increasing output video width or height if necessary to
  29566. keep the original aspect ratio. Possible values:
  29567. </p>
  29568. <dl compact="compact">
  29569. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  29570. <dd><p>Scale the video as specified and disable this feature.
  29571. </p>
  29572. </dd>
  29573. <dt>&lsquo;<samp>decrease</samp>&rsquo;</dt>
  29574. <dd><p>The output video dimensions will automatically be decreased if needed.
  29575. </p>
  29576. </dd>
  29577. <dt>&lsquo;<samp>increase</samp>&rsquo;</dt>
  29578. <dd><p>The output video dimensions will automatically be increased if needed.
  29579. </p>
  29580. </dd>
  29581. </dl>
  29582. <p>One useful instance of this option is that when you know a specific device&rsquo;s
  29583. maximum allowed resolution, you can use this to limit the output video to
  29584. that, while retaining the aspect ratio. For example, device A allows
  29585. 1280x720 playback, and your video is 1920x800. Using this option (set it to
  29586. decrease) and specifying 1280x720 to the command line makes the output
  29587. 1280x533.
  29588. </p>
  29589. <p>Please note that this is a different thing than specifying -1 for &lsquo;<samp>w</samp>&rsquo;
  29590. or &lsquo;<samp>h</samp>&rsquo;, you still need to specify the output resolution for this option
  29591. to work.
  29592. </p>
  29593. </dd>
  29594. <dt>&lsquo;<samp>force_divisible_by</samp>&rsquo;</dt>
  29595. <dd><p>Ensures that both the output dimensions, width and height, are divisible by the
  29596. given integer when used together with &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;. This
  29597. works similar to using <code>-n</code> in the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options.
  29598. </p>
  29599. <p>This option respects the value set for &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;,
  29600. increasing or decreasing the resolution accordingly. The video&rsquo;s aspect ratio
  29601. may be slightly modified.
  29602. </p>
  29603. <p>This option can be handy if you need to have a video fit within or exceed
  29604. a defined resolution using &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo; but also have
  29605. encoder restrictions on width or height divisibility.
  29606. </p>
  29607. </dd>
  29608. </dl>
  29609. <a name="scale2ref"></a>
  29610. <h2 class="section"><a href="ffprobe-all.html#toc-scale2ref">32.179 scale2ref</a></h2>
  29611. <p>Scale (resize) the input video, based on a reference video.
  29612. </p>
  29613. <p>See the scale filter for available options, scale2ref supports the same but
  29614. uses the reference video instead of the main input as basis. scale2ref also
  29615. supports the following additional constants for the &lsquo;<samp>w</samp>&rsquo; and
  29616. &lsquo;<samp>h</samp>&rsquo; options:
  29617. </p>
  29618. <dl compact="compact">
  29619. <dt><var>main_w</var></dt>
  29620. <dt><var>main_h</var></dt>
  29621. <dd><p>The main input video&rsquo;s width and height
  29622. </p>
  29623. </dd>
  29624. <dt><var>main_a</var></dt>
  29625. <dd><p>The same as <var>main_w</var> / <var>main_h</var>
  29626. </p>
  29627. </dd>
  29628. <dt><var>main_sar</var></dt>
  29629. <dd><p>The main input video&rsquo;s sample aspect ratio
  29630. </p>
  29631. </dd>
  29632. <dt><var>main_dar, mdar</var></dt>
  29633. <dd><p>The main input video&rsquo;s display aspect ratio. Calculated from
  29634. <code>(main_w / main_h) * main_sar</code>.
  29635. </p>
  29636. </dd>
  29637. <dt><var>main_hsub</var></dt>
  29638. <dt><var>main_vsub</var></dt>
  29639. <dd><p>The main input video&rsquo;s horizontal and vertical chroma subsample values.
  29640. For example for the pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var>
  29641. is 1.
  29642. </p>
  29643. </dd>
  29644. <dt><var>main_n</var></dt>
  29645. <dd><p>The (sequential) number of the main input frame, starting from 0.
  29646. Only available with <code>eval=frame</code>.
  29647. </p>
  29648. </dd>
  29649. <dt><var>main_t</var></dt>
  29650. <dd><p>The presentation timestamp of the main input frame, expressed as a number of
  29651. seconds. Only available with <code>eval=frame</code>.
  29652. </p>
  29653. </dd>
  29654. <dt><var>main_pos</var></dt>
  29655. <dd><p>The position (byte offset) of the frame in the main input stream, or NaN if
  29656. this information is unavailable and/or meaningless (for example in case of synthetic video).
  29657. Only available with <code>eval=frame</code>.
  29658. </p></dd>
  29659. </dl>
  29660. <a name="Examples-40"></a>
  29661. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-40">32.179.1 Examples</a></h3>
  29662. <ul>
  29663. <li>
  29664. Scale a subtitle stream (b) to match the main video (a) in size before overlaying
  29665. <div class="example">
  29666. <pre class="example">'scale2ref[b][a];[a][b]overlay'
  29667. </pre></div>
  29668. </li><li>
  29669. Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio.
  29670. <div class="example">
  29671. <pre class="example">[logo-in][video-in]scale2ref=w=oh*mdar:h=ih/10[logo-out][video-out]
  29672. </pre></div>
  29673. </li></ul>
  29674. <a name="Commands-45"></a>
  29675. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-45">32.179.2 Commands</a></h3>
  29676. <p>This filter supports the following commands:
  29677. </p><dl compact="compact">
  29678. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  29679. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  29680. <dd><p>Set the output video dimension expression.
  29681. The command accepts the same syntax of the corresponding option.
  29682. </p>
  29683. <p>If the specified expression is not valid, it is kept at its current
  29684. value.
  29685. </p></dd>
  29686. </dl>
  29687. <a name="scroll"></a>
  29688. <h2 class="section"><a href="ffprobe-all.html#toc-scroll">32.180 scroll</a></h2>
  29689. <p>Scroll input video horizontally and/or vertically by constant speed.
  29690. </p>
  29691. <p>The filter accepts the following options:
  29692. </p><dl compact="compact">
  29693. <dt>&lsquo;<samp>horizontal, h</samp>&rsquo;</dt>
  29694. <dd><p>Set the horizontal scrolling speed. Default is 0. Allowed range is from -1 to 1.
  29695. Negative values changes scrolling direction.
  29696. </p>
  29697. </dd>
  29698. <dt>&lsquo;<samp>vertical, v</samp>&rsquo;</dt>
  29699. <dd><p>Set the vertical scrolling speed. Default is 0. Allowed range is from -1 to 1.
  29700. Negative values changes scrolling direction.
  29701. </p>
  29702. </dd>
  29703. <dt>&lsquo;<samp>hpos</samp>&rsquo;</dt>
  29704. <dd><p>Set the initial horizontal scrolling position. Default is 0. Allowed range is from 0 to 1.
  29705. </p>
  29706. </dd>
  29707. <dt>&lsquo;<samp>vpos</samp>&rsquo;</dt>
  29708. <dd><p>Set the initial vertical scrolling position. Default is 0. Allowed range is from 0 to 1.
  29709. </p></dd>
  29710. </dl>
  29711. <a name="Commands-23"></a>
  29712. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-23">32.180.1 Commands</a></h3>
  29713. <p>This filter supports the following <a href="#commands">commands</a>:
  29714. </p><dl compact="compact">
  29715. <dt>&lsquo;<samp>horizontal, h</samp>&rsquo;</dt>
  29716. <dd><p>Set the horizontal scrolling speed.
  29717. </p></dd>
  29718. <dt>&lsquo;<samp>vertical, v</samp>&rsquo;</dt>
  29719. <dd><p>Set the vertical scrolling speed.
  29720. </p></dd>
  29721. </dl>
  29722. <p><a name="scdet"></a>
  29723. </p><a name="scdet-1"></a>
  29724. <h2 class="section"><a href="ffprobe-all.html#toc-scdet-1">32.181 scdet</a></h2>
  29725. <p>Detect video scene change.
  29726. </p>
  29727. <p>This filter sets frame metadata with mafd between frame, the scene score, and
  29728. forward the frame to the next filter, so they can use these metadata to detect
  29729. scene change or others.
  29730. </p>
  29731. <p>In addition, this filter logs a message and sets frame metadata when it detects
  29732. a scene change by &lsquo;<samp>threshold</samp>&rsquo;.
  29733. </p>
  29734. <p><code>lavfi.scd.mafd</code> metadata keys are set with mafd for every frame.
  29735. </p>
  29736. <p><code>lavfi.scd.score</code> metadata keys are set with scene change score for every frame
  29737. to detect scene change.
  29738. </p>
  29739. <p><code>lavfi.scd.time</code> metadata keys are set with current filtered frame time which
  29740. detect scene change with &lsquo;<samp>threshold</samp>&rsquo;.
  29741. </p>
  29742. <p>The filter accepts the following options:
  29743. </p>
  29744. <dl compact="compact">
  29745. <dt>&lsquo;<samp>threshold, t</samp>&rsquo;</dt>
  29746. <dd><p>Set the scene change detection threshold as a percentage of maximum change. Good
  29747. values are in the <code>[8.0, 14.0]</code> range. The range for &lsquo;<samp>threshold</samp>&rsquo; is
  29748. <code>[0., 100.]</code>.
  29749. </p>
  29750. <p>Default value is <code>10.</code>.
  29751. </p>
  29752. </dd>
  29753. <dt>&lsquo;<samp>sc_pass, s</samp>&rsquo;</dt>
  29754. <dd><p>Set the flag to pass scene change frames to the next filter. Default value is <code>0</code>
  29755. You can enable it if you want to get snapshot of scene change frames only.
  29756. </p></dd>
  29757. </dl>
  29758. <p><a name="selectivecolor"></a>
  29759. </p><a name="selectivecolor-1"></a>
  29760. <h2 class="section"><a href="ffprobe-all.html#toc-selectivecolor-1">32.182 selectivecolor</a></h2>
  29761. <p>Adjust cyan, magenta, yellow and black (CMYK) to certain ranges of colors (such
  29762. as &quot;reds&quot;, &quot;yellows&quot;, &quot;greens&quot;, &quot;cyans&quot;, ...). The adjustment range is defined
  29763. by the &quot;purity&quot; of the color (that is, how saturated it already is).
  29764. </p>
  29765. <p>This filter is similar to the Adobe Photoshop Selective Color tool.
  29766. </p>
  29767. <p>The filter accepts the following options:
  29768. </p>
  29769. <dl compact="compact">
  29770. <dt>&lsquo;<samp>correction_method</samp>&rsquo;</dt>
  29771. <dd><p>Select color correction method.
  29772. </p>
  29773. <p>Available values are:
  29774. </p><dl compact="compact">
  29775. <dt>&lsquo;<samp>absolute</samp>&rsquo;</dt>
  29776. <dd><p>Specified adjustments are applied &quot;as-is&quot; (added/subtracted to original pixel
  29777. component value).
  29778. </p></dd>
  29779. <dt>&lsquo;<samp>relative</samp>&rsquo;</dt>
  29780. <dd><p>Specified adjustments are relative to the original component value.
  29781. </p></dd>
  29782. </dl>
  29783. <p>Default is <code>absolute</code>.
  29784. </p></dd>
  29785. <dt>&lsquo;<samp>reds</samp>&rsquo;</dt>
  29786. <dd><p>Adjustments for red pixels (pixels where the red component is the maximum)
  29787. </p></dd>
  29788. <dt>&lsquo;<samp>yellows</samp>&rsquo;</dt>
  29789. <dd><p>Adjustments for yellow pixels (pixels where the blue component is the minimum)
  29790. </p></dd>
  29791. <dt>&lsquo;<samp>greens</samp>&rsquo;</dt>
  29792. <dd><p>Adjustments for green pixels (pixels where the green component is the maximum)
  29793. </p></dd>
  29794. <dt>&lsquo;<samp>cyans</samp>&rsquo;</dt>
  29795. <dd><p>Adjustments for cyan pixels (pixels where the red component is the minimum)
  29796. </p></dd>
  29797. <dt>&lsquo;<samp>blues</samp>&rsquo;</dt>
  29798. <dd><p>Adjustments for blue pixels (pixels where the blue component is the maximum)
  29799. </p></dd>
  29800. <dt>&lsquo;<samp>magentas</samp>&rsquo;</dt>
  29801. <dd><p>Adjustments for magenta pixels (pixels where the green component is the minimum)
  29802. </p></dd>
  29803. <dt>&lsquo;<samp>whites</samp>&rsquo;</dt>
  29804. <dd><p>Adjustments for white pixels (pixels where all components are greater than 128)
  29805. </p></dd>
  29806. <dt>&lsquo;<samp>neutrals</samp>&rsquo;</dt>
  29807. <dd><p>Adjustments for all pixels except pure black and pure white
  29808. </p></dd>
  29809. <dt>&lsquo;<samp>blacks</samp>&rsquo;</dt>
  29810. <dd><p>Adjustments for black pixels (pixels where all components are lesser than 128)
  29811. </p></dd>
  29812. <dt>&lsquo;<samp>psfile</samp>&rsquo;</dt>
  29813. <dd><p>Specify a Photoshop selective color file (<code>.asv</code>) to import the settings from.
  29814. </p></dd>
  29815. </dl>
  29816. <p>All the adjustment settings (&lsquo;<samp>reds</samp>&rsquo;, &lsquo;<samp>yellows</samp>&rsquo;, ...) accept up to
  29817. 4 space separated floating point adjustment values in the [-1,1] range,
  29818. respectively to adjust the amount of cyan, magenta, yellow and black for the
  29819. pixels of its range.
  29820. </p>
  29821. <a name="Examples-151"></a>
  29822. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-151">32.182.1 Examples</a></h3>
  29823. <ul>
  29824. <li>
  29825. Increase cyan by 50% and reduce yellow by 33% in every green areas, and
  29826. increase magenta by 27% in blue areas:
  29827. <div class="example">
  29828. <pre class="example">selectivecolor=greens=.5 0 -.33 0:blues=0 .27
  29829. </pre></div>
  29830. </li><li>
  29831. Use a Photoshop selective color preset:
  29832. <div class="example">
  29833. <pre class="example">selectivecolor=psfile=MySelectiveColorPresets/Misty.asv
  29834. </pre></div>
  29835. </li></ul>
  29836. <p><a name="separatefields"></a>
  29837. </p><a name="separatefields-1"></a>
  29838. <h2 class="section"><a href="ffprobe-all.html#toc-separatefields-1">32.183 separatefields</a></h2>
  29839. <p>The <code>separatefields</code> takes a frame-based video input and splits
  29840. each frame into its components fields, producing a new half height clip
  29841. with twice the frame rate and twice the frame count.
  29842. </p>
  29843. <p>This filter use field-dominance information in frame to decide which
  29844. of each pair of fields to place first in the output.
  29845. If it gets it wrong use <a href="#setfield">setfield</a> filter before <code>separatefields</code> filter.
  29846. </p>
  29847. <a name="setdar_002c-setsar"></a>
  29848. <h2 class="section"><a href="ffprobe-all.html#toc-setdar_002c-setsar">32.184 setdar, setsar</a></h2>
  29849. <p>The <code>setdar</code> filter sets the Display Aspect Ratio for the filter
  29850. output video.
  29851. </p>
  29852. <p>This is done by changing the specified Sample (aka Pixel) Aspect
  29853. Ratio, according to the following equation:
  29854. </p><div class="example">
  29855. <pre class="example"><var>DAR</var> = <var>HORIZONTAL_RESOLUTION</var> / <var>VERTICAL_RESOLUTION</var> * <var>SAR</var>
  29856. </pre></div>
  29857. <p>Keep in mind that the <code>setdar</code> filter does not modify the pixel
  29858. dimensions of the video frame. Also, the display aspect ratio set by
  29859. this filter may be changed by later filters in the filterchain,
  29860. e.g. in case of scaling or if another &quot;setdar&quot; or a &quot;setsar&quot; filter is
  29861. applied.
  29862. </p>
  29863. <p>The <code>setsar</code> filter sets the Sample (aka Pixel) Aspect Ratio for
  29864. the filter output video.
  29865. </p>
  29866. <p>Note that as a consequence of the application of this filter, the
  29867. output display aspect ratio will change according to the equation
  29868. above.
  29869. </p>
  29870. <p>Keep in mind that the sample aspect ratio set by the <code>setsar</code>
  29871. filter may be changed by later filters in the filterchain, e.g. if
  29872. another &quot;setsar&quot; or a &quot;setdar&quot; filter is applied.
  29873. </p>
  29874. <p>It accepts the following parameters:
  29875. </p>
  29876. <dl compact="compact">
  29877. <dt>&lsquo;<samp>r, ratio, dar (<code>setdar</code> only), sar (<code>setsar</code> only)</samp>&rsquo;</dt>
  29878. <dd><p>Set the aspect ratio used by the filter.
  29879. </p>
  29880. <p>The parameter can be a floating point number string, an expression, or
  29881. a string of the form <var>num</var>:<var>den</var>, where <var>num</var> and
  29882. <var>den</var> are the numerator and denominator of the aspect ratio. If
  29883. the parameter is not specified, it is assumed the value &quot;0&quot;.
  29884. In case the form &quot;<var>num</var>:<var>den</var>&quot; is used, the <code>:</code> character
  29885. should be escaped.
  29886. </p>
  29887. </dd>
  29888. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  29889. <dd><p>Set the maximum integer value to use for expressing numerator and
  29890. denominator when reducing the expressed aspect ratio to a rational.
  29891. Default value is <code>100</code>.
  29892. </p>
  29893. </dd>
  29894. </dl>
  29895. <p>The parameter <var>sar</var> is an expression containing
  29896. the following constants:
  29897. </p>
  29898. <dl compact="compact">
  29899. <dt>&lsquo;<samp>E, PI, PHI</samp>&rsquo;</dt>
  29900. <dd><p>These are approximated values for the mathematical constants e
  29901. (Euler&rsquo;s number), pi (Greek pi), and phi (the golden ratio).
  29902. </p>
  29903. </dd>
  29904. <dt>&lsquo;<samp>w, h</samp>&rsquo;</dt>
  29905. <dd><p>The input width and height.
  29906. </p>
  29907. </dd>
  29908. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  29909. <dd><p>These are the same as <var>w</var> / <var>h</var>.
  29910. </p>
  29911. </dd>
  29912. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  29913. <dd><p>The input sample aspect ratio.
  29914. </p>
  29915. </dd>
  29916. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  29917. <dd><p>The input display aspect ratio. It is the same as
  29918. (<var>w</var> / <var>h</var>) * <var>sar</var>.
  29919. </p>
  29920. </dd>
  29921. <dt>&lsquo;<samp>hsub, vsub</samp>&rsquo;</dt>
  29922. <dd><p>Horizontal and vertical chroma subsample values. For example, for the
  29923. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29924. </p></dd>
  29925. </dl>
  29926. <a name="Examples-135"></a>
  29927. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-135">32.184.1 Examples</a></h3>
  29928. <ul>
  29929. <li>
  29930. To change the display aspect ratio to 16:9, specify one of the following:
  29931. <div class="example">
  29932. <pre class="example">setdar=dar=1.77777
  29933. setdar=dar=16/9
  29934. </pre></div>
  29935. </li><li>
  29936. To change the sample aspect ratio to 10:11, specify:
  29937. <div class="example">
  29938. <pre class="example">setsar=sar=10/11
  29939. </pre></div>
  29940. </li><li>
  29941. To set a display aspect ratio of 16:9, and specify a maximum integer value of
  29942. 1000 in the aspect ratio reduction, use the command:
  29943. <div class="example">
  29944. <pre class="example">setdar=ratio=16/9:max=1000
  29945. </pre></div>
  29946. </li></ul>
  29947. <p><a name="setfield"></a>
  29948. </p><a name="setfield-1"></a>
  29949. <h2 class="section"><a href="ffprobe-all.html#toc-setfield-1">32.185 setfield</a></h2>
  29950. <p>Force field for the output video frame.
  29951. </p>
  29952. <p>The <code>setfield</code> filter marks the interlace type field for the
  29953. output frames. It does not change the input frame, but only sets the
  29954. corresponding property, which affects how the frame is treated by
  29955. following filters (e.g. <code>fieldorder</code> or <code>yadif</code>).
  29956. </p>
  29957. <p>The filter accepts the following options:
  29958. </p>
  29959. <dl compact="compact">
  29960. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  29961. <dd><p>Available values are:
  29962. </p>
  29963. <dl compact="compact">
  29964. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29965. <dd><p>Keep the same field property.
  29966. </p>
  29967. </dd>
  29968. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  29969. <dd><p>Mark the frame as bottom-field-first.
  29970. </p>
  29971. </dd>
  29972. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  29973. <dd><p>Mark the frame as top-field-first.
  29974. </p>
  29975. </dd>
  29976. <dt>&lsquo;<samp>prog</samp>&rsquo;</dt>
  29977. <dd><p>Mark the frame as progressive.
  29978. </p></dd>
  29979. </dl>
  29980. </dd>
  29981. </dl>
  29982. <p><a name="setparams"></a>
  29983. </p><a name="setparams-1"></a>
  29984. <h2 class="section"><a href="ffprobe-all.html#toc-setparams-1">32.186 setparams</a></h2>
  29985. <p>Force frame parameter for the output video frame.
  29986. </p>
  29987. <p>The <code>setparams</code> filter marks interlace and color range for the
  29988. output frames. It does not change the input frame, but only sets the
  29989. corresponding property, which affects how the frame is treated by
  29990. filters/encoders.
  29991. </p>
  29992. <dl compact="compact">
  29993. <dt>&lsquo;<samp>field_mode</samp>&rsquo;</dt>
  29994. <dd><p>Available values are:
  29995. </p>
  29996. <dl compact="compact">
  29997. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29998. <dd><p>Keep the same field property (default).
  29999. </p>
  30000. </dd>
  30001. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  30002. <dd><p>Mark the frame as bottom-field-first.
  30003. </p>
  30004. </dd>
  30005. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  30006. <dd><p>Mark the frame as top-field-first.
  30007. </p>
  30008. </dd>
  30009. <dt>&lsquo;<samp>prog</samp>&rsquo;</dt>
  30010. <dd><p>Mark the frame as progressive.
  30011. </p></dd>
  30012. </dl>
  30013. </dd>
  30014. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  30015. <dd><p>Available values are:
  30016. </p>
  30017. <dl compact="compact">
  30018. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  30019. <dd><p>Keep the same color range property (default).
  30020. </p>
  30021. </dd>
  30022. <dt>&lsquo;<samp>unspecified, unknown</samp>&rsquo;</dt>
  30023. <dd><p>Mark the frame as unspecified color range.
  30024. </p>
  30025. </dd>
  30026. <dt>&lsquo;<samp>limited, tv, mpeg</samp>&rsquo;</dt>
  30027. <dd><p>Mark the frame as limited range.
  30028. </p>
  30029. </dd>
  30030. <dt>&lsquo;<samp>full, pc, jpeg</samp>&rsquo;</dt>
  30031. <dd><p>Mark the frame as full range.
  30032. </p></dd>
  30033. </dl>
  30034. </dd>
  30035. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  30036. <dd><p>Set the color primaries.
  30037. Available values are:
  30038. </p>
  30039. <dl compact="compact">
  30040. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  30041. <dd><p>Keep the same color primaries property (default).
  30042. </p>
  30043. </dd>
  30044. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  30045. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  30046. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  30047. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  30048. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  30049. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  30050. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  30051. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  30052. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  30053. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  30054. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  30055. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  30056. </dl>
  30057. </dd>
  30058. <dt>&lsquo;<samp>color_trc</samp>&rsquo;</dt>
  30059. <dd><p>Set the color transfer.
  30060. Available values are:
  30061. </p>
  30062. <dl compact="compact">
  30063. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  30064. <dd><p>Keep the same color trc property (default).
  30065. </p>
  30066. </dd>
  30067. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  30068. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  30069. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  30070. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  30071. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  30072. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  30073. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  30074. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  30075. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  30076. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  30077. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  30078. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  30079. <dt>&lsquo;<samp>bt2020-10</samp>&rsquo;</dt>
  30080. <dt>&lsquo;<samp>bt2020-12</samp>&rsquo;</dt>
  30081. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  30082. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  30083. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  30084. </dl>
  30085. </dd>
  30086. <dt>&lsquo;<samp>colorspace</samp>&rsquo;</dt>
  30087. <dd><p>Set the colorspace.
  30088. Available values are:
  30089. </p>
  30090. <dl compact="compact">
  30091. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  30092. <dd><p>Keep the same colorspace property (default).
  30093. </p>
  30094. </dd>
  30095. <dt>&lsquo;<samp>gbr</samp>&rsquo;</dt>
  30096. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  30097. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  30098. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  30099. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  30100. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  30101. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  30102. <dt>&lsquo;<samp>ycgco</samp>&rsquo;</dt>
  30103. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  30104. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  30105. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  30106. <dt>&lsquo;<samp>chroma-derived-nc</samp>&rsquo;</dt>
  30107. <dt>&lsquo;<samp>chroma-derived-c</samp>&rsquo;</dt>
  30108. <dt>&lsquo;<samp>ictcp</samp>&rsquo;</dt>
  30109. </dl>
  30110. </dd>
  30111. </dl>
  30112. <a name="showinfo"></a>
  30113. <h2 class="section"><a href="ffprobe-all.html#toc-showinfo">32.187 showinfo</a></h2>
  30114. <p>Show a line containing various information for each input video frame.
  30115. The input video is not modified.
  30116. </p>
  30117. <p>This filter supports the following options:
  30118. </p>
  30119. <dl compact="compact">
  30120. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  30121. <dd><p>Calculate checksums of each plane. By default enabled.
  30122. </p></dd>
  30123. </dl>
  30124. <p>The shown line contains a sequence of key/value pairs of the form
  30125. <var>key</var>:<var>value</var>.
  30126. </p>
  30127. <p>The following values are shown in the output:
  30128. </p>
  30129. <dl compact="compact">
  30130. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  30131. <dd><p>The (sequential) number of the input frame, starting from 0.
  30132. </p>
  30133. </dd>
  30134. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  30135. <dd><p>The Presentation TimeStamp of the input frame, expressed as a number of
  30136. time base units. The time base unit depends on the filter input pad.
  30137. </p>
  30138. </dd>
  30139. <dt>&lsquo;<samp>pts_time</samp>&rsquo;</dt>
  30140. <dd><p>The Presentation TimeStamp of the input frame, expressed as a number of
  30141. seconds.
  30142. </p>
  30143. </dd>
  30144. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  30145. <dd><p>The position of the frame in the input stream, or -1 if this information is
  30146. unavailable and/or meaningless (for example in case of synthetic video).
  30147. </p>
  30148. </dd>
  30149. <dt>&lsquo;<samp>fmt</samp>&rsquo;</dt>
  30150. <dd><p>The pixel format name.
  30151. </p>
  30152. </dd>
  30153. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  30154. <dd><p>The sample aspect ratio of the input frame, expressed in the form
  30155. <var>num</var>/<var>den</var>.
  30156. </p>
  30157. </dd>
  30158. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  30159. <dd><p>The size of the input frame. For the syntax of this option, check the
  30160. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  30161. </p>
  30162. </dd>
  30163. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  30164. <dd><p>The type of interlaced mode (&quot;P&quot; for &quot;progressive&quot;, &quot;T&quot; for top field first, &quot;B&quot;
  30165. for bottom field first).
  30166. </p>
  30167. </dd>
  30168. <dt>&lsquo;<samp>iskey</samp>&rsquo;</dt>
  30169. <dd><p>This is 1 if the frame is a key frame, 0 otherwise.
  30170. </p>
  30171. </dd>
  30172. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  30173. <dd><p>The picture type of the input frame (&quot;I&quot; for an I-frame, &quot;P&quot; for a
  30174. P-frame, &quot;B&quot; for a B-frame, or &quot;?&quot; for an unknown type).
  30175. Also refer to the documentation of the <code>AVPictureType</code> enum and of
  30176. the <code>av_get_picture_type_char</code> function defined in
  30177. &lsquo;<tt>libavutil/avutil.h</tt>&rsquo;.
  30178. </p>
  30179. </dd>
  30180. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  30181. <dd><p>The Adler-32 checksum (printed in hexadecimal) of all the planes of the input frame.
  30182. </p>
  30183. </dd>
  30184. <dt>&lsquo;<samp>plane_checksum</samp>&rsquo;</dt>
  30185. <dd><p>The Adler-32 checksum (printed in hexadecimal) of each plane of the input frame,
  30186. expressed in the form &quot;[<var>c0</var> <var>c1</var> <var>c2</var> <var>c3</var>]&quot;.
  30187. </p>
  30188. </dd>
  30189. <dt>&lsquo;<samp>mean</samp>&rsquo;</dt>
  30190. <dd><p>The mean value of pixels in each plane of the input frame, expressed in the form
  30191. &quot;[<var>mean0</var> <var>mean1</var> <var>mean2</var> <var>mean3</var>]&quot;.
  30192. </p>
  30193. </dd>
  30194. <dt>&lsquo;<samp>stdev</samp>&rsquo;</dt>
  30195. <dd><p>The standard deviation of pixel values in each plane of the input frame, expressed
  30196. in the form &quot;[<var>stdev0</var> <var>stdev1</var> <var>stdev2</var> <var>stdev3</var>]&quot;.
  30197. </p>
  30198. </dd>
  30199. </dl>
  30200. <a name="showpalette"></a>
  30201. <h2 class="section"><a href="ffprobe-all.html#toc-showpalette">32.188 showpalette</a></h2>
  30202. <p>Displays the 256 colors palette of each frame. This filter is only relevant for
  30203. <var>pal8</var> pixel format frames.
  30204. </p>
  30205. <p>It accepts the following option:
  30206. </p>
  30207. <dl compact="compact">
  30208. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  30209. <dd><p>Set the size of the box used to represent one palette color entry. Default is
  30210. <code>30</code> (for a <code>30x30</code> pixel box).
  30211. </p></dd>
  30212. </dl>
  30213. <a name="shuffleframes"></a>
  30214. <h2 class="section"><a href="ffprobe-all.html#toc-shuffleframes">32.189 shuffleframes</a></h2>
  30215. <p>Reorder and/or duplicate and/or drop video frames.
  30216. </p>
  30217. <p>It accepts the following parameters:
  30218. </p>
  30219. <dl compact="compact">
  30220. <dt>&lsquo;<samp>mapping</samp>&rsquo;</dt>
  30221. <dd><p>Set the destination indexes of input frames.
  30222. This is space or &rsquo;|&rsquo; separated list of indexes that maps input frames to output
  30223. frames. Number of indexes also sets maximal value that each index may have.
  30224. &rsquo;-1&rsquo; index have special meaning and that is to drop frame.
  30225. </p></dd>
  30226. </dl>
  30227. <p>The first frame has the index 0. The default is to keep the input unchanged.
  30228. </p>
  30229. <a name="Examples-146"></a>
  30230. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-146">32.189.1 Examples</a></h3>
  30231. <ul>
  30232. <li>
  30233. Swap second and third frame of every three frames of the input:
  30234. <div class="example">
  30235. <pre class="example">ffmpeg -i INPUT -vf &quot;shuffleframes=0 2 1&quot; OUTPUT
  30236. </pre></div>
  30237. </li><li>
  30238. Swap 10th and 1st frame of every ten frames of the input:
  30239. <div class="example">
  30240. <pre class="example">ffmpeg -i INPUT -vf &quot;shuffleframes=9 1 2 3 4 5 6 7 8 0&quot; OUTPUT
  30241. </pre></div>
  30242. </li></ul>
  30243. <a name="shuffleplanes"></a>
  30244. <h2 class="section"><a href="ffprobe-all.html#toc-shuffleplanes">32.190 shuffleplanes</a></h2>
  30245. <p>Reorder and/or duplicate video planes.
  30246. </p>
  30247. <p>It accepts the following parameters:
  30248. </p>
  30249. <dl compact="compact">
  30250. <dt>&lsquo;<samp>map0</samp>&rsquo;</dt>
  30251. <dd><p>The index of the input plane to be used as the first output plane.
  30252. </p>
  30253. </dd>
  30254. <dt>&lsquo;<samp>map1</samp>&rsquo;</dt>
  30255. <dd><p>The index of the input plane to be used as the second output plane.
  30256. </p>
  30257. </dd>
  30258. <dt>&lsquo;<samp>map2</samp>&rsquo;</dt>
  30259. <dd><p>The index of the input plane to be used as the third output plane.
  30260. </p>
  30261. </dd>
  30262. <dt>&lsquo;<samp>map3</samp>&rsquo;</dt>
  30263. <dd><p>The index of the input plane to be used as the fourth output plane.
  30264. </p>
  30265. </dd>
  30266. </dl>
  30267. <p>The first plane has the index 0. The default is to keep the input unchanged.
  30268. </p>
  30269. <a name="Examples-89"></a>
  30270. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-89">32.190.1 Examples</a></h3>
  30271. <ul>
  30272. <li>
  30273. Swap the second and third planes of the input:
  30274. <div class="example">
  30275. <pre class="example">ffmpeg -i INPUT -vf shuffleplanes=0:2:1:3 OUTPUT
  30276. </pre></div>
  30277. </li></ul>
  30278. <p><a name="signalstats"></a>
  30279. </p><a name="signalstats-1"></a>
  30280. <h2 class="section"><a href="ffprobe-all.html#toc-signalstats-1">32.191 signalstats</a></h2>
  30281. <p>Evaluate various visual metrics that assist in determining issues associated
  30282. with the digitization of analog video media.
  30283. </p>
  30284. <p>By default the filter will log these metadata values:
  30285. </p>
  30286. <dl compact="compact">
  30287. <dt>&lsquo;<samp>YMIN</samp>&rsquo;</dt>
  30288. <dd><p>Display the minimal Y value contained within the input frame. Expressed in
  30289. range of [0-255].
  30290. </p>
  30291. </dd>
  30292. <dt>&lsquo;<samp>YLOW</samp>&rsquo;</dt>
  30293. <dd><p>Display the Y value at the 10% percentile within the input frame. Expressed in
  30294. range of [0-255].
  30295. </p>
  30296. </dd>
  30297. <dt>&lsquo;<samp>YAVG</samp>&rsquo;</dt>
  30298. <dd><p>Display the average Y value within the input frame. Expressed in range of
  30299. [0-255].
  30300. </p>
  30301. </dd>
  30302. <dt>&lsquo;<samp>YHIGH</samp>&rsquo;</dt>
  30303. <dd><p>Display the Y value at the 90% percentile within the input frame. Expressed in
  30304. range of [0-255].
  30305. </p>
  30306. </dd>
  30307. <dt>&lsquo;<samp>YMAX</samp>&rsquo;</dt>
  30308. <dd><p>Display the maximum Y value contained within the input frame. Expressed in
  30309. range of [0-255].
  30310. </p>
  30311. </dd>
  30312. <dt>&lsquo;<samp>UMIN</samp>&rsquo;</dt>
  30313. <dd><p>Display the minimal U value contained within the input frame. Expressed in
  30314. range of [0-255].
  30315. </p>
  30316. </dd>
  30317. <dt>&lsquo;<samp>ULOW</samp>&rsquo;</dt>
  30318. <dd><p>Display the U value at the 10% percentile within the input frame. Expressed in
  30319. range of [0-255].
  30320. </p>
  30321. </dd>
  30322. <dt>&lsquo;<samp>UAVG</samp>&rsquo;</dt>
  30323. <dd><p>Display the average U value within the input frame. Expressed in range of
  30324. [0-255].
  30325. </p>
  30326. </dd>
  30327. <dt>&lsquo;<samp>UHIGH</samp>&rsquo;</dt>
  30328. <dd><p>Display the U value at the 90% percentile within the input frame. Expressed in
  30329. range of [0-255].
  30330. </p>
  30331. </dd>
  30332. <dt>&lsquo;<samp>UMAX</samp>&rsquo;</dt>
  30333. <dd><p>Display the maximum U value contained within the input frame. Expressed in
  30334. range of [0-255].
  30335. </p>
  30336. </dd>
  30337. <dt>&lsquo;<samp>VMIN</samp>&rsquo;</dt>
  30338. <dd><p>Display the minimal V value contained within the input frame. Expressed in
  30339. range of [0-255].
  30340. </p>
  30341. </dd>
  30342. <dt>&lsquo;<samp>VLOW</samp>&rsquo;</dt>
  30343. <dd><p>Display the V value at the 10% percentile within the input frame. Expressed in
  30344. range of [0-255].
  30345. </p>
  30346. </dd>
  30347. <dt>&lsquo;<samp>VAVG</samp>&rsquo;</dt>
  30348. <dd><p>Display the average V value within the input frame. Expressed in range of
  30349. [0-255].
  30350. </p>
  30351. </dd>
  30352. <dt>&lsquo;<samp>VHIGH</samp>&rsquo;</dt>
  30353. <dd><p>Display the V value at the 90% percentile within the input frame. Expressed in
  30354. range of [0-255].
  30355. </p>
  30356. </dd>
  30357. <dt>&lsquo;<samp>VMAX</samp>&rsquo;</dt>
  30358. <dd><p>Display the maximum V value contained within the input frame. Expressed in
  30359. range of [0-255].
  30360. </p>
  30361. </dd>
  30362. <dt>&lsquo;<samp>SATMIN</samp>&rsquo;</dt>
  30363. <dd><p>Display the minimal saturation value contained within the input frame.
  30364. Expressed in range of [0-~181.02].
  30365. </p>
  30366. </dd>
  30367. <dt>&lsquo;<samp>SATLOW</samp>&rsquo;</dt>
  30368. <dd><p>Display the saturation value at the 10% percentile within the input frame.
  30369. Expressed in range of [0-~181.02].
  30370. </p>
  30371. </dd>
  30372. <dt>&lsquo;<samp>SATAVG</samp>&rsquo;</dt>
  30373. <dd><p>Display the average saturation value within the input frame. Expressed in range
  30374. of [0-~181.02].
  30375. </p>
  30376. </dd>
  30377. <dt>&lsquo;<samp>SATHIGH</samp>&rsquo;</dt>
  30378. <dd><p>Display the saturation value at the 90% percentile within the input frame.
  30379. Expressed in range of [0-~181.02].
  30380. </p>
  30381. </dd>
  30382. <dt>&lsquo;<samp>SATMAX</samp>&rsquo;</dt>
  30383. <dd><p>Display the maximum saturation value contained within the input frame.
  30384. Expressed in range of [0-~181.02].
  30385. </p>
  30386. </dd>
  30387. <dt>&lsquo;<samp>HUEMED</samp>&rsquo;</dt>
  30388. <dd><p>Display the median value for hue within the input frame. Expressed in range of
  30389. [0-360].
  30390. </p>
  30391. </dd>
  30392. <dt>&lsquo;<samp>HUEAVG</samp>&rsquo;</dt>
  30393. <dd><p>Display the average value for hue within the input frame. Expressed in range of
  30394. [0-360].
  30395. </p>
  30396. </dd>
  30397. <dt>&lsquo;<samp>YDIF</samp>&rsquo;</dt>
  30398. <dd><p>Display the average of sample value difference between all values of the Y
  30399. plane in the current frame and corresponding values of the previous input frame.
  30400. Expressed in range of [0-255].
  30401. </p>
  30402. </dd>
  30403. <dt>&lsquo;<samp>UDIF</samp>&rsquo;</dt>
  30404. <dd><p>Display the average of sample value difference between all values of the U
  30405. plane in the current frame and corresponding values of the previous input frame.
  30406. Expressed in range of [0-255].
  30407. </p>
  30408. </dd>
  30409. <dt>&lsquo;<samp>VDIF</samp>&rsquo;</dt>
  30410. <dd><p>Display the average of sample value difference between all values of the V
  30411. plane in the current frame and corresponding values of the previous input frame.
  30412. Expressed in range of [0-255].
  30413. </p>
  30414. </dd>
  30415. <dt>&lsquo;<samp>YBITDEPTH</samp>&rsquo;</dt>
  30416. <dd><p>Display bit depth of Y plane in current frame.
  30417. Expressed in range of [0-16].
  30418. </p>
  30419. </dd>
  30420. <dt>&lsquo;<samp>UBITDEPTH</samp>&rsquo;</dt>
  30421. <dd><p>Display bit depth of U plane in current frame.
  30422. Expressed in range of [0-16].
  30423. </p>
  30424. </dd>
  30425. <dt>&lsquo;<samp>VBITDEPTH</samp>&rsquo;</dt>
  30426. <dd><p>Display bit depth of V plane in current frame.
  30427. Expressed in range of [0-16].
  30428. </p></dd>
  30429. </dl>
  30430. <p>The filter accepts the following options:
  30431. </p>
  30432. <dl compact="compact">
  30433. <dt>&lsquo;<samp>stat</samp>&rsquo;</dt>
  30434. <dt>&lsquo;<samp>out</samp>&rsquo;</dt>
  30435. <dd>
  30436. <p>&lsquo;<samp>stat</samp>&rsquo; specify an additional form of image analysis.
  30437. &lsquo;<samp>out</samp>&rsquo; output video with the specified type of pixel highlighted.
  30438. </p>
  30439. <p>Both options accept the following values:
  30440. </p>
  30441. <dl compact="compact">
  30442. <dt>&lsquo;<samp>tout</samp>&rsquo;</dt>
  30443. <dd><p>Identify <var>temporal outliers</var> pixels. A <var>temporal outlier</var> is a pixel
  30444. unlike the neighboring pixels of the same field. Examples of temporal outliers
  30445. include the results of video dropouts, head clogs, or tape tracking issues.
  30446. </p>
  30447. </dd>
  30448. <dt>&lsquo;<samp>vrep</samp>&rsquo;</dt>
  30449. <dd><p>Identify <var>vertical line repetition</var>. Vertical line repetition includes
  30450. similar rows of pixels within a frame. In born-digital video vertical line
  30451. repetition is common, but this pattern is uncommon in video digitized from an
  30452. analog source. When it occurs in video that results from the digitization of an
  30453. analog source it can indicate concealment from a dropout compensator.
  30454. </p>
  30455. </dd>
  30456. <dt>&lsquo;<samp>brng</samp>&rsquo;</dt>
  30457. <dd><p>Identify pixels that fall outside of legal broadcast range.
  30458. </p></dd>
  30459. </dl>
  30460. </dd>
  30461. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  30462. <dd><p>Set the highlight color for the &lsquo;<samp>out</samp>&rsquo; option. The default color is
  30463. yellow.
  30464. </p></dd>
  30465. </dl>
  30466. <a name="Examples-105"></a>
  30467. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-105">32.191.1 Examples</a></h3>
  30468. <ul>
  30469. <li>
  30470. Output data of various video metrics:
  30471. <div class="example">
  30472. <pre class="example">ffprobe -f lavfi movie=example.mov,signalstats=&quot;stat=tout+vrep+brng&quot; -show_frames
  30473. </pre></div>
  30474. </li><li>
  30475. Output specific data about the minimum and maximum values of the Y plane per frame:
  30476. <div class="example">
  30477. <pre class="example">ffprobe -f lavfi movie=example.mov,signalstats -show_entries frame_tags=lavfi.signalstats.YMAX,lavfi.signalstats.YMIN
  30478. </pre></div>
  30479. </li><li>
  30480. Playback video while highlighting pixels that are outside of broadcast range in red.
  30481. <div class="example">
  30482. <pre class="example">ffplay example.mov -vf signalstats=&quot;out=brng:color=red&quot;
  30483. </pre></div>
  30484. </li><li>
  30485. Playback video with signalstats metadata drawn over the frame.
  30486. <div class="example">
  30487. <pre class="example">ffplay example.mov -vf signalstats=stat=brng+vrep+tout,drawtext=fontfile=FreeSerif.ttf:textfile=signalstat_drawtext.txt
  30488. </pre></div>
  30489. <p>The contents of signalstat_drawtext.txt used in the command are:
  30490. </p><div class="example">
  30491. <pre class="example">time %{pts:hms}
  30492. Y (%{metadata:lavfi.signalstats.YMIN}-%{metadata:lavfi.signalstats.YMAX})
  30493. U (%{metadata:lavfi.signalstats.UMIN}-%{metadata:lavfi.signalstats.UMAX})
  30494. V (%{metadata:lavfi.signalstats.VMIN}-%{metadata:lavfi.signalstats.VMAX})
  30495. saturation maximum: %{metadata:lavfi.signalstats.SATMAX}
  30496. </pre></div>
  30497. </li></ul>
  30498. <p><a name="signature"></a>
  30499. </p><a name="signature-1"></a>
  30500. <h2 class="section"><a href="ffprobe-all.html#toc-signature-1">32.192 signature</a></h2>
  30501. <p>Calculates the MPEG-7 Video Signature. The filter can handle more than one
  30502. input. In this case the matching between the inputs can be calculated additionally.
  30503. The filter always passes through the first input. The signature of each stream can
  30504. be written into a file.
  30505. </p>
  30506. <p>It accepts the following options:
  30507. </p>
  30508. <dl compact="compact">
  30509. <dt>&lsquo;<samp>detectmode</samp>&rsquo;</dt>
  30510. <dd><p>Enable or disable the matching process.
  30511. </p>
  30512. <p>Available values are:
  30513. </p>
  30514. <dl compact="compact">
  30515. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  30516. <dd><p>Disable the calculation of a matching (default).
  30517. </p></dd>
  30518. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  30519. <dd><p>Calculate the matching for the whole video and output whether the whole video
  30520. matches or only parts.
  30521. </p></dd>
  30522. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  30523. <dd><p>Calculate only until a matching is found or the video ends. Should be faster in
  30524. some cases.
  30525. </p></dd>
  30526. </dl>
  30527. </dd>
  30528. <dt>&lsquo;<samp>nb_inputs</samp>&rsquo;</dt>
  30529. <dd><p>Set the number of inputs. The option value must be a non negative integer.
  30530. Default value is 1.
  30531. </p>
  30532. </dd>
  30533. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  30534. <dd><p>Set the path to which the output is written. If there is more than one input,
  30535. the path must be a prototype, i.e. must contain %d or %0nd (where n is a positive
  30536. integer), that will be replaced with the input number. If no filename is
  30537. specified, no output will be written. This is the default.
  30538. </p>
  30539. </dd>
  30540. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  30541. <dd><p>Choose the output format.
  30542. </p>
  30543. <p>Available values are:
  30544. </p>
  30545. <dl compact="compact">
  30546. <dt>&lsquo;<samp>binary</samp>&rsquo;</dt>
  30547. <dd><p>Use the specified binary representation (default).
  30548. </p></dd>
  30549. <dt>&lsquo;<samp>xml</samp>&rsquo;</dt>
  30550. <dd><p>Use the specified xml representation.
  30551. </p></dd>
  30552. </dl>
  30553. </dd>
  30554. <dt>&lsquo;<samp>th_d</samp>&rsquo;</dt>
  30555. <dd><p>Set threshold to detect one word as similar. The option value must be an integer
  30556. greater than zero. The default value is 9000.
  30557. </p>
  30558. </dd>
  30559. <dt>&lsquo;<samp>th_dc</samp>&rsquo;</dt>
  30560. <dd><p>Set threshold to detect all words as similar. The option value must be an integer
  30561. greater than zero. The default value is 60000.
  30562. </p>
  30563. </dd>
  30564. <dt>&lsquo;<samp>th_xh</samp>&rsquo;</dt>
  30565. <dd><p>Set threshold to detect frames as similar. The option value must be an integer
  30566. greater than zero. The default value is 116.
  30567. </p>
  30568. </dd>
  30569. <dt>&lsquo;<samp>th_di</samp>&rsquo;</dt>
  30570. <dd><p>Set the minimum length of a sequence in frames to recognize it as matching
  30571. sequence. The option value must be a non negative integer value.
  30572. The default value is 0.
  30573. </p>
  30574. </dd>
  30575. <dt>&lsquo;<samp>th_it</samp>&rsquo;</dt>
  30576. <dd><p>Set the minimum relation, that matching frames to all frames must have.
  30577. The option value must be a double value between 0 and 1. The default value is 0.5.
  30578. </p></dd>
  30579. </dl>
  30580. <a name="Examples-132"></a>
  30581. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-132">32.192.1 Examples</a></h3>
  30582. <ul>
  30583. <li>
  30584. To calculate the signature of an input video and store it in signature.bin:
  30585. <div class="example">
  30586. <pre class="example">ffmpeg -i input.mkv -vf signature=filename=signature.bin -map 0:v -f null -
  30587. </pre></div>
  30588. </li><li>
  30589. To detect whether two videos match and store the signatures in XML format in
  30590. signature0.xml and signature1.xml:
  30591. <div class="example">
  30592. <pre class="example">ffmpeg -i input1.mkv -i input2.mkv -filter_complex &quot;[0:v][1:v] signature=nb_inputs=2:detectmode=full:format=xml:filename=signature%d.xml&quot; -map :v -f null -
  30593. </pre></div>
  30594. </li></ul>
  30595. <p><a name="smartblur"></a>
  30596. </p><a name="smartblur-1"></a>
  30597. <h2 class="section"><a href="ffprobe-all.html#toc-smartblur-1">32.193 smartblur</a></h2>
  30598. <p>Blur the input video without impacting the outlines.
  30599. </p>
  30600. <p>It accepts the following options:
  30601. </p>
  30602. <dl compact="compact">
  30603. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  30604. <dd><p>Set the luma radius. The option value must be a float number in
  30605. the range [0.1,5.0] that specifies the variance of the gaussian filter
  30606. used to blur the image (slower if larger). Default value is 1.0.
  30607. </p>
  30608. </dd>
  30609. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  30610. <dd><p>Set the luma strength. The option value must be a float number
  30611. in the range [-1.0,1.0] that configures the blurring. A value included
  30612. in [0.0,1.0] will blur the image whereas a value included in
  30613. [-1.0,0.0] will sharpen the image. Default value is 1.0.
  30614. </p>
  30615. </dd>
  30616. <dt>&lsquo;<samp>luma_threshold, lt</samp>&rsquo;</dt>
  30617. <dd><p>Set the luma threshold used as a coefficient to determine
  30618. whether a pixel should be blurred or not. The option value must be an
  30619. integer in the range [-30,30]. A value of 0 will filter all the image,
  30620. a value included in [0,30] will filter flat areas and a value included
  30621. in [-30,0] will filter edges. Default value is 0.
  30622. </p>
  30623. </dd>
  30624. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  30625. <dd><p>Set the chroma radius. The option value must be a float number in
  30626. the range [0.1,5.0] that specifies the variance of the gaussian filter
  30627. used to blur the image (slower if larger). Default value is &lsquo;<samp>luma_radius</samp>&rsquo;.
  30628. </p>
  30629. </dd>
  30630. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  30631. <dd><p>Set the chroma strength. The option value must be a float number
  30632. in the range [-1.0,1.0] that configures the blurring. A value included
  30633. in [0.0,1.0] will blur the image whereas a value included in
  30634. [-1.0,0.0] will sharpen the image. Default value is &lsquo;<samp>luma_strength</samp>&rsquo;.
  30635. </p>
  30636. </dd>
  30637. <dt>&lsquo;<samp>chroma_threshold, ct</samp>&rsquo;</dt>
  30638. <dd><p>Set the chroma threshold used as a coefficient to determine
  30639. whether a pixel should be blurred or not. The option value must be an
  30640. integer in the range [-30,30]. A value of 0 will filter all the image,
  30641. a value included in [0,30] will filter flat areas and a value included
  30642. in [-30,0] will filter edges. Default value is &lsquo;<samp>luma_threshold</samp>&rsquo;.
  30643. </p></dd>
  30644. </dl>
  30645. <p>If a chroma option is not explicitly set, the corresponding luma value
  30646. is set.
  30647. </p>
  30648. <a name="sobel"></a>
  30649. <h2 class="section"><a href="ffprobe-all.html#toc-sobel">32.194 sobel</a></h2>
  30650. <p>Apply sobel operator to input video stream.
  30651. </p>
  30652. <p>The filter accepts the following option:
  30653. </p>
  30654. <dl compact="compact">
  30655. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  30656. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  30657. By default value 0xf, all planes will be processed.
  30658. </p>
  30659. </dd>
  30660. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  30661. <dd><p>Set value which will be multiplied with filtered result.
  30662. </p>
  30663. </dd>
  30664. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  30665. <dd><p>Set value which will be added to filtered result.
  30666. </p></dd>
  30667. </dl>
  30668. <p><a name="spp"></a>
  30669. </p><a name="spp-1"></a>
  30670. <h2 class="section"><a href="ffprobe-all.html#toc-spp-1">32.195 spp</a></h2>
  30671. <p>Apply a simple postprocessing filter that compresses and decompresses the image
  30672. at several (or - in the case of &lsquo;<samp>quality</samp>&rsquo; level <code>6</code> - all) shifts
  30673. and average the results.
  30674. </p>
  30675. <p>The filter accepts the following options:
  30676. </p>
  30677. <dl compact="compact">
  30678. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  30679. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  30680. an integer in the range 0-6. If set to <code>0</code>, the filter will have no
  30681. effect. A value of <code>6</code> means the higher quality. For each increment of
  30682. that value the speed drops by a factor of approximately 2. Default value is
  30683. <code>3</code>.
  30684. </p>
  30685. </dd>
  30686. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  30687. <dd><p>Force a constant quantization parameter. If not set, the filter will use the QP
  30688. from the video stream (if available).
  30689. </p>
  30690. </dd>
  30691. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  30692. <dd><p>Set thresholding mode. Available modes are:
  30693. </p>
  30694. <dl compact="compact">
  30695. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  30696. <dd><p>Set hard thresholding (default).
  30697. </p></dd>
  30698. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  30699. <dd><p>Set soft thresholding (better de-ringing effect, but likely blurrier).
  30700. </p></dd>
  30701. </dl>
  30702. </dd>
  30703. <dt>&lsquo;<samp>use_bframe_qp</samp>&rsquo;</dt>
  30704. <dd><p>Enable the use of the QP from the B-Frames if set to <code>1</code>. Using this
  30705. option may cause flicker since the B-Frames have often larger QP. Default is
  30706. <code>0</code> (not enabled).
  30707. </p></dd>
  30708. </dl>
  30709. <a name="Commands-28"></a>
  30710. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-28">32.195.1 Commands</a></h3>
  30711. <p>This filter supports the following commands:
  30712. </p><dl compact="compact">
  30713. <dt>&lsquo;<samp>quality, level</samp>&rsquo;</dt>
  30714. <dd><p>Set quality level. The value <code>max</code> can be used to set the maximum level,
  30715. currently <code>6</code>.
  30716. </p></dd>
  30717. </dl>
  30718. <p><a name="sr"></a>
  30719. </p><a name="sr-1"></a>
  30720. <h2 class="section"><a href="ffprobe-all.html#toc-sr-1">32.196 sr</a></h2>
  30721. <p>Scale the input by applying one of the super-resolution methods based on
  30722. convolutional neural networks. Supported models:
  30723. </p>
  30724. <ul>
  30725. <li>
  30726. Super-Resolution Convolutional Neural Network model (SRCNN).
  30727. See <a href="https://arxiv.org/abs/1501.00092">https://arxiv.org/abs/1501.00092</a>.
  30728. </li><li>
  30729. Efficient Sub-Pixel Convolutional Neural Network model (ESPCN).
  30730. See <a href="https://arxiv.org/abs/1609.05158">https://arxiv.org/abs/1609.05158</a>.
  30731. </li></ul>
  30732. <p>Training scripts as well as scripts for model file (.pb) saving can be found at
  30733. <a href="https://github.com/XueweiMeng/sr/tree/sr_dnn_native">https://github.com/XueweiMeng/sr/tree/sr_dnn_native</a>. Original repository
  30734. is at <a href="https://github.com/HighVoltageRocknRoll/sr.git">https://github.com/HighVoltageRocknRoll/sr.git</a>.
  30735. </p>
  30736. <p>Native model files (.model) can be generated from TensorFlow model
  30737. files (.pb) by using tools/python/convert.py
  30738. </p>
  30739. <p>The filter accepts the following options:
  30740. </p>
  30741. <dl compact="compact">
  30742. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  30743. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  30744. the following values:
  30745. </p>
  30746. <dl compact="compact">
  30747. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  30748. <dd><p>Native implementation of DNN loading and execution.
  30749. </p>
  30750. </dd>
  30751. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  30752. <dd><p>TensorFlow backend. To enable this backend you
  30753. need to install the TensorFlow for C library (see
  30754. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  30755. <code>--enable-libtensorflow</code>
  30756. </p></dd>
  30757. </dl>
  30758. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  30759. </p>
  30760. </dd>
  30761. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  30762. <dd><p>Set path to model file specifying network architecture and its parameters.
  30763. Note that different backends use different file formats. TensorFlow backend
  30764. can load files for both formats, while native backend can load files for only
  30765. its format.
  30766. </p>
  30767. </dd>
  30768. <dt>&lsquo;<samp>scale_factor</samp>&rsquo;</dt>
  30769. <dd><p>Set scale factor for SRCNN model. Allowed values are <code>2</code>, <code>3</code> and <code>4</code>.
  30770. Default value is <code>2</code>. Scale factor is necessary for SRCNN model, because it accepts
  30771. input upscaled using bicubic upscaling with proper scale factor.
  30772. </p></dd>
  30773. </dl>
  30774. <p>This feature can also be finished with <a href="#dnn_005fprocessing">dnn_processing</a> filter.
  30775. </p>
  30776. <a name="ssim"></a>
  30777. <h2 class="section"><a href="ffprobe-all.html#toc-ssim">32.197 ssim</a></h2>
  30778. <p>Obtain the SSIM (Structural SImilarity Metric) between two input videos.
  30779. </p>
  30780. <p>This filter takes in input two input videos, the first input is
  30781. considered the &quot;main&quot; source and is passed unchanged to the
  30782. output. The second input is used as a &quot;reference&quot; video for computing
  30783. the SSIM.
  30784. </p>
  30785. <p>Both video inputs must have the same resolution and pixel format for
  30786. this filter to work correctly. Also it assumes that both inputs
  30787. have the same number of frames, which are compared one by one.
  30788. </p>
  30789. <p>The filter stores the calculated SSIM of each frame.
  30790. </p>
  30791. <p>The description of the accepted parameters follows.
  30792. </p>
  30793. <dl compact="compact">
  30794. <dt>&lsquo;<samp>stats_file, f</samp>&rsquo;</dt>
  30795. <dd><p>If specified the filter will use the named file to save the SSIM of
  30796. each individual frame. When filename equals &quot;-&quot; the data is sent to
  30797. standard output.
  30798. </p></dd>
  30799. </dl>
  30800. <p>The file printed if <var>stats_file</var> is selected, contains a sequence of
  30801. key/value pairs of the form <var>key</var>:<var>value</var> for each compared
  30802. couple of frames.
  30803. </p>
  30804. <p>A description of each shown parameter follows:
  30805. </p>
  30806. <dl compact="compact">
  30807. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  30808. <dd><p>sequential number of the input frame, starting from 1
  30809. </p>
  30810. </dd>
  30811. <dt>&lsquo;<samp>Y, U, V, R, G, B</samp>&rsquo;</dt>
  30812. <dd><p>SSIM of the compared frames for the component specified by the suffix.
  30813. </p>
  30814. </dd>
  30815. <dt>&lsquo;<samp>All</samp>&rsquo;</dt>
  30816. <dd><p>SSIM of the compared frames for the whole frame.
  30817. </p>
  30818. </dd>
  30819. <dt>&lsquo;<samp>dB</samp>&rsquo;</dt>
  30820. <dd><p>Same as above but in dB representation.
  30821. </p></dd>
  30822. </dl>
  30823. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  30824. </p>
  30825. <a name="Examples-72"></a>
  30826. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-72">32.197.1 Examples</a></h3>
  30827. <ul>
  30828. <li>
  30829. For example:
  30830. <div class="example">
  30831. <pre class="example">movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
  30832. [main][ref] ssim=&quot;stats_file=stats.log&quot; [out]
  30833. </pre></div>
  30834. <p>On this example the input file being processed is compared with the
  30835. reference file &lsquo;<tt>ref_movie.mpg</tt>&rsquo;. The SSIM of each individual frame
  30836. is stored in &lsquo;<tt>stats.log</tt>&rsquo;.
  30837. </p>
  30838. </li><li>
  30839. Another example with both psnr and ssim at same time:
  30840. <div class="example">
  30841. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi &quot;ssim;[0:v][1:v]psnr&quot; -f null -
  30842. </pre></div>
  30843. </li><li>
  30844. Another example with different containers:
  30845. <div class="example">
  30846. <pre class="example">ffmpeg -i main.mpg -i ref.mkv -lavfi &quot;[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]ssim&quot; -f null -
  30847. </pre></div>
  30848. </li></ul>
  30849. <a name="stereo3d"></a>
  30850. <h2 class="section"><a href="ffprobe-all.html#toc-stereo3d">32.198 stereo3d</a></h2>
  30851. <p>Convert between different stereoscopic image formats.
  30852. </p>
  30853. <p>The filters accept the following options:
  30854. </p>
  30855. <dl compact="compact">
  30856. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  30857. <dd><p>Set stereoscopic image format of input.
  30858. </p>
  30859. <p>Available values for input image formats are:
  30860. </p><dl compact="compact">
  30861. <dt>&lsquo;<samp>sbsl</samp>&rsquo;</dt>
  30862. <dd><p>side by side parallel (left eye left, right eye right)
  30863. </p>
  30864. </dd>
  30865. <dt>&lsquo;<samp>sbsr</samp>&rsquo;</dt>
  30866. <dd><p>side by side crosseye (right eye left, left eye right)
  30867. </p>
  30868. </dd>
  30869. <dt>&lsquo;<samp>sbs2l</samp>&rsquo;</dt>
  30870. <dd><p>side by side parallel with half width resolution
  30871. (left eye left, right eye right)
  30872. </p>
  30873. </dd>
  30874. <dt>&lsquo;<samp>sbs2r</samp>&rsquo;</dt>
  30875. <dd><p>side by side crosseye with half width resolution
  30876. (right eye left, left eye right)
  30877. </p>
  30878. </dd>
  30879. <dt>&lsquo;<samp>abl</samp>&rsquo;</dt>
  30880. <dt>&lsquo;<samp>tbl</samp>&rsquo;</dt>
  30881. <dd><p>above-below (left eye above, right eye below)
  30882. </p>
  30883. </dd>
  30884. <dt>&lsquo;<samp>abr</samp>&rsquo;</dt>
  30885. <dt>&lsquo;<samp>tbr</samp>&rsquo;</dt>
  30886. <dd><p>above-below (right eye above, left eye below)
  30887. </p>
  30888. </dd>
  30889. <dt>&lsquo;<samp>ab2l</samp>&rsquo;</dt>
  30890. <dt>&lsquo;<samp>tb2l</samp>&rsquo;</dt>
  30891. <dd><p>above-below with half height resolution
  30892. (left eye above, right eye below)
  30893. </p>
  30894. </dd>
  30895. <dt>&lsquo;<samp>ab2r</samp>&rsquo;</dt>
  30896. <dt>&lsquo;<samp>tb2r</samp>&rsquo;</dt>
  30897. <dd><p>above-below with half height resolution
  30898. (right eye above, left eye below)
  30899. </p>
  30900. </dd>
  30901. <dt>&lsquo;<samp>al</samp>&rsquo;</dt>
  30902. <dd><p>alternating frames (left eye first, right eye second)
  30903. </p>
  30904. </dd>
  30905. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  30906. <dd><p>alternating frames (right eye first, left eye second)
  30907. </p>
  30908. </dd>
  30909. <dt>&lsquo;<samp>irl</samp>&rsquo;</dt>
  30910. <dd><p>interleaved rows (left eye has top row, right eye starts on next row)
  30911. </p>
  30912. </dd>
  30913. <dt>&lsquo;<samp>irr</samp>&rsquo;</dt>
  30914. <dd><p>interleaved rows (right eye has top row, left eye starts on next row)
  30915. </p>
  30916. </dd>
  30917. <dt>&lsquo;<samp>icl</samp>&rsquo;</dt>
  30918. <dd><p>interleaved columns, left eye first
  30919. </p>
  30920. </dd>
  30921. <dt>&lsquo;<samp>icr</samp>&rsquo;</dt>
  30922. <dd><p>interleaved columns, right eye first
  30923. </p>
  30924. <p>Default value is &lsquo;<samp>sbsl</samp>&rsquo;.
  30925. </p></dd>
  30926. </dl>
  30927. </dd>
  30928. <dt>&lsquo;<samp>out</samp>&rsquo;</dt>
  30929. <dd><p>Set stereoscopic image format of output.
  30930. </p>
  30931. <dl compact="compact">
  30932. <dt>&lsquo;<samp>sbsl</samp>&rsquo;</dt>
  30933. <dd><p>side by side parallel (left eye left, right eye right)
  30934. </p>
  30935. </dd>
  30936. <dt>&lsquo;<samp>sbsr</samp>&rsquo;</dt>
  30937. <dd><p>side by side crosseye (right eye left, left eye right)
  30938. </p>
  30939. </dd>
  30940. <dt>&lsquo;<samp>sbs2l</samp>&rsquo;</dt>
  30941. <dd><p>side by side parallel with half width resolution
  30942. (left eye left, right eye right)
  30943. </p>
  30944. </dd>
  30945. <dt>&lsquo;<samp>sbs2r</samp>&rsquo;</dt>
  30946. <dd><p>side by side crosseye with half width resolution
  30947. (right eye left, left eye right)
  30948. </p>
  30949. </dd>
  30950. <dt>&lsquo;<samp>abl</samp>&rsquo;</dt>
  30951. <dt>&lsquo;<samp>tbl</samp>&rsquo;</dt>
  30952. <dd><p>above-below (left eye above, right eye below)
  30953. </p>
  30954. </dd>
  30955. <dt>&lsquo;<samp>abr</samp>&rsquo;</dt>
  30956. <dt>&lsquo;<samp>tbr</samp>&rsquo;</dt>
  30957. <dd><p>above-below (right eye above, left eye below)
  30958. </p>
  30959. </dd>
  30960. <dt>&lsquo;<samp>ab2l</samp>&rsquo;</dt>
  30961. <dt>&lsquo;<samp>tb2l</samp>&rsquo;</dt>
  30962. <dd><p>above-below with half height resolution
  30963. (left eye above, right eye below)
  30964. </p>
  30965. </dd>
  30966. <dt>&lsquo;<samp>ab2r</samp>&rsquo;</dt>
  30967. <dt>&lsquo;<samp>tb2r</samp>&rsquo;</dt>
  30968. <dd><p>above-below with half height resolution
  30969. (right eye above, left eye below)
  30970. </p>
  30971. </dd>
  30972. <dt>&lsquo;<samp>al</samp>&rsquo;</dt>
  30973. <dd><p>alternating frames (left eye first, right eye second)
  30974. </p>
  30975. </dd>
  30976. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  30977. <dd><p>alternating frames (right eye first, left eye second)
  30978. </p>
  30979. </dd>
  30980. <dt>&lsquo;<samp>irl</samp>&rsquo;</dt>
  30981. <dd><p>interleaved rows (left eye has top row, right eye starts on next row)
  30982. </p>
  30983. </dd>
  30984. <dt>&lsquo;<samp>irr</samp>&rsquo;</dt>
  30985. <dd><p>interleaved rows (right eye has top row, left eye starts on next row)
  30986. </p>
  30987. </dd>
  30988. <dt>&lsquo;<samp>arbg</samp>&rsquo;</dt>
  30989. <dd><p>anaglyph red/blue gray
  30990. (red filter on left eye, blue filter on right eye)
  30991. </p>
  30992. </dd>
  30993. <dt>&lsquo;<samp>argg</samp>&rsquo;</dt>
  30994. <dd><p>anaglyph red/green gray
  30995. (red filter on left eye, green filter on right eye)
  30996. </p>
  30997. </dd>
  30998. <dt>&lsquo;<samp>arcg</samp>&rsquo;</dt>
  30999. <dd><p>anaglyph red/cyan gray
  31000. (red filter on left eye, cyan filter on right eye)
  31001. </p>
  31002. </dd>
  31003. <dt>&lsquo;<samp>arch</samp>&rsquo;</dt>
  31004. <dd><p>anaglyph red/cyan half colored
  31005. (red filter on left eye, cyan filter on right eye)
  31006. </p>
  31007. </dd>
  31008. <dt>&lsquo;<samp>arcc</samp>&rsquo;</dt>
  31009. <dd><p>anaglyph red/cyan color
  31010. (red filter on left eye, cyan filter on right eye)
  31011. </p>
  31012. </dd>
  31013. <dt>&lsquo;<samp>arcd</samp>&rsquo;</dt>
  31014. <dd><p>anaglyph red/cyan color optimized with the least squares projection of dubois
  31015. (red filter on left eye, cyan filter on right eye)
  31016. </p>
  31017. </dd>
  31018. <dt>&lsquo;<samp>agmg</samp>&rsquo;</dt>
  31019. <dd><p>anaglyph green/magenta gray
  31020. (green filter on left eye, magenta filter on right eye)
  31021. </p>
  31022. </dd>
  31023. <dt>&lsquo;<samp>agmh</samp>&rsquo;</dt>
  31024. <dd><p>anaglyph green/magenta half colored
  31025. (green filter on left eye, magenta filter on right eye)
  31026. </p>
  31027. </dd>
  31028. <dt>&lsquo;<samp>agmc</samp>&rsquo;</dt>
  31029. <dd><p>anaglyph green/magenta colored
  31030. (green filter on left eye, magenta filter on right eye)
  31031. </p>
  31032. </dd>
  31033. <dt>&lsquo;<samp>agmd</samp>&rsquo;</dt>
  31034. <dd><p>anaglyph green/magenta color optimized with the least squares projection of dubois
  31035. (green filter on left eye, magenta filter on right eye)
  31036. </p>
  31037. </dd>
  31038. <dt>&lsquo;<samp>aybg</samp>&rsquo;</dt>
  31039. <dd><p>anaglyph yellow/blue gray
  31040. (yellow filter on left eye, blue filter on right eye)
  31041. </p>
  31042. </dd>
  31043. <dt>&lsquo;<samp>aybh</samp>&rsquo;</dt>
  31044. <dd><p>anaglyph yellow/blue half colored
  31045. (yellow filter on left eye, blue filter on right eye)
  31046. </p>
  31047. </dd>
  31048. <dt>&lsquo;<samp>aybc</samp>&rsquo;</dt>
  31049. <dd><p>anaglyph yellow/blue colored
  31050. (yellow filter on left eye, blue filter on right eye)
  31051. </p>
  31052. </dd>
  31053. <dt>&lsquo;<samp>aybd</samp>&rsquo;</dt>
  31054. <dd><p>anaglyph yellow/blue color optimized with the least squares projection of dubois
  31055. (yellow filter on left eye, blue filter on right eye)
  31056. </p>
  31057. </dd>
  31058. <dt>&lsquo;<samp>ml</samp>&rsquo;</dt>
  31059. <dd><p>mono output (left eye only)
  31060. </p>
  31061. </dd>
  31062. <dt>&lsquo;<samp>mr</samp>&rsquo;</dt>
  31063. <dd><p>mono output (right eye only)
  31064. </p>
  31065. </dd>
  31066. <dt>&lsquo;<samp>chl</samp>&rsquo;</dt>
  31067. <dd><p>checkerboard, left eye first
  31068. </p>
  31069. </dd>
  31070. <dt>&lsquo;<samp>chr</samp>&rsquo;</dt>
  31071. <dd><p>checkerboard, right eye first
  31072. </p>
  31073. </dd>
  31074. <dt>&lsquo;<samp>icl</samp>&rsquo;</dt>
  31075. <dd><p>interleaved columns, left eye first
  31076. </p>
  31077. </dd>
  31078. <dt>&lsquo;<samp>icr</samp>&rsquo;</dt>
  31079. <dd><p>interleaved columns, right eye first
  31080. </p>
  31081. </dd>
  31082. <dt>&lsquo;<samp>hdmi</samp>&rsquo;</dt>
  31083. <dd><p>HDMI frame pack
  31084. </p></dd>
  31085. </dl>
  31086. <p>Default value is &lsquo;<samp>arcd</samp>&rsquo;.
  31087. </p></dd>
  31088. </dl>
  31089. <a name="Examples-16"></a>
  31090. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-16">32.198.1 Examples</a></h3>
  31091. <ul>
  31092. <li>
  31093. Convert input video from side by side parallel to anaglyph yellow/blue dubois:
  31094. <div class="example">
  31095. <pre class="example">stereo3d=sbsl:aybd
  31096. </pre></div>
  31097. </li><li>
  31098. Convert input video from above below (left eye above, right eye below) to side by side crosseye.
  31099. <div class="example">
  31100. <pre class="example">stereo3d=abl:sbsr
  31101. </pre></div>
  31102. </li></ul>
  31103. <a name="streamselect_002c-astreamselect"></a>
  31104. <h2 class="section"><a href="ffprobe-all.html#toc-streamselect_002c-astreamselect">32.199 streamselect, astreamselect</a></h2>
  31105. <p>Select video or audio streams.
  31106. </p>
  31107. <p>The filter accepts the following options:
  31108. </p>
  31109. <dl compact="compact">
  31110. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  31111. <dd><p>Set number of inputs. Default is 2.
  31112. </p>
  31113. </dd>
  31114. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  31115. <dd><p>Set input indexes to remap to outputs.
  31116. </p></dd>
  31117. </dl>
  31118. <a name="Commands-39"></a>
  31119. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-39">32.199.1 Commands</a></h3>
  31120. <p>The <code>streamselect</code> and <code>astreamselect</code> filter supports the following
  31121. commands:
  31122. </p>
  31123. <dl compact="compact">
  31124. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  31125. <dd><p>Set input indexes to remap to outputs.
  31126. </p></dd>
  31127. </dl>
  31128. <a name="Examples-123"></a>
  31129. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-123">32.199.2 Examples</a></h3>
  31130. <ul>
  31131. <li>
  31132. Select first 5 seconds 1st stream and rest of time 2nd stream:
  31133. <div class="example">
  31134. <pre class="example">sendcmd='5.0 streamselect map 1',streamselect=inputs=2:map=0
  31135. </pre></div>
  31136. </li><li>
  31137. Same as above, but for audio:
  31138. <div class="example">
  31139. <pre class="example">asendcmd='5.0 astreamselect map 1',astreamselect=inputs=2:map=0
  31140. </pre></div>
  31141. </li></ul>
  31142. <p><a name="subtitles"></a>
  31143. </p><a name="subtitles-1"></a>
  31144. <h2 class="section"><a href="ffprobe-all.html#toc-subtitles-1">32.200 subtitles</a></h2>
  31145. <p>Draw subtitles on top of input video using the libass library.
  31146. </p>
  31147. <p>To enable compilation of this filter you need to configure FFmpeg with
  31148. <code>--enable-libass</code>. This filter also requires a build with libavcodec and
  31149. libavformat to convert the passed subtitles file to ASS (Advanced Substation
  31150. Alpha) subtitles format.
  31151. </p>
  31152. <p>The filter accepts the following options:
  31153. </p>
  31154. <dl compact="compact">
  31155. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  31156. <dd><p>Set the filename of the subtitle file to read. It must be specified.
  31157. </p>
  31158. </dd>
  31159. <dt>&lsquo;<samp>original_size</samp>&rsquo;</dt>
  31160. <dd><p>Specify the size of the original video, the video for which the ASS file
  31161. was composed. For the syntax of this option, check the
  31162. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  31163. Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to
  31164. correctly scale the fonts if the aspect ratio has been changed.
  31165. </p>
  31166. </dd>
  31167. <dt>&lsquo;<samp>fontsdir</samp>&rsquo;</dt>
  31168. <dd><p>Set a directory path containing fonts that can be used by the filter.
  31169. These fonts will be used in addition to whatever the font provider uses.
  31170. </p>
  31171. </dd>
  31172. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  31173. <dd><p>Process alpha channel, by default alpha channel is untouched.
  31174. </p>
  31175. </dd>
  31176. <dt>&lsquo;<samp>charenc</samp>&rsquo;</dt>
  31177. <dd><p>Set subtitles input character encoding. <code>subtitles</code> filter only. Only
  31178. useful if not UTF-8.
  31179. </p>
  31180. </dd>
  31181. <dt>&lsquo;<samp>stream_index, si</samp>&rsquo;</dt>
  31182. <dd><p>Set subtitles stream index. <code>subtitles</code> filter only.
  31183. </p>
  31184. </dd>
  31185. <dt>&lsquo;<samp>force_style</samp>&rsquo;</dt>
  31186. <dd><p>Override default style or script info parameters of the subtitles. It accepts a
  31187. string containing ASS style format <code>KEY=VALUE</code> couples separated by &quot;,&quot;.
  31188. </p></dd>
  31189. </dl>
  31190. <p>If the first key is not specified, it is assumed that the first value
  31191. specifies the &lsquo;<samp>filename</samp>&rsquo;.
  31192. </p>
  31193. <p>For example, to render the file &lsquo;<tt>sub.srt</tt>&rsquo; on top of the input
  31194. video, use the command:
  31195. </p><div class="example">
  31196. <pre class="example">subtitles=sub.srt
  31197. </pre></div>
  31198. <p>which is equivalent to:
  31199. </p><div class="example">
  31200. <pre class="example">subtitles=filename=sub.srt
  31201. </pre></div>
  31202. <p>To render the default subtitles stream from file &lsquo;<tt>video.mkv</tt>&rsquo;, use:
  31203. </p><div class="example">
  31204. <pre class="example">subtitles=video.mkv
  31205. </pre></div>
  31206. <p>To render the second subtitles stream from that file, use:
  31207. </p><div class="example">
  31208. <pre class="example">subtitles=video.mkv:si=1
  31209. </pre></div>
  31210. <p>To make the subtitles stream from &lsquo;<tt>sub.srt</tt>&rsquo; appear in 80% transparent blue
  31211. <code>DejaVu Serif</code>, use:
  31212. </p><div class="example">
  31213. <pre class="example">subtitles=sub.srt:force_style='FontName=DejaVu Serif,PrimaryColour=&amp;HCCFF0000'
  31214. </pre></div>
  31215. <a name="super2xsai"></a>
  31216. <h2 class="section"><a href="ffprobe-all.html#toc-super2xsai">32.201 super2xsai</a></h2>
  31217. <p>Scale the input by 2x and smooth using the Super2xSaI (Scale and
  31218. Interpolate) pixel art scaling algorithm.
  31219. </p>
  31220. <p>Useful for enlarging pixel art images without reducing sharpness.
  31221. </p>
  31222. <a name="swaprect"></a>
  31223. <h2 class="section"><a href="ffprobe-all.html#toc-swaprect">32.202 swaprect</a></h2>
  31224. <p>Swap two rectangular objects in video.
  31225. </p>
  31226. <p>This filter accepts the following options:
  31227. </p>
  31228. <dl compact="compact">
  31229. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  31230. <dd><p>Set object width.
  31231. </p>
  31232. </dd>
  31233. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  31234. <dd><p>Set object height.
  31235. </p>
  31236. </dd>
  31237. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  31238. <dd><p>Set 1st rect x coordinate.
  31239. </p>
  31240. </dd>
  31241. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  31242. <dd><p>Set 1st rect y coordinate.
  31243. </p>
  31244. </dd>
  31245. <dt>&lsquo;<samp>x2</samp>&rsquo;</dt>
  31246. <dd><p>Set 2nd rect x coordinate.
  31247. </p>
  31248. </dd>
  31249. <dt>&lsquo;<samp>y2</samp>&rsquo;</dt>
  31250. <dd><p>Set 2nd rect y coordinate.
  31251. </p>
  31252. <p>All expressions are evaluated once for each frame.
  31253. </p></dd>
  31254. </dl>
  31255. <p>The all options are expressions containing the following constants:
  31256. </p>
  31257. <dl compact="compact">
  31258. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  31259. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  31260. <dd><p>The input width and height.
  31261. </p>
  31262. </dd>
  31263. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  31264. <dd><p>same as <var>w</var> / <var>h</var>
  31265. </p>
  31266. </dd>
  31267. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  31268. <dd><p>input sample aspect ratio
  31269. </p>
  31270. </dd>
  31271. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  31272. <dd><p>input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>
  31273. </p>
  31274. </dd>
  31275. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  31276. <dd><p>The number of the input frame, starting from 0.
  31277. </p>
  31278. </dd>
  31279. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  31280. <dd><p>The timestamp expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  31281. </p>
  31282. </dd>
  31283. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  31284. <dd><p>the position in the file of the input frame, NAN if unknown
  31285. </p></dd>
  31286. </dl>
  31287. <a name="swapuv"></a>
  31288. <h2 class="section"><a href="ffprobe-all.html#toc-swapuv">32.203 swapuv</a></h2>
  31289. <p>Swap U &amp; V plane.
  31290. </p>
  31291. <a name="tblend"></a>
  31292. <h2 class="section"><a href="ffprobe-all.html#toc-tblend">32.204 tblend</a></h2>
  31293. <p>Blend successive video frames.
  31294. </p>
  31295. <p>See <a href="#blend">blend</a>
  31296. </p>
  31297. <a name="telecine"></a>
  31298. <h2 class="section"><a href="ffprobe-all.html#toc-telecine">32.205 telecine</a></h2>
  31299. <p>Apply telecine process to the video.
  31300. </p>
  31301. <p>This filter accepts the following options:
  31302. </p>
  31303. <dl compact="compact">
  31304. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  31305. <dd><dl compact="compact">
  31306. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  31307. <dd><p>top field first
  31308. </p></dd>
  31309. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  31310. <dd><p>bottom field first
  31311. The default value is <code>top</code>.
  31312. </p></dd>
  31313. </dl>
  31314. </dd>
  31315. <dt>&lsquo;<samp>pattern</samp>&rsquo;</dt>
  31316. <dd><p>A string of numbers representing the pulldown pattern you wish to apply.
  31317. The default value is <code>23</code>.
  31318. </p></dd>
  31319. </dl>
  31320. <div class="example">
  31321. <pre class="example">Some typical patterns:
  31322. NTSC output (30i):
  31323. 27.5p: 32222
  31324. 24p: 23 (classic)
  31325. 24p: 2332 (preferred)
  31326. 20p: 33
  31327. 18p: 334
  31328. 16p: 3444
  31329. PAL output (25i):
  31330. 27.5p: 12222
  31331. 24p: 222222222223 (&quot;Euro pulldown&quot;)
  31332. 16.67p: 33
  31333. 16p: 33333334
  31334. </pre></div>
  31335. <a name="thistogram"></a>
  31336. <h2 class="section"><a href="ffprobe-all.html#toc-thistogram">32.206 thistogram</a></h2>
  31337. <p>Compute and draw a color distribution histogram for the input video across time.
  31338. </p>
  31339. <p>Unlike <a href="#histogram">histogram</a> video filter which only shows histogram of single input frame
  31340. at certain time, this filter shows also past histograms of number of frames defined
  31341. by <code>width</code> option.
  31342. </p>
  31343. <p>The computed histogram is a representation of the color component
  31344. distribution in an image.
  31345. </p>
  31346. <p>The filter accepts the following options:
  31347. </p>
  31348. <dl compact="compact">
  31349. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  31350. <dd><p>Set width of single color component output. Default value is <code>0</code>.
  31351. Value of <code>0</code> means width will be picked from input video.
  31352. This also set number of passed histograms to keep.
  31353. Allowed range is [0, 8192].
  31354. </p>
  31355. </dd>
  31356. <dt>&lsquo;<samp>display_mode, d</samp>&rsquo;</dt>
  31357. <dd><p>Set display mode.
  31358. It accepts the following values:
  31359. </p><dl compact="compact">
  31360. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  31361. <dd><p>Per color component graphs are placed below each other.
  31362. </p>
  31363. </dd>
  31364. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  31365. <dd><p>Per color component graphs are placed side by side.
  31366. </p>
  31367. </dd>
  31368. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  31369. <dd><p>Presents information identical to that in the <code>parade</code>, except
  31370. that the graphs representing color components are superimposed directly
  31371. over one another.
  31372. </p></dd>
  31373. </dl>
  31374. <p>Default is <code>stack</code>.
  31375. </p>
  31376. </dd>
  31377. <dt>&lsquo;<samp>levels_mode, m</samp>&rsquo;</dt>
  31378. <dd><p>Set mode. Can be either <code>linear</code>, or <code>logarithmic</code>.
  31379. Default is <code>linear</code>.
  31380. </p>
  31381. </dd>
  31382. <dt>&lsquo;<samp>components, c</samp>&rsquo;</dt>
  31383. <dd><p>Set what color components to display.
  31384. Default is <code>7</code>.
  31385. </p>
  31386. </dd>
  31387. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  31388. <dd><p>Set background opacity. Default is <code>0.9</code>.
  31389. </p>
  31390. </dd>
  31391. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  31392. <dd><p>Show envelope. Default is disabled.
  31393. </p>
  31394. </dd>
  31395. <dt>&lsquo;<samp>ecolor, ec</samp>&rsquo;</dt>
  31396. <dd><p>Set envelope color. Default is <code>gold</code>.
  31397. </p></dd>
  31398. </dl>
  31399. <a name="threshold"></a>
  31400. <h2 class="section"><a href="ffprobe-all.html#toc-threshold">32.207 threshold</a></h2>
  31401. <p>Apply threshold effect to video stream.
  31402. </p>
  31403. <p>This filter needs four video streams to perform thresholding.
  31404. First stream is stream we are filtering.
  31405. Second stream is holding threshold values, third stream is holding min values,
  31406. and last, fourth stream is holding max values.
  31407. </p>
  31408. <p>The filter accepts the following option:
  31409. </p>
  31410. <dl compact="compact">
  31411. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  31412. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  31413. By default value 0xf, all planes will be processed.
  31414. </p></dd>
  31415. </dl>
  31416. <p>For example if first stream pixel&rsquo;s component value is less then threshold value
  31417. of pixel component from 2nd threshold stream, third stream value will picked,
  31418. otherwise fourth stream pixel component value will be picked.
  31419. </p>
  31420. <p>Using color source filter one can perform various types of thresholding:
  31421. </p>
  31422. <a name="Examples-133"></a>
  31423. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-133">32.207.1 Examples</a></h3>
  31424. <ul>
  31425. <li>
  31426. Binary threshold, using gray color as threshold:
  31427. <div class="example">
  31428. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -f lavfi -i color=black -f lavfi -i color=white -lavfi threshold output.avi
  31429. </pre></div>
  31430. </li><li>
  31431. Inverted binary threshold, using gray color as threshold:
  31432. <div class="example">
  31433. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -f lavfi -i color=white -f lavfi -i color=black -lavfi threshold output.avi
  31434. </pre></div>
  31435. </li><li>
  31436. Truncate binary threshold, using gray color as threshold:
  31437. <div class="example">
  31438. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -i 320x240.avi -f lavfi -i color=gray -lavfi threshold output.avi
  31439. </pre></div>
  31440. </li><li>
  31441. Threshold to zero, using gray color as threshold:
  31442. <div class="example">
  31443. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -f lavfi -i color=white -i 320x240.avi -lavfi threshold output.avi
  31444. </pre></div>
  31445. </li><li>
  31446. Inverted threshold to zero, using gray color as threshold:
  31447. <div class="example">
  31448. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -i 320x240.avi -f lavfi -i color=white -lavfi threshold output.avi
  31449. </pre></div>
  31450. </li></ul>
  31451. <a name="thumbnail"></a>
  31452. <h2 class="section"><a href="ffprobe-all.html#toc-thumbnail">32.208 thumbnail</a></h2>
  31453. <p>Select the most representative frame in a given sequence of consecutive frames.
  31454. </p>
  31455. <p>The filter accepts the following options:
  31456. </p>
  31457. <dl compact="compact">
  31458. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  31459. <dd><p>Set the frames batch size to analyze; in a set of <var>n</var> frames, the filter
  31460. will pick one of them, and then handle the next batch of <var>n</var> frames until
  31461. the end. Default is <code>100</code>.
  31462. </p></dd>
  31463. </dl>
  31464. <p>Since the filter keeps track of the whole frames sequence, a bigger <var>n</var>
  31465. value will result in a higher memory usage, so a high value is not recommended.
  31466. </p>
  31467. <a name="Examples-121"></a>
  31468. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-121">32.208.1 Examples</a></h3>
  31469. <ul>
  31470. <li>
  31471. Extract one picture each 50 frames:
  31472. <div class="example">
  31473. <pre class="example">thumbnail=50
  31474. </pre></div>
  31475. </li><li>
  31476. Complete example of a thumbnail creation with <code>ffmpeg</code>:
  31477. <div class="example">
  31478. <pre class="example">ffmpeg -i in.avi -vf thumbnail,scale=300:200 -frames:v 1 out.png
  31479. </pre></div>
  31480. </li></ul>
  31481. <p><a name="tile"></a>
  31482. </p><a name="tile-1"></a>
  31483. <h2 class="section"><a href="ffprobe-all.html#toc-tile-1">32.209 tile</a></h2>
  31484. <p>Tile several successive frames together.
  31485. </p>
  31486. <p>The <a href="#untile">untile</a> filter can do the reverse.
  31487. </p>
  31488. <p>The filter accepts the following options:
  31489. </p>
  31490. <dl compact="compact">
  31491. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  31492. <dd><p>Set the grid size (i.e. the number of lines and columns). For the syntax of
  31493. this option, check the
  31494. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  31495. </p>
  31496. </dd>
  31497. <dt>&lsquo;<samp>nb_frames</samp>&rsquo;</dt>
  31498. <dd><p>Set the maximum number of frames to render in the given area. It must be less
  31499. than or equal to <var>w</var>x<var>h</var>. The default value is <code>0</code>, meaning all
  31500. the area will be used.
  31501. </p>
  31502. </dd>
  31503. <dt>&lsquo;<samp>margin</samp>&rsquo;</dt>
  31504. <dd><p>Set the outer border margin in pixels.
  31505. </p>
  31506. </dd>
  31507. <dt>&lsquo;<samp>padding</samp>&rsquo;</dt>
  31508. <dd><p>Set the inner border thickness (i.e. the number of pixels between frames). For
  31509. more advanced padding options (such as having different values for the edges),
  31510. refer to the pad video filter.
  31511. </p>
  31512. </dd>
  31513. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  31514. <dd><p>Specify the color of the unused area. For the syntax of this option, check the
  31515. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  31516. The default value of <var>color</var> is &quot;black&quot;.
  31517. </p>
  31518. </dd>
  31519. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  31520. <dd><p>Set the number of frames to overlap when tiling several successive frames together.
  31521. The value must be between <code>0</code> and <var>nb_frames - 1</var>.
  31522. </p>
  31523. </dd>
  31524. <dt>&lsquo;<samp>init_padding</samp>&rsquo;</dt>
  31525. <dd><p>Set the number of frames to initially be empty before displaying first output frame.
  31526. This controls how soon will one get first output frame.
  31527. The value must be between <code>0</code> and <var>nb_frames - 1</var>.
  31528. </p></dd>
  31529. </dl>
  31530. <a name="Examples-107"></a>
  31531. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-107">32.209.1 Examples</a></h3>
  31532. <ul>
  31533. <li>
  31534. Produce 8x8 PNG tiles of all keyframes (&lsquo;<samp>-skip_frame nokey</samp>&rsquo;) in a movie:
  31535. <div class="example">
  31536. <pre class="example">ffmpeg -skip_frame nokey -i file.avi -vf 'scale=128:72,tile=8x8' -an -vsync 0 keyframes%03d.png
  31537. </pre></div>
  31538. <p>The &lsquo;<samp>-vsync 0</samp>&rsquo; is necessary to prevent <code>ffmpeg</code> from
  31539. duplicating each output frame to accommodate the originally detected frame
  31540. rate.
  31541. </p>
  31542. </li><li>
  31543. Display <code>5</code> pictures in an area of <code>3x2</code> frames,
  31544. with <code>7</code> pixels between them, and <code>2</code> pixels of initial margin, using
  31545. mixed flat and named options:
  31546. <div class="example">
  31547. <pre class="example">tile=3x2:nb_frames=5:padding=7:margin=2
  31548. </pre></div>
  31549. </li></ul>
  31550. <a name="tinterlace"></a>
  31551. <h2 class="section"><a href="ffprobe-all.html#toc-tinterlace">32.210 tinterlace</a></h2>
  31552. <p>Perform various types of temporal field interlacing.
  31553. </p>
  31554. <p>Frames are counted starting from 1, so the first input frame is
  31555. considered odd.
  31556. </p>
  31557. <p>The filter accepts the following options:
  31558. </p>
  31559. <dl compact="compact">
  31560. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  31561. <dd><p>Specify the mode of the interlacing. This option can also be specified
  31562. as a value alone. See below for a list of values for this option.
  31563. </p>
  31564. <p>Available values are:
  31565. </p>
  31566. <dl compact="compact">
  31567. <dt>&lsquo;<samp>merge, 0</samp>&rsquo;</dt>
  31568. <dd><p>Move odd frames into the upper field, even into the lower field,
  31569. generating a double height frame at half frame rate.
  31570. </p><div class="example">
  31571. <pre class="example"> ------&gt; time
  31572. Input:
  31573. Frame 1 Frame 2 Frame 3 Frame 4
  31574. 11111 22222 33333 44444
  31575. 11111 22222 33333 44444
  31576. 11111 22222 33333 44444
  31577. 11111 22222 33333 44444
  31578. Output:
  31579. 11111 33333
  31580. 22222 44444
  31581. 11111 33333
  31582. 22222 44444
  31583. 11111 33333
  31584. 22222 44444
  31585. 11111 33333
  31586. 22222 44444
  31587. </pre></div>
  31588. </dd>
  31589. <dt>&lsquo;<samp>drop_even, 1</samp>&rsquo;</dt>
  31590. <dd><p>Only output odd frames, even frames are dropped, generating a frame with
  31591. unchanged height at half frame rate.
  31592. </p>
  31593. <div class="example">
  31594. <pre class="example"> ------&gt; time
  31595. Input:
  31596. Frame 1 Frame 2 Frame 3 Frame 4
  31597. 11111 22222 33333 44444
  31598. 11111 22222 33333 44444
  31599. 11111 22222 33333 44444
  31600. 11111 22222 33333 44444
  31601. Output:
  31602. 11111 33333
  31603. 11111 33333
  31604. 11111 33333
  31605. 11111 33333
  31606. </pre></div>
  31607. </dd>
  31608. <dt>&lsquo;<samp>drop_odd, 2</samp>&rsquo;</dt>
  31609. <dd><p>Only output even frames, odd frames are dropped, generating a frame with
  31610. unchanged height at half frame rate.
  31611. </p>
  31612. <div class="example">
  31613. <pre class="example"> ------&gt; time
  31614. Input:
  31615. Frame 1 Frame 2 Frame 3 Frame 4
  31616. 11111 22222 33333 44444
  31617. 11111 22222 33333 44444
  31618. 11111 22222 33333 44444
  31619. 11111 22222 33333 44444
  31620. Output:
  31621. 22222 44444
  31622. 22222 44444
  31623. 22222 44444
  31624. 22222 44444
  31625. </pre></div>
  31626. </dd>
  31627. <dt>&lsquo;<samp>pad, 3</samp>&rsquo;</dt>
  31628. <dd><p>Expand each frame to full height, but pad alternate lines with black,
  31629. generating a frame with double height at the same input frame rate.
  31630. </p>
  31631. <div class="example">
  31632. <pre class="example"> ------&gt; time
  31633. Input:
  31634. Frame 1 Frame 2 Frame 3 Frame 4
  31635. 11111 22222 33333 44444
  31636. 11111 22222 33333 44444
  31637. 11111 22222 33333 44444
  31638. 11111 22222 33333 44444
  31639. Output:
  31640. 11111 ..... 33333 .....
  31641. ..... 22222 ..... 44444
  31642. 11111 ..... 33333 .....
  31643. ..... 22222 ..... 44444
  31644. 11111 ..... 33333 .....
  31645. ..... 22222 ..... 44444
  31646. 11111 ..... 33333 .....
  31647. ..... 22222 ..... 44444
  31648. </pre></div>
  31649. </dd>
  31650. <dt>&lsquo;<samp>interleave_top, 4</samp>&rsquo;</dt>
  31651. <dd><p>Interleave the upper field from odd frames with the lower field from
  31652. even frames, generating a frame with unchanged height at half frame rate.
  31653. </p>
  31654. <div class="example">
  31655. <pre class="example"> ------&gt; time
  31656. Input:
  31657. Frame 1 Frame 2 Frame 3 Frame 4
  31658. 11111&lt;- 22222 33333&lt;- 44444
  31659. 11111 22222&lt;- 33333 44444&lt;-
  31660. 11111&lt;- 22222 33333&lt;- 44444
  31661. 11111 22222&lt;- 33333 44444&lt;-
  31662. Output:
  31663. 11111 33333
  31664. 22222 44444
  31665. 11111 33333
  31666. 22222 44444
  31667. </pre></div>
  31668. </dd>
  31669. <dt>&lsquo;<samp>interleave_bottom, 5</samp>&rsquo;</dt>
  31670. <dd><p>Interleave the lower field from odd frames with the upper field from
  31671. even frames, generating a frame with unchanged height at half frame rate.
  31672. </p>
  31673. <div class="example">
  31674. <pre class="example"> ------&gt; time
  31675. Input:
  31676. Frame 1 Frame 2 Frame 3 Frame 4
  31677. 11111 22222&lt;- 33333 44444&lt;-
  31678. 11111&lt;- 22222 33333&lt;- 44444
  31679. 11111 22222&lt;- 33333 44444&lt;-
  31680. 11111&lt;- 22222 33333&lt;- 44444
  31681. Output:
  31682. 22222 44444
  31683. 11111 33333
  31684. 22222 44444
  31685. 11111 33333
  31686. </pre></div>
  31687. </dd>
  31688. <dt>&lsquo;<samp>interlacex2, 6</samp>&rsquo;</dt>
  31689. <dd><p>Double frame rate with unchanged height. Frames are inserted each
  31690. containing the second temporal field from the previous input frame and
  31691. the first temporal field from the next input frame. This mode relies on
  31692. the top_field_first flag. Useful for interlaced video displays with no
  31693. field synchronisation.
  31694. </p>
  31695. <div class="example">
  31696. <pre class="example"> ------&gt; time
  31697. Input:
  31698. Frame 1 Frame 2 Frame 3 Frame 4
  31699. 11111 22222 33333 44444
  31700. 11111 22222 33333 44444
  31701. 11111 22222 33333 44444
  31702. 11111 22222 33333 44444
  31703. Output:
  31704. 11111 22222 22222 33333 33333 44444 44444
  31705. 11111 11111 22222 22222 33333 33333 44444
  31706. 11111 22222 22222 33333 33333 44444 44444
  31707. 11111 11111 22222 22222 33333 33333 44444
  31708. </pre></div>
  31709. </dd>
  31710. <dt>&lsquo;<samp>mergex2, 7</samp>&rsquo;</dt>
  31711. <dd><p>Move odd frames into the upper field, even into the lower field,
  31712. generating a double height frame at same frame rate.
  31713. </p>
  31714. <div class="example">
  31715. <pre class="example"> ------&gt; time
  31716. Input:
  31717. Frame 1 Frame 2 Frame 3 Frame 4
  31718. 11111 22222 33333 44444
  31719. 11111 22222 33333 44444
  31720. 11111 22222 33333 44444
  31721. 11111 22222 33333 44444
  31722. Output:
  31723. 11111 33333 33333 55555
  31724. 22222 22222 44444 44444
  31725. 11111 33333 33333 55555
  31726. 22222 22222 44444 44444
  31727. 11111 33333 33333 55555
  31728. 22222 22222 44444 44444
  31729. 11111 33333 33333 55555
  31730. 22222 22222 44444 44444
  31731. </pre></div>
  31732. </dd>
  31733. </dl>
  31734. <p>Numeric values are deprecated but are accepted for backward
  31735. compatibility reasons.
  31736. </p>
  31737. <p>Default mode is <code>merge</code>.
  31738. </p>
  31739. </dd>
  31740. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  31741. <dd><p>Specify flags influencing the filter process.
  31742. </p>
  31743. <p>Available value for <var>flags</var> is:
  31744. </p>
  31745. <dl compact="compact">
  31746. <dt>&lsquo;<samp>low_pass_filter, vlpf</samp>&rsquo;</dt>
  31747. <dd><p>Enable linear vertical low-pass filtering in the filter.
  31748. Vertical low-pass filtering is required when creating an interlaced
  31749. destination from a progressive source which contains high-frequency
  31750. vertical detail. Filtering will reduce interlace &rsquo;twitter&rsquo; and Moire
  31751. patterning.
  31752. </p>
  31753. </dd>
  31754. <dt>&lsquo;<samp>complex_filter, cvlpf</samp>&rsquo;</dt>
  31755. <dd><p>Enable complex vertical low-pass filtering.
  31756. This will slightly less reduce interlace &rsquo;twitter&rsquo; and Moire
  31757. patterning but better retain detail and subjective sharpness impression.
  31758. </p>
  31759. </dd>
  31760. <dt>&lsquo;<samp>bypass_il</samp>&rsquo;</dt>
  31761. <dd><p>Bypass already interlaced frames, only adjust the frame rate.
  31762. </p></dd>
  31763. </dl>
  31764. <p>Vertical low-pass filtering and bypassing already interlaced frames can only be
  31765. enabled for &lsquo;<samp>mode</samp>&rsquo; <var>interleave_top</var> and <var>interleave_bottom</var>.
  31766. </p>
  31767. </dd>
  31768. </dl>
  31769. <a name="tmedian"></a>
  31770. <h2 class="section"><a href="ffprobe-all.html#toc-tmedian">32.211 tmedian</a></h2>
  31771. <p>Pick median pixels from several successive input video frames.
  31772. </p>
  31773. <p>The filter accepts the following options:
  31774. </p>
  31775. <dl compact="compact">
  31776. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  31777. <dd><p>Set radius of median filter.
  31778. Default is 1. Allowed range is from 1 to 127.
  31779. </p>
  31780. </dd>
  31781. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  31782. <dd><p>Set which planes to filter. Default value is <code>15</code>, by which all planes are processed.
  31783. </p>
  31784. </dd>
  31785. <dt>&lsquo;<samp>percentile</samp>&rsquo;</dt>
  31786. <dd><p>Set median percentile. Default value is <code>0.5</code>.
  31787. Default value of <code>0.5</code> will pick always median values, while <code>0</code> will pick
  31788. minimum values, and <code>1</code> maximum values.
  31789. </p></dd>
  31790. </dl>
  31791. <a name="tmix"></a>
  31792. <h2 class="section"><a href="ffprobe-all.html#toc-tmix">32.212 tmix</a></h2>
  31793. <p>Mix successive video frames.
  31794. </p>
  31795. <p>A description of the accepted options follows.
  31796. </p>
  31797. <dl compact="compact">
  31798. <dt>&lsquo;<samp>frames</samp>&rsquo;</dt>
  31799. <dd><p>The number of successive frames to mix. If unspecified, it defaults to 3.
  31800. </p>
  31801. </dd>
  31802. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  31803. <dd><p>Specify weight of each input video frame.
  31804. Each weight is separated by space. If number of weights is smaller than
  31805. number of <var>frames</var> last specified weight will be used for all remaining
  31806. unset weights.
  31807. </p>
  31808. </dd>
  31809. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  31810. <dd><p>Specify scale, if it is set it will be multiplied with sum
  31811. of each weight multiplied with pixel values to give final destination
  31812. pixel value. By default <var>scale</var> is auto scaled to sum of weights.
  31813. </p></dd>
  31814. </dl>
  31815. <a name="Examples-118"></a>
  31816. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-118">32.212.1 Examples</a></h3>
  31817. <ul>
  31818. <li>
  31819. Average 7 successive frames:
  31820. <div class="example">
  31821. <pre class="example">tmix=frames=7:weights=&quot;1 1 1 1 1 1 1&quot;
  31822. </pre></div>
  31823. </li><li>
  31824. Apply simple temporal convolution:
  31825. <div class="example">
  31826. <pre class="example">tmix=frames=3:weights=&quot;-1 3 -1&quot;
  31827. </pre></div>
  31828. </li><li>
  31829. Similar as above but only showing temporal differences:
  31830. <div class="example">
  31831. <pre class="example">tmix=frames=3:weights=&quot;-1 2 -1&quot;:scale=1
  31832. </pre></div>
  31833. </li></ul>
  31834. <p><a name="tonemap"></a>
  31835. </p><a name="tonemap-1"></a>
  31836. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap-1">32.213 tonemap</a></h2>
  31837. <p>Tone map colors from different dynamic ranges.
  31838. </p>
  31839. <p>This filter expects data in single precision floating point, as it needs to
  31840. operate on (and can output) out-of-range values. Another filter, such as
  31841. <a href="#zscale">zscale</a>, is needed to convert the resulting frame to a usable format.
  31842. </p>
  31843. <p>The tonemapping algorithms implemented only work on linear light, so input
  31844. data should be linearized beforehand (and possibly correctly tagged).
  31845. </p>
  31846. <div class="example">
  31847. <pre class="example">ffmpeg -i INPUT -vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p OUTPUT
  31848. </pre></div>
  31849. <a name="Options"></a>
  31850. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options">32.213.1 Options</a></h3>
  31851. <p>The filter accepts the following options.
  31852. </p>
  31853. <dl compact="compact">
  31854. <dt>&lsquo;<samp>tonemap</samp>&rsquo;</dt>
  31855. <dd><p>Set the tone map algorithm to use.
  31856. </p>
  31857. <p>Possible values are:
  31858. </p><dl compact="compact">
  31859. <dt><var>none</var></dt>
  31860. <dd><p>Do not apply any tone map, only desaturate overbright pixels.
  31861. </p>
  31862. </dd>
  31863. <dt><var>clip</var></dt>
  31864. <dd><p>Hard-clip any out-of-range values. Use it for perfect color accuracy for
  31865. in-range values, while distorting out-of-range values.
  31866. </p>
  31867. </dd>
  31868. <dt><var>linear</var></dt>
  31869. <dd><p>Stretch the entire reference gamut to a linear multiple of the display.
  31870. </p>
  31871. </dd>
  31872. <dt><var>gamma</var></dt>
  31873. <dd><p>Fit a logarithmic transfer between the tone curves.
  31874. </p>
  31875. </dd>
  31876. <dt><var>reinhard</var></dt>
  31877. <dd><p>Preserve overall image brightness with a simple curve, using nonlinear
  31878. contrast, which results in flattening details and degrading color accuracy.
  31879. </p>
  31880. </dd>
  31881. <dt><var>hable</var></dt>
  31882. <dd><p>Preserve both dark and bright details better than <var>reinhard</var>, at the cost
  31883. of slightly darkening everything. Use it when detail preservation is more
  31884. important than color and brightness accuracy.
  31885. </p>
  31886. </dd>
  31887. <dt><var>mobius</var></dt>
  31888. <dd><p>Smoothly map out-of-range values, while retaining contrast and colors for
  31889. in-range material as much as possible. Use it when color accuracy is more
  31890. important than detail preservation.
  31891. </p></dd>
  31892. </dl>
  31893. <p>Default is none.
  31894. </p>
  31895. </dd>
  31896. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  31897. <dd><p>Tune the tone mapping algorithm.
  31898. </p>
  31899. <p>This affects the following algorithms:
  31900. </p><dl compact="compact">
  31901. <dt><var>none</var></dt>
  31902. <dd><p>Ignored.
  31903. </p>
  31904. </dd>
  31905. <dt><var>linear</var></dt>
  31906. <dd><p>Specifies the scale factor to use while stretching.
  31907. Default to 1.0.
  31908. </p>
  31909. </dd>
  31910. <dt><var>gamma</var></dt>
  31911. <dd><p>Specifies the exponent of the function.
  31912. Default to 1.8.
  31913. </p>
  31914. </dd>
  31915. <dt><var>clip</var></dt>
  31916. <dd><p>Specify an extra linear coefficient to multiply into the signal before clipping.
  31917. Default to 1.0.
  31918. </p>
  31919. </dd>
  31920. <dt><var>reinhard</var></dt>
  31921. <dd><p>Specify the local contrast coefficient at the display peak.
  31922. Default to 0.5, which means that in-gamut values will be about half as bright
  31923. as when clipping.
  31924. </p>
  31925. </dd>
  31926. <dt><var>hable</var></dt>
  31927. <dd><p>Ignored.
  31928. </p>
  31929. </dd>
  31930. <dt><var>mobius</var></dt>
  31931. <dd><p>Specify the transition point from linear to mobius transform. Every value
  31932. below this point is guaranteed to be mapped 1:1. The higher the value, the
  31933. more accurate the result will be, at the cost of losing bright details.
  31934. Default to 0.3, which due to the steep initial slope still preserves in-range
  31935. colors fairly accurately.
  31936. </p></dd>
  31937. </dl>
  31938. </dd>
  31939. <dt>&lsquo;<samp>desat</samp>&rsquo;</dt>
  31940. <dd><p>Apply desaturation for highlights that exceed this level of brightness. The
  31941. higher the parameter, the more color information will be preserved. This
  31942. setting helps prevent unnaturally blown-out colors for super-highlights, by
  31943. (smoothly) turning into white instead. This makes images feel more natural,
  31944. at the cost of reducing information about out-of-range colors.
  31945. </p>
  31946. <p>The default of 2.0 is somewhat conservative and will mostly just apply to
  31947. skies or directly sunlit surfaces. A setting of 0.0 disables this option.
  31948. </p>
  31949. <p>This option works only if the input frame has a supported color tag.
  31950. </p>
  31951. </dd>
  31952. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  31953. <dd><p>Override signal/nominal/reference peak with this value. Useful when the
  31954. embedded peak information in display metadata is not reliable or when tone
  31955. mapping from a lower range to a higher range.
  31956. </p></dd>
  31957. </dl>
  31958. <a name="tpad"></a>
  31959. <h2 class="section"><a href="ffprobe-all.html#toc-tpad">32.214 tpad</a></h2>
  31960. <p>Temporarily pad video frames.
  31961. </p>
  31962. <p>The filter accepts the following options:
  31963. </p>
  31964. <dl compact="compact">
  31965. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  31966. <dd><p>Specify number of delay frames before input video stream. Default is 0.
  31967. </p>
  31968. </dd>
  31969. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  31970. <dd><p>Specify number of padding frames after input video stream.
  31971. Set to -1 to pad indefinitely. Default is 0.
  31972. </p>
  31973. </dd>
  31974. <dt>&lsquo;<samp>start_mode</samp>&rsquo;</dt>
  31975. <dd><p>Set kind of frames added to beginning of stream.
  31976. Can be either <var>add</var> or <var>clone</var>.
  31977. With <var>add</var> frames of solid-color are added.
  31978. With <var>clone</var> frames are clones of first frame.
  31979. Default is <var>add</var>.
  31980. </p>
  31981. </dd>
  31982. <dt>&lsquo;<samp>stop_mode</samp>&rsquo;</dt>
  31983. <dd><p>Set kind of frames added to end of stream.
  31984. Can be either <var>add</var> or <var>clone</var>.
  31985. With <var>add</var> frames of solid-color are added.
  31986. With <var>clone</var> frames are clones of last frame.
  31987. Default is <var>add</var>.
  31988. </p>
  31989. </dd>
  31990. <dt>&lsquo;<samp>start_duration, stop_duration</samp>&rsquo;</dt>
  31991. <dd><p>Specify the duration of the start/stop delay. See
  31992. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  31993. for the accepted syntax.
  31994. These options override <var>start</var> and <var>stop</var>. Default is 0.
  31995. </p>
  31996. </dd>
  31997. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  31998. <dd><p>Specify the color of the padded area. For the syntax of this option,
  31999. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  32000. </p>
  32001. <p>The default value of <var>color</var> is &quot;black&quot;.
  32002. </p></dd>
  32003. </dl>
  32004. <p><a name="transpose"></a>
  32005. </p><a name="transpose-1"></a>
  32006. <h2 class="section"><a href="ffprobe-all.html#toc-transpose-1">32.215 transpose</a></h2>
  32007. <p>Transpose rows with columns in the input video and optionally flip it.
  32008. </p>
  32009. <p>It accepts the following parameters:
  32010. </p>
  32011. <dl compact="compact">
  32012. <dt>&lsquo;<samp>dir</samp>&rsquo;</dt>
  32013. <dd><p>Specify the transposition direction.
  32014. </p>
  32015. <p>Can assume the following values:
  32016. </p><dl compact="compact">
  32017. <dt>&lsquo;<samp>0, 4, cclock_flip</samp>&rsquo;</dt>
  32018. <dd><p>Rotate by 90 degrees counterclockwise and vertically flip (default), that is:
  32019. </p><div class="example">
  32020. <pre class="example">L.R L.l
  32021. . . -&gt; . .
  32022. l.r R.r
  32023. </pre></div>
  32024. </dd>
  32025. <dt>&lsquo;<samp>1, 5, clock</samp>&rsquo;</dt>
  32026. <dd><p>Rotate by 90 degrees clockwise, that is:
  32027. </p><div class="example">
  32028. <pre class="example">L.R l.L
  32029. . . -&gt; . .
  32030. l.r r.R
  32031. </pre></div>
  32032. </dd>
  32033. <dt>&lsquo;<samp>2, 6, cclock</samp>&rsquo;</dt>
  32034. <dd><p>Rotate by 90 degrees counterclockwise, that is:
  32035. </p><div class="example">
  32036. <pre class="example">L.R R.r
  32037. . . -&gt; . .
  32038. l.r L.l
  32039. </pre></div>
  32040. </dd>
  32041. <dt>&lsquo;<samp>3, 7, clock_flip</samp>&rsquo;</dt>
  32042. <dd><p>Rotate by 90 degrees clockwise and vertically flip, that is:
  32043. </p><div class="example">
  32044. <pre class="example">L.R r.R
  32045. . . -&gt; . .
  32046. l.r l.L
  32047. </pre></div>
  32048. </dd>
  32049. </dl>
  32050. <p>For values between 4-7, the transposition is only done if the input
  32051. video geometry is portrait and not landscape. These values are
  32052. deprecated, the <code>passthrough</code> option should be used instead.
  32053. </p>
  32054. <p>Numerical values are deprecated, and should be dropped in favor of
  32055. symbolic constants.
  32056. </p>
  32057. </dd>
  32058. <dt>&lsquo;<samp>passthrough</samp>&rsquo;</dt>
  32059. <dd><p>Do not apply the transposition if the input geometry matches the one
  32060. specified by the specified value. It accepts the following values:
  32061. </p><dl compact="compact">
  32062. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32063. <dd><p>Always apply transposition.
  32064. </p></dd>
  32065. <dt>&lsquo;<samp>portrait</samp>&rsquo;</dt>
  32066. <dd><p>Preserve portrait geometry (when <var>height</var> &gt;= <var>width</var>).
  32067. </p></dd>
  32068. <dt>&lsquo;<samp>landscape</samp>&rsquo;</dt>
  32069. <dd><p>Preserve landscape geometry (when <var>width</var> &gt;= <var>height</var>).
  32070. </p></dd>
  32071. </dl>
  32072. <p>Default value is <code>none</code>.
  32073. </p></dd>
  32074. </dl>
  32075. <p>For example to rotate by 90 degrees clockwise and preserve portrait
  32076. layout:
  32077. </p><div class="example">
  32078. <pre class="example">transpose=dir=1:passthrough=portrait
  32079. </pre></div>
  32080. <p>The command above can also be specified as:
  32081. </p><div class="example">
  32082. <pre class="example">transpose=1:portrait
  32083. </pre></div>
  32084. <a name="transpose_005fnpp"></a>
  32085. <h2 class="section"><a href="ffprobe-all.html#toc-transpose_005fnpp">32.216 transpose_npp</a></h2>
  32086. <p>Transpose rows with columns in the input video and optionally flip it.
  32087. For more in depth examples see the <a href="#transpose">transpose</a> video filter, which shares mostly the same options.
  32088. </p>
  32089. <p>It accepts the following parameters:
  32090. </p>
  32091. <dl compact="compact">
  32092. <dt>&lsquo;<samp>dir</samp>&rsquo;</dt>
  32093. <dd><p>Specify the transposition direction.
  32094. </p>
  32095. <p>Can assume the following values:
  32096. </p><dl compact="compact">
  32097. <dt>&lsquo;<samp>cclock_flip</samp>&rsquo;</dt>
  32098. <dd><p>Rotate by 90 degrees counterclockwise and vertically flip. (default)
  32099. </p>
  32100. </dd>
  32101. <dt>&lsquo;<samp>clock</samp>&rsquo;</dt>
  32102. <dd><p>Rotate by 90 degrees clockwise.
  32103. </p>
  32104. </dd>
  32105. <dt>&lsquo;<samp>cclock</samp>&rsquo;</dt>
  32106. <dd><p>Rotate by 90 degrees counterclockwise.
  32107. </p>
  32108. </dd>
  32109. <dt>&lsquo;<samp>clock_flip</samp>&rsquo;</dt>
  32110. <dd><p>Rotate by 90 degrees clockwise and vertically flip.
  32111. </p></dd>
  32112. </dl>
  32113. </dd>
  32114. <dt>&lsquo;<samp>passthrough</samp>&rsquo;</dt>
  32115. <dd><p>Do not apply the transposition if the input geometry matches the one
  32116. specified by the specified value. It accepts the following values:
  32117. </p><dl compact="compact">
  32118. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32119. <dd><p>Always apply transposition. (default)
  32120. </p></dd>
  32121. <dt>&lsquo;<samp>portrait</samp>&rsquo;</dt>
  32122. <dd><p>Preserve portrait geometry (when <var>height</var> &gt;= <var>width</var>).
  32123. </p></dd>
  32124. <dt>&lsquo;<samp>landscape</samp>&rsquo;</dt>
  32125. <dd><p>Preserve landscape geometry (when <var>width</var> &gt;= <var>height</var>).
  32126. </p></dd>
  32127. </dl>
  32128. </dd>
  32129. </dl>
  32130. <a name="trim"></a>
  32131. <h2 class="section"><a href="ffprobe-all.html#toc-trim">32.217 trim</a></h2>
  32132. <p>Trim the input so that the output contains one continuous subpart of the input.
  32133. </p>
  32134. <p>It accepts the following parameters:
  32135. </p><dl compact="compact">
  32136. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  32137. <dd><p>Specify the time of the start of the kept section, i.e. the frame with the
  32138. timestamp <var>start</var> will be the first frame in the output.
  32139. </p>
  32140. </dd>
  32141. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  32142. <dd><p>Specify the time of the first frame that will be dropped, i.e. the frame
  32143. immediately preceding the one with the timestamp <var>end</var> will be the last
  32144. frame in the output.
  32145. </p>
  32146. </dd>
  32147. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  32148. <dd><p>This is the same as <var>start</var>, except this option sets the start timestamp
  32149. in timebase units instead of seconds.
  32150. </p>
  32151. </dd>
  32152. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  32153. <dd><p>This is the same as <var>end</var>, except this option sets the end timestamp
  32154. in timebase units instead of seconds.
  32155. </p>
  32156. </dd>
  32157. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  32158. <dd><p>The maximum duration of the output in seconds.
  32159. </p>
  32160. </dd>
  32161. <dt>&lsquo;<samp>start_frame</samp>&rsquo;</dt>
  32162. <dd><p>The number of the first frame that should be passed to the output.
  32163. </p>
  32164. </dd>
  32165. <dt>&lsquo;<samp>end_frame</samp>&rsquo;</dt>
  32166. <dd><p>The number of the first frame that should be dropped.
  32167. </p></dd>
  32168. </dl>
  32169. <p>&lsquo;<samp>start</samp>&rsquo;, &lsquo;<samp>end</samp>&rsquo;, and &lsquo;<samp>duration</samp>&rsquo; are expressed as time
  32170. duration specifications; see
  32171. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  32172. for the accepted syntax.
  32173. </p>
  32174. <p>Note that the first two sets of the start/end options and the &lsquo;<samp>duration</samp>&rsquo;
  32175. option look at the frame timestamp, while the _frame variants simply count the
  32176. frames that pass through the filter. Also note that this filter does not modify
  32177. the timestamps. If you wish for the output timestamps to start at zero, insert a
  32178. setpts filter after the trim filter.
  32179. </p>
  32180. <p>If multiple start or end options are set, this filter tries to be greedy and
  32181. keep all the frames that match at least one of the specified constraints. To keep
  32182. only the part that matches all the constraints at once, chain multiple trim
  32183. filters.
  32184. </p>
  32185. <p>The defaults are such that all the input is kept. So it is possible to set e.g.
  32186. just the end values to keep everything before the specified time.
  32187. </p>
  32188. <p>Examples:
  32189. </p><ul>
  32190. <li>
  32191. Drop everything except the second minute of input:
  32192. <div class="example">
  32193. <pre class="example">ffmpeg -i INPUT -vf trim=60:120
  32194. </pre></div>
  32195. </li><li>
  32196. Keep only the first second:
  32197. <div class="example">
  32198. <pre class="example">ffmpeg -i INPUT -vf trim=duration=1
  32199. </pre></div>
  32200. </li></ul>
  32201. <a name="unpremultiply"></a>
  32202. <h2 class="section"><a href="ffprobe-all.html#toc-unpremultiply">32.218 unpremultiply</a></h2>
  32203. <p>Apply alpha unpremultiply effect to input video stream using first plane
  32204. of second stream as alpha.
  32205. </p>
  32206. <p>Both streams must have same dimensions and same pixel format.
  32207. </p>
  32208. <p>The filter accepts the following option:
  32209. </p>
  32210. <dl compact="compact">
  32211. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  32212. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  32213. By default value 0xf, all planes will be processed.
  32214. </p>
  32215. <p>If the format has 1 or 2 components, then luma is bit 0.
  32216. If the format has 3 or 4 components:
  32217. for RGB formats bit 0 is green, bit 1 is blue and bit 2 is red;
  32218. for YUV formats bit 0 is luma, bit 1 is chroma-U and bit 2 is chroma-V.
  32219. If present, the alpha channel is always the last bit.
  32220. </p>
  32221. </dd>
  32222. <dt>&lsquo;<samp>inplace</samp>&rsquo;</dt>
  32223. <dd><p>Do not require 2nd input for processing, instead use alpha plane from input stream.
  32224. </p></dd>
  32225. </dl>
  32226. <p><a name="unsharp"></a>
  32227. </p><a name="unsharp-1"></a>
  32228. <h2 class="section"><a href="ffprobe-all.html#toc-unsharp-1">32.219 unsharp</a></h2>
  32229. <p>Sharpen or blur the input video.
  32230. </p>
  32231. <p>It accepts the following parameters:
  32232. </p>
  32233. <dl compact="compact">
  32234. <dt>&lsquo;<samp>luma_msize_x, lx</samp>&rsquo;</dt>
  32235. <dd><p>Set the luma matrix horizontal size. It must be an odd integer between
  32236. 3 and 23. The default value is 5.
  32237. </p>
  32238. </dd>
  32239. <dt>&lsquo;<samp>luma_msize_y, ly</samp>&rsquo;</dt>
  32240. <dd><p>Set the luma matrix vertical size. It must be an odd integer between 3
  32241. and 23. The default value is 5.
  32242. </p>
  32243. </dd>
  32244. <dt>&lsquo;<samp>luma_amount, la</samp>&rsquo;</dt>
  32245. <dd><p>Set the luma effect strength. It must be a floating point number, reasonable
  32246. values lay between -1.5 and 1.5.
  32247. </p>
  32248. <p>Negative values will blur the input video, while positive values will
  32249. sharpen it, a value of zero will disable the effect.
  32250. </p>
  32251. <p>Default value is 1.0.
  32252. </p>
  32253. </dd>
  32254. <dt>&lsquo;<samp>chroma_msize_x, cx</samp>&rsquo;</dt>
  32255. <dd><p>Set the chroma matrix horizontal size. It must be an odd integer
  32256. between 3 and 23. The default value is 5.
  32257. </p>
  32258. </dd>
  32259. <dt>&lsquo;<samp>chroma_msize_y, cy</samp>&rsquo;</dt>
  32260. <dd><p>Set the chroma matrix vertical size. It must be an odd integer
  32261. between 3 and 23. The default value is 5.
  32262. </p>
  32263. </dd>
  32264. <dt>&lsquo;<samp>chroma_amount, ca</samp>&rsquo;</dt>
  32265. <dd><p>Set the chroma effect strength. It must be a floating point number, reasonable
  32266. values lay between -1.5 and 1.5.
  32267. </p>
  32268. <p>Negative values will blur the input video, while positive values will
  32269. sharpen it, a value of zero will disable the effect.
  32270. </p>
  32271. <p>Default value is 0.0.
  32272. </p>
  32273. </dd>
  32274. </dl>
  32275. <p>All parameters are optional and default to the equivalent of the
  32276. string &rsquo;5:5:1.0:5:5:0.0&rsquo;.
  32277. </p>
  32278. <a name="Examples-80"></a>
  32279. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-80">32.219.1 Examples</a></h3>
  32280. <ul>
  32281. <li>
  32282. Apply strong luma sharpen effect:
  32283. <div class="example">
  32284. <pre class="example">unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5
  32285. </pre></div>
  32286. </li><li>
  32287. Apply a strong blur of both luma and chroma parameters:
  32288. <div class="example">
  32289. <pre class="example">unsharp=7:7:-2:7:7:-2
  32290. </pre></div>
  32291. </li></ul>
  32292. <p><a name="untile"></a>
  32293. </p><a name="untile-1"></a>
  32294. <h2 class="section"><a href="ffprobe-all.html#toc-untile-1">32.220 untile</a></h2>
  32295. <p>Decompose a video made of tiled images into the individual images.
  32296. </p>
  32297. <p>The frame rate of the output video is the frame rate of the input video
  32298. multiplied by the number of tiles.
  32299. </p>
  32300. <p>This filter does the reverse of <a href="#tile">tile</a>.
  32301. </p>
  32302. <p>The filter accepts the following options:
  32303. </p>
  32304. <dl compact="compact">
  32305. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  32306. <dd><p>Set the grid size (i.e. the number of lines and columns). For the syntax of
  32307. this option, check the
  32308. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  32309. </p></dd>
  32310. </dl>
  32311. <a name="Examples-76"></a>
  32312. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-76">32.220.1 Examples</a></h3>
  32313. <ul>
  32314. <li>
  32315. Produce a 1-second video from a still image file made of 25 frames stacked
  32316. vertically, like an analogic film reel:
  32317. <div class="example">
  32318. <pre class="example">ffmpeg -r 1 -i image.jpg -vf untile=1x25 movie.mkv
  32319. </pre></div>
  32320. </li></ul>
  32321. <a name="uspp"></a>
  32322. <h2 class="section"><a href="ffprobe-all.html#toc-uspp">32.221 uspp</a></h2>
  32323. <p>Apply ultra slow/simple postprocessing filter that compresses and decompresses
  32324. the image at several (or - in the case of &lsquo;<samp>quality</samp>&rsquo; level <code>8</code> - all)
  32325. shifts and average the results.
  32326. </p>
  32327. <p>The way this differs from the behavior of spp is that uspp actually encodes &amp;
  32328. decodes each case with libavcodec Snow, whereas spp uses a simplified intra only 8x8
  32329. DCT similar to MJPEG.
  32330. </p>
  32331. <p>The filter accepts the following options:
  32332. </p>
  32333. <dl compact="compact">
  32334. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  32335. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  32336. an integer in the range 0-8. If set to <code>0</code>, the filter will have no
  32337. effect. A value of <code>8</code> means the higher quality. For each increment of
  32338. that value the speed drops by a factor of approximately 2. Default value is
  32339. <code>3</code>.
  32340. </p>
  32341. </dd>
  32342. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  32343. <dd><p>Force a constant quantization parameter. If not set, the filter will use the QP
  32344. from the video stream (if available).
  32345. </p></dd>
  32346. </dl>
  32347. <a name="v360"></a>
  32348. <h2 class="section"><a href="ffprobe-all.html#toc-v360">32.222 v360</a></h2>
  32349. <p>Convert 360 videos between various formats.
  32350. </p>
  32351. <p>The filter accepts the following options:
  32352. </p>
  32353. <dl compact="compact">
  32354. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  32355. <dt>&lsquo;<samp>output</samp>&rsquo;</dt>
  32356. <dd><p>Set format of the input/output video.
  32357. </p>
  32358. <p>Available formats:
  32359. </p>
  32360. <dl compact="compact">
  32361. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  32362. <dt>&lsquo;<samp>equirect</samp>&rsquo;</dt>
  32363. <dd><p>Equirectangular projection.
  32364. </p>
  32365. </dd>
  32366. <dt>&lsquo;<samp>c3x2</samp>&rsquo;</dt>
  32367. <dt>&lsquo;<samp>c6x1</samp>&rsquo;</dt>
  32368. <dt>&lsquo;<samp>c1x6</samp>&rsquo;</dt>
  32369. <dd><p>Cubemap with 3x2/6x1/1x6 layout.
  32370. </p>
  32371. <p>Format specific options:
  32372. </p>
  32373. <dl compact="compact">
  32374. <dt>&lsquo;<samp>in_pad</samp>&rsquo;</dt>
  32375. <dt>&lsquo;<samp>out_pad</samp>&rsquo;</dt>
  32376. <dd><p>Set padding proportion for the input/output cubemap. Values in decimals.
  32377. </p>
  32378. <p>Example values:
  32379. </p><dl compact="compact">
  32380. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  32381. <dd><p>No padding.
  32382. </p></dd>
  32383. <dt>&lsquo;<samp>0.01</samp>&rsquo;</dt>
  32384. <dd><p>1% of face is padding. For example, with 1920x1280 resolution face size would be 640x640 and padding would be 3 pixels from each side. (640 * 0.01 = 6 pixels)
  32385. </p></dd>
  32386. </dl>
  32387. <p>Default value is <b>&lsquo;<samp>0</samp>&rsquo;</b>.
  32388. Maximum value is <b>&lsquo;<samp>0.1</samp>&rsquo;</b>.
  32389. </p>
  32390. </dd>
  32391. <dt>&lsquo;<samp>fin_pad</samp>&rsquo;</dt>
  32392. <dt>&lsquo;<samp>fout_pad</samp>&rsquo;</dt>
  32393. <dd><p>Set fixed padding for the input/output cubemap. Values in pixels.
  32394. </p>
  32395. <p>Default value is <b>&lsquo;<samp>0</samp>&rsquo;</b>. If greater than zero it overrides other padding options.
  32396. </p>
  32397. </dd>
  32398. <dt>&lsquo;<samp>in_forder</samp>&rsquo;</dt>
  32399. <dt>&lsquo;<samp>out_forder</samp>&rsquo;</dt>
  32400. <dd><p>Set order of faces for the input/output cubemap. Choose one direction for each position.
  32401. </p>
  32402. <p>Designation of directions:
  32403. </p><dl compact="compact">
  32404. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  32405. <dd><p>right
  32406. </p></dd>
  32407. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  32408. <dd><p>left
  32409. </p></dd>
  32410. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  32411. <dd><p>up
  32412. </p></dd>
  32413. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  32414. <dd><p>down
  32415. </p></dd>
  32416. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  32417. <dd><p>forward
  32418. </p></dd>
  32419. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  32420. <dd><p>back
  32421. </p></dd>
  32422. </dl>
  32423. <p>Default value is <b>&lsquo;<samp>rludfb</samp>&rsquo;</b>.
  32424. </p>
  32425. </dd>
  32426. <dt>&lsquo;<samp>in_frot</samp>&rsquo;</dt>
  32427. <dt>&lsquo;<samp>out_frot</samp>&rsquo;</dt>
  32428. <dd><p>Set rotation of faces for the input/output cubemap. Choose one angle for each position.
  32429. </p>
  32430. <p>Designation of angles:
  32431. </p><dl compact="compact">
  32432. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  32433. <dd><p>0 degrees clockwise
  32434. </p></dd>
  32435. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  32436. <dd><p>90 degrees clockwise
  32437. </p></dd>
  32438. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  32439. <dd><p>180 degrees clockwise
  32440. </p></dd>
  32441. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  32442. <dd><p>270 degrees clockwise
  32443. </p></dd>
  32444. </dl>
  32445. <p>Default value is <b>&lsquo;<samp>000000</samp>&rsquo;</b>.
  32446. </p></dd>
  32447. </dl>
  32448. </dd>
  32449. <dt>&lsquo;<samp>eac</samp>&rsquo;</dt>
  32450. <dd><p>Equi-Angular Cubemap.
  32451. </p>
  32452. </dd>
  32453. <dt>&lsquo;<samp>flat</samp>&rsquo;</dt>
  32454. <dt>&lsquo;<samp>gnomonic</samp>&rsquo;</dt>
  32455. <dt>&lsquo;<samp>rectilinear</samp>&rsquo;</dt>
  32456. <dd><p>Regular video.
  32457. </p>
  32458. <p>Format specific options:
  32459. </p><dl compact="compact">
  32460. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32461. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32462. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32463. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32464. </p>
  32465. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32466. </p>
  32467. </dd>
  32468. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32469. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32470. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32471. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32472. </p>
  32473. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32474. </p></dd>
  32475. </dl>
  32476. </dd>
  32477. <dt>&lsquo;<samp>dfisheye</samp>&rsquo;</dt>
  32478. <dd><p>Dual fisheye.
  32479. </p>
  32480. <p>Format specific options:
  32481. </p><dl compact="compact">
  32482. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32483. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32484. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32485. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32486. </p>
  32487. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32488. </p>
  32489. </dd>
  32490. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32491. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32492. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32493. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32494. </p>
  32495. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32496. </p></dd>
  32497. </dl>
  32498. </dd>
  32499. <dt>&lsquo;<samp>barrel</samp>&rsquo;</dt>
  32500. <dt>&lsquo;<samp>fb</samp>&rsquo;</dt>
  32501. <dt>&lsquo;<samp>barrelsplit</samp>&rsquo;</dt>
  32502. <dd><p>Facebook&rsquo;s 360 formats.
  32503. </p>
  32504. </dd>
  32505. <dt>&lsquo;<samp>sg</samp>&rsquo;</dt>
  32506. <dd><p>Stereographic format.
  32507. </p>
  32508. <p>Format specific options:
  32509. </p><dl compact="compact">
  32510. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32511. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32512. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32513. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32514. </p>
  32515. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32516. </p>
  32517. </dd>
  32518. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32519. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32520. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32521. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32522. </p>
  32523. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32524. </p></dd>
  32525. </dl>
  32526. </dd>
  32527. <dt>&lsquo;<samp>mercator</samp>&rsquo;</dt>
  32528. <dd><p>Mercator format.
  32529. </p>
  32530. </dd>
  32531. <dt>&lsquo;<samp>ball</samp>&rsquo;</dt>
  32532. <dd><p>Ball format, gives significant distortion toward the back.
  32533. </p>
  32534. </dd>
  32535. <dt>&lsquo;<samp>hammer</samp>&rsquo;</dt>
  32536. <dd><p>Hammer-Aitoff map projection format.
  32537. </p>
  32538. </dd>
  32539. <dt>&lsquo;<samp>sinusoidal</samp>&rsquo;</dt>
  32540. <dd><p>Sinusoidal map projection format.
  32541. </p>
  32542. </dd>
  32543. <dt>&lsquo;<samp>fisheye</samp>&rsquo;</dt>
  32544. <dd><p>Fisheye projection.
  32545. </p>
  32546. <p>Format specific options:
  32547. </p><dl compact="compact">
  32548. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32549. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32550. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32551. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32552. </p>
  32553. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32554. </p>
  32555. </dd>
  32556. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32557. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32558. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32559. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32560. </p>
  32561. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32562. </p></dd>
  32563. </dl>
  32564. </dd>
  32565. <dt>&lsquo;<samp>pannini</samp>&rsquo;</dt>
  32566. <dd><p>Pannini projection.
  32567. </p>
  32568. <p>Format specific options:
  32569. </p><dl compact="compact">
  32570. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32571. <dd><p>Set output pannini parameter.
  32572. </p>
  32573. </dd>
  32574. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32575. <dd><p>Set input pannini parameter.
  32576. </p></dd>
  32577. </dl>
  32578. </dd>
  32579. <dt>&lsquo;<samp>cylindrical</samp>&rsquo;</dt>
  32580. <dd><p>Cylindrical projection.
  32581. </p>
  32582. <p>Format specific options:
  32583. </p><dl compact="compact">
  32584. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32585. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32586. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32587. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32588. </p>
  32589. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32590. </p>
  32591. </dd>
  32592. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32593. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32594. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32595. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32596. </p>
  32597. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32598. </p></dd>
  32599. </dl>
  32600. </dd>
  32601. <dt>&lsquo;<samp>perspective</samp>&rsquo;</dt>
  32602. <dd><p>Perspective projection. <i>(output only)</i>
  32603. </p>
  32604. <p>Format specific options:
  32605. </p><dl compact="compact">
  32606. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32607. <dd><p>Set perspective parameter.
  32608. </p></dd>
  32609. </dl>
  32610. </dd>
  32611. <dt>&lsquo;<samp>tetrahedron</samp>&rsquo;</dt>
  32612. <dd><p>Tetrahedron projection.
  32613. </p>
  32614. </dd>
  32615. <dt>&lsquo;<samp>tsp</samp>&rsquo;</dt>
  32616. <dd><p>Truncated square pyramid projection.
  32617. </p>
  32618. </dd>
  32619. <dt>&lsquo;<samp>he</samp>&rsquo;</dt>
  32620. <dt>&lsquo;<samp>hequirect</samp>&rsquo;</dt>
  32621. <dd><p>Half equirectangular projection.
  32622. </p></dd>
  32623. </dl>
  32624. </dd>
  32625. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  32626. <dd><p>Set interpolation method.<br>
  32627. <i>Note: more complex interpolation methods require much more memory to run.</i>
  32628. </p>
  32629. <p>Available methods:
  32630. </p>
  32631. <dl compact="compact">
  32632. <dt>&lsquo;<samp>near</samp>&rsquo;</dt>
  32633. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  32634. <dd><p>Nearest neighbour.
  32635. </p></dd>
  32636. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  32637. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  32638. <dd><p>Bilinear interpolation.
  32639. </p></dd>
  32640. <dt>&lsquo;<samp>lagrange9</samp>&rsquo;</dt>
  32641. <dd><p>Lagrange9 interpolation.
  32642. </p></dd>
  32643. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  32644. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  32645. <dd><p>Bicubic interpolation.
  32646. </p></dd>
  32647. <dt>&lsquo;<samp>lanc</samp>&rsquo;</dt>
  32648. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  32649. <dd><p>Lanczos interpolation.
  32650. </p></dd>
  32651. <dt>&lsquo;<samp>sp16</samp>&rsquo;</dt>
  32652. <dt>&lsquo;<samp>spline16</samp>&rsquo;</dt>
  32653. <dd><p>Spline16 interpolation.
  32654. </p></dd>
  32655. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  32656. <dt>&lsquo;<samp>gaussian</samp>&rsquo;</dt>
  32657. <dd><p>Gaussian interpolation.
  32658. </p></dd>
  32659. </dl>
  32660. <p>Default value is <b>&lsquo;<samp>line</samp>&rsquo;</b>.
  32661. </p>
  32662. </dd>
  32663. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  32664. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  32665. <dd><p>Set the output video resolution.
  32666. </p>
  32667. <p>Default resolution depends on formats.
  32668. </p>
  32669. </dd>
  32670. <dt>&lsquo;<samp>in_stereo</samp>&rsquo;</dt>
  32671. <dt>&lsquo;<samp>out_stereo</samp>&rsquo;</dt>
  32672. <dd><p>Set the input/output stereo format.
  32673. </p>
  32674. <dl compact="compact">
  32675. <dt>&lsquo;<samp>2d</samp>&rsquo;</dt>
  32676. <dd><p>2D mono
  32677. </p></dd>
  32678. <dt>&lsquo;<samp>sbs</samp>&rsquo;</dt>
  32679. <dd><p>Side by side
  32680. </p></dd>
  32681. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  32682. <dd><p>Top bottom
  32683. </p></dd>
  32684. </dl>
  32685. <p>Default value is <b>&lsquo;<samp>2d</samp>&rsquo;</b> for input and output format.
  32686. </p>
  32687. </dd>
  32688. <dt>&lsquo;<samp>yaw</samp>&rsquo;</dt>
  32689. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  32690. <dt>&lsquo;<samp>roll</samp>&rsquo;</dt>
  32691. <dd><p>Set rotation for the output video. Values in degrees.
  32692. </p>
  32693. </dd>
  32694. <dt>&lsquo;<samp>rorder</samp>&rsquo;</dt>
  32695. <dd><p>Set rotation order for the output video. Choose one item for each position.
  32696. </p>
  32697. <dl compact="compact">
  32698. <dt>&lsquo;<samp>y, Y</samp>&rsquo;</dt>
  32699. <dd><p>yaw
  32700. </p></dd>
  32701. <dt>&lsquo;<samp>p, P</samp>&rsquo;</dt>
  32702. <dd><p>pitch
  32703. </p></dd>
  32704. <dt>&lsquo;<samp>r, R</samp>&rsquo;</dt>
  32705. <dd><p>roll
  32706. </p></dd>
  32707. </dl>
  32708. <p>Default value is <b>&lsquo;<samp>ypr</samp>&rsquo;</b>.
  32709. </p>
  32710. </dd>
  32711. <dt>&lsquo;<samp>h_flip</samp>&rsquo;</dt>
  32712. <dt>&lsquo;<samp>v_flip</samp>&rsquo;</dt>
  32713. <dt>&lsquo;<samp>d_flip</samp>&rsquo;</dt>
  32714. <dd><p>Flip the output video horizontally(swaps left-right)/vertically(swaps up-down)/in-depth(swaps back-forward). Boolean values.
  32715. </p>
  32716. </dd>
  32717. <dt>&lsquo;<samp>ih_flip</samp>&rsquo;</dt>
  32718. <dt>&lsquo;<samp>iv_flip</samp>&rsquo;</dt>
  32719. <dd><p>Set if input video is flipped horizontally/vertically. Boolean values.
  32720. </p>
  32721. </dd>
  32722. <dt>&lsquo;<samp>in_trans</samp>&rsquo;</dt>
  32723. <dd><p>Set if input video is transposed. Boolean value, by default disabled.
  32724. </p>
  32725. </dd>
  32726. <dt>&lsquo;<samp>out_trans</samp>&rsquo;</dt>
  32727. <dd><p>Set if output video needs to be transposed. Boolean value, by default disabled.
  32728. </p>
  32729. </dd>
  32730. <dt>&lsquo;<samp>alpha_mask</samp>&rsquo;</dt>
  32731. <dd><p>Build mask in alpha plane for all unmapped pixels by marking them fully transparent. Boolean value, by default disabled.
  32732. </p></dd>
  32733. </dl>
  32734. <a name="Examples-91"></a>
  32735. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-91">32.222.1 Examples</a></h3>
  32736. <ul>
  32737. <li>
  32738. Convert equirectangular video to cubemap with 3x2 layout and 1% padding using bicubic interpolation:
  32739. <div class="example">
  32740. <pre class="example">ffmpeg -i input.mkv -vf v360=e:c3x2:cubic:out_pad=0.01 output.mkv
  32741. </pre></div>
  32742. </li><li>
  32743. Extract back view of Equi-Angular Cubemap:
  32744. <div class="example">
  32745. <pre class="example">ffmpeg -i input.mkv -vf v360=eac:flat:yaw=180 output.mkv
  32746. </pre></div>
  32747. </li><li>
  32748. Convert transposed and horizontally flipped Equi-Angular Cubemap in side-by-side stereo format to equirectangular top-bottom stereo format:
  32749. <div class="example">
  32750. <pre class="example">v360=eac:equirect:in_stereo=sbs:in_trans=1:ih_flip=1:out_stereo=tb
  32751. </pre></div>
  32752. </li></ul>
  32753. <a name="Commands-71"></a>
  32754. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-71">32.222.2 Commands</a></h3>
  32755. <p>This filter supports subset of above options as <a href="#commands">commands</a>.
  32756. </p>
  32757. <a name="vaguedenoiser"></a>
  32758. <h2 class="section"><a href="ffprobe-all.html#toc-vaguedenoiser">32.223 vaguedenoiser</a></h2>
  32759. <p>Apply a wavelet based denoiser.
  32760. </p>
  32761. <p>It transforms each frame from the video input into the wavelet domain,
  32762. using Cohen-Daubechies-Feauveau 9/7. Then it applies some filtering to
  32763. the obtained coefficients. It does an inverse wavelet transform after.
  32764. Due to wavelet properties, it should give a nice smoothed result, and
  32765. reduced noise, without blurring picture features.
  32766. </p>
  32767. <p>This filter accepts the following options:
  32768. </p>
  32769. <dl compact="compact">
  32770. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  32771. <dd><p>The filtering strength. The higher, the more filtered the video will be.
  32772. Hard thresholding can use a higher threshold than soft thresholding
  32773. before the video looks overfiltered. Default value is 2.
  32774. </p>
  32775. </dd>
  32776. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  32777. <dd><p>The filtering method the filter will use.
  32778. </p>
  32779. <p>It accepts the following values:
  32780. </p><dl compact="compact">
  32781. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  32782. <dd><p>All values under the threshold will be zeroed.
  32783. </p>
  32784. </dd>
  32785. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  32786. <dd><p>All values under the threshold will be zeroed. All values above will be
  32787. reduced by the threshold.
  32788. </p>
  32789. </dd>
  32790. <dt>&lsquo;<samp>garrote</samp>&rsquo;</dt>
  32791. <dd><p>Scales or nullifies coefficients - intermediary between (more) soft and
  32792. (less) hard thresholding.
  32793. </p></dd>
  32794. </dl>
  32795. <p>Default is garrote.
  32796. </p>
  32797. </dd>
  32798. <dt>&lsquo;<samp>nsteps</samp>&rsquo;</dt>
  32799. <dd><p>Number of times, the wavelet will decompose the picture. Picture can&rsquo;t
  32800. be decomposed beyond a particular point (typically, 8 for a 640x480
  32801. frame - as 2^9 = 512 &gt; 480). Valid values are integers between 1 and 32. Default value is 6.
  32802. </p>
  32803. </dd>
  32804. <dt>&lsquo;<samp>percent</samp>&rsquo;</dt>
  32805. <dd><p>Partial of full denoising (limited coefficients shrinking), from 0 to 100. Default value is 85.
  32806. </p>
  32807. </dd>
  32808. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  32809. <dd><p>A list of the planes to process. By default all planes are processed.
  32810. </p>
  32811. </dd>
  32812. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  32813. <dd><p>The threshold type the filter will use.
  32814. </p>
  32815. <p>It accepts the following values:
  32816. </p><dl compact="compact">
  32817. <dt>&lsquo;<samp>universal</samp>&rsquo;</dt>
  32818. <dd><p>Threshold used is same for all decompositions.
  32819. </p>
  32820. </dd>
  32821. <dt>&lsquo;<samp>bayes</samp>&rsquo;</dt>
  32822. <dd><p>Threshold used depends also on each decomposition coefficients.
  32823. </p></dd>
  32824. </dl>
  32825. <p>Default is universal.
  32826. </p></dd>
  32827. </dl>
  32828. <a name="vectorscope"></a>
  32829. <h2 class="section"><a href="ffprobe-all.html#toc-vectorscope">32.224 vectorscope</a></h2>
  32830. <p>Display 2 color component values in the two dimensional graph (which is called
  32831. a vectorscope).
  32832. </p>
  32833. <p>This filter accepts the following options:
  32834. </p>
  32835. <dl compact="compact">
  32836. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  32837. <dd><p>Set vectorscope mode.
  32838. </p>
  32839. <p>It accepts the following values:
  32840. </p><dl compact="compact">
  32841. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  32842. <dt>&lsquo;<samp>tint</samp>&rsquo;</dt>
  32843. <dd><p>Gray values are displayed on graph, higher brightness means more pixels have
  32844. same component color value on location in graph. This is the default mode.
  32845. </p>
  32846. </dd>
  32847. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  32848. <dd><p>Gray values are displayed on graph. Surrounding pixels values which are not
  32849. present in video frame are drawn in gradient of 2 color components which are
  32850. set by option <code>x</code> and <code>y</code>. The 3rd color component is static.
  32851. </p>
  32852. </dd>
  32853. <dt>&lsquo;<samp>color2</samp>&rsquo;</dt>
  32854. <dd><p>Actual color components values present in video frame are displayed on graph.
  32855. </p>
  32856. </dd>
  32857. <dt>&lsquo;<samp>color3</samp>&rsquo;</dt>
  32858. <dd><p>Similar as color2 but higher frequency of same values <code>x</code> and <code>y</code>
  32859. on graph increases value of another color component, which is luminance by
  32860. default values of <code>x</code> and <code>y</code>.
  32861. </p>
  32862. </dd>
  32863. <dt>&lsquo;<samp>color4</samp>&rsquo;</dt>
  32864. <dd><p>Actual colors present in video frame are displayed on graph. If two different
  32865. colors map to same position on graph then color with higher value of component
  32866. not present in graph is picked.
  32867. </p>
  32868. </dd>
  32869. <dt>&lsquo;<samp>color5</samp>&rsquo;</dt>
  32870. <dd><p>Gray values are displayed on graph. Similar to <code>color</code> but with 3rd color
  32871. component picked from radial gradient.
  32872. </p></dd>
  32873. </dl>
  32874. </dd>
  32875. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  32876. <dd><p>Set which color component will be represented on X-axis. Default is <code>1</code>.
  32877. </p>
  32878. </dd>
  32879. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  32880. <dd><p>Set which color component will be represented on Y-axis. Default is <code>2</code>.
  32881. </p>
  32882. </dd>
  32883. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  32884. <dd><p>Set intensity, used by modes: gray, color, color3 and color5 for increasing brightness
  32885. of color component which represents frequency of (X, Y) location in graph.
  32886. </p>
  32887. </dd>
  32888. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  32889. <dd><dl compact="compact">
  32890. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32891. <dd><p>No envelope, this is default.
  32892. </p>
  32893. </dd>
  32894. <dt>&lsquo;<samp>instant</samp>&rsquo;</dt>
  32895. <dd><p>Instant envelope, even darkest single pixel will be clearly highlighted.
  32896. </p>
  32897. </dd>
  32898. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  32899. <dd><p>Hold maximum and minimum values presented in graph over time. This way you
  32900. can still spot out of range values without constantly looking at vectorscope.
  32901. </p>
  32902. </dd>
  32903. <dt>&lsquo;<samp>peak+instant</samp>&rsquo;</dt>
  32904. <dd><p>Peak and instant envelope combined together.
  32905. </p></dd>
  32906. </dl>
  32907. </dd>
  32908. <dt>&lsquo;<samp>graticule, g</samp>&rsquo;</dt>
  32909. <dd><p>Set what kind of graticule to draw.
  32910. </p><dl compact="compact">
  32911. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32912. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  32913. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  32914. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  32915. </dl>
  32916. </dd>
  32917. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  32918. <dd><p>Set graticule opacity.
  32919. </p>
  32920. </dd>
  32921. <dt>&lsquo;<samp>flags, f</samp>&rsquo;</dt>
  32922. <dd><p>Set graticule flags.
  32923. </p>
  32924. <dl compact="compact">
  32925. <dt>&lsquo;<samp>white</samp>&rsquo;</dt>
  32926. <dd><p>Draw graticule for white point.
  32927. </p>
  32928. </dd>
  32929. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  32930. <dd><p>Draw graticule for black point.
  32931. </p>
  32932. </dd>
  32933. <dt>&lsquo;<samp>name</samp>&rsquo;</dt>
  32934. <dd><p>Draw color points short names.
  32935. </p></dd>
  32936. </dl>
  32937. </dd>
  32938. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  32939. <dd><p>Set background opacity.
  32940. </p>
  32941. </dd>
  32942. <dt>&lsquo;<samp>lthreshold, l</samp>&rsquo;</dt>
  32943. <dd><p>Set low threshold for color component not represented on X or Y axis.
  32944. Values lower than this value will be ignored. Default is 0.
  32945. Note this value is multiplied with actual max possible value one pixel component
  32946. can have. So for 8-bit input and low threshold value of 0.1 actual threshold
  32947. is 0.1 * 255 = 25.
  32948. </p>
  32949. </dd>
  32950. <dt>&lsquo;<samp>hthreshold, h</samp>&rsquo;</dt>
  32951. <dd><p>Set high threshold for color component not represented on X or Y axis.
  32952. Values higher than this value will be ignored. Default is 1.
  32953. Note this value is multiplied with actual max possible value one pixel component
  32954. can have. So for 8-bit input and high threshold value of 0.9 actual threshold
  32955. is 0.9 * 255 = 230.
  32956. </p>
  32957. </dd>
  32958. <dt>&lsquo;<samp>colorspace, c</samp>&rsquo;</dt>
  32959. <dd><p>Set what kind of colorspace to use when drawing graticule.
  32960. </p><dl compact="compact">
  32961. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  32962. <dt>&lsquo;<samp>601</samp>&rsquo;</dt>
  32963. <dt>&lsquo;<samp>709</samp>&rsquo;</dt>
  32964. </dl>
  32965. <p>Default is auto.
  32966. </p>
  32967. </dd>
  32968. <dt>&lsquo;<samp>tint0, t0</samp>&rsquo;</dt>
  32969. <dt>&lsquo;<samp>tint1, t1</samp>&rsquo;</dt>
  32970. <dd><p>Set color tint for gray/tint vectorscope mode. By default both options are zero.
  32971. This means no tint, and output will remain gray.
  32972. </p></dd>
  32973. </dl>
  32974. <p><a name="vidstabdetect"></a>
  32975. </p><a name="vidstabdetect-1"></a>
  32976. <h2 class="section"><a href="ffprobe-all.html#toc-vidstabdetect-1">32.225 vidstabdetect</a></h2>
  32977. <p>Analyze video stabilization/deshaking. Perform pass 1 of 2, see
  32978. <a href="#vidstabtransform">vidstabtransform</a> for pass 2.
  32979. </p>
  32980. <p>This filter generates a file with relative translation and rotation
  32981. transform information about subsequent frames, which is then used by
  32982. the <a href="#vidstabtransform">vidstabtransform</a> filter.
  32983. </p>
  32984. <p>To enable compilation of this filter you need to configure FFmpeg with
  32985. <code>--enable-libvidstab</code>.
  32986. </p>
  32987. <p>This filter accepts the following options:
  32988. </p>
  32989. <dl compact="compact">
  32990. <dt>&lsquo;<samp>result</samp>&rsquo;</dt>
  32991. <dd><p>Set the path to the file used to write the transforms information.
  32992. Default value is &lsquo;<tt>transforms.trf</tt>&rsquo;.
  32993. </p>
  32994. </dd>
  32995. <dt>&lsquo;<samp>shakiness</samp>&rsquo;</dt>
  32996. <dd><p>Set how shaky the video is and how quick the camera is. It accepts an
  32997. integer in the range 1-10, a value of 1 means little shakiness, a
  32998. value of 10 means strong shakiness. Default value is 5.
  32999. </p>
  33000. </dd>
  33001. <dt>&lsquo;<samp>accuracy</samp>&rsquo;</dt>
  33002. <dd><p>Set the accuracy of the detection process. It must be a value in the
  33003. range 1-15. A value of 1 means low accuracy, a value of 15 means high
  33004. accuracy. Default value is 15.
  33005. </p>
  33006. </dd>
  33007. <dt>&lsquo;<samp>stepsize</samp>&rsquo;</dt>
  33008. <dd><p>Set stepsize of the search process. The region around minimum is
  33009. scanned with 1 pixel resolution. Default value is 6.
  33010. </p>
  33011. </dd>
  33012. <dt>&lsquo;<samp>mincontrast</samp>&rsquo;</dt>
  33013. <dd><p>Set minimum contrast. Below this value a local measurement field is
  33014. discarded. Must be a floating point value in the range 0-1. Default
  33015. value is 0.3.
  33016. </p>
  33017. </dd>
  33018. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  33019. <dd><p>Set reference frame number for tripod mode.
  33020. </p>
  33021. <p>If enabled, the motion of the frames is compared to a reference frame
  33022. in the filtered stream, identified by the specified number. The idea
  33023. is to compensate all movements in a more-or-less static scene and keep
  33024. the camera view absolutely still.
  33025. </p>
  33026. <p>If set to 0, it is disabled. The frames are counted starting from 1.
  33027. </p>
  33028. </dd>
  33029. <dt>&lsquo;<samp>show</samp>&rsquo;</dt>
  33030. <dd><p>Show fields and transforms in the resulting frames. It accepts an
  33031. integer in the range 0-2. Default value is 0, which disables any
  33032. visualization.
  33033. </p></dd>
  33034. </dl>
  33035. <a name="Examples-149"></a>
  33036. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-149">32.225.1 Examples</a></h3>
  33037. <ul>
  33038. <li>
  33039. Use default values:
  33040. <div class="example">
  33041. <pre class="example">vidstabdetect
  33042. </pre></div>
  33043. </li><li>
  33044. Analyze strongly shaky movie and put the results in file
  33045. &lsquo;<tt>mytransforms.trf</tt>&rsquo;:
  33046. <div class="example">
  33047. <pre class="example">vidstabdetect=shakiness=10:accuracy=15:result=&quot;mytransforms.trf&quot;
  33048. </pre></div>
  33049. </li><li>
  33050. Visualize the result of internal transformations in the resulting
  33051. video:
  33052. <div class="example">
  33053. <pre class="example">vidstabdetect=show=1
  33054. </pre></div>
  33055. </li><li>
  33056. Analyze a video with medium shakiness using <code>ffmpeg</code>:
  33057. <div class="example">
  33058. <pre class="example">ffmpeg -i input -vf vidstabdetect=shakiness=5:show=1 dummy.avi
  33059. </pre></div>
  33060. </li></ul>
  33061. <p><a name="vidstabtransform"></a>
  33062. </p><a name="vidstabtransform-1"></a>
  33063. <h2 class="section"><a href="ffprobe-all.html#toc-vidstabtransform-1">32.226 vidstabtransform</a></h2>
  33064. <p>Video stabilization/deshaking: pass 2 of 2,
  33065. see <a href="#vidstabdetect">vidstabdetect</a> for pass 1.
  33066. </p>
  33067. <p>Read a file with transform information for each frame and
  33068. apply/compensate them. Together with the <a href="#vidstabdetect">vidstabdetect</a>
  33069. filter this can be used to deshake videos. See also
  33070. <a href="http://public.hronopik.de/vid.stab">http://public.hronopik.de/vid.stab</a>. It is important to also use
  33071. the <a href="#unsharp">unsharp</a> filter, see below.
  33072. </p>
  33073. <p>To enable compilation of this filter you need to configure FFmpeg with
  33074. <code>--enable-libvidstab</code>.
  33075. </p>
  33076. <a name="Options-7"></a>
  33077. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-7">32.226.1 Options</a></h3>
  33078. <dl compact="compact">
  33079. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  33080. <dd><p>Set path to the file used to read the transforms. Default value is
  33081. &lsquo;<tt>transforms.trf</tt>&rsquo;.
  33082. </p>
  33083. </dd>
  33084. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  33085. <dd><p>Set the number of frames (value*2 + 1) used for lowpass filtering the
  33086. camera movements. Default value is 10.
  33087. </p>
  33088. <p>For example a number of 10 means that 21 frames are used (10 in the
  33089. past and 10 in the future) to smoothen the motion in the video. A
  33090. larger value leads to a smoother video, but limits the acceleration of
  33091. the camera (pan/tilt movements). 0 is a special case where a static
  33092. camera is simulated.
  33093. </p>
  33094. </dd>
  33095. <dt>&lsquo;<samp>optalgo</samp>&rsquo;</dt>
  33096. <dd><p>Set the camera path optimization algorithm.
  33097. </p>
  33098. <p>Accepted values are:
  33099. </p><dl compact="compact">
  33100. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  33101. <dd><p>gaussian kernel low-pass filter on camera motion (default)
  33102. </p></dd>
  33103. <dt>&lsquo;<samp>avg</samp>&rsquo;</dt>
  33104. <dd><p>averaging on transformations
  33105. </p></dd>
  33106. </dl>
  33107. </dd>
  33108. <dt>&lsquo;<samp>maxshift</samp>&rsquo;</dt>
  33109. <dd><p>Set maximal number of pixels to translate frames. Default value is -1,
  33110. meaning no limit.
  33111. </p>
  33112. </dd>
  33113. <dt>&lsquo;<samp>maxangle</samp>&rsquo;</dt>
  33114. <dd><p>Set maximal angle in radians (degree*PI/180) to rotate frames. Default
  33115. value is -1, meaning no limit.
  33116. </p>
  33117. </dd>
  33118. <dt>&lsquo;<samp>crop</samp>&rsquo;</dt>
  33119. <dd><p>Specify how to deal with borders that may be visible due to movement
  33120. compensation.
  33121. </p>
  33122. <p>Available values are:
  33123. </p><dl compact="compact">
  33124. <dt>&lsquo;<samp>keep</samp>&rsquo;</dt>
  33125. <dd><p>keep image information from previous frame (default)
  33126. </p></dd>
  33127. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  33128. <dd><p>fill the border black
  33129. </p></dd>
  33130. </dl>
  33131. </dd>
  33132. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  33133. <dd><p>Invert transforms if set to 1. Default value is 0.
  33134. </p>
  33135. </dd>
  33136. <dt>&lsquo;<samp>relative</samp>&rsquo;</dt>
  33137. <dd><p>Consider transforms as relative to previous frame if set to 1,
  33138. absolute if set to 0. Default value is 0.
  33139. </p>
  33140. </dd>
  33141. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  33142. <dd><p>Set percentage to zoom. A positive value will result in a zoom-in
  33143. effect, a negative value in a zoom-out effect. Default value is 0 (no
  33144. zoom).
  33145. </p>
  33146. </dd>
  33147. <dt>&lsquo;<samp>optzoom</samp>&rsquo;</dt>
  33148. <dd><p>Set optimal zooming to avoid borders.
  33149. </p>
  33150. <p>Accepted values are:
  33151. </p><dl compact="compact">
  33152. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  33153. <dd><p>disabled
  33154. </p></dd>
  33155. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  33156. <dd><p>optimal static zoom value is determined (only very strong movements
  33157. will lead to visible borders) (default)
  33158. </p></dd>
  33159. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  33160. <dd><p>optimal adaptive zoom value is determined (no borders will be
  33161. visible), see &lsquo;<samp>zoomspeed</samp>&rsquo;
  33162. </p></dd>
  33163. </dl>
  33164. <p>Note that the value given at zoom is added to the one calculated here.
  33165. </p>
  33166. </dd>
  33167. <dt>&lsquo;<samp>zoomspeed</samp>&rsquo;</dt>
  33168. <dd><p>Set percent to zoom maximally each frame (enabled when
  33169. &lsquo;<samp>optzoom</samp>&rsquo; is set to 2). Range is from 0 to 5, default value is
  33170. 0.25.
  33171. </p>
  33172. </dd>
  33173. <dt>&lsquo;<samp>interpol</samp>&rsquo;</dt>
  33174. <dd><p>Specify type of interpolation.
  33175. </p>
  33176. <p>Available values are:
  33177. </p><dl compact="compact">
  33178. <dt>&lsquo;<samp>no</samp>&rsquo;</dt>
  33179. <dd><p>no interpolation
  33180. </p></dd>
  33181. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  33182. <dd><p>linear only horizontal
  33183. </p></dd>
  33184. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  33185. <dd><p>linear in both directions (default)
  33186. </p></dd>
  33187. <dt>&lsquo;<samp>bicubic</samp>&rsquo;</dt>
  33188. <dd><p>cubic in both directions (slow)
  33189. </p></dd>
  33190. </dl>
  33191. </dd>
  33192. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  33193. <dd><p>Enable virtual tripod mode if set to 1, which is equivalent to
  33194. <code>relative=0:smoothing=0</code>. Default value is 0.
  33195. </p>
  33196. <p>Use also <code>tripod</code> option of <a href="#vidstabdetect">vidstabdetect</a>.
  33197. </p>
  33198. </dd>
  33199. <dt>&lsquo;<samp>debug</samp>&rsquo;</dt>
  33200. <dd><p>Increase log verbosity if set to 1. Also the detected global motions
  33201. are written to the temporary file &lsquo;<tt>global_motions.trf</tt>&rsquo;. Default
  33202. value is 0.
  33203. </p></dd>
  33204. </dl>
  33205. <a name="Examples-119"></a>
  33206. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-119">32.226.2 Examples</a></h3>
  33207. <ul>
  33208. <li>
  33209. Use <code>ffmpeg</code> for a typical stabilization with default values:
  33210. <div class="example">
  33211. <pre class="example">ffmpeg -i inp.mpeg -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 inp_stabilized.mpeg
  33212. </pre></div>
  33213. <p>Note the use of the <a href="#unsharp">unsharp</a> filter which is always recommended.
  33214. </p>
  33215. </li><li>
  33216. Zoom in a bit more and load transform data from a given file:
  33217. <div class="example">
  33218. <pre class="example">vidstabtransform=zoom=5:input=&quot;mytransforms.trf&quot;
  33219. </pre></div>
  33220. </li><li>
  33221. Smoothen the video even more:
  33222. <div class="example">
  33223. <pre class="example">vidstabtransform=smoothing=30
  33224. </pre></div>
  33225. </li></ul>
  33226. <a name="vflip"></a>
  33227. <h2 class="section"><a href="ffprobe-all.html#toc-vflip">32.227 vflip</a></h2>
  33228. <p>Flip the input video vertically.
  33229. </p>
  33230. <p>For example, to vertically flip a video with <code>ffmpeg</code>:
  33231. </p><div class="example">
  33232. <pre class="example">ffmpeg -i in.avi -vf &quot;vflip&quot; out.avi
  33233. </pre></div>
  33234. <a name="vfrdet"></a>
  33235. <h2 class="section"><a href="ffprobe-all.html#toc-vfrdet">32.228 vfrdet</a></h2>
  33236. <p>Detect variable frame rate video.
  33237. </p>
  33238. <p>This filter tries to detect if the input is variable or constant frame rate.
  33239. </p>
  33240. <p>At end it will output number of frames detected as having variable delta pts,
  33241. and ones with constant delta pts.
  33242. If there was frames with variable delta, than it will also show min, max and
  33243. average delta encountered.
  33244. </p>
  33245. <a name="vibrance"></a>
  33246. <h2 class="section"><a href="ffprobe-all.html#toc-vibrance">32.229 vibrance</a></h2>
  33247. <p>Boost or alter saturation.
  33248. </p>
  33249. <p>The filter accepts the following options:
  33250. </p><dl compact="compact">
  33251. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  33252. <dd><p>Set strength of boost if positive value or strength of alter if negative value.
  33253. Default is 0. Allowed range is from -2 to 2.
  33254. </p>
  33255. </dd>
  33256. <dt>&lsquo;<samp>rbal</samp>&rsquo;</dt>
  33257. <dd><p>Set the red balance. Default is 1. Allowed range is from -10 to 10.
  33258. </p>
  33259. </dd>
  33260. <dt>&lsquo;<samp>gbal</samp>&rsquo;</dt>
  33261. <dd><p>Set the green balance. Default is 1. Allowed range is from -10 to 10.
  33262. </p>
  33263. </dd>
  33264. <dt>&lsquo;<samp>bbal</samp>&rsquo;</dt>
  33265. <dd><p>Set the blue balance. Default is 1. Allowed range is from -10 to 10.
  33266. </p>
  33267. </dd>
  33268. <dt>&lsquo;<samp>rlum</samp>&rsquo;</dt>
  33269. <dd><p>Set the red luma coefficient.
  33270. </p>
  33271. </dd>
  33272. <dt>&lsquo;<samp>glum</samp>&rsquo;</dt>
  33273. <dd><p>Set the green luma coefficient.
  33274. </p>
  33275. </dd>
  33276. <dt>&lsquo;<samp>blum</samp>&rsquo;</dt>
  33277. <dd><p>Set the blue luma coefficient.
  33278. </p>
  33279. </dd>
  33280. <dt>&lsquo;<samp>alternate</samp>&rsquo;</dt>
  33281. <dd><p>If <code>intensity</code> is negative and this is set to 1, colors will change,
  33282. otherwise colors will be less saturated, more towards gray.
  33283. </p></dd>
  33284. </dl>
  33285. <a name="Commands-60"></a>
  33286. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-60">32.229.1 Commands</a></h3>
  33287. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  33288. </p>
  33289. <p><a name="vignette"></a>
  33290. </p><a name="vignette-1"></a>
  33291. <h2 class="section"><a href="ffprobe-all.html#toc-vignette-1">32.230 vignette</a></h2>
  33292. <p>Make or reverse a natural vignetting effect.
  33293. </p>
  33294. <p>The filter accepts the following options:
  33295. </p>
  33296. <dl compact="compact">
  33297. <dt>&lsquo;<samp>angle, a</samp>&rsquo;</dt>
  33298. <dd><p>Set lens angle expression as a number of radians.
  33299. </p>
  33300. <p>The value is clipped in the <code>[0,PI/2]</code> range.
  33301. </p>
  33302. <p>Default value: <code>&quot;PI/5&quot;</code>
  33303. </p>
  33304. </dd>
  33305. <dt>&lsquo;<samp>x0</samp>&rsquo;</dt>
  33306. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  33307. <dd><p>Set center coordinates expressions. Respectively <code>&quot;w/2&quot;</code> and <code>&quot;h/2&quot;</code>
  33308. by default.
  33309. </p>
  33310. </dd>
  33311. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  33312. <dd><p>Set forward/backward mode.
  33313. </p>
  33314. <p>Available modes are:
  33315. </p><dl compact="compact">
  33316. <dt>&lsquo;<samp>forward</samp>&rsquo;</dt>
  33317. <dd><p>The larger the distance from the central point, the darker the image becomes.
  33318. </p>
  33319. </dd>
  33320. <dt>&lsquo;<samp>backward</samp>&rsquo;</dt>
  33321. <dd><p>The larger the distance from the central point, the brighter the image becomes.
  33322. This can be used to reverse a vignette effect, though there is no automatic
  33323. detection to extract the lens &lsquo;<samp>angle</samp>&rsquo; and other settings (yet). It can
  33324. also be used to create a burning effect.
  33325. </p></dd>
  33326. </dl>
  33327. <p>Default value is &lsquo;<samp>forward</samp>&rsquo;.
  33328. </p>
  33329. </dd>
  33330. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  33331. <dd><p>Set evaluation mode for the expressions (&lsquo;<samp>angle</samp>&rsquo;, &lsquo;<samp>x0</samp>&rsquo;, &lsquo;<samp>y0</samp>&rsquo;).
  33332. </p>
  33333. <p>It accepts the following values:
  33334. </p><dl compact="compact">
  33335. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  33336. <dd><p>Evaluate expressions only once during the filter initialization.
  33337. </p>
  33338. </dd>
  33339. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  33340. <dd><p>Evaluate expressions for each incoming frame. This is way slower than the
  33341. &lsquo;<samp>init</samp>&rsquo; mode since it requires all the scalers to be re-computed, but it
  33342. allows advanced dynamic expressions.
  33343. </p></dd>
  33344. </dl>
  33345. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  33346. </p>
  33347. </dd>
  33348. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  33349. <dd><p>Set dithering to reduce the circular banding effects. Default is <code>1</code>
  33350. (enabled).
  33351. </p>
  33352. </dd>
  33353. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  33354. <dd><p>Set vignette aspect. This setting allows one to adjust the shape of the vignette.
  33355. Setting this value to the SAR of the input will make a rectangular vignetting
  33356. following the dimensions of the video.
  33357. </p>
  33358. <p>Default is <code>1/1</code>.
  33359. </p></dd>
  33360. </dl>
  33361. <a name="Expressions"></a>
  33362. <h3 class="subsection"><a href="ffprobe-all.html#toc-Expressions">32.230.1 Expressions</a></h3>
  33363. <p>The &lsquo;<samp>alpha</samp>&rsquo;, &lsquo;<samp>x0</samp>&rsquo; and &lsquo;<samp>y0</samp>&rsquo; expressions can contain the
  33364. following parameters.
  33365. </p>
  33366. <dl compact="compact">
  33367. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  33368. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  33369. <dd><p>input width and height
  33370. </p>
  33371. </dd>
  33372. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  33373. <dd><p>the number of input frame, starting from 0
  33374. </p>
  33375. </dd>
  33376. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  33377. <dd><p>the PTS (Presentation TimeStamp) time of the filtered video frame, expressed in
  33378. <var>TB</var> units, NAN if undefined
  33379. </p>
  33380. </dd>
  33381. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  33382. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  33383. </p>
  33384. </dd>
  33385. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  33386. <dd><p>the PTS (Presentation TimeStamp) of the filtered video frame,
  33387. expressed in seconds, NAN if undefined
  33388. </p>
  33389. </dd>
  33390. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  33391. <dd><p>time base of the input video
  33392. </p></dd>
  33393. </dl>
  33394. <a name="Examples-141"></a>
  33395. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-141">32.230.2 Examples</a></h3>
  33396. <ul>
  33397. <li>
  33398. Apply simple strong vignetting effect:
  33399. <div class="example">
  33400. <pre class="example">vignette=PI/4
  33401. </pre></div>
  33402. </li><li>
  33403. Make a flickering vignetting:
  33404. <div class="example">
  33405. <pre class="example">vignette='PI/4+random(1)*PI/50':eval=frame
  33406. </pre></div>
  33407. </li></ul>
  33408. <a name="vmafmotion"></a>
  33409. <h2 class="section"><a href="ffprobe-all.html#toc-vmafmotion">32.231 vmafmotion</a></h2>
  33410. <p>Obtain the average VMAF motion score of a video.
  33411. It is one of the component metrics of VMAF.
  33412. </p>
  33413. <p>The obtained average motion score is printed through the logging system.
  33414. </p>
  33415. <p>The filter accepts the following options:
  33416. </p>
  33417. <dl compact="compact">
  33418. <dt>&lsquo;<samp>stats_file</samp>&rsquo;</dt>
  33419. <dd><p>If specified, the filter will use the named file to save the motion score of
  33420. each frame with respect to the previous frame.
  33421. When filename equals &quot;-&quot; the data is sent to standard output.
  33422. </p></dd>
  33423. </dl>
  33424. <p>Example:
  33425. </p><div class="example">
  33426. <pre class="example">ffmpeg -i ref.mpg -vf vmafmotion -f null -
  33427. </pre></div>
  33428. <a name="vstack"></a>
  33429. <h2 class="section"><a href="ffprobe-all.html#toc-vstack">32.232 vstack</a></h2>
  33430. <p>Stack input videos vertically.
  33431. </p>
  33432. <p>All streams must be of same pixel format and of same width.
  33433. </p>
  33434. <p>Note that this filter is faster than using <a href="#overlay">overlay</a> and <a href="#pad">pad</a> filter
  33435. to create same output.
  33436. </p>
  33437. <p>The filter accepts the following options:
  33438. </p>
  33439. <dl compact="compact">
  33440. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  33441. <dd><p>Set number of input streams. Default is 2.
  33442. </p>
  33443. </dd>
  33444. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  33445. <dd><p>If set to 1, force the output to terminate when the shortest input
  33446. terminates. Default value is 0.
  33447. </p></dd>
  33448. </dl>
  33449. <a name="w3fdif"></a>
  33450. <h2 class="section"><a href="ffprobe-all.html#toc-w3fdif">32.233 w3fdif</a></h2>
  33451. <p>Deinterlace the input video (&quot;w3fdif&quot; stands for &quot;Weston 3 Field
  33452. Deinterlacing Filter&quot;).
  33453. </p>
  33454. <p>Based on the process described by Martin Weston for BBC R&amp;D, and
  33455. implemented based on the de-interlace algorithm written by Jim
  33456. Easterbrook for BBC R&amp;D, the Weston 3 field deinterlacing filter
  33457. uses filter coefficients calculated by BBC R&amp;D.
  33458. </p>
  33459. <p>This filter uses field-dominance information in frame to decide which
  33460. of each pair of fields to place first in the output.
  33461. If it gets it wrong use <a href="#setfield">setfield</a> filter before <code>w3fdif</code> filter.
  33462. </p>
  33463. <p>There are two sets of filter coefficients, so called &quot;simple&quot;
  33464. and &quot;complex&quot;. Which set of filter coefficients is used can
  33465. be set by passing an optional parameter:
  33466. </p>
  33467. <dl compact="compact">
  33468. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  33469. <dd><p>Set the interlacing filter coefficients. Accepts one of the following values:
  33470. </p>
  33471. <dl compact="compact">
  33472. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  33473. <dd><p>Simple filter coefficient set.
  33474. </p></dd>
  33475. <dt>&lsquo;<samp>complex</samp>&rsquo;</dt>
  33476. <dd><p>More-complex filter coefficient set.
  33477. </p></dd>
  33478. </dl>
  33479. <p>Default value is &lsquo;<samp>complex</samp>&rsquo;.
  33480. </p>
  33481. </dd>
  33482. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  33483. <dd><p>Specify which frames to deinterlace. Accepts one of the following values:
  33484. </p>
  33485. <dl compact="compact">
  33486. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  33487. <dd><p>Deinterlace all frames,
  33488. </p></dd>
  33489. <dt>&lsquo;<samp>interlaced</samp>&rsquo;</dt>
  33490. <dd><p>Only deinterlace frames marked as interlaced.
  33491. </p></dd>
  33492. </dl>
  33493. <p>Default value is &lsquo;<samp>all</samp>&rsquo;.
  33494. </p></dd>
  33495. </dl>
  33496. <a name="waveform"></a>
  33497. <h2 class="section"><a href="ffprobe-all.html#toc-waveform">32.234 waveform</a></h2>
  33498. <p>Video waveform monitor.
  33499. </p>
  33500. <p>The waveform monitor plots color component intensity. By default luminance
  33501. only. Each column of the waveform corresponds to a column of pixels in the
  33502. source video.
  33503. </p>
  33504. <p>It accepts the following options:
  33505. </p>
  33506. <dl compact="compact">
  33507. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  33508. <dd><p>Can be either <code>row</code>, or <code>column</code>. Default is <code>column</code>.
  33509. In row mode, the graph on the left side represents color component value 0 and
  33510. the right side represents value = 255. In column mode, the top side represents
  33511. color component value = 0 and bottom side represents value = 255.
  33512. </p>
  33513. </dd>
  33514. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  33515. <dd><p>Set intensity. Smaller values are useful to find out how many values of the same
  33516. luminance are distributed across input rows/columns.
  33517. Default value is <code>0.04</code>. Allowed range is [0, 1].
  33518. </p>
  33519. </dd>
  33520. <dt>&lsquo;<samp>mirror, r</samp>&rsquo;</dt>
  33521. <dd><p>Set mirroring mode. <code>0</code> means unmirrored, <code>1</code> means mirrored.
  33522. In mirrored mode, higher values will be represented on the left
  33523. side for <code>row</code> mode and at the top for <code>column</code> mode. Default is
  33524. <code>1</code> (mirrored).
  33525. </p>
  33526. </dd>
  33527. <dt>&lsquo;<samp>display, d</samp>&rsquo;</dt>
  33528. <dd><p>Set display mode.
  33529. It accepts the following values:
  33530. </p><dl compact="compact">
  33531. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  33532. <dd><p>Presents information identical to that in the <code>parade</code>, except
  33533. that the graphs representing color components are superimposed directly
  33534. over one another.
  33535. </p>
  33536. <p>This display mode makes it easier to spot relative differences or similarities
  33537. in overlapping areas of the color components that are supposed to be identical,
  33538. such as neutral whites, grays, or blacks.
  33539. </p>
  33540. </dd>
  33541. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  33542. <dd><p>Display separate graph for the color components side by side in
  33543. <code>row</code> mode or one below the other in <code>column</code> mode.
  33544. </p>
  33545. </dd>
  33546. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  33547. <dd><p>Display separate graph for the color components side by side in
  33548. <code>column</code> mode or one below the other in <code>row</code> mode.
  33549. </p>
  33550. <p>Using this display mode makes it easy to spot color casts in the highlights
  33551. and shadows of an image, by comparing the contours of the top and the bottom
  33552. graphs of each waveform. Since whites, grays, and blacks are characterized
  33553. by exactly equal amounts of red, green, and blue, neutral areas of the picture
  33554. should display three waveforms of roughly equal width/height. If not, the
  33555. correction is easy to perform by making level adjustments the three waveforms.
  33556. </p></dd>
  33557. </dl>
  33558. <p>Default is <code>stack</code>.
  33559. </p>
  33560. </dd>
  33561. <dt>&lsquo;<samp>components, c</samp>&rsquo;</dt>
  33562. <dd><p>Set which color components to display. Default is 1, which means only luminance
  33563. or red color component if input is in RGB colorspace. If is set for example to
  33564. 7 it will display all 3 (if) available color components.
  33565. </p>
  33566. </dd>
  33567. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  33568. <dd><dl compact="compact">
  33569. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  33570. <dd><p>No envelope, this is default.
  33571. </p>
  33572. </dd>
  33573. <dt>&lsquo;<samp>instant</samp>&rsquo;</dt>
  33574. <dd><p>Instant envelope, minimum and maximum values presented in graph will be easily
  33575. visible even with small <code>step</code> value.
  33576. </p>
  33577. </dd>
  33578. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  33579. <dd><p>Hold minimum and maximum values presented in graph across time. This way you
  33580. can still spot out of range values without constantly looking at waveforms.
  33581. </p>
  33582. </dd>
  33583. <dt>&lsquo;<samp>peak+instant</samp>&rsquo;</dt>
  33584. <dd><p>Peak and instant envelope combined together.
  33585. </p></dd>
  33586. </dl>
  33587. </dd>
  33588. <dt>&lsquo;<samp>filter, f</samp>&rsquo;</dt>
  33589. <dd><dl compact="compact">
  33590. <dt>&lsquo;<samp>lowpass</samp>&rsquo;</dt>
  33591. <dd><p>No filtering, this is default.
  33592. </p>
  33593. </dd>
  33594. <dt>&lsquo;<samp>flat</samp>&rsquo;</dt>
  33595. <dd><p>Luma and chroma combined together.
  33596. </p>
  33597. </dd>
  33598. <dt>&lsquo;<samp>aflat</samp>&rsquo;</dt>
  33599. <dd><p>Similar as above, but shows difference between blue and red chroma.
  33600. </p>
  33601. </dd>
  33602. <dt>&lsquo;<samp>xflat</samp>&rsquo;</dt>
  33603. <dd><p>Similar as above, but use different colors.
  33604. </p>
  33605. </dd>
  33606. <dt>&lsquo;<samp>yflat</samp>&rsquo;</dt>
  33607. <dd><p>Similar as above, but again with different colors.
  33608. </p>
  33609. </dd>
  33610. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  33611. <dd><p>Displays only chroma.
  33612. </p>
  33613. </dd>
  33614. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  33615. <dd><p>Displays actual color value on waveform.
  33616. </p>
  33617. </dd>
  33618. <dt>&lsquo;<samp>acolor</samp>&rsquo;</dt>
  33619. <dd><p>Similar as above, but with luma showing frequency of chroma values.
  33620. </p></dd>
  33621. </dl>
  33622. </dd>
  33623. <dt>&lsquo;<samp>graticule, g</samp>&rsquo;</dt>
  33624. <dd><p>Set which graticule to display.
  33625. </p>
  33626. <dl compact="compact">
  33627. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  33628. <dd><p>Do not display graticule.
  33629. </p>
  33630. </dd>
  33631. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  33632. <dd><p>Display green graticule showing legal broadcast ranges.
  33633. </p>
  33634. </dd>
  33635. <dt>&lsquo;<samp>orange</samp>&rsquo;</dt>
  33636. <dd><p>Display orange graticule showing legal broadcast ranges.
  33637. </p>
  33638. </dd>
  33639. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  33640. <dd><p>Display invert graticule showing legal broadcast ranges.
  33641. </p></dd>
  33642. </dl>
  33643. </dd>
  33644. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  33645. <dd><p>Set graticule opacity.
  33646. </p>
  33647. </dd>
  33648. <dt>&lsquo;<samp>flags, fl</samp>&rsquo;</dt>
  33649. <dd><p>Set graticule flags.
  33650. </p>
  33651. <dl compact="compact">
  33652. <dt>&lsquo;<samp>numbers</samp>&rsquo;</dt>
  33653. <dd><p>Draw numbers above lines. By default enabled.
  33654. </p>
  33655. </dd>
  33656. <dt>&lsquo;<samp>dots</samp>&rsquo;</dt>
  33657. <dd><p>Draw dots instead of lines.
  33658. </p></dd>
  33659. </dl>
  33660. </dd>
  33661. <dt>&lsquo;<samp>scale, s</samp>&rsquo;</dt>
  33662. <dd><p>Set scale used for displaying graticule.
  33663. </p>
  33664. <dl compact="compact">
  33665. <dt>&lsquo;<samp>digital</samp>&rsquo;</dt>
  33666. <dt>&lsquo;<samp>millivolts</samp>&rsquo;</dt>
  33667. <dt>&lsquo;<samp>ire</samp>&rsquo;</dt>
  33668. </dl>
  33669. <p>Default is digital.
  33670. </p>
  33671. </dd>
  33672. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  33673. <dd><p>Set background opacity.
  33674. </p>
  33675. </dd>
  33676. <dt>&lsquo;<samp>tint0, t0</samp>&rsquo;</dt>
  33677. <dt>&lsquo;<samp>tint1, t1</samp>&rsquo;</dt>
  33678. <dd><p>Set tint for output.
  33679. Only used with lowpass filter and when display is not overlay and input
  33680. pixel formats are not RGB.
  33681. </p></dd>
  33682. </dl>
  33683. <a name="weave_002c-doubleweave"></a>
  33684. <h2 class="section"><a href="ffprobe-all.html#toc-weave_002c-doubleweave">32.235 weave, doubleweave</a></h2>
  33685. <p>The <code>weave</code> takes a field-based video input and join
  33686. each two sequential fields into single frame, producing a new double
  33687. height clip with half the frame rate and half the frame count.
  33688. </p>
  33689. <p>The <code>doubleweave</code> works same as <code>weave</code> but without
  33690. halving frame rate and frame count.
  33691. </p>
  33692. <p>It accepts the following option:
  33693. </p>
  33694. <dl compact="compact">
  33695. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  33696. <dd><p>Set first field. Available values are:
  33697. </p>
  33698. <dl compact="compact">
  33699. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  33700. <dd><p>Set the frame as top-field-first.
  33701. </p>
  33702. </dd>
  33703. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  33704. <dd><p>Set the frame as bottom-field-first.
  33705. </p></dd>
  33706. </dl>
  33707. </dd>
  33708. </dl>
  33709. <a name="Examples-127"></a>
  33710. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-127">32.235.1 Examples</a></h3>
  33711. <ul>
  33712. <li>
  33713. Interlace video using <a href="#select">select</a> and <a href="#separatefields">separatefields</a> filter:
  33714. <div class="example">
  33715. <pre class="example">separatefields,select=eq(mod(n,4),0)+eq(mod(n,4),3),weave
  33716. </pre></div>
  33717. </li></ul>
  33718. <a name="xbr"></a>
  33719. <h2 class="section"><a href="ffprobe-all.html#toc-xbr">32.236 xbr</a></h2>
  33720. <p>Apply the xBR high-quality magnification filter which is designed for pixel
  33721. art. It follows a set of edge-detection rules, see
  33722. <a href="https://forums.libretro.com/t/xbr-algorithm-tutorial/123">https://forums.libretro.com/t/xbr-algorithm-tutorial/123</a>.
  33723. </p>
  33724. <p>It accepts the following option:
  33725. </p>
  33726. <dl compact="compact">
  33727. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  33728. <dd><p>Set the scaling dimension: <code>2</code> for <code>2xBR</code>, <code>3</code> for
  33729. <code>3xBR</code> and <code>4</code> for <code>4xBR</code>.
  33730. Default is <code>3</code>.
  33731. </p></dd>
  33732. </dl>
  33733. <a name="xfade"></a>
  33734. <h2 class="section"><a href="ffprobe-all.html#toc-xfade">32.237 xfade</a></h2>
  33735. <p>Apply cross fade from one input video stream to another input video stream.
  33736. The cross fade is applied for specified duration.
  33737. </p>
  33738. <p>The filter accepts the following options:
  33739. </p>
  33740. <dl compact="compact">
  33741. <dt>&lsquo;<samp>transition</samp>&rsquo;</dt>
  33742. <dd><p>Set one of available transition effects:
  33743. </p>
  33744. <dl compact="compact">
  33745. <dt>&lsquo;<samp>custom</samp>&rsquo;</dt>
  33746. <dt>&lsquo;<samp>fade</samp>&rsquo;</dt>
  33747. <dt>&lsquo;<samp>wipeleft</samp>&rsquo;</dt>
  33748. <dt>&lsquo;<samp>wiperight</samp>&rsquo;</dt>
  33749. <dt>&lsquo;<samp>wipeup</samp>&rsquo;</dt>
  33750. <dt>&lsquo;<samp>wipedown</samp>&rsquo;</dt>
  33751. <dt>&lsquo;<samp>slideleft</samp>&rsquo;</dt>
  33752. <dt>&lsquo;<samp>slideright</samp>&rsquo;</dt>
  33753. <dt>&lsquo;<samp>slideup</samp>&rsquo;</dt>
  33754. <dt>&lsquo;<samp>slidedown</samp>&rsquo;</dt>
  33755. <dt>&lsquo;<samp>circlecrop</samp>&rsquo;</dt>
  33756. <dt>&lsquo;<samp>rectcrop</samp>&rsquo;</dt>
  33757. <dt>&lsquo;<samp>distance</samp>&rsquo;</dt>
  33758. <dt>&lsquo;<samp>fadeblack</samp>&rsquo;</dt>
  33759. <dt>&lsquo;<samp>fadewhite</samp>&rsquo;</dt>
  33760. <dt>&lsquo;<samp>radial</samp>&rsquo;</dt>
  33761. <dt>&lsquo;<samp>smoothleft</samp>&rsquo;</dt>
  33762. <dt>&lsquo;<samp>smoothright</samp>&rsquo;</dt>
  33763. <dt>&lsquo;<samp>smoothup</samp>&rsquo;</dt>
  33764. <dt>&lsquo;<samp>smoothdown</samp>&rsquo;</dt>
  33765. <dt>&lsquo;<samp>circleopen</samp>&rsquo;</dt>
  33766. <dt>&lsquo;<samp>circleclose</samp>&rsquo;</dt>
  33767. <dt>&lsquo;<samp>vertopen</samp>&rsquo;</dt>
  33768. <dt>&lsquo;<samp>vertclose</samp>&rsquo;</dt>
  33769. <dt>&lsquo;<samp>horzopen</samp>&rsquo;</dt>
  33770. <dt>&lsquo;<samp>horzclose</samp>&rsquo;</dt>
  33771. <dt>&lsquo;<samp>dissolve</samp>&rsquo;</dt>
  33772. <dt>&lsquo;<samp>pixelize</samp>&rsquo;</dt>
  33773. <dt>&lsquo;<samp>diagtl</samp>&rsquo;</dt>
  33774. <dt>&lsquo;<samp>diagtr</samp>&rsquo;</dt>
  33775. <dt>&lsquo;<samp>diagbl</samp>&rsquo;</dt>
  33776. <dt>&lsquo;<samp>diagbr</samp>&rsquo;</dt>
  33777. <dt>&lsquo;<samp>hlslice</samp>&rsquo;</dt>
  33778. <dt>&lsquo;<samp>hrslice</samp>&rsquo;</dt>
  33779. <dt>&lsquo;<samp>vuslice</samp>&rsquo;</dt>
  33780. <dt>&lsquo;<samp>vdslice</samp>&rsquo;</dt>
  33781. </dl>
  33782. <p>Default transition effect is fade.
  33783. </p>
  33784. </dd>
  33785. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  33786. <dd><p>Set cross fade duration in seconds.
  33787. Default duration is 1 second.
  33788. </p>
  33789. </dd>
  33790. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  33791. <dd><p>Set cross fade start relative to first input stream in seconds.
  33792. Default offset is 0.
  33793. </p>
  33794. </dd>
  33795. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  33796. <dd><p>Set expression for custom transition effect.
  33797. </p>
  33798. <p>The expressions can use the following variables and functions:
  33799. </p>
  33800. <dl compact="compact">
  33801. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  33802. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  33803. <dd><p>The coordinates of the current sample.
  33804. </p>
  33805. </dd>
  33806. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  33807. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  33808. <dd><p>The width and height of the image.
  33809. </p>
  33810. </dd>
  33811. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  33812. <dd><p>Progress of transition effect.
  33813. </p>
  33814. </dd>
  33815. <dt>&lsquo;<samp>PLANE</samp>&rsquo;</dt>
  33816. <dd><p>Currently processed plane.
  33817. </p>
  33818. </dd>
  33819. <dt>&lsquo;<samp>A</samp>&rsquo;</dt>
  33820. <dd><p>Return value of first input at current location and plane.
  33821. </p>
  33822. </dd>
  33823. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  33824. <dd><p>Return value of second input at current location and plane.
  33825. </p>
  33826. </dd>
  33827. <dt>&lsquo;<samp>a0(x, y)</samp>&rsquo;</dt>
  33828. <dt>&lsquo;<samp>a1(x, y)</samp>&rsquo;</dt>
  33829. <dt>&lsquo;<samp>a2(x, y)</samp>&rsquo;</dt>
  33830. <dt>&lsquo;<samp>a3(x, y)</samp>&rsquo;</dt>
  33831. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  33832. first/second/third/fourth component of first input.
  33833. </p>
  33834. </dd>
  33835. <dt>&lsquo;<samp>b0(x, y)</samp>&rsquo;</dt>
  33836. <dt>&lsquo;<samp>b1(x, y)</samp>&rsquo;</dt>
  33837. <dt>&lsquo;<samp>b2(x, y)</samp>&rsquo;</dt>
  33838. <dt>&lsquo;<samp>b3(x, y)</samp>&rsquo;</dt>
  33839. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  33840. first/second/third/fourth component of second input.
  33841. </p></dd>
  33842. </dl>
  33843. </dd>
  33844. </dl>
  33845. <a name="Examples-103"></a>
  33846. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-103">32.237.1 Examples</a></h3>
  33847. <ul>
  33848. <li>
  33849. Cross fade from one input video to another input video, with fade transition and duration of transition
  33850. of 2 seconds starting at offset of 5 seconds:
  33851. <div class="example">
  33852. <pre class="example">ffmpeg -i first.mp4 -i second.mp4 -filter_complex xfade=transition=fade:duration=2:offset=5 output.mp4
  33853. </pre></div>
  33854. </li></ul>
  33855. <a name="xmedian"></a>
  33856. <h2 class="section"><a href="ffprobe-all.html#toc-xmedian">32.238 xmedian</a></h2>
  33857. <p>Pick median pixels from several input videos.
  33858. </p>
  33859. <p>The filter accepts the following options:
  33860. </p>
  33861. <dl compact="compact">
  33862. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  33863. <dd><p>Set number of inputs.
  33864. Default is 3. Allowed range is from 3 to 255.
  33865. If number of inputs is even number, than result will be mean value between two median values.
  33866. </p>
  33867. </dd>
  33868. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  33869. <dd><p>Set which planes to filter. Default value is <code>15</code>, by which all planes are processed.
  33870. </p>
  33871. </dd>
  33872. <dt>&lsquo;<samp>percentile</samp>&rsquo;</dt>
  33873. <dd><p>Set median percentile. Default value is <code>0.5</code>.
  33874. Default value of <code>0.5</code> will pick always median values, while <code>0</code> will pick
  33875. minimum values, and <code>1</code> maximum values.
  33876. </p></dd>
  33877. </dl>
  33878. <a name="xstack"></a>
  33879. <h2 class="section"><a href="ffprobe-all.html#toc-xstack">32.239 xstack</a></h2>
  33880. <p>Stack video inputs into custom layout.
  33881. </p>
  33882. <p>All streams must be of same pixel format.
  33883. </p>
  33884. <p>The filter accepts the following options:
  33885. </p>
  33886. <dl compact="compact">
  33887. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  33888. <dd><p>Set number of input streams. Default is 2.
  33889. </p>
  33890. </dd>
  33891. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  33892. <dd><p>Specify layout of inputs.
  33893. This option requires the desired layout configuration to be explicitly set by the user.
  33894. This sets position of each video input in output. Each input
  33895. is separated by &rsquo;|&rsquo;.
  33896. The first number represents the column, and the second number represents the row.
  33897. Numbers start at 0 and are separated by &rsquo;_&rsquo;. Optionally one can use wX and hX,
  33898. where X is video input from which to take width or height.
  33899. Multiple values can be used when separated by &rsquo;+&rsquo;. In such
  33900. case values are summed together.
  33901. </p>
  33902. <p>Note that if inputs are of different sizes gaps may appear, as not all of
  33903. the output video frame will be filled. Similarly, videos can overlap each
  33904. other if their position doesn&rsquo;t leave enough space for the full frame of
  33905. adjoining videos.
  33906. </p>
  33907. <p>For 2 inputs, a default layout of <code>0_0|w0_0</code> is set. In all other cases,
  33908. a layout must be set by the user.
  33909. </p>
  33910. </dd>
  33911. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  33912. <dd><p>If set to 1, force the output to terminate when the shortest input
  33913. terminates. Default value is 0.
  33914. </p>
  33915. </dd>
  33916. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  33917. <dd><p>If set to valid color, all unused pixels will be filled with that color.
  33918. By default fill is set to none, so it is disabled.
  33919. </p></dd>
  33920. </dl>
  33921. <a name="Examples-90"></a>
  33922. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-90">32.239.1 Examples</a></h3>
  33923. <ul>
  33924. <li>
  33925. Display 4 inputs into 2x2 grid.
  33926. <p>Layout:
  33927. </p><div class="example">
  33928. <pre class="example">input1(0, 0) | input3(w0, 0)
  33929. input2(0, h0) | input4(w0, h0)
  33930. </pre></div>
  33931. <div class="example">
  33932. <pre class="example">xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0
  33933. </pre></div>
  33934. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33935. </p>
  33936. </li><li>
  33937. Display 4 inputs into 1x4 grid.
  33938. <p>Layout:
  33939. </p><div class="example">
  33940. <pre class="example">input1(0, 0)
  33941. input2(0, h0)
  33942. input3(0, h0+h1)
  33943. input4(0, h0+h1+h2)
  33944. </pre></div>
  33945. <div class="example">
  33946. <pre class="example">xstack=inputs=4:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2
  33947. </pre></div>
  33948. <p>Note that if inputs are of different widths, unused space will appear.
  33949. </p>
  33950. </li><li>
  33951. Display 9 inputs into 3x3 grid.
  33952. <p>Layout:
  33953. </p><div class="example">
  33954. <pre class="example">input1(0, 0) | input4(w0, 0) | input7(w0+w3, 0)
  33955. input2(0, h0) | input5(w0, h0) | input8(w0+w3, h0)
  33956. input3(0, h0+h1) | input6(w0, h0+h1) | input9(w0+w3, h0+h1)
  33957. </pre></div>
  33958. <div class="example">
  33959. <pre class="example">xstack=inputs=9:layout=0_0|0_h0|0_h0+h1|w0_0|w0_h0|w0_h0+h1|w0+w3_0|w0+w3_h0|w0+w3_h0+h1
  33960. </pre></div>
  33961. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33962. </p>
  33963. </li><li>
  33964. Display 16 inputs into 4x4 grid.
  33965. <p>Layout:
  33966. </p><div class="example">
  33967. <pre class="example">input1(0, 0) | input5(w0, 0) | input9 (w0+w4, 0) | input13(w0+w4+w8, 0)
  33968. input2(0, h0) | input6(w0, h0) | input10(w0+w4, h0) | input14(w0+w4+w8, h0)
  33969. input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w4, h0+h1) | input15(w0+w4+w8, h0+h1)
  33970. input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w4, h0+h1+h2)| input16(w0+w4+w8, h0+h1+h2)
  33971. </pre></div>
  33972. <div class="example">
  33973. <pre class="example">xstack=inputs=16:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2|w0_0|w0_h0|w0_h0+h1|w0_h0+h1+h2|w0+w4_0|
  33974. w0+w4_h0|w0+w4_h0+h1|w0+w4_h0+h1+h2|w0+w4+w8_0|w0+w4+w8_h0|w0+w4+w8_h0+h1|w0+w4+w8_h0+h1+h2
  33975. </pre></div>
  33976. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33977. </p>
  33978. </li></ul>
  33979. <p><a name="yadif"></a>
  33980. </p><a name="yadif-1"></a>
  33981. <h2 class="section"><a href="ffprobe-all.html#toc-yadif-1">32.240 yadif</a></h2>
  33982. <p>Deinterlace the input video (&quot;yadif&quot; means &quot;yet another deinterlacing
  33983. filter&quot;).
  33984. </p>
  33985. <p>It accepts the following parameters:
  33986. </p>
  33987. <dl compact="compact">
  33988. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  33989. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  33990. </p>
  33991. <dl compact="compact">
  33992. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  33993. <dd><p>Output one frame for each frame.
  33994. </p></dd>
  33995. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  33996. <dd><p>Output one frame for each field.
  33997. </p></dd>
  33998. <dt>&lsquo;<samp>2, send_frame_nospatial</samp>&rsquo;</dt>
  33999. <dd><p>Like <code>send_frame</code>, but it skips the spatial interlacing check.
  34000. </p></dd>
  34001. <dt>&lsquo;<samp>3, send_field_nospatial</samp>&rsquo;</dt>
  34002. <dd><p>Like <code>send_field</code>, but it skips the spatial interlacing check.
  34003. </p></dd>
  34004. </dl>
  34005. <p>The default value is <code>send_frame</code>.
  34006. </p>
  34007. </dd>
  34008. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  34009. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  34010. of the following values:
  34011. </p>
  34012. <dl compact="compact">
  34013. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  34014. <dd><p>Assume the top field is first.
  34015. </p></dd>
  34016. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  34017. <dd><p>Assume the bottom field is first.
  34018. </p></dd>
  34019. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  34020. <dd><p>Enable automatic detection of field parity.
  34021. </p></dd>
  34022. </dl>
  34023. <p>The default value is <code>auto</code>.
  34024. If the interlacing is unknown or the decoder does not export this information,
  34025. top field first will be assumed.
  34026. </p>
  34027. </dd>
  34028. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  34029. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  34030. values:
  34031. </p>
  34032. <dl compact="compact">
  34033. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  34034. <dd><p>Deinterlace all frames.
  34035. </p></dd>
  34036. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  34037. <dd><p>Only deinterlace frames marked as interlaced.
  34038. </p></dd>
  34039. </dl>
  34040. <p>The default value is <code>all</code>.
  34041. </p></dd>
  34042. </dl>
  34043. <a name="yadif_005fcuda"></a>
  34044. <h2 class="section"><a href="ffprobe-all.html#toc-yadif_005fcuda">32.241 yadif_cuda</a></h2>
  34045. <p>Deinterlace the input video using the <a href="#yadif">yadif</a> algorithm, but implemented
  34046. in CUDA so that it can work as part of a GPU accelerated pipeline with nvdec
  34047. and/or nvenc.
  34048. </p>
  34049. <p>It accepts the following parameters:
  34050. </p>
  34051. <dl compact="compact">
  34052. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  34053. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  34054. </p>
  34055. <dl compact="compact">
  34056. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  34057. <dd><p>Output one frame for each frame.
  34058. </p></dd>
  34059. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  34060. <dd><p>Output one frame for each field.
  34061. </p></dd>
  34062. <dt>&lsquo;<samp>2, send_frame_nospatial</samp>&rsquo;</dt>
  34063. <dd><p>Like <code>send_frame</code>, but it skips the spatial interlacing check.
  34064. </p></dd>
  34065. <dt>&lsquo;<samp>3, send_field_nospatial</samp>&rsquo;</dt>
  34066. <dd><p>Like <code>send_field</code>, but it skips the spatial interlacing check.
  34067. </p></dd>
  34068. </dl>
  34069. <p>The default value is <code>send_frame</code>.
  34070. </p>
  34071. </dd>
  34072. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  34073. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  34074. of the following values:
  34075. </p>
  34076. <dl compact="compact">
  34077. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  34078. <dd><p>Assume the top field is first.
  34079. </p></dd>
  34080. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  34081. <dd><p>Assume the bottom field is first.
  34082. </p></dd>
  34083. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  34084. <dd><p>Enable automatic detection of field parity.
  34085. </p></dd>
  34086. </dl>
  34087. <p>The default value is <code>auto</code>.
  34088. If the interlacing is unknown or the decoder does not export this information,
  34089. top field first will be assumed.
  34090. </p>
  34091. </dd>
  34092. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  34093. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  34094. values:
  34095. </p>
  34096. <dl compact="compact">
  34097. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  34098. <dd><p>Deinterlace all frames.
  34099. </p></dd>
  34100. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  34101. <dd><p>Only deinterlace frames marked as interlaced.
  34102. </p></dd>
  34103. </dl>
  34104. <p>The default value is <code>all</code>.
  34105. </p></dd>
  34106. </dl>
  34107. <a name="yaepblur"></a>
  34108. <h2 class="section"><a href="ffprobe-all.html#toc-yaepblur">32.242 yaepblur</a></h2>
  34109. <p>Apply blur filter while preserving edges (&quot;yaepblur&quot; means &quot;yet another edge preserving blur filter&quot;).
  34110. The algorithm is described in
  34111. &quot;J. S. Lee, Digital image enhancement and noise filtering by use of local statistics, IEEE Trans. Pattern Anal. Mach. Intell. PAMI-2, 1980.&quot;
  34112. </p>
  34113. <p>It accepts the following parameters:
  34114. </p>
  34115. <dl compact="compact">
  34116. <dt>&lsquo;<samp>radius, r</samp>&rsquo;</dt>
  34117. <dd><p>Set the window radius. Default value is 3.
  34118. </p>
  34119. </dd>
  34120. <dt>&lsquo;<samp>planes, p</samp>&rsquo;</dt>
  34121. <dd><p>Set which planes to filter. Default is only the first plane.
  34122. </p>
  34123. </dd>
  34124. <dt>&lsquo;<samp>sigma, s</samp>&rsquo;</dt>
  34125. <dd><p>Set blur strength. Default value is 128.
  34126. </p></dd>
  34127. </dl>
  34128. <a name="Commands-15"></a>
  34129. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-15">32.242.1 Commands</a></h3>
  34130. <p>This filter supports same <a href="#commands">commands</a> as options.
  34131. </p>
  34132. <a name="zoompan"></a>
  34133. <h2 class="section"><a href="ffprobe-all.html#toc-zoompan">32.243 zoompan</a></h2>
  34134. <p>Apply Zoom &amp; Pan effect.
  34135. </p>
  34136. <p>This filter accepts the following options:
  34137. </p>
  34138. <dl compact="compact">
  34139. <dt>&lsquo;<samp>zoom, z</samp>&rsquo;</dt>
  34140. <dd><p>Set the zoom expression. Range is 1-10. Default is 1.
  34141. </p>
  34142. </dd>
  34143. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34144. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34145. <dd><p>Set the x and y expression. Default is 0.
  34146. </p>
  34147. </dd>
  34148. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  34149. <dd><p>Set the duration expression in number of frames.
  34150. This sets for how many number of frames effect will last for
  34151. single input image.
  34152. </p>
  34153. </dd>
  34154. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  34155. <dd><p>Set the output image size, default is &rsquo;hd720&rsquo;.
  34156. </p>
  34157. </dd>
  34158. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  34159. <dd><p>Set the output frame rate, default is &rsquo;25&rsquo;.
  34160. </p></dd>
  34161. </dl>
  34162. <p>Each expression can contain the following constants:
  34163. </p>
  34164. <dl compact="compact">
  34165. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  34166. <dd><p>Input width.
  34167. </p>
  34168. </dd>
  34169. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  34170. <dd><p>Input height.
  34171. </p>
  34172. </dd>
  34173. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  34174. <dd><p>Output width.
  34175. </p>
  34176. </dd>
  34177. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  34178. <dd><p>Output height.
  34179. </p>
  34180. </dd>
  34181. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  34182. <dd><p>Input frame count.
  34183. </p>
  34184. </dd>
  34185. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  34186. <dd><p>Output frame count.
  34187. </p>
  34188. </dd>
  34189. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34190. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34191. <dd><p>Last calculated &rsquo;x&rsquo; and &rsquo;y&rsquo; position from &rsquo;x&rsquo; and &rsquo;y&rsquo; expression
  34192. for current input frame.
  34193. </p>
  34194. </dd>
  34195. <dt>&lsquo;<samp>px</samp>&rsquo;</dt>
  34196. <dt>&lsquo;<samp>py</samp>&rsquo;</dt>
  34197. <dd><p>&rsquo;x&rsquo; and &rsquo;y&rsquo; of last output frame of previous input frame or 0 when there was
  34198. not yet such frame (first input frame).
  34199. </p>
  34200. </dd>
  34201. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  34202. <dd><p>Last calculated zoom from &rsquo;z&rsquo; expression for current input frame.
  34203. </p>
  34204. </dd>
  34205. <dt>&lsquo;<samp>pzoom</samp>&rsquo;</dt>
  34206. <dd><p>Last calculated zoom of last output frame of previous input frame.
  34207. </p>
  34208. </dd>
  34209. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  34210. <dd><p>Number of output frames for current input frame. Calculated from &rsquo;d&rsquo; expression
  34211. for each input frame.
  34212. </p>
  34213. </dd>
  34214. <dt>&lsquo;<samp>pduration</samp>&rsquo;</dt>
  34215. <dd><p>number of output frames created for previous input frame
  34216. </p>
  34217. </dd>
  34218. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  34219. <dd><p>Rational number: input width / input height
  34220. </p>
  34221. </dd>
  34222. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  34223. <dd><p>sample aspect ratio
  34224. </p>
  34225. </dd>
  34226. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  34227. <dd><p>display aspect ratio
  34228. </p>
  34229. </dd>
  34230. </dl>
  34231. <a name="Examples-48"></a>
  34232. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-48">32.243.1 Examples</a></h3>
  34233. <ul>
  34234. <li>
  34235. Zoom-in up to 1.5 and pan at same time to some spot near center of picture:
  34236. <div class="example">
  34237. <pre class="example">zoompan=z='min(zoom+0.0015,1.5)':d=700:x='if(gte(zoom,1.5),x,x+1/a)':y='if(gte(zoom,1.5),y,y+1)':s=640x360
  34238. </pre></div>
  34239. </li><li>
  34240. Zoom-in up to 1.5 and pan always at center of picture:
  34241. <div class="example">
  34242. <pre class="example">zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'
  34243. </pre></div>
  34244. </li><li>
  34245. Same as above but without pausing:
  34246. <div class="example">
  34247. <pre class="example">zoompan=z='min(max(zoom,pzoom)+0.0015,1.5)':d=1:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'
  34248. </pre></div>
  34249. </li></ul>
  34250. <p><a name="zscale"></a>
  34251. </p><a name="zscale-1"></a>
  34252. <h2 class="section"><a href="ffprobe-all.html#toc-zscale-1">32.244 zscale</a></h2>
  34253. <p>Scale (resize) the input video, using the z.lib library:
  34254. <a href="https://github.com/sekrit-twc/zimg">https://github.com/sekrit-twc/zimg</a>. To enable compilation of this
  34255. filter, you need to configure FFmpeg with <code>--enable-libzimg</code>.
  34256. </p>
  34257. <p>The zscale filter forces the output display aspect ratio to be the same
  34258. as the input, by changing the output sample aspect ratio.
  34259. </p>
  34260. <p>If the input image format is different from the format requested by
  34261. the next filter, the zscale filter will convert the input to the
  34262. requested format.
  34263. </p>
  34264. <a name="Options-13"></a>
  34265. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-13">32.244.1 Options</a></h3>
  34266. <p>The filter accepts the following options.
  34267. </p>
  34268. <dl compact="compact">
  34269. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  34270. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  34271. <dd><p>Set the output video dimension expression. Default value is the input
  34272. dimension.
  34273. </p>
  34274. <p>If the <var>width</var> or <var>w</var> value is 0, the input width is used for
  34275. the output. If the <var>height</var> or <var>h</var> value is 0, the input height
  34276. is used for the output.
  34277. </p>
  34278. <p>If one and only one of the values is -n with n &gt;= 1, the zscale filter
  34279. will use a value that maintains the aspect ratio of the input image,
  34280. calculated from the other specified dimension. After that it will,
  34281. however, make sure that the calculated dimension is divisible by n and
  34282. adjust the value if necessary.
  34283. </p>
  34284. <p>If both values are -n with n &gt;= 1, the behavior will be identical to
  34285. both values being set to 0 as previously detailed.
  34286. </p>
  34287. <p>See below for the list of accepted constants for use in the dimension
  34288. expression.
  34289. </p>
  34290. </dd>
  34291. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  34292. <dd><p>Set the video size. For the syntax of this option, check the
  34293. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  34294. </p>
  34295. </dd>
  34296. <dt>&lsquo;<samp>dither, d</samp>&rsquo;</dt>
  34297. <dd><p>Set the dither type.
  34298. </p>
  34299. <p>Possible values are:
  34300. </p><dl compact="compact">
  34301. <dt><var>none</var></dt>
  34302. <dt><var>ordered</var></dt>
  34303. <dt><var>random</var></dt>
  34304. <dt><var>error_diffusion</var></dt>
  34305. </dl>
  34306. <p>Default is none.
  34307. </p>
  34308. </dd>
  34309. <dt>&lsquo;<samp>filter, f</samp>&rsquo;</dt>
  34310. <dd><p>Set the resize filter type.
  34311. </p>
  34312. <p>Possible values are:
  34313. </p><dl compact="compact">
  34314. <dt><var>point</var></dt>
  34315. <dt><var>bilinear</var></dt>
  34316. <dt><var>bicubic</var></dt>
  34317. <dt><var>spline16</var></dt>
  34318. <dt><var>spline36</var></dt>
  34319. <dt><var>lanczos</var></dt>
  34320. </dl>
  34321. <p>Default is bilinear.
  34322. </p>
  34323. </dd>
  34324. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  34325. <dd><p>Set the color range.
  34326. </p>
  34327. <p>Possible values are:
  34328. </p><dl compact="compact">
  34329. <dt><var>input</var></dt>
  34330. <dt><var>limited</var></dt>
  34331. <dt><var>full</var></dt>
  34332. </dl>
  34333. <p>Default is same as input.
  34334. </p>
  34335. </dd>
  34336. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  34337. <dd><p>Set the color primaries.
  34338. </p>
  34339. <p>Possible values are:
  34340. </p><dl compact="compact">
  34341. <dt><var>input</var></dt>
  34342. <dt><var>709</var></dt>
  34343. <dt><var>unspecified</var></dt>
  34344. <dt><var>170m</var></dt>
  34345. <dt><var>240m</var></dt>
  34346. <dt><var>2020</var></dt>
  34347. </dl>
  34348. <p>Default is same as input.
  34349. </p>
  34350. </dd>
  34351. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  34352. <dd><p>Set the transfer characteristics.
  34353. </p>
  34354. <p>Possible values are:
  34355. </p><dl compact="compact">
  34356. <dt><var>input</var></dt>
  34357. <dt><var>709</var></dt>
  34358. <dt><var>unspecified</var></dt>
  34359. <dt><var>601</var></dt>
  34360. <dt><var>linear</var></dt>
  34361. <dt><var>2020_10</var></dt>
  34362. <dt><var>2020_12</var></dt>
  34363. <dt><var>smpte2084</var></dt>
  34364. <dt><var>iec61966-2-1</var></dt>
  34365. <dt><var>arib-std-b67</var></dt>
  34366. </dl>
  34367. <p>Default is same as input.
  34368. </p>
  34369. </dd>
  34370. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  34371. <dd><p>Set the colorspace matrix.
  34372. </p>
  34373. <p>Possible value are:
  34374. </p><dl compact="compact">
  34375. <dt><var>input</var></dt>
  34376. <dt><var>709</var></dt>
  34377. <dt><var>unspecified</var></dt>
  34378. <dt><var>470bg</var></dt>
  34379. <dt><var>170m</var></dt>
  34380. <dt><var>2020_ncl</var></dt>
  34381. <dt><var>2020_cl</var></dt>
  34382. </dl>
  34383. <p>Default is same as input.
  34384. </p>
  34385. </dd>
  34386. <dt>&lsquo;<samp>rangein, rin</samp>&rsquo;</dt>
  34387. <dd><p>Set the input color range.
  34388. </p>
  34389. <p>Possible values are:
  34390. </p><dl compact="compact">
  34391. <dt><var>input</var></dt>
  34392. <dt><var>limited</var></dt>
  34393. <dt><var>full</var></dt>
  34394. </dl>
  34395. <p>Default is same as input.
  34396. </p>
  34397. </dd>
  34398. <dt>&lsquo;<samp>primariesin, pin</samp>&rsquo;</dt>
  34399. <dd><p>Set the input color primaries.
  34400. </p>
  34401. <p>Possible values are:
  34402. </p><dl compact="compact">
  34403. <dt><var>input</var></dt>
  34404. <dt><var>709</var></dt>
  34405. <dt><var>unspecified</var></dt>
  34406. <dt><var>170m</var></dt>
  34407. <dt><var>240m</var></dt>
  34408. <dt><var>2020</var></dt>
  34409. </dl>
  34410. <p>Default is same as input.
  34411. </p>
  34412. </dd>
  34413. <dt>&lsquo;<samp>transferin, tin</samp>&rsquo;</dt>
  34414. <dd><p>Set the input transfer characteristics.
  34415. </p>
  34416. <p>Possible values are:
  34417. </p><dl compact="compact">
  34418. <dt><var>input</var></dt>
  34419. <dt><var>709</var></dt>
  34420. <dt><var>unspecified</var></dt>
  34421. <dt><var>601</var></dt>
  34422. <dt><var>linear</var></dt>
  34423. <dt><var>2020_10</var></dt>
  34424. <dt><var>2020_12</var></dt>
  34425. </dl>
  34426. <p>Default is same as input.
  34427. </p>
  34428. </dd>
  34429. <dt>&lsquo;<samp>matrixin, min</samp>&rsquo;</dt>
  34430. <dd><p>Set the input colorspace matrix.
  34431. </p>
  34432. <p>Possible value are:
  34433. </p><dl compact="compact">
  34434. <dt><var>input</var></dt>
  34435. <dt><var>709</var></dt>
  34436. <dt><var>unspecified</var></dt>
  34437. <dt><var>470bg</var></dt>
  34438. <dt><var>170m</var></dt>
  34439. <dt><var>2020_ncl</var></dt>
  34440. <dt><var>2020_cl</var></dt>
  34441. </dl>
  34442. </dd>
  34443. <dt>&lsquo;<samp>chromal, c</samp>&rsquo;</dt>
  34444. <dd><p>Set the output chroma location.
  34445. </p>
  34446. <p>Possible values are:
  34447. </p><dl compact="compact">
  34448. <dt><var>input</var></dt>
  34449. <dt><var>left</var></dt>
  34450. <dt><var>center</var></dt>
  34451. <dt><var>topleft</var></dt>
  34452. <dt><var>top</var></dt>
  34453. <dt><var>bottomleft</var></dt>
  34454. <dt><var>bottom</var></dt>
  34455. </dl>
  34456. </dd>
  34457. <dt>&lsquo;<samp>chromalin, cin</samp>&rsquo;</dt>
  34458. <dd><p>Set the input chroma location.
  34459. </p>
  34460. <p>Possible values are:
  34461. </p><dl compact="compact">
  34462. <dt><var>input</var></dt>
  34463. <dt><var>left</var></dt>
  34464. <dt><var>center</var></dt>
  34465. <dt><var>topleft</var></dt>
  34466. <dt><var>top</var></dt>
  34467. <dt><var>bottomleft</var></dt>
  34468. <dt><var>bottom</var></dt>
  34469. </dl>
  34470. </dd>
  34471. <dt>&lsquo;<samp>npl</samp>&rsquo;</dt>
  34472. <dd><p>Set the nominal peak luminance.
  34473. </p></dd>
  34474. </dl>
  34475. <p>The values of the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options are expressions
  34476. containing the following constants:
  34477. </p>
  34478. <dl compact="compact">
  34479. <dt><var>in_w</var></dt>
  34480. <dt><var>in_h</var></dt>
  34481. <dd><p>The input width and height
  34482. </p>
  34483. </dd>
  34484. <dt><var>iw</var></dt>
  34485. <dt><var>ih</var></dt>
  34486. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  34487. </p>
  34488. </dd>
  34489. <dt><var>out_w</var></dt>
  34490. <dt><var>out_h</var></dt>
  34491. <dd><p>The output (scaled) width and height
  34492. </p>
  34493. </dd>
  34494. <dt><var>ow</var></dt>
  34495. <dt><var>oh</var></dt>
  34496. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>
  34497. </p>
  34498. </dd>
  34499. <dt><var>a</var></dt>
  34500. <dd><p>The same as <var>iw</var> / <var>ih</var>
  34501. </p>
  34502. </dd>
  34503. <dt><var>sar</var></dt>
  34504. <dd><p>input sample aspect ratio
  34505. </p>
  34506. </dd>
  34507. <dt><var>dar</var></dt>
  34508. <dd><p>The input display aspect ratio. Calculated from <code>(iw / ih) * sar</code>.
  34509. </p>
  34510. </dd>
  34511. <dt><var>hsub</var></dt>
  34512. <dt><var>vsub</var></dt>
  34513. <dd><p>horizontal and vertical input chroma subsample values. For example for the
  34514. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34515. </p>
  34516. </dd>
  34517. <dt><var>ohsub</var></dt>
  34518. <dt><var>ovsub</var></dt>
  34519. <dd><p>horizontal and vertical output chroma subsample values. For example for the
  34520. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34521. </p></dd>
  34522. </dl>
  34523. <a name="Commands-64"></a>
  34524. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-64">32.244.2 Commands</a></h3>
  34525. <p>This filter supports the following commands:
  34526. </p><dl compact="compact">
  34527. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  34528. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  34529. <dd><p>Set the output video dimension expression.
  34530. The command accepts the same syntax of the corresponding option.
  34531. </p>
  34532. <p>If the specified expression is not valid, it is kept at its current
  34533. value.
  34534. </p></dd>
  34535. </dl>
  34536. <a name="OpenCL-Video-Filters"></a>
  34537. <h1 class="chapter"><a href="ffprobe-all.html#toc-OpenCL-Video-Filters">33 OpenCL Video Filters</a></h1>
  34538. <p>Below is a description of the currently available OpenCL video filters.
  34539. </p>
  34540. <p>To enable compilation of these filters you need to configure FFmpeg with
  34541. <code>--enable-opencl</code>.
  34542. </p>
  34543. <p>Running OpenCL filters requires you to initialize a hardware device and to pass that device to all filters in any filter graph.
  34544. </p><dl compact="compact">
  34545. <dt>&lsquo;<samp>-init_hw_device opencl[=<var>name</var>][:<var>device</var>[,<var>key=value</var>...]]</samp>&rsquo;</dt>
  34546. <dd><p>Initialise a new hardware device of type <var>opencl</var> called <var>name</var>, using the
  34547. given device parameters.
  34548. </p>
  34549. </dd>
  34550. <dt>&lsquo;<samp>-filter_hw_device <var>name</var></samp>&rsquo;</dt>
  34551. <dd><p>Pass the hardware device called <var>name</var> to all filters in any filter graph.
  34552. </p>
  34553. </dd>
  34554. </dl>
  34555. <p>For more detailed information see <a href="https://www.ffmpeg.org/ffmpeg.html#Advanced-Video-options">https://www.ffmpeg.org/ffmpeg.html#Advanced-Video-options</a>
  34556. </p>
  34557. <ul>
  34558. <li>
  34559. Example of choosing the first device on the second platform and running avgblur_opencl filter with default parameters on it.
  34560. <div class="example">
  34561. <pre class="example">-init_hw_device opencl=gpu:1.0 -filter_hw_device gpu -i INPUT -vf &quot;hwupload, avgblur_opencl, hwdownload&quot; OUTPUT
  34562. </pre></div>
  34563. </li></ul>
  34564. <p>Since OpenCL filters are not able to access frame data in normal memory, all frame data needs to be uploaded(<a href="#hwupload">hwupload</a>) to hardware surfaces connected to the appropriate device before being used and then downloaded(<a href="#hwdownload">hwdownload</a>) back to normal memory. Note that <a href="#hwupload">hwupload</a> will upload to a surface with the same layout as the software frame, so it may be necessary to add a <a href="#format">format</a> filter immediately before to get the input into the right format and <a href="#hwdownload">hwdownload</a> does not support all formats on the output - it may be necessary to insert an additional <a href="#format">format</a> filter immediately following in the graph to get the output in a supported format.
  34565. </p>
  34566. <a name="avgblur_005fopencl"></a>
  34567. <h2 class="section"><a href="ffprobe-all.html#toc-avgblur_005fopencl">33.1 avgblur_opencl</a></h2>
  34568. <p>Apply average blur filter.
  34569. </p>
  34570. <p>The filter accepts the following options:
  34571. </p>
  34572. <dl compact="compact">
  34573. <dt>&lsquo;<samp>sizeX</samp>&rsquo;</dt>
  34574. <dd><p>Set horizontal radius size.
  34575. Range is <code>[1, 1024]</code> and default value is <code>1</code>.
  34576. </p>
  34577. </dd>
  34578. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  34579. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  34580. </p>
  34581. </dd>
  34582. <dt>&lsquo;<samp>sizeY</samp>&rsquo;</dt>
  34583. <dd><p>Set vertical radius size. Range is <code>[1, 1024]</code> and default value is <code>0</code>. If zero, <code>sizeX</code> value will be used.
  34584. </p></dd>
  34585. </dl>
  34586. <a name="Example-2"></a>
  34587. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-2">33.1.1 Example</a></h3>
  34588. <ul>
  34589. <li>
  34590. Apply average blur filter with horizontal and vertical size of 3, setting each pixel of the output to the average value of the 7x7 region centered on it in the input. For pixels on the edges of the image, the region does not extend beyond the image boundaries, and so out-of-range coordinates are not used in the calculations.
  34591. <div class="example">
  34592. <pre class="example">-i INPUT -vf &quot;hwupload, avgblur_opencl=3, hwdownload&quot; OUTPUT
  34593. </pre></div>
  34594. </li></ul>
  34595. <a name="boxblur_005fopencl"></a>
  34596. <h2 class="section"><a href="ffprobe-all.html#toc-boxblur_005fopencl">33.2 boxblur_opencl</a></h2>
  34597. <p>Apply a boxblur algorithm to the input video.
  34598. </p>
  34599. <p>It accepts the following parameters:
  34600. </p>
  34601. <dl compact="compact">
  34602. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  34603. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  34604. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  34605. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  34606. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  34607. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  34608. </dl>
  34609. <p>A description of the accepted options follows.
  34610. </p>
  34611. <dl compact="compact">
  34612. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  34613. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  34614. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  34615. <dd><p>Set an expression for the box radius in pixels used for blurring the
  34616. corresponding input plane.
  34617. </p>
  34618. <p>The radius value must be a non-negative number, and must not be
  34619. greater than the value of the expression <code>min(w,h)/2</code> for the
  34620. luma and alpha planes, and of <code>min(cw,ch)/2</code> for the chroma
  34621. planes.
  34622. </p>
  34623. <p>Default value for &lsquo;<samp>luma_radius</samp>&rsquo; is &quot;2&quot;. If not specified,
  34624. &lsquo;<samp>chroma_radius</samp>&rsquo; and &lsquo;<samp>alpha_radius</samp>&rsquo; default to the
  34625. corresponding value set for &lsquo;<samp>luma_radius</samp>&rsquo;.
  34626. </p>
  34627. <p>The expressions can contain the following constants:
  34628. </p><dl compact="compact">
  34629. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  34630. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  34631. <dd><p>The input width and height in pixels.
  34632. </p>
  34633. </dd>
  34634. <dt>&lsquo;<samp>cw</samp>&rsquo;</dt>
  34635. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  34636. <dd><p>The input chroma image width and height in pixels.
  34637. </p>
  34638. </dd>
  34639. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  34640. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  34641. <dd><p>The horizontal and vertical chroma subsample values. For example, for the
  34642. pixel format &quot;yuv422p&quot;, <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34643. </p></dd>
  34644. </dl>
  34645. </dd>
  34646. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  34647. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  34648. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  34649. <dd><p>Specify how many times the boxblur filter is applied to the
  34650. corresponding plane.
  34651. </p>
  34652. <p>Default value for &lsquo;<samp>luma_power</samp>&rsquo; is 2. If not specified,
  34653. &lsquo;<samp>chroma_power</samp>&rsquo; and &lsquo;<samp>alpha_power</samp>&rsquo; default to the
  34654. corresponding value set for &lsquo;<samp>luma_power</samp>&rsquo;.
  34655. </p>
  34656. <p>A value of 0 will disable the effect.
  34657. </p></dd>
  34658. </dl>
  34659. <a name="Examples-13"></a>
  34660. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-13">33.2.1 Examples</a></h3>
  34661. <p>Apply boxblur filter, setting each pixel of the output to the average value of box-radiuses <var>luma_radius</var>, <var>chroma_radius</var>, <var>alpha_radius</var> for each plane respectively. The filter will apply <var>luma_power</var>, <var>chroma_power</var>, <var>alpha_power</var> times onto the corresponding plane. For pixels on the edges of the image, the radius does not extend beyond the image boundaries, and so out-of-range coordinates are not used in the calculations.
  34662. </p>
  34663. <ul>
  34664. <li>
  34665. Apply a boxblur filter with the luma, chroma, and alpha radius
  34666. set to 2 and luma, chroma, and alpha power set to 3. The filter will run 3 times with box-radius set to 2 for every plane of the image.
  34667. <div class="example">
  34668. <pre class="example">-i INPUT -vf &quot;hwupload, boxblur_opencl=luma_radius=2:luma_power=3, hwdownload&quot; OUTPUT
  34669. -i INPUT -vf &quot;hwupload, boxblur_opencl=2:3, hwdownload&quot; OUTPUT
  34670. </pre></div>
  34671. </li><li>
  34672. Apply a boxblur filter with luma radius set to 2, luma_power to 1, chroma_radius to 4, chroma_power to 5, alpha_radius to 3 and alpha_power to 7.
  34673. <p>For the luma plane, a 2x2 box radius will be run once.
  34674. </p>
  34675. <p>For the chroma plane, a 4x4 box radius will be run 5 times.
  34676. </p>
  34677. <p>For the alpha plane, a 3x3 box radius will be run 7 times.
  34678. </p><div class="example">
  34679. <pre class="example">-i INPUT -vf &quot;hwupload, boxblur_opencl=2:1:4:5:3:7, hwdownload&quot; OUTPUT
  34680. </pre></div>
  34681. </li></ul>
  34682. <a name="colorkey_005fopencl"></a>
  34683. <h2 class="section"><a href="ffprobe-all.html#toc-colorkey_005fopencl">33.3 colorkey_opencl</a></h2>
  34684. <p>RGB colorspace color keying.
  34685. </p>
  34686. <p>The filter accepts the following options:
  34687. </p>
  34688. <dl compact="compact">
  34689. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  34690. <dd><p>The color which will be replaced with transparency.
  34691. </p>
  34692. </dd>
  34693. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  34694. <dd><p>Similarity percentage with the key color.
  34695. </p>
  34696. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  34697. </p>
  34698. </dd>
  34699. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  34700. <dd><p>Blend percentage.
  34701. </p>
  34702. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  34703. </p>
  34704. <p>Higher values result in semi-transparent pixels, with a higher transparency
  34705. the more similar the pixels color is to the key color.
  34706. </p></dd>
  34707. </dl>
  34708. <a name="Examples-134"></a>
  34709. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-134">33.3.1 Examples</a></h3>
  34710. <ul>
  34711. <li>
  34712. Make every semi-green pixel in the input transparent with some slight blending:
  34713. <div class="example">
  34714. <pre class="example">-i INPUT -vf &quot;hwupload, colorkey_opencl=green:0.3:0.1, hwdownload&quot; OUTPUT
  34715. </pre></div>
  34716. </li></ul>
  34717. <a name="convolution_005fopencl"></a>
  34718. <h2 class="section"><a href="ffprobe-all.html#toc-convolution_005fopencl">33.4 convolution_opencl</a></h2>
  34719. <p>Apply convolution of 3x3, 5x5, 7x7 matrix.
  34720. </p>
  34721. <p>The filter accepts the following options:
  34722. </p>
  34723. <dl compact="compact">
  34724. <dt>&lsquo;<samp>0m</samp>&rsquo;</dt>
  34725. <dt>&lsquo;<samp>1m</samp>&rsquo;</dt>
  34726. <dt>&lsquo;<samp>2m</samp>&rsquo;</dt>
  34727. <dt>&lsquo;<samp>3m</samp>&rsquo;</dt>
  34728. <dd><p>Set matrix for each plane.
  34729. Matrix is sequence of 9, 25 or 49 signed numbers.
  34730. Default value for each plane is <code>0 0 0 0 1 0 0 0 0</code>.
  34731. </p>
  34732. </dd>
  34733. <dt>&lsquo;<samp>0rdiv</samp>&rsquo;</dt>
  34734. <dt>&lsquo;<samp>1rdiv</samp>&rsquo;</dt>
  34735. <dt>&lsquo;<samp>2rdiv</samp>&rsquo;</dt>
  34736. <dt>&lsquo;<samp>3rdiv</samp>&rsquo;</dt>
  34737. <dd><p>Set multiplier for calculated value for each plane.
  34738. If unset or 0, it will be sum of all matrix elements.
  34739. The option value must be a float number greater or equal to <code>0.0</code>. Default value is <code>1.0</code>.
  34740. </p>
  34741. </dd>
  34742. <dt>&lsquo;<samp>0bias</samp>&rsquo;</dt>
  34743. <dt>&lsquo;<samp>1bias</samp>&rsquo;</dt>
  34744. <dt>&lsquo;<samp>2bias</samp>&rsquo;</dt>
  34745. <dt>&lsquo;<samp>3bias</samp>&rsquo;</dt>
  34746. <dd><p>Set bias for each plane. This value is added to the result of the multiplication.
  34747. Useful for making the overall image brighter or darker.
  34748. The option value must be a float number greater or equal to <code>0.0</code>. Default value is <code>0.0</code>.
  34749. </p>
  34750. </dd>
  34751. </dl>
  34752. <a name="Examples-109"></a>
  34753. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-109">33.4.1 Examples</a></h3>
  34754. <ul>
  34755. <li>
  34756. Apply sharpen:
  34757. <div class="example">
  34758. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=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, hwdownload&quot; OUTPUT
  34759. </pre></div>
  34760. </li><li>
  34761. Apply blur:
  34762. <div class="example">
  34763. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=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, hwdownload&quot; OUTPUT
  34764. </pre></div>
  34765. </li><li>
  34766. Apply edge enhance:
  34767. <div class="example">
  34768. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=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, hwdownload&quot; OUTPUT
  34769. </pre></div>
  34770. </li><li>
  34771. Apply edge detect:
  34772. <div class="example">
  34773. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=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, hwdownload&quot; OUTPUT
  34774. </pre></div>
  34775. </li><li>
  34776. Apply laplacian edge detector which includes diagonals:
  34777. <div class="example">
  34778. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=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, hwdownload&quot; OUTPUT
  34779. </pre></div>
  34780. </li><li>
  34781. Apply emboss:
  34782. <div class="example">
  34783. <pre class="example">-i INPUT -vf &quot;hwupload, convolution_opencl=-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, hwdownload&quot; OUTPUT
  34784. </pre></div>
  34785. </li></ul>
  34786. <a name="erosion_005fopencl"></a>
  34787. <h2 class="section"><a href="ffprobe-all.html#toc-erosion_005fopencl">33.5 erosion_opencl</a></h2>
  34788. <p>Apply erosion effect to the video.
  34789. </p>
  34790. <p>This filter replaces the pixel by the local(3x3) minimum.
  34791. </p>
  34792. <p>It accepts the following options:
  34793. </p>
  34794. <dl compact="compact">
  34795. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  34796. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  34797. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  34798. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  34799. <dd><p>Limit the maximum change for each plane. Range is <code>[0, 65535]</code> and default value is <code>65535</code>.
  34800. If <code>0</code>, plane will remain unchanged.
  34801. </p>
  34802. </dd>
  34803. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  34804. <dd><p>Flag which specifies the pixel to refer to.
  34805. Range is <code>[0, 255]</code> and default value is <code>255</code>, i.e. all eight pixels are used.
  34806. </p>
  34807. <p>Flags to local 3x3 coordinates region centered on <code>x</code>:
  34808. </p>
  34809. <p> 1 2 3
  34810. </p>
  34811. <p> 4 x 5
  34812. </p>
  34813. <p> 6 7 8
  34814. </p></dd>
  34815. </dl>
  34816. <a name="Example-6"></a>
  34817. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-6">33.5.1 Example</a></h3>
  34818. <ul>
  34819. <li>
  34820. Apply erosion filter with threshold0 set to 30, threshold1 set 40, threshold2 set to 50 and coordinates set to 231, setting each pixel of the output to the local minimum between pixels: 1, 2, 3, 6, 7, 8 of the 3x3 region centered on it in the input. If the difference between input pixel and local minimum is more then threshold of the corresponding plane, output pixel will be set to input pixel - threshold of corresponding plane.
  34821. <div class="example">
  34822. <pre class="example">-i INPUT -vf &quot;hwupload, erosion_opencl=30:40:50:coordinates=231, hwdownload&quot; OUTPUT
  34823. </pre></div>
  34824. </li></ul>
  34825. <a name="deshake_005fopencl"></a>
  34826. <h2 class="section"><a href="ffprobe-all.html#toc-deshake_005fopencl">33.6 deshake_opencl</a></h2>
  34827. <p>Feature-point based video stabilization filter.
  34828. </p>
  34829. <p>The filter accepts the following options:
  34830. </p>
  34831. <dl compact="compact">
  34832. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  34833. <dd><p>Simulates a tripod by preventing any camera movement whatsoever from the original frame. Defaults to <code>0</code>.
  34834. </p>
  34835. </dd>
  34836. <dt>&lsquo;<samp>debug</samp>&rsquo;</dt>
  34837. <dd><p>Whether or not additional debug info should be displayed, both in the processed output and in the console.
  34838. </p>
  34839. <p>Note that in order to see console debug output you will also need to pass <code>-v verbose</code> to ffmpeg.
  34840. </p>
  34841. <p>Viewing point matches in the output video is only supported for RGB input.
  34842. </p>
  34843. <p>Defaults to <code>0</code>.
  34844. </p>
  34845. </dd>
  34846. <dt>&lsquo;<samp>adaptive_crop</samp>&rsquo;</dt>
  34847. <dd><p>Whether or not to do a tiny bit of cropping at the borders to cut down on the amount of mirrored pixels.
  34848. </p>
  34849. <p>Defaults to <code>1</code>.
  34850. </p>
  34851. </dd>
  34852. <dt>&lsquo;<samp>refine_features</samp>&rsquo;</dt>
  34853. <dd><p>Whether or not feature points should be refined at a sub-pixel level.
  34854. </p>
  34855. <p>This can be turned off for a slight performance gain at the cost of precision.
  34856. </p>
  34857. <p>Defaults to <code>1</code>.
  34858. </p>
  34859. </dd>
  34860. <dt>&lsquo;<samp>smooth_strength</samp>&rsquo;</dt>
  34861. <dd><p>The strength of the smoothing applied to the camera path from <code>0.0</code> to <code>1.0</code>.
  34862. </p>
  34863. <p><code>1.0</code> is the maximum smoothing strength while values less than that result in less smoothing.
  34864. </p>
  34865. <p><code>0.0</code> causes the filter to adaptively choose a smoothing strength on a per-frame basis.
  34866. </p>
  34867. <p>Defaults to <code>0.0</code>.
  34868. </p>
  34869. </dd>
  34870. <dt>&lsquo;<samp>smooth_window_multiplier</samp>&rsquo;</dt>
  34871. <dd><p>Controls the size of the smoothing window (the number of frames buffered to determine motion information from).
  34872. </p>
  34873. <p>The size of the smoothing window is determined by multiplying the framerate of the video by this number.
  34874. </p>
  34875. <p>Acceptable values range from <code>0.1</code> to <code>10.0</code>.
  34876. </p>
  34877. <p>Larger values increase the amount of motion data available for determining how to smooth the camera path,
  34878. potentially improving smoothness, but also increase latency and memory usage.
  34879. </p>
  34880. <p>Defaults to <code>2.0</code>.
  34881. </p>
  34882. </dd>
  34883. </dl>
  34884. <a name="Examples-29"></a>
  34885. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-29">33.6.1 Examples</a></h3>
  34886. <ul>
  34887. <li>
  34888. Stabilize a video with a fixed, medium smoothing strength:
  34889. <div class="example">
  34890. <pre class="example">-i INPUT -vf &quot;hwupload, deshake_opencl=smooth_strength=0.5, hwdownload&quot; OUTPUT
  34891. </pre></div>
  34892. </li><li>
  34893. Stabilize a video with debugging (both in console and in rendered video):
  34894. <div class="example">
  34895. <pre class="example">-i INPUT -filter_complex &quot;[0:v]format=rgba, hwupload, deshake_opencl=debug=1, hwdownload, format=rgba, format=yuv420p&quot; -v verbose OUTPUT
  34896. </pre></div>
  34897. </li></ul>
  34898. <a name="dilation_005fopencl"></a>
  34899. <h2 class="section"><a href="ffprobe-all.html#toc-dilation_005fopencl">33.7 dilation_opencl</a></h2>
  34900. <p>Apply dilation effect to the video.
  34901. </p>
  34902. <p>This filter replaces the pixel by the local(3x3) maximum.
  34903. </p>
  34904. <p>It accepts the following options:
  34905. </p>
  34906. <dl compact="compact">
  34907. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  34908. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  34909. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  34910. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  34911. <dd><p>Limit the maximum change for each plane. Range is <code>[0, 65535]</code> and default value is <code>65535</code>.
  34912. If <code>0</code>, plane will remain unchanged.
  34913. </p>
  34914. </dd>
  34915. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  34916. <dd><p>Flag which specifies the pixel to refer to.
  34917. Range is <code>[0, 255]</code> and default value is <code>255</code>, i.e. all eight pixels are used.
  34918. </p>
  34919. <p>Flags to local 3x3 coordinates region centered on <code>x</code>:
  34920. </p>
  34921. <p> 1 2 3
  34922. </p>
  34923. <p> 4 x 5
  34924. </p>
  34925. <p> 6 7 8
  34926. </p></dd>
  34927. </dl>
  34928. <a name="Example-3"></a>
  34929. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-3">33.7.1 Example</a></h3>
  34930. <ul>
  34931. <li>
  34932. Apply dilation filter with threshold0 set to 30, threshold1 set 40, threshold2 set to 50 and coordinates set to 231, setting each pixel of the output to the local maximum between pixels: 1, 2, 3, 6, 7, 8 of the 3x3 region centered on it in the input. If the difference between input pixel and local maximum is more then threshold of the corresponding plane, output pixel will be set to input pixel + threshold of corresponding plane.
  34933. <div class="example">
  34934. <pre class="example">-i INPUT -vf &quot;hwupload, dilation_opencl=30:40:50:coordinates=231, hwdownload&quot; OUTPUT
  34935. </pre></div>
  34936. </li></ul>
  34937. <a name="nlmeans_005fopencl"></a>
  34938. <h2 class="section"><a href="ffprobe-all.html#toc-nlmeans_005fopencl">33.8 nlmeans_opencl</a></h2>
  34939. <p>Non-local Means denoise filter through OpenCL, this filter accepts same options as <a href="#nlmeans">nlmeans</a>.
  34940. </p>
  34941. <a name="overlay_005fopencl"></a>
  34942. <h2 class="section"><a href="ffprobe-all.html#toc-overlay_005fopencl">33.9 overlay_opencl</a></h2>
  34943. <p>Overlay one video on top of another.
  34944. </p>
  34945. <p>It takes two inputs and has one output. The first input is the &quot;main&quot; video on which the second input is overlaid.
  34946. This filter requires same memory layout for all the inputs. So, format conversion may be needed.
  34947. </p>
  34948. <p>The filter accepts the following options:
  34949. </p>
  34950. <dl compact="compact">
  34951. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34952. <dd><p>Set the x coordinate of the overlaid video on the main video.
  34953. Default value is <code>0</code>.
  34954. </p>
  34955. </dd>
  34956. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34957. <dd><p>Set the y coordinate of the overlaid video on the main video.
  34958. Default value is <code>0</code>.
  34959. </p>
  34960. </dd>
  34961. </dl>
  34962. <a name="Examples-71"></a>
  34963. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-71">33.9.1 Examples</a></h3>
  34964. <ul>
  34965. <li>
  34966. Overlay an image LOGO at the top-left corner of the INPUT video. Both inputs are yuv420p format.
  34967. <div class="example">
  34968. <pre class="example">-i INPUT -i LOGO -filter_complex &quot;[0:v]hwupload[a], [1:v]format=yuv420p, hwupload[b], [a][b]overlay_opencl, hwdownload&quot; OUTPUT
  34969. </pre></div>
  34970. </li><li>
  34971. The inputs have same memory layout for color channels , the overlay has additional alpha plane, like INPUT is yuv420p, and the LOGO is yuva420p.
  34972. <div class="example">
  34973. <pre class="example">-i INPUT -i LOGO -filter_complex &quot;[0:v]hwupload[a], [1:v]format=yuva420p, hwupload[b], [a][b]overlay_opencl, hwdownload&quot; OUTPUT
  34974. </pre></div>
  34975. </li></ul>
  34976. <a name="pad_005fopencl"></a>
  34977. <h2 class="section"><a href="ffprobe-all.html#toc-pad_005fopencl">33.10 pad_opencl</a></h2>
  34978. <p>Add paddings to the input image, and place the original input at the
  34979. provided <var>x</var>, <var>y</var> coordinates.
  34980. </p>
  34981. <p>It accepts the following options:
  34982. </p>
  34983. <dl compact="compact">
  34984. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  34985. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  34986. <dd><p>Specify an expression for the size of the output image with the
  34987. paddings added. If the value for <var>width</var> or <var>height</var> is 0, the
  34988. corresponding input size is used for the output.
  34989. </p>
  34990. <p>The <var>width</var> expression can reference the value set by the
  34991. <var>height</var> expression, and vice versa.
  34992. </p>
  34993. <p>The default value of <var>width</var> and <var>height</var> is 0.
  34994. </p>
  34995. </dd>
  34996. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34997. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34998. <dd><p>Specify the offsets to place the input image at within the padded area,
  34999. with respect to the top/left border of the output image.
  35000. </p>
  35001. <p>The <var>x</var> expression can reference the value set by the <var>y</var>
  35002. expression, and vice versa.
  35003. </p>
  35004. <p>The default value of <var>x</var> and <var>y</var> is 0.
  35005. </p>
  35006. <p>If <var>x</var> or <var>y</var> evaluate to a negative number, they&rsquo;ll be changed
  35007. so the input image is centered on the padded area.
  35008. </p>
  35009. </dd>
  35010. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  35011. <dd><p>Specify the color of the padded area. For the syntax of this option,
  35012. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  35013. </p>
  35014. </dd>
  35015. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  35016. <dd><p>Pad to an aspect instead to a resolution.
  35017. </p></dd>
  35018. </dl>
  35019. <p>The value for the <var>width</var>, <var>height</var>, <var>x</var>, and <var>y</var>
  35020. options are expressions containing the following constants:
  35021. </p>
  35022. <dl compact="compact">
  35023. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  35024. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  35025. <dd><p>The input video width and height.
  35026. </p>
  35027. </dd>
  35028. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  35029. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  35030. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  35031. </p>
  35032. </dd>
  35033. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  35034. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  35035. <dd><p>The output width and height (the size of the padded area), as
  35036. specified by the <var>width</var> and <var>height</var> expressions.
  35037. </p>
  35038. </dd>
  35039. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  35040. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  35041. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  35042. </p>
  35043. </dd>
  35044. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  35045. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  35046. <dd><p>The x and y offsets as specified by the <var>x</var> and <var>y</var>
  35047. expressions, or NAN if not yet specified.
  35048. </p>
  35049. </dd>
  35050. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  35051. <dd><p>same as <var>iw</var> / <var>ih</var>
  35052. </p>
  35053. </dd>
  35054. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  35055. <dd><p>input sample aspect ratio
  35056. </p>
  35057. </dd>
  35058. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  35059. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  35060. </p></dd>
  35061. </dl>
  35062. <a name="prewitt_005fopencl"></a>
  35063. <h2 class="section"><a href="ffprobe-all.html#toc-prewitt_005fopencl">33.11 prewitt_opencl</a></h2>
  35064. <p>Apply the Prewitt operator (<a href="https://en.wikipedia.org/wiki/Prewitt_operator">https://en.wikipedia.org/wiki/Prewitt_operator</a>) to input video stream.
  35065. </p>
  35066. <p>The filter accepts the following option:
  35067. </p>
  35068. <dl compact="compact">
  35069. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  35070. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  35071. </p>
  35072. </dd>
  35073. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  35074. <dd><p>Set value which will be multiplied with filtered result.
  35075. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  35076. </p>
  35077. </dd>
  35078. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  35079. <dd><p>Set value which will be added to filtered result.
  35080. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  35081. </p></dd>
  35082. </dl>
  35083. <a name="Example"></a>
  35084. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example">33.11.1 Example</a></h3>
  35085. <ul>
  35086. <li>
  35087. Apply the Prewitt operator with scale set to 2 and delta set to 10.
  35088. <div class="example">
  35089. <pre class="example">-i INPUT -vf &quot;hwupload, prewitt_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  35090. </pre></div>
  35091. </li></ul>
  35092. <p><a name="program_005fopencl"></a>
  35093. </p><a name="program_005fopencl-1"></a>
  35094. <h2 class="section"><a href="ffprobe-all.html#toc-program_005fopencl-1">33.12 program_opencl</a></h2>
  35095. <p>Filter video using an OpenCL program.
  35096. </p>
  35097. <dl compact="compact">
  35098. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  35099. <dd><p>OpenCL program source file.
  35100. </p>
  35101. </dd>
  35102. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  35103. <dd><p>Kernel name in program.
  35104. </p>
  35105. </dd>
  35106. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  35107. <dd><p>Number of inputs to the filter. Defaults to 1.
  35108. </p>
  35109. </dd>
  35110. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35111. <dd><p>Size of output frames. Defaults to the same as the first input.
  35112. </p>
  35113. </dd>
  35114. </dl>
  35115. <p>The <code>program_opencl</code> filter also supports the <a href="#framesync">framesync</a> options.
  35116. </p>
  35117. <p>The program source file must contain a kernel function with the given name,
  35118. which will be run once for each plane of the output. Each run on a plane
  35119. gets enqueued as a separate 2D global NDRange with one work-item for each
  35120. pixel to be generated. The global ID offset for each work-item is therefore
  35121. the coordinates of a pixel in the destination image.
  35122. </p>
  35123. <p>The kernel function needs to take the following arguments:
  35124. </p><ul>
  35125. <li>
  35126. Destination image, <var>__write_only image2d_t</var>.
  35127. <p>This image will become the output; the kernel should write all of it.
  35128. </p></li><li>
  35129. Frame index, <var>unsigned int</var>.
  35130. <p>This is a counter starting from zero and increasing by one for each frame.
  35131. </p></li><li>
  35132. Source images, <var>__read_only image2d_t</var>.
  35133. <p>These are the most recent images on each input. The kernel may read from
  35134. them to generate the output, but they can&rsquo;t be written to.
  35135. </p></li></ul>
  35136. <p>Example programs:
  35137. </p>
  35138. <ul>
  35139. <li>
  35140. Copy the input to the output (output must be the same size as the input).
  35141. <pre class="verbatim">__kernel void copy(__write_only image2d_t destination,
  35142. unsigned int index,
  35143. __read_only image2d_t source)
  35144. {
  35145. const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE;
  35146. int2 location = (int2)(get_global_id(0), get_global_id(1));
  35147. float4 value = read_imagef(source, sampler, location);
  35148. write_imagef(destination, location, value);
  35149. }
  35150. </pre>
  35151. </li><li>
  35152. Apply a simple transformation, rotating the input by an amount increasing
  35153. with the index counter. Pixel values are linearly interpolated by the
  35154. sampler, and the output need not have the same dimensions as the input.
  35155. <pre class="verbatim">__kernel void rotate_image(__write_only image2d_t dst,
  35156. unsigned int index,
  35157. __read_only image2d_t src)
  35158. {
  35159. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  35160. CLK_FILTER_LINEAR);
  35161. float angle = (float)index / 100.0f;
  35162. float2 dst_dim = convert_float2(get_image_dim(dst));
  35163. float2 src_dim = convert_float2(get_image_dim(src));
  35164. float2 dst_cen = dst_dim / 2.0f;
  35165. float2 src_cen = src_dim / 2.0f;
  35166. int2 dst_loc = (int2)(get_global_id(0), get_global_id(1));
  35167. float2 dst_pos = convert_float2(dst_loc) - dst_cen;
  35168. float2 src_pos = {
  35169. cos(angle) * dst_pos.x - sin(angle) * dst_pos.y,
  35170. sin(angle) * dst_pos.x + cos(angle) * dst_pos.y
  35171. };
  35172. src_pos = src_pos * src_dim / dst_dim;
  35173. float2 src_loc = src_pos + src_cen;
  35174. if (src_loc.x &lt; 0.0f || src_loc.y &lt; 0.0f ||
  35175. src_loc.x &gt; src_dim.x || src_loc.y &gt; src_dim.y)
  35176. write_imagef(dst, dst_loc, 0.5f);
  35177. else
  35178. write_imagef(dst, dst_loc, read_imagef(src, sampler, src_loc));
  35179. }
  35180. </pre>
  35181. </li><li>
  35182. Blend two inputs together, with the amount of each input used varying
  35183. with the index counter.
  35184. <pre class="verbatim">__kernel void blend_images(__write_only image2d_t dst,
  35185. unsigned int index,
  35186. __read_only image2d_t src1,
  35187. __read_only image2d_t src2)
  35188. {
  35189. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  35190. CLK_FILTER_LINEAR);
  35191. float blend = (cos((float)index / 50.0f) + 1.0f) / 2.0f;
  35192. int2 dst_loc = (int2)(get_global_id(0), get_global_id(1));
  35193. int2 src1_loc = dst_loc * get_image_dim(src1) / get_image_dim(dst);
  35194. int2 src2_loc = dst_loc * get_image_dim(src2) / get_image_dim(dst);
  35195. float4 val1 = read_imagef(src1, sampler, src1_loc);
  35196. float4 val2 = read_imagef(src2, sampler, src2_loc);
  35197. write_imagef(dst, dst_loc, val1 * blend + val2 * (1.0f - blend));
  35198. }
  35199. </pre>
  35200. </li></ul>
  35201. <a name="roberts_005fopencl"></a>
  35202. <h2 class="section"><a href="ffprobe-all.html#toc-roberts_005fopencl">33.13 roberts_opencl</a></h2>
  35203. <p>Apply the Roberts cross operator (<a href="https://en.wikipedia.org/wiki/Roberts_cross">https://en.wikipedia.org/wiki/Roberts_cross</a>) to input video stream.
  35204. </p>
  35205. <p>The filter accepts the following option:
  35206. </p>
  35207. <dl compact="compact">
  35208. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  35209. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  35210. </p>
  35211. </dd>
  35212. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  35213. <dd><p>Set value which will be multiplied with filtered result.
  35214. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  35215. </p>
  35216. </dd>
  35217. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  35218. <dd><p>Set value which will be added to filtered result.
  35219. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  35220. </p></dd>
  35221. </dl>
  35222. <a name="Example-1"></a>
  35223. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-1">33.13.1 Example</a></h3>
  35224. <ul>
  35225. <li>
  35226. Apply the Roberts cross operator with scale set to 2 and delta set to 10
  35227. <div class="example">
  35228. <pre class="example">-i INPUT -vf &quot;hwupload, roberts_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  35229. </pre></div>
  35230. </li></ul>
  35231. <a name="sobel_005fopencl"></a>
  35232. <h2 class="section"><a href="ffprobe-all.html#toc-sobel_005fopencl">33.14 sobel_opencl</a></h2>
  35233. <p>Apply the Sobel operator (<a href="https://en.wikipedia.org/wiki/Sobel_operator">https://en.wikipedia.org/wiki/Sobel_operator</a>) to input video stream.
  35234. </p>
  35235. <p>The filter accepts the following option:
  35236. </p>
  35237. <dl compact="compact">
  35238. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  35239. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  35240. </p>
  35241. </dd>
  35242. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  35243. <dd><p>Set value which will be multiplied with filtered result.
  35244. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  35245. </p>
  35246. </dd>
  35247. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  35248. <dd><p>Set value which will be added to filtered result.
  35249. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  35250. </p></dd>
  35251. </dl>
  35252. <a name="Example-4"></a>
  35253. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-4">33.14.1 Example</a></h3>
  35254. <ul>
  35255. <li>
  35256. Apply sobel operator with scale set to 2 and delta set to 10
  35257. <div class="example">
  35258. <pre class="example">-i INPUT -vf &quot;hwupload, sobel_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  35259. </pre></div>
  35260. </li></ul>
  35261. <a name="tonemap_005fopencl"></a>
  35262. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap_005fopencl">33.15 tonemap_opencl</a></h2>
  35263. <p>Perform HDR(PQ/HLG) to SDR conversion with tone-mapping.
  35264. </p>
  35265. <p>It accepts the following parameters:
  35266. </p>
  35267. <dl compact="compact">
  35268. <dt>&lsquo;<samp>tonemap</samp>&rsquo;</dt>
  35269. <dd><p>Specify the tone-mapping operator to be used. Same as tonemap option in <a href="#tonemap">tonemap</a>.
  35270. </p>
  35271. </dd>
  35272. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  35273. <dd><p>Tune the tone mapping algorithm. same as param option in <a href="#tonemap">tonemap</a>.
  35274. </p>
  35275. </dd>
  35276. <dt>&lsquo;<samp>desat</samp>&rsquo;</dt>
  35277. <dd><p>Apply desaturation for highlights that exceed this level of brightness. The
  35278. higher the parameter, the more color information will be preserved. This
  35279. setting helps prevent unnaturally blown-out colors for super-highlights, by
  35280. (smoothly) turning into white instead. This makes images feel more natural,
  35281. at the cost of reducing information about out-of-range colors.
  35282. </p>
  35283. <p>The default value is 0.5, and the algorithm here is a little different from
  35284. the cpu version tonemap currently. A setting of 0.0 disables this option.
  35285. </p>
  35286. </dd>
  35287. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  35288. <dd><p>The tonemapping algorithm parameters is fine-tuned per each scene. And a threshold
  35289. is used to detect whether the scene has changed or not. If the distance between
  35290. the current frame average brightness and the current running average exceeds
  35291. a threshold value, we would re-calculate scene average and peak brightness.
  35292. The default value is 0.2.
  35293. </p>
  35294. </dd>
  35295. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  35296. <dd><p>Specify the output pixel format.
  35297. </p>
  35298. <p>Currently supported formats are:
  35299. </p><dl compact="compact">
  35300. <dt><var>p010</var></dt>
  35301. <dt><var>nv12</var></dt>
  35302. </dl>
  35303. </dd>
  35304. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  35305. <dd><p>Set the output color range.
  35306. </p>
  35307. <p>Possible values are:
  35308. </p><dl compact="compact">
  35309. <dt><var>tv/mpeg</var></dt>
  35310. <dt><var>pc/jpeg</var></dt>
  35311. </dl>
  35312. <p>Default is same as input.
  35313. </p>
  35314. </dd>
  35315. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  35316. <dd><p>Set the output color primaries.
  35317. </p>
  35318. <p>Possible values are:
  35319. </p><dl compact="compact">
  35320. <dt><var>bt709</var></dt>
  35321. <dt><var>bt2020</var></dt>
  35322. </dl>
  35323. <p>Default is same as input.
  35324. </p>
  35325. </dd>
  35326. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  35327. <dd><p>Set the output transfer characteristics.
  35328. </p>
  35329. <p>Possible values are:
  35330. </p><dl compact="compact">
  35331. <dt><var>bt709</var></dt>
  35332. <dt><var>bt2020</var></dt>
  35333. </dl>
  35334. <p>Default is bt709.
  35335. </p>
  35336. </dd>
  35337. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  35338. <dd><p>Set the output colorspace matrix.
  35339. </p>
  35340. <p>Possible value are:
  35341. </p><dl compact="compact">
  35342. <dt><var>bt709</var></dt>
  35343. <dt><var>bt2020</var></dt>
  35344. </dl>
  35345. <p>Default is same as input.
  35346. </p>
  35347. </dd>
  35348. </dl>
  35349. <a name="Example-7"></a>
  35350. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-7">33.15.1 Example</a></h3>
  35351. <ul>
  35352. <li>
  35353. Convert HDR(PQ/HLG) video to bt2020-transfer-characteristic p010 format using linear operator.
  35354. <div class="example">
  35355. <pre class="example">-i INPUT -vf &quot;format=p010,hwupload,tonemap_opencl=t=bt2020:tonemap=linear:format=p010,hwdownload,format=p010&quot; OUTPUT
  35356. </pre></div>
  35357. </li></ul>
  35358. <a name="unsharp_005fopencl"></a>
  35359. <h2 class="section"><a href="ffprobe-all.html#toc-unsharp_005fopencl">33.16 unsharp_opencl</a></h2>
  35360. <p>Sharpen or blur the input video.
  35361. </p>
  35362. <p>It accepts the following parameters:
  35363. </p>
  35364. <dl compact="compact">
  35365. <dt>&lsquo;<samp>luma_msize_x, lx</samp>&rsquo;</dt>
  35366. <dd><p>Set the luma matrix horizontal size.
  35367. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  35368. </p>
  35369. </dd>
  35370. <dt>&lsquo;<samp>luma_msize_y, ly</samp>&rsquo;</dt>
  35371. <dd><p>Set the luma matrix vertical size.
  35372. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  35373. </p>
  35374. </dd>
  35375. <dt>&lsquo;<samp>luma_amount, la</samp>&rsquo;</dt>
  35376. <dd><p>Set the luma effect strength.
  35377. Range is <code>[-10, 10]</code> and default value is <code>1.0</code>.
  35378. </p>
  35379. <p>Negative values will blur the input video, while positive values will
  35380. sharpen it, a value of zero will disable the effect.
  35381. </p>
  35382. </dd>
  35383. <dt>&lsquo;<samp>chroma_msize_x, cx</samp>&rsquo;</dt>
  35384. <dd><p>Set the chroma matrix horizontal size.
  35385. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  35386. </p>
  35387. </dd>
  35388. <dt>&lsquo;<samp>chroma_msize_y, cy</samp>&rsquo;</dt>
  35389. <dd><p>Set the chroma matrix vertical size.
  35390. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  35391. </p>
  35392. </dd>
  35393. <dt>&lsquo;<samp>chroma_amount, ca</samp>&rsquo;</dt>
  35394. <dd><p>Set the chroma effect strength.
  35395. Range is <code>[-10, 10]</code> and default value is <code>0.0</code>.
  35396. </p>
  35397. <p>Negative values will blur the input video, while positive values will
  35398. sharpen it, a value of zero will disable the effect.
  35399. </p>
  35400. </dd>
  35401. </dl>
  35402. <p>All parameters are optional and default to the equivalent of the
  35403. string &rsquo;5:5:1.0:5:5:0.0&rsquo;.
  35404. </p>
  35405. <a name="Examples-58"></a>
  35406. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-58">33.16.1 Examples</a></h3>
  35407. <ul>
  35408. <li>
  35409. Apply strong luma sharpen effect:
  35410. <div class="example">
  35411. <pre class="example">-i INPUT -vf &quot;hwupload, unsharp_opencl=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5, hwdownload&quot; OUTPUT
  35412. </pre></div>
  35413. </li><li>
  35414. Apply a strong blur of both luma and chroma parameters:
  35415. <div class="example">
  35416. <pre class="example">-i INPUT -vf &quot;hwupload, unsharp_opencl=7:7:-2:7:7:-2, hwdownload&quot; OUTPUT
  35417. </pre></div>
  35418. </li></ul>
  35419. <a name="xfade_005fopencl"></a>
  35420. <h2 class="section"><a href="ffprobe-all.html#toc-xfade_005fopencl">33.17 xfade_opencl</a></h2>
  35421. <p>Cross fade two videos with custom transition effect by using OpenCL.
  35422. </p>
  35423. <p>It accepts the following options:
  35424. </p>
  35425. <dl compact="compact">
  35426. <dt>&lsquo;<samp>transition</samp>&rsquo;</dt>
  35427. <dd><p>Set one of possible transition effects.
  35428. </p>
  35429. <dl compact="compact">
  35430. <dt>&lsquo;<samp>custom</samp>&rsquo;</dt>
  35431. <dd><p>Select custom transition effect, the actual transition description
  35432. will be picked from source and kernel options.
  35433. </p>
  35434. </dd>
  35435. <dt>&lsquo;<samp>fade</samp>&rsquo;</dt>
  35436. <dt>&lsquo;<samp>wipeleft</samp>&rsquo;</dt>
  35437. <dt>&lsquo;<samp>wiperight</samp>&rsquo;</dt>
  35438. <dt>&lsquo;<samp>wipeup</samp>&rsquo;</dt>
  35439. <dt>&lsquo;<samp>wipedown</samp>&rsquo;</dt>
  35440. <dt>&lsquo;<samp>slideleft</samp>&rsquo;</dt>
  35441. <dt>&lsquo;<samp>slideright</samp>&rsquo;</dt>
  35442. <dt>&lsquo;<samp>slideup</samp>&rsquo;</dt>
  35443. <dt>&lsquo;<samp>slidedown</samp>&rsquo;</dt>
  35444. <dd>
  35445. <p>Default transition is fade.
  35446. </p></dd>
  35447. </dl>
  35448. </dd>
  35449. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  35450. <dd><p>OpenCL program source file for custom transition.
  35451. </p>
  35452. </dd>
  35453. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  35454. <dd><p>Set name of kernel to use for custom transition from program source file.
  35455. </p>
  35456. </dd>
  35457. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  35458. <dd><p>Set duration of video transition.
  35459. </p>
  35460. </dd>
  35461. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  35462. <dd><p>Set time of start of transition relative to first video.
  35463. </p></dd>
  35464. </dl>
  35465. <p>The program source file must contain a kernel function with the given name,
  35466. which will be run once for each plane of the output. Each run on a plane
  35467. gets enqueued as a separate 2D global NDRange with one work-item for each
  35468. pixel to be generated. The global ID offset for each work-item is therefore
  35469. the coordinates of a pixel in the destination image.
  35470. </p>
  35471. <p>The kernel function needs to take the following arguments:
  35472. </p><ul>
  35473. <li>
  35474. Destination image, <var>__write_only image2d_t</var>.
  35475. <p>This image will become the output; the kernel should write all of it.
  35476. </p>
  35477. </li><li>
  35478. First Source image, <var>__read_only image2d_t</var>.
  35479. Second Source image, <var>__read_only image2d_t</var>.
  35480. <p>These are the most recent images on each input. The kernel may read from
  35481. them to generate the output, but they can&rsquo;t be written to.
  35482. </p>
  35483. </li><li>
  35484. Transition progress, <var>float</var>. This value is always between 0 and 1 inclusive.
  35485. </li></ul>
  35486. <p>Example programs:
  35487. </p>
  35488. <ul>
  35489. <li>
  35490. Apply dots curtain transition effect:
  35491. <pre class="verbatim">__kernel void blend_images(__write_only image2d_t dst,
  35492. __read_only image2d_t src1,
  35493. __read_only image2d_t src2,
  35494. float progress)
  35495. {
  35496. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  35497. CLK_FILTER_LINEAR);
  35498. int2 p = (int2)(get_global_id(0), get_global_id(1));
  35499. float2 rp = (float2)(get_global_id(0), get_global_id(1));
  35500. float2 dim = (float2)(get_image_dim(src1).x, get_image_dim(src1).y);
  35501. rp = rp / dim;
  35502. float2 dots = (float2)(20.0, 20.0);
  35503. float2 center = (float2)(0,0);
  35504. float2 unused;
  35505. float4 val1 = read_imagef(src1, sampler, p);
  35506. float4 val2 = read_imagef(src2, sampler, p);
  35507. bool next = distance(fract(rp * dots, &amp;unused), (float2)(0.5, 0.5)) &lt; (progress / distance(rp, center));
  35508. write_imagef(dst, p, next ? val1 : val2);
  35509. }
  35510. </pre>
  35511. </li></ul>
  35512. <a name="VAAPI-Video-Filters"></a>
  35513. <h1 class="chapter"><a href="ffprobe-all.html#toc-VAAPI-Video-Filters">34 VAAPI Video Filters</a></h1>
  35514. <p>VAAPI Video filters are usually used with VAAPI decoder and VAAPI encoder. Below is a description of VAAPI video filters.
  35515. </p>
  35516. <p>To enable compilation of these filters you need to configure FFmpeg with
  35517. <code>--enable-vaapi</code>.
  35518. </p>
  35519. <p>To use vaapi filters, you need to setup the vaapi device correctly. For more information, please read <a href="https://trac.ffmpeg.org/wiki/Hardware/VAAPI">https://trac.ffmpeg.org/wiki/Hardware/VAAPI</a>
  35520. </p>
  35521. <a name="tonemap_005fvaapi"></a>
  35522. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap_005fvaapi">34.1 tonemap_vaapi</a></h2>
  35523. <p>Perform HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping.
  35524. It maps the dynamic range of HDR10 content to the SDR content.
  35525. It currently only accepts HDR10 as input.
  35526. </p>
  35527. <p>It accepts the following parameters:
  35528. </p>
  35529. <dl compact="compact">
  35530. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  35531. <dd><p>Specify the output pixel format.
  35532. </p>
  35533. <p>Currently supported formats are:
  35534. </p><dl compact="compact">
  35535. <dt><var>p010</var></dt>
  35536. <dt><var>nv12</var></dt>
  35537. </dl>
  35538. <p>Default is nv12.
  35539. </p>
  35540. </dd>
  35541. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  35542. <dd><p>Set the output color primaries.
  35543. </p>
  35544. <p>Default is same as input.
  35545. </p>
  35546. </dd>
  35547. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  35548. <dd><p>Set the output transfer characteristics.
  35549. </p>
  35550. <p>Default is bt709.
  35551. </p>
  35552. </dd>
  35553. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  35554. <dd><p>Set the output colorspace matrix.
  35555. </p>
  35556. <p>Default is same as input.
  35557. </p>
  35558. </dd>
  35559. </dl>
  35560. <a name="Example-5"></a>
  35561. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-5">34.1.1 Example</a></h3>
  35562. <ul>
  35563. <li>
  35564. Convert HDR(HDR10) video to bt2020-transfer-characteristic p010 format
  35565. <div class="example">
  35566. <pre class="example">tonemap_vaapi=format=p010:t=bt2020-10
  35567. </pre></div>
  35568. </li></ul>
  35569. <a name="Video-Sources"></a>
  35570. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Sources">35 Video Sources</a></h1>
  35571. <p>Below is a description of the currently available video sources.
  35572. </p>
  35573. <a name="buffer"></a>
  35574. <h2 class="section"><a href="ffprobe-all.html#toc-buffer">35.1 buffer</a></h2>
  35575. <p>Buffer video frames, and make them available to the filter chain.
  35576. </p>
  35577. <p>This source is mainly intended for a programmatic use, in particular
  35578. through the interface defined in &lsquo;<tt>libavfilter/vsrc_buffer.h</tt>&rsquo;.
  35579. </p>
  35580. <p>It accepts the following parameters:
  35581. </p>
  35582. <dl compact="compact">
  35583. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  35584. <dd><p>Specify the size (width and height) of the buffered video frames. For the
  35585. syntax of this option, check the
  35586. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35587. </p>
  35588. </dd>
  35589. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  35590. <dd><p>The input video width.
  35591. </p>
  35592. </dd>
  35593. <dt>&lsquo;<samp>height</samp>&rsquo;</dt>
  35594. <dd><p>The input video height.
  35595. </p>
  35596. </dd>
  35597. <dt>&lsquo;<samp>pix_fmt</samp>&rsquo;</dt>
  35598. <dd><p>A string representing the pixel format of the buffered video frames.
  35599. It may be a number corresponding to a pixel format, or a pixel format
  35600. name.
  35601. </p>
  35602. </dd>
  35603. <dt>&lsquo;<samp>time_base</samp>&rsquo;</dt>
  35604. <dd><p>Specify the timebase assumed by the timestamps of the buffered frames.
  35605. </p>
  35606. </dd>
  35607. <dt>&lsquo;<samp>frame_rate</samp>&rsquo;</dt>
  35608. <dd><p>Specify the frame rate expected for the video stream.
  35609. </p>
  35610. </dd>
  35611. <dt>&lsquo;<samp>pixel_aspect, sar</samp>&rsquo;</dt>
  35612. <dd><p>The sample (pixel) aspect ratio of the input video.
  35613. </p>
  35614. </dd>
  35615. <dt>&lsquo;<samp>sws_param</samp>&rsquo;</dt>
  35616. <dd><p>This option is deprecated and ignored. Prepend <code>sws_flags=<var>flags</var>;</code>
  35617. to the filtergraph description to specify swscale flags for automatically
  35618. inserted scalers. See <a href="#Filtergraph-syntax">Filtergraph syntax</a>.
  35619. </p>
  35620. </dd>
  35621. <dt>&lsquo;<samp>hw_frames_ctx</samp>&rsquo;</dt>
  35622. <dd><p>When using a hardware pixel format, this should be a reference to an
  35623. AVHWFramesContext describing input frames.
  35624. </p></dd>
  35625. </dl>
  35626. <p>For example:
  35627. </p><div class="example">
  35628. <pre class="example">buffer=width=320:height=240:pix_fmt=yuv410p:time_base=1/24:sar=1
  35629. </pre></div>
  35630. <p>will instruct the source to accept video frames with size 320x240 and
  35631. with format &quot;yuv410p&quot;, assuming 1/24 as the timestamps timebase and
  35632. square pixels (1:1 sample aspect ratio).
  35633. Since the pixel format with name &quot;yuv410p&quot; corresponds to the number 6
  35634. (check the enum AVPixelFormat definition in &lsquo;<tt>libavutil/pixfmt.h</tt>&rsquo;),
  35635. this example corresponds to:
  35636. </p><div class="example">
  35637. <pre class="example">buffer=size=320x240:pixfmt=6:time_base=1/24:pixel_aspect=1/1
  35638. </pre></div>
  35639. <p>Alternatively, the options can be specified as a flat string, but this
  35640. syntax is deprecated:
  35641. </p>
  35642. <p><var>width</var>:<var>height</var>:<var>pix_fmt</var>:<var>time_base.num</var>:<var>time_base.den</var>:<var>pixel_aspect.num</var>:<var>pixel_aspect.den</var>
  35643. </p>
  35644. <a name="cellauto"></a>
  35645. <h2 class="section"><a href="ffprobe-all.html#toc-cellauto">35.2 cellauto</a></h2>
  35646. <p>Create a pattern generated by an elementary cellular automaton.
  35647. </p>
  35648. <p>The initial state of the cellular automaton can be defined through the
  35649. &lsquo;<samp>filename</samp>&rsquo; and &lsquo;<samp>pattern</samp>&rsquo; options. If such options are
  35650. not specified an initial state is created randomly.
  35651. </p>
  35652. <p>At each new frame a new row in the video is filled with the result of
  35653. the cellular automaton next generation. The behavior when the whole
  35654. frame is filled is defined by the &lsquo;<samp>scroll</samp>&rsquo; option.
  35655. </p>
  35656. <p>This source accepts the following options:
  35657. </p>
  35658. <dl compact="compact">
  35659. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  35660. <dd><p>Read the initial cellular automaton state, i.e. the starting row, from
  35661. the specified file.
  35662. In the file, each non-whitespace character is considered an alive
  35663. cell, a newline will terminate the row, and further characters in the
  35664. file will be ignored.
  35665. </p>
  35666. </dd>
  35667. <dt>&lsquo;<samp>pattern, p</samp>&rsquo;</dt>
  35668. <dd><p>Read the initial cellular automaton state, i.e. the starting row, from
  35669. the specified string.
  35670. </p>
  35671. <p>Each non-whitespace character in the string is considered an alive
  35672. cell, a newline will terminate the row, and further characters in the
  35673. string will be ignored.
  35674. </p>
  35675. </dd>
  35676. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35677. <dd><p>Set the video rate, that is the number of frames generated per second.
  35678. Default is 25.
  35679. </p>
  35680. </dd>
  35681. <dt>&lsquo;<samp>random_fill_ratio, ratio</samp>&rsquo;</dt>
  35682. <dd><p>Set the random fill ratio for the initial cellular automaton row. It
  35683. is a floating point number value ranging from 0 to 1, defaults to
  35684. 1/PHI.
  35685. </p>
  35686. <p>This option is ignored when a file or a pattern is specified.
  35687. </p>
  35688. </dd>
  35689. <dt>&lsquo;<samp>random_seed, seed</samp>&rsquo;</dt>
  35690. <dd><p>Set the seed for filling randomly the initial row, must be an integer
  35691. included between 0 and UINT32_MAX. If not specified, or if explicitly
  35692. set to -1, the filter will try to use a good random seed on a best
  35693. effort basis.
  35694. </p>
  35695. </dd>
  35696. <dt>&lsquo;<samp>rule</samp>&rsquo;</dt>
  35697. <dd><p>Set the cellular automaton rule, it is a number ranging from 0 to 255.
  35698. Default value is 110.
  35699. </p>
  35700. </dd>
  35701. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35702. <dd><p>Set the size of the output video. For the syntax of this option, check the
  35703. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35704. </p>
  35705. <p>If &lsquo;<samp>filename</samp>&rsquo; or &lsquo;<samp>pattern</samp>&rsquo; is specified, the size is set
  35706. by default to the width of the specified initial state row, and the
  35707. height is set to <var>width</var> * PHI.
  35708. </p>
  35709. <p>If &lsquo;<samp>size</samp>&rsquo; is set, it must contain the width of the specified
  35710. pattern string, and the specified pattern will be centered in the
  35711. larger row.
  35712. </p>
  35713. <p>If a filename or a pattern string is not specified, the size value
  35714. defaults to &quot;320x518&quot; (used for a randomly generated initial state).
  35715. </p>
  35716. </dd>
  35717. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  35718. <dd><p>If set to 1, scroll the output upward when all the rows in the output
  35719. have been already filled. If set to 0, the new generated row will be
  35720. written over the top row just after the bottom row is filled.
  35721. Defaults to 1.
  35722. </p>
  35723. </dd>
  35724. <dt>&lsquo;<samp>start_full, full</samp>&rsquo;</dt>
  35725. <dd><p>If set to 1, completely fill the output with generated rows before
  35726. outputting the first frame.
  35727. This is the default behavior, for disabling set the value to 0.
  35728. </p>
  35729. </dd>
  35730. <dt>&lsquo;<samp>stitch</samp>&rsquo;</dt>
  35731. <dd><p>If set to 1, stitch the left and right row edges together.
  35732. This is the default behavior, for disabling set the value to 0.
  35733. </p></dd>
  35734. </dl>
  35735. <a name="Examples-88"></a>
  35736. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-88">35.2.1 Examples</a></h3>
  35737. <ul>
  35738. <li>
  35739. Read the initial state from &lsquo;<tt>pattern</tt>&rsquo;, and specify an output of
  35740. size 200x400.
  35741. <div class="example">
  35742. <pre class="example">cellauto=f=pattern:s=200x400
  35743. </pre></div>
  35744. </li><li>
  35745. Generate a random initial row with a width of 200 cells, with a fill
  35746. ratio of 2/3:
  35747. <div class="example">
  35748. <pre class="example">cellauto=ratio=2/3:s=200x200
  35749. </pre></div>
  35750. </li><li>
  35751. Create a pattern generated by rule 18 starting by a single alive cell
  35752. centered on an initial row with width 100:
  35753. <div class="example">
  35754. <pre class="example">cellauto=p=@:s=100x400:full=0:rule=18
  35755. </pre></div>
  35756. </li><li>
  35757. Specify a more elaborated initial pattern:
  35758. <div class="example">
  35759. <pre class="example">cellauto=p='@@ @ @@':s=100x400:full=0:rule=18
  35760. </pre></div>
  35761. </li></ul>
  35762. <p><a name="coreimagesrc"></a>
  35763. </p><a name="coreimagesrc-1"></a>
  35764. <h2 class="section"><a href="ffprobe-all.html#toc-coreimagesrc-1">35.3 coreimagesrc</a></h2>
  35765. <p>Video source generated on GPU using Apple&rsquo;s CoreImage API on OSX.
  35766. </p>
  35767. <p>This video source is a specialized version of the <a href="#coreimage">coreimage</a> video filter.
  35768. Use a core image generator at the beginning of the applied filterchain to
  35769. generate the content.
  35770. </p>
  35771. <p>The coreimagesrc video source accepts the following options:
  35772. </p><dl compact="compact">
  35773. <dt>&lsquo;<samp>list_generators</samp>&rsquo;</dt>
  35774. <dd><p>List all available generators along with all their respective options as well as
  35775. possible minimum and maximum values along with the default values.
  35776. </p><div class="example">
  35777. <pre class="example">list_generators=true
  35778. </pre></div>
  35779. </dd>
  35780. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35781. <dd><p>Specify the size of the sourced video. For the syntax of this option, check the
  35782. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35783. The default value is <code>320x240</code>.
  35784. </p>
  35785. </dd>
  35786. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35787. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  35788. generated per second. It has to be a string in the format
  35789. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  35790. number or a valid video frame rate abbreviation. The default value is
  35791. &quot;25&quot;.
  35792. </p>
  35793. </dd>
  35794. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  35795. <dd><p>Set the sample aspect ratio of the sourced video.
  35796. </p>
  35797. </dd>
  35798. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  35799. <dd><p>Set the duration of the sourced video. See
  35800. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  35801. for the accepted syntax.
  35802. </p>
  35803. <p>If not specified, or the expressed duration is negative, the video is
  35804. supposed to be generated forever.
  35805. </p></dd>
  35806. </dl>
  35807. <p>Additionally, all options of the <a href="#coreimage">coreimage</a> video filter are accepted.
  35808. A complete filterchain can be used for further processing of the
  35809. generated input without CPU-HOST transfer. See <a href="#coreimage">coreimage</a> documentation
  35810. and examples for details.
  35811. </p>
  35812. <a name="Examples-164"></a>
  35813. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-164">35.3.1 Examples</a></h3>
  35814. <ul>
  35815. <li>
  35816. Use CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
  35817. given as complete and escaped command-line for Apple&rsquo;s standard bash shell:
  35818. <div class="example">
  35819. <pre class="example">ffmpeg -f lavfi -i coreimagesrc=s=100x100:filter=CIQRCodeGenerator@inputMessage=https\\\\\://FFmpeg.org/@inputCorrectionLevel=H -frames:v 1 QRCode.png
  35820. </pre></div>
  35821. <p>This example is equivalent to the QRCode example of <a href="#coreimage">coreimage</a> without the
  35822. need for a nullsrc video source.
  35823. </p></li></ul>
  35824. <a name="gradients"></a>
  35825. <h2 class="section"><a href="ffprobe-all.html#toc-gradients">35.4 gradients</a></h2>
  35826. <p>Generate several gradients.
  35827. </p>
  35828. <dl compact="compact">
  35829. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35830. <dd><p>Set frame size. For the syntax of this option, check the <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>. Default value is &quot;640x480&quot;.
  35831. </p>
  35832. </dd>
  35833. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35834. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35835. value is &quot;25&quot;.
  35836. </p>
  35837. </dd>
  35838. <dt>&lsquo;<samp>c0, c1, c2, c3, c4, c5, c6, c7</samp>&rsquo;</dt>
  35839. <dd><p>Set 8 colors. Default values for colors is to pick random one.
  35840. </p>
  35841. </dd>
  35842. <dt>&lsquo;<samp>x0, y0, y0, y1</samp>&rsquo;</dt>
  35843. <dd><p>Set gradient line source and destination points. If negative or out of range, random ones
  35844. are picked.
  35845. </p>
  35846. </dd>
  35847. <dt>&lsquo;<samp>nb_colors, n</samp>&rsquo;</dt>
  35848. <dd><p>Set number of colors to use at once. Allowed range is from 2 to 8. Default value is 2.
  35849. </p>
  35850. </dd>
  35851. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  35852. <dd><p>Set seed for picking gradient line points.
  35853. </p></dd>
  35854. </dl>
  35855. <a name="mandelbrot"></a>
  35856. <h2 class="section"><a href="ffprobe-all.html#toc-mandelbrot">35.5 mandelbrot</a></h2>
  35857. <p>Generate a Mandelbrot set fractal, and progressively zoom towards the
  35858. point specified with <var>start_x</var> and <var>start_y</var>.
  35859. </p>
  35860. <p>This source accepts the following options:
  35861. </p>
  35862. <dl compact="compact">
  35863. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  35864. <dd><p>Set the terminal pts value. Default value is 400.
  35865. </p>
  35866. </dd>
  35867. <dt>&lsquo;<samp>end_scale</samp>&rsquo;</dt>
  35868. <dd><p>Set the terminal scale value.
  35869. Must be a floating point value. Default value is 0.3.
  35870. </p>
  35871. </dd>
  35872. <dt>&lsquo;<samp>inner</samp>&rsquo;</dt>
  35873. <dd><p>Set the inner coloring mode, that is the algorithm used to draw the
  35874. Mandelbrot fractal internal region.
  35875. </p>
  35876. <p>It shall assume one of the following values:
  35877. </p><dl compact="compact">
  35878. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  35879. <dd><p>Set black mode.
  35880. </p></dd>
  35881. <dt>&lsquo;<samp>convergence</samp>&rsquo;</dt>
  35882. <dd><p>Show time until convergence.
  35883. </p></dd>
  35884. <dt>&lsquo;<samp>mincol</samp>&rsquo;</dt>
  35885. <dd><p>Set color based on point closest to the origin of the iterations.
  35886. </p></dd>
  35887. <dt>&lsquo;<samp>period</samp>&rsquo;</dt>
  35888. <dd><p>Set period mode.
  35889. </p></dd>
  35890. </dl>
  35891. <p>Default value is <var>mincol</var>.
  35892. </p>
  35893. </dd>
  35894. <dt>&lsquo;<samp>bailout</samp>&rsquo;</dt>
  35895. <dd><p>Set the bailout value. Default value is 10.0.
  35896. </p>
  35897. </dd>
  35898. <dt>&lsquo;<samp>maxiter</samp>&rsquo;</dt>
  35899. <dd><p>Set the maximum of iterations performed by the rendering
  35900. algorithm. Default value is 7189.
  35901. </p>
  35902. </dd>
  35903. <dt>&lsquo;<samp>outer</samp>&rsquo;</dt>
  35904. <dd><p>Set outer coloring mode.
  35905. It shall assume one of following values:
  35906. </p><dl compact="compact">
  35907. <dt>&lsquo;<samp>iteration_count</samp>&rsquo;</dt>
  35908. <dd><p>Set iteration count mode.
  35909. </p></dd>
  35910. <dt>&lsquo;<samp>normalized_iteration_count</samp>&rsquo;</dt>
  35911. <dd><p>set normalized iteration count mode.
  35912. </p></dd>
  35913. </dl>
  35914. <p>Default value is <var>normalized_iteration_count</var>.
  35915. </p>
  35916. </dd>
  35917. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35918. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35919. value is &quot;25&quot;.
  35920. </p>
  35921. </dd>
  35922. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35923. <dd><p>Set frame size. For the syntax of this option, check the <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>. Default value is &quot;640x480&quot;.
  35924. </p>
  35925. </dd>
  35926. <dt>&lsquo;<samp>start_scale</samp>&rsquo;</dt>
  35927. <dd><p>Set the initial scale value. Default value is 3.0.
  35928. </p>
  35929. </dd>
  35930. <dt>&lsquo;<samp>start_x</samp>&rsquo;</dt>
  35931. <dd><p>Set the initial x position. Must be a floating point value between
  35932. -100 and 100. Default value is -0.743643887037158704752191506114774.
  35933. </p>
  35934. </dd>
  35935. <dt>&lsquo;<samp>start_y</samp>&rsquo;</dt>
  35936. <dd><p>Set the initial y position. Must be a floating point value between
  35937. -100 and 100. Default value is -0.131825904205311970493132056385139.
  35938. </p></dd>
  35939. </dl>
  35940. <a name="mptestsrc"></a>
  35941. <h2 class="section"><a href="ffprobe-all.html#toc-mptestsrc">35.6 mptestsrc</a></h2>
  35942. <p>Generate various test patterns, as generated by the MPlayer test filter.
  35943. </p>
  35944. <p>The size of the generated video is fixed, and is 256x256.
  35945. This source is useful in particular for testing encoding features.
  35946. </p>
  35947. <p>This source accepts the following options:
  35948. </p>
  35949. <dl compact="compact">
  35950. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35951. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  35952. generated per second. It has to be a string in the format
  35953. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  35954. number or a valid video frame rate abbreviation. The default value is
  35955. &quot;25&quot;.
  35956. </p>
  35957. </dd>
  35958. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  35959. <dd><p>Set the duration of the sourced video. See
  35960. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  35961. for the accepted syntax.
  35962. </p>
  35963. <p>If not specified, or the expressed duration is negative, the video is
  35964. supposed to be generated forever.
  35965. </p>
  35966. </dd>
  35967. <dt>&lsquo;<samp>test, t</samp>&rsquo;</dt>
  35968. <dd>
  35969. <p>Set the number or the name of the test to perform. Supported tests are:
  35970. </p><dl compact="compact">
  35971. <dt>&lsquo;<samp>dc_luma</samp>&rsquo;</dt>
  35972. <dt>&lsquo;<samp>dc_chroma</samp>&rsquo;</dt>
  35973. <dt>&lsquo;<samp>freq_luma</samp>&rsquo;</dt>
  35974. <dt>&lsquo;<samp>freq_chroma</samp>&rsquo;</dt>
  35975. <dt>&lsquo;<samp>amp_luma</samp>&rsquo;</dt>
  35976. <dt>&lsquo;<samp>amp_chroma</samp>&rsquo;</dt>
  35977. <dt>&lsquo;<samp>cbp</samp>&rsquo;</dt>
  35978. <dt>&lsquo;<samp>mv</samp>&rsquo;</dt>
  35979. <dt>&lsquo;<samp>ring1</samp>&rsquo;</dt>
  35980. <dt>&lsquo;<samp>ring2</samp>&rsquo;</dt>
  35981. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  35982. <dt>&lsquo;<samp>max_frames, m</samp>&rsquo;</dt>
  35983. <dd><p>Set the maximum number of frames generated for each test, default value is 30.
  35984. </p>
  35985. </dd>
  35986. </dl>
  35987. <p>Default value is &quot;all&quot;, which will cycle through the list of all tests.
  35988. </p></dd>
  35989. </dl>
  35990. <p>Some examples:
  35991. </p><div class="example">
  35992. <pre class="example">mptestsrc=t=dc_luma
  35993. </pre></div>
  35994. <p>will generate a &quot;dc_luma&quot; test pattern.
  35995. </p>
  35996. <a name="frei0r_005fsrc"></a>
  35997. <h2 class="section"><a href="ffprobe-all.html#toc-frei0r_005fsrc">35.7 frei0r_src</a></h2>
  35998. <p>Provide a frei0r source.
  35999. </p>
  36000. <p>To enable compilation of this filter you need to install the frei0r
  36001. header and configure FFmpeg with <code>--enable-frei0r</code>.
  36002. </p>
  36003. <p>This source accepts the following parameters:
  36004. </p>
  36005. <dl compact="compact">
  36006. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  36007. <dd><p>The size of the video to generate. For the syntax of this option, check the
  36008. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36009. </p>
  36010. </dd>
  36011. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  36012. <dd><p>The framerate of the generated video. It may be a string of the form
  36013. <var>num</var>/<var>den</var> or a frame rate abbreviation.
  36014. </p>
  36015. </dd>
  36016. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  36017. <dd><p>The name to the frei0r source to load. For more information regarding frei0r and
  36018. how to set the parameters, read the <a href="#frei0r">frei0r</a> section in the video filters
  36019. documentation.
  36020. </p>
  36021. </dd>
  36022. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  36023. <dd><p>A &rsquo;|&rsquo;-separated list of parameters to pass to the frei0r source.
  36024. </p>
  36025. </dd>
  36026. </dl>
  36027. <p>For example, to generate a frei0r partik0l source with size 200x200
  36028. and frame rate 10 which is overlaid on the overlay filter main input:
  36029. </p><div class="example">
  36030. <pre class="example">frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234 [overlay]; [in][overlay] overlay
  36031. </pre></div>
  36032. <a name="life"></a>
  36033. <h2 class="section"><a href="ffprobe-all.html#toc-life">35.8 life</a></h2>
  36034. <p>Generate a life pattern.
  36035. </p>
  36036. <p>This source is based on a generalization of John Conway&rsquo;s life game.
  36037. </p>
  36038. <p>The sourced input represents a life grid, each pixel represents a cell
  36039. which can be in one of two possible states, alive or dead. Every cell
  36040. interacts with its eight neighbours, which are the cells that are
  36041. horizontally, vertically, or diagonally adjacent.
  36042. </p>
  36043. <p>At each interaction the grid evolves according to the adopted rule,
  36044. which specifies the number of neighbor alive cells which will make a
  36045. cell stay alive or born. The &lsquo;<samp>rule</samp>&rsquo; option allows one to specify
  36046. the rule to adopt.
  36047. </p>
  36048. <p>This source accepts the following options:
  36049. </p>
  36050. <dl compact="compact">
  36051. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  36052. <dd><p>Set the file from which to read the initial grid state. In the file,
  36053. each non-whitespace character is considered an alive cell, and newline
  36054. is used to delimit the end of each row.
  36055. </p>
  36056. <p>If this option is not specified, the initial grid is generated
  36057. randomly.
  36058. </p>
  36059. </dd>
  36060. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36061. <dd><p>Set the video rate, that is the number of frames generated per second.
  36062. Default is 25.
  36063. </p>
  36064. </dd>
  36065. <dt>&lsquo;<samp>random_fill_ratio, ratio</samp>&rsquo;</dt>
  36066. <dd><p>Set the random fill ratio for the initial random grid. It is a
  36067. floating point number value ranging from 0 to 1, defaults to 1/PHI.
  36068. It is ignored when a file is specified.
  36069. </p>
  36070. </dd>
  36071. <dt>&lsquo;<samp>random_seed, seed</samp>&rsquo;</dt>
  36072. <dd><p>Set the seed for filling the initial random grid, must be an integer
  36073. included between 0 and UINT32_MAX. If not specified, or if explicitly
  36074. set to -1, the filter will try to use a good random seed on a best
  36075. effort basis.
  36076. </p>
  36077. </dd>
  36078. <dt>&lsquo;<samp>rule</samp>&rsquo;</dt>
  36079. <dd><p>Set the life rule.
  36080. </p>
  36081. <p>A rule can be specified with a code of the kind &quot;S<var>NS</var>/B<var>NB</var>&quot;,
  36082. where <var>NS</var> and <var>NB</var> are sequences of numbers in the range 0-8,
  36083. <var>NS</var> specifies the number of alive neighbor cells which make a
  36084. live cell stay alive, and <var>NB</var> the number of alive neighbor cells
  36085. which make a dead cell to become alive (i.e. to &quot;born&quot;).
  36086. &quot;s&quot; and &quot;b&quot; can be used in place of &quot;S&quot; and &quot;B&quot;, respectively.
  36087. </p>
  36088. <p>Alternatively a rule can be specified by an 18-bits integer. The 9
  36089. high order bits are used to encode the next cell state if it is alive
  36090. for each number of neighbor alive cells, the low order bits specify
  36091. the rule for &quot;borning&quot; new cells. Higher order bits encode for an
  36092. higher number of neighbor cells.
  36093. For example the number 6153 = <code>(12&lt;&lt;9)+9</code> specifies a stay alive
  36094. rule of 12 and a born rule of 9, which corresponds to &quot;S23/B03&quot;.
  36095. </p>
  36096. <p>Default value is &quot;S23/B3&quot;, which is the original Conway&rsquo;s game of life
  36097. rule, and will keep a cell alive if it has 2 or 3 neighbor alive
  36098. cells, and will born a new cell if there are three alive cells around
  36099. a dead cell.
  36100. </p>
  36101. </dd>
  36102. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36103. <dd><p>Set the size of the output video. For the syntax of this option, check the
  36104. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36105. </p>
  36106. <p>If &lsquo;<samp>filename</samp>&rsquo; is specified, the size is set by default to the
  36107. same size of the input file. If &lsquo;<samp>size</samp>&rsquo; is set, it must contain
  36108. the size specified in the input file, and the initial grid defined in
  36109. that file is centered in the larger resulting area.
  36110. </p>
  36111. <p>If a filename is not specified, the size value defaults to &quot;320x240&quot;
  36112. (used for a randomly generated initial grid).
  36113. </p>
  36114. </dd>
  36115. <dt>&lsquo;<samp>stitch</samp>&rsquo;</dt>
  36116. <dd><p>If set to 1, stitch the left and right grid edges together, and the
  36117. top and bottom edges also. Defaults to 1.
  36118. </p>
  36119. </dd>
  36120. <dt>&lsquo;<samp>mold</samp>&rsquo;</dt>
  36121. <dd><p>Set cell mold speed. If set, a dead cell will go from &lsquo;<samp>death_color</samp>&rsquo; to
  36122. &lsquo;<samp>mold_color</samp>&rsquo; with a step of &lsquo;<samp>mold</samp>&rsquo;. &lsquo;<samp>mold</samp>&rsquo; can have a
  36123. value from 0 to 255.
  36124. </p>
  36125. </dd>
  36126. <dt>&lsquo;<samp>life_color</samp>&rsquo;</dt>
  36127. <dd><p>Set the color of living (or new born) cells.
  36128. </p>
  36129. </dd>
  36130. <dt>&lsquo;<samp>death_color</samp>&rsquo;</dt>
  36131. <dd><p>Set the color of dead cells. If &lsquo;<samp>mold</samp>&rsquo; is set, this is the first color
  36132. used to represent a dead cell.
  36133. </p>
  36134. </dd>
  36135. <dt>&lsquo;<samp>mold_color</samp>&rsquo;</dt>
  36136. <dd><p>Set mold color, for definitely dead and moldy cells.
  36137. </p>
  36138. <p>For the syntax of these 3 color options, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  36139. </p></dd>
  36140. </dl>
  36141. <a name="Examples-106"></a>
  36142. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-106">35.8.1 Examples</a></h3>
  36143. <ul>
  36144. <li>
  36145. Read a grid from &lsquo;<tt>pattern</tt>&rsquo;, and center it on a grid of size
  36146. 300x300 pixels:
  36147. <div class="example">
  36148. <pre class="example">life=f=pattern:s=300x300
  36149. </pre></div>
  36150. </li><li>
  36151. Generate a random grid of size 200x200, with a fill ratio of 2/3:
  36152. <div class="example">
  36153. <pre class="example">life=ratio=2/3:s=200x200
  36154. </pre></div>
  36155. </li><li>
  36156. Specify a custom rule for evolving a randomly generated grid:
  36157. <div class="example">
  36158. <pre class="example">life=rule=S14/B34
  36159. </pre></div>
  36160. </li><li>
  36161. Full example with slow death effect (mold) using <code>ffplay</code>:
  36162. <div class="example">
  36163. <pre class="example">ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800:flags=16
  36164. </pre></div>
  36165. </li></ul>
  36166. <p><a name="allrgb"></a>
  36167. <a name="allyuv"></a>
  36168. <a name="color"></a>
  36169. <a name="haldclutsrc"></a>
  36170. <a name="nullsrc"></a>
  36171. <a name="pal75bars"></a>
  36172. <a name="pal100bars"></a>
  36173. <a name="rgbtestsrc"></a>
  36174. <a name="smptebars"></a>
  36175. <a name="smptehdbars"></a>
  36176. <a name="testsrc"></a>
  36177. <a name="testsrc2"></a>
  36178. <a name="yuvtestsrc"></a>
  36179. </p><a name="allrgb_002c-allyuv_002c-color_002c-haldclutsrc_002c-nullsrc_002c-pal75bars_002c-pal100bars_002c-rgbtestsrc_002c-smptebars_002c-smptehdbars_002c-testsrc_002c-testsrc2_002c-yuvtestsrc"></a>
  36180. <h2 class="section"><a href="ffprobe-all.html#toc-allrgb_002c-allyuv_002c-color_002c-haldclutsrc_002c-nullsrc_002c-pal75bars_002c-pal100bars_002c-rgbtestsrc_002c-smptebars_002c-smptehdbars_002c-testsrc_002c-testsrc2_002c-yuvtestsrc">35.9 allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc</a></h2>
  36181. <p>The <code>allrgb</code> source returns frames of size 4096x4096 of all rgb colors.
  36182. </p>
  36183. <p>The <code>allyuv</code> source returns frames of size 4096x4096 of all yuv colors.
  36184. </p>
  36185. <p>The <code>color</code> source provides an uniformly colored input.
  36186. </p>
  36187. <p>The <code>haldclutsrc</code> source provides an identity Hald CLUT. See also
  36188. <a href="#haldclut">haldclut</a> filter.
  36189. </p>
  36190. <p>The <code>nullsrc</code> source returns unprocessed video frames. It is
  36191. mainly useful to be employed in analysis / debugging tools, or as the
  36192. source for filters which ignore the input data.
  36193. </p>
  36194. <p>The <code>pal75bars</code> source generates a color bars pattern, based on
  36195. EBU PAL recommendations with 75% color levels.
  36196. </p>
  36197. <p>The <code>pal100bars</code> source generates a color bars pattern, based on
  36198. EBU PAL recommendations with 100% color levels.
  36199. </p>
  36200. <p>The <code>rgbtestsrc</code> source generates an RGB test pattern useful for
  36201. detecting RGB vs BGR issues. You should see a red, green and blue
  36202. stripe from top to bottom.
  36203. </p>
  36204. <p>The <code>smptebars</code> source generates a color bars pattern, based on
  36205. the SMPTE Engineering Guideline EG 1-1990.
  36206. </p>
  36207. <p>The <code>smptehdbars</code> source generates a color bars pattern, based on
  36208. the SMPTE RP 219-2002.
  36209. </p>
  36210. <p>The <code>testsrc</code> source generates a test video pattern, showing a
  36211. color pattern, a scrolling gradient and a timestamp. This is mainly
  36212. intended for testing purposes.
  36213. </p>
  36214. <p>The <code>testsrc2</code> source is similar to testsrc, but supports more
  36215. pixel formats instead of just <code>rgb24</code>. This allows using it as an
  36216. input for other tests without requiring a format conversion.
  36217. </p>
  36218. <p>The <code>yuvtestsrc</code> source generates an YUV test pattern. You should
  36219. see a y, cb and cr stripe from top to bottom.
  36220. </p>
  36221. <p>The sources accept the following parameters:
  36222. </p>
  36223. <dl compact="compact">
  36224. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  36225. <dd><p>Specify the level of the Hald CLUT, only available in the <code>haldclutsrc</code>
  36226. source. A level of <code>N</code> generates a picture of <code>N*N*N</code> by <code>N*N*N</code>
  36227. pixels to be used as identity matrix for 3D lookup tables. Each component is
  36228. coded on a <code>1/(N*N)</code> scale.
  36229. </p>
  36230. </dd>
  36231. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  36232. <dd><p>Specify the color of the source, only available in the <code>color</code>
  36233. source. For the syntax of this option, check the
  36234. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  36235. </p>
  36236. </dd>
  36237. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36238. <dd><p>Specify the size of the sourced video. For the syntax of this option, check the
  36239. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36240. The default value is <code>320x240</code>.
  36241. </p>
  36242. <p>This option is not available with the <code>allrgb</code>, <code>allyuv</code>, and
  36243. <code>haldclutsrc</code> filters.
  36244. </p>
  36245. </dd>
  36246. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36247. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  36248. generated per second. It has to be a string in the format
  36249. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  36250. number or a valid video frame rate abbreviation. The default value is
  36251. &quot;25&quot;.
  36252. </p>
  36253. </dd>
  36254. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  36255. <dd><p>Set the duration of the sourced video. See
  36256. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  36257. for the accepted syntax.
  36258. </p>
  36259. <p>If not specified, or the expressed duration is negative, the video is
  36260. supposed to be generated forever.
  36261. </p>
  36262. </dd>
  36263. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  36264. <dd><p>Set the sample aspect ratio of the sourced video.
  36265. </p>
  36266. </dd>
  36267. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  36268. <dd><p>Specify the alpha (opacity) of the background, only available in the
  36269. <code>testsrc2</code> source. The value must be between 0 (fully transparent) and
  36270. 255 (fully opaque, the default).
  36271. </p>
  36272. </dd>
  36273. <dt>&lsquo;<samp>decimals, n</samp>&rsquo;</dt>
  36274. <dd><p>Set the number of decimals to show in the timestamp, only available in the
  36275. <code>testsrc</code> source.
  36276. </p>
  36277. <p>The displayed timestamp value will correspond to the original
  36278. timestamp value multiplied by the power of 10 of the specified
  36279. value. Default value is 0.
  36280. </p></dd>
  36281. </dl>
  36282. <a name="Examples-3"></a>
  36283. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-3">35.9.1 Examples</a></h3>
  36284. <ul>
  36285. <li>
  36286. Generate a video with a duration of 5.3 seconds, with size
  36287. 176x144 and a frame rate of 10 frames per second:
  36288. <div class="example">
  36289. <pre class="example">testsrc=duration=5.3:size=qcif:rate=10
  36290. </pre></div>
  36291. </li><li>
  36292. The following graph description will generate a red source
  36293. with an opacity of 0.2, with size &quot;qcif&quot; and a frame rate of 10
  36294. frames per second:
  36295. <div class="example">
  36296. <pre class="example">color=c=red@0.2:s=qcif:r=10
  36297. </pre></div>
  36298. </li><li>
  36299. If the input content is to be ignored, <code>nullsrc</code> can be used. The
  36300. following command generates noise in the luminance plane by employing
  36301. the <code>geq</code> filter:
  36302. <div class="example">
  36303. <pre class="example">nullsrc=s=256x256, geq=random(1)*255:128:128
  36304. </pre></div>
  36305. </li></ul>
  36306. <a name="Commands-31"></a>
  36307. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-31">35.9.2 Commands</a></h3>
  36308. <p>The <code>color</code> source supports the following commands:
  36309. </p>
  36310. <dl compact="compact">
  36311. <dt>&lsquo;<samp>c, color</samp>&rsquo;</dt>
  36312. <dd><p>Set the color of the created image. Accepts the same syntax of the
  36313. corresponding &lsquo;<samp>color</samp>&rsquo; option.
  36314. </p></dd>
  36315. </dl>
  36316. <a name="openclsrc"></a>
  36317. <h2 class="section"><a href="ffprobe-all.html#toc-openclsrc">35.10 openclsrc</a></h2>
  36318. <p>Generate video using an OpenCL program.
  36319. </p>
  36320. <dl compact="compact">
  36321. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  36322. <dd><p>OpenCL program source file.
  36323. </p>
  36324. </dd>
  36325. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  36326. <dd><p>Kernel name in program.
  36327. </p>
  36328. </dd>
  36329. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36330. <dd><p>Size of frames to generate. This must be set.
  36331. </p>
  36332. </dd>
  36333. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  36334. <dd><p>Pixel format to use for the generated frames. This must be set.
  36335. </p>
  36336. </dd>
  36337. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36338. <dd><p>Number of frames generated every second. Default value is &rsquo;25&rsquo;.
  36339. </p>
  36340. </dd>
  36341. </dl>
  36342. <p>For details of how the program loading works, see the <a href="#program_005fopencl">program_opencl</a>
  36343. filter.
  36344. </p>
  36345. <p>Example programs:
  36346. </p>
  36347. <ul>
  36348. <li>
  36349. Generate a colour ramp by setting pixel values from the position of the pixel
  36350. in the output image. (Note that this will work with all pixel formats, but
  36351. the generated output will not be the same.)
  36352. <pre class="verbatim">__kernel void ramp(__write_only image2d_t dst,
  36353. unsigned int index)
  36354. {
  36355. int2 loc = (int2)(get_global_id(0), get_global_id(1));
  36356. float4 val;
  36357. val.xy = val.zw = convert_float2(loc) / convert_float2(get_image_dim(dst));
  36358. write_imagef(dst, loc, val);
  36359. }
  36360. </pre>
  36361. </li><li>
  36362. Generate a Sierpinski carpet pattern, panning by a single pixel each frame.
  36363. <pre class="verbatim">__kernel void sierpinski_carpet(__write_only image2d_t dst,
  36364. unsigned int index)
  36365. {
  36366. int2 loc = (int2)(get_global_id(0), get_global_id(1));
  36367. float4 value = 0.0f;
  36368. int x = loc.x + index;
  36369. int y = loc.y + index;
  36370. while (x &gt; 0 || y &gt; 0) {
  36371. if (x % 3 == 1 &amp;&amp; y % 3 == 1) {
  36372. value = 1.0f;
  36373. break;
  36374. }
  36375. x /= 3;
  36376. y /= 3;
  36377. }
  36378. write_imagef(dst, loc, value);
  36379. }
  36380. </pre>
  36381. </li></ul>
  36382. <a name="sierpinski"></a>
  36383. <h2 class="section"><a href="ffprobe-all.html#toc-sierpinski">35.11 sierpinski</a></h2>
  36384. <p>Generate a Sierpinski carpet/triangle fractal, and randomly pan around.
  36385. </p>
  36386. <p>This source accepts the following options:
  36387. </p>
  36388. <dl compact="compact">
  36389. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36390. <dd><p>Set frame size. For the syntax of this option, check the <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>. Default value is &quot;640x480&quot;.
  36391. </p>
  36392. </dd>
  36393. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36394. <dd><p>Set frame rate, expressed as number of frames per second. Default
  36395. value is &quot;25&quot;.
  36396. </p>
  36397. </dd>
  36398. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  36399. <dd><p>Set seed which is used for random panning.
  36400. </p>
  36401. </dd>
  36402. <dt>&lsquo;<samp>jump</samp>&rsquo;</dt>
  36403. <dd><p>Set max jump for single pan destination. Allowed range is from 1 to 10000.
  36404. </p>
  36405. </dd>
  36406. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  36407. <dd><p>Set fractal type, can be default <code>carpet</code> or <code>triangle</code>.
  36408. </p></dd>
  36409. </dl>
  36410. <a name="Video-Sinks"></a>
  36411. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Sinks">36 Video Sinks</a></h1>
  36412. <p>Below is a description of the currently available video sinks.
  36413. </p>
  36414. <a name="buffersink"></a>
  36415. <h2 class="section"><a href="ffprobe-all.html#toc-buffersink">36.1 buffersink</a></h2>
  36416. <p>Buffer video frames, and make them available to the end of the filter
  36417. graph.
  36418. </p>
  36419. <p>This sink is mainly intended for programmatic use, in particular
  36420. through the interface defined in &lsquo;<tt>libavfilter/buffersink.h</tt>&rsquo;
  36421. or the options system.
  36422. </p>
  36423. <p>It accepts a pointer to an AVBufferSinkContext structure, which
  36424. defines the incoming buffers&rsquo; formats, to be passed as the opaque
  36425. parameter to <code>avfilter_init_filter</code> for initialization.
  36426. </p>
  36427. <a name="nullsink"></a>
  36428. <h2 class="section"><a href="ffprobe-all.html#toc-nullsink">36.2 nullsink</a></h2>
  36429. <p>Null video sink: do absolutely nothing with the input video. It is
  36430. mainly useful as a template and for use in analysis / debugging
  36431. tools.
  36432. </p>
  36433. <a name="Multimedia-Filters"></a>
  36434. <h1 class="chapter"><a href="ffprobe-all.html#toc-Multimedia-Filters">37 Multimedia Filters</a></h1>
  36435. <p>Below is a description of the currently available multimedia filters.
  36436. </p>
  36437. <a name="abitscope"></a>
  36438. <h2 class="section"><a href="ffprobe-all.html#toc-abitscope">37.1 abitscope</a></h2>
  36439. <p>Convert input audio to a video output, displaying the audio bit scope.
  36440. </p>
  36441. <p>The filter accepts the following options:
  36442. </p>
  36443. <dl compact="compact">
  36444. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36445. <dd><p>Set frame rate, expressed as number of frames per second. Default
  36446. value is &quot;25&quot;.
  36447. </p>
  36448. </dd>
  36449. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36450. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  36451. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36452. Default value is <code>1024x256</code>.
  36453. </p>
  36454. </dd>
  36455. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  36456. <dd><p>Specify list of colors separated by space or by &rsquo;|&rsquo; which will be used to
  36457. draw channels. Unrecognized or missing colors will be replaced
  36458. by white color.
  36459. </p></dd>
  36460. </dl>
  36461. <a name="adrawgraph"></a>
  36462. <h2 class="section"><a href="ffprobe-all.html#toc-adrawgraph">37.2 adrawgraph</a></h2>
  36463. <p>Draw a graph using input audio metadata.
  36464. </p>
  36465. <p>See <a href="#drawgraph">drawgraph</a>
  36466. </p>
  36467. <a name="agraphmonitor"></a>
  36468. <h2 class="section"><a href="ffprobe-all.html#toc-agraphmonitor">37.3 agraphmonitor</a></h2>
  36469. <p>See <a href="#graphmonitor">graphmonitor</a>.
  36470. </p>
  36471. <a name="ahistogram"></a>
  36472. <h2 class="section"><a href="ffprobe-all.html#toc-ahistogram">37.4 ahistogram</a></h2>
  36473. <p>Convert input audio to a video output, displaying the volume histogram.
  36474. </p>
  36475. <p>The filter accepts the following options:
  36476. </p>
  36477. <dl compact="compact">
  36478. <dt>&lsquo;<samp>dmode</samp>&rsquo;</dt>
  36479. <dd><p>Specify how histogram is calculated.
  36480. </p>
  36481. <p>It accepts the following values:
  36482. </p><dl compact="compact">
  36483. <dt>&lsquo;<samp>single</samp>&rsquo;</dt>
  36484. <dd><p>Use single histogram for all channels.
  36485. </p></dd>
  36486. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  36487. <dd><p>Use separate histogram for each channel.
  36488. </p></dd>
  36489. </dl>
  36490. <p>Default is <code>single</code>.
  36491. </p>
  36492. </dd>
  36493. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36494. <dd><p>Set frame rate, expressed as number of frames per second. Default
  36495. value is &quot;25&quot;.
  36496. </p>
  36497. </dd>
  36498. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36499. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  36500. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36501. Default value is <code>hd720</code>.
  36502. </p>
  36503. </dd>
  36504. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36505. <dd><p>Set display scale.
  36506. </p>
  36507. <p>It accepts the following values:
  36508. </p><dl compact="compact">
  36509. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36510. <dd><p>logarithmic
  36511. </p></dd>
  36512. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  36513. <dd><p>square root
  36514. </p></dd>
  36515. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  36516. <dd><p>cubic root
  36517. </p></dd>
  36518. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36519. <dd><p>linear
  36520. </p></dd>
  36521. <dt>&lsquo;<samp>rlog</samp>&rsquo;</dt>
  36522. <dd><p>reverse logarithmic
  36523. </p></dd>
  36524. </dl>
  36525. <p>Default is <code>log</code>.
  36526. </p>
  36527. </dd>
  36528. <dt>&lsquo;<samp>ascale</samp>&rsquo;</dt>
  36529. <dd><p>Set amplitude scale.
  36530. </p>
  36531. <p>It accepts the following values:
  36532. </p><dl compact="compact">
  36533. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36534. <dd><p>logarithmic
  36535. </p></dd>
  36536. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36537. <dd><p>linear
  36538. </p></dd>
  36539. </dl>
  36540. <p>Default is <code>log</code>.
  36541. </p>
  36542. </dd>
  36543. <dt>&lsquo;<samp>acount</samp>&rsquo;</dt>
  36544. <dd><p>Set how much frames to accumulate in histogram.
  36545. Default is 1. Setting this to -1 accumulates all frames.
  36546. </p>
  36547. </dd>
  36548. <dt>&lsquo;<samp>rheight</samp>&rsquo;</dt>
  36549. <dd><p>Set histogram ratio of window height.
  36550. </p>
  36551. </dd>
  36552. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  36553. <dd><p>Set sonogram sliding.
  36554. </p>
  36555. <p>It accepts the following values:
  36556. </p><dl compact="compact">
  36557. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  36558. <dd><p>replace old rows with new ones.
  36559. </p></dd>
  36560. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  36561. <dd><p>scroll from top to bottom.
  36562. </p></dd>
  36563. </dl>
  36564. <p>Default is <code>replace</code>.
  36565. </p></dd>
  36566. </dl>
  36567. <a name="aphasemeter"></a>
  36568. <h2 class="section"><a href="ffprobe-all.html#toc-aphasemeter">37.5 aphasemeter</a></h2>
  36569. <p>Measures phase of input audio, which is exported as metadata <code>lavfi.aphasemeter.phase</code>,
  36570. representing mean phase of current audio frame. A video output can also be produced and is
  36571. enabled by default. The audio is passed through as first output.
  36572. </p>
  36573. <p>Audio will be rematrixed to stereo if it has a different channel layout. Phase value is in
  36574. range <code>[-1, 1]</code> where <code>-1</code> means left and right channels are completely out of phase
  36575. and <code>1</code> means channels are in phase.
  36576. </p>
  36577. <p>The filter accepts the following options, all related to its video output:
  36578. </p>
  36579. <dl compact="compact">
  36580. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36581. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  36582. </p>
  36583. </dd>
  36584. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36585. <dd><p>Set the video size for the output. For the syntax of this option, check the
  36586. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36587. Default value is <code>800x400</code>.
  36588. </p>
  36589. </dd>
  36590. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  36591. <dt>&lsquo;<samp>gc</samp>&rsquo;</dt>
  36592. <dt>&lsquo;<samp>bc</samp>&rsquo;</dt>
  36593. <dd><p>Specify the red, green, blue contrast. Default values are <code>2</code>,
  36594. <code>7</code> and <code>1</code>.
  36595. Allowed range is <code>[0, 255]</code>.
  36596. </p>
  36597. </dd>
  36598. <dt>&lsquo;<samp>mpc</samp>&rsquo;</dt>
  36599. <dd><p>Set color which will be used for drawing median phase. If color is
  36600. <code>none</code> which is default, no median phase value will be drawn.
  36601. </p>
  36602. </dd>
  36603. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  36604. <dd><p>Enable video output. Default is enabled.
  36605. </p></dd>
  36606. </dl>
  36607. <a name="avectorscope"></a>
  36608. <h2 class="section"><a href="ffprobe-all.html#toc-avectorscope">37.6 avectorscope</a></h2>
  36609. <p>Convert input audio to a video output, representing the audio vector
  36610. scope.
  36611. </p>
  36612. <p>The filter is used to measure the difference between channels of stereo
  36613. audio stream. A monaural signal, consisting of identical left and right
  36614. signal, results in straight vertical line. Any stereo separation is visible
  36615. as a deviation from this line, creating a Lissajous figure.
  36616. If the straight (or deviation from it) but horizontal line appears this
  36617. indicates that the left and right channels are out of phase.
  36618. </p>
  36619. <p>The filter accepts the following options:
  36620. </p>
  36621. <dl compact="compact">
  36622. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  36623. <dd><p>Set the vectorscope mode.
  36624. </p>
  36625. <p>Available values are:
  36626. </p><dl compact="compact">
  36627. <dt>&lsquo;<samp>lissajous</samp>&rsquo;</dt>
  36628. <dd><p>Lissajous rotated by 45 degrees.
  36629. </p>
  36630. </dd>
  36631. <dt>&lsquo;<samp>lissajous_xy</samp>&rsquo;</dt>
  36632. <dd><p>Same as above but not rotated.
  36633. </p>
  36634. </dd>
  36635. <dt>&lsquo;<samp>polar</samp>&rsquo;</dt>
  36636. <dd><p>Shape resembling half of circle.
  36637. </p></dd>
  36638. </dl>
  36639. <p>Default value is &lsquo;<samp>lissajous</samp>&rsquo;.
  36640. </p>
  36641. </dd>
  36642. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36643. <dd><p>Set the video size for the output. For the syntax of this option, check the
  36644. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36645. Default value is <code>400x400</code>.
  36646. </p>
  36647. </dd>
  36648. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36649. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  36650. </p>
  36651. </dd>
  36652. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  36653. <dt>&lsquo;<samp>gc</samp>&rsquo;</dt>
  36654. <dt>&lsquo;<samp>bc</samp>&rsquo;</dt>
  36655. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  36656. <dd><p>Specify the red, green, blue and alpha contrast. Default values are <code>40</code>,
  36657. <code>160</code>, <code>80</code> and <code>255</code>.
  36658. Allowed range is <code>[0, 255]</code>.
  36659. </p>
  36660. </dd>
  36661. <dt>&lsquo;<samp>rf</samp>&rsquo;</dt>
  36662. <dt>&lsquo;<samp>gf</samp>&rsquo;</dt>
  36663. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  36664. <dt>&lsquo;<samp>af</samp>&rsquo;</dt>
  36665. <dd><p>Specify the red, green, blue and alpha fade. Default values are <code>15</code>,
  36666. <code>10</code>, <code>5</code> and <code>5</code>.
  36667. Allowed range is <code>[0, 255]</code>.
  36668. </p>
  36669. </dd>
  36670. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  36671. <dd><p>Set the zoom factor. Default value is <code>1</code>. Allowed range is <code>[0, 10]</code>.
  36672. Values lower than <var>1</var> will auto adjust zoom factor to maximal possible value.
  36673. </p>
  36674. </dd>
  36675. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  36676. <dd><p>Set the vectorscope drawing mode.
  36677. </p>
  36678. <p>Available values are:
  36679. </p><dl compact="compact">
  36680. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  36681. <dd><p>Draw dot for each sample.
  36682. </p>
  36683. </dd>
  36684. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  36685. <dd><p>Draw line between previous and current sample.
  36686. </p></dd>
  36687. </dl>
  36688. <p>Default value is &lsquo;<samp>dot</samp>&rsquo;.
  36689. </p>
  36690. </dd>
  36691. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36692. <dd><p>Specify amplitude scale of audio samples.
  36693. </p>
  36694. <p>Available values are:
  36695. </p><dl compact="compact">
  36696. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36697. <dd><p>Linear.
  36698. </p>
  36699. </dd>
  36700. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  36701. <dd><p>Square root.
  36702. </p>
  36703. </dd>
  36704. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  36705. <dd><p>Cubic root.
  36706. </p>
  36707. </dd>
  36708. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36709. <dd><p>Logarithmic.
  36710. </p></dd>
  36711. </dl>
  36712. </dd>
  36713. <dt>&lsquo;<samp>swap</samp>&rsquo;</dt>
  36714. <dd><p>Swap left channel axis with right channel axis.
  36715. </p>
  36716. </dd>
  36717. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  36718. <dd><p>Mirror axis.
  36719. </p>
  36720. <dl compact="compact">
  36721. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  36722. <dd><p>No mirror.
  36723. </p>
  36724. </dd>
  36725. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  36726. <dd><p>Mirror only x axis.
  36727. </p>
  36728. </dd>
  36729. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  36730. <dd><p>Mirror only y axis.
  36731. </p>
  36732. </dd>
  36733. <dt>&lsquo;<samp>xy</samp>&rsquo;</dt>
  36734. <dd><p>Mirror both axis.
  36735. </p></dd>
  36736. </dl>
  36737. </dd>
  36738. </dl>
  36739. <a name="Examples-15"></a>
  36740. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-15">37.6.1 Examples</a></h3>
  36741. <ul>
  36742. <li>
  36743. Complete example using <code>ffplay</code>:
  36744. <div class="example">
  36745. <pre class="example">ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
  36746. [a] avectorscope=zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7 [out0]'
  36747. </pre></div>
  36748. </li></ul>
  36749. <a name="bench_002c-abench"></a>
  36750. <h2 class="section"><a href="ffprobe-all.html#toc-bench_002c-abench">37.7 bench, abench</a></h2>
  36751. <p>Benchmark part of a filtergraph.
  36752. </p>
  36753. <p>The filter accepts the following options:
  36754. </p>
  36755. <dl compact="compact">
  36756. <dt>&lsquo;<samp>action</samp>&rsquo;</dt>
  36757. <dd><p>Start or stop a timer.
  36758. </p>
  36759. <p>Available values are:
  36760. </p><dl compact="compact">
  36761. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  36762. <dd><p>Get the current time, set it as frame metadata (using the key
  36763. <code>lavfi.bench.start_time</code>), and forward the frame to the next filter.
  36764. </p>
  36765. </dd>
  36766. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  36767. <dd><p>Get the current time and fetch the <code>lavfi.bench.start_time</code> metadata from
  36768. the input frame metadata to get the time difference. Time difference, average,
  36769. maximum and minimum time (respectively <code>t</code>, <code>avg</code>, <code>max</code> and
  36770. <code>min</code>) are then printed. The timestamps are expressed in seconds.
  36771. </p></dd>
  36772. </dl>
  36773. </dd>
  36774. </dl>
  36775. <a name="Examples-130"></a>
  36776. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-130">37.7.1 Examples</a></h3>
  36777. <ul>
  36778. <li>
  36779. Benchmark <a href="#selectivecolor">selectivecolor</a> filter:
  36780. <div class="example">
  36781. <pre class="example">bench=start,selectivecolor=reds=-.2 .12 -.49,bench=stop
  36782. </pre></div>
  36783. </li></ul>
  36784. <a name="concat-3"></a>
  36785. <h2 class="section"><a href="ffprobe-all.html#toc-concat-3">37.8 concat</a></h2>
  36786. <p>Concatenate audio and video streams, joining them together one after the
  36787. other.
  36788. </p>
  36789. <p>The filter works on segments of synchronized video and audio streams. All
  36790. segments must have the same number of streams of each type, and that will
  36791. also be the number of streams at output.
  36792. </p>
  36793. <p>The filter accepts the following options:
  36794. </p>
  36795. <dl compact="compact">
  36796. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  36797. <dd><p>Set the number of segments. Default is 2.
  36798. </p>
  36799. </dd>
  36800. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  36801. <dd><p>Set the number of output video streams, that is also the number of video
  36802. streams in each segment. Default is 1.
  36803. </p>
  36804. </dd>
  36805. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  36806. <dd><p>Set the number of output audio streams, that is also the number of audio
  36807. streams in each segment. Default is 0.
  36808. </p>
  36809. </dd>
  36810. <dt>&lsquo;<samp>unsafe</samp>&rsquo;</dt>
  36811. <dd><p>Activate unsafe mode: do not fail if segments have a different format.
  36812. </p>
  36813. </dd>
  36814. </dl>
  36815. <p>The filter has <var>v</var>+<var>a</var> outputs: first <var>v</var> video outputs, then
  36816. <var>a</var> audio outputs.
  36817. </p>
  36818. <p>There are <var>n</var>x(<var>v</var>+<var>a</var>) inputs: first the inputs for the first
  36819. segment, in the same order as the outputs, then the inputs for the second
  36820. segment, etc.
  36821. </p>
  36822. <p>Related streams do not always have exactly the same duration, for various
  36823. reasons including codec frame size or sloppy authoring. For that reason,
  36824. related synchronized streams (e.g. a video and its audio track) should be
  36825. concatenated at once. The concat filter will use the duration of the longest
  36826. stream in each segment (except the last one), and if necessary pad shorter
  36827. audio streams with silence.
  36828. </p>
  36829. <p>For this filter to work correctly, all segments must start at timestamp 0.
  36830. </p>
  36831. <p>All corresponding streams must have the same parameters in all segments; the
  36832. filtering system will automatically select a common pixel format for video
  36833. streams, and a common sample format, sample rate and channel layout for
  36834. audio streams, but other settings, such as resolution, must be converted
  36835. explicitly by the user.
  36836. </p>
  36837. <p>Different frame rates are acceptable but will result in variable frame rate
  36838. at output; be sure to configure the output file to handle it.
  36839. </p>
  36840. <a name="Examples-65"></a>
  36841. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-65">37.8.1 Examples</a></h3>
  36842. <ul>
  36843. <li>
  36844. Concatenate an opening, an episode and an ending, all in bilingual version
  36845. (video in stream 0, audio in streams 1 and 2):
  36846. <div class="example">
  36847. <pre class="example">ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv -filter_complex \
  36848. '[0:0] [0:1] [0:2] [1:0] [1:1] [1:2] [2:0] [2:1] [2:2]
  36849. concat=n=3:v=1:a=2 [v] [a1] [a2]' \
  36850. -map '[v]' -map '[a1]' -map '[a2]' output.mkv
  36851. </pre></div>
  36852. </li><li>
  36853. Concatenate two parts, handling audio and video separately, using the
  36854. (a)movie sources, and adjusting the resolution:
  36855. <div class="example">
  36856. <pre class="example">movie=part1.mp4, scale=512:288 [v1] ; amovie=part1.mp4 [a1] ;
  36857. movie=part2.mp4, scale=512:288 [v2] ; amovie=part2.mp4 [a2] ;
  36858. [v1] [v2] concat [outv] ; [a1] [a2] concat=v=0:a=1 [outa]
  36859. </pre></div>
  36860. <p>Note that a desync will happen at the stitch if the audio and video streams
  36861. do not have exactly the same duration in the first file.
  36862. </p>
  36863. </li></ul>
  36864. <a name="Commands-21"></a>
  36865. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-21">37.8.2 Commands</a></h3>
  36866. <p>This filter supports the following commands:
  36867. </p><dl compact="compact">
  36868. <dt>&lsquo;<samp>next</samp>&rsquo;</dt>
  36869. <dd><p>Close the current segment and step to the next one
  36870. </p></dd>
  36871. </dl>
  36872. <p><a name="ebur128"></a>
  36873. </p><a name="ebur128-1"></a>
  36874. <h2 class="section"><a href="ffprobe-all.html#toc-ebur128-1">37.9 ebur128</a></h2>
  36875. <p>EBU R128 scanner filter. This filter takes an audio stream and analyzes its loudness
  36876. level. By default, it logs a message at a frequency of 10Hz with the
  36877. Momentary loudness (identified by <code>M</code>), Short-term loudness (<code>S</code>),
  36878. Integrated loudness (<code>I</code>) and Loudness Range (<code>LRA</code>).
  36879. </p>
  36880. <p>The filter can only analyze streams which have a sampling rate of 48000 Hz and whose
  36881. sample format is double-precision floating point. The input stream will be converted to
  36882. this specification, if needed. Users may need to insert aformat and/or aresample filters
  36883. after this filter to obtain the original parameters.
  36884. </p>
  36885. <p>The filter also has a video output (see the <var>video</var> option) with a real
  36886. time graph to observe the loudness evolution. The graphic contains the logged
  36887. message mentioned above, so it is not printed anymore when this option is set,
  36888. unless the verbose logging is set. The main graphing area contains the
  36889. short-term loudness (3 seconds of analysis), and the gauge on the right is for
  36890. the momentary loudness (400 milliseconds), but can optionally be configured
  36891. to instead display short-term loudness (see <var>gauge</var>).
  36892. </p>
  36893. <p>The green area marks a +/- 1LU target range around the target loudness
  36894. (-23LUFS by default, unless modified through <var>target</var>).
  36895. </p>
  36896. <p>More information about the Loudness Recommendation EBU R128 on
  36897. <a href="http://tech.ebu.ch/loudness">http://tech.ebu.ch/loudness</a>.
  36898. </p>
  36899. <p>The filter accepts the following options:
  36900. </p>
  36901. <dl compact="compact">
  36902. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  36903. <dd><p>Activate the video output. The audio stream is passed unchanged whether this
  36904. option is set or no. The video stream will be the first output stream if
  36905. activated. Default is <code>0</code>.
  36906. </p>
  36907. </dd>
  36908. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  36909. <dd><p>Set the video size. This option is for video only. For the syntax of this
  36910. option, check the
  36911. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36912. Default and minimum resolution is <code>640x480</code>.
  36913. </p>
  36914. </dd>
  36915. <dt>&lsquo;<samp>meter</samp>&rsquo;</dt>
  36916. <dd><p>Set the EBU scale meter. Default is <code>9</code>. Common values are <code>9</code> and
  36917. <code>18</code>, respectively for EBU scale meter +9 and EBU scale meter +18. Any
  36918. other integer value between this range is allowed.
  36919. </p>
  36920. </dd>
  36921. <dt>&lsquo;<samp>metadata</samp>&rsquo;</dt>
  36922. <dd><p>Set metadata injection. If set to <code>1</code>, the audio input will be segmented
  36923. into 100ms output frames, each of them containing various loudness information
  36924. in metadata. All the metadata keys are prefixed with <code>lavfi.r128.</code>.
  36925. </p>
  36926. <p>Default is <code>0</code>.
  36927. </p>
  36928. </dd>
  36929. <dt>&lsquo;<samp>framelog</samp>&rsquo;</dt>
  36930. <dd><p>Force the frame logging level.
  36931. </p>
  36932. <p>Available values are:
  36933. </p><dl compact="compact">
  36934. <dt>&lsquo;<samp>info</samp>&rsquo;</dt>
  36935. <dd><p>information logging level
  36936. </p></dd>
  36937. <dt>&lsquo;<samp>verbose</samp>&rsquo;</dt>
  36938. <dd><p>verbose logging level
  36939. </p></dd>
  36940. </dl>
  36941. <p>By default, the logging level is set to <var>info</var>. If the &lsquo;<samp>video</samp>&rsquo; or
  36942. the &lsquo;<samp>metadata</samp>&rsquo; options are set, it switches to <var>verbose</var>.
  36943. </p>
  36944. </dd>
  36945. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  36946. <dd><p>Set peak mode(s).
  36947. </p>
  36948. <p>Available modes can be cumulated (the option is a <code>flag</code> type). Possible
  36949. values are:
  36950. </p><dl compact="compact">
  36951. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  36952. <dd><p>Disable any peak mode (default).
  36953. </p></dd>
  36954. <dt>&lsquo;<samp>sample</samp>&rsquo;</dt>
  36955. <dd><p>Enable sample-peak mode.
  36956. </p>
  36957. <p>Simple peak mode looking for the higher sample value. It logs a message
  36958. for sample-peak (identified by <code>SPK</code>).
  36959. </p></dd>
  36960. <dt>&lsquo;<samp>true</samp>&rsquo;</dt>
  36961. <dd><p>Enable true-peak mode.
  36962. </p>
  36963. <p>If enabled, the peak lookup is done on an over-sampled version of the input
  36964. stream for better peak accuracy. It logs a message for true-peak.
  36965. (identified by <code>TPK</code>) and true-peak per frame (identified by <code>FTPK</code>).
  36966. This mode requires a build with <code>libswresample</code>.
  36967. </p></dd>
  36968. </dl>
  36969. </dd>
  36970. <dt>&lsquo;<samp>dualmono</samp>&rsquo;</dt>
  36971. <dd><p>Treat mono input files as &quot;dual mono&quot;. If a mono file is intended for playback
  36972. on a stereo system, its EBU R128 measurement will be perceptually incorrect.
  36973. If set to <code>true</code>, this option will compensate for this effect.
  36974. Multi-channel input files are not affected by this option.
  36975. </p>
  36976. </dd>
  36977. <dt>&lsquo;<samp>panlaw</samp>&rsquo;</dt>
  36978. <dd><p>Set a specific pan law to be used for the measurement of dual mono files.
  36979. This parameter is optional, and has a default value of -3.01dB.
  36980. </p>
  36981. </dd>
  36982. <dt>&lsquo;<samp>target</samp>&rsquo;</dt>
  36983. <dd><p>Set a specific target level (in LUFS) used as relative zero in the visualization.
  36984. This parameter is optional and has a default value of -23LUFS as specified
  36985. by EBU R128. However, material published online may prefer a level of -16LUFS
  36986. (e.g. for use with podcasts or video platforms).
  36987. </p>
  36988. </dd>
  36989. <dt>&lsquo;<samp>gauge</samp>&rsquo;</dt>
  36990. <dd><p>Set the value displayed by the gauge. Valid values are <code>momentary</code> and s
  36991. <code>shortterm</code>. By default the momentary value will be used, but in certain
  36992. scenarios it may be more useful to observe the short term value instead (e.g.
  36993. live mixing).
  36994. </p>
  36995. </dd>
  36996. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36997. <dd><p>Sets the display scale for the loudness. Valid parameters are <code>absolute</code>
  36998. (in LUFS) or <code>relative</code> (LU) relative to the target. This only affects the
  36999. video output, not the summary or continuous log output.
  37000. </p></dd>
  37001. </dl>
  37002. <a name="Examples-54"></a>
  37003. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-54">37.9.1 Examples</a></h3>
  37004. <ul>
  37005. <li>
  37006. Real-time graph using <code>ffplay</code>, with a EBU scale meter +18:
  37007. <div class="example">
  37008. <pre class="example">ffplay -f lavfi -i &quot;amovie=input.mp3,ebur128=video=1:meter=18 [out0][out1]&quot;
  37009. </pre></div>
  37010. </li><li>
  37011. Run an analysis with <code>ffmpeg</code>:
  37012. <div class="example">
  37013. <pre class="example">ffmpeg -nostats -i input.mp3 -filter_complex ebur128 -f null -
  37014. </pre></div>
  37015. </li></ul>
  37016. <a name="interleave_002c-ainterleave"></a>
  37017. <h2 class="section"><a href="ffprobe-all.html#toc-interleave_002c-ainterleave">37.10 interleave, ainterleave</a></h2>
  37018. <p>Temporally interleave frames from several inputs.
  37019. </p>
  37020. <p><code>interleave</code> works with video inputs, <code>ainterleave</code> with audio.
  37021. </p>
  37022. <p>These filters read frames from several inputs and send the oldest
  37023. queued frame to the output.
  37024. </p>
  37025. <p>Input streams must have well defined, monotonically increasing frame
  37026. timestamp values.
  37027. </p>
  37028. <p>In order to submit one frame to output, these filters need to enqueue
  37029. at least one frame for each input, so they cannot work in case one
  37030. input is not yet terminated and will not receive incoming frames.
  37031. </p>
  37032. <p>For example consider the case when one input is a <code>select</code> filter
  37033. which always drops input frames. The <code>interleave</code> filter will keep
  37034. reading from that input, but it will never be able to send new frames
  37035. to output until the input sends an end-of-stream signal.
  37036. </p>
  37037. <p>Also, depending on inputs synchronization, the filters will drop
  37038. frames in case one input receives more frames than the other ones, and
  37039. the queue is already filled.
  37040. </p>
  37041. <p>These filters accept the following options:
  37042. </p>
  37043. <dl compact="compact">
  37044. <dt>&lsquo;<samp>nb_inputs, n</samp>&rsquo;</dt>
  37045. <dd><p>Set the number of different inputs, it is 2 by default.
  37046. </p>
  37047. </dd>
  37048. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  37049. <dd><p>How to determine the end-of-stream.
  37050. </p>
  37051. <dl compact="compact">
  37052. <dt>&lsquo;<samp>longest</samp>&rsquo;</dt>
  37053. <dd><p>The duration of the longest input. (default)
  37054. </p>
  37055. </dd>
  37056. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  37057. <dd><p>The duration of the shortest input.
  37058. </p>
  37059. </dd>
  37060. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  37061. <dd><p>The duration of the first input.
  37062. </p></dd>
  37063. </dl>
  37064. </dd>
  37065. </dl>
  37066. <a name="Examples-85"></a>
  37067. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-85">37.10.1 Examples</a></h3>
  37068. <ul>
  37069. <li>
  37070. Interleave frames belonging to different streams using <code>ffmpeg</code>:
  37071. <div class="example">
  37072. <pre class="example">ffmpeg -i bambi.avi -i pr0n.mkv -filter_complex &quot;[0:v][1:v] interleave&quot; out.avi
  37073. </pre></div>
  37074. </li><li>
  37075. Add flickering blur effect:
  37076. <div class="example">
  37077. <pre class="example">select='if(gt(random(0), 0.2), 1, 2)':n=2 [tmp], boxblur=2:2, [tmp] interleave
  37078. </pre></div>
  37079. </li></ul>
  37080. <a name="metadata_002c-ametadata"></a>
  37081. <h2 class="section"><a href="ffprobe-all.html#toc-metadata_002c-ametadata">37.11 metadata, ametadata</a></h2>
  37082. <p>Manipulate frame metadata.
  37083. </p>
  37084. <p>This filter accepts the following options:
  37085. </p>
  37086. <dl compact="compact">
  37087. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  37088. <dd><p>Set mode of operation of the filter.
  37089. </p>
  37090. <p>Can be one of the following:
  37091. </p>
  37092. <dl compact="compact">
  37093. <dt>&lsquo;<samp>select</samp>&rsquo;</dt>
  37094. <dd><p>If both <code>value</code> and <code>key</code> is set, select frames
  37095. which have such metadata. If only <code>key</code> is set, select
  37096. every frame that has such key in metadata.
  37097. </p>
  37098. </dd>
  37099. <dt>&lsquo;<samp>add</samp>&rsquo;</dt>
  37100. <dd><p>Add new metadata <code>key</code> and <code>value</code>. If key is already available
  37101. do nothing.
  37102. </p>
  37103. </dd>
  37104. <dt>&lsquo;<samp>modify</samp>&rsquo;</dt>
  37105. <dd><p>Modify value of already present key.
  37106. </p>
  37107. </dd>
  37108. <dt>&lsquo;<samp>delete</samp>&rsquo;</dt>
  37109. <dd><p>If <code>value</code> is set, delete only keys that have such value.
  37110. Otherwise, delete key. If <code>key</code> is not set, delete all metadata values in
  37111. the frame.
  37112. </p>
  37113. </dd>
  37114. <dt>&lsquo;<samp>print</samp>&rsquo;</dt>
  37115. <dd><p>Print key and its value if metadata was found. If <code>key</code> is not set print all
  37116. metadata values available in frame.
  37117. </p></dd>
  37118. </dl>
  37119. </dd>
  37120. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  37121. <dd><p>Set key used with all modes. Must be set for all modes except <code>print</code> and <code>delete</code>.
  37122. </p>
  37123. </dd>
  37124. <dt>&lsquo;<samp>value</samp>&rsquo;</dt>
  37125. <dd><p>Set metadata value which will be used. This option is mandatory for
  37126. <code>modify</code> and <code>add</code> mode.
  37127. </p>
  37128. </dd>
  37129. <dt>&lsquo;<samp>function</samp>&rsquo;</dt>
  37130. <dd><p>Which function to use when comparing metadata value and <code>value</code>.
  37131. </p>
  37132. <p>Can be one of following:
  37133. </p>
  37134. <dl compact="compact">
  37135. <dt>&lsquo;<samp>same_str</samp>&rsquo;</dt>
  37136. <dd><p>Values are interpreted as strings, returns true if metadata value is same as <code>value</code>.
  37137. </p>
  37138. </dd>
  37139. <dt>&lsquo;<samp>starts_with</samp>&rsquo;</dt>
  37140. <dd><p>Values are interpreted as strings, returns true if metadata value starts with
  37141. the <code>value</code> option string.
  37142. </p>
  37143. </dd>
  37144. <dt>&lsquo;<samp>less</samp>&rsquo;</dt>
  37145. <dd><p>Values are interpreted as floats, returns true if metadata value is less than <code>value</code>.
  37146. </p>
  37147. </dd>
  37148. <dt>&lsquo;<samp>equal</samp>&rsquo;</dt>
  37149. <dd><p>Values are interpreted as floats, returns true if <code>value</code> is equal with metadata value.
  37150. </p>
  37151. </dd>
  37152. <dt>&lsquo;<samp>greater</samp>&rsquo;</dt>
  37153. <dd><p>Values are interpreted as floats, returns true if metadata value is greater than <code>value</code>.
  37154. </p>
  37155. </dd>
  37156. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37157. <dd><p>Values are interpreted as floats, returns true if expression from option <code>expr</code>
  37158. evaluates to true.
  37159. </p>
  37160. </dd>
  37161. <dt>&lsquo;<samp>ends_with</samp>&rsquo;</dt>
  37162. <dd><p>Values are interpreted as strings, returns true if metadata value ends with
  37163. the <code>value</code> option string.
  37164. </p></dd>
  37165. </dl>
  37166. </dd>
  37167. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37168. <dd><p>Set expression which is used when <code>function</code> is set to <code>expr</code>.
  37169. The expression is evaluated through the eval API and can contain the following
  37170. constants:
  37171. </p>
  37172. <dl compact="compact">
  37173. <dt>&lsquo;<samp>VALUE1</samp>&rsquo;</dt>
  37174. <dd><p>Float representation of <code>value</code> from metadata key.
  37175. </p>
  37176. </dd>
  37177. <dt>&lsquo;<samp>VALUE2</samp>&rsquo;</dt>
  37178. <dd><p>Float representation of <code>value</code> as supplied by user in <code>value</code> option.
  37179. </p></dd>
  37180. </dl>
  37181. </dd>
  37182. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  37183. <dd><p>If specified in <code>print</code> mode, output is written to the named file. Instead of
  37184. plain filename any writable url can be specified. Filename &ldquo;-&rdquo; is a shorthand
  37185. for standard output. If <code>file</code> option is not set, output is written to the log
  37186. with AV_LOG_INFO loglevel.
  37187. </p>
  37188. </dd>
  37189. <dt>&lsquo;<samp>direct</samp>&rsquo;</dt>
  37190. <dd><p>Reduces buffering in print mode when output is written to a URL set using <var>file</var>.
  37191. </p>
  37192. </dd>
  37193. </dl>
  37194. <a name="Examples-115"></a>
  37195. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-115">37.11.1 Examples</a></h3>
  37196. <ul>
  37197. <li>
  37198. Print all metadata values for frames with key <code>lavfi.signalstats.YDIF</code> with values
  37199. between 0 and 1.
  37200. <div class="example">
  37201. <pre class="example">signalstats,metadata=print:key=lavfi.signalstats.YDIF:value=0:function=expr:expr='between(VALUE1,0,1)'
  37202. </pre></div>
  37203. </li><li>
  37204. Print silencedetect output to file &lsquo;<tt>metadata.txt</tt>&rsquo;.
  37205. <div class="example">
  37206. <pre class="example">silencedetect,ametadata=mode=print:file=metadata.txt
  37207. </pre></div>
  37208. </li><li>
  37209. Direct all metadata to a pipe with file descriptor 4.
  37210. <div class="example">
  37211. <pre class="example">metadata=mode=print:file='pipe\:4'
  37212. </pre></div>
  37213. </li></ul>
  37214. <a name="perms_002c-aperms"></a>
  37215. <h2 class="section"><a href="ffprobe-all.html#toc-perms_002c-aperms">37.12 perms, aperms</a></h2>
  37216. <p>Set read/write permissions for the output frames.
  37217. </p>
  37218. <p>These filters are mainly aimed at developers to test direct path in the
  37219. following filter in the filtergraph.
  37220. </p>
  37221. <p>The filters accept the following options:
  37222. </p>
  37223. <dl compact="compact">
  37224. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  37225. <dd><p>Select the permissions mode.
  37226. </p>
  37227. <p>It accepts the following values:
  37228. </p><dl compact="compact">
  37229. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  37230. <dd><p>Do nothing. This is the default.
  37231. </p></dd>
  37232. <dt>&lsquo;<samp>ro</samp>&rsquo;</dt>
  37233. <dd><p>Set all the output frames read-only.
  37234. </p></dd>
  37235. <dt>&lsquo;<samp>rw</samp>&rsquo;</dt>
  37236. <dd><p>Set all the output frames directly writable.
  37237. </p></dd>
  37238. <dt>&lsquo;<samp>toggle</samp>&rsquo;</dt>
  37239. <dd><p>Make the frame read-only if writable, and writable if read-only.
  37240. </p></dd>
  37241. <dt>&lsquo;<samp>random</samp>&rsquo;</dt>
  37242. <dd><p>Set each output frame read-only or writable randomly.
  37243. </p></dd>
  37244. </dl>
  37245. </dd>
  37246. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  37247. <dd><p>Set the seed for the <var>random</var> mode, must be an integer included between
  37248. <code>0</code> and <code>UINT32_MAX</code>. If not specified, or if explicitly set to
  37249. <code>-1</code>, the filter will try to use a good random seed on a best effort
  37250. basis.
  37251. </p></dd>
  37252. </dl>
  37253. <p>Note: in case of auto-inserted filter between the permission filter and the
  37254. following one, the permission might not be received as expected in that
  37255. following filter. Inserting a <a href="#format">format</a> or <a href="#aformat">aformat</a> filter before the
  37256. perms/aperms filter can avoid this problem.
  37257. </p>
  37258. <a name="realtime_002c-arealtime"></a>
  37259. <h2 class="section"><a href="ffprobe-all.html#toc-realtime_002c-arealtime">37.13 realtime, arealtime</a></h2>
  37260. <p>Slow down filtering to match real time approximately.
  37261. </p>
  37262. <p>These filters will pause the filtering for a variable amount of time to
  37263. match the output rate with the input timestamps.
  37264. They are similar to the &lsquo;<samp>re</samp>&rsquo; option to <code>ffmpeg</code>.
  37265. </p>
  37266. <p>They accept the following options:
  37267. </p>
  37268. <dl compact="compact">
  37269. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  37270. <dd><p>Time limit for the pauses. Any pause longer than that will be considered
  37271. a timestamp discontinuity and reset the timer. Default is 2 seconds.
  37272. </p></dd>
  37273. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  37274. <dd><p>Speed factor for processing. The value must be a float larger than zero.
  37275. Values larger than 1.0 will result in faster than realtime processing,
  37276. smaller will slow processing down. The <var>limit</var> is automatically adapted
  37277. accordingly. Default is 1.0.
  37278. </p>
  37279. <p>A processing speed faster than what is possible without these filters cannot
  37280. be achieved.
  37281. </p></dd>
  37282. </dl>
  37283. <p><a name="select"></a>
  37284. </p><a name="select_002c-aselect"></a>
  37285. <h2 class="section"><a href="ffprobe-all.html#toc-select_002c-aselect">37.14 select, aselect</a></h2>
  37286. <p>Select frames to pass in output.
  37287. </p>
  37288. <p>This filter accepts the following options:
  37289. </p>
  37290. <dl compact="compact">
  37291. <dt>&lsquo;<samp>expr, e</samp>&rsquo;</dt>
  37292. <dd><p>Set expression, which is evaluated for each input frame.
  37293. </p>
  37294. <p>If the expression is evaluated to zero, the frame is discarded.
  37295. </p>
  37296. <p>If the evaluation result is negative or NaN, the frame is sent to the
  37297. first output; otherwise it is sent to the output with index
  37298. <code>ceil(val)-1</code>, assuming that the input index starts from 0.
  37299. </p>
  37300. <p>For example a value of <code>1.2</code> corresponds to the output with index
  37301. <code>ceil(1.2)-1 = 2-1 = 1</code>, that is the second output.
  37302. </p>
  37303. </dd>
  37304. <dt>&lsquo;<samp>outputs, n</samp>&rsquo;</dt>
  37305. <dd><p>Set the number of outputs. The output to which to send the selected
  37306. frame is based on the result of the evaluation. Default value is 1.
  37307. </p></dd>
  37308. </dl>
  37309. <p>The expression can contain the following constants:
  37310. </p>
  37311. <dl compact="compact">
  37312. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  37313. <dd><p>The (sequential) number of the filtered frame, starting from 0.
  37314. </p>
  37315. </dd>
  37316. <dt>&lsquo;<samp>selected_n</samp>&rsquo;</dt>
  37317. <dd><p>The (sequential) number of the selected frame, starting from 0.
  37318. </p>
  37319. </dd>
  37320. <dt>&lsquo;<samp>prev_selected_n</samp>&rsquo;</dt>
  37321. <dd><p>The sequential number of the last selected frame. It&rsquo;s NAN if undefined.
  37322. </p>
  37323. </dd>
  37324. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  37325. <dd><p>The timebase of the input timestamps.
  37326. </p>
  37327. </dd>
  37328. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  37329. <dd><p>The PTS (Presentation TimeStamp) of the filtered video frame,
  37330. expressed in <var>TB</var> units. It&rsquo;s NAN if undefined.
  37331. </p>
  37332. </dd>
  37333. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  37334. <dd><p>The PTS of the filtered video frame,
  37335. expressed in seconds. It&rsquo;s NAN if undefined.
  37336. </p>
  37337. </dd>
  37338. <dt>&lsquo;<samp>prev_pts</samp>&rsquo;</dt>
  37339. <dd><p>The PTS of the previously filtered video frame. It&rsquo;s NAN if undefined.
  37340. </p>
  37341. </dd>
  37342. <dt>&lsquo;<samp>prev_selected_pts</samp>&rsquo;</dt>
  37343. <dd><p>The PTS of the last previously filtered video frame. It&rsquo;s NAN if undefined.
  37344. </p>
  37345. </dd>
  37346. <dt>&lsquo;<samp>prev_selected_t</samp>&rsquo;</dt>
  37347. <dd><p>The PTS of the last previously selected video frame, expressed in seconds. It&rsquo;s NAN if undefined.
  37348. </p>
  37349. </dd>
  37350. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  37351. <dd><p>The PTS of the first video frame in the video. It&rsquo;s NAN if undefined.
  37352. </p>
  37353. </dd>
  37354. <dt>&lsquo;<samp>start_t</samp>&rsquo;</dt>
  37355. <dd><p>The time of the first video frame in the video. It&rsquo;s NAN if undefined.
  37356. </p>
  37357. </dd>
  37358. <dt>&lsquo;<samp>pict_type <em>(video only)</em></samp>&rsquo;</dt>
  37359. <dd><p>The type of the filtered frame. It can assume one of the following
  37360. values:
  37361. </p><dl compact="compact">
  37362. <dt>&lsquo;<samp>I</samp>&rsquo;</dt>
  37363. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  37364. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  37365. <dt>&lsquo;<samp>S</samp>&rsquo;</dt>
  37366. <dt>&lsquo;<samp>SI</samp>&rsquo;</dt>
  37367. <dt>&lsquo;<samp>SP</samp>&rsquo;</dt>
  37368. <dt>&lsquo;<samp>BI</samp>&rsquo;</dt>
  37369. </dl>
  37370. </dd>
  37371. <dt>&lsquo;<samp>interlace_type <em>(video only)</em></samp>&rsquo;</dt>
  37372. <dd><p>The frame interlace type. It can assume one of the following values:
  37373. </p><dl compact="compact">
  37374. <dt>&lsquo;<samp>PROGRESSIVE</samp>&rsquo;</dt>
  37375. <dd><p>The frame is progressive (not interlaced).
  37376. </p></dd>
  37377. <dt>&lsquo;<samp>TOPFIRST</samp>&rsquo;</dt>
  37378. <dd><p>The frame is top-field-first.
  37379. </p></dd>
  37380. <dt>&lsquo;<samp>BOTTOMFIRST</samp>&rsquo;</dt>
  37381. <dd><p>The frame is bottom-field-first.
  37382. </p></dd>
  37383. </dl>
  37384. </dd>
  37385. <dt>&lsquo;<samp>consumed_sample_n <em>(audio only)</em></samp>&rsquo;</dt>
  37386. <dd><p>the number of selected samples before the current frame
  37387. </p>
  37388. </dd>
  37389. <dt>&lsquo;<samp>samples_n <em>(audio only)</em></samp>&rsquo;</dt>
  37390. <dd><p>the number of samples in the current frame
  37391. </p>
  37392. </dd>
  37393. <dt>&lsquo;<samp>sample_rate <em>(audio only)</em></samp>&rsquo;</dt>
  37394. <dd><p>the input sample rate
  37395. </p>
  37396. </dd>
  37397. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  37398. <dd><p>This is 1 if the filtered frame is a key-frame, 0 otherwise.
  37399. </p>
  37400. </dd>
  37401. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  37402. <dd><p>the position in the file of the filtered frame, -1 if the information
  37403. is not available (e.g. for synthetic video)
  37404. </p>
  37405. </dd>
  37406. <dt>&lsquo;<samp>scene <em>(video only)</em></samp>&rsquo;</dt>
  37407. <dd><p>value between 0 and 1 to indicate a new scene; a low value reflects a low
  37408. probability for the current frame to introduce a new scene, while a higher
  37409. value means the current frame is more likely to be one (see the example below)
  37410. </p>
  37411. </dd>
  37412. <dt>&lsquo;<samp>concatdec_select</samp>&rsquo;</dt>
  37413. <dd><p>The concat demuxer can select only part of a concat input file by setting an
  37414. inpoint and an outpoint, but the output packets may not be entirely contained
  37415. in the selected interval. By using this variable, it is possible to skip frames
  37416. generated by the concat demuxer which are not exactly contained in the selected
  37417. interval.
  37418. </p>
  37419. <p>This works by comparing the frame pts against the <var>lavf.concat.start_time</var>
  37420. and the <var>lavf.concat.duration</var> packet metadata values which are also
  37421. present in the decoded frames.
  37422. </p>
  37423. <p>The <var>concatdec_select</var> variable is -1 if the frame pts is at least
  37424. start_time and either the duration metadata is missing or the frame pts is less
  37425. than start_time + duration, 0 otherwise, and NaN if the start_time metadata is
  37426. missing.
  37427. </p>
  37428. <p>That basically means that an input frame is selected if its pts is within the
  37429. interval set by the concat demuxer.
  37430. </p>
  37431. </dd>
  37432. </dl>
  37433. <p>The default value of the select expression is &quot;1&quot;.
  37434. </p>
  37435. <a name="Examples-59"></a>
  37436. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-59">37.14.1 Examples</a></h3>
  37437. <ul>
  37438. <li>
  37439. Select all frames in input:
  37440. <div class="example">
  37441. <pre class="example">select
  37442. </pre></div>
  37443. <p>The example above is the same as:
  37444. </p><div class="example">
  37445. <pre class="example">select=1
  37446. </pre></div>
  37447. </li><li>
  37448. Skip all frames:
  37449. <div class="example">
  37450. <pre class="example">select=0
  37451. </pre></div>
  37452. </li><li>
  37453. Select only I-frames:
  37454. <div class="example">
  37455. <pre class="example">select='eq(pict_type\,I)'
  37456. </pre></div>
  37457. </li><li>
  37458. Select one frame every 100:
  37459. <div class="example">
  37460. <pre class="example">select='not(mod(n\,100))'
  37461. </pre></div>
  37462. </li><li>
  37463. Select only frames contained in the 10-20 time interval:
  37464. <div class="example">
  37465. <pre class="example">select=between(t\,10\,20)
  37466. </pre></div>
  37467. </li><li>
  37468. Select only I-frames contained in the 10-20 time interval:
  37469. <div class="example">
  37470. <pre class="example">select=between(t\,10\,20)*eq(pict_type\,I)
  37471. </pre></div>
  37472. </li><li>
  37473. Select frames with a minimum distance of 10 seconds:
  37474. <div class="example">
  37475. <pre class="example">select='isnan(prev_selected_t)+gte(t-prev_selected_t\,10)'
  37476. </pre></div>
  37477. </li><li>
  37478. Use aselect to select only audio frames with samples number &gt; 100:
  37479. <div class="example">
  37480. <pre class="example">aselect='gt(samples_n\,100)'
  37481. </pre></div>
  37482. </li><li>
  37483. Create a mosaic of the first scenes:
  37484. <div class="example">
  37485. <pre class="example">ffmpeg -i video.avi -vf select='gt(scene\,0.4)',scale=160:120,tile -frames:v 1 preview.png
  37486. </pre></div>
  37487. <p>Comparing <var>scene</var> against a value between 0.3 and 0.5 is generally a sane
  37488. choice.
  37489. </p>
  37490. </li><li>
  37491. Send even and odd frames to separate outputs, and compose them:
  37492. <div class="example">
  37493. <pre class="example">select=n=2:e='mod(n, 2)+1' [odd][even]; [odd] pad=h=2*ih [tmp]; [tmp][even] overlay=y=h
  37494. </pre></div>
  37495. </li><li>
  37496. Select useful frames from an ffconcat file which is using inpoints and
  37497. outpoints but where the source files are not intra frame only.
  37498. <div class="example">
  37499. <pre class="example">ffmpeg -copyts -vsync 0 -segment_time_metadata 1 -i input.ffconcat -vf select=concatdec_select -af aselect=concatdec_select output.avi
  37500. </pre></div>
  37501. </li></ul>
  37502. <a name="sendcmd_002c-asendcmd"></a>
  37503. <h2 class="section"><a href="ffprobe-all.html#toc-sendcmd_002c-asendcmd">37.15 sendcmd, asendcmd</a></h2>
  37504. <p>Send commands to filters in the filtergraph.
  37505. </p>
  37506. <p>These filters read commands to be sent to other filters in the
  37507. filtergraph.
  37508. </p>
  37509. <p><code>sendcmd</code> must be inserted between two video filters,
  37510. <code>asendcmd</code> must be inserted between two audio filters, but apart
  37511. from that they act the same way.
  37512. </p>
  37513. <p>The specification of commands can be provided in the filter arguments
  37514. with the <var>commands</var> option, or in a file specified by the
  37515. <var>filename</var> option.
  37516. </p>
  37517. <p>These filters accept the following options:
  37518. </p><dl compact="compact">
  37519. <dt>&lsquo;<samp>commands, c</samp>&rsquo;</dt>
  37520. <dd><p>Set the commands to be read and sent to the other filters.
  37521. </p></dd>
  37522. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  37523. <dd><p>Set the filename of the commands to be read and sent to the other
  37524. filters.
  37525. </p></dd>
  37526. </dl>
  37527. <a name="Commands-syntax"></a>
  37528. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-syntax">37.15.1 Commands syntax</a></h3>
  37529. <p>A commands description consists of a sequence of interval
  37530. specifications, comprising a list of commands to be executed when a
  37531. particular event related to that interval occurs. The occurring event
  37532. is typically the current frame time entering or leaving a given time
  37533. interval.
  37534. </p>
  37535. <p>An interval is specified by the following syntax:
  37536. </p><div class="example">
  37537. <pre class="example"><var>START</var>[-<var>END</var>] <var>COMMANDS</var>;
  37538. </pre></div>
  37539. <p>The time interval is specified by the <var>START</var> and <var>END</var> times.
  37540. <var>END</var> is optional and defaults to the maximum time.
  37541. </p>
  37542. <p>The current frame time is considered within the specified interval if
  37543. it is included in the interval [<var>START</var>, <var>END</var>), that is when
  37544. the time is greater or equal to <var>START</var> and is lesser than
  37545. <var>END</var>.
  37546. </p>
  37547. <p><var>COMMANDS</var> consists of a sequence of one or more command
  37548. specifications, separated by &quot;,&quot;, relating to that interval. The
  37549. syntax of a command specification is given by:
  37550. </p><div class="example">
  37551. <pre class="example">[<var>FLAGS</var>] <var>TARGET</var> <var>COMMAND</var> <var>ARG</var>
  37552. </pre></div>
  37553. <p><var>FLAGS</var> is optional and specifies the type of events relating to
  37554. the time interval which enable sending the specified command, and must
  37555. be a non-null sequence of identifier flags separated by &quot;+&quot; or &quot;|&quot; and
  37556. enclosed between &quot;[&quot; and &quot;]&quot;.
  37557. </p>
  37558. <p>The following flags are recognized:
  37559. </p><dl compact="compact">
  37560. <dt>&lsquo;<samp>enter</samp>&rsquo;</dt>
  37561. <dd><p>The command is sent when the current frame timestamp enters the
  37562. specified interval. In other words, the command is sent when the
  37563. previous frame timestamp was not in the given interval, and the
  37564. current is.
  37565. </p>
  37566. </dd>
  37567. <dt>&lsquo;<samp>leave</samp>&rsquo;</dt>
  37568. <dd><p>The command is sent when the current frame timestamp leaves the
  37569. specified interval. In other words, the command is sent when the
  37570. previous frame timestamp was in the given interval, and the
  37571. current is not.
  37572. </p>
  37573. </dd>
  37574. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37575. <dd><p>The command <var>ARG</var> is interpreted as expression and result of
  37576. expression is passed as <var>ARG</var>.
  37577. </p>
  37578. <p>The expression is evaluated through the eval API and can contain the following
  37579. constants:
  37580. </p>
  37581. <dl compact="compact">
  37582. <dt>&lsquo;<samp>POS</samp>&rsquo;</dt>
  37583. <dd><p>Original position in the file of the frame, or undefined if undefined
  37584. for the current frame.
  37585. </p>
  37586. </dd>
  37587. <dt>&lsquo;<samp>PTS</samp>&rsquo;</dt>
  37588. <dd><p>The presentation timestamp in input.
  37589. </p>
  37590. </dd>
  37591. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  37592. <dd><p>The count of the input frame for video or audio, starting from 0.
  37593. </p>
  37594. </dd>
  37595. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  37596. <dd><p>The time in seconds of the current frame.
  37597. </p>
  37598. </dd>
  37599. <dt>&lsquo;<samp>TS</samp>&rsquo;</dt>
  37600. <dd><p>The start time in seconds of the current command interval.
  37601. </p>
  37602. </dd>
  37603. <dt>&lsquo;<samp>TE</samp>&rsquo;</dt>
  37604. <dd><p>The end time in seconds of the current command interval.
  37605. </p>
  37606. </dd>
  37607. <dt>&lsquo;<samp>TI</samp>&rsquo;</dt>
  37608. <dd><p>The interpolated time of the current command interval, TI = (T - TS) / (TE - TS).
  37609. </p></dd>
  37610. </dl>
  37611. </dd>
  37612. </dl>
  37613. <p>If <var>FLAGS</var> is not specified, a default value of <code>[enter]</code> is
  37614. assumed.
  37615. </p>
  37616. <p><var>TARGET</var> specifies the target of the command, usually the name of
  37617. the filter class or a specific filter instance name.
  37618. </p>
  37619. <p><var>COMMAND</var> specifies the name of the command for the target filter.
  37620. </p>
  37621. <p><var>ARG</var> is optional and specifies the optional list of argument for
  37622. the given <var>COMMAND</var>.
  37623. </p>
  37624. <p>Between one interval specification and another, whitespaces, or
  37625. sequences of characters starting with <code>#</code> until the end of line,
  37626. are ignored and can be used to annotate comments.
  37627. </p>
  37628. <p>A simplified BNF description of the commands specification syntax
  37629. follows:
  37630. </p><div class="example">
  37631. <pre class="example"><var>COMMAND_FLAG</var> ::= &quot;enter&quot; | &quot;leave&quot;
  37632. <var>COMMAND_FLAGS</var> ::= <var>COMMAND_FLAG</var> [(+|&quot;|&quot;)<var>COMMAND_FLAG</var>]
  37633. <var>COMMAND</var> ::= [&quot;[&quot; <var>COMMAND_FLAGS</var> &quot;]&quot;] <var>TARGET</var> <var>COMMAND</var> [<var>ARG</var>]
  37634. <var>COMMANDS</var> ::= <var>COMMAND</var> [,<var>COMMANDS</var>]
  37635. <var>INTERVAL</var> ::= <var>START</var>[-<var>END</var>] <var>COMMANDS</var>
  37636. <var>INTERVALS</var> ::= <var>INTERVAL</var>[;<var>INTERVALS</var>]
  37637. </pre></div>
  37638. <a name="Examples-60"></a>
  37639. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-60">37.15.2 Examples</a></h3>
  37640. <ul>
  37641. <li>
  37642. Specify audio tempo change at second 4:
  37643. <div class="example">
  37644. <pre class="example">asendcmd=c='4.0 atempo tempo 1.5',atempo
  37645. </pre></div>
  37646. </li><li>
  37647. Target a specific filter instance:
  37648. <div class="example">
  37649. <pre class="example">asendcmd=c='4.0 atempo@my tempo 1.5',atempo@my
  37650. </pre></div>
  37651. </li><li>
  37652. Specify a list of drawtext and hue commands in a file.
  37653. <div class="example">
  37654. <pre class="example"># show text in the interval 5-10
  37655. 5.0-10.0 [enter] drawtext reinit 'fontfile=FreeSerif.ttf:text=hello world',
  37656. [leave] drawtext reinit 'fontfile=FreeSerif.ttf:text=';
  37657. # desaturate the image in the interval 15-20
  37658. 15.0-20.0 [enter] hue s 0,
  37659. [enter] drawtext reinit 'fontfile=FreeSerif.ttf:text=nocolor',
  37660. [leave] hue s 1,
  37661. [leave] drawtext reinit 'fontfile=FreeSerif.ttf:text=color';
  37662. # apply an exponential saturation fade-out effect, starting from time 25
  37663. 25 [enter] hue s exp(25-t)
  37664. </pre></div>
  37665. <p>A filtergraph allowing to read and process the above command list
  37666. stored in a file &lsquo;<tt>test.cmd</tt>&rsquo;, can be specified with:
  37667. </p><div class="example">
  37668. <pre class="example">sendcmd=f=test.cmd,drawtext=fontfile=FreeSerif.ttf:text='',hue
  37669. </pre></div>
  37670. </li></ul>
  37671. <p><a name="setpts"></a>
  37672. </p><a name="setpts_002c-asetpts"></a>
  37673. <h2 class="section"><a href="ffprobe-all.html#toc-setpts_002c-asetpts">37.16 setpts, asetpts</a></h2>
  37674. <p>Change the PTS (presentation timestamp) of the input frames.
  37675. </p>
  37676. <p><code>setpts</code> works on video frames, <code>asetpts</code> on audio frames.
  37677. </p>
  37678. <p>This filter accepts the following options:
  37679. </p>
  37680. <dl compact="compact">
  37681. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37682. <dd><p>The expression which is evaluated for each frame to construct its timestamp.
  37683. </p>
  37684. </dd>
  37685. </dl>
  37686. <p>The expression is evaluated through the eval API and can contain the following
  37687. constants:
  37688. </p>
  37689. <dl compact="compact">
  37690. <dt>&lsquo;<samp>FRAME_RATE, FR</samp>&rsquo;</dt>
  37691. <dd><p>frame rate, only defined for constant frame-rate video
  37692. </p>
  37693. </dd>
  37694. <dt>&lsquo;<samp>PTS</samp>&rsquo;</dt>
  37695. <dd><p>The presentation timestamp in input
  37696. </p>
  37697. </dd>
  37698. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  37699. <dd><p>The count of the input frame for video or the number of consumed samples,
  37700. not including the current frame for audio, starting from 0.
  37701. </p>
  37702. </dd>
  37703. <dt>&lsquo;<samp>NB_CONSUMED_SAMPLES</samp>&rsquo;</dt>
  37704. <dd><p>The number of consumed samples, not including the current frame (only
  37705. audio)
  37706. </p>
  37707. </dd>
  37708. <dt>&lsquo;<samp>NB_SAMPLES, S</samp>&rsquo;</dt>
  37709. <dd><p>The number of samples in the current frame (only audio)
  37710. </p>
  37711. </dd>
  37712. <dt>&lsquo;<samp>SAMPLE_RATE, SR</samp>&rsquo;</dt>
  37713. <dd><p>The audio sample rate.
  37714. </p>
  37715. </dd>
  37716. <dt>&lsquo;<samp>STARTPTS</samp>&rsquo;</dt>
  37717. <dd><p>The PTS of the first frame.
  37718. </p>
  37719. </dd>
  37720. <dt>&lsquo;<samp>STARTT</samp>&rsquo;</dt>
  37721. <dd><p>the time in seconds of the first frame
  37722. </p>
  37723. </dd>
  37724. <dt>&lsquo;<samp>INTERLACED</samp>&rsquo;</dt>
  37725. <dd><p>State whether the current frame is interlaced.
  37726. </p>
  37727. </dd>
  37728. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  37729. <dd><p>the time in seconds of the current frame
  37730. </p>
  37731. </dd>
  37732. <dt>&lsquo;<samp>POS</samp>&rsquo;</dt>
  37733. <dd><p>original position in the file of the frame, or undefined if undefined
  37734. for the current frame
  37735. </p>
  37736. </dd>
  37737. <dt>&lsquo;<samp>PREV_INPTS</samp>&rsquo;</dt>
  37738. <dd><p>The previous input PTS.
  37739. </p>
  37740. </dd>
  37741. <dt>&lsquo;<samp>PREV_INT</samp>&rsquo;</dt>
  37742. <dd><p>previous input time in seconds
  37743. </p>
  37744. </dd>
  37745. <dt>&lsquo;<samp>PREV_OUTPTS</samp>&rsquo;</dt>
  37746. <dd><p>The previous output PTS.
  37747. </p>
  37748. </dd>
  37749. <dt>&lsquo;<samp>PREV_OUTT</samp>&rsquo;</dt>
  37750. <dd><p>previous output time in seconds
  37751. </p>
  37752. </dd>
  37753. <dt>&lsquo;<samp>RTCTIME</samp>&rsquo;</dt>
  37754. <dd><p>The wallclock (RTC) time in microseconds. This is deprecated, use time(0)
  37755. instead.
  37756. </p>
  37757. </dd>
  37758. <dt>&lsquo;<samp>RTCSTART</samp>&rsquo;</dt>
  37759. <dd><p>The wallclock (RTC) time at the start of the movie in microseconds.
  37760. </p>
  37761. </dd>
  37762. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  37763. <dd><p>The timebase of the input timestamps.
  37764. </p>
  37765. </dd>
  37766. </dl>
  37767. <a name="Examples-150"></a>
  37768. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-150">37.16.1 Examples</a></h3>
  37769. <ul>
  37770. <li>
  37771. Start counting PTS from zero
  37772. <div class="example">
  37773. <pre class="example">setpts=PTS-STARTPTS
  37774. </pre></div>
  37775. </li><li>
  37776. Apply fast motion effect:
  37777. <div class="example">
  37778. <pre class="example">setpts=0.5*PTS
  37779. </pre></div>
  37780. </li><li>
  37781. Apply slow motion effect:
  37782. <div class="example">
  37783. <pre class="example">setpts=2.0*PTS
  37784. </pre></div>
  37785. </li><li>
  37786. Set fixed rate of 25 frames per second:
  37787. <div class="example">
  37788. <pre class="example">setpts=N/(25*TB)
  37789. </pre></div>
  37790. </li><li>
  37791. Set fixed rate 25 fps with some jitter:
  37792. <div class="example">
  37793. <pre class="example">setpts='1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))'
  37794. </pre></div>
  37795. </li><li>
  37796. Apply an offset of 10 seconds to the input PTS:
  37797. <div class="example">
  37798. <pre class="example">setpts=PTS+10/TB
  37799. </pre></div>
  37800. </li><li>
  37801. Generate timestamps from a &quot;live source&quot; and rebase onto the current timebase:
  37802. <div class="example">
  37803. <pre class="example">setpts='(RTCTIME - RTCSTART) / (TB * 1000000)'
  37804. </pre></div>
  37805. </li><li>
  37806. Generate timestamps by counting samples:
  37807. <div class="example">
  37808. <pre class="example">asetpts=N/SR/TB
  37809. </pre></div>
  37810. </li></ul>
  37811. <a name="setrange"></a>
  37812. <h2 class="section"><a href="ffprobe-all.html#toc-setrange">37.17 setrange</a></h2>
  37813. <p>Force color range for the output video frame.
  37814. </p>
  37815. <p>The <code>setrange</code> filter marks the color range property for the
  37816. output frames. It does not change the input frame, but only sets the
  37817. corresponding property, which affects how the frame is treated by
  37818. following filters.
  37819. </p>
  37820. <p>The filter accepts the following options:
  37821. </p>
  37822. <dl compact="compact">
  37823. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  37824. <dd><p>Available values are:
  37825. </p>
  37826. <dl compact="compact">
  37827. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  37828. <dd><p>Keep the same color range property.
  37829. </p>
  37830. </dd>
  37831. <dt>&lsquo;<samp>unspecified, unknown</samp>&rsquo;</dt>
  37832. <dd><p>Set the color range as unspecified.
  37833. </p>
  37834. </dd>
  37835. <dt>&lsquo;<samp>limited, tv, mpeg</samp>&rsquo;</dt>
  37836. <dd><p>Set the color range as limited.
  37837. </p>
  37838. </dd>
  37839. <dt>&lsquo;<samp>full, pc, jpeg</samp>&rsquo;</dt>
  37840. <dd><p>Set the color range as full.
  37841. </p></dd>
  37842. </dl>
  37843. </dd>
  37844. </dl>
  37845. <a name="settb_002c-asettb"></a>
  37846. <h2 class="section"><a href="ffprobe-all.html#toc-settb_002c-asettb">37.18 settb, asettb</a></h2>
  37847. <p>Set the timebase to use for the output frames timestamps.
  37848. It is mainly useful for testing timebase configuration.
  37849. </p>
  37850. <p>It accepts the following parameters:
  37851. </p>
  37852. <dl compact="compact">
  37853. <dt>&lsquo;<samp>expr, tb</samp>&rsquo;</dt>
  37854. <dd><p>The expression which is evaluated into the output timebase.
  37855. </p>
  37856. </dd>
  37857. </dl>
  37858. <p>The value for &lsquo;<samp>tb</samp>&rsquo; is an arithmetic expression representing a
  37859. rational. The expression can contain the constants &quot;AVTB&quot; (the default
  37860. timebase), &quot;intb&quot; (the input timebase) and &quot;sr&quot; (the sample rate,
  37861. audio only). Default value is &quot;intb&quot;.
  37862. </p>
  37863. <a name="Examples-142"></a>
  37864. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-142">37.18.1 Examples</a></h3>
  37865. <ul>
  37866. <li>
  37867. Set the timebase to 1/25:
  37868. <div class="example">
  37869. <pre class="example">settb=expr=1/25
  37870. </pre></div>
  37871. </li><li>
  37872. Set the timebase to 1/10:
  37873. <div class="example">
  37874. <pre class="example">settb=expr=0.1
  37875. </pre></div>
  37876. </li><li>
  37877. Set the timebase to 1001/1000:
  37878. <div class="example">
  37879. <pre class="example">settb=1+0.001
  37880. </pre></div>
  37881. </li><li>
  37882. Set the timebase to 2*intb:
  37883. <div class="example">
  37884. <pre class="example">settb=2*intb
  37885. </pre></div>
  37886. </li><li>
  37887. Set the default timebase value:
  37888. <div class="example">
  37889. <pre class="example">settb=AVTB
  37890. </pre></div>
  37891. </li></ul>
  37892. <a name="showcqt"></a>
  37893. <h2 class="section"><a href="ffprobe-all.html#toc-showcqt">37.19 showcqt</a></h2>
  37894. <p>Convert input audio to a video output representing frequency spectrum
  37895. logarithmically using Brown-Puckette constant Q transform algorithm with
  37896. direct frequency domain coefficient calculation (but the transform itself
  37897. is not really constant Q, instead the Q factor is actually variable/clamped),
  37898. with musical tone scale, from E0 to D#10.
  37899. </p>
  37900. <p>The filter accepts the following options:
  37901. </p>
  37902. <dl compact="compact">
  37903. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  37904. <dd><p>Specify the video size for the output. It must be even. For the syntax of this option,
  37905. check the <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  37906. Default value is <code>1920x1080</code>.
  37907. </p>
  37908. </dd>
  37909. <dt>&lsquo;<samp>fps, rate, r</samp>&rsquo;</dt>
  37910. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  37911. </p>
  37912. </dd>
  37913. <dt>&lsquo;<samp>bar_h</samp>&rsquo;</dt>
  37914. <dd><p>Set the bargraph height. It must be even. Default value is <code>-1</code> which
  37915. computes the bargraph height automatically.
  37916. </p>
  37917. </dd>
  37918. <dt>&lsquo;<samp>axis_h</samp>&rsquo;</dt>
  37919. <dd><p>Set the axis height. It must be even. Default value is <code>-1</code> which computes
  37920. the axis height automatically.
  37921. </p>
  37922. </dd>
  37923. <dt>&lsquo;<samp>sono_h</samp>&rsquo;</dt>
  37924. <dd><p>Set the sonogram height. It must be even. Default value is <code>-1</code> which
  37925. computes the sonogram height automatically.
  37926. </p>
  37927. </dd>
  37928. <dt>&lsquo;<samp>fullhd</samp>&rsquo;</dt>
  37929. <dd><p>Set the fullhd resolution. This option is deprecated, use <var>size</var>, <var>s</var>
  37930. instead. Default value is <code>1</code>.
  37931. </p>
  37932. </dd>
  37933. <dt>&lsquo;<samp>sono_v, volume</samp>&rsquo;</dt>
  37934. <dd><p>Specify the sonogram volume expression. It can contain variables:
  37935. </p><dl compact="compact">
  37936. <dt>&lsquo;<samp>bar_v</samp>&rsquo;</dt>
  37937. <dd><p>the <var>bar_v</var> evaluated expression
  37938. </p></dd>
  37939. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37940. <dd><p>the frequency where it is evaluated
  37941. </p></dd>
  37942. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37943. <dd><p>the value of <var>timeclamp</var> option
  37944. </p></dd>
  37945. </dl>
  37946. <p>and functions:
  37947. </p><dl compact="compact">
  37948. <dt>&lsquo;<samp>a_weighting(f)</samp>&rsquo;</dt>
  37949. <dd><p>A-weighting of equal loudness
  37950. </p></dd>
  37951. <dt>&lsquo;<samp>b_weighting(f)</samp>&rsquo;</dt>
  37952. <dd><p>B-weighting of equal loudness
  37953. </p></dd>
  37954. <dt>&lsquo;<samp>c_weighting(f)</samp>&rsquo;</dt>
  37955. <dd><p>C-weighting of equal loudness.
  37956. </p></dd>
  37957. </dl>
  37958. <p>Default value is <code>16</code>.
  37959. </p>
  37960. </dd>
  37961. <dt>&lsquo;<samp>bar_v, volume2</samp>&rsquo;</dt>
  37962. <dd><p>Specify the bargraph volume expression. It can contain variables:
  37963. </p><dl compact="compact">
  37964. <dt>&lsquo;<samp>sono_v</samp>&rsquo;</dt>
  37965. <dd><p>the <var>sono_v</var> evaluated expression
  37966. </p></dd>
  37967. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37968. <dd><p>the frequency where it is evaluated
  37969. </p></dd>
  37970. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37971. <dd><p>the value of <var>timeclamp</var> option
  37972. </p></dd>
  37973. </dl>
  37974. <p>and functions:
  37975. </p><dl compact="compact">
  37976. <dt>&lsquo;<samp>a_weighting(f)</samp>&rsquo;</dt>
  37977. <dd><p>A-weighting of equal loudness
  37978. </p></dd>
  37979. <dt>&lsquo;<samp>b_weighting(f)</samp>&rsquo;</dt>
  37980. <dd><p>B-weighting of equal loudness
  37981. </p></dd>
  37982. <dt>&lsquo;<samp>c_weighting(f)</samp>&rsquo;</dt>
  37983. <dd><p>C-weighting of equal loudness.
  37984. </p></dd>
  37985. </dl>
  37986. <p>Default value is <code>sono_v</code>.
  37987. </p>
  37988. </dd>
  37989. <dt>&lsquo;<samp>sono_g, gamma</samp>&rsquo;</dt>
  37990. <dd><p>Specify the sonogram gamma. Lower gamma makes the spectrum more contrast,
  37991. higher gamma makes the spectrum having more range. Default value is <code>3</code>.
  37992. Acceptable range is <code>[1, 7]</code>.
  37993. </p>
  37994. </dd>
  37995. <dt>&lsquo;<samp>bar_g, gamma2</samp>&rsquo;</dt>
  37996. <dd><p>Specify the bargraph gamma. Default value is <code>1</code>. Acceptable range is
  37997. <code>[1, 7]</code>.
  37998. </p>
  37999. </dd>
  38000. <dt>&lsquo;<samp>bar_t</samp>&rsquo;</dt>
  38001. <dd><p>Specify the bargraph transparency level. Lower value makes the bargraph sharper.
  38002. Default value is <code>1</code>. Acceptable range is <code>[0, 1]</code>.
  38003. </p>
  38004. </dd>
  38005. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  38006. <dd><p>Specify the transform timeclamp. At low frequency, there is trade-off between
  38007. accuracy in time domain and frequency domain. If timeclamp is lower,
  38008. event in time domain is represented more accurately (such as fast bass drum),
  38009. otherwise event in frequency domain is represented more accurately
  38010. (such as bass guitar). Acceptable range is <code>[0.002, 1]</code>. Default value is <code>0.17</code>.
  38011. </p>
  38012. </dd>
  38013. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  38014. <dd><p>Set attack time in seconds. The default is <code>0</code> (disabled). Otherwise, it
  38015. limits future samples by applying asymmetric windowing in time domain, useful
  38016. when low latency is required. Accepted range is <code>[0, 1]</code>.
  38017. </p>
  38018. </dd>
  38019. <dt>&lsquo;<samp>basefreq</samp>&rsquo;</dt>
  38020. <dd><p>Specify the transform base frequency. Default value is <code>20.01523126408007475</code>,
  38021. which is frequency 50 cents below E0. Acceptable range is <code>[10, 100000]</code>.
  38022. </p>
  38023. </dd>
  38024. <dt>&lsquo;<samp>endfreq</samp>&rsquo;</dt>
  38025. <dd><p>Specify the transform end frequency. Default value is <code>20495.59681441799654</code>,
  38026. which is frequency 50 cents above D#10. Acceptable range is <code>[10, 100000]</code>.
  38027. </p>
  38028. </dd>
  38029. <dt>&lsquo;<samp>coeffclamp</samp>&rsquo;</dt>
  38030. <dd><p>This option is deprecated and ignored.
  38031. </p>
  38032. </dd>
  38033. <dt>&lsquo;<samp>tlength</samp>&rsquo;</dt>
  38034. <dd><p>Specify the transform length in time domain. Use this option to control accuracy
  38035. trade-off between time domain and frequency domain at every frequency sample.
  38036. It can contain variables:
  38037. </p><dl compact="compact">
  38038. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  38039. <dd><p>the frequency where it is evaluated
  38040. </p></dd>
  38041. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  38042. <dd><p>the value of <var>timeclamp</var> option.
  38043. </p></dd>
  38044. </dl>
  38045. <p>Default value is <code>384*tc/(384+tc*f)</code>.
  38046. </p>
  38047. </dd>
  38048. <dt>&lsquo;<samp>count</samp>&rsquo;</dt>
  38049. <dd><p>Specify the transform count for every video frame. Default value is <code>6</code>.
  38050. Acceptable range is <code>[1, 30]</code>.
  38051. </p>
  38052. </dd>
  38053. <dt>&lsquo;<samp>fcount</samp>&rsquo;</dt>
  38054. <dd><p>Specify the transform count for every single pixel. Default value is <code>0</code>,
  38055. which makes it computed automatically. Acceptable range is <code>[0, 10]</code>.
  38056. </p>
  38057. </dd>
  38058. <dt>&lsquo;<samp>fontfile</samp>&rsquo;</dt>
  38059. <dd><p>Specify font file for use with freetype to draw the axis. If not specified,
  38060. use embedded font. Note that drawing with font file or embedded font is not
  38061. implemented with custom <var>basefreq</var> and <var>endfreq</var>, use <var>axisfile</var>
  38062. option instead.
  38063. </p>
  38064. </dd>
  38065. <dt>&lsquo;<samp>font</samp>&rsquo;</dt>
  38066. <dd><p>Specify fontconfig pattern. This has lower priority than <var>fontfile</var>. The
  38067. <code>:</code> in the pattern may be replaced by <code>|</code> to avoid unnecessary
  38068. escaping.
  38069. </p>
  38070. </dd>
  38071. <dt>&lsquo;<samp>fontcolor</samp>&rsquo;</dt>
  38072. <dd><p>Specify font color expression. This is arithmetic expression that should return
  38073. integer value 0xRRGGBB. It can contain variables:
  38074. </p><dl compact="compact">
  38075. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  38076. <dd><p>the frequency where it is evaluated
  38077. </p></dd>
  38078. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  38079. <dd><p>the value of <var>timeclamp</var> option
  38080. </p></dd>
  38081. </dl>
  38082. <p>and functions:
  38083. </p><dl compact="compact">
  38084. <dt>&lsquo;<samp>midi(f)</samp>&rsquo;</dt>
  38085. <dd><p>midi number of frequency f, some midi numbers: E0(16), C1(24), C2(36), A4(69)
  38086. </p></dd>
  38087. <dt>&lsquo;<samp>r(x), g(x), b(x)</samp>&rsquo;</dt>
  38088. <dd><p>red, green, and blue value of intensity x.
  38089. </p></dd>
  38090. </dl>
  38091. <p>Default value is <code>st(0, (midi(f)-59.5)/12);
  38092. st(1, if(between(ld(0),0,1), 0.5-0.5*cos(2*PI*ld(0)), 0));
  38093. r(1-ld(1)) + b(ld(1))</code>.
  38094. </p>
  38095. </dd>
  38096. <dt>&lsquo;<samp>axisfile</samp>&rsquo;</dt>
  38097. <dd><p>Specify image file to draw the axis. This option override <var>fontfile</var> and
  38098. <var>fontcolor</var> option.
  38099. </p>
  38100. </dd>
  38101. <dt>&lsquo;<samp>axis, text</samp>&rsquo;</dt>
  38102. <dd><p>Enable/disable drawing text to the axis. If it is set to <code>0</code>, drawing to
  38103. the axis is disabled, ignoring <var>fontfile</var> and <var>axisfile</var> option.
  38104. Default value is <code>1</code>.
  38105. </p>
  38106. </dd>
  38107. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  38108. <dd><p>Set colorspace. The accepted values are:
  38109. </p><dl compact="compact">
  38110. <dt>&lsquo;<samp>unspecified</samp>&rsquo;</dt>
  38111. <dd><p>Unspecified (default)
  38112. </p>
  38113. </dd>
  38114. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  38115. <dd><p>BT.709
  38116. </p>
  38117. </dd>
  38118. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  38119. <dd><p>FCC
  38120. </p>
  38121. </dd>
  38122. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  38123. <dd><p>BT.470BG or BT.601-6 625
  38124. </p>
  38125. </dd>
  38126. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  38127. <dd><p>SMPTE-170M or BT.601-6 525
  38128. </p>
  38129. </dd>
  38130. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  38131. <dd><p>SMPTE-240M
  38132. </p>
  38133. </dd>
  38134. <dt>&lsquo;<samp>bt2020ncl</samp>&rsquo;</dt>
  38135. <dd><p>BT.2020 with non-constant luminance
  38136. </p>
  38137. </dd>
  38138. </dl>
  38139. </dd>
  38140. <dt>&lsquo;<samp>cscheme</samp>&rsquo;</dt>
  38141. <dd><p>Set spectrogram color scheme. This is list of floating point values with format
  38142. <code>left_r|left_g|left_b|right_r|right_g|right_b</code>.
  38143. The default is <code>1|0.5|0|0|0.5|1</code>.
  38144. </p>
  38145. </dd>
  38146. </dl>
  38147. <a name="Examples-8"></a>
  38148. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-8">37.19.1 Examples</a></h3>
  38149. <ul>
  38150. <li>
  38151. Playing audio while showing the spectrum:
  38152. <div class="example">
  38153. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt [out0]'
  38154. </pre></div>
  38155. </li><li>
  38156. Same as above, but with frame rate 30 fps:
  38157. <div class="example">
  38158. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt=fps=30:count=5 [out0]'
  38159. </pre></div>
  38160. </li><li>
  38161. Playing at 1280x720:
  38162. <div class="example">
  38163. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt=s=1280x720:count=4 [out0]'
  38164. </pre></div>
  38165. </li><li>
  38166. Disable sonogram display:
  38167. <div class="example">
  38168. <pre class="example">sono_h=0
  38169. </pre></div>
  38170. </li><li>
  38171. A1 and its harmonics: A1, A2, (near)E3, A3:
  38172. <div class="example">
  38173. <pre class="example">ffplay -f lavfi 'aevalsrc=0.1*sin(2*PI*55*t)+0.1*sin(4*PI*55*t)+0.1*sin(6*PI*55*t)+0.1*sin(8*PI*55*t),
  38174. asplit[a][out1]; [a] showcqt [out0]'
  38175. </pre></div>
  38176. </li><li>
  38177. Same as above, but with more accuracy in frequency domain:
  38178. <div class="example">
  38179. <pre class="example">ffplay -f lavfi 'aevalsrc=0.1*sin(2*PI*55*t)+0.1*sin(4*PI*55*t)+0.1*sin(6*PI*55*t)+0.1*sin(8*PI*55*t),
  38180. asplit[a][out1]; [a] showcqt=timeclamp=0.5 [out0]'
  38181. </pre></div>
  38182. </li><li>
  38183. Custom volume:
  38184. <div class="example">
  38185. <pre class="example">bar_v=10:sono_v=bar_v*a_weighting(f)
  38186. </pre></div>
  38187. </li><li>
  38188. Custom gamma, now spectrum is linear to the amplitude.
  38189. <div class="example">
  38190. <pre class="example">bar_g=2:sono_g=2
  38191. </pre></div>
  38192. </li><li>
  38193. Custom tlength equation:
  38194. <div class="example">
  38195. <pre class="example">tc=0.33:tlength='st(0,0.17); 384*tc / (384 / ld(0) + tc*f /(1-ld(0))) + 384*tc / (tc*f / ld(0) + 384 /(1-ld(0)))'
  38196. </pre></div>
  38197. </li><li>
  38198. Custom fontcolor and fontfile, C-note is colored green, others are colored blue:
  38199. <div class="example">
  38200. <pre class="example">fontcolor='if(mod(floor(midi(f)+0.5),12), 0x0000FF, g(1))':fontfile=myfont.ttf
  38201. </pre></div>
  38202. </li><li>
  38203. Custom font using fontconfig:
  38204. <div class="example">
  38205. <pre class="example">font='Courier New,Monospace,mono|bold'
  38206. </pre></div>
  38207. </li><li>
  38208. Custom frequency range with custom axis using image file:
  38209. <div class="example">
  38210. <pre class="example">axisfile=myaxis.png:basefreq=40:endfreq=10000
  38211. </pre></div>
  38212. </li></ul>
  38213. <a name="showfreqs"></a>
  38214. <h2 class="section"><a href="ffprobe-all.html#toc-showfreqs">37.20 showfreqs</a></h2>
  38215. <p>Convert input audio to video output representing the audio power spectrum.
  38216. Audio amplitude is on Y-axis while frequency is on X-axis.
  38217. </p>
  38218. <p>The filter accepts the following options:
  38219. </p>
  38220. <dl compact="compact">
  38221. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38222. <dd><p>Specify size of video. For the syntax of this option, check the
  38223. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38224. Default is <code>1024x512</code>.
  38225. </p>
  38226. </dd>
  38227. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38228. <dd><p>Set display mode.
  38229. This set how each frequency bin will be represented.
  38230. </p>
  38231. <p>It accepts the following values:
  38232. </p><dl compact="compact">
  38233. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  38234. <dt>&lsquo;<samp>bar</samp>&rsquo;</dt>
  38235. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  38236. </dl>
  38237. <p>Default is <code>bar</code>.
  38238. </p>
  38239. </dd>
  38240. <dt>&lsquo;<samp>ascale</samp>&rsquo;</dt>
  38241. <dd><p>Set amplitude scale.
  38242. </p>
  38243. <p>It accepts the following values:
  38244. </p><dl compact="compact">
  38245. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38246. <dd><p>Linear scale.
  38247. </p>
  38248. </dd>
  38249. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38250. <dd><p>Square root scale.
  38251. </p>
  38252. </dd>
  38253. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38254. <dd><p>Cubic root scale.
  38255. </p>
  38256. </dd>
  38257. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38258. <dd><p>Logarithmic scale.
  38259. </p></dd>
  38260. </dl>
  38261. <p>Default is <code>log</code>.
  38262. </p>
  38263. </dd>
  38264. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  38265. <dd><p>Set frequency scale.
  38266. </p>
  38267. <p>It accepts the following values:
  38268. </p><dl compact="compact">
  38269. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38270. <dd><p>Linear scale.
  38271. </p>
  38272. </dd>
  38273. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38274. <dd><p>Logarithmic scale.
  38275. </p>
  38276. </dd>
  38277. <dt>&lsquo;<samp>rlog</samp>&rsquo;</dt>
  38278. <dd><p>Reverse logarithmic scale.
  38279. </p></dd>
  38280. </dl>
  38281. <p>Default is <code>lin</code>.
  38282. </p>
  38283. </dd>
  38284. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  38285. <dd><p>Set window size. Allowed range is from 16 to 65536.
  38286. </p>
  38287. <p>Default is <code>2048</code>
  38288. </p>
  38289. </dd>
  38290. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38291. <dd><p>Set windowing function.
  38292. </p>
  38293. <p>It accepts the following values:
  38294. </p><dl compact="compact">
  38295. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38296. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38297. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38298. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38299. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38300. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38301. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38302. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38303. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38304. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38305. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38306. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38307. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38308. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38309. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38310. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38311. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38312. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38313. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38314. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38315. </dl>
  38316. <p>Default is <code>hanning</code>.
  38317. </p>
  38318. </dd>
  38319. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  38320. <dd><p>Set window overlap. In range <code>[0, 1]</code>. Default is <code>1</code>,
  38321. which means optimal overlap for selected window function will be picked.
  38322. </p>
  38323. </dd>
  38324. <dt>&lsquo;<samp>averaging</samp>&rsquo;</dt>
  38325. <dd><p>Set time averaging. Setting this to 0 will display current maximal peaks.
  38326. Default is <code>1</code>, which means time averaging is disabled.
  38327. </p>
  38328. </dd>
  38329. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  38330. <dd><p>Specify list of colors separated by space or by &rsquo;|&rsquo; which will be used to
  38331. draw channel frequencies. Unrecognized or missing colors will be replaced
  38332. by white color.
  38333. </p>
  38334. </dd>
  38335. <dt>&lsquo;<samp>cmode</samp>&rsquo;</dt>
  38336. <dd><p>Set channel display mode.
  38337. </p>
  38338. <p>It accepts the following values:
  38339. </p><dl compact="compact">
  38340. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  38341. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  38342. </dl>
  38343. <p>Default is <code>combined</code>.
  38344. </p>
  38345. </dd>
  38346. <dt>&lsquo;<samp>minamp</samp>&rsquo;</dt>
  38347. <dd><p>Set minimum amplitude used in <code>log</code> amplitude scaler.
  38348. </p>
  38349. </dd>
  38350. </dl>
  38351. <a name="showspatial"></a>
  38352. <h2 class="section"><a href="ffprobe-all.html#toc-showspatial">37.21 showspatial</a></h2>
  38353. <p>Convert stereo input audio to a video output, representing the spatial relationship
  38354. between two channels.
  38355. </p>
  38356. <p>The filter accepts the following options:
  38357. </p>
  38358. <dl compact="compact">
  38359. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38360. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38361. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38362. Default value is <code>512x512</code>.
  38363. </p>
  38364. </dd>
  38365. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  38366. <dd><p>Set window size. Allowed range is from <var>1024</var> to <var>65536</var>. Default size is <var>4096</var>.
  38367. </p>
  38368. </dd>
  38369. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38370. <dd><p>Set window function.
  38371. </p>
  38372. <p>It accepts the following values:
  38373. </p><dl compact="compact">
  38374. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38375. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38376. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  38377. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38378. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38379. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38380. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38381. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38382. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38383. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38384. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38385. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38386. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38387. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38388. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38389. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38390. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38391. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38392. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38393. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38394. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38395. </dl>
  38396. <p>Default value is <code>hann</code>.
  38397. </p>
  38398. </dd>
  38399. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  38400. <dd><p>Set ratio of overlap window. Default value is <code>0.5</code>.
  38401. When value is <code>1</code> overlap is set to recommended size for specific
  38402. window function currently used.
  38403. </p></dd>
  38404. </dl>
  38405. <p><a name="showspectrum"></a>
  38406. </p><a name="showspectrum-1"></a>
  38407. <h2 class="section"><a href="ffprobe-all.html#toc-showspectrum-1">37.22 showspectrum</a></h2>
  38408. <p>Convert input audio to a video output, representing the audio frequency
  38409. spectrum.
  38410. </p>
  38411. <p>The filter accepts the following options:
  38412. </p>
  38413. <dl compact="compact">
  38414. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38415. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38416. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38417. Default value is <code>640x512</code>.
  38418. </p>
  38419. </dd>
  38420. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  38421. <dd><p>Specify how the spectrum should slide along the window.
  38422. </p>
  38423. <p>It accepts the following values:
  38424. </p><dl compact="compact">
  38425. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  38426. <dd><p>the samples start again on the left when they reach the right
  38427. </p></dd>
  38428. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  38429. <dd><p>the samples scroll from right to left
  38430. </p></dd>
  38431. <dt>&lsquo;<samp>fullframe</samp>&rsquo;</dt>
  38432. <dd><p>frames are only produced when the samples reach the right
  38433. </p></dd>
  38434. <dt>&lsquo;<samp>rscroll</samp>&rsquo;</dt>
  38435. <dd><p>the samples scroll from left to right
  38436. </p></dd>
  38437. </dl>
  38438. <p>Default value is <code>replace</code>.
  38439. </p>
  38440. </dd>
  38441. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38442. <dd><p>Specify display mode.
  38443. </p>
  38444. <p>It accepts the following values:
  38445. </p><dl compact="compact">
  38446. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  38447. <dd><p>all channels are displayed in the same row
  38448. </p></dd>
  38449. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  38450. <dd><p>all channels are displayed in separate rows
  38451. </p></dd>
  38452. </dl>
  38453. <p>Default value is &lsquo;<samp>combined</samp>&rsquo;.
  38454. </p>
  38455. </dd>
  38456. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  38457. <dd><p>Specify display color mode.
  38458. </p>
  38459. <p>It accepts the following values:
  38460. </p><dl compact="compact">
  38461. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  38462. <dd><p>each channel is displayed in a separate color
  38463. </p></dd>
  38464. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  38465. <dd><p>each channel is displayed using the same color scheme
  38466. </p></dd>
  38467. <dt>&lsquo;<samp>rainbow</samp>&rsquo;</dt>
  38468. <dd><p>each channel is displayed using the rainbow color scheme
  38469. </p></dd>
  38470. <dt>&lsquo;<samp>moreland</samp>&rsquo;</dt>
  38471. <dd><p>each channel is displayed using the moreland color scheme
  38472. </p></dd>
  38473. <dt>&lsquo;<samp>nebulae</samp>&rsquo;</dt>
  38474. <dd><p>each channel is displayed using the nebulae color scheme
  38475. </p></dd>
  38476. <dt>&lsquo;<samp>fire</samp>&rsquo;</dt>
  38477. <dd><p>each channel is displayed using the fire color scheme
  38478. </p></dd>
  38479. <dt>&lsquo;<samp>fiery</samp>&rsquo;</dt>
  38480. <dd><p>each channel is displayed using the fiery color scheme
  38481. </p></dd>
  38482. <dt>&lsquo;<samp>fruit</samp>&rsquo;</dt>
  38483. <dd><p>each channel is displayed using the fruit color scheme
  38484. </p></dd>
  38485. <dt>&lsquo;<samp>cool</samp>&rsquo;</dt>
  38486. <dd><p>each channel is displayed using the cool color scheme
  38487. </p></dd>
  38488. <dt>&lsquo;<samp>magma</samp>&rsquo;</dt>
  38489. <dd><p>each channel is displayed using the magma color scheme
  38490. </p></dd>
  38491. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  38492. <dd><p>each channel is displayed using the green color scheme
  38493. </p></dd>
  38494. <dt>&lsquo;<samp>viridis</samp>&rsquo;</dt>
  38495. <dd><p>each channel is displayed using the viridis color scheme
  38496. </p></dd>
  38497. <dt>&lsquo;<samp>plasma</samp>&rsquo;</dt>
  38498. <dd><p>each channel is displayed using the plasma color scheme
  38499. </p></dd>
  38500. <dt>&lsquo;<samp>cividis</samp>&rsquo;</dt>
  38501. <dd><p>each channel is displayed using the cividis color scheme
  38502. </p></dd>
  38503. <dt>&lsquo;<samp>terrain</samp>&rsquo;</dt>
  38504. <dd><p>each channel is displayed using the terrain color scheme
  38505. </p></dd>
  38506. </dl>
  38507. <p>Default value is &lsquo;<samp>channel</samp>&rsquo;.
  38508. </p>
  38509. </dd>
  38510. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38511. <dd><p>Specify scale used for calculating intensity color values.
  38512. </p>
  38513. <p>It accepts the following values:
  38514. </p><dl compact="compact">
  38515. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38516. <dd><p>linear
  38517. </p></dd>
  38518. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38519. <dd><p>square root, default
  38520. </p></dd>
  38521. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38522. <dd><p>cubic root
  38523. </p></dd>
  38524. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38525. <dd><p>logarithmic
  38526. </p></dd>
  38527. <dt>&lsquo;<samp>4thrt</samp>&rsquo;</dt>
  38528. <dd><p>4th root
  38529. </p></dd>
  38530. <dt>&lsquo;<samp>5thrt</samp>&rsquo;</dt>
  38531. <dd><p>5th root
  38532. </p></dd>
  38533. </dl>
  38534. <p>Default value is &lsquo;<samp>sqrt</samp>&rsquo;.
  38535. </p>
  38536. </dd>
  38537. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  38538. <dd><p>Specify frequency scale.
  38539. </p>
  38540. <p>It accepts the following values:
  38541. </p><dl compact="compact">
  38542. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38543. <dd><p>linear
  38544. </p></dd>
  38545. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38546. <dd><p>logarithmic
  38547. </p></dd>
  38548. </dl>
  38549. <p>Default value is &lsquo;<samp>lin</samp>&rsquo;.
  38550. </p>
  38551. </dd>
  38552. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  38553. <dd><p>Set saturation modifier for displayed colors. Negative values provide
  38554. alternative color scheme. <code>0</code> is no saturation at all.
  38555. Saturation must be in [-10.0, 10.0] range.
  38556. Default value is <code>1</code>.
  38557. </p>
  38558. </dd>
  38559. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38560. <dd><p>Set window function.
  38561. </p>
  38562. <p>It accepts the following values:
  38563. </p><dl compact="compact">
  38564. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38565. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38566. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  38567. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38568. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38569. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38570. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38571. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38572. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38573. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38574. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38575. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38576. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38577. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38578. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38579. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38580. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38581. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38582. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38583. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38584. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38585. </dl>
  38586. <p>Default value is <code>hann</code>.
  38587. </p>
  38588. </dd>
  38589. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  38590. <dd><p>Set orientation of time vs frequency axis. Can be <code>vertical</code> or
  38591. <code>horizontal</code>. Default is <code>vertical</code>.
  38592. </p>
  38593. </dd>
  38594. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  38595. <dd><p>Set ratio of overlap window. Default value is <code>0</code>.
  38596. When value is <code>1</code> overlap is set to recommended size for specific
  38597. window function currently used.
  38598. </p>
  38599. </dd>
  38600. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  38601. <dd><p>Set scale gain for calculating intensity color values.
  38602. Default value is <code>1</code>.
  38603. </p>
  38604. </dd>
  38605. <dt>&lsquo;<samp>data</samp>&rsquo;</dt>
  38606. <dd><p>Set which data to display. Can be <code>magnitude</code>, default or <code>phase</code>.
  38607. </p>
  38608. </dd>
  38609. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  38610. <dd><p>Set color rotation, must be in [-1.0, 1.0] range.
  38611. Default value is <code>0</code>.
  38612. </p>
  38613. </dd>
  38614. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  38615. <dd><p>Set start frequency from which to display spectrogram. Default is <code>0</code>.
  38616. </p>
  38617. </dd>
  38618. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  38619. <dd><p>Set stop frequency to which to display spectrogram. Default is <code>0</code>.
  38620. </p>
  38621. </dd>
  38622. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  38623. <dd><p>Set upper frame rate limit. Default is <code>auto</code>, unlimited.
  38624. </p>
  38625. </dd>
  38626. <dt>&lsquo;<samp>legend</samp>&rsquo;</dt>
  38627. <dd><p>Draw time and frequency axes and legends. Default is disabled.
  38628. </p></dd>
  38629. </dl>
  38630. <p>The usage is very similar to the showwaves filter; see the examples in that
  38631. section.
  38632. </p>
  38633. <a name="Examples-95"></a>
  38634. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-95">37.22.1 Examples</a></h3>
  38635. <ul>
  38636. <li>
  38637. Large window with logarithmic color scaling:
  38638. <div class="example">
  38639. <pre class="example">showspectrum=s=1280x480:scale=log
  38640. </pre></div>
  38641. </li><li>
  38642. Complete example for a colored and sliding spectrum per channel using <code>ffplay</code>:
  38643. <div class="example">
  38644. <pre class="example">ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
  38645. [a] showspectrum=mode=separate:color=intensity:slide=1:scale=cbrt [out0]'
  38646. </pre></div>
  38647. </li></ul>
  38648. <a name="showspectrumpic"></a>
  38649. <h2 class="section"><a href="ffprobe-all.html#toc-showspectrumpic">37.23 showspectrumpic</a></h2>
  38650. <p>Convert input audio to a single video frame, representing the audio frequency
  38651. spectrum.
  38652. </p>
  38653. <p>The filter accepts the following options:
  38654. </p>
  38655. <dl compact="compact">
  38656. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38657. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38658. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38659. Default value is <code>4096x2048</code>.
  38660. </p>
  38661. </dd>
  38662. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38663. <dd><p>Specify display mode.
  38664. </p>
  38665. <p>It accepts the following values:
  38666. </p><dl compact="compact">
  38667. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  38668. <dd><p>all channels are displayed in the same row
  38669. </p></dd>
  38670. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  38671. <dd><p>all channels are displayed in separate rows
  38672. </p></dd>
  38673. </dl>
  38674. <p>Default value is &lsquo;<samp>combined</samp>&rsquo;.
  38675. </p>
  38676. </dd>
  38677. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  38678. <dd><p>Specify display color mode.
  38679. </p>
  38680. <p>It accepts the following values:
  38681. </p><dl compact="compact">
  38682. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  38683. <dd><p>each channel is displayed in a separate color
  38684. </p></dd>
  38685. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  38686. <dd><p>each channel is displayed using the same color scheme
  38687. </p></dd>
  38688. <dt>&lsquo;<samp>rainbow</samp>&rsquo;</dt>
  38689. <dd><p>each channel is displayed using the rainbow color scheme
  38690. </p></dd>
  38691. <dt>&lsquo;<samp>moreland</samp>&rsquo;</dt>
  38692. <dd><p>each channel is displayed using the moreland color scheme
  38693. </p></dd>
  38694. <dt>&lsquo;<samp>nebulae</samp>&rsquo;</dt>
  38695. <dd><p>each channel is displayed using the nebulae color scheme
  38696. </p></dd>
  38697. <dt>&lsquo;<samp>fire</samp>&rsquo;</dt>
  38698. <dd><p>each channel is displayed using the fire color scheme
  38699. </p></dd>
  38700. <dt>&lsquo;<samp>fiery</samp>&rsquo;</dt>
  38701. <dd><p>each channel is displayed using the fiery color scheme
  38702. </p></dd>
  38703. <dt>&lsquo;<samp>fruit</samp>&rsquo;</dt>
  38704. <dd><p>each channel is displayed using the fruit color scheme
  38705. </p></dd>
  38706. <dt>&lsquo;<samp>cool</samp>&rsquo;</dt>
  38707. <dd><p>each channel is displayed using the cool color scheme
  38708. </p></dd>
  38709. <dt>&lsquo;<samp>magma</samp>&rsquo;</dt>
  38710. <dd><p>each channel is displayed using the magma color scheme
  38711. </p></dd>
  38712. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  38713. <dd><p>each channel is displayed using the green color scheme
  38714. </p></dd>
  38715. <dt>&lsquo;<samp>viridis</samp>&rsquo;</dt>
  38716. <dd><p>each channel is displayed using the viridis color scheme
  38717. </p></dd>
  38718. <dt>&lsquo;<samp>plasma</samp>&rsquo;</dt>
  38719. <dd><p>each channel is displayed using the plasma color scheme
  38720. </p></dd>
  38721. <dt>&lsquo;<samp>cividis</samp>&rsquo;</dt>
  38722. <dd><p>each channel is displayed using the cividis color scheme
  38723. </p></dd>
  38724. <dt>&lsquo;<samp>terrain</samp>&rsquo;</dt>
  38725. <dd><p>each channel is displayed using the terrain color scheme
  38726. </p></dd>
  38727. </dl>
  38728. <p>Default value is &lsquo;<samp>intensity</samp>&rsquo;.
  38729. </p>
  38730. </dd>
  38731. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38732. <dd><p>Specify scale used for calculating intensity color values.
  38733. </p>
  38734. <p>It accepts the following values:
  38735. </p><dl compact="compact">
  38736. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38737. <dd><p>linear
  38738. </p></dd>
  38739. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38740. <dd><p>square root, default
  38741. </p></dd>
  38742. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38743. <dd><p>cubic root
  38744. </p></dd>
  38745. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38746. <dd><p>logarithmic
  38747. </p></dd>
  38748. <dt>&lsquo;<samp>4thrt</samp>&rsquo;</dt>
  38749. <dd><p>4th root
  38750. </p></dd>
  38751. <dt>&lsquo;<samp>5thrt</samp>&rsquo;</dt>
  38752. <dd><p>5th root
  38753. </p></dd>
  38754. </dl>
  38755. <p>Default value is &lsquo;<samp>log</samp>&rsquo;.
  38756. </p>
  38757. </dd>
  38758. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  38759. <dd><p>Specify frequency scale.
  38760. </p>
  38761. <p>It accepts the following values:
  38762. </p><dl compact="compact">
  38763. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38764. <dd><p>linear
  38765. </p></dd>
  38766. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38767. <dd><p>logarithmic
  38768. </p></dd>
  38769. </dl>
  38770. <p>Default value is &lsquo;<samp>lin</samp>&rsquo;.
  38771. </p>
  38772. </dd>
  38773. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  38774. <dd><p>Set saturation modifier for displayed colors. Negative values provide
  38775. alternative color scheme. <code>0</code> is no saturation at all.
  38776. Saturation must be in [-10.0, 10.0] range.
  38777. Default value is <code>1</code>.
  38778. </p>
  38779. </dd>
  38780. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38781. <dd><p>Set window function.
  38782. </p>
  38783. <p>It accepts the following values:
  38784. </p><dl compact="compact">
  38785. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38786. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38787. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  38788. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38789. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38790. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38791. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38792. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38793. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38794. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38795. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38796. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38797. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38798. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38799. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38800. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38801. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38802. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38803. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38804. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38805. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38806. </dl>
  38807. <p>Default value is <code>hann</code>.
  38808. </p>
  38809. </dd>
  38810. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  38811. <dd><p>Set orientation of time vs frequency axis. Can be <code>vertical</code> or
  38812. <code>horizontal</code>. Default is <code>vertical</code>.
  38813. </p>
  38814. </dd>
  38815. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  38816. <dd><p>Set scale gain for calculating intensity color values.
  38817. Default value is <code>1</code>.
  38818. </p>
  38819. </dd>
  38820. <dt>&lsquo;<samp>legend</samp>&rsquo;</dt>
  38821. <dd><p>Draw time and frequency axes and legends. Default is enabled.
  38822. </p>
  38823. </dd>
  38824. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  38825. <dd><p>Set color rotation, must be in [-1.0, 1.0] range.
  38826. Default value is <code>0</code>.
  38827. </p>
  38828. </dd>
  38829. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  38830. <dd><p>Set start frequency from which to display spectrogram. Default is <code>0</code>.
  38831. </p>
  38832. </dd>
  38833. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  38834. <dd><p>Set stop frequency to which to display spectrogram. Default is <code>0</code>.
  38835. </p></dd>
  38836. </dl>
  38837. <a name="Examples-126"></a>
  38838. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-126">37.23.1 Examples</a></h3>
  38839. <ul>
  38840. <li>
  38841. Extract an audio spectrogram of a whole audio track
  38842. in a 1024x1024 picture using <code>ffmpeg</code>:
  38843. <div class="example">
  38844. <pre class="example">ffmpeg -i audio.flac -lavfi showspectrumpic=s=1024x1024 spectrogram.png
  38845. </pre></div>
  38846. </li></ul>
  38847. <a name="showvolume"></a>
  38848. <h2 class="section"><a href="ffprobe-all.html#toc-showvolume">37.24 showvolume</a></h2>
  38849. <p>Convert input audio volume to a video output.
  38850. </p>
  38851. <p>The filter accepts the following options:
  38852. </p>
  38853. <dl compact="compact">
  38854. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  38855. <dd><p>Set video rate.
  38856. </p>
  38857. </dd>
  38858. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  38859. <dd><p>Set border width, allowed range is [0, 5]. Default is 1.
  38860. </p>
  38861. </dd>
  38862. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  38863. <dd><p>Set channel width, allowed range is [80, 8192]. Default is 400.
  38864. </p>
  38865. </dd>
  38866. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  38867. <dd><p>Set channel height, allowed range is [1, 900]. Default is 20.
  38868. </p>
  38869. </dd>
  38870. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  38871. <dd><p>Set fade, allowed range is [0, 1]. Default is 0.95.
  38872. </p>
  38873. </dd>
  38874. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  38875. <dd><p>Set volume color expression.
  38876. </p>
  38877. <p>The expression can use the following variables:
  38878. </p>
  38879. <dl compact="compact">
  38880. <dt>&lsquo;<samp>VOLUME</samp>&rsquo;</dt>
  38881. <dd><p>Current max volume of channel in dB.
  38882. </p>
  38883. </dd>
  38884. <dt>&lsquo;<samp>PEAK</samp>&rsquo;</dt>
  38885. <dd><p>Current peak.
  38886. </p>
  38887. </dd>
  38888. <dt>&lsquo;<samp>CHANNEL</samp>&rsquo;</dt>
  38889. <dd><p>Current channel number, starting from 0.
  38890. </p></dd>
  38891. </dl>
  38892. </dd>
  38893. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  38894. <dd><p>If set, displays channel names. Default is enabled.
  38895. </p>
  38896. </dd>
  38897. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  38898. <dd><p>If set, displays volume values. Default is enabled.
  38899. </p>
  38900. </dd>
  38901. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  38902. <dd><p>Set orientation, can be horizontal: <code>h</code> or vertical: <code>v</code>,
  38903. default is <code>h</code>.
  38904. </p>
  38905. </dd>
  38906. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  38907. <dd><p>Set step size, allowed range is [0, 5]. Default is 0, which means
  38908. step is disabled.
  38909. </p>
  38910. </dd>
  38911. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  38912. <dd><p>Set background opacity, allowed range is [0, 1]. Default is 0.
  38913. </p>
  38914. </dd>
  38915. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  38916. <dd><p>Set metering mode, can be peak: <code>p</code> or rms: <code>r</code>,
  38917. default is <code>p</code>.
  38918. </p>
  38919. </dd>
  38920. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  38921. <dd><p>Set display scale, can be linear: <code>lin</code> or log: <code>log</code>,
  38922. default is <code>lin</code>.
  38923. </p>
  38924. </dd>
  38925. <dt>&lsquo;<samp>dm</samp>&rsquo;</dt>
  38926. <dd><p>In second.
  38927. If set to &gt; 0., display a line for the max level
  38928. in the previous seconds.
  38929. default is disabled: <code>0.</code>
  38930. </p>
  38931. </dd>
  38932. <dt>&lsquo;<samp>dmc</samp>&rsquo;</dt>
  38933. <dd><p>The color of the max line. Use when <code>dm</code> option is set to &gt; 0.
  38934. default is: <code>orange</code>
  38935. </p></dd>
  38936. </dl>
  38937. <a name="showwaves"></a>
  38938. <h2 class="section"><a href="ffprobe-all.html#toc-showwaves">37.25 showwaves</a></h2>
  38939. <p>Convert input audio to a video output, representing the samples waves.
  38940. </p>
  38941. <p>The filter accepts the following options:
  38942. </p>
  38943. <dl compact="compact">
  38944. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38945. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38946. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38947. Default value is <code>600x240</code>.
  38948. </p>
  38949. </dd>
  38950. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38951. <dd><p>Set display mode.
  38952. </p>
  38953. <p>Available values are:
  38954. </p><dl compact="compact">
  38955. <dt>&lsquo;<samp>point</samp>&rsquo;</dt>
  38956. <dd><p>Draw a point for each sample.
  38957. </p>
  38958. </dd>
  38959. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  38960. <dd><p>Draw a vertical line for each sample.
  38961. </p>
  38962. </dd>
  38963. <dt>&lsquo;<samp>p2p</samp>&rsquo;</dt>
  38964. <dd><p>Draw a point for each sample and a line between them.
  38965. </p>
  38966. </dd>
  38967. <dt>&lsquo;<samp>cline</samp>&rsquo;</dt>
  38968. <dd><p>Draw a centered vertical line for each sample.
  38969. </p></dd>
  38970. </dl>
  38971. <p>Default value is <code>point</code>.
  38972. </p>
  38973. </dd>
  38974. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  38975. <dd><p>Set the number of samples which are printed on the same column. A
  38976. larger value will decrease the frame rate. Must be a positive
  38977. integer. This option can be set only if the value for <var>rate</var>
  38978. is not explicitly specified.
  38979. </p>
  38980. </dd>
  38981. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  38982. <dd><p>Set the (approximate) output frame rate. This is done by setting the
  38983. option <var>n</var>. Default value is &quot;25&quot;.
  38984. </p>
  38985. </dd>
  38986. <dt>&lsquo;<samp>split_channels</samp>&rsquo;</dt>
  38987. <dd><p>Set if channels should be drawn separately or overlap. Default value is 0.
  38988. </p>
  38989. </dd>
  38990. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  38991. <dd><p>Set colors separated by &rsquo;|&rsquo; which are going to be used for drawing of each channel.
  38992. </p>
  38993. </dd>
  38994. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38995. <dd><p>Set amplitude scale.
  38996. </p>
  38997. <p>Available values are:
  38998. </p><dl compact="compact">
  38999. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  39000. <dd><p>Linear.
  39001. </p>
  39002. </dd>
  39003. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  39004. <dd><p>Logarithmic.
  39005. </p>
  39006. </dd>
  39007. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  39008. <dd><p>Square root.
  39009. </p>
  39010. </dd>
  39011. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  39012. <dd><p>Cubic root.
  39013. </p></dd>
  39014. </dl>
  39015. <p>Default is linear.
  39016. </p>
  39017. </dd>
  39018. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  39019. <dd><p>Set the draw mode. This is mostly useful to set for high <var>n</var>.
  39020. </p>
  39021. <p>Available values are:
  39022. </p><dl compact="compact">
  39023. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  39024. <dd><p>Scale pixel values for each drawn sample.
  39025. </p>
  39026. </dd>
  39027. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  39028. <dd><p>Draw every sample directly.
  39029. </p></dd>
  39030. </dl>
  39031. <p>Default value is <code>scale</code>.
  39032. </p></dd>
  39033. </dl>
  39034. <a name="Examples-5"></a>
  39035. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-5">37.25.1 Examples</a></h3>
  39036. <ul>
  39037. <li>
  39038. Output the input file audio and the corresponding video representation
  39039. at the same time:
  39040. <div class="example">
  39041. <pre class="example">amovie=a.mp3,asplit[out0],showwaves[out1]
  39042. </pre></div>
  39043. </li><li>
  39044. Create a synthetic signal and show it with showwaves, forcing a
  39045. frame rate of 30 frames per second:
  39046. <div class="example">
  39047. <pre class="example">aevalsrc=sin(1*2*PI*t)*sin(880*2*PI*t):cos(2*PI*200*t),asplit[out0],showwaves=r=30[out1]
  39048. </pre></div>
  39049. </li></ul>
  39050. <a name="showwavespic"></a>
  39051. <h2 class="section"><a href="ffprobe-all.html#toc-showwavespic">37.26 showwavespic</a></h2>
  39052. <p>Convert input audio to a single video frame, representing the samples waves.
  39053. </p>
  39054. <p>The filter accepts the following options:
  39055. </p>
  39056. <dl compact="compact">
  39057. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  39058. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  39059. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  39060. Default value is <code>600x240</code>.
  39061. </p>
  39062. </dd>
  39063. <dt>&lsquo;<samp>split_channels</samp>&rsquo;</dt>
  39064. <dd><p>Set if channels should be drawn separately or overlap. Default value is 0.
  39065. </p>
  39066. </dd>
  39067. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  39068. <dd><p>Set colors separated by &rsquo;|&rsquo; which are going to be used for drawing of each channel.
  39069. </p>
  39070. </dd>
  39071. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  39072. <dd><p>Set amplitude scale.
  39073. </p>
  39074. <p>Available values are:
  39075. </p><dl compact="compact">
  39076. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  39077. <dd><p>Linear.
  39078. </p>
  39079. </dd>
  39080. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  39081. <dd><p>Logarithmic.
  39082. </p>
  39083. </dd>
  39084. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  39085. <dd><p>Square root.
  39086. </p>
  39087. </dd>
  39088. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  39089. <dd><p>Cubic root.
  39090. </p></dd>
  39091. </dl>
  39092. <p>Default is linear.
  39093. </p>
  39094. </dd>
  39095. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  39096. <dd><p>Set the draw mode.
  39097. </p>
  39098. <p>Available values are:
  39099. </p><dl compact="compact">
  39100. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  39101. <dd><p>Scale pixel values for each drawn sample.
  39102. </p>
  39103. </dd>
  39104. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  39105. <dd><p>Draw every sample directly.
  39106. </p></dd>
  39107. </dl>
  39108. <p>Default value is <code>scale</code>.
  39109. </p></dd>
  39110. </dl>
  39111. <a name="Examples-112"></a>
  39112. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-112">37.26.1 Examples</a></h3>
  39113. <ul>
  39114. <li>
  39115. Extract a channel split representation of the wave form of a whole audio track
  39116. in a 1024x800 picture using <code>ffmpeg</code>:
  39117. <div class="example">
  39118. <pre class="example">ffmpeg -i audio.flac -lavfi showwavespic=split_channels=1:s=1024x800 waveform.png
  39119. </pre></div>
  39120. </li></ul>
  39121. <a name="sidedata_002c-asidedata"></a>
  39122. <h2 class="section"><a href="ffprobe-all.html#toc-sidedata_002c-asidedata">37.27 sidedata, asidedata</a></h2>
  39123. <p>Delete frame side data, or select frames based on it.
  39124. </p>
  39125. <p>This filter accepts the following options:
  39126. </p>
  39127. <dl compact="compact">
  39128. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  39129. <dd><p>Set mode of operation of the filter.
  39130. </p>
  39131. <p>Can be one of the following:
  39132. </p>
  39133. <dl compact="compact">
  39134. <dt>&lsquo;<samp>select</samp>&rsquo;</dt>
  39135. <dd><p>Select every frame with side data of <code>type</code>.
  39136. </p>
  39137. </dd>
  39138. <dt>&lsquo;<samp>delete</samp>&rsquo;</dt>
  39139. <dd><p>Delete side data of <code>type</code>. If <code>type</code> is not set, delete all side
  39140. data in the frame.
  39141. </p>
  39142. </dd>
  39143. </dl>
  39144. </dd>
  39145. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  39146. <dd><p>Set side data type used with all modes. Must be set for <code>select</code> mode. For
  39147. the list of frame side data types, refer to the <code>AVFrameSideDataType</code> enum
  39148. in &lsquo;<tt>libavutil/frame.h</tt>&rsquo;. For example, to choose
  39149. <code>AV_FRAME_DATA_PANSCAN</code> side data, you must specify <code>PANSCAN</code>.
  39150. </p>
  39151. </dd>
  39152. </dl>
  39153. <a name="spectrumsynth"></a>
  39154. <h2 class="section"><a href="ffprobe-all.html#toc-spectrumsynth">37.28 spectrumsynth</a></h2>
  39155. <p>Synthesize audio from 2 input video spectrums, first input stream represents
  39156. magnitude across time and second represents phase across time.
  39157. The filter will transform from frequency domain as displayed in videos back
  39158. to time domain as presented in audio output.
  39159. </p>
  39160. <p>This filter is primarily created for reversing processed <a href="#showspectrum">showspectrum</a>
  39161. filter outputs, but can synthesize sound from other spectrograms too.
  39162. But in such case results are going to be poor if the phase data is not
  39163. available, because in such cases phase data need to be recreated, usually
  39164. it&rsquo;s just recreated from random noise.
  39165. For best results use gray only output (<code>channel</code> color mode in
  39166. <a href="#showspectrum">showspectrum</a> filter) and <code>log</code> scale for magnitude video and
  39167. <code>lin</code> scale for phase video. To produce phase, for 2nd video, use
  39168. <code>data</code> option. Inputs videos should generally use <code>fullframe</code>
  39169. slide mode as that saves resources needed for decoding video.
  39170. </p>
  39171. <p>The filter accepts the following options:
  39172. </p>
  39173. <dl compact="compact">
  39174. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  39175. <dd><p>Specify sample rate of output audio, the sample rate of audio from which
  39176. spectrum was generated may differ.
  39177. </p>
  39178. </dd>
  39179. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  39180. <dd><p>Set number of channels represented in input video spectrums.
  39181. </p>
  39182. </dd>
  39183. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  39184. <dd><p>Set scale which was used when generating magnitude input spectrum.
  39185. Can be <code>lin</code> or <code>log</code>. Default is <code>log</code>.
  39186. </p>
  39187. </dd>
  39188. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  39189. <dd><p>Set slide which was used when generating inputs spectrums.
  39190. Can be <code>replace</code>, <code>scroll</code>, <code>fullframe</code> or <code>rscroll</code>.
  39191. Default is <code>fullframe</code>.
  39192. </p>
  39193. </dd>
  39194. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  39195. <dd><p>Set window function used for resynthesis.
  39196. </p>
  39197. </dd>
  39198. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  39199. <dd><p>Set window overlap. In range <code>[0, 1]</code>. Default is <code>1</code>,
  39200. which means optimal overlap for selected window function will be picked.
  39201. </p>
  39202. </dd>
  39203. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  39204. <dd><p>Set orientation of input videos. Can be <code>vertical</code> or <code>horizontal</code>.
  39205. Default is <code>vertical</code>.
  39206. </p></dd>
  39207. </dl>
  39208. <a name="Examples-9"></a>
  39209. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-9">37.28.1 Examples</a></h3>
  39210. <ul>
  39211. <li>
  39212. First create magnitude and phase videos from audio, assuming audio is stereo with 44100 sample rate,
  39213. then resynthesize videos back to audio with spectrumsynth:
  39214. <div class="example">
  39215. <pre class="example">ffmpeg -i input.flac -lavfi showspectrum=mode=separate:scale=log:overlap=0.875:color=channel:slide=fullframe:data=magnitude -an -c:v rawvideo magnitude.nut
  39216. ffmpeg -i input.flac -lavfi showspectrum=mode=separate:scale=lin:overlap=0.875:color=channel:slide=fullframe:data=phase -an -c:v rawvideo phase.nut
  39217. ffmpeg -i magnitude.nut -i phase.nut -lavfi spectrumsynth=channels=2:sample_rate=44100:win_func=hann:overlap=0.875:slide=fullframe output.flac
  39218. </pre></div>
  39219. </li></ul>
  39220. <a name="split_002c-asplit"></a>
  39221. <h2 class="section"><a href="ffprobe-all.html#toc-split_002c-asplit">37.29 split, asplit</a></h2>
  39222. <p>Split input into several identical outputs.
  39223. </p>
  39224. <p><code>asplit</code> works with audio input, <code>split</code> with video.
  39225. </p>
  39226. <p>The filter accepts a single parameter which specifies the number of outputs. If
  39227. unspecified, it defaults to 2.
  39228. </p>
  39229. <a name="Examples-129"></a>
  39230. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-129">37.29.1 Examples</a></h3>
  39231. <ul>
  39232. <li>
  39233. Create two separate outputs from the same input:
  39234. <div class="example">
  39235. <pre class="example">[in] split [out0][out1]
  39236. </pre></div>
  39237. </li><li>
  39238. To create 3 or more outputs, you need to specify the number of
  39239. outputs, like in:
  39240. <div class="example">
  39241. <pre class="example">[in] asplit=3 [out0][out1][out2]
  39242. </pre></div>
  39243. </li><li>
  39244. Create two separate outputs from the same input, one cropped and
  39245. one padded:
  39246. <div class="example">
  39247. <pre class="example">[in] split [splitout1][splitout2];
  39248. [splitout1] crop=100:100:0:0 [cropout];
  39249. [splitout2] pad=200:200:100:100 [padout];
  39250. </pre></div>
  39251. </li><li>
  39252. Create 5 copies of the input audio with <code>ffmpeg</code>:
  39253. <div class="example">
  39254. <pre class="example">ffmpeg -i INPUT -filter_complex asplit=5 OUTPUT
  39255. </pre></div>
  39256. </li></ul>
  39257. <a name="zmq_002c-azmq"></a>
  39258. <h2 class="section"><a href="ffprobe-all.html#toc-zmq_002c-azmq">37.30 zmq, azmq</a></h2>
  39259. <p>Receive commands sent through a libzmq client, and forward them to
  39260. filters in the filtergraph.
  39261. </p>
  39262. <p><code>zmq</code> and <code>azmq</code> work as a pass-through filters. <code>zmq</code>
  39263. must be inserted between two video filters, <code>azmq</code> between two
  39264. audio filters. Both are capable to send messages to any filter type.
  39265. </p>
  39266. <p>To enable these filters you need to install the libzmq library and
  39267. headers and configure FFmpeg with <code>--enable-libzmq</code>.
  39268. </p>
  39269. <p>For more information about libzmq see:
  39270. <a href="http://www.zeromq.org/">http://www.zeromq.org/</a>
  39271. </p>
  39272. <p>The <code>zmq</code> and <code>azmq</code> filters work as a libzmq server, which
  39273. receives messages sent through a network interface defined by the
  39274. &lsquo;<samp>bind_address</samp>&rsquo; (or the abbreviation &quot;&lsquo;<samp>b</samp>&rsquo;&quot;) option.
  39275. Default value of this option is &lsquo;<tt>tcp://localhost:5555</tt>&rsquo;. You may
  39276. want to alter this value to your needs, but do not forget to escape any
  39277. &rsquo;:&rsquo; signs (see <a href="#filtergraph-escaping">filtergraph escaping</a>).
  39278. </p>
  39279. <p>The received message must be in the form:
  39280. </p><div class="example">
  39281. <pre class="example"><var>TARGET</var> <var>COMMAND</var> [<var>ARG</var>]
  39282. </pre></div>
  39283. <p><var>TARGET</var> specifies the target of the command, usually the name of
  39284. the filter class or a specific filter instance name. The default
  39285. filter instance name uses the pattern &lsquo;<samp>Parsed_&lt;filter_name&gt;_&lt;index&gt;</samp>&rsquo;,
  39286. but you can override this by using the &lsquo;<samp>filter_name@id</samp>&rsquo; syntax
  39287. (see <a href="#Filtergraph-syntax">Filtergraph syntax</a>).
  39288. </p>
  39289. <p><var>COMMAND</var> specifies the name of the command for the target filter.
  39290. </p>
  39291. <p><var>ARG</var> is optional and specifies the optional argument list for the
  39292. given <var>COMMAND</var>.
  39293. </p>
  39294. <p>Upon reception, the message is processed and the corresponding command
  39295. is injected into the filtergraph. Depending on the result, the filter
  39296. will send a reply to the client, adopting the format:
  39297. </p><div class="example">
  39298. <pre class="example"><var>ERROR_CODE</var> <var>ERROR_REASON</var>
  39299. <var>MESSAGE</var>
  39300. </pre></div>
  39301. <p><var>MESSAGE</var> is optional.
  39302. </p>
  39303. <a name="Examples-155"></a>
  39304. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-155">37.30.1 Examples</a></h3>
  39305. <p>Look at &lsquo;<tt>tools/zmqsend</tt>&rsquo; for an example of a zmq client which can
  39306. be used to send commands processed by these filters.
  39307. </p>
  39308. <p>Consider the following filtergraph generated by <code>ffplay</code>.
  39309. In this example the last overlay filter has an instance name. All other
  39310. filters will have default instance names.
  39311. </p>
  39312. <div class="example">
  39313. <pre class="example">ffplay -dumpgraph 1 -f lavfi &quot;
  39314. color=s=100x100:c=red [l];
  39315. color=s=100x100:c=blue [r];
  39316. nullsrc=s=200x100, zmq [bg];
  39317. [bg][l] overlay [bg+l];
  39318. [bg+l][r] overlay@my=x=100 &quot;
  39319. </pre></div>
  39320. <p>To change the color of the left side of the video, the following
  39321. command can be used:
  39322. </p><div class="example">
  39323. <pre class="example">echo Parsed_color_0 c yellow | tools/zmqsend
  39324. </pre></div>
  39325. <p>To change the right side:
  39326. </p><div class="example">
  39327. <pre class="example">echo Parsed_color_1 c pink | tools/zmqsend
  39328. </pre></div>
  39329. <p>To change the position of the right side:
  39330. </p><div class="example">
  39331. <pre class="example">echo overlay@my x 150 | tools/zmqsend
  39332. </pre></div>
  39333. <a name="Multimedia-Sources"></a>
  39334. <h1 class="chapter"><a href="ffprobe-all.html#toc-Multimedia-Sources">38 Multimedia Sources</a></h1>
  39335. <p>Below is a description of the currently available multimedia sources.
  39336. </p>
  39337. <a name="amovie"></a>
  39338. <h2 class="section"><a href="ffprobe-all.html#toc-amovie">38.1 amovie</a></h2>
  39339. <p>This is the same as <a href="#movie">movie</a> source, except it selects an audio
  39340. stream by default.
  39341. </p>
  39342. <p><a name="movie"></a>
  39343. </p><a name="movie-1"></a>
  39344. <h2 class="section"><a href="ffprobe-all.html#toc-movie-1">38.2 movie</a></h2>
  39345. <p>Read audio and/or video stream(s) from a movie container.
  39346. </p>
  39347. <p>It accepts the following parameters:
  39348. </p>
  39349. <dl compact="compact">
  39350. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  39351. <dd><p>The name of the resource to read (not necessarily a file; it can also be a
  39352. device or a stream accessed through some protocol).
  39353. </p>
  39354. </dd>
  39355. <dt>&lsquo;<samp>format_name, f</samp>&rsquo;</dt>
  39356. <dd><p>Specifies the format assumed for the movie to read, and can be either
  39357. the name of a container or an input device. If not specified, the
  39358. format is guessed from <var>movie_name</var> or by probing.
  39359. </p>
  39360. </dd>
  39361. <dt>&lsquo;<samp>seek_point, sp</samp>&rsquo;</dt>
  39362. <dd><p>Specifies the seek point in seconds. The frames will be output
  39363. starting from this seek point. The parameter is evaluated with
  39364. <code>av_strtod</code>, so the numerical value may be suffixed by an IS
  39365. postfix. The default value is &quot;0&quot;.
  39366. </p>
  39367. </dd>
  39368. <dt>&lsquo;<samp>streams, s</samp>&rsquo;</dt>
  39369. <dd><p>Specifies the streams to read. Several streams can be specified,
  39370. separated by &quot;+&quot;. The source will then have as many outputs, in the
  39371. same order. The syntax is explained in the <a href="ffmpeg.html#Stream-specifiers">(ffmpeg)&quot;Stream specifiers&quot; section in the ffmpeg manual</a>. Two special names, &quot;dv&quot; and &quot;da&quot; specify
  39372. respectively the default (best suited) video and audio stream. Default
  39373. is &quot;dv&quot;, or &quot;da&quot; if the filter is called as &quot;amovie&quot;.
  39374. </p>
  39375. </dd>
  39376. <dt>&lsquo;<samp>stream_index, si</samp>&rsquo;</dt>
  39377. <dd><p>Specifies the index of the video stream to read. If the value is -1,
  39378. the most suitable video stream will be automatically selected. The default
  39379. value is &quot;-1&quot;. Deprecated. If the filter is called &quot;amovie&quot;, it will select
  39380. audio instead of video.
  39381. </p>
  39382. </dd>
  39383. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  39384. <dd><p>Specifies how many times to read the stream in sequence.
  39385. If the value is 0, the stream will be looped infinitely.
  39386. Default value is &quot;1&quot;.
  39387. </p>
  39388. <p>Note that when the movie is looped the source timestamps are not
  39389. changed, so it will generate non monotonically increasing timestamps.
  39390. </p>
  39391. </dd>
  39392. <dt>&lsquo;<samp>discontinuity</samp>&rsquo;</dt>
  39393. <dd><p>Specifies the time difference between frames above which the point is
  39394. considered a timestamp discontinuity which is removed by adjusting the later
  39395. timestamps.
  39396. </p></dd>
  39397. </dl>
  39398. <p>It allows overlaying a second video on top of the main input of
  39399. a filtergraph, as shown in this graph:
  39400. </p><div class="example">
  39401. <pre class="example">input -----------&gt; deltapts0 --&gt; overlay --&gt; output
  39402. ^
  39403. |
  39404. movie --&gt; scale--&gt; deltapts1 -------+
  39405. </pre></div>
  39406. <a name="Examples-50"></a>
  39407. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-50">38.2.1 Examples</a></h3>
  39408. <ul>
  39409. <li>
  39410. Skip 3.2 seconds from the start of the AVI file in.avi, and overlay it
  39411. on top of the input labelled &quot;in&quot;:
  39412. <div class="example">
  39413. <pre class="example">movie=in.avi:seek_point=3.2, scale=180:-1, setpts=PTS-STARTPTS [over];
  39414. [in] setpts=PTS-STARTPTS [main];
  39415. [main][over] overlay=16:16 [out]
  39416. </pre></div>
  39417. </li><li>
  39418. Read from a video4linux2 device, and overlay it on top of the input
  39419. labelled &quot;in&quot;:
  39420. <div class="example">
  39421. <pre class="example">movie=/dev/video0:f=video4linux2, scale=180:-1, setpts=PTS-STARTPTS [over];
  39422. [in] setpts=PTS-STARTPTS [main];
  39423. [main][over] overlay=16:16 [out]
  39424. </pre></div>
  39425. </li><li>
  39426. Read the first video stream and the audio stream with id 0x81 from
  39427. dvd.vob; the video is connected to the pad named &quot;video&quot; and the audio is
  39428. connected to the pad named &quot;audio&quot;:
  39429. <div class="example">
  39430. <pre class="example">movie=dvd.vob:s=v:0+#0x81 [video] [audio]
  39431. </pre></div>
  39432. </li></ul>
  39433. <a name="Commands-5"></a>
  39434. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-5">38.2.2 Commands</a></h3>
  39435. <p>Both movie and amovie support the following commands:
  39436. </p><dl compact="compact">
  39437. <dt>&lsquo;<samp>seek</samp>&rsquo;</dt>
  39438. <dd><p>Perform seek using &quot;av_seek_frame&quot;.
  39439. The syntax is: seek <var>stream_index</var>|<var>timestamp</var>|<var>flags</var>
  39440. </p><ul>
  39441. <li>
  39442. <var>stream_index</var>: If stream_index is -1, a default
  39443. stream is selected, and <var>timestamp</var> is automatically converted
  39444. from AV_TIME_BASE units to the stream specific time_base.
  39445. </li><li>
  39446. <var>timestamp</var>: Timestamp in AVStream.time_base units
  39447. or, if no stream is specified, in AV_TIME_BASE units.
  39448. </li><li>
  39449. <var>flags</var>: Flags which select direction and seeking mode.
  39450. </li></ul>
  39451. </dd>
  39452. <dt>&lsquo;<samp>get_duration</samp>&rsquo;</dt>
  39453. <dd><p>Get movie duration in AV_TIME_BASE units.
  39454. </p>
  39455. </dd>
  39456. </dl>
  39457. <a name="See-Also"></a>
  39458. <h1 class="chapter"><a href="ffprobe-all.html#toc-See-Also">39 See Also</a></h1>
  39459. <p><a href="ffprobe.html">ffprobe</a>,
  39460. <a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>,
  39461. <a href="ffmpeg-utils.html">ffmpeg-utils</a>,
  39462. <a href="ffmpeg-scaler.html">ffmpeg-scaler</a>,
  39463. <a href="ffmpeg-resampler.html">ffmpeg-resampler</a>,
  39464. <a href="ffmpeg-codecs.html">ffmpeg-codecs</a>,
  39465. <a href="ffmpeg-bitstream-filters.html">ffmpeg-bitstream-filters</a>,
  39466. <a href="ffmpeg-formats.html">ffmpeg-formats</a>,
  39467. <a href="ffmpeg-devices.html">ffmpeg-devices</a>,
  39468. <a href="ffmpeg-protocols.html">ffmpeg-protocols</a>,
  39469. <a href="ffmpeg-filters.html">ffmpeg-filters</a>
  39470. </p>
  39471. <a name="Authors"></a>
  39472. <h1 class="chapter"><a href="ffprobe-all.html#toc-Authors">40 Authors</a></h1>
  39473. <p>The FFmpeg developers.
  39474. </p>
  39475. <p>For details about the authorship, see the Git history of the project
  39476. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  39477. <code>git log</code> in the FFmpeg source directory, or browsing the
  39478. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  39479. </p>
  39480. <p>Maintainers for the specific components are listed in the file
  39481. &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
  39482. </p>
  39483. </div>
  39484. </body>
  39485. </html>