星火直播PC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ffprobe-all.html 1.4MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564
  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 March 9, 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-3" href="#Options-3">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-1" href="#Syntax-1">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-87" href="#Examples-87">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-124" href="#Examples-124">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-17" href="#Options-17">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-31" href="#Options-31">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-15" href="#Options-15">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-11" href="#Options-11">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-27" href="#Options-27">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-1" href="#Options-1">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" href="#null">13.23 null</a></li>
  150. <li><a name="toc-prores_005fmetadata" href="#prores_005fmetadata">13.24 prores_metadata</a></li>
  151. <li><a name="toc-remove_005fextra" href="#remove_005fextra">13.25 remove_extra</a></li>
  152. <li><a name="toc-text2movsub-1" href="#text2movsub-1">13.26 text2movsub</a></li>
  153. <li><a name="toc-trace_005fheaders" href="#trace_005fheaders">13.27 trace_headers</a></li>
  154. <li><a name="toc-truehd_005fcore" href="#truehd_005fcore">13.28 truehd_core</a></li>
  155. <li><a name="toc-vp9_005fmetadata" href="#vp9_005fmetadata">13.29 vp9_metadata</a></li>
  156. <li><a name="toc-vp9_005fsuperframe" href="#vp9_005fsuperframe">13.30 vp9_superframe</a></li>
  157. <li><a name="toc-vp9_005fsuperframe_005fsplit" href="#vp9_005fsuperframe_005fsplit">13.31 vp9_superframe_split</a></li>
  158. <li><a name="toc-vp9_005fraw_005freorder" href="#vp9_005fraw_005freorder">13.32 vp9_raw_reorder</a></li>
  159. </ul></li>
  160. <li><a name="toc-Format-Options" href="#Format-Options">14 Format Options</a>
  161. <ul class="no-bullet">
  162. <li><a name="toc-Format-stream-specifiers-1" href="#Format-stream-specifiers-1">14.1 Format stream specifiers</a></li>
  163. </ul></li>
  164. <li><a name="toc-Demuxers" href="#Demuxers">15 Demuxers</a>
  165. <ul class="no-bullet">
  166. <li><a name="toc-aa" href="#aa">15.1 aa</a></li>
  167. <li><a name="toc-apng" href="#apng">15.2 apng</a></li>
  168. <li><a name="toc-asf" href="#asf">15.3 asf</a></li>
  169. <li><a name="toc-concat-1" href="#concat-1">15.4 concat</a>
  170. <ul class="no-bullet">
  171. <li><a name="toc-Syntax" href="#Syntax">15.4.1 Syntax</a></li>
  172. <li><a name="toc-Options-16" href="#Options-16">15.4.2 Options</a></li>
  173. <li><a name="toc-Examples-40" href="#Examples-40">15.4.3 Examples</a></li>
  174. </ul></li>
  175. <li><a name="toc-dash" href="#dash">15.5 dash</a></li>
  176. <li><a name="toc-flv_002c-live_005fflv" href="#flv_002c-live_005fflv">15.6 flv, live_flv</a></li>
  177. <li><a name="toc-gif" href="#gif">15.7 gif</a></li>
  178. <li><a name="toc-hls" href="#hls">15.8 hls</a></li>
  179. <li><a name="toc-image2" href="#image2">15.9 image2</a>
  180. <ul class="no-bullet">
  181. <li><a name="toc-Examples-138" href="#Examples-138">15.9.1 Examples</a></li>
  182. </ul></li>
  183. <li><a name="toc-libgme" href="#libgme">15.10 libgme</a></li>
  184. <li><a name="toc-libmodplug" href="#libmodplug">15.11 libmodplug</a></li>
  185. <li><a name="toc-libopenmpt" href="#libopenmpt">15.12 libopenmpt</a></li>
  186. <li><a name="toc-mov_002fmp4_002f3gp" href="#mov_002fmp4_002f3gp">15.13 mov/mp4/3gp</a>
  187. <ul class="no-bullet">
  188. <li><a name="toc-Options-2" href="#Options-2">15.13.1 Options</a></li>
  189. <li><a name="toc-Audible-AAX" href="#Audible-AAX">15.13.2 Audible AAX</a></li>
  190. </ul></li>
  191. <li><a name="toc-mpegts" href="#mpegts">15.14 mpegts</a></li>
  192. <li><a name="toc-mpjpeg" href="#mpjpeg">15.15 mpjpeg</a></li>
  193. <li><a name="toc-rawvideo-1" href="#rawvideo-1">15.16 rawvideo</a></li>
  194. <li><a name="toc-sbg" href="#sbg">15.17 sbg</a></li>
  195. <li><a name="toc-tedcaptions" href="#tedcaptions">15.18 tedcaptions</a></li>
  196. <li><a name="toc-vapoursynth" href="#vapoursynth">15.19 vapoursynth</a></li>
  197. </ul></li>
  198. <li><a name="toc-Metadata" href="#Metadata">16 Metadata</a></li>
  199. <li><a name="toc-Protocol-Options" href="#Protocol-Options">17 Protocol Options</a></li>
  200. <li><a name="toc-Protocols" href="#Protocols">18 Protocols</a>
  201. <ul class="no-bullet">
  202. <li><a name="toc-async" href="#async">18.1 async</a></li>
  203. <li><a name="toc-bluray" href="#bluray">18.2 bluray</a></li>
  204. <li><a name="toc-cache" href="#cache">18.3 cache</a></li>
  205. <li><a name="toc-concat-3" href="#concat-3">18.4 concat</a></li>
  206. <li><a name="toc-crypto" href="#crypto">18.5 crypto</a></li>
  207. <li><a name="toc-data" href="#data">18.6 data</a></li>
  208. <li><a name="toc-file" href="#file">18.7 file</a></li>
  209. <li><a name="toc-ftp" href="#ftp">18.8 ftp</a></li>
  210. <li><a name="toc-gopher" href="#gopher">18.9 gopher</a></li>
  211. <li><a name="toc-hls-1" href="#hls-1">18.10 hls</a></li>
  212. <li><a name="toc-http" href="#http">18.11 http</a>
  213. <ul class="no-bullet">
  214. <li><a name="toc-HTTP-Cookies" href="#HTTP-Cookies">18.11.1 HTTP Cookies</a></li>
  215. </ul></li>
  216. <li><a name="toc-Icecast" href="#Icecast">18.12 Icecast</a></li>
  217. <li><a name="toc-mmst" href="#mmst">18.13 mmst</a></li>
  218. <li><a name="toc-mmsh" href="#mmsh">18.14 mmsh</a></li>
  219. <li><a name="toc-md5" href="#md5">18.15 md5</a></li>
  220. <li><a name="toc-pipe" href="#pipe">18.16 pipe</a></li>
  221. <li><a name="toc-prompeg" href="#prompeg">18.17 prompeg</a></li>
  222. <li><a name="toc-rtmp" href="#rtmp">18.18 rtmp</a></li>
  223. <li><a name="toc-rtmpe" href="#rtmpe">18.19 rtmpe</a></li>
  224. <li><a name="toc-rtmps" href="#rtmps">18.20 rtmps</a></li>
  225. <li><a name="toc-rtmpt" href="#rtmpt">18.21 rtmpt</a></li>
  226. <li><a name="toc-rtmpte" href="#rtmpte">18.22 rtmpte</a></li>
  227. <li><a name="toc-rtmpts" href="#rtmpts">18.23 rtmpts</a></li>
  228. <li><a name="toc-libsmbclient" href="#libsmbclient">18.24 libsmbclient</a></li>
  229. <li><a name="toc-libssh" href="#libssh">18.25 libssh</a></li>
  230. <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.26 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></li>
  231. <li><a name="toc-rtp" href="#rtp">18.27 rtp</a></li>
  232. <li><a name="toc-rtsp" href="#rtsp">18.28 rtsp</a>
  233. <ul class="no-bullet">
  234. <li><a name="toc-Examples-49" href="#Examples-49">18.28.1 Examples</a></li>
  235. </ul></li>
  236. <li><a name="toc-sap" href="#sap">18.29 sap</a>
  237. <ul class="no-bullet">
  238. <li><a name="toc-Muxer" href="#Muxer">18.29.1 Muxer</a></li>
  239. <li><a name="toc-Demuxer" href="#Demuxer">18.29.2 Demuxer</a></li>
  240. </ul></li>
  241. <li><a name="toc-sctp" href="#sctp">18.30 sctp</a></li>
  242. <li><a name="toc-srt" href="#srt">18.31 srt</a></li>
  243. <li><a name="toc-srtp" href="#srtp">18.32 srtp</a></li>
  244. <li><a name="toc-subfile" href="#subfile">18.33 subfile</a></li>
  245. <li><a name="toc-tee" href="#tee">18.34 tee</a></li>
  246. <li><a name="toc-tcp" href="#tcp">18.35 tcp</a></li>
  247. <li><a name="toc-tls" href="#tls">18.36 tls</a></li>
  248. <li><a name="toc-udp" href="#udp">18.37 udp</a>
  249. <ul class="no-bullet">
  250. <li><a name="toc-Examples-19" href="#Examples-19">18.37.1 Examples</a></li>
  251. </ul></li>
  252. <li><a name="toc-unix" href="#unix">18.38 unix</a></li>
  253. <li><a name="toc-zmq" href="#zmq">18.39 zmq</a></li>
  254. </ul></li>
  255. <li><a name="toc-Device-Options" href="#Device-Options">19 Device Options</a></li>
  256. <li><a name="toc-Input-Devices" href="#Input-Devices">20 Input Devices</a>
  257. <ul class="no-bullet">
  258. <li><a name="toc-alsa" href="#alsa">20.1 alsa</a>
  259. <ul class="no-bullet">
  260. <li><a name="toc-Options-6" href="#Options-6">20.1.1 Options</a></li>
  261. </ul></li>
  262. <li><a name="toc-android_005fcamera" href="#android_005fcamera">20.2 android_camera</a>
  263. <ul class="no-bullet">
  264. <li><a name="toc-Options-33" href="#Options-33">20.2.1 Options</a></li>
  265. </ul></li>
  266. <li><a name="toc-avfoundation" href="#avfoundation">20.3 avfoundation</a>
  267. <ul class="no-bullet">
  268. <li><a name="toc-Options-23" href="#Options-23">20.3.1 Options</a></li>
  269. <li><a name="toc-Examples-22" href="#Examples-22">20.3.2 Examples</a></li>
  270. </ul></li>
  271. <li><a name="toc-bktr" href="#bktr">20.4 bktr</a>
  272. <ul class="no-bullet">
  273. <li><a name="toc-Options-4" href="#Options-4">20.4.1 Options</a></li>
  274. </ul></li>
  275. <li><a name="toc-decklink" href="#decklink">20.5 decklink</a>
  276. <ul class="no-bullet">
  277. <li><a name="toc-Options-29" href="#Options-29">20.5.1 Options</a></li>
  278. <li><a name="toc-Examples-77" href="#Examples-77">20.5.2 Examples</a></li>
  279. </ul></li>
  280. <li><a name="toc-dshow" href="#dshow">20.6 dshow</a>
  281. <ul class="no-bullet">
  282. <li><a name="toc-Options-18" href="#Options-18">20.6.1 Options</a></li>
  283. <li><a name="toc-Examples-65" href="#Examples-65">20.6.2 Examples</a></li>
  284. </ul></li>
  285. <li><a name="toc-fbdev" href="#fbdev">20.7 fbdev</a>
  286. <ul class="no-bullet">
  287. <li><a name="toc-Options-21" href="#Options-21">20.7.1 Options</a></li>
  288. </ul></li>
  289. <li><a name="toc-gdigrab" href="#gdigrab">20.8 gdigrab</a>
  290. <ul class="no-bullet">
  291. <li><a name="toc-Options-30" href="#Options-30">20.8.1 Options</a></li>
  292. </ul></li>
  293. <li><a name="toc-iec61883" href="#iec61883">20.9 iec61883</a>
  294. <ul class="no-bullet">
  295. <li><a name="toc-Options-32" href="#Options-32">20.9.1 Options</a></li>
  296. <li><a name="toc-Examples-117" href="#Examples-117">20.9.2 Examples</a></li>
  297. </ul></li>
  298. <li><a name="toc-jack" href="#jack">20.10 jack</a>
  299. <ul class="no-bullet">
  300. <li><a name="toc-Options-8" href="#Options-8">20.10.1 Options</a></li>
  301. </ul></li>
  302. <li><a name="toc-kmsgrab" href="#kmsgrab">20.11 kmsgrab</a>
  303. <ul class="no-bullet">
  304. <li><a name="toc-Options-14" href="#Options-14">20.11.1 Options</a></li>
  305. <li><a name="toc-Examples-7" href="#Examples-7">20.11.2 Examples</a></li>
  306. </ul></li>
  307. <li><a name="toc-lavfi" href="#lavfi">20.12 lavfi</a>
  308. <ul class="no-bullet">
  309. <li><a name="toc-Options-5" href="#Options-5">20.12.1 Options</a></li>
  310. <li><a name="toc-Examples-106" href="#Examples-106">20.12.2 Examples</a></li>
  311. </ul></li>
  312. <li><a name="toc-libcdio" href="#libcdio">20.13 libcdio</a>
  313. <ul class="no-bullet">
  314. <li><a name="toc-Options-19" href="#Options-19">20.13.1 Options</a></li>
  315. </ul></li>
  316. <li><a name="toc-libdc1394" href="#libdc1394">20.14 libdc1394</a>
  317. <ul class="no-bullet">
  318. <li><a name="toc-Options-10" href="#Options-10">20.14.1 Options</a></li>
  319. </ul></li>
  320. <li><a name="toc-openal" href="#openal">20.15 openal</a>
  321. <ul class="no-bullet">
  322. <li><a name="toc-Options-7" href="#Options-7">20.15.1 Options</a></li>
  323. <li><a name="toc-Examples-15" href="#Examples-15">20.15.2 Examples</a></li>
  324. </ul></li>
  325. <li><a name="toc-oss" href="#oss">20.16 oss</a>
  326. <ul class="no-bullet">
  327. <li><a name="toc-Options-25" href="#Options-25">20.16.1 Options</a></li>
  328. </ul></li>
  329. <li><a name="toc-pulse" href="#pulse">20.17 pulse</a>
  330. <ul class="no-bullet">
  331. <li><a name="toc-Options-20" href="#Options-20">20.17.1 Options</a></li>
  332. <li><a name="toc-Examples-141" href="#Examples-141">20.17.2 Examples</a></li>
  333. </ul></li>
  334. <li><a name="toc-sndio" href="#sndio">20.18 sndio</a>
  335. <ul class="no-bullet">
  336. <li><a name="toc-Options-9" href="#Options-9">20.18.1 Options</a></li>
  337. </ul></li>
  338. <li><a name="toc-video4linux2_002c-v4l2" href="#video4linux2_002c-v4l2">20.19 video4linux2, v4l2</a>
  339. <ul class="no-bullet">
  340. <li><a name="toc-Options-12" href="#Options-12">20.19.1 Options</a></li>
  341. </ul></li>
  342. <li><a name="toc-vfwcap" href="#vfwcap">20.20 vfwcap</a>
  343. <ul class="no-bullet">
  344. <li><a name="toc-Options" href="#Options">20.20.1 Options</a></li>
  345. </ul></li>
  346. <li><a name="toc-x11grab" href="#x11grab">20.21 x11grab</a>
  347. <ul class="no-bullet">
  348. <li><a name="toc-Options-26" href="#Options-26">20.21.1 Options</a></li>
  349. </ul>
  350. </li>
  351. </ul></li>
  352. <li><a name="toc-Resampler-Options" href="#Resampler-Options">21 Resampler Options</a></li>
  353. <li><a name="toc-Scaler-Options" href="#Scaler-Options">22 Scaler Options</a></li>
  354. <li><a name="toc-Filtering-Introduction" href="#Filtering-Introduction">23 Filtering Introduction</a></li>
  355. <li><a name="toc-graph2dot" href="#graph2dot">24 graph2dot</a></li>
  356. <li><a name="toc-Filtergraph-description" href="#Filtergraph-description">25 Filtergraph description</a>
  357. <ul class="no-bullet">
  358. <li><a name="toc-Filtergraph-syntax-1" href="#Filtergraph-syntax-1">25.1 Filtergraph syntax</a></li>
  359. <li><a name="toc-Notes-on-filtergraph-escaping" href="#Notes-on-filtergraph-escaping">25.2 Notes on filtergraph escaping</a></li>
  360. </ul></li>
  361. <li><a name="toc-Timeline-editing" href="#Timeline-editing">26 Timeline editing</a></li>
  362. <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>
  363. <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>
  364. <li><a name="toc-Audio-Filters" href="#Audio-Filters">29 Audio Filters</a>
  365. <ul class="no-bullet">
  366. <li><a name="toc-acompressor" href="#acompressor">29.1 acompressor</a>
  367. <ul class="no-bullet">
  368. <li><a name="toc-Commands-56" href="#Commands-56">29.1.1 Commands</a></li>
  369. </ul></li>
  370. <li><a name="toc-acontrast" href="#acontrast">29.2 acontrast</a></li>
  371. <li><a name="toc-acopy" href="#acopy">29.3 acopy</a></li>
  372. <li><a name="toc-acrossfade" href="#acrossfade">29.4 acrossfade</a>
  373. <ul class="no-bullet">
  374. <li><a name="toc-Examples-162" href="#Examples-162">29.4.1 Examples</a></li>
  375. </ul></li>
  376. <li><a name="toc-acrossover" href="#acrossover">29.5 acrossover</a></li>
  377. <li><a name="toc-acrusher" href="#acrusher">29.6 acrusher</a></li>
  378. <li><a name="toc-acue" href="#acue">29.7 acue</a></li>
  379. <li><a name="toc-adeclick" href="#adeclick">29.8 adeclick</a></li>
  380. <li><a name="toc-adeclip" href="#adeclip">29.9 adeclip</a></li>
  381. <li><a name="toc-adelay" href="#adelay">29.10 adelay</a>
  382. <ul class="no-bullet">
  383. <li><a name="toc-Examples-112" href="#Examples-112">29.10.1 Examples</a></li>
  384. </ul></li>
  385. <li><a name="toc-aderivative_002c-aintegral" href="#aderivative_002c-aintegral">29.11 aderivative, aintegral</a></li>
  386. <li><a name="toc-aecho" href="#aecho">29.12 aecho</a>
  387. <ul class="no-bullet">
  388. <li><a name="toc-Examples-114" href="#Examples-114">29.12.1 Examples</a></li>
  389. </ul></li>
  390. <li><a name="toc-aemphasis" href="#aemphasis">29.13 aemphasis</a></li>
  391. <li><a name="toc-aeval" href="#aeval">29.14 aeval</a>
  392. <ul class="no-bullet">
  393. <li><a name="toc-Examples-33" href="#Examples-33">29.14.1 Examples</a></li>
  394. </ul></li>
  395. <li><a name="toc-afade-1" href="#afade-1">29.15 afade</a>
  396. <ul class="no-bullet">
  397. <li><a name="toc-Examples-156" href="#Examples-156">29.15.1 Examples</a></li>
  398. </ul></li>
  399. <li><a name="toc-afftdn" href="#afftdn">29.16 afftdn</a>
  400. <ul class="no-bullet">
  401. <li><a name="toc-Commands-35" href="#Commands-35">29.16.1 Commands</a></li>
  402. </ul></li>
  403. <li><a name="toc-afftfilt" href="#afftfilt">29.17 afftfilt</a>
  404. <ul class="no-bullet">
  405. <li><a name="toc-Examples-35" href="#Examples-35">29.17.1 Examples</a></li>
  406. </ul></li>
  407. <li><a name="toc-afir-1" href="#afir-1">29.18 afir</a>
  408. <ul class="no-bullet">
  409. <li><a name="toc-Examples-21" href="#Examples-21">29.18.1 Examples</a></li>
  410. </ul></li>
  411. <li><a name="toc-aformat-1" href="#aformat-1">29.19 aformat</a></li>
  412. <li><a name="toc-agate" href="#agate">29.20 agate</a></li>
  413. <li><a name="toc-aiir" href="#aiir">29.21 aiir</a>
  414. <ul class="no-bullet">
  415. <li><a name="toc-Examples-144" href="#Examples-144">29.21.1 Examples</a></li>
  416. </ul></li>
  417. <li><a name="toc-alimiter" href="#alimiter">29.22 alimiter</a></li>
  418. <li><a name="toc-allpass" href="#allpass">29.23 allpass</a>
  419. <ul class="no-bullet">
  420. <li><a name="toc-Commands-12" href="#Commands-12">29.23.1 Commands</a></li>
  421. </ul></li>
  422. <li><a name="toc-aloop" href="#aloop">29.24 aloop</a></li>
  423. <li><a name="toc-amerge-1" href="#amerge-1">29.25 amerge</a>
  424. <ul class="no-bullet">
  425. <li><a name="toc-Examples-86" href="#Examples-86">29.25.1 Examples</a></li>
  426. </ul></li>
  427. <li><a name="toc-amix" href="#amix">29.26 amix</a></li>
  428. <li><a name="toc-amultiply" href="#amultiply">29.27 amultiply</a></li>
  429. <li><a name="toc-anequalizer" href="#anequalizer">29.28 anequalizer</a>
  430. <ul class="no-bullet">
  431. <li><a name="toc-Examples-132" href="#Examples-132">29.28.1 Examples</a></li>
  432. <li><a name="toc-Commands-59" href="#Commands-59">29.28.2 Commands</a></li>
  433. </ul></li>
  434. <li><a name="toc-anlmdn" href="#anlmdn">29.29 anlmdn</a>
  435. <ul class="no-bullet">
  436. <li><a name="toc-Commands-21" href="#Commands-21">29.29.1 Commands</a></li>
  437. </ul></li>
  438. <li><a name="toc-anlms" href="#anlms">29.30 anlms</a>
  439. <ul class="no-bullet">
  440. <li><a name="toc-Examples-89" href="#Examples-89">29.30.1 Examples</a></li>
  441. <li><a name="toc-Commands-50" href="#Commands-50">29.30.2 Commands</a></li>
  442. </ul></li>
  443. <li><a name="toc-anull" href="#anull">29.31 anull</a></li>
  444. <li><a name="toc-apad" href="#apad">29.32 apad</a>
  445. <ul class="no-bullet">
  446. <li><a name="toc-Examples-115" href="#Examples-115">29.32.1 Examples</a></li>
  447. </ul></li>
  448. <li><a name="toc-aphaser" href="#aphaser">29.33 aphaser</a></li>
  449. <li><a name="toc-apulsator" href="#apulsator">29.34 apulsator</a></li>
  450. <li><a name="toc-aresample-1" href="#aresample-1">29.35 aresample</a>
  451. <ul class="no-bullet">
  452. <li><a name="toc-Examples-47" href="#Examples-47">29.35.1 Examples</a></li>
  453. </ul></li>
  454. <li><a name="toc-areverse" href="#areverse">29.36 areverse</a>
  455. <ul class="no-bullet">
  456. <li><a name="toc-Examples-150" href="#Examples-150">29.36.1 Examples</a></li>
  457. </ul></li>
  458. <li><a name="toc-arnndn" href="#arnndn">29.37 arnndn</a></li>
  459. <li><a name="toc-asetnsamples" href="#asetnsamples">29.38 asetnsamples</a></li>
  460. <li><a name="toc-asetrate" href="#asetrate">29.39 asetrate</a></li>
  461. <li><a name="toc-ashowinfo" href="#ashowinfo">29.40 ashowinfo</a></li>
  462. <li><a name="toc-asoftclip" href="#asoftclip">29.41 asoftclip</a>
  463. <ul class="no-bullet">
  464. <li><a name="toc-Commands-66" href="#Commands-66">29.41.1 Commands</a></li>
  465. </ul></li>
  466. <li><a name="toc-asr" href="#asr">29.42 asr</a></li>
  467. <li><a name="toc-astats-1" href="#astats-1">29.43 astats</a></li>
  468. <li><a name="toc-atempo" href="#atempo">29.44 atempo</a>
  469. <ul class="no-bullet">
  470. <li><a name="toc-Examples-16" href="#Examples-16">29.44.1 Examples</a></li>
  471. <li><a name="toc-Commands-29" href="#Commands-29">29.44.2 Commands</a></li>
  472. </ul></li>
  473. <li><a name="toc-atrim" href="#atrim">29.45 atrim</a></li>
  474. <li><a name="toc-axcorrelate" href="#axcorrelate">29.46 axcorrelate</a>
  475. <ul class="no-bullet">
  476. <li><a name="toc-Examples-131" href="#Examples-131">29.46.1 Examples</a></li>
  477. </ul></li>
  478. <li><a name="toc-bandpass" href="#bandpass">29.47 bandpass</a>
  479. <ul class="no-bullet">
  480. <li><a name="toc-Commands-64" href="#Commands-64">29.47.1 Commands</a></li>
  481. </ul></li>
  482. <li><a name="toc-bandreject" href="#bandreject">29.48 bandreject</a>
  483. <ul class="no-bullet">
  484. <li><a name="toc-Commands-20" href="#Commands-20">29.48.1 Commands</a></li>
  485. </ul></li>
  486. <li><a name="toc-bass_002c-lowshelf" href="#bass_002c-lowshelf">29.49 bass, lowshelf</a>
  487. <ul class="no-bullet">
  488. <li><a name="toc-Commands-7" href="#Commands-7">29.49.1 Commands</a></li>
  489. </ul></li>
  490. <li><a name="toc-biquad" href="#biquad">29.50 biquad</a>
  491. <ul class="no-bullet">
  492. <li><a name="toc-Commands-54" href="#Commands-54">29.50.1 Commands</a></li>
  493. </ul></li>
  494. <li><a name="toc-bs2b" href="#bs2b">29.51 bs2b</a></li>
  495. <li><a name="toc-channelmap" href="#channelmap">29.52 channelmap</a>
  496. <ul class="no-bullet">
  497. <li><a name="toc-Examples-123" href="#Examples-123">29.52.1 Examples</a></li>
  498. </ul></li>
  499. <li><a name="toc-channelsplit" href="#channelsplit">29.53 channelsplit</a>
  500. <ul class="no-bullet">
  501. <li><a name="toc-Examples-108" href="#Examples-108">29.53.1 Examples</a></li>
  502. </ul></li>
  503. <li><a name="toc-chorus" href="#chorus">29.54 chorus</a>
  504. <ul class="no-bullet">
  505. <li><a name="toc-Examples-137" href="#Examples-137">29.54.1 Examples</a></li>
  506. </ul></li>
  507. <li><a name="toc-compand" href="#compand">29.55 compand</a>
  508. <ul class="no-bullet">
  509. <li><a name="toc-Examples-84" href="#Examples-84">29.55.1 Examples</a></li>
  510. </ul></li>
  511. <li><a name="toc-compensationdelay" href="#compensationdelay">29.56 compensationdelay</a></li>
  512. <li><a name="toc-crossfeed" href="#crossfeed">29.57 crossfeed</a></li>
  513. <li><a name="toc-crystalizer" href="#crystalizer">29.58 crystalizer</a>
  514. <ul class="no-bullet">
  515. <li><a name="toc-Commands" href="#Commands">29.58.1 Commands</a></li>
  516. </ul></li>
  517. <li><a name="toc-dcshift" href="#dcshift">29.59 dcshift</a></li>
  518. <li><a name="toc-deesser" href="#deesser">29.60 deesser</a></li>
  519. <li><a name="toc-drmeter" href="#drmeter">29.61 drmeter</a></li>
  520. <li><a name="toc-dynaudnorm" href="#dynaudnorm">29.62 dynaudnorm</a>
  521. <ul class="no-bullet">
  522. <li><a name="toc-Commands-28" href="#Commands-28">29.62.1 Commands</a></li>
  523. </ul></li>
  524. <li><a name="toc-earwax" href="#earwax">29.63 earwax</a></li>
  525. <li><a name="toc-equalizer" href="#equalizer">29.64 equalizer</a>
  526. <ul class="no-bullet">
  527. <li><a name="toc-Examples-25" href="#Examples-25">29.64.1 Examples</a></li>
  528. <li><a name="toc-Commands-51" href="#Commands-51">29.64.2 Commands</a></li>
  529. </ul></li>
  530. <li><a name="toc-extrastereo" href="#extrastereo">29.65 extrastereo</a>
  531. <ul class="no-bullet">
  532. <li><a name="toc-Commands-41" href="#Commands-41">29.65.1 Commands</a></li>
  533. </ul></li>
  534. <li><a name="toc-firequalizer" href="#firequalizer">29.66 firequalizer</a>
  535. <ul class="no-bullet">
  536. <li><a name="toc-Examples-142" href="#Examples-142">29.66.1 Examples</a></li>
  537. </ul></li>
  538. <li><a name="toc-flanger" href="#flanger">29.67 flanger</a></li>
  539. <li><a name="toc-haas" href="#haas">29.68 haas</a></li>
  540. <li><a name="toc-hdcd" href="#hdcd">29.69 hdcd</a></li>
  541. <li><a name="toc-headphone" href="#headphone">29.70 headphone</a>
  542. <ul class="no-bullet">
  543. <li><a name="toc-Examples-54" href="#Examples-54">29.70.1 Examples</a></li>
  544. </ul></li>
  545. <li><a name="toc-highpass" href="#highpass">29.71 highpass</a>
  546. <ul class="no-bullet">
  547. <li><a name="toc-Commands-58" href="#Commands-58">29.71.1 Commands</a></li>
  548. </ul></li>
  549. <li><a name="toc-join" href="#join">29.72 join</a></li>
  550. <li><a name="toc-ladspa" href="#ladspa">29.73 ladspa</a>
  551. <ul class="no-bullet">
  552. <li><a name="toc-Examples" href="#Examples">29.73.1 Examples</a></li>
  553. <li><a name="toc-Commands-23" href="#Commands-23">29.73.2 Commands</a></li>
  554. </ul></li>
  555. <li><a name="toc-loudnorm" href="#loudnorm">29.74 loudnorm</a></li>
  556. <li><a name="toc-lowpass" href="#lowpass">29.75 lowpass</a>
  557. <ul class="no-bullet">
  558. <li><a name="toc-Examples-75" href="#Examples-75">29.75.1 Examples</a></li>
  559. <li><a name="toc-Commands-8" href="#Commands-8">29.75.2 Commands</a></li>
  560. </ul></li>
  561. <li><a name="toc-lv2" href="#lv2">29.76 lv2</a>
  562. <ul class="no-bullet">
  563. <li><a name="toc-Examples-152" href="#Examples-152">29.76.1 Examples</a></li>
  564. </ul></li>
  565. <li><a name="toc-mcompand" href="#mcompand">29.77 mcompand</a></li>
  566. <li><a name="toc-pan-1" href="#pan-1">29.78 pan</a>
  567. <ul class="no-bullet">
  568. <li><a name="toc-Mixing-examples" href="#Mixing-examples">29.78.1 Mixing examples</a></li>
  569. <li><a name="toc-Remapping-examples" href="#Remapping-examples">29.78.2 Remapping examples</a></li>
  570. </ul></li>
  571. <li><a name="toc-replaygain" href="#replaygain">29.79 replaygain</a></li>
  572. <li><a name="toc-resample" href="#resample">29.80 resample</a></li>
  573. <li><a name="toc-rubberband" href="#rubberband">29.81 rubberband</a>
  574. <ul class="no-bullet">
  575. <li><a name="toc-Commands-6" href="#Commands-6">29.81.1 Commands</a></li>
  576. </ul></li>
  577. <li><a name="toc-sidechaincompress" href="#sidechaincompress">29.82 sidechaincompress</a>
  578. <ul class="no-bullet">
  579. <li><a name="toc-Commands-34" href="#Commands-34">29.82.1 Commands</a></li>
  580. <li><a name="toc-Examples-143" href="#Examples-143">29.82.2 Examples</a></li>
  581. </ul></li>
  582. <li><a name="toc-sidechaingate" href="#sidechaingate">29.83 sidechaingate</a></li>
  583. <li><a name="toc-silencedetect" href="#silencedetect">29.84 silencedetect</a>
  584. <ul class="no-bullet">
  585. <li><a name="toc-Examples-95" href="#Examples-95">29.84.1 Examples</a></li>
  586. </ul></li>
  587. <li><a name="toc-silenceremove" href="#silenceremove">29.85 silenceremove</a>
  588. <ul class="no-bullet">
  589. <li><a name="toc-Examples-45" href="#Examples-45">29.85.1 Examples</a></li>
  590. </ul></li>
  591. <li><a name="toc-sofalizer" href="#sofalizer">29.86 sofalizer</a>
  592. <ul class="no-bullet">
  593. <li><a name="toc-Examples-57" href="#Examples-57">29.86.1 Examples</a></li>
  594. </ul></li>
  595. <li><a name="toc-stereotools" href="#stereotools">29.87 stereotools</a>
  596. <ul class="no-bullet">
  597. <li><a name="toc-Examples-6" href="#Examples-6">29.87.1 Examples</a></li>
  598. </ul></li>
  599. <li><a name="toc-stereowiden" href="#stereowiden">29.88 stereowiden</a>
  600. <ul class="no-bullet">
  601. <li><a name="toc-Commands-32" href="#Commands-32">29.88.1 Commands</a></li>
  602. </ul></li>
  603. <li><a name="toc-superequalizer" href="#superequalizer">29.89 superequalizer</a></li>
  604. <li><a name="toc-surround" href="#surround">29.90 surround</a></li>
  605. <li><a name="toc-treble_002c-highshelf" href="#treble_002c-highshelf">29.91 treble, highshelf</a>
  606. <ul class="no-bullet">
  607. <li><a name="toc-Commands-39" href="#Commands-39">29.91.1 Commands</a></li>
  608. </ul></li>
  609. <li><a name="toc-tremolo" href="#tremolo">29.92 tremolo</a></li>
  610. <li><a name="toc-vibrato" href="#vibrato">29.93 vibrato</a></li>
  611. <li><a name="toc-volume" href="#volume">29.94 volume</a>
  612. <ul class="no-bullet">
  613. <li><a name="toc-Commands-42" href="#Commands-42">29.94.1 Commands</a></li>
  614. <li><a name="toc-Examples-85" href="#Examples-85">29.94.2 Examples</a></li>
  615. </ul></li>
  616. <li><a name="toc-volumedetect" href="#volumedetect">29.95 volumedetect</a>
  617. <ul class="no-bullet">
  618. <li><a name="toc-Examples-151" href="#Examples-151">29.95.1 Examples</a></li>
  619. </ul>
  620. </li>
  621. </ul></li>
  622. <li><a name="toc-Audio-Sources" href="#Audio-Sources">30 Audio Sources</a>
  623. <ul class="no-bullet">
  624. <li><a name="toc-abuffer" href="#abuffer">30.1 abuffer</a>
  625. <ul class="no-bullet">
  626. <li><a name="toc-Examples-51" href="#Examples-51">30.1.1 Examples</a></li>
  627. </ul></li>
  628. <li><a name="toc-aevalsrc" href="#aevalsrc">30.2 aevalsrc</a>
  629. <ul class="no-bullet">
  630. <li><a name="toc-Examples-88" href="#Examples-88">30.2.1 Examples</a></li>
  631. </ul></li>
  632. <li><a name="toc-afirsrc" href="#afirsrc">30.3 afirsrc</a></li>
  633. <li><a name="toc-anullsrc" href="#anullsrc">30.4 anullsrc</a>
  634. <ul class="no-bullet">
  635. <li><a name="toc-Examples-37" href="#Examples-37">30.4.1 Examples</a></li>
  636. </ul></li>
  637. <li><a name="toc-flite" href="#flite">30.5 flite</a>
  638. <ul class="no-bullet">
  639. <li><a name="toc-Examples-139" href="#Examples-139">30.5.1 Examples</a></li>
  640. </ul></li>
  641. <li><a name="toc-anoisesrc" href="#anoisesrc">30.6 anoisesrc</a>
  642. <ul class="no-bullet">
  643. <li><a name="toc-Examples-158" href="#Examples-158">30.6.1 Examples</a></li>
  644. </ul></li>
  645. <li><a name="toc-hilbert" href="#hilbert">30.7 hilbert</a></li>
  646. <li><a name="toc-sinc" href="#sinc">30.8 sinc</a></li>
  647. <li><a name="toc-sine" href="#sine">30.9 sine</a>
  648. <ul class="no-bullet">
  649. <li><a name="toc-Examples-14" href="#Examples-14">30.9.1 Examples</a></li>
  650. </ul>
  651. </li>
  652. </ul></li>
  653. <li><a name="toc-Audio-Sinks" href="#Audio-Sinks">31 Audio Sinks</a>
  654. <ul class="no-bullet">
  655. <li><a name="toc-abuffersink" href="#abuffersink">31.1 abuffersink</a></li>
  656. <li><a name="toc-anullsink" href="#anullsink">31.2 anullsink</a></li>
  657. </ul></li>
  658. <li><a name="toc-Video-Filters" href="#Video-Filters">32 Video Filters</a>
  659. <ul class="no-bullet">
  660. <li><a name="toc-addroi" href="#addroi">32.1 addroi</a>
  661. <ul class="no-bullet">
  662. <li><a name="toc-Examples-23" href="#Examples-23">32.1.1 Examples</a></li>
  663. </ul></li>
  664. <li><a name="toc-alphaextract" href="#alphaextract">32.2 alphaextract</a></li>
  665. <li><a name="toc-alphamerge" href="#alphamerge">32.3 alphamerge</a></li>
  666. <li><a name="toc-amplify" href="#amplify">32.4 amplify</a>
  667. <ul class="no-bullet">
  668. <li><a name="toc-Commands-37" href="#Commands-37">32.4.1 Commands</a></li>
  669. </ul></li>
  670. <li><a name="toc-ass" href="#ass">32.5 ass</a></li>
  671. <li><a name="toc-atadenoise" href="#atadenoise">32.6 atadenoise</a>
  672. <ul class="no-bullet">
  673. <li><a name="toc-Commands-13" href="#Commands-13">32.6.1 Commands</a></li>
  674. </ul></li>
  675. <li><a name="toc-avgblur" href="#avgblur">32.7 avgblur</a>
  676. <ul class="no-bullet">
  677. <li><a name="toc-Commands-49" href="#Commands-49">32.7.1 Commands</a></li>
  678. </ul></li>
  679. <li><a name="toc-bbox" href="#bbox">32.8 bbox</a></li>
  680. <li><a name="toc-bilateral" href="#bilateral">32.9 bilateral</a></li>
  681. <li><a name="toc-bitplanenoise" href="#bitplanenoise">32.10 bitplanenoise</a></li>
  682. <li><a name="toc-blackdetect" href="#blackdetect">32.11 blackdetect</a></li>
  683. <li><a name="toc-blackframe" href="#blackframe">32.12 blackframe</a></li>
  684. <li><a name="toc-blend-1" href="#blend-1">32.13 blend</a>
  685. <ul class="no-bullet">
  686. <li><a name="toc-Examples-111" href="#Examples-111">32.13.1 Examples</a></li>
  687. </ul></li>
  688. <li><a name="toc-bm3d" href="#bm3d">32.14 bm3d</a>
  689. <ul class="no-bullet">
  690. <li><a name="toc-Examples-147" href="#Examples-147">32.14.1 Examples</a></li>
  691. </ul></li>
  692. <li><a name="toc-boxblur" href="#boxblur">32.15 boxblur</a>
  693. <ul class="no-bullet">
  694. <li><a name="toc-Examples-159" href="#Examples-159">32.15.1 Examples</a></li>
  695. </ul></li>
  696. <li><a name="toc-bwdif" href="#bwdif">32.16 bwdif</a></li>
  697. <li><a name="toc-cas" href="#cas">32.17 cas</a></li>
  698. <li><a name="toc-chromahold" href="#chromahold">32.18 chromahold</a>
  699. <ul class="no-bullet">
  700. <li><a name="toc-Commands-36" href="#Commands-36">32.18.1 Commands</a></li>
  701. </ul></li>
  702. <li><a name="toc-chromakey" href="#chromakey">32.19 chromakey</a>
  703. <ul class="no-bullet">
  704. <li><a name="toc-Commands-1" href="#Commands-1">32.19.1 Commands</a></li>
  705. <li><a name="toc-Examples-53" href="#Examples-53">32.19.2 Examples</a></li>
  706. </ul></li>
  707. <li><a name="toc-chromashift" href="#chromashift">32.20 chromashift</a>
  708. <ul class="no-bullet">
  709. <li><a name="toc-Commands-10" href="#Commands-10">32.20.1 Commands</a></li>
  710. </ul></li>
  711. <li><a name="toc-ciescope" href="#ciescope">32.21 ciescope</a></li>
  712. <li><a name="toc-codecview" href="#codecview">32.22 codecview</a>
  713. <ul class="no-bullet">
  714. <li><a name="toc-Examples-148" href="#Examples-148">32.22.1 Examples</a></li>
  715. </ul></li>
  716. <li><a name="toc-colorbalance" href="#colorbalance">32.23 colorbalance</a>
  717. <ul class="no-bullet">
  718. <li><a name="toc-Examples-60" href="#Examples-60">32.23.1 Examples</a></li>
  719. <li><a name="toc-Commands-26" href="#Commands-26">32.23.2 Commands</a></li>
  720. </ul></li>
  721. <li><a name="toc-colorchannelmixer" href="#colorchannelmixer">32.24 colorchannelmixer</a>
  722. <ul class="no-bullet">
  723. <li><a name="toc-Examples-38" href="#Examples-38">32.24.1 Examples</a></li>
  724. <li><a name="toc-Commands-65" href="#Commands-65">32.24.2 Commands</a></li>
  725. </ul></li>
  726. <li><a name="toc-colorkey" href="#colorkey">32.25 colorkey</a>
  727. <ul class="no-bullet">
  728. <li><a name="toc-Examples-109" href="#Examples-109">32.25.1 Examples</a></li>
  729. <li><a name="toc-Commands-3" href="#Commands-3">32.25.2 Commands</a></li>
  730. </ul></li>
  731. <li><a name="toc-colorhold" href="#colorhold">32.26 colorhold</a>
  732. <ul class="no-bullet">
  733. <li><a name="toc-Commands-4" href="#Commands-4">32.26.1 Commands</a></li>
  734. </ul></li>
  735. <li><a name="toc-colorlevels" href="#colorlevels">32.27 colorlevels</a>
  736. <ul class="no-bullet">
  737. <li><a name="toc-Examples-29" href="#Examples-29">32.27.1 Examples</a></li>
  738. <li><a name="toc-Commands-22" href="#Commands-22">32.27.2 Commands</a></li>
  739. </ul></li>
  740. <li><a name="toc-colormatrix" href="#colormatrix">32.28 colormatrix</a></li>
  741. <li><a name="toc-colorspace" href="#colorspace">32.29 colorspace</a></li>
  742. <li><a name="toc-convolution" href="#convolution">32.30 convolution</a>
  743. <ul class="no-bullet">
  744. <li><a name="toc-Examples-122" href="#Examples-122">32.30.1 Examples</a></li>
  745. </ul></li>
  746. <li><a name="toc-convolve" href="#convolve">32.31 convolve</a></li>
  747. <li><a name="toc-copy" href="#copy">32.32 copy</a></li>
  748. <li><a name="toc-coreimage-1" href="#coreimage-1">32.33 coreimage</a>
  749. <ul class="no-bullet">
  750. <li><a name="toc-Examples-64" href="#Examples-64">32.33.1 Examples</a></li>
  751. </ul></li>
  752. <li><a name="toc-cover_005frect" href="#cover_005frect">32.34 cover_rect</a>
  753. <ul class="no-bullet">
  754. <li><a name="toc-Examples-72" href="#Examples-72">32.34.1 Examples</a></li>
  755. </ul></li>
  756. <li><a name="toc-crop" href="#crop">32.35 crop</a>
  757. <ul class="no-bullet">
  758. <li><a name="toc-Examples-134" href="#Examples-134">32.35.1 Examples</a></li>
  759. <li><a name="toc-Commands-31" href="#Commands-31">32.35.2 Commands</a></li>
  760. </ul></li>
  761. <li><a name="toc-cropdetect" href="#cropdetect">32.36 cropdetect</a></li>
  762. <li><a name="toc-cue-1" href="#cue-1">32.37 cue</a></li>
  763. <li><a name="toc-curves-1" href="#curves-1">32.38 curves</a>
  764. <ul class="no-bullet">
  765. <li><a name="toc-Examples-18" href="#Examples-18">32.38.1 Examples</a></li>
  766. </ul></li>
  767. <li><a name="toc-datascope" href="#datascope">32.39 datascope</a></li>
  768. <li><a name="toc-dctdnoiz" href="#dctdnoiz">32.40 dctdnoiz</a>
  769. <ul class="no-bullet">
  770. <li><a name="toc-Examples-113" href="#Examples-113">32.40.1 Examples</a></li>
  771. </ul></li>
  772. <li><a name="toc-deband" href="#deband">32.41 deband</a></li>
  773. <li><a name="toc-deblock" href="#deblock">32.42 deblock</a>
  774. <ul class="no-bullet">
  775. <li><a name="toc-Examples-105" href="#Examples-105">32.42.1 Examples</a></li>
  776. </ul></li>
  777. <li><a name="toc-decimate-1" href="#decimate-1">32.43 decimate</a></li>
  778. <li><a name="toc-deconvolve" href="#deconvolve">32.44 deconvolve</a></li>
  779. <li><a name="toc-dedot" href="#dedot">32.45 dedot</a></li>
  780. <li><a name="toc-deflate" href="#deflate">32.46 deflate</a>
  781. <ul class="no-bullet">
  782. <li><a name="toc-Commands-57" href="#Commands-57">32.46.1 Commands</a></li>
  783. </ul></li>
  784. <li><a name="toc-deflicker" href="#deflicker">32.47 deflicker</a></li>
  785. <li><a name="toc-dejudder" href="#dejudder">32.48 dejudder</a></li>
  786. <li><a name="toc-delogo" href="#delogo">32.49 delogo</a>
  787. <ul class="no-bullet">
  788. <li><a name="toc-Examples-80" href="#Examples-80">32.49.1 Examples</a></li>
  789. </ul></li>
  790. <li><a name="toc-derain" href="#derain">32.50 derain</a></li>
  791. <li><a name="toc-deshake" href="#deshake">32.51 deshake</a></li>
  792. <li><a name="toc-despill" href="#despill">32.52 despill</a></li>
  793. <li><a name="toc-detelecine" href="#detelecine">32.53 detelecine</a></li>
  794. <li><a name="toc-dilation" href="#dilation">32.54 dilation</a>
  795. <ul class="no-bullet">
  796. <li><a name="toc-Commands-27" href="#Commands-27">32.54.1 Commands</a></li>
  797. </ul></li>
  798. <li><a name="toc-displace" href="#displace">32.55 displace</a>
  799. <ul class="no-bullet">
  800. <li><a name="toc-Examples-103" href="#Examples-103">32.55.1 Examples</a></li>
  801. </ul></li>
  802. <li><a name="toc-dnn_005fprocessing" href="#dnn_005fprocessing">32.56 dnn_processing</a></li>
  803. <li><a name="toc-drawbox" href="#drawbox">32.57 drawbox</a>
  804. <ul class="no-bullet">
  805. <li><a name="toc-Examples-119" href="#Examples-119">32.57.1 Examples</a></li>
  806. <li><a name="toc-Commands-30" href="#Commands-30">32.57.2 Commands</a></li>
  807. </ul></li>
  808. <li><a name="toc-drawgraph-1" href="#drawgraph-1">32.58 drawgraph</a></li>
  809. <li><a name="toc-drawgrid" href="#drawgrid">32.59 drawgrid</a>
  810. <ul class="no-bullet">
  811. <li><a name="toc-Examples-61" href="#Examples-61">32.59.1 Examples</a></li>
  812. <li><a name="toc-Commands-47" href="#Commands-47">32.59.2 Commands</a></li>
  813. </ul></li>
  814. <li><a name="toc-drawtext-1" href="#drawtext-1">32.60 drawtext</a>
  815. <ul class="no-bullet">
  816. <li><a name="toc-Syntax-2" href="#Syntax-2">32.60.1 Syntax</a></li>
  817. <li><a name="toc-Text-expansion" href="#Text-expansion">32.60.2 Text expansion</a></li>
  818. <li><a name="toc-Commands-40" href="#Commands-40">32.60.3 Commands</a></li>
  819. <li><a name="toc-Examples-58" href="#Examples-58">32.60.4 Examples</a></li>
  820. </ul></li>
  821. <li><a name="toc-edgedetect" href="#edgedetect">32.61 edgedetect</a>
  822. <ul class="no-bullet">
  823. <li><a name="toc-Examples-107" href="#Examples-107">32.61.1 Examples</a></li>
  824. </ul></li>
  825. <li><a name="toc-elbg" href="#elbg">32.62 elbg</a></li>
  826. <li><a name="toc-entropy" href="#entropy">32.63 entropy</a></li>
  827. <li><a name="toc-eq" href="#eq">32.64 eq</a>
  828. <ul class="no-bullet">
  829. <li><a name="toc-Commands-14" href="#Commands-14">32.64.1 Commands</a></li>
  830. </ul></li>
  831. <li><a name="toc-erosion" href="#erosion">32.65 erosion</a>
  832. <ul class="no-bullet">
  833. <li><a name="toc-Commands-61" href="#Commands-61">32.65.1 Commands</a></li>
  834. </ul></li>
  835. <li><a name="toc-extractplanes" href="#extractplanes">32.66 extractplanes</a>
  836. <ul class="no-bullet">
  837. <li><a name="toc-Examples-90" href="#Examples-90">32.66.1 Examples</a></li>
  838. </ul></li>
  839. <li><a name="toc-fade" href="#fade">32.67 fade</a>
  840. <ul class="no-bullet">
  841. <li><a name="toc-Examples-17" href="#Examples-17">32.67.1 Examples</a></li>
  842. </ul></li>
  843. <li><a name="toc-fftdnoiz" href="#fftdnoiz">32.68 fftdnoiz</a></li>
  844. <li><a name="toc-fftfilt" href="#fftfilt">32.69 fftfilt</a>
  845. <ul class="no-bullet">
  846. <li><a name="toc-Examples-83" href="#Examples-83">32.69.1 Examples</a></li>
  847. </ul></li>
  848. <li><a name="toc-field" href="#field">32.70 field</a></li>
  849. <li><a name="toc-fieldhint" href="#fieldhint">32.71 fieldhint</a></li>
  850. <li><a name="toc-fieldmatch" href="#fieldmatch">32.72 fieldmatch</a>
  851. <ul class="no-bullet">
  852. <li><a name="toc-p_002fc_002fn_002fu_002fb-meaning-1" href="#p_002fc_002fn_002fu_002fb-meaning-1">32.72.1 p/c/n/u/b meaning</a>
  853. <ul class="no-bullet">
  854. <li><a name="toc-p_002fc_002fn" href="#p_002fc_002fn">32.72.1.1 p/c/n</a></li>
  855. <li><a name="toc-u_002fb" href="#u_002fb">32.72.1.2 u/b</a></li>
  856. </ul></li>
  857. <li><a name="toc-Examples-11" href="#Examples-11">32.72.2 Examples</a></li>
  858. </ul></li>
  859. <li><a name="toc-fieldorder" href="#fieldorder">32.73 fieldorder</a></li>
  860. <li><a name="toc-fifo_002c-afifo" href="#fifo_002c-afifo">32.74 fifo, afifo</a></li>
  861. <li><a name="toc-fillborders" href="#fillborders">32.75 fillborders</a>
  862. <ul class="no-bullet">
  863. <li><a name="toc-Commands-62" href="#Commands-62">32.75.1 Commands</a></li>
  864. </ul></li>
  865. <li><a name="toc-find_005frect" href="#find_005frect">32.76 find_rect</a>
  866. <ul class="no-bullet">
  867. <li><a name="toc-Examples-154" href="#Examples-154">32.76.1 Examples</a></li>
  868. </ul></li>
  869. <li><a name="toc-floodfill" href="#floodfill">32.77 floodfill</a></li>
  870. <li><a name="toc-format-1" href="#format-1">32.78 format</a>
  871. <ul class="no-bullet">
  872. <li><a name="toc-Examples-149" href="#Examples-149">32.78.1 Examples</a></li>
  873. </ul></li>
  874. <li><a name="toc-fps-1" href="#fps-1">32.79 fps</a>
  875. <ul class="no-bullet">
  876. <li><a name="toc-Examples-63" href="#Examples-63">32.79.1 Examples</a></li>
  877. </ul></li>
  878. <li><a name="toc-framepack" href="#framepack">32.80 framepack</a></li>
  879. <li><a name="toc-framerate" href="#framerate">32.81 framerate</a></li>
  880. <li><a name="toc-framestep" href="#framestep">32.82 framestep</a></li>
  881. <li><a name="toc-freezedetect" href="#freezedetect">32.83 freezedetect</a></li>
  882. <li><a name="toc-freezeframes" href="#freezeframes">32.84 freezeframes</a></li>
  883. <li><a name="toc-frei0r-1" href="#frei0r-1">32.85 frei0r</a>
  884. <ul class="no-bullet">
  885. <li><a name="toc-Examples-30" href="#Examples-30">32.85.1 Examples</a></li>
  886. </ul></li>
  887. <li><a name="toc-fspp" href="#fspp">32.86 fspp</a></li>
  888. <li><a name="toc-gblur" href="#gblur">32.87 gblur</a>
  889. <ul class="no-bullet">
  890. <li><a name="toc-Commands-24" href="#Commands-24">32.87.1 Commands</a></li>
  891. </ul></li>
  892. <li><a name="toc-geq" href="#geq">32.88 geq</a>
  893. <ul class="no-bullet">
  894. <li><a name="toc-Examples-48" href="#Examples-48">32.88.1 Examples</a></li>
  895. </ul></li>
  896. <li><a name="toc-gradfun" href="#gradfun">32.89 gradfun</a>
  897. <ul class="no-bullet">
  898. <li><a name="toc-Examples-146" href="#Examples-146">32.89.1 Examples</a></li>
  899. </ul></li>
  900. <li><a name="toc-graphmonitor-1" href="#graphmonitor-1">32.90 graphmonitor</a></li>
  901. <li><a name="toc-greyedge" href="#greyedge">32.91 greyedge</a>
  902. <ul class="no-bullet">
  903. <li><a name="toc-Examples-94" href="#Examples-94">32.91.1 Examples</a></li>
  904. </ul></li>
  905. <li><a name="toc-haldclut-1" href="#haldclut-1">32.92 haldclut</a>
  906. <ul class="no-bullet">
  907. <li><a name="toc-Workflow-examples" href="#Workflow-examples">32.92.1 Workflow examples</a>
  908. <ul class="no-bullet">
  909. <li><a name="toc-Hald-CLUT-video-stream" href="#Hald-CLUT-video-stream">32.92.1.1 Hald CLUT video stream</a></li>
  910. <li><a name="toc-Hald-CLUT-with-preview" href="#Hald-CLUT-with-preview">32.92.1.2 Hald CLUT with preview</a></li>
  911. </ul>
  912. </li>
  913. </ul></li>
  914. <li><a name="toc-hflip" href="#hflip">32.93 hflip</a></li>
  915. <li><a name="toc-histeq" href="#histeq">32.94 histeq</a></li>
  916. <li><a name="toc-histogram-1" href="#histogram-1">32.95 histogram</a>
  917. <ul class="no-bullet">
  918. <li><a name="toc-Examples-161" href="#Examples-161">32.95.1 Examples</a></li>
  919. </ul></li>
  920. <li><a name="toc-hqdn3d-1" href="#hqdn3d-1">32.96 hqdn3d</a>
  921. <ul class="no-bullet">
  922. <li><a name="toc-Commands-38" href="#Commands-38">32.96.1 Commands</a></li>
  923. </ul></li>
  924. <li><a name="toc-hwdownload-1" href="#hwdownload-1">32.97 hwdownload</a></li>
  925. <li><a name="toc-hwmap" href="#hwmap">32.98 hwmap</a></li>
  926. <li><a name="toc-hwupload-1" href="#hwupload-1">32.99 hwupload</a></li>
  927. <li><a name="toc-hwupload_005fcuda-1" href="#hwupload_005fcuda-1">32.100 hwupload_cuda</a></li>
  928. <li><a name="toc-hqx" href="#hqx">32.101 hqx</a></li>
  929. <li><a name="toc-hstack" href="#hstack">32.102 hstack</a></li>
  930. <li><a name="toc-hue" href="#hue">32.103 hue</a>
  931. <ul class="no-bullet">
  932. <li><a name="toc-Examples-116" href="#Examples-116">32.103.1 Examples</a></li>
  933. <li><a name="toc-Commands-16" href="#Commands-16">32.103.2 Commands</a></li>
  934. </ul></li>
  935. <li><a name="toc-hysteresis" href="#hysteresis">32.104 hysteresis</a></li>
  936. <li><a name="toc-idet" href="#idet">32.105 idet</a></li>
  937. <li><a name="toc-il" href="#il">32.106 il</a>
  938. <ul class="no-bullet">
  939. <li><a name="toc-Commands-60" href="#Commands-60">32.106.1 Commands</a></li>
  940. </ul></li>
  941. <li><a name="toc-inflate" href="#inflate">32.107 inflate</a>
  942. <ul class="no-bullet">
  943. <li><a name="toc-Commands-67" href="#Commands-67">32.107.1 Commands</a></li>
  944. </ul></li>
  945. <li><a name="toc-interlace" href="#interlace">32.108 interlace</a></li>
  946. <li><a name="toc-kerndeint" href="#kerndeint">32.109 kerndeint</a>
  947. <ul class="no-bullet">
  948. <li><a name="toc-Examples-34" href="#Examples-34">32.109.1 Examples</a></li>
  949. </ul></li>
  950. <li><a name="toc-lagfun" href="#lagfun">32.110 lagfun</a></li>
  951. <li><a name="toc-lenscorrection" href="#lenscorrection">32.111 lenscorrection</a>
  952. <ul class="no-bullet">
  953. <li><a name="toc-Options-24" href="#Options-24">32.111.1 Options</a></li>
  954. </ul></li>
  955. <li><a name="toc-lensfun" href="#lensfun">32.112 lensfun</a>
  956. <ul class="no-bullet">
  957. <li><a name="toc-Examples-110" href="#Examples-110">32.112.1 Examples</a></li>
  958. </ul></li>
  959. <li><a name="toc-libvmaf" href="#libvmaf">32.113 libvmaf</a>
  960. <ul class="no-bullet">
  961. <li><a name="toc-Examples-36" href="#Examples-36">32.113.1 Examples</a></li>
  962. </ul></li>
  963. <li><a name="toc-limiter" href="#limiter">32.114 limiter</a></li>
  964. <li><a name="toc-loop" href="#loop">32.115 loop</a>
  965. <ul class="no-bullet">
  966. <li><a name="toc-Examples-129" href="#Examples-129">32.115.1 Examples</a></li>
  967. </ul></li>
  968. <li><a name="toc-lut1d" href="#lut1d">32.116 lut1d</a></li>
  969. <li><a name="toc-lut3d-1" href="#lut3d-1">32.117 lut3d</a></li>
  970. <li><a name="toc-lumakey" href="#lumakey">32.118 lumakey</a>
  971. <ul class="no-bullet">
  972. <li><a name="toc-Commands-45" href="#Commands-45">32.118.1 Commands</a></li>
  973. </ul></li>
  974. <li><a name="toc-lut_002c-lutrgb_002c-lutyuv" href="#lut_002c-lutrgb_002c-lutyuv">32.119 lut, lutrgb, lutyuv</a>
  975. <ul class="no-bullet">
  976. <li><a name="toc-Examples-55" href="#Examples-55">32.119.1 Examples</a></li>
  977. </ul></li>
  978. <li><a name="toc-lut2_002c-tlut2" href="#lut2_002c-tlut2">32.120 lut2, tlut2</a>
  979. <ul class="no-bullet">
  980. <li><a name="toc-Examples-164" href="#Examples-164">32.120.1 Examples</a></li>
  981. </ul></li>
  982. <li><a name="toc-maskedclamp" href="#maskedclamp">32.121 maskedclamp</a></li>
  983. <li><a name="toc-maskedmax" href="#maskedmax">32.122 maskedmax</a></li>
  984. <li><a name="toc-maskedmerge" href="#maskedmerge">32.123 maskedmerge</a></li>
  985. <li><a name="toc-maskedmin" href="#maskedmin">32.124 maskedmin</a></li>
  986. <li><a name="toc-maskfun" href="#maskfun">32.125 maskfun</a></li>
  987. <li><a name="toc-mcdeint" href="#mcdeint">32.126 mcdeint</a></li>
  988. <li><a name="toc-median" href="#median">32.127 median</a>
  989. <ul class="no-bullet">
  990. <li><a name="toc-Commands-15" href="#Commands-15">32.127.1 Commands</a></li>
  991. </ul></li>
  992. <li><a name="toc-mergeplanes" href="#mergeplanes">32.128 mergeplanes</a>
  993. <ul class="no-bullet">
  994. <li><a name="toc-Examples-100" href="#Examples-100">32.128.1 Examples</a></li>
  995. </ul></li>
  996. <li><a name="toc-mestimate" href="#mestimate">32.129 mestimate</a></li>
  997. <li><a name="toc-midequalizer" href="#midequalizer">32.130 midequalizer</a></li>
  998. <li><a name="toc-minterpolate" href="#minterpolate">32.131 minterpolate</a></li>
  999. <li><a name="toc-mix" href="#mix">32.132 mix</a></li>
  1000. <li><a name="toc-mpdecimate" href="#mpdecimate">32.133 mpdecimate</a></li>
  1001. <li><a name="toc-negate" href="#negate">32.134 negate</a></li>
  1002. <li><a name="toc-nlmeans-1" href="#nlmeans-1">32.135 nlmeans</a></li>
  1003. <li><a name="toc-nnedi" href="#nnedi">32.136 nnedi</a></li>
  1004. <li><a name="toc-noformat" href="#noformat">32.137 noformat</a>
  1005. <ul class="no-bullet">
  1006. <li><a name="toc-Examples-13" href="#Examples-13">32.137.1 Examples</a></li>
  1007. </ul></li>
  1008. <li><a name="toc-noise-1" href="#noise-1">32.138 noise</a>
  1009. <ul class="no-bullet">
  1010. <li><a name="toc-Examples-5" href="#Examples-5">32.138.1 Examples</a></li>
  1011. </ul></li>
  1012. <li><a name="toc-normalize" href="#normalize">32.139 normalize</a>
  1013. <ul class="no-bullet">
  1014. <li><a name="toc-Commands-25" href="#Commands-25">32.139.1 Commands</a></li>
  1015. <li><a name="toc-Examples-98" href="#Examples-98">32.139.2 Examples</a></li>
  1016. </ul></li>
  1017. <li><a name="toc-null-1" href="#null-1">32.140 null</a></li>
  1018. <li><a name="toc-ocr" href="#ocr">32.141 ocr</a></li>
  1019. <li><a name="toc-ocv" href="#ocv">32.142 ocv</a>
  1020. <ul class="no-bullet">
  1021. <li><a name="toc-dilate-1" href="#dilate-1">32.142.1 dilate</a></li>
  1022. <li><a name="toc-erode" href="#erode">32.142.2 erode</a></li>
  1023. <li><a name="toc-smooth" href="#smooth">32.142.3 smooth</a></li>
  1024. </ul></li>
  1025. <li><a name="toc-oscilloscope" href="#oscilloscope">32.143 oscilloscope</a>
  1026. <ul class="no-bullet">
  1027. <li><a name="toc-Commands-53" href="#Commands-53">32.143.1 Commands</a></li>
  1028. <li><a name="toc-Examples-2" href="#Examples-2">32.143.2 Examples</a></li>
  1029. </ul></li>
  1030. <li><a name="toc-overlay-1" href="#overlay-1">32.144 overlay</a>
  1031. <ul class="no-bullet">
  1032. <li><a name="toc-Commands-5" href="#Commands-5">32.144.1 Commands</a></li>
  1033. <li><a name="toc-Examples-145" href="#Examples-145">32.144.2 Examples</a></li>
  1034. </ul></li>
  1035. <li><a name="toc-owdenoise" href="#owdenoise">32.145 owdenoise</a></li>
  1036. <li><a name="toc-pad-1" href="#pad-1">32.146 pad</a>
  1037. <ul class="no-bullet">
  1038. <li><a name="toc-Examples-102" href="#Examples-102">32.146.1 Examples</a></li>
  1039. </ul></li>
  1040. <li><a name="toc-palettegen-1" href="#palettegen-1">32.147 palettegen</a>
  1041. <ul class="no-bullet">
  1042. <li><a name="toc-Examples-26" href="#Examples-26">32.147.1 Examples</a></li>
  1043. </ul></li>
  1044. <li><a name="toc-paletteuse" href="#paletteuse">32.148 paletteuse</a>
  1045. <ul class="no-bullet">
  1046. <li><a name="toc-Examples-74" href="#Examples-74">32.148.1 Examples</a></li>
  1047. </ul></li>
  1048. <li><a name="toc-perspective" href="#perspective">32.149 perspective</a></li>
  1049. <li><a name="toc-phase" href="#phase">32.150 phase</a></li>
  1050. <li><a name="toc-photosensitivity" href="#photosensitivity">32.151 photosensitivity</a></li>
  1051. <li><a name="toc-pixdesctest" href="#pixdesctest">32.152 pixdesctest</a></li>
  1052. <li><a name="toc-pixscope" href="#pixscope">32.153 pixscope</a></li>
  1053. <li><a name="toc-pp" href="#pp">32.154 pp</a>
  1054. <ul class="no-bullet">
  1055. <li><a name="toc-Examples-56" href="#Examples-56">32.154.1 Examples</a></li>
  1056. </ul></li>
  1057. <li><a name="toc-pp7" href="#pp7">32.155 pp7</a></li>
  1058. <li><a name="toc-premultiply" href="#premultiply">32.156 premultiply</a></li>
  1059. <li><a name="toc-prewitt" href="#prewitt">32.157 prewitt</a></li>
  1060. <li><a name="toc-pseudocolor" href="#pseudocolor">32.158 pseudocolor</a>
  1061. <ul class="no-bullet">
  1062. <li><a name="toc-Examples-163" href="#Examples-163">32.158.1 Examples</a></li>
  1063. </ul></li>
  1064. <li><a name="toc-psnr" href="#psnr">32.159 psnr</a>
  1065. <ul class="no-bullet">
  1066. <li><a name="toc-Examples-43" href="#Examples-43">32.159.1 Examples</a></li>
  1067. </ul></li>
  1068. <li><a name="toc-pullup-1" href="#pullup-1">32.160 pullup</a></li>
  1069. <li><a name="toc-qp" href="#qp">32.161 qp</a>
  1070. <ul class="no-bullet">
  1071. <li><a name="toc-Examples-135" href="#Examples-135">32.161.1 Examples</a></li>
  1072. </ul></li>
  1073. <li><a name="toc-random" href="#random">32.162 random</a></li>
  1074. <li><a name="toc-readeia608" href="#readeia608">32.163 readeia608</a>
  1075. <ul class="no-bullet">
  1076. <li><a name="toc-Examples-69" href="#Examples-69">32.163.1 Examples</a></li>
  1077. </ul></li>
  1078. <li><a name="toc-readvitc" href="#readvitc">32.164 readvitc</a>
  1079. <ul class="no-bullet">
  1080. <li><a name="toc-Examples-50" href="#Examples-50">32.164.1 Examples</a></li>
  1081. </ul></li>
  1082. <li><a name="toc-remap" href="#remap">32.165 remap</a></li>
  1083. <li><a name="toc-removegrain" href="#removegrain">32.166 removegrain</a></li>
  1084. <li><a name="toc-removelogo" href="#removelogo">32.167 removelogo</a></li>
  1085. <li><a name="toc-repeatfields" href="#repeatfields">32.168 repeatfields</a></li>
  1086. <li><a name="toc-reverse" href="#reverse">32.169 reverse</a>
  1087. <ul class="no-bullet">
  1088. <li><a name="toc-Examples-160" href="#Examples-160">32.169.1 Examples</a></li>
  1089. </ul></li>
  1090. <li><a name="toc-rgbashift" href="#rgbashift">32.170 rgbashift</a>
  1091. <ul class="no-bullet">
  1092. <li><a name="toc-Commands-44" href="#Commands-44">32.170.1 Commands</a></li>
  1093. </ul></li>
  1094. <li><a name="toc-roberts" href="#roberts">32.171 roberts</a></li>
  1095. <li><a name="toc-rotate" href="#rotate">32.172 rotate</a>
  1096. <ul class="no-bullet">
  1097. <li><a name="toc-Examples-97" href="#Examples-97">32.172.1 Examples</a></li>
  1098. <li><a name="toc-Commands-43" href="#Commands-43">32.172.2 Commands</a></li>
  1099. </ul></li>
  1100. <li><a name="toc-sab" href="#sab">32.173 sab</a></li>
  1101. <li><a name="toc-scale-1" href="#scale-1">32.174 scale</a>
  1102. <ul class="no-bullet">
  1103. <li><a name="toc-Options-28" href="#Options-28">32.174.1 Options</a></li>
  1104. <li><a name="toc-Examples-133" href="#Examples-133">32.174.2 Examples</a></li>
  1105. <li><a name="toc-Commands-63" href="#Commands-63">32.174.3 Commands</a></li>
  1106. </ul></li>
  1107. <li><a name="toc-scale_005fnpp" href="#scale_005fnpp">32.175 scale_npp</a></li>
  1108. <li><a name="toc-scale2ref" href="#scale2ref">32.176 scale2ref</a>
  1109. <ul class="no-bullet">
  1110. <li><a name="toc-Examples-62" href="#Examples-62">32.176.1 Examples</a></li>
  1111. <li><a name="toc-Commands-55" href="#Commands-55">32.176.2 Commands</a></li>
  1112. </ul></li>
  1113. <li><a name="toc-scroll" href="#scroll">32.177 scroll</a>
  1114. <ul class="no-bullet">
  1115. <li><a name="toc-Commands-9" href="#Commands-9">32.177.1 Commands</a></li>
  1116. </ul></li>
  1117. <li><a name="toc-selectivecolor-1" href="#selectivecolor-1">32.178 selectivecolor</a>
  1118. <ul class="no-bullet">
  1119. <li><a name="toc-Examples-39" href="#Examples-39">32.178.1 Examples</a></li>
  1120. </ul></li>
  1121. <li><a name="toc-separatefields-1" href="#separatefields-1">32.179 separatefields</a></li>
  1122. <li><a name="toc-setdar_002c-setsar" href="#setdar_002c-setsar">32.180 setdar, setsar</a>
  1123. <ul class="no-bullet">
  1124. <li><a name="toc-Examples-78" href="#Examples-78">32.180.1 Examples</a></li>
  1125. </ul></li>
  1126. <li><a name="toc-setfield-1" href="#setfield-1">32.181 setfield</a></li>
  1127. <li><a name="toc-setparams-1" href="#setparams-1">32.182 setparams</a></li>
  1128. <li><a name="toc-showinfo" href="#showinfo">32.183 showinfo</a></li>
  1129. <li><a name="toc-showpalette" href="#showpalette">32.184 showpalette</a></li>
  1130. <li><a name="toc-shuffleframes" href="#shuffleframes">32.185 shuffleframes</a>
  1131. <ul class="no-bullet">
  1132. <li><a name="toc-Examples-20" href="#Examples-20">32.185.1 Examples</a></li>
  1133. </ul></li>
  1134. <li><a name="toc-shuffleplanes" href="#shuffleplanes">32.186 shuffleplanes</a>
  1135. <ul class="no-bullet">
  1136. <li><a name="toc-Examples-28" href="#Examples-28">32.186.1 Examples</a></li>
  1137. </ul></li>
  1138. <li><a name="toc-signalstats-1" href="#signalstats-1">32.187 signalstats</a>
  1139. <ul class="no-bullet">
  1140. <li><a name="toc-Examples-59" href="#Examples-59">32.187.1 Examples</a></li>
  1141. </ul></li>
  1142. <li><a name="toc-signature-1" href="#signature-1">32.188 signature</a>
  1143. <ul class="no-bullet">
  1144. <li><a name="toc-Examples-92" href="#Examples-92">32.188.1 Examples</a></li>
  1145. </ul></li>
  1146. <li><a name="toc-smartblur-1" href="#smartblur-1">32.189 smartblur</a></li>
  1147. <li><a name="toc-sobel" href="#sobel">32.190 sobel</a></li>
  1148. <li><a name="toc-spp-1" href="#spp-1">32.191 spp</a>
  1149. <ul class="no-bullet">
  1150. <li><a name="toc-Commands-46" href="#Commands-46">32.191.1 Commands</a></li>
  1151. </ul></li>
  1152. <li><a name="toc-sr" href="#sr">32.192 sr</a></li>
  1153. <li><a name="toc-ssim" href="#ssim">32.193 ssim</a>
  1154. <ul class="no-bullet">
  1155. <li><a name="toc-Examples-130" href="#Examples-130">32.193.1 Examples</a></li>
  1156. </ul></li>
  1157. <li><a name="toc-stereo3d" href="#stereo3d">32.194 stereo3d</a>
  1158. <ul class="no-bullet">
  1159. <li><a name="toc-Examples-73" href="#Examples-73">32.194.1 Examples</a></li>
  1160. </ul></li>
  1161. <li><a name="toc-streamselect_002c-astreamselect" href="#streamselect_002c-astreamselect">32.195 streamselect, astreamselect</a>
  1162. <ul class="no-bullet">
  1163. <li><a name="toc-Commands-11" href="#Commands-11">32.195.1 Commands</a></li>
  1164. <li><a name="toc-Examples-76" href="#Examples-76">32.195.2 Examples</a></li>
  1165. </ul></li>
  1166. <li><a name="toc-subtitles-1" href="#subtitles-1">32.196 subtitles</a></li>
  1167. <li><a name="toc-super2xsai" href="#super2xsai">32.197 super2xsai</a></li>
  1168. <li><a name="toc-swaprect" href="#swaprect">32.198 swaprect</a></li>
  1169. <li><a name="toc-swapuv" href="#swapuv">32.199 swapuv</a></li>
  1170. <li><a name="toc-tblend" href="#tblend">32.200 tblend</a></li>
  1171. <li><a name="toc-telecine" href="#telecine">32.201 telecine</a></li>
  1172. <li><a name="toc-thistogram" href="#thistogram">32.202 thistogram</a></li>
  1173. <li><a name="toc-threshold" href="#threshold">32.203 threshold</a>
  1174. <ul class="no-bullet">
  1175. <li><a name="toc-Examples-44" href="#Examples-44">32.203.1 Examples</a></li>
  1176. </ul></li>
  1177. <li><a name="toc-thumbnail" href="#thumbnail">32.204 thumbnail</a>
  1178. <ul class="no-bullet">
  1179. <li><a name="toc-Examples-99" href="#Examples-99">32.204.1 Examples</a></li>
  1180. </ul></li>
  1181. <li><a name="toc-tile" href="#tile">32.205 tile</a>
  1182. <ul class="no-bullet">
  1183. <li><a name="toc-Examples-46" href="#Examples-46">32.205.1 Examples</a></li>
  1184. </ul></li>
  1185. <li><a name="toc-tinterlace" href="#tinterlace">32.206 tinterlace</a></li>
  1186. <li><a name="toc-tmix" href="#tmix">32.207 tmix</a>
  1187. <ul class="no-bullet">
  1188. <li><a name="toc-Examples-157" href="#Examples-157">32.207.1 Examples</a></li>
  1189. </ul></li>
  1190. <li><a name="toc-tonemap-1" href="#tonemap-1">32.208 tonemap</a>
  1191. <ul class="no-bullet">
  1192. <li><a name="toc-Options-34" href="#Options-34">32.208.1 Options</a></li>
  1193. </ul></li>
  1194. <li><a name="toc-tpad" href="#tpad">32.209 tpad</a></li>
  1195. <li><a name="toc-transpose-1" href="#transpose-1">32.210 transpose</a></li>
  1196. <li><a name="toc-transpose_005fnpp" href="#transpose_005fnpp">32.211 transpose_npp</a></li>
  1197. <li><a name="toc-trim" href="#trim">32.212 trim</a></li>
  1198. <li><a name="toc-unpremultiply" href="#unpremultiply">32.213 unpremultiply</a></li>
  1199. <li><a name="toc-unsharp-1" href="#unsharp-1">32.214 unsharp</a>
  1200. <ul class="no-bullet">
  1201. <li><a name="toc-Examples-121" href="#Examples-121">32.214.1 Examples</a></li>
  1202. </ul></li>
  1203. <li><a name="toc-uspp" href="#uspp">32.215 uspp</a></li>
  1204. <li><a name="toc-v360" href="#v360">32.216 v360</a>
  1205. <ul class="no-bullet">
  1206. <li><a name="toc-Examples-96" href="#Examples-96">32.216.1 Examples</a></li>
  1207. <li><a name="toc-Commands-2" href="#Commands-2">32.216.2 Commands</a></li>
  1208. </ul></li>
  1209. <li><a name="toc-vaguedenoiser" href="#vaguedenoiser">32.217 vaguedenoiser</a></li>
  1210. <li><a name="toc-vectorscope" href="#vectorscope">32.218 vectorscope</a></li>
  1211. <li><a name="toc-vidstabdetect-1" href="#vidstabdetect-1">32.219 vidstabdetect</a>
  1212. <ul class="no-bullet">
  1213. <li><a name="toc-Examples-68" href="#Examples-68">32.219.1 Examples</a></li>
  1214. </ul></li>
  1215. <li><a name="toc-vidstabtransform-1" href="#vidstabtransform-1">32.220 vidstabtransform</a>
  1216. <ul class="no-bullet">
  1217. <li><a name="toc-Options-22" href="#Options-22">32.220.1 Options</a></li>
  1218. <li><a name="toc-Examples-140" href="#Examples-140">32.220.2 Examples</a></li>
  1219. </ul></li>
  1220. <li><a name="toc-vflip" href="#vflip">32.221 vflip</a></li>
  1221. <li><a name="toc-vfrdet" href="#vfrdet">32.222 vfrdet</a></li>
  1222. <li><a name="toc-vibrance" href="#vibrance">32.223 vibrance</a>
  1223. <ul class="no-bullet">
  1224. <li><a name="toc-Commands-48" href="#Commands-48">32.223.1 Commands</a></li>
  1225. </ul></li>
  1226. <li><a name="toc-vignette-1" href="#vignette-1">32.224 vignette</a>
  1227. <ul class="no-bullet">
  1228. <li><a name="toc-Expressions" href="#Expressions">32.224.1 Expressions</a></li>
  1229. <li><a name="toc-Examples-9" href="#Examples-9">32.224.2 Examples</a></li>
  1230. </ul></li>
  1231. <li><a name="toc-vmafmotion" href="#vmafmotion">32.225 vmafmotion</a></li>
  1232. <li><a name="toc-vstack" href="#vstack">32.226 vstack</a></li>
  1233. <li><a name="toc-w3fdif" href="#w3fdif">32.227 w3fdif</a></li>
  1234. <li><a name="toc-waveform" href="#waveform">32.228 waveform</a></li>
  1235. <li><a name="toc-weave_002c-doubleweave" href="#weave_002c-doubleweave">32.229 weave, doubleweave</a>
  1236. <ul class="no-bullet">
  1237. <li><a name="toc-Examples-41" href="#Examples-41">32.229.1 Examples</a></li>
  1238. </ul></li>
  1239. <li><a name="toc-xbr" href="#xbr">32.230 xbr</a></li>
  1240. <li><a name="toc-xfade" href="#xfade">32.231 xfade</a>
  1241. <ul class="no-bullet">
  1242. <li><a name="toc-Examples-104" href="#Examples-104">32.231.1 Examples</a></li>
  1243. </ul></li>
  1244. <li><a name="toc-xmedian" href="#xmedian">32.232 xmedian</a></li>
  1245. <li><a name="toc-xstack" href="#xstack">32.233 xstack</a>
  1246. <ul class="no-bullet">
  1247. <li><a name="toc-Examples-70" href="#Examples-70">32.233.1 Examples</a></li>
  1248. </ul></li>
  1249. <li><a name="toc-yadif-1" href="#yadif-1">32.234 yadif</a></li>
  1250. <li><a name="toc-yadif_005fcuda" href="#yadif_005fcuda">32.235 yadif_cuda</a></li>
  1251. <li><a name="toc-yaepblur" href="#yaepblur">32.236 yaepblur</a>
  1252. <ul class="no-bullet">
  1253. <li><a name="toc-Commands-18" href="#Commands-18">32.236.1 Commands</a></li>
  1254. </ul></li>
  1255. <li><a name="toc-zoompan" href="#zoompan">32.237 zoompan</a>
  1256. <ul class="no-bullet">
  1257. <li><a name="toc-Examples-153" href="#Examples-153">32.237.1 Examples</a></li>
  1258. </ul></li>
  1259. <li><a name="toc-zscale-1" href="#zscale-1">32.238 zscale</a>
  1260. <ul class="no-bullet">
  1261. <li><a name="toc-Options-13" href="#Options-13">32.238.1 Options</a></li>
  1262. <li><a name="toc-Commands-17" href="#Commands-17">32.238.2 Commands</a></li>
  1263. </ul>
  1264. </li>
  1265. </ul></li>
  1266. <li><a name="toc-OpenCL-Video-Filters" href="#OpenCL-Video-Filters">33 OpenCL Video Filters</a>
  1267. <ul class="no-bullet">
  1268. <li><a name="toc-avgblur_005fopencl" href="#avgblur_005fopencl">33.1 avgblur_opencl</a>
  1269. <ul class="no-bullet">
  1270. <li><a name="toc-Example-3" href="#Example-3">33.1.1 Example</a></li>
  1271. </ul></li>
  1272. <li><a name="toc-boxblur_005fopencl" href="#boxblur_005fopencl">33.2 boxblur_opencl</a>
  1273. <ul class="no-bullet">
  1274. <li><a name="toc-Examples-128" href="#Examples-128">33.2.1 Examples</a></li>
  1275. </ul></li>
  1276. <li><a name="toc-colorkey_005fopencl" href="#colorkey_005fopencl">33.3 colorkey_opencl</a>
  1277. <ul class="no-bullet">
  1278. <li><a name="toc-Examples-127" href="#Examples-127">33.3.1 Examples</a></li>
  1279. </ul></li>
  1280. <li><a name="toc-convolution_005fopencl" href="#convolution_005fopencl">33.4 convolution_opencl</a>
  1281. <ul class="no-bullet">
  1282. <li><a name="toc-Examples-79" href="#Examples-79">33.4.1 Examples</a></li>
  1283. </ul></li>
  1284. <li><a name="toc-erosion_005fopencl" href="#erosion_005fopencl">33.5 erosion_opencl</a>
  1285. <ul class="no-bullet">
  1286. <li><a name="toc-Example" href="#Example">33.5.1 Example</a></li>
  1287. </ul></li>
  1288. <li><a name="toc-deshake_005fopencl" href="#deshake_005fopencl">33.6 deshake_opencl</a>
  1289. <ul class="no-bullet">
  1290. <li><a name="toc-Examples-66" href="#Examples-66">33.6.1 Examples</a></li>
  1291. </ul></li>
  1292. <li><a name="toc-dilation_005fopencl" href="#dilation_005fopencl">33.7 dilation_opencl</a>
  1293. <ul class="no-bullet">
  1294. <li><a name="toc-Example-1" href="#Example-1">33.7.1 Example</a></li>
  1295. </ul></li>
  1296. <li><a name="toc-nlmeans_005fopencl" href="#nlmeans_005fopencl">33.8 nlmeans_opencl</a></li>
  1297. <li><a name="toc-overlay_005fopencl" href="#overlay_005fopencl">33.9 overlay_opencl</a>
  1298. <ul class="no-bullet">
  1299. <li><a name="toc-Examples-118" href="#Examples-118">33.9.1 Examples</a></li>
  1300. </ul></li>
  1301. <li><a name="toc-pad_005fopencl" href="#pad_005fopencl">33.10 pad_opencl</a></li>
  1302. <li><a name="toc-prewitt_005fopencl" href="#prewitt_005fopencl">33.11 prewitt_opencl</a>
  1303. <ul class="no-bullet">
  1304. <li><a name="toc-Example-2" href="#Example-2">33.11.1 Example</a></li>
  1305. </ul></li>
  1306. <li><a name="toc-program_005fopencl-1" href="#program_005fopencl-1">33.12 program_opencl</a></li>
  1307. <li><a name="toc-roberts_005fopencl" href="#roberts_005fopencl">33.13 roberts_opencl</a>
  1308. <ul class="no-bullet">
  1309. <li><a name="toc-Example-4" href="#Example-4">33.13.1 Example</a></li>
  1310. </ul></li>
  1311. <li><a name="toc-sobel_005fopencl" href="#sobel_005fopencl">33.14 sobel_opencl</a>
  1312. <ul class="no-bullet">
  1313. <li><a name="toc-Example-5" href="#Example-5">33.14.1 Example</a></li>
  1314. </ul></li>
  1315. <li><a name="toc-tonemap_005fopencl" href="#tonemap_005fopencl">33.15 tonemap_opencl</a>
  1316. <ul class="no-bullet">
  1317. <li><a name="toc-Example-6" href="#Example-6">33.15.1 Example</a></li>
  1318. </ul></li>
  1319. <li><a name="toc-unsharp_005fopencl" href="#unsharp_005fopencl">33.16 unsharp_opencl</a>
  1320. <ul class="no-bullet">
  1321. <li><a name="toc-Examples-1" href="#Examples-1">33.16.1 Examples</a></li>
  1322. </ul></li>
  1323. <li><a name="toc-xfade_005fopencl" href="#xfade_005fopencl">33.17 xfade_opencl</a></li>
  1324. </ul></li>
  1325. <li><a name="toc-VAAPI-Video-Filters" href="#VAAPI-Video-Filters">34 VAAPI Video Filters</a>
  1326. <ul class="no-bullet">
  1327. <li><a name="toc-tonemap_005fvaapi" href="#tonemap_005fvaapi">34.1 tonemap_vaapi</a>
  1328. <ul class="no-bullet">
  1329. <li><a name="toc-Example-7" href="#Example-7">34.1.1 Example</a></li>
  1330. </ul>
  1331. </li>
  1332. </ul></li>
  1333. <li><a name="toc-Video-Sources" href="#Video-Sources">35 Video Sources</a>
  1334. <ul class="no-bullet">
  1335. <li><a name="toc-buffer" href="#buffer">35.1 buffer</a></li>
  1336. <li><a name="toc-cellauto" href="#cellauto">35.2 cellauto</a>
  1337. <ul class="no-bullet">
  1338. <li><a name="toc-Examples-125" href="#Examples-125">35.2.1 Examples</a></li>
  1339. </ul></li>
  1340. <li><a name="toc-coreimagesrc-1" href="#coreimagesrc-1">35.3 coreimagesrc</a>
  1341. <ul class="no-bullet">
  1342. <li><a name="toc-Examples-120" href="#Examples-120">35.3.1 Examples</a></li>
  1343. </ul></li>
  1344. <li><a name="toc-mandelbrot" href="#mandelbrot">35.4 mandelbrot</a></li>
  1345. <li><a name="toc-mptestsrc" href="#mptestsrc">35.5 mptestsrc</a></li>
  1346. <li><a name="toc-frei0r_005fsrc" href="#frei0r_005fsrc">35.6 frei0r_src</a></li>
  1347. <li><a name="toc-life" href="#life">35.7 life</a>
  1348. <ul class="no-bullet">
  1349. <li><a name="toc-Examples-91" href="#Examples-91">35.7.1 Examples</a></li>
  1350. </ul></li>
  1351. <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.8 allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc</a>
  1352. <ul class="no-bullet">
  1353. <li><a name="toc-Examples-81" href="#Examples-81">35.8.1 Examples</a></li>
  1354. <li><a name="toc-Commands-19" href="#Commands-19">35.8.2 Commands</a></li>
  1355. </ul></li>
  1356. <li><a name="toc-openclsrc" href="#openclsrc">35.9 openclsrc</a></li>
  1357. <li><a name="toc-sierpinski" href="#sierpinski">35.10 sierpinski</a></li>
  1358. </ul></li>
  1359. <li><a name="toc-Video-Sinks" href="#Video-Sinks">36 Video Sinks</a>
  1360. <ul class="no-bullet">
  1361. <li><a name="toc-buffersink" href="#buffersink">36.1 buffersink</a></li>
  1362. <li><a name="toc-nullsink" href="#nullsink">36.2 nullsink</a></li>
  1363. </ul></li>
  1364. <li><a name="toc-Multimedia-Filters" href="#Multimedia-Filters">37 Multimedia Filters</a>
  1365. <ul class="no-bullet">
  1366. <li><a name="toc-abitscope" href="#abitscope">37.1 abitscope</a></li>
  1367. <li><a name="toc-adrawgraph" href="#adrawgraph">37.2 adrawgraph</a></li>
  1368. <li><a name="toc-agraphmonitor" href="#agraphmonitor">37.3 agraphmonitor</a></li>
  1369. <li><a name="toc-ahistogram" href="#ahistogram">37.4 ahistogram</a></li>
  1370. <li><a name="toc-aphasemeter" href="#aphasemeter">37.5 aphasemeter</a></li>
  1371. <li><a name="toc-avectorscope" href="#avectorscope">37.6 avectorscope</a>
  1372. <ul class="no-bullet">
  1373. <li><a name="toc-Examples-67" href="#Examples-67">37.6.1 Examples</a></li>
  1374. </ul></li>
  1375. <li><a name="toc-bench_002c-abench" href="#bench_002c-abench">37.7 bench, abench</a>
  1376. <ul class="no-bullet">
  1377. <li><a name="toc-Examples-12" href="#Examples-12">37.7.1 Examples</a></li>
  1378. </ul></li>
  1379. <li><a name="toc-concat-2" href="#concat-2">37.8 concat</a>
  1380. <ul class="no-bullet">
  1381. <li><a name="toc-Examples-31" href="#Examples-31">37.8.1 Examples</a></li>
  1382. <li><a name="toc-Commands-33" href="#Commands-33">37.8.2 Commands</a></li>
  1383. </ul></li>
  1384. <li><a name="toc-ebur128-1" href="#ebur128-1">37.9 ebur128</a>
  1385. <ul class="no-bullet">
  1386. <li><a name="toc-Examples-27" href="#Examples-27">37.9.1 Examples</a></li>
  1387. </ul></li>
  1388. <li><a name="toc-interleave_002c-ainterleave" href="#interleave_002c-ainterleave">37.10 interleave, ainterleave</a>
  1389. <ul class="no-bullet">
  1390. <li><a name="toc-Examples-4" href="#Examples-4">37.10.1 Examples</a></li>
  1391. </ul></li>
  1392. <li><a name="toc-metadata_002c-ametadata" href="#metadata_002c-ametadata">37.11 metadata, ametadata</a>
  1393. <ul class="no-bullet">
  1394. <li><a name="toc-Examples-155" href="#Examples-155">37.11.1 Examples</a></li>
  1395. </ul></li>
  1396. <li><a name="toc-perms_002c-aperms" href="#perms_002c-aperms">37.12 perms, aperms</a></li>
  1397. <li><a name="toc-realtime_002c-arealtime" href="#realtime_002c-arealtime">37.13 realtime, arealtime</a></li>
  1398. <li><a name="toc-select_002c-aselect" href="#select_002c-aselect">37.14 select, aselect</a>
  1399. <ul class="no-bullet">
  1400. <li><a name="toc-Examples-136" href="#Examples-136">37.14.1 Examples</a></li>
  1401. </ul></li>
  1402. <li><a name="toc-sendcmd_002c-asendcmd" href="#sendcmd_002c-asendcmd">37.15 sendcmd, asendcmd</a>
  1403. <ul class="no-bullet">
  1404. <li><a name="toc-Commands-syntax" href="#Commands-syntax">37.15.1 Commands syntax</a></li>
  1405. <li><a name="toc-Examples-24" href="#Examples-24">37.15.2 Examples</a></li>
  1406. </ul></li>
  1407. <li><a name="toc-setpts_002c-asetpts" href="#setpts_002c-asetpts">37.16 setpts, asetpts</a>
  1408. <ul class="no-bullet">
  1409. <li><a name="toc-Examples-126" href="#Examples-126">37.16.1 Examples</a></li>
  1410. </ul></li>
  1411. <li><a name="toc-setrange" href="#setrange">37.17 setrange</a></li>
  1412. <li><a name="toc-settb_002c-asettb" href="#settb_002c-asettb">37.18 settb, asettb</a>
  1413. <ul class="no-bullet">
  1414. <li><a name="toc-Examples-3" href="#Examples-3">37.18.1 Examples</a></li>
  1415. </ul></li>
  1416. <li><a name="toc-showcqt" href="#showcqt">37.19 showcqt</a>
  1417. <ul class="no-bullet">
  1418. <li><a name="toc-Examples-101" href="#Examples-101">37.19.1 Examples</a></li>
  1419. </ul></li>
  1420. <li><a name="toc-showfreqs" href="#showfreqs">37.20 showfreqs</a></li>
  1421. <li><a name="toc-showspatial" href="#showspatial">37.21 showspatial</a></li>
  1422. <li><a name="toc-showspectrum-1" href="#showspectrum-1">37.22 showspectrum</a>
  1423. <ul class="no-bullet">
  1424. <li><a name="toc-Examples-32" href="#Examples-32">37.22.1 Examples</a></li>
  1425. </ul></li>
  1426. <li><a name="toc-showspectrumpic" href="#showspectrumpic">37.23 showspectrumpic</a>
  1427. <ul class="no-bullet">
  1428. <li><a name="toc-Examples-52" href="#Examples-52">37.23.1 Examples</a></li>
  1429. </ul></li>
  1430. <li><a name="toc-showvolume" href="#showvolume">37.24 showvolume</a></li>
  1431. <li><a name="toc-showwaves" href="#showwaves">37.25 showwaves</a>
  1432. <ul class="no-bullet">
  1433. <li><a name="toc-Examples-42" href="#Examples-42">37.25.1 Examples</a></li>
  1434. </ul></li>
  1435. <li><a name="toc-showwavespic" href="#showwavespic">37.26 showwavespic</a>
  1436. <ul class="no-bullet">
  1437. <li><a name="toc-Examples-8" href="#Examples-8">37.26.1 Examples</a></li>
  1438. </ul></li>
  1439. <li><a name="toc-sidedata_002c-asidedata" href="#sidedata_002c-asidedata">37.27 sidedata, asidedata</a></li>
  1440. <li><a name="toc-spectrumsynth" href="#spectrumsynth">37.28 spectrumsynth</a>
  1441. <ul class="no-bullet">
  1442. <li><a name="toc-Examples-10" href="#Examples-10">37.28.1 Examples</a></li>
  1443. </ul></li>
  1444. <li><a name="toc-split_002c-asplit" href="#split_002c-asplit">37.29 split, asplit</a>
  1445. <ul class="no-bullet">
  1446. <li><a name="toc-Examples-93" href="#Examples-93">37.29.1 Examples</a></li>
  1447. </ul></li>
  1448. <li><a name="toc-zmq_002c-azmq" href="#zmq_002c-azmq">37.30 zmq, azmq</a>
  1449. <ul class="no-bullet">
  1450. <li><a name="toc-Examples-82" href="#Examples-82">37.30.1 Examples</a></li>
  1451. </ul>
  1452. </li>
  1453. </ul></li>
  1454. <li><a name="toc-Multimedia-Sources" href="#Multimedia-Sources">38 Multimedia Sources</a>
  1455. <ul class="no-bullet">
  1456. <li><a name="toc-amovie" href="#amovie">38.1 amovie</a></li>
  1457. <li><a name="toc-movie-1" href="#movie-1">38.2 movie</a>
  1458. <ul class="no-bullet">
  1459. <li><a name="toc-Examples-71" href="#Examples-71">38.2.1 Examples</a></li>
  1460. <li><a name="toc-Commands-52" href="#Commands-52">38.2.2 Commands</a></li>
  1461. </ul>
  1462. </li>
  1463. </ul></li>
  1464. <li><a name="toc-See-Also" href="#See-Also">39 See Also</a></li>
  1465. <li><a name="toc-Authors" href="#Authors">40 Authors</a></li>
  1466. </ul>
  1467. </div>
  1468. <hr size="6">
  1469. <a name="Synopsis"></a>
  1470. <h1 class="chapter"><a href="ffprobe-all.html#toc-Synopsis">1 Synopsis</a></h1>
  1471. <p>ffprobe [<var>options</var>] [&lsquo;<tt>input_url</tt>&rsquo;]
  1472. </p>
  1473. <a name="Description"></a>
  1474. <h1 class="chapter"><a href="ffprobe-all.html#toc-Description">2 Description</a></h1>
  1475. <p>ffprobe gathers information from multimedia streams and prints it in
  1476. human- and machine-readable fashion.
  1477. </p>
  1478. <p>For example it can be used to check the format of the container used
  1479. by a multimedia stream and the format and type of each media stream
  1480. contained in it.
  1481. </p>
  1482. <p>If a url is specified in input, ffprobe will try to open and
  1483. probe the url content. If the url cannot be opened or recognized as
  1484. a multimedia file, a positive exit code is returned.
  1485. </p>
  1486. <p>ffprobe may be employed both as a standalone application or in
  1487. combination with a textual filter, which may perform more
  1488. sophisticated processing, e.g. statistical processing or plotting.
  1489. </p>
  1490. <p>Options are used to list some of the formats supported by ffprobe or
  1491. for specifying which information to display, and for setting how
  1492. ffprobe will show it.
  1493. </p>
  1494. <p>ffprobe output is designed to be easily parsable by a textual filter,
  1495. and consists of one or more sections of a form defined by the selected
  1496. writer, which is specified by the &lsquo;<samp>print_format</samp>&rsquo; option.
  1497. </p>
  1498. <p>Sections may contain other nested sections, and are identified by a
  1499. name (which may be shared by other sections), and an unique
  1500. name. See the output of &lsquo;<samp>sections</samp>&rsquo;.
  1501. </p>
  1502. <p>Metadata tags stored in the container or in the streams are recognized
  1503. and printed in the corresponding &quot;FORMAT&quot;, &quot;STREAM&quot; or &quot;PROGRAM_STREAM&quot;
  1504. section.
  1505. </p>
  1506. <a name="Options-3"></a>
  1507. <h1 class="chapter"><a href="ffprobe-all.html#toc-Options-3">3 Options</a></h1>
  1508. <p>All the numerical options, if not specified otherwise, accept a string
  1509. representing a number as input, which may be followed by one of the SI
  1510. unit prefixes, for example: &rsquo;K&rsquo;, &rsquo;M&rsquo;, or &rsquo;G&rsquo;.
  1511. </p>
  1512. <p>If &rsquo;i&rsquo; is appended to the SI unit prefix, the complete prefix will be
  1513. interpreted as a unit prefix for binary multiples, which are based on
  1514. powers of 1024 instead of powers of 1000. Appending &rsquo;B&rsquo; to the SI unit
  1515. prefix multiplies the value by 8. This allows using, for example:
  1516. &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as number suffixes.
  1517. </p>
  1518. <p>Options which do not take arguments are boolean options, and set the
  1519. corresponding value to true. They can be set to false by prefixing
  1520. the option name with &quot;no&quot;. For example using &quot;-nofoo&quot;
  1521. will set the boolean option with name &quot;foo&quot; to false.
  1522. </p>
  1523. <p><a name="Stream-specifiers"></a>
  1524. </p><a name="Stream-specifiers-1"></a>
  1525. <h2 class="section"><a href="ffprobe-all.html#toc-Stream-specifiers-1">3.1 Stream specifiers</a></h2>
  1526. <p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
  1527. are used to precisely specify which stream(s) a given option belongs to.
  1528. </p>
  1529. <p>A stream specifier is a string generally appended to the option name and
  1530. separated from it by a colon. E.g. <code>-codec:a:1 ac3</code> contains the
  1531. <code>a:1</code> stream specifier, which matches the second audio stream. Therefore, it
  1532. would select the ac3 codec for the second audio stream.
  1533. </p>
  1534. <p>A stream specifier can match several streams, so that the option is applied to all
  1535. of them. E.g. the stream specifier in <code>-b:a 128k</code> matches all audio
  1536. streams.
  1537. </p>
  1538. <p>An empty stream specifier matches all streams. For example, <code>-codec copy</code>
  1539. or <code>-codec: copy</code> would copy all the streams without reencoding.
  1540. </p>
  1541. <p>Possible forms of stream specifiers are:
  1542. </p><dl compact="compact">
  1543. <dt>&lsquo;<samp><var>stream_index</var></samp>&rsquo;</dt>
  1544. <dd><p>Matches the stream with this index. E.g. <code>-threads:1 4</code> would set the
  1545. thread count for the second stream to 4. If <var>stream_index</var> is used as an
  1546. additional stream specifier (see below), then it selects stream number
  1547. <var>stream_index</var> from the matching streams. Stream numbering is based on the
  1548. order of the streams as detected by libavformat except when a program ID is
  1549. also specified. In this case it is based on the ordering of the streams in the
  1550. program.
  1551. </p></dd>
  1552. <dt>&lsquo;<samp><var>stream_type</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  1553. <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;
  1554. for subtitle, &rsquo;d&rsquo; for data, and &rsquo;t&rsquo; for attachments. &rsquo;v&rsquo; matches all video
  1555. streams, &rsquo;V&rsquo; only matches video streams which are not attached pictures, video
  1556. thumbnails or cover arts. If <var>additional_stream_specifier</var> is used, then
  1557. it matches streams which both have this type and match the
  1558. <var>additional_stream_specifier</var>. Otherwise, it matches all streams of the
  1559. specified type.
  1560. </p></dd>
  1561. <dt>&lsquo;<samp>p:<var>program_id</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  1562. <dd><p>Matches streams which are in the program with the id <var>program_id</var>. If
  1563. <var>additional_stream_specifier</var> is used, then it matches streams which both
  1564. are part of the program and match the <var>additional_stream_specifier</var>.
  1565. </p>
  1566. </dd>
  1567. <dt>&lsquo;<samp>#<var>stream_id</var> or i:<var>stream_id</var></samp>&rsquo;</dt>
  1568. <dd><p>Match the stream by stream id (e.g. PID in MPEG-TS container).
  1569. </p></dd>
  1570. <dt>&lsquo;<samp>m:<var>key</var>[:<var>value</var>]</samp>&rsquo;</dt>
  1571. <dd><p>Matches streams with the metadata tag <var>key</var> having the specified value. If
  1572. <var>value</var> is not given, matches streams that contain the given tag with any
  1573. value.
  1574. </p></dd>
  1575. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  1576. <dd><p>Matches streams with usable configuration, the codec must be defined and the
  1577. essential information such as video dimension or audio sample rate must be present.
  1578. </p>
  1579. <p>Note that in <code>ffmpeg</code>, matching by metadata will only work properly for
  1580. input files.
  1581. </p></dd>
  1582. </dl>
  1583. <a name="Generic-options"></a>
  1584. <h2 class="section"><a href="ffprobe-all.html#toc-Generic-options">3.2 Generic options</a></h2>
  1585. <p>These options are shared amongst the ff* tools.
  1586. </p>
  1587. <dl compact="compact">
  1588. <dt>&lsquo;<samp>-L</samp>&rsquo;</dt>
  1589. <dd><p>Show license.
  1590. </p>
  1591. </dd>
  1592. <dt>&lsquo;<samp>-h, -?, -help, --help [<var>arg</var>]</samp>&rsquo;</dt>
  1593. <dd><p>Show help. An optional parameter may be specified to print help about a specific
  1594. item. If no argument is specified, only basic (non advanced) tool
  1595. options are shown.
  1596. </p>
  1597. <p>Possible values of <var>arg</var> are:
  1598. </p><dl compact="compact">
  1599. <dt>&lsquo;<samp>long</samp>&rsquo;</dt>
  1600. <dd><p>Print advanced tool options in addition to the basic tool options.
  1601. </p>
  1602. </dd>
  1603. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  1604. <dd><p>Print complete list of options, including shared and private options
  1605. for encoders, decoders, demuxers, muxers, filters, etc.
  1606. </p>
  1607. </dd>
  1608. <dt>&lsquo;<samp>decoder=<var>decoder_name</var></samp>&rsquo;</dt>
  1609. <dd><p>Print detailed information about the decoder named <var>decoder_name</var>. Use the
  1610. &lsquo;<samp>-decoders</samp>&rsquo; option to get a list of all decoders.
  1611. </p>
  1612. </dd>
  1613. <dt>&lsquo;<samp>encoder=<var>encoder_name</var></samp>&rsquo;</dt>
  1614. <dd><p>Print detailed information about the encoder named <var>encoder_name</var>. Use the
  1615. &lsquo;<samp>-encoders</samp>&rsquo; option to get a list of all encoders.
  1616. </p>
  1617. </dd>
  1618. <dt>&lsquo;<samp>demuxer=<var>demuxer_name</var></samp>&rsquo;</dt>
  1619. <dd><p>Print detailed information about the demuxer named <var>demuxer_name</var>. Use the
  1620. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all demuxers and muxers.
  1621. </p>
  1622. </dd>
  1623. <dt>&lsquo;<samp>muxer=<var>muxer_name</var></samp>&rsquo;</dt>
  1624. <dd><p>Print detailed information about the muxer named <var>muxer_name</var>. Use the
  1625. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all muxers and demuxers.
  1626. </p>
  1627. </dd>
  1628. <dt>&lsquo;<samp>filter=<var>filter_name</var></samp>&rsquo;</dt>
  1629. <dd><p>Print detailed information about the filter name <var>filter_name</var>. Use the
  1630. &lsquo;<samp>-filters</samp>&rsquo; option to get a list of all filters.
  1631. </p>
  1632. </dd>
  1633. <dt>&lsquo;<samp>bsf=<var>bitstream_filter_name</var></samp>&rsquo;</dt>
  1634. <dd><p>Print detailed information about the bitstream filter name <var>bitstream_filter_name</var>.
  1635. Use the &lsquo;<samp>-bsfs</samp>&rsquo; option to get a list of all bitstream filters.
  1636. </p></dd>
  1637. </dl>
  1638. </dd>
  1639. <dt>&lsquo;<samp>-version</samp>&rsquo;</dt>
  1640. <dd><p>Show version.
  1641. </p>
  1642. </dd>
  1643. <dt>&lsquo;<samp>-formats</samp>&rsquo;</dt>
  1644. <dd><p>Show available formats (including devices).
  1645. </p>
  1646. </dd>
  1647. <dt>&lsquo;<samp>-demuxers</samp>&rsquo;</dt>
  1648. <dd><p>Show available demuxers.
  1649. </p>
  1650. </dd>
  1651. <dt>&lsquo;<samp>-muxers</samp>&rsquo;</dt>
  1652. <dd><p>Show available muxers.
  1653. </p>
  1654. </dd>
  1655. <dt>&lsquo;<samp>-devices</samp>&rsquo;</dt>
  1656. <dd><p>Show available devices.
  1657. </p>
  1658. </dd>
  1659. <dt>&lsquo;<samp>-codecs</samp>&rsquo;</dt>
  1660. <dd><p>Show all codecs known to libavcodec.
  1661. </p>
  1662. <p>Note that the term &rsquo;codec&rsquo; is used throughout this documentation as a shortcut
  1663. for what is more correctly called a media bitstream format.
  1664. </p>
  1665. </dd>
  1666. <dt>&lsquo;<samp>-decoders</samp>&rsquo;</dt>
  1667. <dd><p>Show available decoders.
  1668. </p>
  1669. </dd>
  1670. <dt>&lsquo;<samp>-encoders</samp>&rsquo;</dt>
  1671. <dd><p>Show all available encoders.
  1672. </p>
  1673. </dd>
  1674. <dt>&lsquo;<samp>-bsfs</samp>&rsquo;</dt>
  1675. <dd><p>Show available bitstream filters.
  1676. </p>
  1677. </dd>
  1678. <dt>&lsquo;<samp>-protocols</samp>&rsquo;</dt>
  1679. <dd><p>Show available protocols.
  1680. </p>
  1681. </dd>
  1682. <dt>&lsquo;<samp>-filters</samp>&rsquo;</dt>
  1683. <dd><p>Show available libavfilter filters.
  1684. </p>
  1685. </dd>
  1686. <dt>&lsquo;<samp>-pix_fmts</samp>&rsquo;</dt>
  1687. <dd><p>Show available pixel formats.
  1688. </p>
  1689. </dd>
  1690. <dt>&lsquo;<samp>-sample_fmts</samp>&rsquo;</dt>
  1691. <dd><p>Show available sample formats.
  1692. </p>
  1693. </dd>
  1694. <dt>&lsquo;<samp>-layouts</samp>&rsquo;</dt>
  1695. <dd><p>Show channel names and standard channel layouts.
  1696. </p>
  1697. </dd>
  1698. <dt>&lsquo;<samp>-colors</samp>&rsquo;</dt>
  1699. <dd><p>Show recognized color names.
  1700. </p>
  1701. </dd>
  1702. <dt>&lsquo;<samp>-sources <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  1703. <dd><p>Show autodetected sources of the input device.
  1704. Some devices may provide system-dependent source names that cannot be autodetected.
  1705. The returned list cannot be assumed to be always complete.
  1706. </p><div class="example">
  1707. <pre class="example">ffmpeg -sources pulse,server=192.168.0.4
  1708. </pre></div>
  1709. </dd>
  1710. <dt>&lsquo;<samp>-sinks <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  1711. <dd><p>Show autodetected sinks of the output device.
  1712. Some devices may provide system-dependent sink names that cannot be autodetected.
  1713. The returned list cannot be assumed to be always complete.
  1714. </p><div class="example">
  1715. <pre class="example">ffmpeg -sinks pulse,server=192.168.0.4
  1716. </pre></div>
  1717. </dd>
  1718. <dt>&lsquo;<samp>-loglevel [<var>flags</var>+]<var>loglevel</var> | -v [<var>flags</var>+]<var>loglevel</var></samp>&rsquo;</dt>
  1719. <dd><p>Set logging level and flags used by the library.
  1720. </p>
  1721. <p>The optional <var>flags</var> prefix can consist of the following values:
  1722. </p><dl compact="compact">
  1723. <dt>&lsquo;<samp>repeat</samp>&rsquo;</dt>
  1724. <dd><p>Indicates that repeated log output should not be compressed to the first line
  1725. and the &quot;Last message repeated n times&quot; line will be omitted.
  1726. </p></dd>
  1727. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  1728. <dd><p>Indicates that log output should add a <code>[level]</code> prefix to each message
  1729. line. This can be used as an alternative to log coloring, e.g. when dumping the
  1730. log to file.
  1731. </p></dd>
  1732. </dl>
  1733. <p>Flags can also be used alone by adding a &rsquo;+&rsquo;/&rsquo;-&rsquo; prefix to set/reset a single
  1734. flag without affecting other <var>flags</var> or changing <var>loglevel</var>. When
  1735. setting both <var>flags</var> and <var>loglevel</var>, a &rsquo;+&rsquo; separator is expected
  1736. between the last <var>flags</var> value and before <var>loglevel</var>.
  1737. </p>
  1738. <p><var>loglevel</var> is a string or a number containing one of the following values:
  1739. </p><dl compact="compact">
  1740. <dt>&lsquo;<samp>quiet, -8</samp>&rsquo;</dt>
  1741. <dd><p>Show nothing at all; be silent.
  1742. </p></dd>
  1743. <dt>&lsquo;<samp>panic, 0</samp>&rsquo;</dt>
  1744. <dd><p>Only show fatal errors which could lead the process to crash, such as
  1745. an assertion failure. This is not currently used for anything.
  1746. </p></dd>
  1747. <dt>&lsquo;<samp>fatal, 8</samp>&rsquo;</dt>
  1748. <dd><p>Only show fatal errors. These are errors after which the process absolutely
  1749. cannot continue.
  1750. </p></dd>
  1751. <dt>&lsquo;<samp>error, 16</samp>&rsquo;</dt>
  1752. <dd><p>Show all errors, including ones which can be recovered from.
  1753. </p></dd>
  1754. <dt>&lsquo;<samp>warning, 24</samp>&rsquo;</dt>
  1755. <dd><p>Show all warnings and errors. Any message related to possibly
  1756. incorrect or unexpected events will be shown.
  1757. </p></dd>
  1758. <dt>&lsquo;<samp>info, 32</samp>&rsquo;</dt>
  1759. <dd><p>Show informative messages during processing. This is in addition to
  1760. warnings and errors. This is the default value.
  1761. </p></dd>
  1762. <dt>&lsquo;<samp>verbose, 40</samp>&rsquo;</dt>
  1763. <dd><p>Same as <code>info</code>, except more verbose.
  1764. </p></dd>
  1765. <dt>&lsquo;<samp>debug, 48</samp>&rsquo;</dt>
  1766. <dd><p>Show everything, including debugging information.
  1767. </p></dd>
  1768. <dt>&lsquo;<samp>trace, 56</samp>&rsquo;</dt>
  1769. </dl>
  1770. <p>For example to enable repeated log output, add the <code>level</code> prefix, and set
  1771. <var>loglevel</var> to <code>verbose</code>:
  1772. </p><div class="example">
  1773. <pre class="example">ffmpeg -loglevel repeat+level+verbose -i input output
  1774. </pre></div>
  1775. <p>Another example that enables repeated log output without affecting current
  1776. state of <code>level</code> prefix flag or <var>loglevel</var>:
  1777. </p><div class="example">
  1778. <pre class="example">ffmpeg [...] -loglevel +repeat
  1779. </pre></div>
  1780. <p>By default the program logs to stderr. If coloring is supported by the
  1781. terminal, colors are used to mark errors and warnings. Log coloring
  1782. can be disabled setting the environment variable
  1783. <code>AV_LOG_FORCE_NOCOLOR</code>, or can be forced setting
  1784. the environment variable <code>AV_LOG_FORCE_COLOR</code>.
  1785. </p>
  1786. </dd>
  1787. <dt>&lsquo;<samp>-report</samp>&rsquo;</dt>
  1788. <dd><p>Dump full command line and log output to a file named
  1789. <code><var>program</var>-<var>YYYYMMDD</var>-<var>HHMMSS</var>.log</code> in the current
  1790. directory.
  1791. This file can be useful for bug reports.
  1792. It also implies <code>-loglevel debug</code>.
  1793. </p>
  1794. <p>Setting the environment variable <code>FFREPORT</code> to any value has the
  1795. same effect. If the value is a &rsquo;:&rsquo;-separated key=value sequence, these
  1796. options will affect the report; option values must be escaped if they
  1797. contain special characters or the options delimiter &rsquo;:&rsquo; (see the
  1798. &ldquo;Quoting and escaping&rdquo; section in the ffmpeg-utils manual).
  1799. </p>
  1800. <p>The following options are recognized:
  1801. </p><dl compact="compact">
  1802. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  1803. <dd><p>set the file name to use for the report; <code>%p</code> is expanded to the name
  1804. of the program, <code>%t</code> is expanded to a timestamp, <code>%%</code> is expanded
  1805. to a plain <code>%</code>
  1806. </p></dd>
  1807. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  1808. <dd><p>set the log verbosity level using a numerical value (see <code>-loglevel</code>).
  1809. </p></dd>
  1810. </dl>
  1811. <p>For example, to output a report to a file named &lsquo;<tt>ffreport.log</tt>&rsquo;
  1812. using a log level of <code>32</code> (alias for log level <code>info</code>):
  1813. </p>
  1814. <div class="example">
  1815. <pre class="example">FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output
  1816. </pre></div>
  1817. <p>Errors in parsing the environment variable are not fatal, and will not
  1818. appear in the report.
  1819. </p>
  1820. </dd>
  1821. <dt>&lsquo;<samp>-hide_banner</samp>&rsquo;</dt>
  1822. <dd><p>Suppress printing banner.
  1823. </p>
  1824. <p>All FFmpeg tools will normally show a copyright notice, build options
  1825. and library versions. This option can be used to suppress printing
  1826. this information.
  1827. </p>
  1828. </dd>
  1829. <dt>&lsquo;<samp>-cpuflags flags (<em>global</em>)</samp>&rsquo;</dt>
  1830. <dd><p>Allows setting and clearing cpu flags. This option is intended
  1831. for testing. Do not use it unless you know what you&rsquo;re doing.
  1832. </p><div class="example">
  1833. <pre class="example">ffmpeg -cpuflags -sse+mmx ...
  1834. ffmpeg -cpuflags mmx ...
  1835. ffmpeg -cpuflags 0 ...
  1836. </pre></div>
  1837. <p>Possible flags for this option are:
  1838. </p><dl compact="compact">
  1839. <dt>&lsquo;<samp>x86</samp>&rsquo;</dt>
  1840. <dd><dl compact="compact">
  1841. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  1842. <dt>&lsquo;<samp>mmxext</samp>&rsquo;</dt>
  1843. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1844. <dt>&lsquo;<samp>sse2</samp>&rsquo;</dt>
  1845. <dt>&lsquo;<samp>sse2slow</samp>&rsquo;</dt>
  1846. <dt>&lsquo;<samp>sse3</samp>&rsquo;</dt>
  1847. <dt>&lsquo;<samp>sse3slow</samp>&rsquo;</dt>
  1848. <dt>&lsquo;<samp>ssse3</samp>&rsquo;</dt>
  1849. <dt>&lsquo;<samp>atom</samp>&rsquo;</dt>
  1850. <dt>&lsquo;<samp>sse4.1</samp>&rsquo;</dt>
  1851. <dt>&lsquo;<samp>sse4.2</samp>&rsquo;</dt>
  1852. <dt>&lsquo;<samp>avx</samp>&rsquo;</dt>
  1853. <dt>&lsquo;<samp>avx2</samp>&rsquo;</dt>
  1854. <dt>&lsquo;<samp>xop</samp>&rsquo;</dt>
  1855. <dt>&lsquo;<samp>fma3</samp>&rsquo;</dt>
  1856. <dt>&lsquo;<samp>fma4</samp>&rsquo;</dt>
  1857. <dt>&lsquo;<samp>3dnow</samp>&rsquo;</dt>
  1858. <dt>&lsquo;<samp>3dnowext</samp>&rsquo;</dt>
  1859. <dt>&lsquo;<samp>bmi1</samp>&rsquo;</dt>
  1860. <dt>&lsquo;<samp>bmi2</samp>&rsquo;</dt>
  1861. <dt>&lsquo;<samp>cmov</samp>&rsquo;</dt>
  1862. </dl>
  1863. </dd>
  1864. <dt>&lsquo;<samp>ARM</samp>&rsquo;</dt>
  1865. <dd><dl compact="compact">
  1866. <dt>&lsquo;<samp>armv5te</samp>&rsquo;</dt>
  1867. <dt>&lsquo;<samp>armv6</samp>&rsquo;</dt>
  1868. <dt>&lsquo;<samp>armv6t2</samp>&rsquo;</dt>
  1869. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  1870. <dt>&lsquo;<samp>vfpv3</samp>&rsquo;</dt>
  1871. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  1872. <dt>&lsquo;<samp>setend</samp>&rsquo;</dt>
  1873. </dl>
  1874. </dd>
  1875. <dt>&lsquo;<samp>AArch64</samp>&rsquo;</dt>
  1876. <dd><dl compact="compact">
  1877. <dt>&lsquo;<samp>armv8</samp>&rsquo;</dt>
  1878. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  1879. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  1880. </dl>
  1881. </dd>
  1882. <dt>&lsquo;<samp>PowerPC</samp>&rsquo;</dt>
  1883. <dd><dl compact="compact">
  1884. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  1885. </dl>
  1886. </dd>
  1887. <dt>&lsquo;<samp>Specific Processors</samp>&rsquo;</dt>
  1888. <dd><dl compact="compact">
  1889. <dt>&lsquo;<samp>pentium2</samp>&rsquo;</dt>
  1890. <dt>&lsquo;<samp>pentium3</samp>&rsquo;</dt>
  1891. <dt>&lsquo;<samp>pentium4</samp>&rsquo;</dt>
  1892. <dt>&lsquo;<samp>k6</samp>&rsquo;</dt>
  1893. <dt>&lsquo;<samp>k62</samp>&rsquo;</dt>
  1894. <dt>&lsquo;<samp>athlon</samp>&rsquo;</dt>
  1895. <dt>&lsquo;<samp>athlonxp</samp>&rsquo;</dt>
  1896. <dt>&lsquo;<samp>k8</samp>&rsquo;</dt>
  1897. </dl>
  1898. </dd>
  1899. </dl>
  1900. </dd>
  1901. </dl>
  1902. <a name="AVOptions"></a>
  1903. <h2 class="section"><a href="ffprobe-all.html#toc-AVOptions">3.3 AVOptions</a></h2>
  1904. <p>These options are provided directly by the libavformat, libavdevice and
  1905. libavcodec libraries. To see the list of available AVOptions, use the
  1906. &lsquo;<samp>-help</samp>&rsquo; option. They are separated into two categories:
  1907. </p><dl compact="compact">
  1908. <dt>&lsquo;<samp>generic</samp>&rsquo;</dt>
  1909. <dd><p>These options can be set for any container, codec or device. Generic options
  1910. are listed under AVFormatContext options for containers/devices and under
  1911. AVCodecContext options for codecs.
  1912. </p></dd>
  1913. <dt>&lsquo;<samp>private</samp>&rsquo;</dt>
  1914. <dd><p>These options are specific to the given container, device or codec. Private
  1915. options are listed under their corresponding containers/devices/codecs.
  1916. </p></dd>
  1917. </dl>
  1918. <p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to
  1919. an MP3 file, use the &lsquo;<samp>id3v2_version</samp>&rsquo; private option of the MP3
  1920. muxer:
  1921. </p><div class="example">
  1922. <pre class="example">ffmpeg -i input.flac -id3v2_version 3 out.mp3
  1923. </pre></div>
  1924. <p>All codec AVOptions are per-stream, and thus a stream specifier
  1925. should be attached to them:
  1926. </p><div class="example">
  1927. <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
  1928. </pre></div>
  1929. <p>In the above example, a multichannel audio stream is mapped twice for output.
  1930. The first instance is encoded with codec ac3 and bitrate 640k.
  1931. The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using
  1932. absolute index of the output stream.
  1933. </p>
  1934. <p>Note: the &lsquo;<samp>-nooption</samp>&rsquo; syntax cannot be used for boolean
  1935. AVOptions, use &lsquo;<samp>-option 0</samp>&rsquo;/&lsquo;<samp>-option 1</samp>&rsquo;.
  1936. </p>
  1937. <p>Note: the old undocumented way of specifying per-stream AVOptions by
  1938. prepending v/a/s to the options name is now obsolete and will be
  1939. removed soon.
  1940. </p>
  1941. <a name="Main-options"></a>
  1942. <h2 class="section"><a href="ffprobe-all.html#toc-Main-options">3.4 Main options</a></h2>
  1943. <dl compact="compact">
  1944. <dt>&lsquo;<samp>-f <var>format</var></samp>&rsquo;</dt>
  1945. <dd><p>Force format to use.
  1946. </p>
  1947. </dd>
  1948. <dt>&lsquo;<samp>-unit</samp>&rsquo;</dt>
  1949. <dd><p>Show the unit of the displayed values.
  1950. </p>
  1951. </dd>
  1952. <dt>&lsquo;<samp>-prefix</samp>&rsquo;</dt>
  1953. <dd><p>Use SI prefixes for the displayed values.
  1954. Unless the &quot;-byte_binary_prefix&quot; option is used all the prefixes
  1955. are decimal.
  1956. </p>
  1957. </dd>
  1958. <dt>&lsquo;<samp>-byte_binary_prefix</samp>&rsquo;</dt>
  1959. <dd><p>Force the use of binary prefixes for byte values.
  1960. </p>
  1961. </dd>
  1962. <dt>&lsquo;<samp>-sexagesimal</samp>&rsquo;</dt>
  1963. <dd><p>Use sexagesimal format HH:MM:SS.MICROSECONDS for time values.
  1964. </p>
  1965. </dd>
  1966. <dt>&lsquo;<samp>-pretty</samp>&rsquo;</dt>
  1967. <dd><p>Prettify the format of the displayed values, it corresponds to the
  1968. options &quot;-unit -prefix -byte_binary_prefix -sexagesimal&quot;.
  1969. </p>
  1970. </dd>
  1971. <dt>&lsquo;<samp>-of, -print_format <var>writer_name</var>[=<var>writer_options</var>]</samp>&rsquo;</dt>
  1972. <dd><p>Set the output printing format.
  1973. </p>
  1974. <p><var>writer_name</var> specifies the name of the writer, and
  1975. <var>writer_options</var> specifies the options to be passed to the writer.
  1976. </p>
  1977. <p>For example for printing the output in JSON format, specify:
  1978. </p><div class="example">
  1979. <pre class="example">-print_format json
  1980. </pre></div>
  1981. <p>For more details on the available output printing formats, see the
  1982. Writers section below.
  1983. </p>
  1984. </dd>
  1985. <dt>&lsquo;<samp>-sections</samp>&rsquo;</dt>
  1986. <dd><p>Print sections structure and section information, and exit. The output
  1987. is not meant to be parsed by a machine.
  1988. </p>
  1989. </dd>
  1990. <dt>&lsquo;<samp>-select_streams <var>stream_specifier</var></samp>&rsquo;</dt>
  1991. <dd><p>Select only the streams specified by <var>stream_specifier</var>. This
  1992. option affects only the options related to streams
  1993. (e.g. <code>show_streams</code>, <code>show_packets</code>, etc.).
  1994. </p>
  1995. <p>For example to show only audio streams, you can use the command:
  1996. </p><div class="example">
  1997. <pre class="example">ffprobe -show_streams -select_streams a INPUT
  1998. </pre></div>
  1999. <p>To show only video packets belonging to the video stream with index 1:
  2000. </p><div class="example">
  2001. <pre class="example">ffprobe -show_packets -select_streams v:1 INPUT
  2002. </pre></div>
  2003. </dd>
  2004. <dt>&lsquo;<samp>-show_data</samp>&rsquo;</dt>
  2005. <dd><p>Show payload data, as a hexadecimal and ASCII dump. Coupled with
  2006. &lsquo;<samp>-show_packets</samp>&rsquo;, it will dump the packets&rsquo; data. Coupled with
  2007. &lsquo;<samp>-show_streams</samp>&rsquo;, it will dump the codec extradata.
  2008. </p>
  2009. <p>The dump is printed as the &quot;data&quot; field. It may contain newlines.
  2010. </p>
  2011. </dd>
  2012. <dt>&lsquo;<samp>-show_data_hash <var>algorithm</var></samp>&rsquo;</dt>
  2013. <dd><p>Show a hash of payload data, for packets with &lsquo;<samp>-show_packets</samp>&rsquo; and for
  2014. codec extradata with &lsquo;<samp>-show_streams</samp>&rsquo;.
  2015. </p>
  2016. </dd>
  2017. <dt>&lsquo;<samp>-show_error</samp>&rsquo;</dt>
  2018. <dd><p>Show information about the error found when trying to probe the input.
  2019. </p>
  2020. <p>The error information is printed within a section with name &quot;ERROR&quot;.
  2021. </p>
  2022. </dd>
  2023. <dt>&lsquo;<samp>-show_format</samp>&rsquo;</dt>
  2024. <dd><p>Show information about the container format of the input multimedia
  2025. stream.
  2026. </p>
  2027. <p>All the container format information is printed within a section with
  2028. name &quot;FORMAT&quot;.
  2029. </p>
  2030. </dd>
  2031. <dt>&lsquo;<samp>-show_format_entry <var>name</var></samp>&rsquo;</dt>
  2032. <dd><p>Like &lsquo;<samp>-show_format</samp>&rsquo;, but only prints the specified entry of the
  2033. container format information, rather than all. This option may be given more
  2034. than once, then all specified entries will be shown.
  2035. </p>
  2036. <p>This option is deprecated, use <code>show_entries</code> instead.
  2037. </p>
  2038. </dd>
  2039. <dt>&lsquo;<samp>-show_entries <var>section_entries</var></samp>&rsquo;</dt>
  2040. <dd><p>Set list of entries to show.
  2041. </p>
  2042. <p>Entries are specified according to the following
  2043. syntax. <var>section_entries</var> contains a list of section entries
  2044. separated by <code>:</code>. Each section entry is composed by a section
  2045. name (or unique name), optionally followed by a list of entries local
  2046. to that section, separated by <code>,</code>.
  2047. </p>
  2048. <p>If section name is specified but is followed by no <code>=</code>, all
  2049. entries are printed to output, together with all the contained
  2050. sections. Otherwise only the entries specified in the local section
  2051. entries list are printed. In particular, if <code>=</code> is specified but
  2052. the list of local entries is empty, then no entries will be shown for
  2053. that section.
  2054. </p>
  2055. <p>Note that the order of specification of the local section entries is
  2056. not honored in the output, and the usual display order will be
  2057. retained.
  2058. </p>
  2059. <p>The formal syntax is given by:
  2060. </p><div class="example">
  2061. <pre class="example"><var>LOCAL_SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY_NAME</var>[,<var>LOCAL_SECTION_ENTRIES</var>]
  2062. <var>SECTION_ENTRY</var> ::= <var>SECTION_NAME</var>[=[<var>LOCAL_SECTION_ENTRIES</var>]]
  2063. <var>SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY</var>[:<var>SECTION_ENTRIES</var>]
  2064. </pre></div>
  2065. <p>For example, to show only the index and type of each stream, and the PTS
  2066. time, duration time, and stream index of the packets, you can specify
  2067. the argument:
  2068. </p><div class="example">
  2069. <pre class="example">packet=pts_time,duration_time,stream_index : stream=index,codec_type
  2070. </pre></div>
  2071. <p>To show all the entries in the section &quot;format&quot;, but only the codec
  2072. type in the section &quot;stream&quot;, specify the argument:
  2073. </p><div class="example">
  2074. <pre class="example">format : stream=codec_type
  2075. </pre></div>
  2076. <p>To show all the tags in the stream and format sections:
  2077. </p><div class="example">
  2078. <pre class="example">stream_tags : format_tags
  2079. </pre></div>
  2080. <p>To show only the <code>title</code> tag (if available) in the stream
  2081. sections:
  2082. </p><div class="example">
  2083. <pre class="example">stream_tags=title
  2084. </pre></div>
  2085. </dd>
  2086. <dt>&lsquo;<samp>-show_packets</samp>&rsquo;</dt>
  2087. <dd><p>Show information about each packet contained in the input multimedia
  2088. stream.
  2089. </p>
  2090. <p>The information for each single packet is printed within a dedicated
  2091. section with name &quot;PACKET&quot;.
  2092. </p>
  2093. </dd>
  2094. <dt>&lsquo;<samp>-show_frames</samp>&rsquo;</dt>
  2095. <dd><p>Show information about each frame and subtitle contained in the input
  2096. multimedia stream.
  2097. </p>
  2098. <p>The information for each single frame is printed within a dedicated
  2099. section with name &quot;FRAME&quot; or &quot;SUBTITLE&quot;.
  2100. </p>
  2101. </dd>
  2102. <dt>&lsquo;<samp>-show_log <var>loglevel</var></samp>&rsquo;</dt>
  2103. <dd><p>Show logging information from the decoder about each frame according to
  2104. the value set in <var>loglevel</var>, (see <code>-loglevel</code>). This option requires <code>-show_frames</code>.
  2105. </p>
  2106. <p>The information for each log message is printed within a dedicated
  2107. section with name &quot;LOG&quot;.
  2108. </p>
  2109. </dd>
  2110. <dt>&lsquo;<samp>-show_streams</samp>&rsquo;</dt>
  2111. <dd><p>Show information about each media stream contained in the input
  2112. multimedia stream.
  2113. </p>
  2114. <p>Each media stream information is printed within a dedicated section
  2115. with name &quot;STREAM&quot;.
  2116. </p>
  2117. </dd>
  2118. <dt>&lsquo;<samp>-show_programs</samp>&rsquo;</dt>
  2119. <dd><p>Show information about programs and their streams contained in the input
  2120. multimedia stream.
  2121. </p>
  2122. <p>Each media stream information is printed within a dedicated section
  2123. with name &quot;PROGRAM_STREAM&quot;.
  2124. </p>
  2125. </dd>
  2126. <dt>&lsquo;<samp>-show_chapters</samp>&rsquo;</dt>
  2127. <dd><p>Show information about chapters stored in the format.
  2128. </p>
  2129. <p>Each chapter is printed within a dedicated section with name &quot;CHAPTER&quot;.
  2130. </p>
  2131. </dd>
  2132. <dt>&lsquo;<samp>-count_frames</samp>&rsquo;</dt>
  2133. <dd><p>Count the number of frames per stream and report it in the
  2134. corresponding stream section.
  2135. </p>
  2136. </dd>
  2137. <dt>&lsquo;<samp>-count_packets</samp>&rsquo;</dt>
  2138. <dd><p>Count the number of packets per stream and report it in the
  2139. corresponding stream section.
  2140. </p>
  2141. </dd>
  2142. <dt>&lsquo;<samp>-read_intervals <var>read_intervals</var></samp>&rsquo;</dt>
  2143. <dd>
  2144. <p>Read only the specified intervals. <var>read_intervals</var> must be a
  2145. sequence of interval specifications separated by &quot;,&quot;.
  2146. <code>ffprobe</code> will seek to the interval starting point, and will
  2147. continue reading from that.
  2148. </p>
  2149. <p>Each interval is specified by two optional parts, separated by &quot;%&quot;.
  2150. </p>
  2151. <p>The first part specifies the interval start position. It is
  2152. interpreted as an absolute position, or as a relative offset from the
  2153. current position if it is preceded by the &quot;+&quot; character. If this first
  2154. part is not specified, no seeking will be performed when reading this
  2155. interval.
  2156. </p>
  2157. <p>The second part specifies the interval end position. It is interpreted
  2158. as an absolute position, or as a relative offset from the current
  2159. position if it is preceded by the &quot;+&quot; character. If the offset
  2160. specification starts with &quot;#&quot;, it is interpreted as the number of
  2161. packets to read (not including the flushing packets) from the interval
  2162. start. If no second part is specified, the program will read until the
  2163. end of the input.
  2164. </p>
  2165. <p>Note that seeking is not accurate, thus the actual interval start
  2166. point may be different from the specified position. Also, when an
  2167. interval duration is specified, the absolute end time will be computed
  2168. by adding the duration to the interval start point found by seeking
  2169. the file, rather than to the specified start value.
  2170. </p>
  2171. <p>The formal syntax is given by:
  2172. </p><div class="example">
  2173. <pre class="example"><var>INTERVAL</var> ::= [<var>START</var>|+<var>START_OFFSET</var>][%[<var>END</var>|+<var>END_OFFSET</var>]]
  2174. <var>INTERVALS</var> ::= <var>INTERVAL</var>[,<var>INTERVALS</var>]
  2175. </pre></div>
  2176. <p>A few examples follow.
  2177. </p><ul>
  2178. <li>
  2179. Seek to time 10, read packets until 20 seconds after the found seek
  2180. point, then seek to position <code>01:30</code> (1 minute and thirty
  2181. seconds) and read packets until position <code>01:45</code>.
  2182. <div class="example">
  2183. <pre class="example">10%+20,01:30%01:45
  2184. </pre></div>
  2185. </li><li>
  2186. Read only 42 packets after seeking to position <code>01:23</code>:
  2187. <div class="example">
  2188. <pre class="example">01:23%+#42
  2189. </pre></div>
  2190. </li><li>
  2191. Read only the first 20 seconds from the start:
  2192. <div class="example">
  2193. <pre class="example">%+20
  2194. </pre></div>
  2195. </li><li>
  2196. Read from the start until position <code>02:30</code>:
  2197. <div class="example">
  2198. <pre class="example">%02:30
  2199. </pre></div>
  2200. </li></ul>
  2201. </dd>
  2202. <dt>&lsquo;<samp>-show_private_data, -private</samp>&rsquo;</dt>
  2203. <dd><p>Show private data, that is data depending on the format of the
  2204. particular shown element.
  2205. This option is enabled by default, but you may need to disable it
  2206. for specific uses, for example when creating XSD-compliant XML output.
  2207. </p>
  2208. </dd>
  2209. <dt>&lsquo;<samp>-show_program_version</samp>&rsquo;</dt>
  2210. <dd><p>Show information related to program version.
  2211. </p>
  2212. <p>Version information is printed within a section with name
  2213. &quot;PROGRAM_VERSION&quot;.
  2214. </p>
  2215. </dd>
  2216. <dt>&lsquo;<samp>-show_library_versions</samp>&rsquo;</dt>
  2217. <dd><p>Show information related to library versions.
  2218. </p>
  2219. <p>Version information for each library is printed within a section with
  2220. name &quot;LIBRARY_VERSION&quot;.
  2221. </p>
  2222. </dd>
  2223. <dt>&lsquo;<samp>-show_versions</samp>&rsquo;</dt>
  2224. <dd><p>Show information related to program and library versions. This is the
  2225. equivalent of setting both &lsquo;<samp>-show_program_version</samp>&rsquo; and
  2226. &lsquo;<samp>-show_library_versions</samp>&rsquo; options.
  2227. </p>
  2228. </dd>
  2229. <dt>&lsquo;<samp>-show_pixel_formats</samp>&rsquo;</dt>
  2230. <dd><p>Show information about all pixel formats supported by FFmpeg.
  2231. </p>
  2232. <p>Pixel format information for each format is printed within a section
  2233. with name &quot;PIXEL_FORMAT&quot;.
  2234. </p>
  2235. </dd>
  2236. <dt>&lsquo;<samp>-bitexact</samp>&rsquo;</dt>
  2237. <dd><p>Force bitexact output, useful to produce output which is not dependent
  2238. on the specific build.
  2239. </p>
  2240. </dd>
  2241. <dt>&lsquo;<samp>-i <var>input_url</var></samp>&rsquo;</dt>
  2242. <dd><p>Read <var>input_url</var>.
  2243. </p>
  2244. </dd>
  2245. </dl>
  2246. <a name="Writers"></a>
  2247. <h1 class="chapter"><a href="ffprobe-all.html#toc-Writers">4 Writers</a></h1>
  2248. <p>A writer defines the output format adopted by <code>ffprobe</code>, and will be
  2249. used for printing all the parts of the output.
  2250. </p>
  2251. <p>A writer may accept one or more arguments, which specify the options
  2252. to adopt. The options are specified as a list of <var>key</var>=<var>value</var>
  2253. pairs, separated by &quot;:&quot;.
  2254. </p>
  2255. <p>All writers support the following options:
  2256. </p>
  2257. <dl compact="compact">
  2258. <dt>&lsquo;<samp>string_validation, sv</samp>&rsquo;</dt>
  2259. <dd><p>Set string validation mode.
  2260. </p>
  2261. <p>The following values are accepted.
  2262. </p><dl compact="compact">
  2263. <dt>&lsquo;<samp>fail</samp>&rsquo;</dt>
  2264. <dd><p>The writer will fail immediately in case an invalid string (UTF-8)
  2265. sequence or code point is found in the input. This is especially
  2266. useful to validate input metadata.
  2267. </p>
  2268. </dd>
  2269. <dt>&lsquo;<samp>ignore</samp>&rsquo;</dt>
  2270. <dd><p>Any validation error will be ignored. This will result in possibly
  2271. broken output, especially with the json or xml writer.
  2272. </p>
  2273. </dd>
  2274. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  2275. <dd><p>The writer will substitute invalid UTF-8 sequences or code points with
  2276. the string specified with the &lsquo;<samp>string_validation_replacement</samp>&rsquo;.
  2277. </p></dd>
  2278. </dl>
  2279. <p>Default value is &lsquo;<samp>replace</samp>&rsquo;.
  2280. </p>
  2281. </dd>
  2282. <dt>&lsquo;<samp>string_validation_replacement, svr</samp>&rsquo;</dt>
  2283. <dd><p>Set replacement string to use in case &lsquo;<samp>string_validation</samp>&rsquo; is
  2284. set to &lsquo;<samp>replace</samp>&rsquo;.
  2285. </p>
  2286. <p>In case the option is not specified, the writer will assume the empty
  2287. string, that is it will remove the invalid sequences from the input
  2288. strings.
  2289. </p></dd>
  2290. </dl>
  2291. <p>A description of the currently available writers follows.
  2292. </p>
  2293. <a name="default"></a>
  2294. <h2 class="section"><a href="ffprobe-all.html#toc-default">4.1 default</a></h2>
  2295. <p>Default format.
  2296. </p>
  2297. <p>Print each section in the form:
  2298. </p><div class="example">
  2299. <pre class="example">[SECTION]
  2300. key1=val1
  2301. ...
  2302. keyN=valN
  2303. [/SECTION]
  2304. </pre></div>
  2305. <p>Metadata tags are printed as a line in the corresponding FORMAT, STREAM or
  2306. PROGRAM_STREAM section, and are prefixed by the string &quot;TAG:&quot;.
  2307. </p>
  2308. <p>A description of the accepted options follows.
  2309. </p>
  2310. <dl compact="compact">
  2311. <dt>&lsquo;<samp>nokey, nk</samp>&rsquo;</dt>
  2312. <dd><p>If set to 1 specify not to print the key of each field. Default value
  2313. is 0.
  2314. </p>
  2315. </dd>
  2316. <dt>&lsquo;<samp>noprint_wrappers, nw</samp>&rsquo;</dt>
  2317. <dd><p>If set to 1 specify not to print the section header and footer.
  2318. Default value is 0.
  2319. </p></dd>
  2320. </dl>
  2321. <a name="compact_002c-csv"></a>
  2322. <h2 class="section"><a href="ffprobe-all.html#toc-compact_002c-csv">4.2 compact, csv</a></h2>
  2323. <p>Compact and CSV format.
  2324. </p>
  2325. <p>The <code>csv</code> writer is equivalent to <code>compact</code>, but supports
  2326. different defaults.
  2327. </p>
  2328. <p>Each section is printed on a single line.
  2329. If no option is specified, the output has the form:
  2330. </p><div class="example">
  2331. <pre class="example">section|key1=val1| ... |keyN=valN
  2332. </pre></div>
  2333. <p>Metadata tags are printed in the corresponding &quot;format&quot; or &quot;stream&quot;
  2334. section. A metadata tag key, if printed, is prefixed by the string
  2335. &quot;tag:&quot;.
  2336. </p>
  2337. <p>The description of the accepted options follows.
  2338. </p>
  2339. <dl compact="compact">
  2340. <dt>&lsquo;<samp>item_sep, s</samp>&rsquo;</dt>
  2341. <dd><p>Specify the character to use for separating fields in the output line.
  2342. It must be a single printable character, it is &quot;|&quot; by default (&quot;,&quot; for
  2343. the <code>csv</code> writer).
  2344. </p>
  2345. </dd>
  2346. <dt>&lsquo;<samp>nokey, nk</samp>&rsquo;</dt>
  2347. <dd><p>If set to 1 specify not to print the key of each field. Its default
  2348. value is 0 (1 for the <code>csv</code> writer).
  2349. </p>
  2350. </dd>
  2351. <dt>&lsquo;<samp>escape, e</samp>&rsquo;</dt>
  2352. <dd><p>Set the escape mode to use, default to &quot;c&quot; (&quot;csv&quot; for the <code>csv</code>
  2353. writer).
  2354. </p>
  2355. <p>It can assume one of the following values:
  2356. </p><dl compact="compact">
  2357. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  2358. <dd><p>Perform C-like escaping. Strings containing a newline (&lsquo;<samp>\n</samp>&rsquo;), carriage
  2359. return (&lsquo;<samp>\r</samp>&rsquo;), a tab (&lsquo;<samp>\t</samp>&rsquo;), a form feed (&lsquo;<samp>\f</samp>&rsquo;), the escaping
  2360. character (&lsquo;<samp>\</samp>&rsquo;) or the item separator character <var>SEP</var> are escaped
  2361. using C-like fashioned escaping, so that a newline is converted to the
  2362. 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
  2363. the separator <var>SEP</var> is converted to &lsquo;<samp>\<var>SEP</var></samp>&rsquo;.
  2364. </p>
  2365. </dd>
  2366. <dt>&lsquo;<samp>csv</samp>&rsquo;</dt>
  2367. <dd><p>Perform CSV-like escaping, as described in RFC4180. Strings
  2368. containing a newline (&lsquo;<samp>\n</samp>&rsquo;), a carriage return (&lsquo;<samp>\r</samp>&rsquo;), a double quote
  2369. (&lsquo;<samp>&quot;</samp>&rsquo;), or <var>SEP</var> are enclosed in double-quotes.
  2370. </p>
  2371. </dd>
  2372. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  2373. <dd><p>Perform no escaping.
  2374. </p></dd>
  2375. </dl>
  2376. </dd>
  2377. <dt>&lsquo;<samp>print_section, p</samp>&rsquo;</dt>
  2378. <dd><p>Print the section name at the beginning of each line if the value is
  2379. <code>1</code>, disable it with value set to <code>0</code>. Default value is
  2380. <code>1</code>.
  2381. </p>
  2382. </dd>
  2383. </dl>
  2384. <a name="flat"></a>
  2385. <h2 class="section"><a href="ffprobe-all.html#toc-flat">4.3 flat</a></h2>
  2386. <p>Flat format.
  2387. </p>
  2388. <p>A free-form output where each line contains an explicit key=value, such as
  2389. &quot;streams.stream.3.tags.foo=bar&quot;. The output is shell escaped, so it can be
  2390. directly embedded in sh scripts as long as the separator character is an
  2391. alphanumeric character or an underscore (see <var>sep_char</var> option).
  2392. </p>
  2393. <p>The description of the accepted options follows.
  2394. </p>
  2395. <dl compact="compact">
  2396. <dt>&lsquo;<samp>sep_char, s</samp>&rsquo;</dt>
  2397. <dd><p>Separator character used to separate the chapter, the section name, IDs and
  2398. potential tags in the printed field key.
  2399. </p>
  2400. <p>Default value is &lsquo;<samp>.</samp>&rsquo;.
  2401. </p>
  2402. </dd>
  2403. <dt>&lsquo;<samp>hierarchical, h</samp>&rsquo;</dt>
  2404. <dd><p>Specify if the section name specification should be hierarchical. If
  2405. set to 1, and if there is more than one section in the current
  2406. chapter, the section name will be prefixed by the name of the
  2407. chapter. A value of 0 will disable this behavior.
  2408. </p>
  2409. <p>Default value is 1.
  2410. </p></dd>
  2411. </dl>
  2412. <a name="ini"></a>
  2413. <h2 class="section"><a href="ffprobe-all.html#toc-ini">4.4 ini</a></h2>
  2414. <p>INI format output.
  2415. </p>
  2416. <p>Print output in an INI based format.
  2417. </p>
  2418. <p>The following conventions are adopted:
  2419. </p>
  2420. <ul>
  2421. <li>
  2422. all key and values are UTF-8
  2423. </li><li>
  2424. &lsquo;<samp>.</samp>&rsquo; is the subgroup separator
  2425. </li><li>
  2426. newline, &lsquo;<samp>\t</samp>&rsquo;, &lsquo;<samp>\f</samp>&rsquo;, &lsquo;<samp>\b</samp>&rsquo; and the following characters are
  2427. escaped
  2428. </li><li>
  2429. &lsquo;<samp>\</samp>&rsquo; is the escape character
  2430. </li><li>
  2431. &lsquo;<samp>#</samp>&rsquo; is the comment indicator
  2432. </li><li>
  2433. &lsquo;<samp>=</samp>&rsquo; is the key/value separator
  2434. </li><li>
  2435. &lsquo;<samp>:</samp>&rsquo; is not used but usually parsed as key/value separator
  2436. </li></ul>
  2437. <p>This writer accepts options as a list of <var>key</var>=<var>value</var> pairs,
  2438. separated by &lsquo;<samp>:</samp>&rsquo;.
  2439. </p>
  2440. <p>The description of the accepted options follows.
  2441. </p>
  2442. <dl compact="compact">
  2443. <dt>&lsquo;<samp>hierarchical, h</samp>&rsquo;</dt>
  2444. <dd><p>Specify if the section name specification should be hierarchical. If
  2445. set to 1, and if there is more than one section in the current
  2446. chapter, the section name will be prefixed by the name of the
  2447. chapter. A value of 0 will disable this behavior.
  2448. </p>
  2449. <p>Default value is 1.
  2450. </p></dd>
  2451. </dl>
  2452. <a name="json"></a>
  2453. <h2 class="section"><a href="ffprobe-all.html#toc-json">4.5 json</a></h2>
  2454. <p>JSON based format.
  2455. </p>
  2456. <p>Each section is printed using JSON notation.
  2457. </p>
  2458. <p>The description of the accepted options follows.
  2459. </p>
  2460. <dl compact="compact">
  2461. <dt>&lsquo;<samp>compact, c</samp>&rsquo;</dt>
  2462. <dd><p>If set to 1 enable compact output, that is each section will be
  2463. printed on a single line. Default value is 0.
  2464. </p></dd>
  2465. </dl>
  2466. <p>For more information about JSON, see <a href="http://www.json.org/">http://www.json.org/</a>.
  2467. </p>
  2468. <a name="xml"></a>
  2469. <h2 class="section"><a href="ffprobe-all.html#toc-xml">4.6 xml</a></h2>
  2470. <p>XML based format.
  2471. </p>
  2472. <p>The XML output is described in the XML schema description file
  2473. &lsquo;<tt>ffprobe.xsd</tt>&rsquo; installed in the FFmpeg datadir.
  2474. </p>
  2475. <p>An updated version of the schema can be retrieved at the url
  2476. <a href="http://www.ffmpeg.org/schema/ffprobe.xsd">http://www.ffmpeg.org/schema/ffprobe.xsd</a>, which redirects to the
  2477. latest schema committed into the FFmpeg development source code tree.
  2478. </p>
  2479. <p>Note that the output issued will be compliant to the
  2480. &lsquo;<tt>ffprobe.xsd</tt>&rsquo; schema only when no special global output options
  2481. (&lsquo;<samp>unit</samp>&rsquo;, &lsquo;<samp>prefix</samp>&rsquo;, &lsquo;<samp>byte_binary_prefix</samp>&rsquo;,
  2482. &lsquo;<samp>sexagesimal</samp>&rsquo; etc.) are specified.
  2483. </p>
  2484. <p>The description of the accepted options follows.
  2485. </p>
  2486. <dl compact="compact">
  2487. <dt>&lsquo;<samp>fully_qualified, q</samp>&rsquo;</dt>
  2488. <dd><p>If set to 1 specify if the output should be fully qualified. Default
  2489. value is 0.
  2490. This is required for generating an XML file which can be validated
  2491. through an XSD file.
  2492. </p>
  2493. </dd>
  2494. <dt>&lsquo;<samp>xsd_strict, x</samp>&rsquo;</dt>
  2495. <dd><p>If set to 1 perform more checks for ensuring that the output is XSD
  2496. compliant. Default value is 0.
  2497. This option automatically sets &lsquo;<samp>fully_qualified</samp>&rsquo; to 1.
  2498. </p></dd>
  2499. </dl>
  2500. <p>For more information about the XML format, see
  2501. <a href="https://www.w3.org/XML/">https://www.w3.org/XML/</a>.
  2502. </p>
  2503. <a name="Timecode"></a>
  2504. <h1 class="chapter"><a href="ffprobe-all.html#toc-Timecode">5 Timecode</a></h1>
  2505. <p><code>ffprobe</code> supports Timecode extraction:
  2506. </p>
  2507. <ul>
  2508. <li>
  2509. MPEG1/2 timecode is extracted from the GOP, and is available in the video
  2510. stream details (&lsquo;<samp>-show_streams</samp>&rsquo;, see <var>timecode</var>).
  2511. </li><li>
  2512. MOV timecode is extracted from tmcd track, so is available in the tmcd
  2513. stream metadata (&lsquo;<samp>-show_streams</samp>&rsquo;, see <var>TAG:timecode</var>).
  2514. </li><li>
  2515. DV, GXF and AVI timecodes are available in format metadata
  2516. (&lsquo;<samp>-show_format</samp>&rsquo;, see <var>TAG:timecode</var>).
  2517. </li></ul>
  2518. <a name="Syntax-1"></a>
  2519. <h1 class="chapter"><a href="ffprobe-all.html#toc-Syntax-1">6 Syntax</a></h1>
  2520. <p>This section documents the syntax and formats employed by the FFmpeg
  2521. libraries and tools.
  2522. </p>
  2523. <p><a name="quoting_005fand_005fescaping"></a>
  2524. </p><a name="Quoting-and-escaping"></a>
  2525. <h2 class="section"><a href="ffprobe-all.html#toc-Quoting-and-escaping">6.1 Quoting and escaping</a></h2>
  2526. <p>FFmpeg adopts the following quoting and escaping mechanism, unless
  2527. explicitly specified. The following rules are applied:
  2528. </p>
  2529. <ul>
  2530. <li>
  2531. &lsquo;<samp>'</samp>&rsquo; and &lsquo;<samp>\</samp>&rsquo; are special characters (respectively used for
  2532. quoting and escaping). In addition to them, there might be other
  2533. special characters depending on the specific syntax where the escaping
  2534. and quoting are employed.
  2535. </li><li>
  2536. A special character is escaped by prefixing it with a &lsquo;<samp>\</samp>&rsquo;.
  2537. </li><li>
  2538. All characters enclosed between &lsquo;<samp>''</samp>&rsquo; are included literally in the
  2539. parsed string. The quote character &lsquo;<samp>'</samp>&rsquo; itself cannot be quoted,
  2540. so you may need to close the quote and escape it.
  2541. </li><li>
  2542. Leading and trailing whitespaces, unless escaped or quoted, are
  2543. removed from the parsed string.
  2544. </li></ul>
  2545. <p>Note that you may need to add a second level of escaping when using
  2546. the command line or a script, which depends on the syntax of the
  2547. adopted shell language.
  2548. </p>
  2549. <p>The function <code>av_get_token</code> defined in
  2550. &lsquo;<tt>libavutil/avstring.h</tt>&rsquo; can be used to parse a token quoted or
  2551. escaped according to the rules defined above.
  2552. </p>
  2553. <p>The tool &lsquo;<tt>tools/ffescape</tt>&rsquo; in the FFmpeg source tree can be used
  2554. to automatically quote or escape a string in a script.
  2555. </p>
  2556. <a name="Examples-87"></a>
  2557. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-87">6.1.1 Examples</a></h3>
  2558. <ul>
  2559. <li>
  2560. Escape the string <code>Crime d'Amour</code> containing the <code>'</code> special
  2561. character:
  2562. <div class="example">
  2563. <pre class="example">Crime d\'Amour
  2564. </pre></div>
  2565. </li><li>
  2566. The string above contains a quote, so the <code>'</code> needs to be escaped
  2567. when quoting it:
  2568. <div class="example">
  2569. <pre class="example">'Crime d'\''Amour'
  2570. </pre></div>
  2571. </li><li>
  2572. Include leading or trailing whitespaces using quoting:
  2573. <div class="example">
  2574. <pre class="example">' this string starts and ends with whitespaces '
  2575. </pre></div>
  2576. </li><li>
  2577. Escaping and quoting can be mixed together:
  2578. <div class="example">
  2579. <pre class="example">' The string '\'string\'' is a string '
  2580. </pre></div>
  2581. </li><li>
  2582. To include a literal &lsquo;<samp>\</samp>&rsquo; you can use either escaping or quoting:
  2583. <div class="example">
  2584. <pre class="example">'c:\foo' can be written as c:\\foo
  2585. </pre></div>
  2586. </li></ul>
  2587. <p><a name="date-syntax"></a>
  2588. </p><a name="Date"></a>
  2589. <h2 class="section"><a href="ffprobe-all.html#toc-Date">6.2 Date</a></h2>
  2590. <p>The accepted syntax is:
  2591. </p><div class="example">
  2592. <pre class="example">[(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...]]])|(HHMMSS[.m...]]]))[Z]
  2593. now
  2594. </pre></div>
  2595. <p>If the value is &quot;now&quot; it takes the current time.
  2596. </p>
  2597. <p>Time is local time unless Z is appended, in which case it is
  2598. interpreted as UTC.
  2599. If the year-month-day part is not specified it takes the current
  2600. year-month-day.
  2601. </p>
  2602. <p><a name="time-duration-syntax"></a>
  2603. </p><a name="Time-duration"></a>
  2604. <h2 class="section"><a href="ffprobe-all.html#toc-Time-duration">6.3 Time duration</a></h2>
  2605. <p>There are two accepted syntaxes for expressing time duration.
  2606. </p>
  2607. <div class="example">
  2608. <pre class="example">[-][<var>HH</var>:]<var>MM</var>:<var>SS</var>[.<var>m</var>...]
  2609. </pre></div>
  2610. <p><var>HH</var> expresses the number of hours, <var>MM</var> the number of minutes
  2611. for a maximum of 2 digits, and <var>SS</var> the number of seconds for a
  2612. maximum of 2 digits. The <var>m</var> at the end expresses decimal value for
  2613. <var>SS</var>.
  2614. </p>
  2615. <p><em>or</em>
  2616. </p>
  2617. <div class="example">
  2618. <pre class="example">[-]<var>S</var>+[.<var>m</var>...]
  2619. </pre></div>
  2620. <p><var>S</var> expresses the number of seconds, with the optional decimal part
  2621. <var>m</var>.
  2622. </p>
  2623. <p>In both expressions, the optional &lsquo;<samp>-</samp>&rsquo; indicates negative duration.
  2624. </p>
  2625. <a name="Examples-124"></a>
  2626. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-124">6.3.1 Examples</a></h3>
  2627. <p>The following examples are all valid time duration:
  2628. </p>
  2629. <dl compact="compact">
  2630. <dt>&lsquo;<samp>55</samp>&rsquo;</dt>
  2631. <dd><p>55 seconds
  2632. </p>
  2633. </dd>
  2634. <dt>&lsquo;<samp>12:03:45</samp>&rsquo;</dt>
  2635. <dd><p>12 hours, 03 minutes and 45 seconds
  2636. </p>
  2637. </dd>
  2638. <dt>&lsquo;<samp>23.189</samp>&rsquo;</dt>
  2639. <dd><p>23.189 seconds
  2640. </p></dd>
  2641. </dl>
  2642. <p><a name="video-size-syntax"></a>
  2643. </p><a name="Video-size"></a>
  2644. <h2 class="section"><a href="ffprobe-all.html#toc-Video-size">6.4 Video size</a></h2>
  2645. <p>Specify the size of the sourced video, it may be a string of the form
  2646. <var>width</var>x<var>height</var>, or the name of a size abbreviation.
  2647. </p>
  2648. <p>The following abbreviations are recognized:
  2649. </p><dl compact="compact">
  2650. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  2651. <dd><p>720x480
  2652. </p></dd>
  2653. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  2654. <dd><p>720x576
  2655. </p></dd>
  2656. <dt>&lsquo;<samp>qntsc</samp>&rsquo;</dt>
  2657. <dd><p>352x240
  2658. </p></dd>
  2659. <dt>&lsquo;<samp>qpal</samp>&rsquo;</dt>
  2660. <dd><p>352x288
  2661. </p></dd>
  2662. <dt>&lsquo;<samp>sntsc</samp>&rsquo;</dt>
  2663. <dd><p>640x480
  2664. </p></dd>
  2665. <dt>&lsquo;<samp>spal</samp>&rsquo;</dt>
  2666. <dd><p>768x576
  2667. </p></dd>
  2668. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  2669. <dd><p>352x240
  2670. </p></dd>
  2671. <dt>&lsquo;<samp>ntsc-film</samp>&rsquo;</dt>
  2672. <dd><p>352x240
  2673. </p></dd>
  2674. <dt>&lsquo;<samp>sqcif</samp>&rsquo;</dt>
  2675. <dd><p>128x96
  2676. </p></dd>
  2677. <dt>&lsquo;<samp>qcif</samp>&rsquo;</dt>
  2678. <dd><p>176x144
  2679. </p></dd>
  2680. <dt>&lsquo;<samp>cif</samp>&rsquo;</dt>
  2681. <dd><p>352x288
  2682. </p></dd>
  2683. <dt>&lsquo;<samp>4cif</samp>&rsquo;</dt>
  2684. <dd><p>704x576
  2685. </p></dd>
  2686. <dt>&lsquo;<samp>16cif</samp>&rsquo;</dt>
  2687. <dd><p>1408x1152
  2688. </p></dd>
  2689. <dt>&lsquo;<samp>qqvga</samp>&rsquo;</dt>
  2690. <dd><p>160x120
  2691. </p></dd>
  2692. <dt>&lsquo;<samp>qvga</samp>&rsquo;</dt>
  2693. <dd><p>320x240
  2694. </p></dd>
  2695. <dt>&lsquo;<samp>vga</samp>&rsquo;</dt>
  2696. <dd><p>640x480
  2697. </p></dd>
  2698. <dt>&lsquo;<samp>svga</samp>&rsquo;</dt>
  2699. <dd><p>800x600
  2700. </p></dd>
  2701. <dt>&lsquo;<samp>xga</samp>&rsquo;</dt>
  2702. <dd><p>1024x768
  2703. </p></dd>
  2704. <dt>&lsquo;<samp>uxga</samp>&rsquo;</dt>
  2705. <dd><p>1600x1200
  2706. </p></dd>
  2707. <dt>&lsquo;<samp>qxga</samp>&rsquo;</dt>
  2708. <dd><p>2048x1536
  2709. </p></dd>
  2710. <dt>&lsquo;<samp>sxga</samp>&rsquo;</dt>
  2711. <dd><p>1280x1024
  2712. </p></dd>
  2713. <dt>&lsquo;<samp>qsxga</samp>&rsquo;</dt>
  2714. <dd><p>2560x2048
  2715. </p></dd>
  2716. <dt>&lsquo;<samp>hsxga</samp>&rsquo;</dt>
  2717. <dd><p>5120x4096
  2718. </p></dd>
  2719. <dt>&lsquo;<samp>wvga</samp>&rsquo;</dt>
  2720. <dd><p>852x480
  2721. </p></dd>
  2722. <dt>&lsquo;<samp>wxga</samp>&rsquo;</dt>
  2723. <dd><p>1366x768
  2724. </p></dd>
  2725. <dt>&lsquo;<samp>wsxga</samp>&rsquo;</dt>
  2726. <dd><p>1600x1024
  2727. </p></dd>
  2728. <dt>&lsquo;<samp>wuxga</samp>&rsquo;</dt>
  2729. <dd><p>1920x1200
  2730. </p></dd>
  2731. <dt>&lsquo;<samp>woxga</samp>&rsquo;</dt>
  2732. <dd><p>2560x1600
  2733. </p></dd>
  2734. <dt>&lsquo;<samp>wqsxga</samp>&rsquo;</dt>
  2735. <dd><p>3200x2048
  2736. </p></dd>
  2737. <dt>&lsquo;<samp>wquxga</samp>&rsquo;</dt>
  2738. <dd><p>3840x2400
  2739. </p></dd>
  2740. <dt>&lsquo;<samp>whsxga</samp>&rsquo;</dt>
  2741. <dd><p>6400x4096
  2742. </p></dd>
  2743. <dt>&lsquo;<samp>whuxga</samp>&rsquo;</dt>
  2744. <dd><p>7680x4800
  2745. </p></dd>
  2746. <dt>&lsquo;<samp>cga</samp>&rsquo;</dt>
  2747. <dd><p>320x200
  2748. </p></dd>
  2749. <dt>&lsquo;<samp>ega</samp>&rsquo;</dt>
  2750. <dd><p>640x350
  2751. </p></dd>
  2752. <dt>&lsquo;<samp>hd480</samp>&rsquo;</dt>
  2753. <dd><p>852x480
  2754. </p></dd>
  2755. <dt>&lsquo;<samp>hd720</samp>&rsquo;</dt>
  2756. <dd><p>1280x720
  2757. </p></dd>
  2758. <dt>&lsquo;<samp>hd1080</samp>&rsquo;</dt>
  2759. <dd><p>1920x1080
  2760. </p></dd>
  2761. <dt>&lsquo;<samp>2k</samp>&rsquo;</dt>
  2762. <dd><p>2048x1080
  2763. </p></dd>
  2764. <dt>&lsquo;<samp>2kflat</samp>&rsquo;</dt>
  2765. <dd><p>1998x1080
  2766. </p></dd>
  2767. <dt>&lsquo;<samp>2kscope</samp>&rsquo;</dt>
  2768. <dd><p>2048x858
  2769. </p></dd>
  2770. <dt>&lsquo;<samp>4k</samp>&rsquo;</dt>
  2771. <dd><p>4096x2160
  2772. </p></dd>
  2773. <dt>&lsquo;<samp>4kflat</samp>&rsquo;</dt>
  2774. <dd><p>3996x2160
  2775. </p></dd>
  2776. <dt>&lsquo;<samp>4kscope</samp>&rsquo;</dt>
  2777. <dd><p>4096x1716
  2778. </p></dd>
  2779. <dt>&lsquo;<samp>nhd</samp>&rsquo;</dt>
  2780. <dd><p>640x360
  2781. </p></dd>
  2782. <dt>&lsquo;<samp>hqvga</samp>&rsquo;</dt>
  2783. <dd><p>240x160
  2784. </p></dd>
  2785. <dt>&lsquo;<samp>wqvga</samp>&rsquo;</dt>
  2786. <dd><p>400x240
  2787. </p></dd>
  2788. <dt>&lsquo;<samp>fwqvga</samp>&rsquo;</dt>
  2789. <dd><p>432x240
  2790. </p></dd>
  2791. <dt>&lsquo;<samp>hvga</samp>&rsquo;</dt>
  2792. <dd><p>480x320
  2793. </p></dd>
  2794. <dt>&lsquo;<samp>qhd</samp>&rsquo;</dt>
  2795. <dd><p>960x540
  2796. </p></dd>
  2797. <dt>&lsquo;<samp>2kdci</samp>&rsquo;</dt>
  2798. <dd><p>2048x1080
  2799. </p></dd>
  2800. <dt>&lsquo;<samp>4kdci</samp>&rsquo;</dt>
  2801. <dd><p>4096x2160
  2802. </p></dd>
  2803. <dt>&lsquo;<samp>uhd2160</samp>&rsquo;</dt>
  2804. <dd><p>3840x2160
  2805. </p></dd>
  2806. <dt>&lsquo;<samp>uhd4320</samp>&rsquo;</dt>
  2807. <dd><p>7680x4320
  2808. </p></dd>
  2809. </dl>
  2810. <p><a name="video-rate-syntax"></a>
  2811. </p><a name="Video-rate"></a>
  2812. <h2 class="section"><a href="ffprobe-all.html#toc-Video-rate">6.5 Video rate</a></h2>
  2813. <p>Specify the frame rate of a video, expressed as the number of frames
  2814. generated per second. It has to be a string in the format
  2815. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a float
  2816. number or a valid video frame rate abbreviation.
  2817. </p>
  2818. <p>The following abbreviations are recognized:
  2819. </p><dl compact="compact">
  2820. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  2821. <dd><p>30000/1001
  2822. </p></dd>
  2823. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  2824. <dd><p>25/1
  2825. </p></dd>
  2826. <dt>&lsquo;<samp>qntsc</samp>&rsquo;</dt>
  2827. <dd><p>30000/1001
  2828. </p></dd>
  2829. <dt>&lsquo;<samp>qpal</samp>&rsquo;</dt>
  2830. <dd><p>25/1
  2831. </p></dd>
  2832. <dt>&lsquo;<samp>sntsc</samp>&rsquo;</dt>
  2833. <dd><p>30000/1001
  2834. </p></dd>
  2835. <dt>&lsquo;<samp>spal</samp>&rsquo;</dt>
  2836. <dd><p>25/1
  2837. </p></dd>
  2838. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  2839. <dd><p>24/1
  2840. </p></dd>
  2841. <dt>&lsquo;<samp>ntsc-film</samp>&rsquo;</dt>
  2842. <dd><p>24000/1001
  2843. </p></dd>
  2844. </dl>
  2845. <p><a name="ratio-syntax"></a>
  2846. </p><a name="Ratio"></a>
  2847. <h2 class="section"><a href="ffprobe-all.html#toc-Ratio">6.6 Ratio</a></h2>
  2848. <p>A ratio can be expressed as an expression, or in the form
  2849. <var>numerator</var>:<var>denominator</var>.
  2850. </p>
  2851. <p>Note that a ratio with infinite (1/0) or negative value is
  2852. considered valid, so you should check on the returned value if you
  2853. want to exclude those values.
  2854. </p>
  2855. <p>The undefined value can be expressed using the &quot;0:0&quot; string.
  2856. </p>
  2857. <p><a name="color-syntax"></a>
  2858. </p><a name="Color"></a>
  2859. <h2 class="section"><a href="ffprobe-all.html#toc-Color">6.7 Color</a></h2>
  2860. <p>It can be the name of a color as defined below (case insensitive match) or a
  2861. <code>[0x|#]RRGGBB[AA]</code> sequence, possibly followed by @ and a string
  2862. representing the alpha component.
  2863. </p>
  2864. <p>The alpha component may be a string composed by &quot;0x&quot; followed by an
  2865. hexadecimal number or a decimal number between 0.0 and 1.0, which
  2866. represents the opacity value (&lsquo;<samp>0x00</samp>&rsquo; or &lsquo;<samp>0.0</samp>&rsquo; means completely
  2867. transparent, &lsquo;<samp>0xff</samp>&rsquo; or &lsquo;<samp>1.0</samp>&rsquo; completely opaque). If the alpha
  2868. component is not specified then &lsquo;<samp>0xff</samp>&rsquo; is assumed.
  2869. </p>
  2870. <p>The string &lsquo;<samp>random</samp>&rsquo; will result in a random color.
  2871. </p>
  2872. <p>The following names of colors are recognized:
  2873. </p><dl compact="compact">
  2874. <dt>&lsquo;<samp>AliceBlue</samp>&rsquo;</dt>
  2875. <dd><p>0xF0F8FF
  2876. </p></dd>
  2877. <dt>&lsquo;<samp>AntiqueWhite</samp>&rsquo;</dt>
  2878. <dd><p>0xFAEBD7
  2879. </p></dd>
  2880. <dt>&lsquo;<samp>Aqua</samp>&rsquo;</dt>
  2881. <dd><p>0x00FFFF
  2882. </p></dd>
  2883. <dt>&lsquo;<samp>Aquamarine</samp>&rsquo;</dt>
  2884. <dd><p>0x7FFFD4
  2885. </p></dd>
  2886. <dt>&lsquo;<samp>Azure</samp>&rsquo;</dt>
  2887. <dd><p>0xF0FFFF
  2888. </p></dd>
  2889. <dt>&lsquo;<samp>Beige</samp>&rsquo;</dt>
  2890. <dd><p>0xF5F5DC
  2891. </p></dd>
  2892. <dt>&lsquo;<samp>Bisque</samp>&rsquo;</dt>
  2893. <dd><p>0xFFE4C4
  2894. </p></dd>
  2895. <dt>&lsquo;<samp>Black</samp>&rsquo;</dt>
  2896. <dd><p>0x000000
  2897. </p></dd>
  2898. <dt>&lsquo;<samp>BlanchedAlmond</samp>&rsquo;</dt>
  2899. <dd><p>0xFFEBCD
  2900. </p></dd>
  2901. <dt>&lsquo;<samp>Blue</samp>&rsquo;</dt>
  2902. <dd><p>0x0000FF
  2903. </p></dd>
  2904. <dt>&lsquo;<samp>BlueViolet</samp>&rsquo;</dt>
  2905. <dd><p>0x8A2BE2
  2906. </p></dd>
  2907. <dt>&lsquo;<samp>Brown</samp>&rsquo;</dt>
  2908. <dd><p>0xA52A2A
  2909. </p></dd>
  2910. <dt>&lsquo;<samp>BurlyWood</samp>&rsquo;</dt>
  2911. <dd><p>0xDEB887
  2912. </p></dd>
  2913. <dt>&lsquo;<samp>CadetBlue</samp>&rsquo;</dt>
  2914. <dd><p>0x5F9EA0
  2915. </p></dd>
  2916. <dt>&lsquo;<samp>Chartreuse</samp>&rsquo;</dt>
  2917. <dd><p>0x7FFF00
  2918. </p></dd>
  2919. <dt>&lsquo;<samp>Chocolate</samp>&rsquo;</dt>
  2920. <dd><p>0xD2691E
  2921. </p></dd>
  2922. <dt>&lsquo;<samp>Coral</samp>&rsquo;</dt>
  2923. <dd><p>0xFF7F50
  2924. </p></dd>
  2925. <dt>&lsquo;<samp>CornflowerBlue</samp>&rsquo;</dt>
  2926. <dd><p>0x6495ED
  2927. </p></dd>
  2928. <dt>&lsquo;<samp>Cornsilk</samp>&rsquo;</dt>
  2929. <dd><p>0xFFF8DC
  2930. </p></dd>
  2931. <dt>&lsquo;<samp>Crimson</samp>&rsquo;</dt>
  2932. <dd><p>0xDC143C
  2933. </p></dd>
  2934. <dt>&lsquo;<samp>Cyan</samp>&rsquo;</dt>
  2935. <dd><p>0x00FFFF
  2936. </p></dd>
  2937. <dt>&lsquo;<samp>DarkBlue</samp>&rsquo;</dt>
  2938. <dd><p>0x00008B
  2939. </p></dd>
  2940. <dt>&lsquo;<samp>DarkCyan</samp>&rsquo;</dt>
  2941. <dd><p>0x008B8B
  2942. </p></dd>
  2943. <dt>&lsquo;<samp>DarkGoldenRod</samp>&rsquo;</dt>
  2944. <dd><p>0xB8860B
  2945. </p></dd>
  2946. <dt>&lsquo;<samp>DarkGray</samp>&rsquo;</dt>
  2947. <dd><p>0xA9A9A9
  2948. </p></dd>
  2949. <dt>&lsquo;<samp>DarkGreen</samp>&rsquo;</dt>
  2950. <dd><p>0x006400
  2951. </p></dd>
  2952. <dt>&lsquo;<samp>DarkKhaki</samp>&rsquo;</dt>
  2953. <dd><p>0xBDB76B
  2954. </p></dd>
  2955. <dt>&lsquo;<samp>DarkMagenta</samp>&rsquo;</dt>
  2956. <dd><p>0x8B008B
  2957. </p></dd>
  2958. <dt>&lsquo;<samp>DarkOliveGreen</samp>&rsquo;</dt>
  2959. <dd><p>0x556B2F
  2960. </p></dd>
  2961. <dt>&lsquo;<samp>Darkorange</samp>&rsquo;</dt>
  2962. <dd><p>0xFF8C00
  2963. </p></dd>
  2964. <dt>&lsquo;<samp>DarkOrchid</samp>&rsquo;</dt>
  2965. <dd><p>0x9932CC
  2966. </p></dd>
  2967. <dt>&lsquo;<samp>DarkRed</samp>&rsquo;</dt>
  2968. <dd><p>0x8B0000
  2969. </p></dd>
  2970. <dt>&lsquo;<samp>DarkSalmon</samp>&rsquo;</dt>
  2971. <dd><p>0xE9967A
  2972. </p></dd>
  2973. <dt>&lsquo;<samp>DarkSeaGreen</samp>&rsquo;</dt>
  2974. <dd><p>0x8FBC8F
  2975. </p></dd>
  2976. <dt>&lsquo;<samp>DarkSlateBlue</samp>&rsquo;</dt>
  2977. <dd><p>0x483D8B
  2978. </p></dd>
  2979. <dt>&lsquo;<samp>DarkSlateGray</samp>&rsquo;</dt>
  2980. <dd><p>0x2F4F4F
  2981. </p></dd>
  2982. <dt>&lsquo;<samp>DarkTurquoise</samp>&rsquo;</dt>
  2983. <dd><p>0x00CED1
  2984. </p></dd>
  2985. <dt>&lsquo;<samp>DarkViolet</samp>&rsquo;</dt>
  2986. <dd><p>0x9400D3
  2987. </p></dd>
  2988. <dt>&lsquo;<samp>DeepPink</samp>&rsquo;</dt>
  2989. <dd><p>0xFF1493
  2990. </p></dd>
  2991. <dt>&lsquo;<samp>DeepSkyBlue</samp>&rsquo;</dt>
  2992. <dd><p>0x00BFFF
  2993. </p></dd>
  2994. <dt>&lsquo;<samp>DimGray</samp>&rsquo;</dt>
  2995. <dd><p>0x696969
  2996. </p></dd>
  2997. <dt>&lsquo;<samp>DodgerBlue</samp>&rsquo;</dt>
  2998. <dd><p>0x1E90FF
  2999. </p></dd>
  3000. <dt>&lsquo;<samp>FireBrick</samp>&rsquo;</dt>
  3001. <dd><p>0xB22222
  3002. </p></dd>
  3003. <dt>&lsquo;<samp>FloralWhite</samp>&rsquo;</dt>
  3004. <dd><p>0xFFFAF0
  3005. </p></dd>
  3006. <dt>&lsquo;<samp>ForestGreen</samp>&rsquo;</dt>
  3007. <dd><p>0x228B22
  3008. </p></dd>
  3009. <dt>&lsquo;<samp>Fuchsia</samp>&rsquo;</dt>
  3010. <dd><p>0xFF00FF
  3011. </p></dd>
  3012. <dt>&lsquo;<samp>Gainsboro</samp>&rsquo;</dt>
  3013. <dd><p>0xDCDCDC
  3014. </p></dd>
  3015. <dt>&lsquo;<samp>GhostWhite</samp>&rsquo;</dt>
  3016. <dd><p>0xF8F8FF
  3017. </p></dd>
  3018. <dt>&lsquo;<samp>Gold</samp>&rsquo;</dt>
  3019. <dd><p>0xFFD700
  3020. </p></dd>
  3021. <dt>&lsquo;<samp>GoldenRod</samp>&rsquo;</dt>
  3022. <dd><p>0xDAA520
  3023. </p></dd>
  3024. <dt>&lsquo;<samp>Gray</samp>&rsquo;</dt>
  3025. <dd><p>0x808080
  3026. </p></dd>
  3027. <dt>&lsquo;<samp>Green</samp>&rsquo;</dt>
  3028. <dd><p>0x008000
  3029. </p></dd>
  3030. <dt>&lsquo;<samp>GreenYellow</samp>&rsquo;</dt>
  3031. <dd><p>0xADFF2F
  3032. </p></dd>
  3033. <dt>&lsquo;<samp>HoneyDew</samp>&rsquo;</dt>
  3034. <dd><p>0xF0FFF0
  3035. </p></dd>
  3036. <dt>&lsquo;<samp>HotPink</samp>&rsquo;</dt>
  3037. <dd><p>0xFF69B4
  3038. </p></dd>
  3039. <dt>&lsquo;<samp>IndianRed</samp>&rsquo;</dt>
  3040. <dd><p>0xCD5C5C
  3041. </p></dd>
  3042. <dt>&lsquo;<samp>Indigo</samp>&rsquo;</dt>
  3043. <dd><p>0x4B0082
  3044. </p></dd>
  3045. <dt>&lsquo;<samp>Ivory</samp>&rsquo;</dt>
  3046. <dd><p>0xFFFFF0
  3047. </p></dd>
  3048. <dt>&lsquo;<samp>Khaki</samp>&rsquo;</dt>
  3049. <dd><p>0xF0E68C
  3050. </p></dd>
  3051. <dt>&lsquo;<samp>Lavender</samp>&rsquo;</dt>
  3052. <dd><p>0xE6E6FA
  3053. </p></dd>
  3054. <dt>&lsquo;<samp>LavenderBlush</samp>&rsquo;</dt>
  3055. <dd><p>0xFFF0F5
  3056. </p></dd>
  3057. <dt>&lsquo;<samp>LawnGreen</samp>&rsquo;</dt>
  3058. <dd><p>0x7CFC00
  3059. </p></dd>
  3060. <dt>&lsquo;<samp>LemonChiffon</samp>&rsquo;</dt>
  3061. <dd><p>0xFFFACD
  3062. </p></dd>
  3063. <dt>&lsquo;<samp>LightBlue</samp>&rsquo;</dt>
  3064. <dd><p>0xADD8E6
  3065. </p></dd>
  3066. <dt>&lsquo;<samp>LightCoral</samp>&rsquo;</dt>
  3067. <dd><p>0xF08080
  3068. </p></dd>
  3069. <dt>&lsquo;<samp>LightCyan</samp>&rsquo;</dt>
  3070. <dd><p>0xE0FFFF
  3071. </p></dd>
  3072. <dt>&lsquo;<samp>LightGoldenRodYellow</samp>&rsquo;</dt>
  3073. <dd><p>0xFAFAD2
  3074. </p></dd>
  3075. <dt>&lsquo;<samp>LightGreen</samp>&rsquo;</dt>
  3076. <dd><p>0x90EE90
  3077. </p></dd>
  3078. <dt>&lsquo;<samp>LightGrey</samp>&rsquo;</dt>
  3079. <dd><p>0xD3D3D3
  3080. </p></dd>
  3081. <dt>&lsquo;<samp>LightPink</samp>&rsquo;</dt>
  3082. <dd><p>0xFFB6C1
  3083. </p></dd>
  3084. <dt>&lsquo;<samp>LightSalmon</samp>&rsquo;</dt>
  3085. <dd><p>0xFFA07A
  3086. </p></dd>
  3087. <dt>&lsquo;<samp>LightSeaGreen</samp>&rsquo;</dt>
  3088. <dd><p>0x20B2AA
  3089. </p></dd>
  3090. <dt>&lsquo;<samp>LightSkyBlue</samp>&rsquo;</dt>
  3091. <dd><p>0x87CEFA
  3092. </p></dd>
  3093. <dt>&lsquo;<samp>LightSlateGray</samp>&rsquo;</dt>
  3094. <dd><p>0x778899
  3095. </p></dd>
  3096. <dt>&lsquo;<samp>LightSteelBlue</samp>&rsquo;</dt>
  3097. <dd><p>0xB0C4DE
  3098. </p></dd>
  3099. <dt>&lsquo;<samp>LightYellow</samp>&rsquo;</dt>
  3100. <dd><p>0xFFFFE0
  3101. </p></dd>
  3102. <dt>&lsquo;<samp>Lime</samp>&rsquo;</dt>
  3103. <dd><p>0x00FF00
  3104. </p></dd>
  3105. <dt>&lsquo;<samp>LimeGreen</samp>&rsquo;</dt>
  3106. <dd><p>0x32CD32
  3107. </p></dd>
  3108. <dt>&lsquo;<samp>Linen</samp>&rsquo;</dt>
  3109. <dd><p>0xFAF0E6
  3110. </p></dd>
  3111. <dt>&lsquo;<samp>Magenta</samp>&rsquo;</dt>
  3112. <dd><p>0xFF00FF
  3113. </p></dd>
  3114. <dt>&lsquo;<samp>Maroon</samp>&rsquo;</dt>
  3115. <dd><p>0x800000
  3116. </p></dd>
  3117. <dt>&lsquo;<samp>MediumAquaMarine</samp>&rsquo;</dt>
  3118. <dd><p>0x66CDAA
  3119. </p></dd>
  3120. <dt>&lsquo;<samp>MediumBlue</samp>&rsquo;</dt>
  3121. <dd><p>0x0000CD
  3122. </p></dd>
  3123. <dt>&lsquo;<samp>MediumOrchid</samp>&rsquo;</dt>
  3124. <dd><p>0xBA55D3
  3125. </p></dd>
  3126. <dt>&lsquo;<samp>MediumPurple</samp>&rsquo;</dt>
  3127. <dd><p>0x9370D8
  3128. </p></dd>
  3129. <dt>&lsquo;<samp>MediumSeaGreen</samp>&rsquo;</dt>
  3130. <dd><p>0x3CB371
  3131. </p></dd>
  3132. <dt>&lsquo;<samp>MediumSlateBlue</samp>&rsquo;</dt>
  3133. <dd><p>0x7B68EE
  3134. </p></dd>
  3135. <dt>&lsquo;<samp>MediumSpringGreen</samp>&rsquo;</dt>
  3136. <dd><p>0x00FA9A
  3137. </p></dd>
  3138. <dt>&lsquo;<samp>MediumTurquoise</samp>&rsquo;</dt>
  3139. <dd><p>0x48D1CC
  3140. </p></dd>
  3141. <dt>&lsquo;<samp>MediumVioletRed</samp>&rsquo;</dt>
  3142. <dd><p>0xC71585
  3143. </p></dd>
  3144. <dt>&lsquo;<samp>MidnightBlue</samp>&rsquo;</dt>
  3145. <dd><p>0x191970
  3146. </p></dd>
  3147. <dt>&lsquo;<samp>MintCream</samp>&rsquo;</dt>
  3148. <dd><p>0xF5FFFA
  3149. </p></dd>
  3150. <dt>&lsquo;<samp>MistyRose</samp>&rsquo;</dt>
  3151. <dd><p>0xFFE4E1
  3152. </p></dd>
  3153. <dt>&lsquo;<samp>Moccasin</samp>&rsquo;</dt>
  3154. <dd><p>0xFFE4B5
  3155. </p></dd>
  3156. <dt>&lsquo;<samp>NavajoWhite</samp>&rsquo;</dt>
  3157. <dd><p>0xFFDEAD
  3158. </p></dd>
  3159. <dt>&lsquo;<samp>Navy</samp>&rsquo;</dt>
  3160. <dd><p>0x000080
  3161. </p></dd>
  3162. <dt>&lsquo;<samp>OldLace</samp>&rsquo;</dt>
  3163. <dd><p>0xFDF5E6
  3164. </p></dd>
  3165. <dt>&lsquo;<samp>Olive</samp>&rsquo;</dt>
  3166. <dd><p>0x808000
  3167. </p></dd>
  3168. <dt>&lsquo;<samp>OliveDrab</samp>&rsquo;</dt>
  3169. <dd><p>0x6B8E23
  3170. </p></dd>
  3171. <dt>&lsquo;<samp>Orange</samp>&rsquo;</dt>
  3172. <dd><p>0xFFA500
  3173. </p></dd>
  3174. <dt>&lsquo;<samp>OrangeRed</samp>&rsquo;</dt>
  3175. <dd><p>0xFF4500
  3176. </p></dd>
  3177. <dt>&lsquo;<samp>Orchid</samp>&rsquo;</dt>
  3178. <dd><p>0xDA70D6
  3179. </p></dd>
  3180. <dt>&lsquo;<samp>PaleGoldenRod</samp>&rsquo;</dt>
  3181. <dd><p>0xEEE8AA
  3182. </p></dd>
  3183. <dt>&lsquo;<samp>PaleGreen</samp>&rsquo;</dt>
  3184. <dd><p>0x98FB98
  3185. </p></dd>
  3186. <dt>&lsquo;<samp>PaleTurquoise</samp>&rsquo;</dt>
  3187. <dd><p>0xAFEEEE
  3188. </p></dd>
  3189. <dt>&lsquo;<samp>PaleVioletRed</samp>&rsquo;</dt>
  3190. <dd><p>0xD87093
  3191. </p></dd>
  3192. <dt>&lsquo;<samp>PapayaWhip</samp>&rsquo;</dt>
  3193. <dd><p>0xFFEFD5
  3194. </p></dd>
  3195. <dt>&lsquo;<samp>PeachPuff</samp>&rsquo;</dt>
  3196. <dd><p>0xFFDAB9
  3197. </p></dd>
  3198. <dt>&lsquo;<samp>Peru</samp>&rsquo;</dt>
  3199. <dd><p>0xCD853F
  3200. </p></dd>
  3201. <dt>&lsquo;<samp>Pink</samp>&rsquo;</dt>
  3202. <dd><p>0xFFC0CB
  3203. </p></dd>
  3204. <dt>&lsquo;<samp>Plum</samp>&rsquo;</dt>
  3205. <dd><p>0xDDA0DD
  3206. </p></dd>
  3207. <dt>&lsquo;<samp>PowderBlue</samp>&rsquo;</dt>
  3208. <dd><p>0xB0E0E6
  3209. </p></dd>
  3210. <dt>&lsquo;<samp>Purple</samp>&rsquo;</dt>
  3211. <dd><p>0x800080
  3212. </p></dd>
  3213. <dt>&lsquo;<samp>Red</samp>&rsquo;</dt>
  3214. <dd><p>0xFF0000
  3215. </p></dd>
  3216. <dt>&lsquo;<samp>RosyBrown</samp>&rsquo;</dt>
  3217. <dd><p>0xBC8F8F
  3218. </p></dd>
  3219. <dt>&lsquo;<samp>RoyalBlue</samp>&rsquo;</dt>
  3220. <dd><p>0x4169E1
  3221. </p></dd>
  3222. <dt>&lsquo;<samp>SaddleBrown</samp>&rsquo;</dt>
  3223. <dd><p>0x8B4513
  3224. </p></dd>
  3225. <dt>&lsquo;<samp>Salmon</samp>&rsquo;</dt>
  3226. <dd><p>0xFA8072
  3227. </p></dd>
  3228. <dt>&lsquo;<samp>SandyBrown</samp>&rsquo;</dt>
  3229. <dd><p>0xF4A460
  3230. </p></dd>
  3231. <dt>&lsquo;<samp>SeaGreen</samp>&rsquo;</dt>
  3232. <dd><p>0x2E8B57
  3233. </p></dd>
  3234. <dt>&lsquo;<samp>SeaShell</samp>&rsquo;</dt>
  3235. <dd><p>0xFFF5EE
  3236. </p></dd>
  3237. <dt>&lsquo;<samp>Sienna</samp>&rsquo;</dt>
  3238. <dd><p>0xA0522D
  3239. </p></dd>
  3240. <dt>&lsquo;<samp>Silver</samp>&rsquo;</dt>
  3241. <dd><p>0xC0C0C0
  3242. </p></dd>
  3243. <dt>&lsquo;<samp>SkyBlue</samp>&rsquo;</dt>
  3244. <dd><p>0x87CEEB
  3245. </p></dd>
  3246. <dt>&lsquo;<samp>SlateBlue</samp>&rsquo;</dt>
  3247. <dd><p>0x6A5ACD
  3248. </p></dd>
  3249. <dt>&lsquo;<samp>SlateGray</samp>&rsquo;</dt>
  3250. <dd><p>0x708090
  3251. </p></dd>
  3252. <dt>&lsquo;<samp>Snow</samp>&rsquo;</dt>
  3253. <dd><p>0xFFFAFA
  3254. </p></dd>
  3255. <dt>&lsquo;<samp>SpringGreen</samp>&rsquo;</dt>
  3256. <dd><p>0x00FF7F
  3257. </p></dd>
  3258. <dt>&lsquo;<samp>SteelBlue</samp>&rsquo;</dt>
  3259. <dd><p>0x4682B4
  3260. </p></dd>
  3261. <dt>&lsquo;<samp>Tan</samp>&rsquo;</dt>
  3262. <dd><p>0xD2B48C
  3263. </p></dd>
  3264. <dt>&lsquo;<samp>Teal</samp>&rsquo;</dt>
  3265. <dd><p>0x008080
  3266. </p></dd>
  3267. <dt>&lsquo;<samp>Thistle</samp>&rsquo;</dt>
  3268. <dd><p>0xD8BFD8
  3269. </p></dd>
  3270. <dt>&lsquo;<samp>Tomato</samp>&rsquo;</dt>
  3271. <dd><p>0xFF6347
  3272. </p></dd>
  3273. <dt>&lsquo;<samp>Turquoise</samp>&rsquo;</dt>
  3274. <dd><p>0x40E0D0
  3275. </p></dd>
  3276. <dt>&lsquo;<samp>Violet</samp>&rsquo;</dt>
  3277. <dd><p>0xEE82EE
  3278. </p></dd>
  3279. <dt>&lsquo;<samp>Wheat</samp>&rsquo;</dt>
  3280. <dd><p>0xF5DEB3
  3281. </p></dd>
  3282. <dt>&lsquo;<samp>White</samp>&rsquo;</dt>
  3283. <dd><p>0xFFFFFF
  3284. </p></dd>
  3285. <dt>&lsquo;<samp>WhiteSmoke</samp>&rsquo;</dt>
  3286. <dd><p>0xF5F5F5
  3287. </p></dd>
  3288. <dt>&lsquo;<samp>Yellow</samp>&rsquo;</dt>
  3289. <dd><p>0xFFFF00
  3290. </p></dd>
  3291. <dt>&lsquo;<samp>YellowGreen</samp>&rsquo;</dt>
  3292. <dd><p>0x9ACD32
  3293. </p></dd>
  3294. </dl>
  3295. <p><a name="channel-layout-syntax"></a>
  3296. </p><a name="Channel-Layout"></a>
  3297. <h2 class="section"><a href="ffprobe-all.html#toc-Channel-Layout">6.8 Channel Layout</a></h2>
  3298. <p>A channel layout specifies the spatial disposition of the channels in
  3299. a multi-channel audio stream. To specify a channel layout, FFmpeg
  3300. makes use of a special syntax.
  3301. </p>
  3302. <p>Individual channels are identified by an id, as given by the table
  3303. below:
  3304. </p><dl compact="compact">
  3305. <dt>&lsquo;<samp>FL</samp>&rsquo;</dt>
  3306. <dd><p>front left
  3307. </p></dd>
  3308. <dt>&lsquo;<samp>FR</samp>&rsquo;</dt>
  3309. <dd><p>front right
  3310. </p></dd>
  3311. <dt>&lsquo;<samp>FC</samp>&rsquo;</dt>
  3312. <dd><p>front center
  3313. </p></dd>
  3314. <dt>&lsquo;<samp>LFE</samp>&rsquo;</dt>
  3315. <dd><p>low frequency
  3316. </p></dd>
  3317. <dt>&lsquo;<samp>BL</samp>&rsquo;</dt>
  3318. <dd><p>back left
  3319. </p></dd>
  3320. <dt>&lsquo;<samp>BR</samp>&rsquo;</dt>
  3321. <dd><p>back right
  3322. </p></dd>
  3323. <dt>&lsquo;<samp>FLC</samp>&rsquo;</dt>
  3324. <dd><p>front left-of-center
  3325. </p></dd>
  3326. <dt>&lsquo;<samp>FRC</samp>&rsquo;</dt>
  3327. <dd><p>front right-of-center
  3328. </p></dd>
  3329. <dt>&lsquo;<samp>BC</samp>&rsquo;</dt>
  3330. <dd><p>back center
  3331. </p></dd>
  3332. <dt>&lsquo;<samp>SL</samp>&rsquo;</dt>
  3333. <dd><p>side left
  3334. </p></dd>
  3335. <dt>&lsquo;<samp>SR</samp>&rsquo;</dt>
  3336. <dd><p>side right
  3337. </p></dd>
  3338. <dt>&lsquo;<samp>TC</samp>&rsquo;</dt>
  3339. <dd><p>top center
  3340. </p></dd>
  3341. <dt>&lsquo;<samp>TFL</samp>&rsquo;</dt>
  3342. <dd><p>top front left
  3343. </p></dd>
  3344. <dt>&lsquo;<samp>TFC</samp>&rsquo;</dt>
  3345. <dd><p>top front center
  3346. </p></dd>
  3347. <dt>&lsquo;<samp>TFR</samp>&rsquo;</dt>
  3348. <dd><p>top front right
  3349. </p></dd>
  3350. <dt>&lsquo;<samp>TBL</samp>&rsquo;</dt>
  3351. <dd><p>top back left
  3352. </p></dd>
  3353. <dt>&lsquo;<samp>TBC</samp>&rsquo;</dt>
  3354. <dd><p>top back center
  3355. </p></dd>
  3356. <dt>&lsquo;<samp>TBR</samp>&rsquo;</dt>
  3357. <dd><p>top back right
  3358. </p></dd>
  3359. <dt>&lsquo;<samp>DL</samp>&rsquo;</dt>
  3360. <dd><p>downmix left
  3361. </p></dd>
  3362. <dt>&lsquo;<samp>DR</samp>&rsquo;</dt>
  3363. <dd><p>downmix right
  3364. </p></dd>
  3365. <dt>&lsquo;<samp>WL</samp>&rsquo;</dt>
  3366. <dd><p>wide left
  3367. </p></dd>
  3368. <dt>&lsquo;<samp>WR</samp>&rsquo;</dt>
  3369. <dd><p>wide right
  3370. </p></dd>
  3371. <dt>&lsquo;<samp>SDL</samp>&rsquo;</dt>
  3372. <dd><p>surround direct left
  3373. </p></dd>
  3374. <dt>&lsquo;<samp>SDR</samp>&rsquo;</dt>
  3375. <dd><p>surround direct right
  3376. </p></dd>
  3377. <dt>&lsquo;<samp>LFE2</samp>&rsquo;</dt>
  3378. <dd><p>low frequency 2
  3379. </p></dd>
  3380. </dl>
  3381. <p>Standard channel layout compositions can be specified by using the
  3382. following identifiers:
  3383. </p><dl compact="compact">
  3384. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  3385. <dd><p>FC
  3386. </p></dd>
  3387. <dt>&lsquo;<samp>stereo</samp>&rsquo;</dt>
  3388. <dd><p>FL+FR
  3389. </p></dd>
  3390. <dt>&lsquo;<samp>2.1</samp>&rsquo;</dt>
  3391. <dd><p>FL+FR+LFE
  3392. </p></dd>
  3393. <dt>&lsquo;<samp>3.0</samp>&rsquo;</dt>
  3394. <dd><p>FL+FR+FC
  3395. </p></dd>
  3396. <dt>&lsquo;<samp>3.0(back)</samp>&rsquo;</dt>
  3397. <dd><p>FL+FR+BC
  3398. </p></dd>
  3399. <dt>&lsquo;<samp>4.0</samp>&rsquo;</dt>
  3400. <dd><p>FL+FR+FC+BC
  3401. </p></dd>
  3402. <dt>&lsquo;<samp>quad</samp>&rsquo;</dt>
  3403. <dd><p>FL+FR+BL+BR
  3404. </p></dd>
  3405. <dt>&lsquo;<samp>quad(side)</samp>&rsquo;</dt>
  3406. <dd><p>FL+FR+SL+SR
  3407. </p></dd>
  3408. <dt>&lsquo;<samp>3.1</samp>&rsquo;</dt>
  3409. <dd><p>FL+FR+FC+LFE
  3410. </p></dd>
  3411. <dt>&lsquo;<samp>5.0</samp>&rsquo;</dt>
  3412. <dd><p>FL+FR+FC+BL+BR
  3413. </p></dd>
  3414. <dt>&lsquo;<samp>5.0(side)</samp>&rsquo;</dt>
  3415. <dd><p>FL+FR+FC+SL+SR
  3416. </p></dd>
  3417. <dt>&lsquo;<samp>4.1</samp>&rsquo;</dt>
  3418. <dd><p>FL+FR+FC+LFE+BC
  3419. </p></dd>
  3420. <dt>&lsquo;<samp>5.1</samp>&rsquo;</dt>
  3421. <dd><p>FL+FR+FC+LFE+BL+BR
  3422. </p></dd>
  3423. <dt>&lsquo;<samp>5.1(side)</samp>&rsquo;</dt>
  3424. <dd><p>FL+FR+FC+LFE+SL+SR
  3425. </p></dd>
  3426. <dt>&lsquo;<samp>6.0</samp>&rsquo;</dt>
  3427. <dd><p>FL+FR+FC+BC+SL+SR
  3428. </p></dd>
  3429. <dt>&lsquo;<samp>6.0(front)</samp>&rsquo;</dt>
  3430. <dd><p>FL+FR+FLC+FRC+SL+SR
  3431. </p></dd>
  3432. <dt>&lsquo;<samp>hexagonal</samp>&rsquo;</dt>
  3433. <dd><p>FL+FR+FC+BL+BR+BC
  3434. </p></dd>
  3435. <dt>&lsquo;<samp>6.1</samp>&rsquo;</dt>
  3436. <dd><p>FL+FR+FC+LFE+BC+SL+SR
  3437. </p></dd>
  3438. <dt>&lsquo;<samp>6.1</samp>&rsquo;</dt>
  3439. <dd><p>FL+FR+FC+LFE+BL+BR+BC
  3440. </p></dd>
  3441. <dt>&lsquo;<samp>6.1(front)</samp>&rsquo;</dt>
  3442. <dd><p>FL+FR+LFE+FLC+FRC+SL+SR
  3443. </p></dd>
  3444. <dt>&lsquo;<samp>7.0</samp>&rsquo;</dt>
  3445. <dd><p>FL+FR+FC+BL+BR+SL+SR
  3446. </p></dd>
  3447. <dt>&lsquo;<samp>7.0(front)</samp>&rsquo;</dt>
  3448. <dd><p>FL+FR+FC+FLC+FRC+SL+SR
  3449. </p></dd>
  3450. <dt>&lsquo;<samp>7.1</samp>&rsquo;</dt>
  3451. <dd><p>FL+FR+FC+LFE+BL+BR+SL+SR
  3452. </p></dd>
  3453. <dt>&lsquo;<samp>7.1(wide)</samp>&rsquo;</dt>
  3454. <dd><p>FL+FR+FC+LFE+BL+BR+FLC+FRC
  3455. </p></dd>
  3456. <dt>&lsquo;<samp>7.1(wide-side)</samp>&rsquo;</dt>
  3457. <dd><p>FL+FR+FC+LFE+FLC+FRC+SL+SR
  3458. </p></dd>
  3459. <dt>&lsquo;<samp>octagonal</samp>&rsquo;</dt>
  3460. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR
  3461. </p></dd>
  3462. <dt>&lsquo;<samp>hexadecagonal</samp>&rsquo;</dt>
  3463. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR+WL+WR+TBL+TBR+TBC+TFC+TFL+TFR
  3464. </p></dd>
  3465. <dt>&lsquo;<samp>downmix</samp>&rsquo;</dt>
  3466. <dd><p>DL+DR
  3467. </p></dd>
  3468. </dl>
  3469. <p>A custom channel layout can be specified as a sequence of terms, separated by
  3470. &rsquo;+&rsquo; or &rsquo;|&rsquo;. Each term can be:
  3471. </p><ul>
  3472. <li>
  3473. the name of a standard channel layout (e.g. &lsquo;<samp>mono</samp>&rsquo;,
  3474. &lsquo;<samp>stereo</samp>&rsquo;, &lsquo;<samp>4.0</samp>&rsquo;, &lsquo;<samp>quad</samp>&rsquo;, &lsquo;<samp>5.0</samp>&rsquo;, etc.)
  3475. </li><li>
  3476. 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.)
  3477. </li><li>
  3478. a number of channels, in decimal, followed by &rsquo;c&rsquo;, yielding the default channel
  3479. layout for that number of channels (see the function
  3480. <code>av_get_default_channel_layout</code>). Note that not all channel counts have a
  3481. default layout.
  3482. </li><li>
  3483. a number of channels, in decimal, followed by &rsquo;C&rsquo;, yielding an unknown channel
  3484. layout with the specified number of channels. Note that not all channel layout
  3485. specification strings support unknown channel layouts.
  3486. </li><li>
  3487. a channel layout mask, in hexadecimal starting with &quot;0x&quot; (see the
  3488. <code>AV_CH_*</code> macros in &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;.
  3489. </li></ul>
  3490. <p>Before libavutil version 53 the trailing character &quot;c&quot; to specify a number of
  3491. channels was optional, but now it is required, while a channel layout mask can
  3492. also be specified as a decimal number (if and only if not followed by &quot;c&quot; or &quot;C&quot;).
  3493. </p>
  3494. <p>See also the function <code>av_get_channel_layout</code> defined in
  3495. &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;.
  3496. </p>
  3497. <a name="Expression-Evaluation"></a>
  3498. <h1 class="chapter"><a href="ffprobe-all.html#toc-Expression-Evaluation">7 Expression Evaluation</a></h1>
  3499. <p>When evaluating an arithmetic expression, FFmpeg uses an internal
  3500. formula evaluator, implemented through the &lsquo;<tt>libavutil/eval.h</tt>&rsquo;
  3501. interface.
  3502. </p>
  3503. <p>An expression may contain unary, binary operators, constants, and
  3504. functions.
  3505. </p>
  3506. <p>Two expressions <var>expr1</var> and <var>expr2</var> can be combined to form
  3507. another expression &quot;<var>expr1</var>;<var>expr2</var>&quot;.
  3508. <var>expr1</var> and <var>expr2</var> are evaluated in turn, and the new
  3509. expression evaluates to the value of <var>expr2</var>.
  3510. </p>
  3511. <p>The following binary operators are available: <code>+</code>, <code>-</code>,
  3512. <code>*</code>, <code>/</code>, <code>^</code>.
  3513. </p>
  3514. <p>The following unary operators are available: <code>+</code>, <code>-</code>.
  3515. </p>
  3516. <p>The following functions are available:
  3517. </p><dl compact="compact">
  3518. <dt>&lsquo;<samp>abs(x)</samp>&rsquo;</dt>
  3519. <dd><p>Compute absolute value of <var>x</var>.
  3520. </p>
  3521. </dd>
  3522. <dt>&lsquo;<samp>acos(x)</samp>&rsquo;</dt>
  3523. <dd><p>Compute arccosine of <var>x</var>.
  3524. </p>
  3525. </dd>
  3526. <dt>&lsquo;<samp>asin(x)</samp>&rsquo;</dt>
  3527. <dd><p>Compute arcsine of <var>x</var>.
  3528. </p>
  3529. </dd>
  3530. <dt>&lsquo;<samp>atan(x)</samp>&rsquo;</dt>
  3531. <dd><p>Compute arctangent of <var>x</var>.
  3532. </p>
  3533. </dd>
  3534. <dt>&lsquo;<samp>atan2(x, y)</samp>&rsquo;</dt>
  3535. <dd><p>Compute principal value of the arc tangent of <var>y</var>/<var>x</var>.
  3536. </p>
  3537. </dd>
  3538. <dt>&lsquo;<samp>between(x, min, max)</samp>&rsquo;</dt>
  3539. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>min</var> and lesser than or
  3540. equal to <var>max</var>, 0 otherwise.
  3541. </p>
  3542. </dd>
  3543. <dt>&lsquo;<samp>bitand(x, y)</samp>&rsquo;</dt>
  3544. <dt>&lsquo;<samp>bitor(x, y)</samp>&rsquo;</dt>
  3545. <dd><p>Compute bitwise and/or operation on <var>x</var> and <var>y</var>.
  3546. </p>
  3547. <p>The results of the evaluation of <var>x</var> and <var>y</var> are converted to
  3548. integers before executing the bitwise operation.
  3549. </p>
  3550. <p>Note that both the conversion to integer and the conversion back to
  3551. floating point can lose precision. Beware of unexpected results for
  3552. large numbers (usually 2^53 and larger).
  3553. </p>
  3554. </dd>
  3555. <dt>&lsquo;<samp>ceil(expr)</samp>&rsquo;</dt>
  3556. <dd><p>Round the value of expression <var>expr</var> upwards to the nearest
  3557. integer. For example, &quot;ceil(1.5)&quot; is &quot;2.0&quot;.
  3558. </p>
  3559. </dd>
  3560. <dt>&lsquo;<samp>clip(x, min, max)</samp>&rsquo;</dt>
  3561. <dd><p>Return the value of <var>x</var> clipped between <var>min</var> and <var>max</var>.
  3562. </p>
  3563. </dd>
  3564. <dt>&lsquo;<samp>cos(x)</samp>&rsquo;</dt>
  3565. <dd><p>Compute cosine of <var>x</var>.
  3566. </p>
  3567. </dd>
  3568. <dt>&lsquo;<samp>cosh(x)</samp>&rsquo;</dt>
  3569. <dd><p>Compute hyperbolic cosine of <var>x</var>.
  3570. </p>
  3571. </dd>
  3572. <dt>&lsquo;<samp>eq(x, y)</samp>&rsquo;</dt>
  3573. <dd><p>Return 1 if <var>x</var> and <var>y</var> are equivalent, 0 otherwise.
  3574. </p>
  3575. </dd>
  3576. <dt>&lsquo;<samp>exp(x)</samp>&rsquo;</dt>
  3577. <dd><p>Compute exponential of <var>x</var> (with base <code>e</code>, the Euler&rsquo;s number).
  3578. </p>
  3579. </dd>
  3580. <dt>&lsquo;<samp>floor(expr)</samp>&rsquo;</dt>
  3581. <dd><p>Round the value of expression <var>expr</var> downwards to the nearest
  3582. integer. For example, &quot;floor(-1.5)&quot; is &quot;-2.0&quot;.
  3583. </p>
  3584. </dd>
  3585. <dt>&lsquo;<samp>gauss(x)</samp>&rsquo;</dt>
  3586. <dd><p>Compute Gauss function of <var>x</var>, corresponding to
  3587. <code>exp(-x*x/2) / sqrt(2*PI)</code>.
  3588. </p>
  3589. </dd>
  3590. <dt>&lsquo;<samp>gcd(x, y)</samp>&rsquo;</dt>
  3591. <dd><p>Return the greatest common divisor of <var>x</var> and <var>y</var>. If both <var>x</var> and
  3592. <var>y</var> are 0 or either or both are less than zero then behavior is undefined.
  3593. </p>
  3594. </dd>
  3595. <dt>&lsquo;<samp>gt(x, y)</samp>&rsquo;</dt>
  3596. <dd><p>Return 1 if <var>x</var> is greater than <var>y</var>, 0 otherwise.
  3597. </p>
  3598. </dd>
  3599. <dt>&lsquo;<samp>gte(x, y)</samp>&rsquo;</dt>
  3600. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>y</var>, 0 otherwise.
  3601. </p>
  3602. </dd>
  3603. <dt>&lsquo;<samp>hypot(x, y)</samp>&rsquo;</dt>
  3604. <dd><p>This function is similar to the C function with the same name; it returns
  3605. &quot;sqrt(<var>x</var>*<var>x</var> + <var>y</var>*<var>y</var>)&quot;, the length of the hypotenuse of a
  3606. right triangle with sides of length <var>x</var> and <var>y</var>, or the distance of the
  3607. point (<var>x</var>, <var>y</var>) from the origin.
  3608. </p>
  3609. </dd>
  3610. <dt>&lsquo;<samp>if(x, y)</samp>&rsquo;</dt>
  3611. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the result of
  3612. the evaluation of <var>y</var>, return 0 otherwise.
  3613. </p>
  3614. </dd>
  3615. <dt>&lsquo;<samp>if(x, y, z)</samp>&rsquo;</dt>
  3616. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the evaluation
  3617. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  3618. </p>
  3619. </dd>
  3620. <dt>&lsquo;<samp>ifnot(x, y)</samp>&rsquo;</dt>
  3621. <dd><p>Evaluate <var>x</var>, and if the result is zero return the result of the
  3622. evaluation of <var>y</var>, return 0 otherwise.
  3623. </p>
  3624. </dd>
  3625. <dt>&lsquo;<samp>ifnot(x, y, z)</samp>&rsquo;</dt>
  3626. <dd><p>Evaluate <var>x</var>, and if the result is zero return the evaluation
  3627. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  3628. </p>
  3629. </dd>
  3630. <dt>&lsquo;<samp>isinf(x)</samp>&rsquo;</dt>
  3631. <dd><p>Return 1.0 if <var>x</var> is +/-INFINITY, 0.0 otherwise.
  3632. </p>
  3633. </dd>
  3634. <dt>&lsquo;<samp>isnan(x)</samp>&rsquo;</dt>
  3635. <dd><p>Return 1.0 if <var>x</var> is NAN, 0.0 otherwise.
  3636. </p>
  3637. </dd>
  3638. <dt>&lsquo;<samp>ld(var)</samp>&rsquo;</dt>
  3639. <dd><p>Load the value of the internal variable with number
  3640. <var>var</var>, which was previously stored with st(<var>var</var>, <var>expr</var>).
  3641. The function returns the loaded value.
  3642. </p>
  3643. </dd>
  3644. <dt>&lsquo;<samp>lerp(x, y, z)</samp>&rsquo;</dt>
  3645. <dd><p>Return linear interpolation between <var>x</var> and <var>y</var> by amount of <var>z</var>.
  3646. </p>
  3647. </dd>
  3648. <dt>&lsquo;<samp>log(x)</samp>&rsquo;</dt>
  3649. <dd><p>Compute natural logarithm of <var>x</var>.
  3650. </p>
  3651. </dd>
  3652. <dt>&lsquo;<samp>lt(x, y)</samp>&rsquo;</dt>
  3653. <dd><p>Return 1 if <var>x</var> is lesser than <var>y</var>, 0 otherwise.
  3654. </p>
  3655. </dd>
  3656. <dt>&lsquo;<samp>lte(x, y)</samp>&rsquo;</dt>
  3657. <dd><p>Return 1 if <var>x</var> is lesser than or equal to <var>y</var>, 0 otherwise.
  3658. </p>
  3659. </dd>
  3660. <dt>&lsquo;<samp>max(x, y)</samp>&rsquo;</dt>
  3661. <dd><p>Return the maximum between <var>x</var> and <var>y</var>.
  3662. </p>
  3663. </dd>
  3664. <dt>&lsquo;<samp>min(x, y)</samp>&rsquo;</dt>
  3665. <dd><p>Return the minimum between <var>x</var> and <var>y</var>.
  3666. </p>
  3667. </dd>
  3668. <dt>&lsquo;<samp>mod(x, y)</samp>&rsquo;</dt>
  3669. <dd><p>Compute the remainder of division of <var>x</var> by <var>y</var>.
  3670. </p>
  3671. </dd>
  3672. <dt>&lsquo;<samp>not(expr)</samp>&rsquo;</dt>
  3673. <dd><p>Return 1.0 if <var>expr</var> is zero, 0.0 otherwise.
  3674. </p>
  3675. </dd>
  3676. <dt>&lsquo;<samp>pow(x, y)</samp>&rsquo;</dt>
  3677. <dd><p>Compute the power of <var>x</var> elevated <var>y</var>, it is equivalent to
  3678. &quot;(<var>x</var>)^(<var>y</var>)&quot;.
  3679. </p>
  3680. </dd>
  3681. <dt>&lsquo;<samp>print(t)</samp>&rsquo;</dt>
  3682. <dt>&lsquo;<samp>print(t, l)</samp>&rsquo;</dt>
  3683. <dd><p>Print the value of expression <var>t</var> with loglevel <var>l</var>. If
  3684. <var>l</var> is not specified then a default log level is used.
  3685. Returns the value of the expression printed.
  3686. </p>
  3687. <p>Prints t with loglevel l
  3688. </p>
  3689. </dd>
  3690. <dt>&lsquo;<samp>random(x)</samp>&rsquo;</dt>
  3691. <dd><p>Return a pseudo random value between 0.0 and 1.0. <var>x</var> is the index of the
  3692. internal variable which will be used to save the seed/state.
  3693. </p>
  3694. </dd>
  3695. <dt>&lsquo;<samp>root(expr, max)</samp>&rsquo;</dt>
  3696. <dd><p>Find an input value for which the function represented by <var>expr</var>
  3697. with argument <var>ld(0)</var> is 0 in the interval 0..<var>max</var>.
  3698. </p>
  3699. <p>The expression in <var>expr</var> must denote a continuous function or the
  3700. result is undefined.
  3701. </p>
  3702. <p><var>ld(0)</var> is used to represent the function input value, which means
  3703. that the given expression will be evaluated multiple times with
  3704. various input values that the expression can access through
  3705. <code>ld(0)</code>. When the expression evaluates to 0 then the
  3706. corresponding input value will be returned.
  3707. </p>
  3708. </dd>
  3709. <dt>&lsquo;<samp>round(expr)</samp>&rsquo;</dt>
  3710. <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;.
  3711. </p>
  3712. </dd>
  3713. <dt>&lsquo;<samp>sgn(x)</samp>&rsquo;</dt>
  3714. <dd><p>Compute sign of <var>x</var>.
  3715. </p>
  3716. </dd>
  3717. <dt>&lsquo;<samp>sin(x)</samp>&rsquo;</dt>
  3718. <dd><p>Compute sine of <var>x</var>.
  3719. </p>
  3720. </dd>
  3721. <dt>&lsquo;<samp>sinh(x)</samp>&rsquo;</dt>
  3722. <dd><p>Compute hyperbolic sine of <var>x</var>.
  3723. </p>
  3724. </dd>
  3725. <dt>&lsquo;<samp>sqrt(expr)</samp>&rsquo;</dt>
  3726. <dd><p>Compute the square root of <var>expr</var>. This is equivalent to
  3727. &quot;(<var>expr</var>)^.5&quot;.
  3728. </p>
  3729. </dd>
  3730. <dt>&lsquo;<samp>squish(x)</samp>&rsquo;</dt>
  3731. <dd><p>Compute expression <code>1/(1 + exp(4*x))</code>.
  3732. </p>
  3733. </dd>
  3734. <dt>&lsquo;<samp>st(var, expr)</samp>&rsquo;</dt>
  3735. <dd><p>Store the value of the expression <var>expr</var> in an internal
  3736. variable. <var>var</var> specifies the number of the variable where to
  3737. store the value, and it is a value ranging from 0 to 9. The function
  3738. returns the value stored in the internal variable.
  3739. Note, Variables are currently not shared between expressions.
  3740. </p>
  3741. </dd>
  3742. <dt>&lsquo;<samp>tan(x)</samp>&rsquo;</dt>
  3743. <dd><p>Compute tangent of <var>x</var>.
  3744. </p>
  3745. </dd>
  3746. <dt>&lsquo;<samp>tanh(x)</samp>&rsquo;</dt>
  3747. <dd><p>Compute hyperbolic tangent of <var>x</var>.
  3748. </p>
  3749. </dd>
  3750. <dt>&lsquo;<samp>taylor(expr, x)</samp>&rsquo;</dt>
  3751. <dt>&lsquo;<samp>taylor(expr, x, id)</samp>&rsquo;</dt>
  3752. <dd><p>Evaluate a Taylor series at <var>x</var>, given an expression representing
  3753. the <code>ld(id)</code>-th derivative of a function at 0.
  3754. </p>
  3755. <p>When the series does not converge the result is undefined.
  3756. </p>
  3757. <p><var>ld(id)</var> is used to represent the derivative order in <var>expr</var>,
  3758. which means that the given expression will be evaluated multiple times
  3759. with various input values that the expression can access through
  3760. <code>ld(id)</code>. If <var>id</var> is not specified then 0 is assumed.
  3761. </p>
  3762. <p>Note, when you have the derivatives at y instead of 0,
  3763. <code>taylor(expr, x-y)</code> can be used.
  3764. </p>
  3765. </dd>
  3766. <dt>&lsquo;<samp>time(0)</samp>&rsquo;</dt>
  3767. <dd><p>Return the current (wallclock) time in seconds.
  3768. </p>
  3769. </dd>
  3770. <dt>&lsquo;<samp>trunc(expr)</samp>&rsquo;</dt>
  3771. <dd><p>Round the value of expression <var>expr</var> towards zero to the nearest
  3772. integer. For example, &quot;trunc(-1.5)&quot; is &quot;-1.0&quot;.
  3773. </p>
  3774. </dd>
  3775. <dt>&lsquo;<samp>while(cond, expr)</samp>&rsquo;</dt>
  3776. <dd><p>Evaluate expression <var>expr</var> while the expression <var>cond</var> is
  3777. non-zero, and returns the value of the last <var>expr</var> evaluation, or
  3778. NAN if <var>cond</var> was always false.
  3779. </p></dd>
  3780. </dl>
  3781. <p>The following constants are available:
  3782. </p><dl compact="compact">
  3783. <dt>&lsquo;<samp>PI</samp>&rsquo;</dt>
  3784. <dd><p>area of the unit disc, approximately 3.14
  3785. </p></dd>
  3786. <dt>&lsquo;<samp>E</samp>&rsquo;</dt>
  3787. <dd><p>exp(1) (Euler&rsquo;s number), approximately 2.718
  3788. </p></dd>
  3789. <dt>&lsquo;<samp>PHI</samp>&rsquo;</dt>
  3790. <dd><p>golden ratio (1+sqrt(5))/2, approximately 1.618
  3791. </p></dd>
  3792. </dl>
  3793. <p>Assuming that an expression is considered &quot;true&quot; if it has a non-zero
  3794. value, note that:
  3795. </p>
  3796. <p><code>*</code> works like AND
  3797. </p>
  3798. <p><code>+</code> works like OR
  3799. </p>
  3800. <p>For example the construct:
  3801. </p><div class="example">
  3802. <pre class="example">if (A AND B) then C
  3803. </pre></div>
  3804. <p>is equivalent to:
  3805. </p><div class="example">
  3806. <pre class="example">if(A*B, C)
  3807. </pre></div>
  3808. <p>In your C code, you can extend the list of unary and binary functions,
  3809. and define recognized constants, so that they are available for your
  3810. expressions.
  3811. </p>
  3812. <p>The evaluator also recognizes the International System unit prefixes.
  3813. If &rsquo;i&rsquo; is appended after the prefix, binary prefixes are used, which
  3814. are based on powers of 1024 instead of powers of 1000.
  3815. The &rsquo;B&rsquo; postfix multiplies the value by 8, and can be appended after a
  3816. unit prefix or used alone. This allows using for example &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;,
  3817. &rsquo;G&rsquo; and &rsquo;B&rsquo; as number postfix.
  3818. </p>
  3819. <p>The list of available International System prefixes follows, with
  3820. indication of the corresponding powers of 10 and of 2.
  3821. </p><dl compact="compact">
  3822. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  3823. <dd><p>10^-24 / 2^-80
  3824. </p></dd>
  3825. <dt>&lsquo;<samp>z</samp>&rsquo;</dt>
  3826. <dd><p>10^-21 / 2^-70
  3827. </p></dd>
  3828. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  3829. <dd><p>10^-18 / 2^-60
  3830. </p></dd>
  3831. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  3832. <dd><p>10^-15 / 2^-50
  3833. </p></dd>
  3834. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  3835. <dd><p>10^-12 / 2^-40
  3836. </p></dd>
  3837. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  3838. <dd><p>10^-9 / 2^-30
  3839. </p></dd>
  3840. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  3841. <dd><p>10^-6 / 2^-20
  3842. </p></dd>
  3843. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  3844. <dd><p>10^-3 / 2^-10
  3845. </p></dd>
  3846. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  3847. <dd><p>10^-2
  3848. </p></dd>
  3849. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  3850. <dd><p>10^-1
  3851. </p></dd>
  3852. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  3853. <dd><p>10^2
  3854. </p></dd>
  3855. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  3856. <dd><p>10^3 / 2^10
  3857. </p></dd>
  3858. <dt>&lsquo;<samp>K</samp>&rsquo;</dt>
  3859. <dd><p>10^3 / 2^10
  3860. </p></dd>
  3861. <dt>&lsquo;<samp>M</samp>&rsquo;</dt>
  3862. <dd><p>10^6 / 2^20
  3863. </p></dd>
  3864. <dt>&lsquo;<samp>G</samp>&rsquo;</dt>
  3865. <dd><p>10^9 / 2^30
  3866. </p></dd>
  3867. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  3868. <dd><p>10^12 / 2^40
  3869. </p></dd>
  3870. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  3871. <dd><p>10^15 / 2^40
  3872. </p></dd>
  3873. <dt>&lsquo;<samp>E</samp>&rsquo;</dt>
  3874. <dd><p>10^18 / 2^50
  3875. </p></dd>
  3876. <dt>&lsquo;<samp>Z</samp>&rsquo;</dt>
  3877. <dd><p>10^21 / 2^60
  3878. </p></dd>
  3879. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  3880. <dd><p>10^24 / 2^70
  3881. </p></dd>
  3882. </dl>
  3883. <p><a name="codec_002doptions"></a>
  3884. </p><a name="Codec-Options"></a>
  3885. <h1 class="chapter"><a href="ffprobe-all.html#toc-Codec-Options">8 Codec Options</a></h1>
  3886. <p>libavcodec provides some generic global options, which can be set on
  3887. all the encoders and decoders. In addition each codec may support
  3888. so-called private options, which are specific for a given codec.
  3889. </p>
  3890. <p>Sometimes, a global option may only affect a specific kind of codec,
  3891. and may be nonsensical or ignored by another, so you need to be aware
  3892. of the meaning of the specified options. Also some options are
  3893. meant only for decoding or encoding.
  3894. </p>
  3895. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  3896. FFmpeg tools, or by setting the value explicitly in the
  3897. <code>AVCodecContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  3898. for programmatic use.
  3899. </p>
  3900. <p>The list of supported options follow:
  3901. </p>
  3902. <dl compact="compact">
  3903. <dt>&lsquo;<samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  3904. <dd><p>Set bitrate in bits/s. Default value is 200K.
  3905. </p>
  3906. </dd>
  3907. <dt>&lsquo;<samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  3908. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  3909. </p>
  3910. </dd>
  3911. <dt>&lsquo;<samp>bt <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  3912. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  3913. tolerance specifies how far ratecontrol is willing to deviate from the
  3914. target average bitrate value. This is not related to min/max
  3915. bitrate. Lowering tolerance too much has an adverse effect on quality.
  3916. </p>
  3917. </dd>
  3918. <dt>&lsquo;<samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  3919. <dd><p>Set generic flags.
  3920. </p>
  3921. <p>Possible values:
  3922. </p><dl compact="compact">
  3923. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  3924. <dd><p>Use four motion vector by macroblock (mpeg4).
  3925. </p></dd>
  3926. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  3927. <dd><p>Use 1/4 pel motion compensation.
  3928. </p></dd>
  3929. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  3930. <dd><p>Use loop filter.
  3931. </p></dd>
  3932. <dt>&lsquo;<samp>qscale</samp>&rsquo;</dt>
  3933. <dd><p>Use fixed qscale.
  3934. </p></dd>
  3935. <dt>&lsquo;<samp>pass1</samp>&rsquo;</dt>
  3936. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  3937. </p></dd>
  3938. <dt>&lsquo;<samp>pass2</samp>&rsquo;</dt>
  3939. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  3940. </p></dd>
  3941. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  3942. <dd><p>Only decode/encode grayscale.
  3943. </p></dd>
  3944. <dt>&lsquo;<samp>emu_edge</samp>&rsquo;</dt>
  3945. <dd><p>Do not draw edges.
  3946. </p></dd>
  3947. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  3948. <dd><p>Set error[?] variables during encoding.
  3949. </p></dd>
  3950. <dt>&lsquo;<samp>truncated</samp>&rsquo;</dt>
  3951. <dd><p>Input bitstream might be randomly truncated.
  3952. </p></dd>
  3953. <dt>&lsquo;<samp>drop_changed</samp>&rsquo;</dt>
  3954. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  3955. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  3956. </p>
  3957. </dd>
  3958. <dt>&lsquo;<samp>ildct</samp>&rsquo;</dt>
  3959. <dd><p>Use interlaced DCT.
  3960. </p></dd>
  3961. <dt>&lsquo;<samp>low_delay</samp>&rsquo;</dt>
  3962. <dd><p>Force low delay.
  3963. </p></dd>
  3964. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  3965. <dd><p>Place global headers in extradata instead of every keyframe.
  3966. </p></dd>
  3967. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  3968. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  3969. This ensures that file and data checksums are reproducible and match between
  3970. platforms. Its primary use is for regression testing.
  3971. </p></dd>
  3972. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  3973. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  3974. </p></dd>
  3975. <dt>&lsquo;<samp>cbp</samp>&rsquo;</dt>
  3976. <dd><p>Deprecated, use mpegvideo private options instead.
  3977. </p></dd>
  3978. <dt>&lsquo;<samp>qprd</samp>&rsquo;</dt>
  3979. <dd><p>Deprecated, use mpegvideo private options instead.
  3980. </p></dd>
  3981. <dt>&lsquo;<samp>ilme</samp>&rsquo;</dt>
  3982. <dd><p>Apply interlaced motion estimation.
  3983. </p></dd>
  3984. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  3985. <dd><p>Use closed gop.
  3986. </p></dd>
  3987. <dt>&lsquo;<samp>output_corrupt</samp>&rsquo;</dt>
  3988. <dd><p>Output even potentially corrupted frames.
  3989. </p></dd>
  3990. </dl>
  3991. </dd>
  3992. <dt>&lsquo;<samp>me_method <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  3993. <dd><p>Set motion estimation method.
  3994. </p>
  3995. <p>Possible values:
  3996. </p><dl compact="compact">
  3997. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  3998. <dd><p>zero motion estimation (fastest)
  3999. </p></dd>
  4000. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  4001. <dd><p>full motion estimation (slowest)
  4002. </p></dd>
  4003. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  4004. <dd><p>EPZS motion estimation (default)
  4005. </p></dd>
  4006. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  4007. <dd><p>esa motion estimation (alias for full)
  4008. </p></dd>
  4009. <dt>&lsquo;<samp>tesa</samp>&rsquo;</dt>
  4010. <dd><p>tesa motion estimation
  4011. </p></dd>
  4012. <dt>&lsquo;<samp>dia</samp>&rsquo;</dt>
  4013. <dd><p>dia motion estimation (alias for epzs)
  4014. </p></dd>
  4015. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  4016. <dd><p>log motion estimation
  4017. </p></dd>
  4018. <dt>&lsquo;<samp>phods</samp>&rsquo;</dt>
  4019. <dd><p>phods motion estimation
  4020. </p></dd>
  4021. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  4022. <dd><p>X1 motion estimation
  4023. </p></dd>
  4024. <dt>&lsquo;<samp>hex</samp>&rsquo;</dt>
  4025. <dd><p>hex motion estimation
  4026. </p></dd>
  4027. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  4028. <dd><p>umh motion estimation
  4029. </p></dd>
  4030. <dt>&lsquo;<samp>iter</samp>&rsquo;</dt>
  4031. <dd><p>iter motion estimation
  4032. </p></dd>
  4033. </dl>
  4034. </dd>
  4035. <dt>&lsquo;<samp>extradata_size <var>integer</var></samp>&rsquo;</dt>
  4036. <dd><p>Set extradata size.
  4037. </p>
  4038. </dd>
  4039. <dt>&lsquo;<samp>time_base <var>rational number</var></samp>&rsquo;</dt>
  4040. <dd><p>Set codec time base.
  4041. </p>
  4042. <p>It is the fundamental unit of time (in seconds) in terms of which
  4043. frame timestamps are represented. For fixed-fps content, timebase
  4044. should be <code>1 / frame_rate</code> and timestamp increments should be
  4045. identically 1.
  4046. </p>
  4047. </dd>
  4048. <dt>&lsquo;<samp>g <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4049. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  4050. </p>
  4051. </dd>
  4052. <dt>&lsquo;<samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  4053. <dd><p>Set audio sampling rate (in Hz).
  4054. </p>
  4055. </dd>
  4056. <dt>&lsquo;<samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  4057. <dd><p>Set number of audio channels.
  4058. </p>
  4059. </dd>
  4060. <dt>&lsquo;<samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  4061. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  4062. their respective documentation sections.)
  4063. </p>
  4064. </dd>
  4065. <dt>&lsquo;<samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  4066. <dd><p>Set audio frame size.
  4067. </p>
  4068. <p>Each submitted frame except the last must contain exactly frame_size
  4069. samples per channel. May be 0 when the codec has
  4070. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  4071. restricted. It is set by some decoders to indicate constant frame
  4072. size.
  4073. </p>
  4074. </dd>
  4075. <dt>&lsquo;<samp>frame_number <var>integer</var></samp>&rsquo;</dt>
  4076. <dd><p>Set the frame number.
  4077. </p>
  4078. </dd>
  4079. <dt>&lsquo;<samp>delay <var>integer</var></samp>&rsquo;</dt>
  4080. <dt>&lsquo;<samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4081. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  4082. in the ratecontrol equation. Recommended range for default rc_eq:
  4083. 0.0-1.0.
  4084. </p>
  4085. </dd>
  4086. <dt>&lsquo;<samp>qblur <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4087. <dd><p>Set video quantizer scale blur (VBR).
  4088. </p>
  4089. </dd>
  4090. <dt>&lsquo;<samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4091. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  4092. 69, default value is 2.
  4093. </p>
  4094. </dd>
  4095. <dt>&lsquo;<samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4096. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  4097. 1024, default value is 31.
  4098. </p>
  4099. </dd>
  4100. <dt>&lsquo;<samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4101. <dd><p>Set max difference between the quantizer scale (VBR).
  4102. </p>
  4103. </dd>
  4104. <dt>&lsquo;<samp>bf <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4105. <dd><p>Set max number of B frames between non-B-frames.
  4106. </p>
  4107. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  4108. disabled. If a value of -1 is used, it will choose an automatic value
  4109. depending on the encoder.
  4110. </p>
  4111. <p>Default value is 0.
  4112. </p>
  4113. </dd>
  4114. <dt>&lsquo;<samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4115. <dd><p>Set qp factor between P and B frames.
  4116. </p>
  4117. </dd>
  4118. <dt>&lsquo;<samp>rc_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4119. <dd><p>Set ratecontrol method.
  4120. </p>
  4121. </dd>
  4122. <dt>&lsquo;<samp>b_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4123. <dd><p>Set strategy to choose between I/P/B-frames.
  4124. </p>
  4125. </dd>
  4126. <dt>&lsquo;<samp>ps <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4127. <dd><p>Set RTP payload size in bytes.
  4128. </p>
  4129. </dd>
  4130. <dt>&lsquo;<samp>mv_bits <var>integer</var></samp>&rsquo;</dt>
  4131. <dt>&lsquo;<samp>header_bits <var>integer</var></samp>&rsquo;</dt>
  4132. <dt>&lsquo;<samp>i_tex_bits <var>integer</var></samp>&rsquo;</dt>
  4133. <dt>&lsquo;<samp>p_tex_bits <var>integer</var></samp>&rsquo;</dt>
  4134. <dt>&lsquo;<samp>i_count <var>integer</var></samp>&rsquo;</dt>
  4135. <dt>&lsquo;<samp>p_count <var>integer</var></samp>&rsquo;</dt>
  4136. <dt>&lsquo;<samp>skip_count <var>integer</var></samp>&rsquo;</dt>
  4137. <dt>&lsquo;<samp>misc_bits <var>integer</var></samp>&rsquo;</dt>
  4138. <dt>&lsquo;<samp>frame_bits <var>integer</var></samp>&rsquo;</dt>
  4139. <dt>&lsquo;<samp>codec_tag <var>integer</var></samp>&rsquo;</dt>
  4140. <dt>&lsquo;<samp>bug <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4141. <dd><p>Workaround not auto detected encoder bugs.
  4142. </p>
  4143. <p>Possible values:
  4144. </p><dl compact="compact">
  4145. <dt>&lsquo;<samp>autodetect</samp>&rsquo;</dt>
  4146. <dt>&lsquo;<samp>old_msmpeg4</samp>&rsquo;</dt>
  4147. <dd><p>some old lavc generated msmpeg4v3 files (no autodetection)
  4148. </p></dd>
  4149. <dt>&lsquo;<samp>xvid_ilace</samp>&rsquo;</dt>
  4150. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  4151. </p></dd>
  4152. <dt>&lsquo;<samp>ump4</samp>&rsquo;</dt>
  4153. <dd><p>(autodetected if fourcc==UMP4)
  4154. </p></dd>
  4155. <dt>&lsquo;<samp>no_padding</samp>&rsquo;</dt>
  4156. <dd><p>padding bug (autodetected)
  4157. </p></dd>
  4158. <dt>&lsquo;<samp>amv</samp>&rsquo;</dt>
  4159. <dt>&lsquo;<samp>ac_vlc</samp>&rsquo;</dt>
  4160. <dd><p>illegal vlc bug (autodetected per fourcc)
  4161. </p></dd>
  4162. <dt>&lsquo;<samp>qpel_chroma</samp>&rsquo;</dt>
  4163. <dt>&lsquo;<samp>std_qpel</samp>&rsquo;</dt>
  4164. <dd><p>old standard qpel (autodetected per fourcc/version)
  4165. </p></dd>
  4166. <dt>&lsquo;<samp>qpel_chroma2</samp>&rsquo;</dt>
  4167. <dt>&lsquo;<samp>direct_blocksize</samp>&rsquo;</dt>
  4168. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  4169. </p></dd>
  4170. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  4171. <dd><p>edge padding bug (autodetected per fourcc/version)
  4172. </p></dd>
  4173. <dt>&lsquo;<samp>hpel_chroma</samp>&rsquo;</dt>
  4174. <dt>&lsquo;<samp>dc_clip</samp>&rsquo;</dt>
  4175. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  4176. <dd><p>Workaround various bugs in microsoft broken decoders.
  4177. </p></dd>
  4178. <dt>&lsquo;<samp>trunc</samp>&rsquo;</dt>
  4179. <dd><p>trancated frames
  4180. </p></dd>
  4181. </dl>
  4182. </dd>
  4183. <dt>&lsquo;<samp>lelim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4184. <dd><p>Set single coefficient elimination threshold for luminance (negative
  4185. values also consider DC coefficient).
  4186. </p>
  4187. </dd>
  4188. <dt>&lsquo;<samp>celim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4189. <dd><p>Set single coefficient elimination threshold for chrominance (negative
  4190. values also consider dc coefficient)
  4191. </p>
  4192. </dd>
  4193. <dt>&lsquo;<samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  4194. <dd><p>Specify how strictly to follow the standards.
  4195. </p>
  4196. <p>Possible values:
  4197. </p><dl compact="compact">
  4198. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  4199. <dd><p>strictly conform to an older more strict version of the spec or reference software
  4200. </p></dd>
  4201. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  4202. <dd><p>strictly conform to all the things in the spec no matter what consequences
  4203. </p></dd>
  4204. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  4205. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  4206. <dd><p>allow unofficial extensions
  4207. </p></dd>
  4208. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  4209. <dd><p>allow non standardized experimental things, experimental
  4210. (unfinished/work in progress/not well tested) decoders and encoders.
  4211. Note: experimental decoders can pose a security risk, do not use this for
  4212. decoding untrusted input.
  4213. </p></dd>
  4214. </dl>
  4215. </dd>
  4216. <dt>&lsquo;<samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4217. <dd><p>Set QP offset between P and B frames.
  4218. </p>
  4219. </dd>
  4220. <dt>&lsquo;<samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  4221. <dd><p>Set error detection flags.
  4222. </p>
  4223. <p>Possible values:
  4224. </p><dl compact="compact">
  4225. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  4226. <dd><p>verify embedded CRCs
  4227. </p></dd>
  4228. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  4229. <dd><p>detect bitstream specification deviations
  4230. </p></dd>
  4231. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  4232. <dd><p>detect improper bitstream length
  4233. </p></dd>
  4234. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  4235. <dd><p>abort decoding on minor error detection
  4236. </p></dd>
  4237. <dt>&lsquo;<samp>ignore_err</samp>&rsquo;</dt>
  4238. <dd><p>ignore decoding errors, and continue decoding.
  4239. This is useful if you want to analyze the content of a video and thus want
  4240. everything to be decoded no matter what. This option will not result in a video
  4241. that is pleasing to watch in case of errors.
  4242. </p></dd>
  4243. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  4244. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  4245. </p></dd>
  4246. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  4247. <dd><p>consider all spec non compliancies as errors
  4248. </p></dd>
  4249. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  4250. <dd><p>consider things that a sane encoder should not do as an error
  4251. </p></dd>
  4252. </dl>
  4253. </dd>
  4254. <dt>&lsquo;<samp>has_b_frames <var>integer</var></samp>&rsquo;</dt>
  4255. <dt>&lsquo;<samp>block_align <var>integer</var></samp>&rsquo;</dt>
  4256. <dt>&lsquo;<samp>mpeg_quant <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4257. <dd><p>Use MPEG quantizers instead of H.263.
  4258. </p>
  4259. </dd>
  4260. <dt>&lsquo;<samp>qsquish <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4261. <dd><p>How to keep quantizer between qmin and qmax (0 = clip, 1 = use
  4262. differentiable function).
  4263. </p>
  4264. </dd>
  4265. <dt>&lsquo;<samp>rc_qmod_amp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4266. <dd><p>Set experimental quantizer modulation.
  4267. </p>
  4268. </dd>
  4269. <dt>&lsquo;<samp>rc_qmod_freq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4270. <dd><p>Set experimental quantizer modulation.
  4271. </p>
  4272. </dd>
  4273. <dt>&lsquo;<samp>rc_override_count <var>integer</var></samp>&rsquo;</dt>
  4274. <dt>&lsquo;<samp>rc_eq <var>string</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4275. <dd><p>Set rate control equation. When computing the expression, besides the
  4276. standard functions defined in the section &rsquo;Expression Evaluation&rsquo;, the
  4277. following functions are available: bits2qp(bits), qp2bits(qp). Also
  4278. the following constants are available: iTex pTex tex mv fCode iCount
  4279. mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
  4280. avgTex.
  4281. </p>
  4282. </dd>
  4283. <dt>&lsquo;<samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4284. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  4285. </p>
  4286. </dd>
  4287. <dt>&lsquo;<samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4288. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  4289. encode. It is of little use elsewise.
  4290. </p>
  4291. </dd>
  4292. <dt>&lsquo;<samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4293. <dd><p>Set ratecontrol buffer size (in bits).
  4294. </p>
  4295. </dd>
  4296. <dt>&lsquo;<samp>rc_buf_aggressivity <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4297. <dd><p>Currently useless.
  4298. </p>
  4299. </dd>
  4300. <dt>&lsquo;<samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4301. <dd><p>Set QP factor between P and I frames.
  4302. </p>
  4303. </dd>
  4304. <dt>&lsquo;<samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4305. <dd><p>Set QP offset between P and I frames.
  4306. </p>
  4307. </dd>
  4308. <dt>&lsquo;<samp>rc_init_cplx <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4309. <dd><p>Set initial complexity for 1-pass encoding.
  4310. </p>
  4311. </dd>
  4312. <dt>&lsquo;<samp>dct <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4313. <dd><p>Set DCT algorithm.
  4314. </p>
  4315. <p>Possible values:
  4316. </p><dl compact="compact">
  4317. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4318. <dd><p>autoselect a good one (default)
  4319. </p></dd>
  4320. <dt>&lsquo;<samp>fastint</samp>&rsquo;</dt>
  4321. <dd><p>fast integer
  4322. </p></dd>
  4323. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  4324. <dd><p>accurate integer
  4325. </p></dd>
  4326. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  4327. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  4328. <dt>&lsquo;<samp>faan</samp>&rsquo;</dt>
  4329. <dd><p>floating point AAN DCT
  4330. </p></dd>
  4331. </dl>
  4332. </dd>
  4333. <dt>&lsquo;<samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4334. <dd><p>Compress bright areas stronger than medium ones.
  4335. </p>
  4336. </dd>
  4337. <dt>&lsquo;<samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4338. <dd><p>Set temporal complexity masking.
  4339. </p>
  4340. </dd>
  4341. <dt>&lsquo;<samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4342. <dd><p>Set spatial complexity masking.
  4343. </p>
  4344. </dd>
  4345. <dt>&lsquo;<samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4346. <dd><p>Set inter masking.
  4347. </p>
  4348. </dd>
  4349. <dt>&lsquo;<samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4350. <dd><p>Compress dark areas stronger than medium ones.
  4351. </p>
  4352. </dd>
  4353. <dt>&lsquo;<samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  4354. <dd><p>Select IDCT implementation.
  4355. </p>
  4356. <p>Possible values:
  4357. </p><dl compact="compact">
  4358. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4359. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  4360. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  4361. <dt>&lsquo;<samp>simplemmx</samp>&rsquo;</dt>
  4362. <dt>&lsquo;<samp>simpleauto</samp>&rsquo;</dt>
  4363. <dd><p>Automatically pick a IDCT compatible with the simple one
  4364. </p>
  4365. </dd>
  4366. <dt>&lsquo;<samp>arm</samp>&rsquo;</dt>
  4367. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  4368. <dt>&lsquo;<samp>sh4</samp>&rsquo;</dt>
  4369. <dt>&lsquo;<samp>simplearm</samp>&rsquo;</dt>
  4370. <dt>&lsquo;<samp>simplearmv5te</samp>&rsquo;</dt>
  4371. <dt>&lsquo;<samp>simplearmv6</samp>&rsquo;</dt>
  4372. <dt>&lsquo;<samp>simpleneon</samp>&rsquo;</dt>
  4373. <dt>&lsquo;<samp>simplealpha</samp>&rsquo;</dt>
  4374. <dt>&lsquo;<samp>ipp</samp>&rsquo;</dt>
  4375. <dt>&lsquo;<samp>xvidmmx</samp>&rsquo;</dt>
  4376. <dt>&lsquo;<samp>faani</samp>&rsquo;</dt>
  4377. <dd><p>floating point AAN IDCT
  4378. </p></dd>
  4379. </dl>
  4380. </dd>
  4381. <dt>&lsquo;<samp>slice_count <var>integer</var></samp>&rsquo;</dt>
  4382. <dt>&lsquo;<samp>ec <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4383. <dd><p>Set error concealment strategy.
  4384. </p>
  4385. <p>Possible values:
  4386. </p><dl compact="compact">
  4387. <dt>&lsquo;<samp>guess_mvs</samp>&rsquo;</dt>
  4388. <dd><p>iterative motion vector (MV) search (slow)
  4389. </p></dd>
  4390. <dt>&lsquo;<samp>deblock</samp>&rsquo;</dt>
  4391. <dd><p>use strong deblock filter for damaged MBs
  4392. </p></dd>
  4393. <dt>&lsquo;<samp>favor_inter</samp>&rsquo;</dt>
  4394. <dd><p>favor predicting from the previous frame instead of the current
  4395. </p></dd>
  4396. </dl>
  4397. </dd>
  4398. <dt>&lsquo;<samp>bits_per_coded_sample <var>integer</var></samp>&rsquo;</dt>
  4399. <dt>&lsquo;<samp>pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4400. <dd><p>Set prediction method.
  4401. </p>
  4402. <p>Possible values:
  4403. </p><dl compact="compact">
  4404. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  4405. <dt>&lsquo;<samp>plane</samp>&rsquo;</dt>
  4406. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  4407. </dl>
  4408. </dd>
  4409. <dt>&lsquo;<samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4410. <dd><p>Set sample aspect ratio.
  4411. </p>
  4412. </dd>
  4413. <dt>&lsquo;<samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4414. <dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
  4415. </p>
  4416. </dd>
  4417. <dt>&lsquo;<samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4418. <dd><p>Print specific debug info.
  4419. </p>
  4420. <p>Possible values:
  4421. </p><dl compact="compact">
  4422. <dt>&lsquo;<samp>pict</samp>&rsquo;</dt>
  4423. <dd><p>picture info
  4424. </p></dd>
  4425. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  4426. <dd><p>rate control
  4427. </p></dd>
  4428. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  4429. <dt>&lsquo;<samp>mb_type</samp>&rsquo;</dt>
  4430. <dd><p>macroblock (MB) type
  4431. </p></dd>
  4432. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  4433. <dd><p>per-block quantization parameter (QP)
  4434. </p></dd>
  4435. <dt>&lsquo;<samp>dct_coeff</samp>&rsquo;</dt>
  4436. <dt>&lsquo;<samp>green_metadata</samp>&rsquo;</dt>
  4437. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  4438. </p>
  4439. </dd>
  4440. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  4441. <dt>&lsquo;<samp>startcode</samp>&rsquo;</dt>
  4442. <dt>&lsquo;<samp>er</samp>&rsquo;</dt>
  4443. <dd><p>error recognition
  4444. </p></dd>
  4445. <dt>&lsquo;<samp>mmco</samp>&rsquo;</dt>
  4446. <dd><p>memory management control operations (H.264)
  4447. </p></dd>
  4448. <dt>&lsquo;<samp>bugs</samp>&rsquo;</dt>
  4449. <dt>&lsquo;<samp>buffers</samp>&rsquo;</dt>
  4450. <dd><p>picture buffer allocations
  4451. </p></dd>
  4452. <dt>&lsquo;<samp>thread_ops</samp>&rsquo;</dt>
  4453. <dd><p>threading operations
  4454. </p></dd>
  4455. <dt>&lsquo;<samp>nomc</samp>&rsquo;</dt>
  4456. <dd><p>skip motion compensation
  4457. </p></dd>
  4458. </dl>
  4459. </dd>
  4460. <dt>&lsquo;<samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4461. <dd><p>Set full pel me compare function.
  4462. </p>
  4463. <p>Possible values:
  4464. </p><dl compact="compact">
  4465. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4466. <dd><p>sum of absolute differences, fast (default)
  4467. </p></dd>
  4468. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4469. <dd><p>sum of squared errors
  4470. </p></dd>
  4471. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4472. <dd><p>sum of absolute Hadamard transformed differences
  4473. </p></dd>
  4474. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4475. <dd><p>sum of absolute DCT transformed differences
  4476. </p></dd>
  4477. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4478. <dd><p>sum of squared quantization errors (avoid, low quality)
  4479. </p></dd>
  4480. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4481. <dd><p>number of bits needed for the block
  4482. </p></dd>
  4483. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4484. <dd><p>rate distortion optimal, slow
  4485. </p></dd>
  4486. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4487. <dd><p>0
  4488. </p></dd>
  4489. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4490. <dd><p>sum of absolute vertical differences
  4491. </p></dd>
  4492. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4493. <dd><p>sum of squared vertical differences
  4494. </p></dd>
  4495. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4496. <dd><p>noise preserving sum of squared differences
  4497. </p></dd>
  4498. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4499. <dd><p>5/3 wavelet, only used in snow
  4500. </p></dd>
  4501. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4502. <dd><p>9/7 wavelet, only used in snow
  4503. </p></dd>
  4504. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4505. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4506. </dl>
  4507. </dd>
  4508. <dt>&lsquo;<samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4509. <dd><p>Set sub pel me compare function.
  4510. </p>
  4511. <p>Possible values:
  4512. </p><dl compact="compact">
  4513. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4514. <dd><p>sum of absolute differences, fast (default)
  4515. </p></dd>
  4516. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4517. <dd><p>sum of squared errors
  4518. </p></dd>
  4519. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4520. <dd><p>sum of absolute Hadamard transformed differences
  4521. </p></dd>
  4522. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4523. <dd><p>sum of absolute DCT transformed differences
  4524. </p></dd>
  4525. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4526. <dd><p>sum of squared quantization errors (avoid, low quality)
  4527. </p></dd>
  4528. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4529. <dd><p>number of bits needed for the block
  4530. </p></dd>
  4531. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4532. <dd><p>rate distortion optimal, slow
  4533. </p></dd>
  4534. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4535. <dd><p>0
  4536. </p></dd>
  4537. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4538. <dd><p>sum of absolute vertical differences
  4539. </p></dd>
  4540. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4541. <dd><p>sum of squared vertical differences
  4542. </p></dd>
  4543. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4544. <dd><p>noise preserving sum of squared differences
  4545. </p></dd>
  4546. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4547. <dd><p>5/3 wavelet, only used in snow
  4548. </p></dd>
  4549. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4550. <dd><p>9/7 wavelet, only used in snow
  4551. </p></dd>
  4552. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4553. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4554. </dl>
  4555. </dd>
  4556. <dt>&lsquo;<samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4557. <dd><p>Set macroblock compare function.
  4558. </p>
  4559. <p>Possible values:
  4560. </p><dl compact="compact">
  4561. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4562. <dd><p>sum of absolute differences, fast (default)
  4563. </p></dd>
  4564. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4565. <dd><p>sum of squared errors
  4566. </p></dd>
  4567. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4568. <dd><p>sum of absolute Hadamard transformed differences
  4569. </p></dd>
  4570. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4571. <dd><p>sum of absolute DCT transformed differences
  4572. </p></dd>
  4573. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4574. <dd><p>sum of squared quantization errors (avoid, low quality)
  4575. </p></dd>
  4576. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4577. <dd><p>number of bits needed for the block
  4578. </p></dd>
  4579. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4580. <dd><p>rate distortion optimal, slow
  4581. </p></dd>
  4582. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4583. <dd><p>0
  4584. </p></dd>
  4585. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4586. <dd><p>sum of absolute vertical differences
  4587. </p></dd>
  4588. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4589. <dd><p>sum of squared vertical differences
  4590. </p></dd>
  4591. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4592. <dd><p>noise preserving sum of squared differences
  4593. </p></dd>
  4594. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4595. <dd><p>5/3 wavelet, only used in snow
  4596. </p></dd>
  4597. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4598. <dd><p>9/7 wavelet, only used in snow
  4599. </p></dd>
  4600. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4601. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4602. </dl>
  4603. </dd>
  4604. <dt>&lsquo;<samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4605. <dd><p>Set interlaced dct compare function.
  4606. </p>
  4607. <p>Possible values:
  4608. </p><dl compact="compact">
  4609. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4610. <dd><p>sum of absolute differences, fast (default)
  4611. </p></dd>
  4612. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4613. <dd><p>sum of squared errors
  4614. </p></dd>
  4615. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4616. <dd><p>sum of absolute Hadamard transformed differences
  4617. </p></dd>
  4618. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4619. <dd><p>sum of absolute DCT transformed differences
  4620. </p></dd>
  4621. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4622. <dd><p>sum of squared quantization errors (avoid, low quality)
  4623. </p></dd>
  4624. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4625. <dd><p>number of bits needed for the block
  4626. </p></dd>
  4627. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4628. <dd><p>rate distortion optimal, slow
  4629. </p></dd>
  4630. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4631. <dd><p>0
  4632. </p></dd>
  4633. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4634. <dd><p>sum of absolute vertical differences
  4635. </p></dd>
  4636. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4637. <dd><p>sum of squared vertical differences
  4638. </p></dd>
  4639. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4640. <dd><p>noise preserving sum of squared differences
  4641. </p></dd>
  4642. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4643. <dd><p>5/3 wavelet, only used in snow
  4644. </p></dd>
  4645. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4646. <dd><p>9/7 wavelet, only used in snow
  4647. </p></dd>
  4648. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4649. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4650. </dl>
  4651. </dd>
  4652. <dt>&lsquo;<samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4653. <dd><p>Set diamond type &amp; size for motion estimation.
  4654. </p>
  4655. </dd>
  4656. <dt>&lsquo;<samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4657. <dd><p>Set amount of motion predictors from the previous frame.
  4658. </p>
  4659. </dd>
  4660. <dt>&lsquo;<samp>preme <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4661. <dd><p>Set pre motion estimation.
  4662. </p>
  4663. </dd>
  4664. <dt>&lsquo;<samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4665. <dd><p>Set pre motion estimation compare function.
  4666. </p>
  4667. <p>Possible values:
  4668. </p><dl compact="compact">
  4669. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4670. <dd><p>sum of absolute differences, fast (default)
  4671. </p></dd>
  4672. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4673. <dd><p>sum of squared errors
  4674. </p></dd>
  4675. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4676. <dd><p>sum of absolute Hadamard transformed differences
  4677. </p></dd>
  4678. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4679. <dd><p>sum of absolute DCT transformed differences
  4680. </p></dd>
  4681. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4682. <dd><p>sum of squared quantization errors (avoid, low quality)
  4683. </p></dd>
  4684. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4685. <dd><p>number of bits needed for the block
  4686. </p></dd>
  4687. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4688. <dd><p>rate distortion optimal, slow
  4689. </p></dd>
  4690. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4691. <dd><p>0
  4692. </p></dd>
  4693. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4694. <dd><p>sum of absolute vertical differences
  4695. </p></dd>
  4696. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4697. <dd><p>sum of squared vertical differences
  4698. </p></dd>
  4699. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4700. <dd><p>noise preserving sum of squared differences
  4701. </p></dd>
  4702. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4703. <dd><p>5/3 wavelet, only used in snow
  4704. </p></dd>
  4705. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4706. <dd><p>9/7 wavelet, only used in snow
  4707. </p></dd>
  4708. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4709. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4710. </dl>
  4711. </dd>
  4712. <dt>&lsquo;<samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4713. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  4714. </p>
  4715. </dd>
  4716. <dt>&lsquo;<samp>subq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4717. <dd><p>Set sub pel motion estimation quality.
  4718. </p>
  4719. </dd>
  4720. <dt>&lsquo;<samp>dtg_active_format <var>integer</var></samp>&rsquo;</dt>
  4721. <dt>&lsquo;<samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4722. <dd><p>Set limit motion vectors range (1023 for DivX player).
  4723. </p>
  4724. </dd>
  4725. <dt>&lsquo;<samp>ibias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4726. <dd><p>Set intra quant bias.
  4727. </p>
  4728. </dd>
  4729. <dt>&lsquo;<samp>pbias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4730. <dd><p>Set inter quant bias.
  4731. </p>
  4732. </dd>
  4733. <dt>&lsquo;<samp>color_table_id <var>integer</var></samp>&rsquo;</dt>
  4734. <dt>&lsquo;<samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4735. <dt>&lsquo;<samp>coder <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4736. <dd>
  4737. <p>Possible values:
  4738. </p><dl compact="compact">
  4739. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  4740. <dd><p>variable length coder / huffman coder
  4741. </p></dd>
  4742. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  4743. <dd><p>arithmetic coder
  4744. </p></dd>
  4745. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  4746. <dd><p>raw (no encoding)
  4747. </p></dd>
  4748. <dt>&lsquo;<samp>rle</samp>&rsquo;</dt>
  4749. <dd><p>run-length coder
  4750. </p></dd>
  4751. <dt>&lsquo;<samp>deflate</samp>&rsquo;</dt>
  4752. <dd><p>deflate-based coder
  4753. </p></dd>
  4754. </dl>
  4755. </dd>
  4756. <dt>&lsquo;<samp>context <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4757. <dd><p>Set context model.
  4758. </p>
  4759. </dd>
  4760. <dt>&lsquo;<samp>slice_flags <var>integer</var></samp>&rsquo;</dt>
  4761. <dt>&lsquo;<samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4762. <dd><p>Set macroblock decision algorithm (high quality mode).
  4763. </p>
  4764. <p>Possible values:
  4765. </p><dl compact="compact">
  4766. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  4767. <dd><p>use mbcmp (default)
  4768. </p></dd>
  4769. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  4770. <dd><p>use fewest bits
  4771. </p></dd>
  4772. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4773. <dd><p>use best rate distortion
  4774. </p></dd>
  4775. </dl>
  4776. </dd>
  4777. <dt>&lsquo;<samp>stream_codec_tag <var>integer</var></samp>&rsquo;</dt>
  4778. <dt>&lsquo;<samp>sc_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4779. <dd><p>Set scene change threshold.
  4780. </p>
  4781. </dd>
  4782. <dt>&lsquo;<samp>lmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4783. <dd><p>Set min lagrange factor (VBR).
  4784. </p>
  4785. </dd>
  4786. <dt>&lsquo;<samp>lmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4787. <dd><p>Set max lagrange factor (VBR).
  4788. </p>
  4789. </dd>
  4790. <dt>&lsquo;<samp>nr <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4791. <dd><p>Set noise reduction.
  4792. </p>
  4793. </dd>
  4794. <dt>&lsquo;<samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4795. <dd><p>Set number of bits which should be loaded into the rc buffer before
  4796. decoding starts.
  4797. </p>
  4798. </dd>
  4799. <dt>&lsquo;<samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4800. <dd>
  4801. <p>Possible values:
  4802. </p><dl compact="compact">
  4803. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  4804. <dd><p>Allow non spec compliant speedup tricks.
  4805. </p></dd>
  4806. <dt>&lsquo;<samp>noout</samp>&rsquo;</dt>
  4807. <dd><p>Skip bitstream encoding.
  4808. </p></dd>
  4809. <dt>&lsquo;<samp>ignorecrop</samp>&rsquo;</dt>
  4810. <dd><p>Ignore cropping information from sps.
  4811. </p></dd>
  4812. <dt>&lsquo;<samp>local_header</samp>&rsquo;</dt>
  4813. <dd><p>Place global headers at every keyframe instead of in extradata.
  4814. </p></dd>
  4815. <dt>&lsquo;<samp>chunks</samp>&rsquo;</dt>
  4816. <dd><p>Frame data might be split into multiple chunks.
  4817. </p></dd>
  4818. <dt>&lsquo;<samp>showall</samp>&rsquo;</dt>
  4819. <dd><p>Show all frames before the first keyframe.
  4820. </p></dd>
  4821. <dt>&lsquo;<samp>export_mvs</samp>&rsquo;</dt>
  4822. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  4823. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  4824. </p></dd>
  4825. <dt>&lsquo;<samp>skip_manual</samp>&rsquo;</dt>
  4826. <dd><p>Do not skip samples and export skip information as frame side data.
  4827. </p></dd>
  4828. <dt>&lsquo;<samp>ass_ro_flush_noop</samp>&rsquo;</dt>
  4829. <dd><p>Do not reset ASS ReadOrder field on flush.
  4830. </p></dd>
  4831. </dl>
  4832. </dd>
  4833. <dt>&lsquo;<samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  4834. <dd>
  4835. <p>Possible values:
  4836. </p><dl compact="compact">
  4837. <dt>&lsquo;<samp>mvs</samp>&rsquo;</dt>
  4838. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  4839. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  4840. </p></dd>
  4841. <dt>&lsquo;<samp>prft</samp>&rsquo;</dt>
  4842. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
  4843. for codecs that support it.
  4844. </p></dd>
  4845. </dl>
  4846. </dd>
  4847. <dt>&lsquo;<samp>error <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4848. <dt>&lsquo;<samp>qns <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4849. <dd><p>Deprecated, use mpegvideo private options instead.
  4850. </p>
  4851. </dd>
  4852. <dt>&lsquo;<samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  4853. <dd><p>Set the number of threads to be used, in case the selected codec
  4854. implementation supports multi-threading.
  4855. </p>
  4856. <p>Possible values:
  4857. </p><dl compact="compact">
  4858. <dt>&lsquo;<samp>auto, 0</samp>&rsquo;</dt>
  4859. <dd><p>automatically select the number of threads to set
  4860. </p></dd>
  4861. </dl>
  4862. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  4863. </p>
  4864. </dd>
  4865. <dt>&lsquo;<samp>me_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4866. <dd><p>Set motion estimation threshold.
  4867. </p>
  4868. </dd>
  4869. <dt>&lsquo;<samp>mb_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4870. <dd><p>Set macroblock threshold.
  4871. </p>
  4872. </dd>
  4873. <dt>&lsquo;<samp>dc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4874. <dd><p>Set intra_dc_precision.
  4875. </p>
  4876. </dd>
  4877. <dt>&lsquo;<samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4878. <dd><p>Set nsse weight.
  4879. </p>
  4880. </dd>
  4881. <dt>&lsquo;<samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4882. <dd><p>Set number of macroblock rows at the top which are skipped.
  4883. </p>
  4884. </dd>
  4885. <dt>&lsquo;<samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  4886. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  4887. </p>
  4888. </dd>
  4889. <dt>&lsquo;<samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4890. <dd>
  4891. <p>Possible values:
  4892. </p><dl compact="compact">
  4893. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  4894. <dt>&lsquo;<samp>aac_main</samp>&rsquo;</dt>
  4895. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  4896. <dt>&lsquo;<samp>aac_ssr</samp>&rsquo;</dt>
  4897. <dt>&lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
  4898. <dt>&lsquo;<samp>aac_he</samp>&rsquo;</dt>
  4899. <dt>&lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
  4900. <dt>&lsquo;<samp>aac_ld</samp>&rsquo;</dt>
  4901. <dt>&lsquo;<samp>aac_eld</samp>&rsquo;</dt>
  4902. <dt>&lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</dt>
  4903. <dt>&lsquo;<samp>mpeg2_aac_he</samp>&rsquo;</dt>
  4904. <dt>&lsquo;<samp>mpeg4_sp</samp>&rsquo;</dt>
  4905. <dt>&lsquo;<samp>mpeg4_core</samp>&rsquo;</dt>
  4906. <dt>&lsquo;<samp>mpeg4_main</samp>&rsquo;</dt>
  4907. <dt>&lsquo;<samp>mpeg4_asp</samp>&rsquo;</dt>
  4908. <dt>&lsquo;<samp>dts</samp>&rsquo;</dt>
  4909. <dt>&lsquo;<samp>dts_es</samp>&rsquo;</dt>
  4910. <dt>&lsquo;<samp>dts_96_24</samp>&rsquo;</dt>
  4911. <dt>&lsquo;<samp>dts_hd_hra</samp>&rsquo;</dt>
  4912. <dt>&lsquo;<samp>dts_hd_ma</samp>&rsquo;</dt>
  4913. </dl>
  4914. </dd>
  4915. <dt>&lsquo;<samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  4916. <dd>
  4917. <p>Possible values:
  4918. </p><dl compact="compact">
  4919. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  4920. </dl>
  4921. </dd>
  4922. <dt>&lsquo;<samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  4923. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  4924. </p>
  4925. </dd>
  4926. <dt>&lsquo;<samp>skip_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4927. <dd><p>Set frame skip threshold.
  4928. </p>
  4929. </dd>
  4930. <dt>&lsquo;<samp>skip_factor <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4931. <dd><p>Set frame skip factor.
  4932. </p>
  4933. </dd>
  4934. <dt>&lsquo;<samp>skip_exp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4935. <dd><p>Set frame skip exponent.
  4936. Negative values behave identical to the corresponding positive ones, except
  4937. that the score is normalized.
  4938. Positive values exist primarily for compatibility reasons and are not so useful.
  4939. </p>
  4940. </dd>
  4941. <dt>&lsquo;<samp>skipcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4942. <dd><p>Set frame skip compare function.
  4943. </p>
  4944. <p>Possible values:
  4945. </p><dl compact="compact">
  4946. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4947. <dd><p>sum of absolute differences, fast (default)
  4948. </p></dd>
  4949. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  4950. <dd><p>sum of squared errors
  4951. </p></dd>
  4952. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  4953. <dd><p>sum of absolute Hadamard transformed differences
  4954. </p></dd>
  4955. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  4956. <dd><p>sum of absolute DCT transformed differences
  4957. </p></dd>
  4958. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  4959. <dd><p>sum of squared quantization errors (avoid, low quality)
  4960. </p></dd>
  4961. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  4962. <dd><p>number of bits needed for the block
  4963. </p></dd>
  4964. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  4965. <dd><p>rate distortion optimal, slow
  4966. </p></dd>
  4967. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  4968. <dd><p>0
  4969. </p></dd>
  4970. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  4971. <dd><p>sum of absolute vertical differences
  4972. </p></dd>
  4973. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  4974. <dd><p>sum of squared vertical differences
  4975. </p></dd>
  4976. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  4977. <dd><p>noise preserving sum of squared differences
  4978. </p></dd>
  4979. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  4980. <dd><p>5/3 wavelet, only used in snow
  4981. </p></dd>
  4982. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  4983. <dd><p>9/7 wavelet, only used in snow
  4984. </p></dd>
  4985. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  4986. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4987. </dl>
  4988. </dd>
  4989. <dt>&lsquo;<samp>border_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4990. <dd><p>Increase the quantizer for macroblocks close to borders.
  4991. </p>
  4992. </dd>
  4993. <dt>&lsquo;<samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4994. <dd><p>Set min macroblock lagrange factor (VBR).
  4995. </p>
  4996. </dd>
  4997. <dt>&lsquo;<samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  4998. <dd><p>Set max macroblock lagrange factor (VBR).
  4999. </p>
  5000. </dd>
  5001. <dt>&lsquo;<samp>mepc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5002. <dd><p>Set motion estimation bitrate penalty compensation (1.0 = 256).
  5003. </p>
  5004. </dd>
  5005. <dt>&lsquo;<samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5006. <dt>&lsquo;<samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5007. <dt>&lsquo;<samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5008. <dd>
  5009. <p>Make decoder discard processing depending on the frame type selected
  5010. by the option value.
  5011. </p>
  5012. <p>&lsquo;<samp>skip_loop_filter</samp>&rsquo; skips frame loop filtering, &lsquo;<samp>skip_idct</samp>&rsquo;
  5013. skips frame IDCT/dequantization, &lsquo;<samp>skip_frame</samp>&rsquo; skips decoding.
  5014. </p>
  5015. <p>Possible values:
  5016. </p><dl compact="compact">
  5017. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  5018. <dd><p>Discard no frame.
  5019. </p>
  5020. </dd>
  5021. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  5022. <dd><p>Discard useless frames like 0-sized frames.
  5023. </p>
  5024. </dd>
  5025. <dt>&lsquo;<samp>noref</samp>&rsquo;</dt>
  5026. <dd><p>Discard all non-reference frames.
  5027. </p>
  5028. </dd>
  5029. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  5030. <dd><p>Discard all bidirectional frames.
  5031. </p>
  5032. </dd>
  5033. <dt>&lsquo;<samp>nokey</samp>&rsquo;</dt>
  5034. <dd><p>Discard all frames excepts keyframes.
  5035. </p>
  5036. </dd>
  5037. <dt>&lsquo;<samp>nointra</samp>&rsquo;</dt>
  5038. <dd><p>Discard all frames except I frames.
  5039. </p>
  5040. </dd>
  5041. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  5042. <dd><p>Discard all frames.
  5043. </p></dd>
  5044. </dl>
  5045. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  5046. </p>
  5047. </dd>
  5048. <dt>&lsquo;<samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5049. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  5050. </p>
  5051. </dd>
  5052. <dt>&lsquo;<samp>brd_scale <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5053. <dd><p>Downscale frames for dynamic B-frame decision.
  5054. </p>
  5055. </dd>
  5056. <dt>&lsquo;<samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5057. <dd><p>Set minimum interval between IDR-frames.
  5058. </p>
  5059. </dd>
  5060. <dt>&lsquo;<samp>refs <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5061. <dd><p>Set reference frames to consider for motion compensation.
  5062. </p>
  5063. </dd>
  5064. <dt>&lsquo;<samp>chromaoffset <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5065. <dd><p>Set chroma qp offset from luma.
  5066. </p>
  5067. </dd>
  5068. <dt>&lsquo;<samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  5069. <dd><p>Set rate-distortion optimal quantization.
  5070. </p>
  5071. </dd>
  5072. <dt>&lsquo;<samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5073. <dt>&lsquo;<samp>b_sensitivity <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5074. <dd><p>Adjust sensitivity of b_frame_strategy 1.
  5075. </p>
  5076. </dd>
  5077. <dt>&lsquo;<samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  5078. <dt>&lsquo;<samp>min_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5079. <dt>&lsquo;<samp>max_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5080. <dt>&lsquo;<samp>timecode_frame_start <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5081. <dd><p>Set GOP timecode frame start number, in non drop frame format.
  5082. </p>
  5083. </dd>
  5084. <dt>&lsquo;<samp>request_channels <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5085. <dd><p>Set desired number of audio channels.
  5086. </p>
  5087. </dd>
  5088. <dt>&lsquo;<samp>bits_per_raw_sample <var>integer</var></samp>&rsquo;</dt>
  5089. <dt>&lsquo;<samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  5090. <dd>
  5091. <p>Possible values:
  5092. </p></dd>
  5093. <dt>&lsquo;<samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5094. <dd>
  5095. <p>Possible values:
  5096. </p></dd>
  5097. <dt>&lsquo;<samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5098. <dt>&lsquo;<samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5099. <dt>&lsquo;<samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  5100. <dt>&lsquo;<samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5101. <dd><p>Possible values:
  5102. </p><dl compact="compact">
  5103. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5104. <dd><p>BT.709
  5105. </p></dd>
  5106. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  5107. <dd><p>BT.470 M
  5108. </p></dd>
  5109. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  5110. <dd><p>BT.470 BG
  5111. </p></dd>
  5112. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5113. <dd><p>SMPTE 170 M
  5114. </p></dd>
  5115. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5116. <dd><p>SMPTE 240 M
  5117. </p></dd>
  5118. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  5119. <dd><p>Film
  5120. </p></dd>
  5121. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  5122. <dd><p>BT.2020
  5123. </p></dd>
  5124. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  5125. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  5126. <dd><p>SMPTE ST 428-1
  5127. </p></dd>
  5128. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  5129. <dd><p>SMPTE 431-2
  5130. </p></dd>
  5131. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  5132. <dd><p>SMPTE 432-1
  5133. </p></dd>
  5134. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  5135. <dd><p>JEDEC P22
  5136. </p></dd>
  5137. </dl>
  5138. </dd>
  5139. <dt>&lsquo;<samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5140. <dd><p>Possible values:
  5141. </p><dl compact="compact">
  5142. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5143. <dd><p>BT.709
  5144. </p></dd>
  5145. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  5146. <dd><p>BT.470 M
  5147. </p></dd>
  5148. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  5149. <dd><p>BT.470 BG
  5150. </p></dd>
  5151. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5152. <dd><p>SMPTE 170 M
  5153. </p></dd>
  5154. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5155. <dd><p>SMPTE 240 M
  5156. </p></dd>
  5157. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  5158. <dd><p>Linear
  5159. </p></dd>
  5160. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  5161. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  5162. <dd><p>Log
  5163. </p></dd>
  5164. <dt>&lsquo;<samp>log_sqrt</samp>&rsquo;</dt>
  5165. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  5166. <dd><p>Log square root
  5167. </p></dd>
  5168. <dt>&lsquo;<samp>iec61966_2_4</samp>&rsquo;</dt>
  5169. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  5170. <dd><p>IEC 61966-2-4
  5171. </p></dd>
  5172. <dt>&lsquo;<samp>bt1361</samp>&rsquo;</dt>
  5173. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  5174. <dd><p>BT.1361
  5175. </p></dd>
  5176. <dt>&lsquo;<samp>iec61966_2_1</samp>&rsquo;</dt>
  5177. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  5178. <dd><p>IEC 61966-2-1
  5179. </p></dd>
  5180. <dt>&lsquo;<samp>bt2020_10</samp>&rsquo;</dt>
  5181. <dt>&lsquo;<samp>bt2020_10bit</samp>&rsquo;</dt>
  5182. <dd><p>BT.2020 - 10 bit
  5183. </p></dd>
  5184. <dt>&lsquo;<samp>bt2020_12</samp>&rsquo;</dt>
  5185. <dt>&lsquo;<samp>bt2020_12bit</samp>&rsquo;</dt>
  5186. <dd><p>BT.2020 - 12 bit
  5187. </p></dd>
  5188. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  5189. <dd><p>SMPTE ST 2084
  5190. </p></dd>
  5191. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  5192. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  5193. <dd><p>SMPTE ST 428-1
  5194. </p></dd>
  5195. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  5196. <dd><p>ARIB STD-B67
  5197. </p></dd>
  5198. </dl>
  5199. </dd>
  5200. <dt>&lsquo;<samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5201. <dd><p>Possible values:
  5202. </p><dl compact="compact">
  5203. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  5204. <dd><p>RGB
  5205. </p></dd>
  5206. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  5207. <dd><p>BT.709
  5208. </p></dd>
  5209. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  5210. <dd><p>FCC
  5211. </p></dd>
  5212. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  5213. <dd><p>BT.470 BG
  5214. </p></dd>
  5215. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  5216. <dd><p>SMPTE 170 M
  5217. </p></dd>
  5218. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  5219. <dd><p>SMPTE 240 M
  5220. </p></dd>
  5221. <dt>&lsquo;<samp>ycocg</samp>&rsquo;</dt>
  5222. <dd><p>YCOCG
  5223. </p></dd>
  5224. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  5225. <dt>&lsquo;<samp>bt2020_ncl</samp>&rsquo;</dt>
  5226. <dd><p>BT.2020 NCL
  5227. </p></dd>
  5228. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  5229. <dt>&lsquo;<samp>bt2020_cl</samp>&rsquo;</dt>
  5230. <dd><p>BT.2020 CL
  5231. </p></dd>
  5232. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  5233. <dd><p>SMPTE 2085
  5234. </p></dd>
  5235. </dl>
  5236. </dd>
  5237. <dt>&lsquo;<samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5238. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  5239. color_range the input has.
  5240. Possible values:
  5241. </p><dl compact="compact">
  5242. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  5243. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  5244. <dd><p>MPEG (219*2^(n-8))
  5245. </p></dd>
  5246. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  5247. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  5248. <dd><p>JPEG (2^n-1)
  5249. </p></dd>
  5250. </dl>
  5251. </dd>
  5252. <dt>&lsquo;<samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5253. <dd><p>Possible values:
  5254. </p><dl compact="compact">
  5255. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  5256. <dt>&lsquo;<samp>center</samp>&rsquo;</dt>
  5257. <dt>&lsquo;<samp>topleft</samp>&rsquo;</dt>
  5258. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  5259. <dt>&lsquo;<samp>bottomleft</samp>&rsquo;</dt>
  5260. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  5261. </dl>
  5262. </dd>
  5263. <dt>&lsquo;<samp>log_level_offset <var>integer</var></samp>&rsquo;</dt>
  5264. <dd><p>Set the log level offset.
  5265. </p>
  5266. </dd>
  5267. <dt>&lsquo;<samp>slices <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  5268. <dd><p>Number of slices, used in parallelized encoding.
  5269. </p>
  5270. </dd>
  5271. <dt>&lsquo;<samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5272. <dd><p>Select which multithreading methods to use.
  5273. </p>
  5274. <p>Use of &lsquo;<samp>frame</samp>&rsquo; will increase decoding delay by one frame per
  5275. thread, so clients which cannot provide future frames should not use
  5276. it.
  5277. </p>
  5278. <p>Possible values:
  5279. </p><dl compact="compact">
  5280. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  5281. <dd><p>Decode more than one part of a single frame at once.
  5282. </p>
  5283. <p>Multithreading using slices works only when the video was encoded with
  5284. slices.
  5285. </p>
  5286. </dd>
  5287. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  5288. <dd><p>Decode more than one frame at once.
  5289. </p></dd>
  5290. </dl>
  5291. <p>Default value is &lsquo;<samp>slice+frame</samp>&rsquo;.
  5292. </p>
  5293. </dd>
  5294. <dt>&lsquo;<samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  5295. <dd><p>Set audio service type.
  5296. </p>
  5297. <p>Possible values:
  5298. </p><dl compact="compact">
  5299. <dt>&lsquo;<samp>ma</samp>&rsquo;</dt>
  5300. <dd><p>Main Audio Service
  5301. </p></dd>
  5302. <dt>&lsquo;<samp>ef</samp>&rsquo;</dt>
  5303. <dd><p>Effects
  5304. </p></dd>
  5305. <dt>&lsquo;<samp>vi</samp>&rsquo;</dt>
  5306. <dd><p>Visually Impaired
  5307. </p></dd>
  5308. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  5309. <dd><p>Hearing Impaired
  5310. </p></dd>
  5311. <dt>&lsquo;<samp>di</samp>&rsquo;</dt>
  5312. <dd><p>Dialogue
  5313. </p></dd>
  5314. <dt>&lsquo;<samp>co</samp>&rsquo;</dt>
  5315. <dd><p>Commentary
  5316. </p></dd>
  5317. <dt>&lsquo;<samp>em</samp>&rsquo;</dt>
  5318. <dd><p>Emergency
  5319. </p></dd>
  5320. <dt>&lsquo;<samp>vo</samp>&rsquo;</dt>
  5321. <dd><p>Voice Over
  5322. </p></dd>
  5323. <dt>&lsquo;<samp>ka</samp>&rsquo;</dt>
  5324. <dd><p>Karaoke
  5325. </p></dd>
  5326. </dl>
  5327. </dd>
  5328. <dt>&lsquo;<samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  5329. <dd><p>Set sample format audio decoders should prefer. Default value is
  5330. <code>none</code>.
  5331. </p>
  5332. </dd>
  5333. <dt>&lsquo;<samp>pkt_timebase <var>rational number</var></samp>&rsquo;</dt>
  5334. <dt>&lsquo;<samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp>&rsquo;</dt>
  5335. <dd><p>Set the input subtitles character encoding.
  5336. </p>
  5337. </dd>
  5338. <dt>&lsquo;<samp>field_order <var>field_order</var> (<em>video</em>)</samp>&rsquo;</dt>
  5339. <dd><p>Set/override the field order of the video.
  5340. Possible values:
  5341. </p><dl compact="compact">
  5342. <dt>&lsquo;<samp>progressive</samp>&rsquo;</dt>
  5343. <dd><p>Progressive video
  5344. </p></dd>
  5345. <dt>&lsquo;<samp>tt</samp>&rsquo;</dt>
  5346. <dd><p>Interlaced video, top field coded and displayed first
  5347. </p></dd>
  5348. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  5349. <dd><p>Interlaced video, bottom field coded and displayed first
  5350. </p></dd>
  5351. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  5352. <dd><p>Interlaced video, top coded first, bottom displayed first
  5353. </p></dd>
  5354. <dt>&lsquo;<samp>bt</samp>&rsquo;</dt>
  5355. <dd><p>Interlaced video, bottom coded first, top displayed first
  5356. </p></dd>
  5357. </dl>
  5358. </dd>
  5359. <dt>&lsquo;<samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5360. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  5361. &lsquo;<samp>gray</samp>&rsquo; flag in the &lsquo;<samp>flags</samp>&rsquo; option which skips chroma information
  5362. instead of alpha. Default is 0.
  5363. </p>
  5364. </dd>
  5365. <dt>&lsquo;<samp>codec_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  5366. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  5367. </p>
  5368. </dd>
  5369. <dt>&lsquo;<samp>dump_separator <var>string</var> (<em>input</em>)</samp>&rsquo;</dt>
  5370. <dd><p>Separator used to separate the fields printed on the command line about the
  5371. Stream parameters.
  5372. For example, to separate the fields with newlines and indentation:
  5373. </p><div class="example">
  5374. <pre class="example">ffprobe -dump_separator &quot;
  5375. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  5376. </pre></div>
  5377. </dd>
  5378. <dt>&lsquo;<samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  5379. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  5380. memory failures due to large images.
  5381. </p>
  5382. </dd>
  5383. <dt>&lsquo;<samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  5384. <dd><p>Enable cropping if cropping parameters are multiples of the required
  5385. alignment for the left and top parameters. If the alignment is not met the
  5386. cropping will be partially applied to maintain alignment.
  5387. Default is 1 (enabled).
  5388. Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
  5389. CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  5390. decoders will not apply left/top Cropping.
  5391. </p>
  5392. </dd>
  5393. </dl>
  5394. <a name="Decoders"></a>
  5395. <h1 class="chapter"><a href="ffprobe-all.html#toc-Decoders">9 Decoders</a></h1>
  5396. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  5397. multimedia streams.
  5398. </p>
  5399. <p>When you configure your FFmpeg build, all the supported native decoders
  5400. are enabled by default. Decoders requiring an external library must be enabled
  5401. manually via the corresponding <code>--enable-lib</code> option. You can list all
  5402. available decoders using the configure option <code>--list-decoders</code>.
  5403. </p>
  5404. <p>You can disable all the decoders with the configure option
  5405. <code>--disable-decoders</code> and selectively enable / disable single decoders
  5406. with the options <code>--enable-decoder=<var>DECODER</var></code> /
  5407. <code>--disable-decoder=<var>DECODER</var></code>.
  5408. </p>
  5409. <p>The option <code>-decoders</code> of the ff* tools will display the list of
  5410. enabled decoders.
  5411. </p>
  5412. <a name="Video-Decoders"></a>
  5413. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Decoders">10 Video Decoders</a></h1>
  5414. <p>A description of some of the currently available video decoders
  5415. follows.
  5416. </p>
  5417. <a name="rawvideo"></a>
  5418. <h2 class="section"><a href="ffprobe-all.html#toc-rawvideo">10.1 rawvideo</a></h2>
  5419. <p>Raw video decoder.
  5420. </p>
  5421. <p>This decoder decodes rawvideo streams.
  5422. </p>
  5423. <a name="Options-17"></a>
  5424. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-17">10.1.1 Options</a></h3>
  5425. <dl compact="compact">
  5426. <dt>&lsquo;<samp>top <var>top_field_first</var></samp>&rsquo;</dt>
  5427. <dd><p>Specify the assumed field type of the input video.
  5428. </p><dl compact="compact">
  5429. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  5430. <dd><p>the video is assumed to be progressive (default)
  5431. </p></dd>
  5432. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  5433. <dd><p>bottom-field-first is assumed
  5434. </p></dd>
  5435. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  5436. <dd><p>top-field-first is assumed
  5437. </p></dd>
  5438. </dl>
  5439. </dd>
  5440. </dl>
  5441. <a name="libdav1d"></a>
  5442. <h2 class="section"><a href="ffprobe-all.html#toc-libdav1d">10.2 libdav1d</a></h2>
  5443. <p>dav1d AV1 decoder.
  5444. </p>
  5445. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  5446. Requires the presence of the libdav1d headers and library during configuration.
  5447. You need to explicitly configure the build with <code>--enable-libdav1d</code>.
  5448. </p>
  5449. <a name="Options-31"></a>
  5450. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-31">10.2.1 Options</a></h3>
  5451. <p>The following options are supported by the libdav1d wrapper.
  5452. </p>
  5453. <dl compact="compact">
  5454. <dt>&lsquo;<samp>framethreads</samp>&rsquo;</dt>
  5455. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  5456. </p>
  5457. </dd>
  5458. <dt>&lsquo;<samp>tilethreads</samp>&rsquo;</dt>
  5459. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  5460. </p>
  5461. </dd>
  5462. <dt>&lsquo;<samp>filmgrain</samp>&rsquo;</dt>
  5463. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  5464. internal default of the library.
  5465. </p>
  5466. </dd>
  5467. <dt>&lsquo;<samp>oppoint</samp>&rsquo;</dt>
  5468. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  5469. internal default of the library.
  5470. </p>
  5471. </dd>
  5472. <dt>&lsquo;<samp>alllayers</samp>&rsquo;</dt>
  5473. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  5474. </p>
  5475. </dd>
  5476. </dl>
  5477. <a name="libdavs2"></a>
  5478. <h2 class="section"><a href="ffprobe-all.html#toc-libdavs2">10.3 libdavs2</a></h2>
  5479. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  5480. </p>
  5481. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  5482. </p>
  5483. <a name="Audio-Decoders"></a>
  5484. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Decoders">11 Audio Decoders</a></h1>
  5485. <p>A description of some of the currently available audio decoders
  5486. follows.
  5487. </p>
  5488. <a name="ac3"></a>
  5489. <h2 class="section"><a href="ffprobe-all.html#toc-ac3">11.1 ac3</a></h2>
  5490. <p>AC-3 audio decoder.
  5491. </p>
  5492. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  5493. the undocumented RealAudio 3 (a.k.a. dnet).
  5494. </p>
  5495. <a name="AC_002d3-Decoder-Options"></a>
  5496. <h3 class="subsection"><a href="ffprobe-all.html#toc-AC_002d3-Decoder-Options">11.1.1 AC-3 Decoder Options</a></h3>
  5497. <dl compact="compact">
  5498. <dt>&lsquo;<samp>-drc_scale <var>value</var></samp>&rsquo;</dt>
  5499. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  5500. from the AC-3 stream. This factor is applied exponentially.
  5501. There are 3 notable scale factor ranges:
  5502. </p><dl compact="compact">
  5503. <dt>&lsquo;<samp>drc_scale == 0</samp>&rsquo;</dt>
  5504. <dd><p>DRC disabled. Produces full range audio.
  5505. </p></dd>
  5506. <dt>&lsquo;<samp>0 &lt; drc_scale &lt;= 1</samp>&rsquo;</dt>
  5507. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  5508. Audio reproduction is between full range and full compression.
  5509. </p></dd>
  5510. <dt>&lsquo;<samp>drc_scale &gt; 1</samp>&rsquo;</dt>
  5511. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  5512. Loud sounds are fully compressed. Soft sounds are enhanced.
  5513. </p></dd>
  5514. </dl>
  5515. </dd>
  5516. </dl>
  5517. <a name="flac"></a>
  5518. <h2 class="section"><a href="ffprobe-all.html#toc-flac">11.2 flac</a></h2>
  5519. <p>FLAC audio decoder.
  5520. </p>
  5521. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  5522. </p>
  5523. <a name="FLAC-Decoder-options"></a>
  5524. <h3 class="subsection"><a href="ffprobe-all.html#toc-FLAC-Decoder-options">11.2.1 FLAC Decoder options</a></h3>
  5525. <dl compact="compact">
  5526. <dt>&lsquo;<samp>-use_buggy_lpc</samp>&rsquo;</dt>
  5527. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  5528. (like the default value). This option makes it possible to decode such streams
  5529. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  5530. </p>
  5531. </dd>
  5532. </dl>
  5533. <a name="ffwavesynth"></a>
  5534. <h2 class="section"><a href="ffprobe-all.html#toc-ffwavesynth">11.3 ffwavesynth</a></h2>
  5535. <p>Internal wave synthesizer.
  5536. </p>
  5537. <p>This decoder generates wave patterns according to predefined sequences. Its
  5538. use is purely internal and the format of the data it accepts is not publicly
  5539. documented.
  5540. </p>
  5541. <a name="libcelt"></a>
  5542. <h2 class="section"><a href="ffprobe-all.html#toc-libcelt">11.4 libcelt</a></h2>
  5543. <p>libcelt decoder wrapper.
  5544. </p>
  5545. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  5546. Requires the presence of the libcelt headers and library during configuration.
  5547. You need to explicitly configure the build with <code>--enable-libcelt</code>.
  5548. </p>
  5549. <a name="libgsm"></a>
  5550. <h2 class="section"><a href="ffprobe-all.html#toc-libgsm">11.5 libgsm</a></h2>
  5551. <p>libgsm decoder wrapper.
  5552. </p>
  5553. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  5554. the presence of the libgsm headers and library during configuration. You need
  5555. to explicitly configure the build with <code>--enable-libgsm</code>.
  5556. </p>
  5557. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  5558. </p>
  5559. <a name="libilbc"></a>
  5560. <h2 class="section"><a href="ffprobe-all.html#toc-libilbc">11.6 libilbc</a></h2>
  5561. <p>libilbc decoder wrapper.
  5562. </p>
  5563. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  5564. audio codec. Requires the presence of the libilbc headers and library during
  5565. configuration. You need to explicitly configure the build with
  5566. <code>--enable-libilbc</code>.
  5567. </p>
  5568. <a name="Options-15"></a>
  5569. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-15">11.6.1 Options</a></h3>
  5570. <p>The following option is supported by the libilbc wrapper.
  5571. </p>
  5572. <dl compact="compact">
  5573. <dt>&lsquo;<samp>enhance</samp>&rsquo;</dt>
  5574. <dd>
  5575. <p>Enable the enhancement of the decoded audio when set to 1. The default
  5576. value is 0 (disabled).
  5577. </p>
  5578. </dd>
  5579. </dl>
  5580. <a name="libopencore_002damrnb"></a>
  5581. <h2 class="section"><a href="ffprobe-all.html#toc-libopencore_002damrnb">11.7 libopencore-amrnb</a></h2>
  5582. <p>libopencore-amrnb decoder wrapper.
  5583. </p>
  5584. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  5585. Narrowband audio codec. Using it requires the presence of the
  5586. libopencore-amrnb headers and library during configuration. You need to
  5587. explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
  5588. </p>
  5589. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  5590. without this library.
  5591. </p>
  5592. <a name="libopencore_002damrwb"></a>
  5593. <h2 class="section"><a href="ffprobe-all.html#toc-libopencore_002damrwb">11.8 libopencore-amrwb</a></h2>
  5594. <p>libopencore-amrwb decoder wrapper.
  5595. </p>
  5596. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  5597. Wideband audio codec. Using it requires the presence of the
  5598. libopencore-amrwb headers and library during configuration. You need to
  5599. explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
  5600. </p>
  5601. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  5602. without this library.
  5603. </p>
  5604. <a name="libopus"></a>
  5605. <h2 class="section"><a href="ffprobe-all.html#toc-libopus">11.9 libopus</a></h2>
  5606. <p>libopus decoder wrapper.
  5607. </p>
  5608. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  5609. Requires the presence of the libopus headers and library during
  5610. configuration. You need to explicitly configure the build with
  5611. <code>--enable-libopus</code>.
  5612. </p>
  5613. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  5614. without this library.
  5615. </p>
  5616. <a name="Subtitles-Decoders"></a>
  5617. <h1 class="chapter"><a href="ffprobe-all.html#toc-Subtitles-Decoders">12 Subtitles Decoders</a></h1>
  5618. <a name="libaribb24"></a>
  5619. <h2 class="section"><a href="ffprobe-all.html#toc-libaribb24">12.1 libaribb24</a></h2>
  5620. <p>ARIB STD-B24 caption decoder.
  5621. </p>
  5622. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  5623. </p>
  5624. <a name="libaribb24-Decoder-Options"></a>
  5625. <h3 class="subsection"><a href="ffprobe-all.html#toc-libaribb24-Decoder-Options">12.1.1 libaribb24 Decoder Options</a></h3>
  5626. <dl compact="compact">
  5627. <dt>&lsquo;<samp>-aribb24-base-path <var>path</var></samp>&rsquo;</dt>
  5628. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  5629. configuration files (for custom unicode conversions), and for dumping of
  5630. non-text symbols as images under that location.
  5631. </p>
  5632. <p>Unset by default.
  5633. </p>
  5634. </dd>
  5635. <dt>&lsquo;<samp>-aribb24-skip-ruby-text <var>boolean</var></samp>&rsquo;</dt>
  5636. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  5637. text.
  5638. </p>
  5639. <p>Enabled by default.
  5640. </p>
  5641. </dd>
  5642. </dl>
  5643. <a name="dvbsub"></a>
  5644. <h2 class="section"><a href="ffprobe-all.html#toc-dvbsub">12.2 dvbsub</a></h2>
  5645. <a name="Options-11"></a>
  5646. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-11">12.2.1 Options</a></h3>
  5647. <dl compact="compact">
  5648. <dt>&lsquo;<samp>compute_clut</samp>&rsquo;</dt>
  5649. <dd><dl compact="compact">
  5650. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  5651. <dd><p>Compute clut if no matching CLUT is in the stream.
  5652. </p></dd>
  5653. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  5654. <dd><p>Never compute CLUT
  5655. </p></dd>
  5656. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  5657. <dd><p>Always compute CLUT and override the one provided in the stream.
  5658. </p></dd>
  5659. </dl>
  5660. </dd>
  5661. <dt>&lsquo;<samp>dvb_substream</samp>&rsquo;</dt>
  5662. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  5663. </p>
  5664. </dd>
  5665. </dl>
  5666. <a name="dvdsub"></a>
  5667. <h2 class="section"><a href="ffprobe-all.html#toc-dvdsub">12.3 dvdsub</a></h2>
  5668. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  5669. also be found in VobSub file pairs and in some Matroska files.
  5670. </p>
  5671. <a name="Options-27"></a>
  5672. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-27">12.3.1 Options</a></h3>
  5673. <dl compact="compact">
  5674. <dt>&lsquo;<samp>palette</samp>&rsquo;</dt>
  5675. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  5676. palette is normally specified in the index file; in Matroska, the palette is
  5677. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  5678. palette is stored in the IFO file, and therefore not available when reading
  5679. from dumped VOB files.
  5680. </p>
  5681. <p>The format for this option is a string containing 16 24-bits hexadecimal
  5682. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  5683. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  5684. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  5685. </p>
  5686. </dd>
  5687. <dt>&lsquo;<samp>ifo_palette</samp>&rsquo;</dt>
  5688. <dd><p>Specify the IFO file from which the global palette is obtained.
  5689. (experimental)
  5690. </p>
  5691. </dd>
  5692. <dt>&lsquo;<samp>forced_subs_only</samp>&rsquo;</dt>
  5693. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  5694. and non-forced subtitles in the same track. Setting this flag to <code>1</code>
  5695. will only keep the forced subtitles. Default value is <code>0</code>.
  5696. </p></dd>
  5697. </dl>
  5698. <a name="libzvbi_002dteletext"></a>
  5699. <h2 class="section"><a href="ffprobe-all.html#toc-libzvbi_002dteletext">12.4 libzvbi-teletext</a></h2>
  5700. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  5701. subtitles. Requires the presence of the libzvbi headers and library during
  5702. configuration. You need to explicitly configure the build with
  5703. <code>--enable-libzvbi</code>.
  5704. </p>
  5705. <a name="Options-1"></a>
  5706. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-1">12.4.1 Options</a></h3>
  5707. <dl compact="compact">
  5708. <dt>&lsquo;<samp>txt_page</samp>&rsquo;</dt>
  5709. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  5710. list are dropped. You may use the special <code>*</code> string to match all pages,
  5711. or <code>subtitle</code> to match all subtitle pages.
  5712. Default value is *.
  5713. </p></dd>
  5714. <dt>&lsquo;<samp>txt_default_region</samp>&rsquo;</dt>
  5715. <dd><p>Set default G0 character set used for decoding, a value between 0 and 80 (see
  5716. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  5717. override the libzvbi default. This option is needed for some legacy level 1.0
  5718. transmissions which cannot signal the proper charset.
  5719. </p></dd>
  5720. <dt>&lsquo;<samp>txt_chop_top</samp>&rsquo;</dt>
  5721. <dd><p>Discards the top teletext line. Default value is 1.
  5722. </p></dd>
  5723. <dt>&lsquo;<samp>txt_format</samp>&rsquo;</dt>
  5724. <dd><p>Specifies the format of the decoded subtitles.
  5725. </p><dl compact="compact">
  5726. <dt>&lsquo;<samp>bitmap</samp>&rsquo;</dt>
  5727. <dd><p>The default format, you should use this for teletext pages, because certain
  5728. graphics and colors cannot be expressed in simple text or even ASS.
  5729. </p></dd>
  5730. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  5731. <dd><p>Simple text based output without formatting.
  5732. </p></dd>
  5733. <dt>&lsquo;<samp>ass</samp>&rsquo;</dt>
  5734. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  5735. different styles, subtitle pages are stripped down to text, but an effort is
  5736. made to keep the text alignment and the formatting.
  5737. </p></dd>
  5738. </dl>
  5739. </dd>
  5740. <dt>&lsquo;<samp>txt_left</samp>&rsquo;</dt>
  5741. <dd><p>X offset of generated bitmaps, default is 0.
  5742. </p></dd>
  5743. <dt>&lsquo;<samp>txt_top</samp>&rsquo;</dt>
  5744. <dd><p>Y offset of generated bitmaps, default is 0.
  5745. </p></dd>
  5746. <dt>&lsquo;<samp>txt_chop_spaces</samp>&rsquo;</dt>
  5747. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  5748. text. This option is useful for teletext based subtitles where empty spaces may
  5749. be present at the start or at the end of the lines or empty lines may be
  5750. present between the subtitle lines because of double-sized teletext characters.
  5751. Default value is 1.
  5752. </p></dd>
  5753. <dt>&lsquo;<samp>txt_duration</samp>&rsquo;</dt>
  5754. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  5755. milliseconds. Default value is -1 which means infinity or until the next
  5756. subtitle event comes.
  5757. </p></dd>
  5758. <dt>&lsquo;<samp>txt_transparent</samp>&rsquo;</dt>
  5759. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  5760. is 0 which means an opaque background.
  5761. </p></dd>
  5762. <dt>&lsquo;<samp>txt_opacity</samp>&rsquo;</dt>
  5763. <dd><p>Sets the opacity (0-255) of the teletext background. If
  5764. &lsquo;<samp>txt_transparent</samp>&rsquo; is not set, it only affects characters between a start
  5765. box and an end box, typically subtitles. Default value is 0 if
  5766. &lsquo;<samp>txt_transparent</samp>&rsquo; is set, 255 otherwise.
  5767. </p>
  5768. </dd>
  5769. </dl>
  5770. <a name="Bitstream-Filters"></a>
  5771. <h1 class="chapter"><a href="ffprobe-all.html#toc-Bitstream-Filters">13 Bitstream Filters</a></h1>
  5772. <p>When you configure your FFmpeg build, all the supported bitstream
  5773. filters are enabled by default. You can list all available ones using
  5774. the configure option <code>--list-bsfs</code>.
  5775. </p>
  5776. <p>You can disable all the bitstream filters using the configure option
  5777. <code>--disable-bsfs</code>, and selectively enable any bitstream filter using
  5778. the option <code>--enable-bsf=BSF</code>, or you can disable a particular
  5779. bitstream filter using the option <code>--disable-bsf=BSF</code>.
  5780. </p>
  5781. <p>The option <code>-bsfs</code> of the ff* tools will display the list of
  5782. all the supported bitstream filters included in your build.
  5783. </p>
  5784. <p>The ff* tools have a -bsf option applied per stream, taking a
  5785. comma-separated list of filters, whose parameters follow the filter
  5786. name after a &rsquo;=&rsquo;.
  5787. </p>
  5788. <div class="example">
  5789. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT
  5790. </pre></div>
  5791. <p>Below is a description of the currently available bitstream filters,
  5792. with their parameters, if any.
  5793. </p>
  5794. <a name="aac_005fadtstoasc"></a>
  5795. <h2 class="section"><a href="ffprobe-all.html#toc-aac_005fadtstoasc">13.1 aac_adtstoasc</a></h2>
  5796. <p>Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration
  5797. bitstream.
  5798. </p>
  5799. <p>This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4
  5800. ADTS header and removes the ADTS header.
  5801. </p>
  5802. <p>This filter is required for example when copying an AAC stream from a
  5803. raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or
  5804. to MOV/MP4 files and related formats such as 3GP or M4A. Please note
  5805. that it is auto-inserted for MP4A-LATM and MOV/MP4 and related formats.
  5806. </p>
  5807. <a name="av1_005fmetadata"></a>
  5808. <h2 class="section"><a href="ffprobe-all.html#toc-av1_005fmetadata">13.2 av1_metadata</a></h2>
  5809. <p>Modify metadata embedded in an AV1 stream.
  5810. </p>
  5811. <dl compact="compact">
  5812. <dt>&lsquo;<samp>td</samp>&rsquo;</dt>
  5813. <dd><p>Insert or remove temporal delimiter OBUs in all temporal units of the
  5814. stream.
  5815. </p>
  5816. <dl compact="compact">
  5817. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  5818. <dd><p>Insert a TD at the beginning of every TU which does not already have one.
  5819. </p></dd>
  5820. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  5821. <dd><p>Remove the TD from the beginning of every TU which has one.
  5822. </p></dd>
  5823. </dl>
  5824. </dd>
  5825. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  5826. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  5827. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  5828. <dd><p>Set the color description fields in the stream (see AV1 section 6.4.2).
  5829. </p>
  5830. </dd>
  5831. <dt>&lsquo;<samp>color_range</samp>&rsquo;</dt>
  5832. <dd><p>Set the color range in the stream (see AV1 section 6.4.2; note that
  5833. this cannot be set for streams using BT.709 primaries, sRGB transfer
  5834. characteristic and identity (RGB) matrix coefficients).
  5835. </p><dl compact="compact">
  5836. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  5837. <dd><p>Limited range.
  5838. </p></dd>
  5839. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  5840. <dd><p>Full range.
  5841. </p></dd>
  5842. </dl>
  5843. </dd>
  5844. <dt>&lsquo;<samp>chroma_sample_position</samp>&rsquo;</dt>
  5845. <dd><p>Set the chroma sample location in the stream (see AV1 section 6.4.2).
  5846. This can only be set for 4:2:0 streams.
  5847. </p>
  5848. <dl compact="compact">
  5849. <dt>&lsquo;<samp>vertical</samp>&rsquo;</dt>
  5850. <dd><p>Left position (matching the default in MPEG-2 and H.264).
  5851. </p></dd>
  5852. <dt>&lsquo;<samp>colocated</samp>&rsquo;</dt>
  5853. <dd><p>Top-left position.
  5854. </p></dd>
  5855. </dl>
  5856. </dd>
  5857. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  5858. <dd><p>Set the tick rate (<em>num_units_in_display_tick / time_scale</em>) in
  5859. the timing info in the sequence header.
  5860. </p></dd>
  5861. <dt>&lsquo;<samp>num_ticks_per_picture</samp>&rsquo;</dt>
  5862. <dd><p>Set the number of ticks in each picture, to indicate that the stream
  5863. has a fixed framerate. Ignored if &lsquo;<samp>tick_rate</samp>&rsquo; is not also set.
  5864. </p>
  5865. </dd>
  5866. <dt>&lsquo;<samp>delete_padding</samp>&rsquo;</dt>
  5867. <dd><p>Deletes Padding OBUs.
  5868. </p>
  5869. </dd>
  5870. </dl>
  5871. <a name="chomp"></a>
  5872. <h2 class="section"><a href="ffprobe-all.html#toc-chomp">13.3 chomp</a></h2>
  5873. <p>Remove zero padding at the end of a packet.
  5874. </p>
  5875. <a name="dca_005fcore"></a>
  5876. <h2 class="section"><a href="ffprobe-all.html#toc-dca_005fcore">13.4 dca_core</a></h2>
  5877. <p>Extract the core from a DCA/DTS stream, dropping extensions such as
  5878. DTS-HD.
  5879. </p>
  5880. <a name="dump_005fextra"></a>
  5881. <h2 class="section"><a href="ffprobe-all.html#toc-dump_005fextra">13.5 dump_extra</a></h2>
  5882. <p>Add extradata to the beginning of the filtered packets except when
  5883. said packets already exactly begin with the extradata that is intended
  5884. to be added.
  5885. </p>
  5886. <dl compact="compact">
  5887. <dt>&lsquo;<samp>freq</samp>&rsquo;</dt>
  5888. <dd><p>The additional argument specifies which packets should be filtered.
  5889. It accepts the values:
  5890. </p><dl compact="compact">
  5891. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  5892. <dt>&lsquo;<samp>keyframe</samp>&rsquo;</dt>
  5893. <dd><p>add extradata to all key packets
  5894. </p>
  5895. </dd>
  5896. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  5897. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  5898. <dd><p>add extradata to all packets
  5899. </p></dd>
  5900. </dl>
  5901. </dd>
  5902. </dl>
  5903. <p>If not specified it is assumed &lsquo;<samp>k</samp>&rsquo;.
  5904. </p>
  5905. <p>For example the following <code>ffmpeg</code> command forces a global
  5906. header (thus disabling individual packet headers) in the H.264 packets
  5907. generated by the <code>libx264</code> encoder, but corrects them by adding
  5908. the header stored in extradata to the key packets:
  5909. </p><div class="example">
  5910. <pre class="example">ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts
  5911. </pre></div>
  5912. <a name="eac3_005fcore"></a>
  5913. <h2 class="section"><a href="ffprobe-all.html#toc-eac3_005fcore">13.6 eac3_core</a></h2>
  5914. <p>Extract the core from a E-AC-3 stream, dropping extra channels.
  5915. </p>
  5916. <a name="extract_005fextradata"></a>
  5917. <h2 class="section"><a href="ffprobe-all.html#toc-extract_005fextradata">13.7 extract_extradata</a></h2>
  5918. <p>Extract the in-band extradata.
  5919. </p>
  5920. <p>Certain codecs allow the long-term headers (e.g. MPEG-2 sequence headers,
  5921. or H.264/HEVC (VPS/)SPS/PPS) to be transmitted either &quot;in-band&quot; (i.e. as a part
  5922. of the bitstream containing the coded frames) or &quot;out of band&quot; (e.g. on the
  5923. container level). This latter form is called &quot;extradata&quot; in FFmpeg terminology.
  5924. </p>
  5925. <p>This bitstream filter detects the in-band headers and makes them available as
  5926. extradata.
  5927. </p>
  5928. <dl compact="compact">
  5929. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  5930. <dd><p>When this option is enabled, the long-term headers are removed from the
  5931. bitstream after extraction.
  5932. </p></dd>
  5933. </dl>
  5934. <a name="filter_005funits"></a>
  5935. <h2 class="section"><a href="ffprobe-all.html#toc-filter_005funits">13.8 filter_units</a></h2>
  5936. <p>Remove units with types in or not in a given set from the stream.
  5937. </p>
  5938. <dl compact="compact">
  5939. <dt>&lsquo;<samp>pass_types</samp>&rsquo;</dt>
  5940. <dd><p>List of unit types or ranges of unit types to pass through while removing
  5941. all others. This is specified as a &rsquo;|&rsquo;-separated list of unit type values
  5942. or ranges of values with &rsquo;-&rsquo;.
  5943. </p>
  5944. </dd>
  5945. <dt>&lsquo;<samp>remove_types</samp>&rsquo;</dt>
  5946. <dd><p>Identical to &lsquo;<samp>pass_types</samp>&rsquo;, except the units in the given set
  5947. removed and all others passed through.
  5948. </p></dd>
  5949. </dl>
  5950. <p>Extradata is unchanged by this transformation, but note that if the stream
  5951. contains inline parameter sets then the output may be unusable if they are
  5952. removed.
  5953. </p>
  5954. <p>For example, to remove all non-VCL NAL units from an H.264 stream:
  5955. </p><div class="example">
  5956. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=pass_types=1-5' OUTPUT
  5957. </pre></div>
  5958. <p>To remove all AUDs, SEI and filler from an H.265 stream:
  5959. </p><div class="example">
  5960. <pre class="example">ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT
  5961. </pre></div>
  5962. <a name="hapqa_005fextract"></a>
  5963. <h2 class="section"><a href="ffprobe-all.html#toc-hapqa_005fextract">13.9 hapqa_extract</a></h2>
  5964. <p>Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file.
  5965. </p>
  5966. <dl compact="compact">
  5967. <dt>&lsquo;<samp>texture</samp>&rsquo;</dt>
  5968. <dd><p>Specifies the texture to keep.
  5969. </p>
  5970. <dl compact="compact">
  5971. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  5972. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  5973. </dl>
  5974. </dd>
  5975. </dl>
  5976. <p>Convert HAPQA to HAPQ
  5977. </p><div class="example">
  5978. <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
  5979. </pre></div>
  5980. <p>Convert HAPQA to HAPAlphaOnly
  5981. </p><div class="example">
  5982. <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
  5983. </pre></div>
  5984. <a name="h264_005fmetadata"></a>
  5985. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fmetadata">13.10 h264_metadata</a></h2>
  5986. <p>Modify metadata embedded in an H.264 stream.
  5987. </p>
  5988. <dl compact="compact">
  5989. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  5990. <dd><p>Insert or remove AUD NAL units in all access units of the stream.
  5991. </p>
  5992. <dl compact="compact">
  5993. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  5994. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  5995. </dl>
  5996. </dd>
  5997. <dt>&lsquo;<samp>sample_aspect_ratio</samp>&rsquo;</dt>
  5998. <dd><p>Set the sample aspect ratio of the stream in the VUI parameters.
  5999. </p>
  6000. </dd>
  6001. <dt>&lsquo;<samp>overscan_appropriate_flag</samp>&rsquo;</dt>
  6002. <dd><p>Set whether the stream is suitable for display using overscan
  6003. or not (see H.264 section E.2.1).
  6004. </p>
  6005. </dd>
  6006. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6007. <dt>&lsquo;<samp>video_full_range_flag</samp>&rsquo;</dt>
  6008. <dd><p>Set the video format in the stream (see H.264 section E.2.1 and
  6009. table E-2).
  6010. </p>
  6011. </dd>
  6012. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6013. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6014. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6015. <dd><p>Set the colour description in the stream (see H.264 section E.2.1
  6016. and tables E-3, E-4 and E-5).
  6017. </p>
  6018. </dd>
  6019. <dt>&lsquo;<samp>chroma_sample_loc_type</samp>&rsquo;</dt>
  6020. <dd><p>Set the chroma sample location in the stream (see H.264 section
  6021. E.2.1 and figure E-1).
  6022. </p>
  6023. </dd>
  6024. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  6025. <dd><p>Set the tick rate (num_units_in_tick / time_scale) in the VUI
  6026. parameters. This is the smallest time unit representable in the
  6027. stream, and in many cases represents the field rate of the stream
  6028. (double the frame rate).
  6029. </p></dd>
  6030. <dt>&lsquo;<samp>fixed_frame_rate_flag</samp>&rsquo;</dt>
  6031. <dd><p>Set whether the stream has fixed framerate - typically this indicates
  6032. that the framerate is exactly half the tick rate, but the exact
  6033. meaning is dependent on interlacing and the picture structure (see
  6034. H.264 section E.2.1 and table E-6).
  6035. </p>
  6036. </dd>
  6037. <dt>&lsquo;<samp>crop_left</samp>&rsquo;</dt>
  6038. <dt>&lsquo;<samp>crop_right</samp>&rsquo;</dt>
  6039. <dt>&lsquo;<samp>crop_top</samp>&rsquo;</dt>
  6040. <dt>&lsquo;<samp>crop_bottom</samp>&rsquo;</dt>
  6041. <dd><p>Set the frame cropping offsets in the SPS. These values will replace
  6042. the current ones if the stream is already cropped.
  6043. </p>
  6044. <p>These fields are set in pixels. Note that some sizes may not be
  6045. representable if the chroma is subsampled or the stream is interlaced
  6046. (see H.264 section 7.4.2.1.1).
  6047. </p>
  6048. </dd>
  6049. <dt>&lsquo;<samp>sei_user_data</samp>&rsquo;</dt>
  6050. <dd><p>Insert a string as SEI unregistered user data. The argument must
  6051. be of the form <em>UUID+string</em>, where the UUID is as hex digits
  6052. possibly separated by hyphens, and the string can be anything.
  6053. </p>
  6054. <p>For example, &lsquo;<samp>086f3693-b7b3-4f2c-9653-21492feee5b8+hello</samp>&rsquo; will
  6055. insert the string &ldquo;hello&rdquo; associated with the given UUID.
  6056. </p>
  6057. </dd>
  6058. <dt>&lsquo;<samp>delete_filler</samp>&rsquo;</dt>
  6059. <dd><p>Deletes both filler NAL units and filler SEI messages.
  6060. </p>
  6061. </dd>
  6062. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  6063. <dd><p>Set the level in the SPS. Refer to H.264 section A.3 and tables A-1
  6064. to A-5.
  6065. </p>
  6066. <p>The argument must be the name of a level (for example, &lsquo;<samp>4.2</samp>&rsquo;), a
  6067. level_idc value (for example, &lsquo;<samp>42</samp>&rsquo;), or the special name &lsquo;<samp>auto</samp>&rsquo;
  6068. indicating that the filter should attempt to guess the level from the
  6069. input stream properties.
  6070. </p>
  6071. </dd>
  6072. </dl>
  6073. <a name="h264_005fmp4toannexb"></a>
  6074. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fmp4toannexb">13.11 h264_mp4toannexb</a></h2>
  6075. <p>Convert an H.264 bitstream from length prefixed mode to start code
  6076. prefixed mode (as defined in the Annex B of the ITU-T H.264
  6077. specification).
  6078. </p>
  6079. <p>This is required by some streaming formats, typically the MPEG-2
  6080. transport stream format (muxer <code>mpegts</code>).
  6081. </p>
  6082. <p>For example to remux an MP4 file containing an H.264 stream to mpegts
  6083. format with <code>ffmpeg</code>, you can use the command:
  6084. </p>
  6085. <div class="example">
  6086. <pre class="example">ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts
  6087. </pre></div>
  6088. <p>Please note that this filter is auto-inserted for MPEG-TS (muxer
  6089. <code>mpegts</code>) and raw H.264 (muxer <code>h264</code>) output formats.
  6090. </p>
  6091. <a name="h264_005fredundant_005fpps"></a>
  6092. <h2 class="section"><a href="ffprobe-all.html#toc-h264_005fredundant_005fpps">13.12 h264_redundant_pps</a></h2>
  6093. <p>This applies a specific fixup to some Blu-ray streams which contain
  6094. redundant PPSs modifying irrelevant parameters of the stream which
  6095. confuse other transformations which require correct extradata.
  6096. </p>
  6097. <p>A new single global PPS is created, and all of the redundant PPSs
  6098. within the stream are removed.
  6099. </p>
  6100. <a name="hevc_005fmetadata"></a>
  6101. <h2 class="section"><a href="ffprobe-all.html#toc-hevc_005fmetadata">13.13 hevc_metadata</a></h2>
  6102. <p>Modify metadata embedded in an HEVC stream.
  6103. </p>
  6104. <dl compact="compact">
  6105. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  6106. <dd><p>Insert or remove AUD NAL units in all access units of the stream.
  6107. </p>
  6108. <dl compact="compact">
  6109. <dt>&lsquo;<samp>insert</samp>&rsquo;</dt>
  6110. <dt>&lsquo;<samp>remove</samp>&rsquo;</dt>
  6111. </dl>
  6112. </dd>
  6113. <dt>&lsquo;<samp>sample_aspect_ratio</samp>&rsquo;</dt>
  6114. <dd><p>Set the sample aspect ratio in the stream in the VUI parameters.
  6115. </p>
  6116. </dd>
  6117. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6118. <dt>&lsquo;<samp>video_full_range_flag</samp>&rsquo;</dt>
  6119. <dd><p>Set the video format in the stream (see H.265 section E.3.1 and
  6120. table E.2).
  6121. </p>
  6122. </dd>
  6123. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6124. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6125. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6126. <dd><p>Set the colour description in the stream (see H.265 section E.3.1
  6127. and tables E.3, E.4 and E.5).
  6128. </p>
  6129. </dd>
  6130. <dt>&lsquo;<samp>chroma_sample_loc_type</samp>&rsquo;</dt>
  6131. <dd><p>Set the chroma sample location in the stream (see H.265 section
  6132. E.3.1 and figure E.1).
  6133. </p>
  6134. </dd>
  6135. <dt>&lsquo;<samp>tick_rate</samp>&rsquo;</dt>
  6136. <dd><p>Set the tick rate in the VPS and VUI parameters (num_units_in_tick /
  6137. time_scale). Combined with &lsquo;<samp>num_ticks_poc_diff_one</samp>&rsquo;, this can
  6138. set a constant framerate in the stream. Note that it is likely to be
  6139. overridden by container parameters when the stream is in a container.
  6140. </p>
  6141. </dd>
  6142. <dt>&lsquo;<samp>num_ticks_poc_diff_one</samp>&rsquo;</dt>
  6143. <dd><p>Set poc_proportional_to_timing_flag in VPS and VUI and use this value
  6144. to set num_ticks_poc_diff_one_minus1 (see H.265 sections 7.4.3.1 and
  6145. E.3.1). Ignored if &lsquo;<samp>tick_rate</samp>&rsquo; is not also set.
  6146. </p>
  6147. </dd>
  6148. <dt>&lsquo;<samp>crop_left</samp>&rsquo;</dt>
  6149. <dt>&lsquo;<samp>crop_right</samp>&rsquo;</dt>
  6150. <dt>&lsquo;<samp>crop_top</samp>&rsquo;</dt>
  6151. <dt>&lsquo;<samp>crop_bottom</samp>&rsquo;</dt>
  6152. <dd><p>Set the conformance window cropping offsets in the SPS. These values
  6153. will replace the current ones if the stream is already cropped.
  6154. </p>
  6155. <p>These fields are set in pixels. Note that some sizes may not be
  6156. representable if the chroma is subsampled (H.265 section 7.4.3.2.1).
  6157. </p>
  6158. </dd>
  6159. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  6160. <dd><p>Set the level in the VPS and SPS. See H.265 section A.4 and tables
  6161. A.6 and A.7.
  6162. </p>
  6163. <p>The argument must be the name of a level (for example, &lsquo;<samp>5.1</samp>&rsquo;), a
  6164. <em>general_level_idc</em> value (for example, &lsquo;<samp>153</samp>&rsquo; for level 5.1),
  6165. or the special name &lsquo;<samp>auto</samp>&rsquo; indicating that the filter should
  6166. attempt to guess the level from the input stream properties.
  6167. </p>
  6168. </dd>
  6169. </dl>
  6170. <a name="hevc_005fmp4toannexb"></a>
  6171. <h2 class="section"><a href="ffprobe-all.html#toc-hevc_005fmp4toannexb">13.14 hevc_mp4toannexb</a></h2>
  6172. <p>Convert an HEVC/H.265 bitstream from length prefixed mode to start code
  6173. prefixed mode (as defined in the Annex B of the ITU-T H.265
  6174. specification).
  6175. </p>
  6176. <p>This is required by some streaming formats, typically the MPEG-2
  6177. transport stream format (muxer <code>mpegts</code>).
  6178. </p>
  6179. <p>For example to remux an MP4 file containing an HEVC stream to mpegts
  6180. format with <code>ffmpeg</code>, you can use the command:
  6181. </p>
  6182. <div class="example">
  6183. <pre class="example">ffmpeg -i INPUT.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT.ts
  6184. </pre></div>
  6185. <p>Please note that this filter is auto-inserted for MPEG-TS (muxer
  6186. <code>mpegts</code>) and raw HEVC/H.265 (muxer <code>h265</code> or
  6187. <code>hevc</code>) output formats.
  6188. </p>
  6189. <a name="imxdump"></a>
  6190. <h2 class="section"><a href="ffprobe-all.html#toc-imxdump">13.15 imxdump</a></h2>
  6191. <p>Modifies the bitstream to fit in MOV and to be usable by the Final Cut
  6192. Pro decoder. This filter only applies to the mpeg2video codec, and is
  6193. likely not needed for Final Cut Pro 7 and newer with the appropriate
  6194. &lsquo;<samp>-tag:v</samp>&rsquo;.
  6195. </p>
  6196. <p>For example, to remux 30 MB/sec NTSC IMX to MOV:
  6197. </p>
  6198. <div class="example">
  6199. <pre class="example">ffmpeg -i input.mxf -c copy -bsf:v imxdump -tag:v mx3n output.mov
  6200. </pre></div>
  6201. <a name="mjpeg2jpeg"></a>
  6202. <h2 class="section"><a href="ffprobe-all.html#toc-mjpeg2jpeg">13.16 mjpeg2jpeg</a></h2>
  6203. <p>Convert MJPEG/AVI1 packets to full JPEG/JFIF packets.
  6204. </p>
  6205. <p>MJPEG is a video codec wherein each video frame is essentially a
  6206. JPEG image. The individual frames can be extracted without loss,
  6207. e.g. by
  6208. </p>
  6209. <div class="example">
  6210. <pre class="example">ffmpeg -i ../some_mjpeg.avi -c:v copy frames_%d.jpg
  6211. </pre></div>
  6212. <p>Unfortunately, these chunks are incomplete JPEG images, because
  6213. they lack the DHT segment required for decoding. Quoting from
  6214. <a href="http://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml">http://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml</a>:
  6215. </p>
  6216. <p>Avery Lee, writing in the rec.video.desktop newsgroup in 2001,
  6217. commented that &quot;MJPEG, or at least the MJPEG in AVIs having the
  6218. MJPG fourcc, is restricted JPEG with a fixed &ndash; and *omitted* &ndash;
  6219. Huffman table. The JPEG must be YCbCr colorspace, it must be 4:2:2,
  6220. and it must use basic Huffman encoding, not arithmetic or
  6221. progressive. . . . You can indeed extract the MJPEG frames and
  6222. decode them with a regular JPEG decoder, but you have to prepend
  6223. the DHT segment to them, or else the decoder won&rsquo;t have any idea
  6224. how to decompress the data. The exact table necessary is given in
  6225. the OpenDML spec.&quot;
  6226. </p>
  6227. <p>This bitstream filter patches the header of frames extracted from an MJPEG
  6228. stream (carrying the AVI1 header ID and lacking a DHT segment) to
  6229. produce fully qualified JPEG images.
  6230. </p>
  6231. <div class="example">
  6232. <pre class="example">ffmpeg -i mjpeg-movie.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg
  6233. exiftran -i -9 frame*.jpg
  6234. ffmpeg -i frame_%d.jpg -c:v copy rotated.avi
  6235. </pre></div>
  6236. <a name="mjpegadump"></a>
  6237. <h2 class="section"><a href="ffprobe-all.html#toc-mjpegadump">13.17 mjpegadump</a></h2>
  6238. <p>Add an MJPEG A header to the bitstream, to enable decoding by
  6239. Quicktime.
  6240. </p>
  6241. <p><a name="mov2textsub"></a>
  6242. </p><a name="mov2textsub-1"></a>
  6243. <h2 class="section"><a href="ffprobe-all.html#toc-mov2textsub-1">13.18 mov2textsub</a></h2>
  6244. <p>Extract a representable text file from MOV subtitles, stripping the
  6245. metadata header from each subtitle packet.
  6246. </p>
  6247. <p>See also the <a href="#text2movsub">text2movsub</a> filter.
  6248. </p>
  6249. <a name="mp3decomp"></a>
  6250. <h2 class="section"><a href="ffprobe-all.html#toc-mp3decomp">13.19 mp3decomp</a></h2>
  6251. <p>Decompress non-standard compressed MP3 audio headers.
  6252. </p>
  6253. <a name="mpeg2_005fmetadata"></a>
  6254. <h2 class="section"><a href="ffprobe-all.html#toc-mpeg2_005fmetadata">13.20 mpeg2_metadata</a></h2>
  6255. <p>Modify metadata embedded in an MPEG-2 stream.
  6256. </p>
  6257. <dl compact="compact">
  6258. <dt>&lsquo;<samp>display_aspect_ratio</samp>&rsquo;</dt>
  6259. <dd><p>Set the display aspect ratio in the stream.
  6260. </p>
  6261. <p>The following fixed values are supported:
  6262. </p><dl compact="compact">
  6263. <dt>&lsquo;<samp>4/3</samp>&rsquo;</dt>
  6264. <dt>&lsquo;<samp>16/9</samp>&rsquo;</dt>
  6265. <dt>&lsquo;<samp>221/100</samp>&rsquo;</dt>
  6266. </dl>
  6267. <p>Any other value will result in square pixels being signalled instead
  6268. (see H.262 section 6.3.3 and table 6-3).
  6269. </p>
  6270. </dd>
  6271. <dt>&lsquo;<samp>frame_rate</samp>&rsquo;</dt>
  6272. <dd><p>Set the frame rate in the stream. This is constructed from a table
  6273. of known values combined with a small multiplier and divisor - if
  6274. the supplied value is not exactly representable, the nearest
  6275. representable value will be used instead (see H.262 section 6.3.3
  6276. and table 6-4).
  6277. </p>
  6278. </dd>
  6279. <dt>&lsquo;<samp>video_format</samp>&rsquo;</dt>
  6280. <dd><p>Set the video format in the stream (see H.262 section 6.3.6 and
  6281. table 6-6).
  6282. </p>
  6283. </dd>
  6284. <dt>&lsquo;<samp>colour_primaries</samp>&rsquo;</dt>
  6285. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6286. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6287. <dd><p>Set the colour description in the stream (see H.262 section 6.3.6
  6288. and tables 6-7, 6-8 and 6-9).
  6289. </p>
  6290. </dd>
  6291. </dl>
  6292. <a name="mpeg4_005funpack_005fbframes"></a>
  6293. <h2 class="section"><a href="ffprobe-all.html#toc-mpeg4_005funpack_005fbframes">13.21 mpeg4_unpack_bframes</a></h2>
  6294. <p>Unpack DivX-style packed B-frames.
  6295. </p>
  6296. <p>DivX-style packed B-frames are not valid MPEG-4 and were only a
  6297. workaround for the broken Video for Windows subsystem.
  6298. They use more space, can cause minor AV sync issues, require more
  6299. CPU power to decode (unless the player has some decoded picture queue
  6300. to compensate the 2,0,2,0 frame per packet style) and cause
  6301. trouble if copied into a standard container like mp4 or mpeg-ps/ts,
  6302. because MPEG-4 decoders may not be able to decode them, since they are
  6303. not valid MPEG-4.
  6304. </p>
  6305. <p>For example to fix an AVI file containing an MPEG-4 stream with
  6306. DivX-style packed B-frames using <code>ffmpeg</code>, you can use the command:
  6307. </p>
  6308. <div class="example">
  6309. <pre class="example">ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi
  6310. </pre></div>
  6311. <a name="noise"></a>
  6312. <h2 class="section"><a href="ffprobe-all.html#toc-noise">13.22 noise</a></h2>
  6313. <p>Damages the contents of packets or simply drops them without damaging the
  6314. container. Can be used for fuzzing or testing error resilience/concealment.
  6315. </p>
  6316. <p>Parameters:
  6317. </p><dl compact="compact">
  6318. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  6319. <dd><p>A numeral string, whose value is related to how often output bytes will
  6320. be modified. Therefore, values below or equal to 0 are forbidden, and
  6321. the lower the more frequent bytes will be modified, with 1 meaning
  6322. every byte is modified.
  6323. </p></dd>
  6324. <dt>&lsquo;<samp>dropamount</samp>&rsquo;</dt>
  6325. <dd><p>A numeral string, whose value is related to how often packets will be dropped.
  6326. Therefore, values below or equal to 0 are forbidden, and the lower the more
  6327. frequent packets will be dropped, with 1 meaning every packet is dropped.
  6328. </p></dd>
  6329. </dl>
  6330. <p>The following example applies the modification to every byte but does not drop
  6331. any packets.
  6332. </p><div class="example">
  6333. <pre class="example">ffmpeg -i INPUT -c copy -bsf noise[=1] output.mkv
  6334. </pre></div>
  6335. <a name="null"></a>
  6336. <h2 class="section"><a href="ffprobe-all.html#toc-null">13.23 null</a></h2>
  6337. <p>This bitstream filter passes the packets through unchanged.
  6338. </p>
  6339. <a name="prores_005fmetadata"></a>
  6340. <h2 class="section"><a href="ffprobe-all.html#toc-prores_005fmetadata">13.24 prores_metadata</a></h2>
  6341. <p>Modify color property metadata embedded in prores stream.
  6342. </p>
  6343. <dl compact="compact">
  6344. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  6345. <dd><p>Set the color primaries.
  6346. Available values are:
  6347. </p>
  6348. <dl compact="compact">
  6349. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6350. <dd><p>Keep the same color primaries property (default).
  6351. </p>
  6352. </dd>
  6353. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6354. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6355. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  6356. <dd><p>BT601 625
  6357. </p>
  6358. </dd>
  6359. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  6360. <dd><p>BT601 525
  6361. </p>
  6362. </dd>
  6363. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  6364. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  6365. <dd><p>DCI P3
  6366. </p>
  6367. </dd>
  6368. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  6369. <dd><p>P3 D65
  6370. </p>
  6371. </dd>
  6372. </dl>
  6373. </dd>
  6374. <dt>&lsquo;<samp>transfer_characteristics</samp>&rsquo;</dt>
  6375. <dd><p>Set the color transfer.
  6376. Available values are:
  6377. </p>
  6378. <dl compact="compact">
  6379. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6380. <dd><p>Keep the same transfer characteristics property (default).
  6381. </p>
  6382. </dd>
  6383. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6384. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6385. <dd><p>BT 601, BT 709, BT 2020
  6386. </p></dd>
  6387. </dl>
  6388. </dd>
  6389. <dt>&lsquo;<samp>matrix_coefficients</samp>&rsquo;</dt>
  6390. <dd><p>Set the matrix coefficient.
  6391. Available values are:
  6392. </p>
  6393. <dl compact="compact">
  6394. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  6395. <dd><p>Keep the same colorspace property (default).
  6396. </p>
  6397. </dd>
  6398. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6399. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6400. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  6401. <dd><p>BT 601
  6402. </p>
  6403. </dd>
  6404. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  6405. </dl>
  6406. </dd>
  6407. </dl>
  6408. <p>Set Rec709 colorspace for each frame of the file
  6409. </p><div class="example">
  6410. <pre class="example">ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov
  6411. </pre></div>
  6412. <a name="remove_005fextra"></a>
  6413. <h2 class="section"><a href="ffprobe-all.html#toc-remove_005fextra">13.25 remove_extra</a></h2>
  6414. <p>Remove extradata from packets.
  6415. </p>
  6416. <p>It accepts the following parameter:
  6417. </p><dl compact="compact">
  6418. <dt>&lsquo;<samp>freq</samp>&rsquo;</dt>
  6419. <dd><p>Set which frame types to remove extradata from.
  6420. </p>
  6421. <dl compact="compact">
  6422. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  6423. <dd><p>Remove extradata from non-keyframes only.
  6424. </p>
  6425. </dd>
  6426. <dt>&lsquo;<samp>keyframe</samp>&rsquo;</dt>
  6427. <dd><p>Remove extradata from keyframes only.
  6428. </p>
  6429. </dd>
  6430. <dt>&lsquo;<samp>e, all</samp>&rsquo;</dt>
  6431. <dd><p>Remove extradata from all frames.
  6432. </p>
  6433. </dd>
  6434. </dl>
  6435. </dd>
  6436. </dl>
  6437. <p><a name="text2movsub"></a>
  6438. </p><a name="text2movsub-1"></a>
  6439. <h2 class="section"><a href="ffprobe-all.html#toc-text2movsub-1">13.26 text2movsub</a></h2>
  6440. <p>Convert text subtitles to MOV subtitles (as used by the <code>mov_text</code>
  6441. codec) with metadata headers.
  6442. </p>
  6443. <p>See also the <a href="#mov2textsub">mov2textsub</a> filter.
  6444. </p>
  6445. <a name="trace_005fheaders"></a>
  6446. <h2 class="section"><a href="ffprobe-all.html#toc-trace_005fheaders">13.27 trace_headers</a></h2>
  6447. <p>Log trace output containing all syntax elements in the coded stream
  6448. headers (everything above the level of individual coded blocks).
  6449. This can be useful for debugging low-level stream issues.
  6450. </p>
  6451. <p>Supports AV1, H.264, H.265, (M)JPEG, MPEG-2 and VP9, but depending
  6452. on the build only a subset of these may be available.
  6453. </p>
  6454. <a name="truehd_005fcore"></a>
  6455. <h2 class="section"><a href="ffprobe-all.html#toc-truehd_005fcore">13.28 truehd_core</a></h2>
  6456. <p>Extract the core from a TrueHD stream, dropping ATMOS data.
  6457. </p>
  6458. <a name="vp9_005fmetadata"></a>
  6459. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fmetadata">13.29 vp9_metadata</a></h2>
  6460. <p>Modify metadata embedded in a VP9 stream.
  6461. </p>
  6462. <dl compact="compact">
  6463. <dt>&lsquo;<samp>color_space</samp>&rsquo;</dt>
  6464. <dd><p>Set the color space value in the frame header. Note that any frame
  6465. set to RGB will be implicitly set to PC range and that RGB is
  6466. incompatible with profiles 0 and 2.
  6467. </p><dl compact="compact">
  6468. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  6469. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  6470. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  6471. <dt>&lsquo;<samp>smpte170</samp>&rsquo;</dt>
  6472. <dt>&lsquo;<samp>smpte240</samp>&rsquo;</dt>
  6473. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  6474. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  6475. </dl>
  6476. </dd>
  6477. <dt>&lsquo;<samp>color_range</samp>&rsquo;</dt>
  6478. <dd><p>Set the color range value in the frame header. Note that any value
  6479. imposed by the color space will take precedence over this value.
  6480. </p><dl compact="compact">
  6481. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  6482. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  6483. </dl>
  6484. </dd>
  6485. </dl>
  6486. <a name="vp9_005fsuperframe"></a>
  6487. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fsuperframe">13.30 vp9_superframe</a></h2>
  6488. <p>Merge VP9 invisible (alt-ref) frames back into VP9 superframes. This
  6489. fixes merging of split/segmented VP9 streams where the alt-ref frame
  6490. was split from its visible counterpart.
  6491. </p>
  6492. <a name="vp9_005fsuperframe_005fsplit"></a>
  6493. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fsuperframe_005fsplit">13.31 vp9_superframe_split</a></h2>
  6494. <p>Split VP9 superframes into single frames.
  6495. </p>
  6496. <a name="vp9_005fraw_005freorder"></a>
  6497. <h2 class="section"><a href="ffprobe-all.html#toc-vp9_005fraw_005freorder">13.32 vp9_raw_reorder</a></h2>
  6498. <p>Given a VP9 stream with correct timestamps but possibly out of order,
  6499. insert additional show-existing-frame packets to correct the ordering.
  6500. </p>
  6501. <a name="Format-Options"></a>
  6502. <h1 class="chapter"><a href="ffprobe-all.html#toc-Format-Options">14 Format Options</a></h1>
  6503. <p>The libavformat library provides some generic global options, which
  6504. can be set on all the muxers and demuxers. In addition each muxer or
  6505. demuxer may support so-called private options, which are specific for
  6506. that component.
  6507. </p>
  6508. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  6509. FFmpeg tools, or by setting the value explicitly in the
  6510. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  6511. for programmatic use.
  6512. </p>
  6513. <p>The list of supported options follows:
  6514. </p>
  6515. <dl compact="compact">
  6516. <dt>&lsquo;<samp>avioflags <var>flags</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6517. <dd><p>Possible values:
  6518. </p><dl compact="compact">
  6519. <dt>&lsquo;<samp>direct</samp>&rsquo;</dt>
  6520. <dd><p>Reduce buffering.
  6521. </p></dd>
  6522. </dl>
  6523. </dd>
  6524. <dt>&lsquo;<samp>probesize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6525. <dd><p>Set probing size in bytes, i.e. the size of the data to analyze to get
  6526. stream information. A higher value will enable detecting more
  6527. information in case it is dispersed into the stream, but will increase
  6528. latency. Must be an integer not lesser than 32. It is 5000000 by default.
  6529. </p>
  6530. </dd>
  6531. <dt>&lsquo;<samp>max_probe_packets <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6532. <dd><p>Set the maximum number of buffered packets when probing a codec.
  6533. Default is 2500 packets.
  6534. </p>
  6535. </dd>
  6536. <dt>&lsquo;<samp>packetsize <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6537. <dd><p>Set packet size.
  6538. </p>
  6539. </dd>
  6540. <dt>&lsquo;<samp>fflags <var>flags</var></samp>&rsquo;</dt>
  6541. <dd><p>Set format flags. Some are implemented for a limited number of formats.
  6542. </p>
  6543. <p>Possible values for input files:
  6544. </p><dl compact="compact">
  6545. <dt>&lsquo;<samp>discardcorrupt</samp>&rsquo;</dt>
  6546. <dd><p>Discard corrupted packets.
  6547. </p></dd>
  6548. <dt>&lsquo;<samp>fastseek</samp>&rsquo;</dt>
  6549. <dd><p>Enable fast, but inaccurate seeks for some formats.
  6550. </p></dd>
  6551. <dt>&lsquo;<samp>genpts</samp>&rsquo;</dt>
  6552. <dd><p>Generate missing PTS if DTS is present.
  6553. </p></dd>
  6554. <dt>&lsquo;<samp>igndts</samp>&rsquo;</dt>
  6555. <dd><p>Ignore DTS if PTS is set. Inert when nofillin is set.
  6556. </p></dd>
  6557. <dt>&lsquo;<samp>ignidx</samp>&rsquo;</dt>
  6558. <dd><p>Ignore index.
  6559. </p></dd>
  6560. <dt>&lsquo;<samp>keepside (<em>deprecated</em>,<em>inert</em>)</samp>&rsquo;</dt>
  6561. <dt>&lsquo;<samp>nobuffer</samp>&rsquo;</dt>
  6562. <dd><p>Reduce the latency introduced by buffering during initial input streams analysis.
  6563. </p></dd>
  6564. <dt>&lsquo;<samp>nofillin</samp>&rsquo;</dt>
  6565. <dd><p>Do not fill in missing values in packet fields that can be exactly calculated.
  6566. </p></dd>
  6567. <dt>&lsquo;<samp>noparse</samp>&rsquo;</dt>
  6568. <dd><p>Disable AVParsers, this needs <code>+nofillin</code> too.
  6569. </p></dd>
  6570. <dt>&lsquo;<samp>sortdts</samp>&rsquo;</dt>
  6571. <dd><p>Try to interleave output packets by DTS. At present, available only for AVIs with an index.
  6572. </p></dd>
  6573. </dl>
  6574. <p>Possible values for output files:
  6575. </p><dl compact="compact">
  6576. <dt>&lsquo;<samp>autobsf</samp>&rsquo;</dt>
  6577. <dd><p>Automatically apply bitstream filters as required by the output format. Enabled by default.
  6578. </p></dd>
  6579. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  6580. <dd><p>Only write platform-, build- and time-independent data.
  6581. This ensures that file and data checksums are reproducible and match between
  6582. platforms. Its primary use is for regression testing.
  6583. </p></dd>
  6584. <dt>&lsquo;<samp>flush_packets</samp>&rsquo;</dt>
  6585. <dd><p>Write out packets immediately.
  6586. </p></dd>
  6587. <dt>&lsquo;<samp>latm (<em>deprecated</em>,<em>inert</em>)</samp>&rsquo;</dt>
  6588. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  6589. <dd><p>Stop muxing at the end of the shortest stream.
  6590. It may be needed to increase max_interleave_delta to avoid flushing the longer
  6591. streams before EOF.
  6592. </p></dd>
  6593. </dl>
  6594. </dd>
  6595. <dt>&lsquo;<samp>seek2any <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6596. <dd><p>Allow seeking to non-keyframes on demuxer level when supported if set to 1.
  6597. Default is 0.
  6598. </p>
  6599. </dd>
  6600. <dt>&lsquo;<samp>analyzeduration <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6601. <dd><p>Specify how many microseconds are analyzed to probe the input. A
  6602. higher value will enable detecting more accurate information, but will
  6603. increase latency. It defaults to 5,000,000 microseconds = 5 seconds.
  6604. </p>
  6605. </dd>
  6606. <dt>&lsquo;<samp>cryptokey <var>hexadecimal string</var> (<em>input</em>)</samp>&rsquo;</dt>
  6607. <dd><p>Set decryption key.
  6608. </p>
  6609. </dd>
  6610. <dt>&lsquo;<samp>indexmem <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6611. <dd><p>Set max memory used for timestamp index (per stream).
  6612. </p>
  6613. </dd>
  6614. <dt>&lsquo;<samp>rtbufsize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6615. <dd><p>Set max memory used for buffering real-time frames.
  6616. </p>
  6617. </dd>
  6618. <dt>&lsquo;<samp>fdebug <var>flags</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6619. <dd><p>Print specific debug info.
  6620. </p>
  6621. <p>Possible values:
  6622. </p><dl compact="compact">
  6623. <dt>&lsquo;<samp>ts</samp>&rsquo;</dt>
  6624. </dl>
  6625. </dd>
  6626. <dt>&lsquo;<samp>max_delay <var>integer</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6627. <dd><p>Set maximum muxing or demuxing delay in microseconds.
  6628. </p>
  6629. </dd>
  6630. <dt>&lsquo;<samp>fpsprobesize <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6631. <dd><p>Set number of frames used to probe fps.
  6632. </p>
  6633. </dd>
  6634. <dt>&lsquo;<samp>audio_preload <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6635. <dd><p>Set microseconds by which audio packets should be interleaved earlier.
  6636. </p>
  6637. </dd>
  6638. <dt>&lsquo;<samp>chunk_duration <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6639. <dd><p>Set microseconds for each chunk.
  6640. </p>
  6641. </dd>
  6642. <dt>&lsquo;<samp>chunk_size <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6643. <dd><p>Set size in bytes for each chunk.
  6644. </p>
  6645. </dd>
  6646. <dt>&lsquo;<samp>err_detect, f_err_detect <var>flags</var> (<em>input</em>)</samp>&rsquo;</dt>
  6647. <dd><p>Set error detection flags. <code>f_err_detect</code> is deprecated and
  6648. should be used only via the <code>ffmpeg</code> tool.
  6649. </p>
  6650. <p>Possible values:
  6651. </p><dl compact="compact">
  6652. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  6653. <dd><p>Verify embedded CRCs.
  6654. </p></dd>
  6655. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  6656. <dd><p>Detect bitstream specification deviations.
  6657. </p></dd>
  6658. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  6659. <dd><p>Detect improper bitstream length.
  6660. </p></dd>
  6661. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  6662. <dd><p>Abort decoding on minor error detection.
  6663. </p></dd>
  6664. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  6665. <dd><p>Consider things that violate the spec and have not been seen in the
  6666. wild as errors.
  6667. </p></dd>
  6668. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  6669. <dd><p>Consider all spec non compliancies as errors.
  6670. </p></dd>
  6671. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  6672. <dd><p>Consider things that a sane encoder should not do as an error.
  6673. </p></dd>
  6674. </dl>
  6675. </dd>
  6676. <dt>&lsquo;<samp>max_interleave_delta <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6677. <dd><p>Set maximum buffering duration for interleaving. The duration is
  6678. expressed in microseconds, and defaults to 10000000 (10 seconds).
  6679. </p>
  6680. <p>To ensure all the streams are interleaved correctly, libavformat will
  6681. wait until it has at least one packet for each stream before actually
  6682. writing any packets to the output file. When some streams are
  6683. &quot;sparse&quot; (i.e. there are large gaps between successive packets), this
  6684. can result in excessive buffering.
  6685. </p>
  6686. <p>This field specifies the maximum difference between the timestamps of the
  6687. first and the last packet in the muxing queue, above which libavformat
  6688. will output a packet regardless of whether it has queued a packet for all
  6689. the streams.
  6690. </p>
  6691. <p>If set to 0, libavformat will continue buffering packets until it has
  6692. a packet for each stream, regardless of the maximum timestamp
  6693. difference between the buffered packets.
  6694. </p>
  6695. </dd>
  6696. <dt>&lsquo;<samp>use_wallclock_as_timestamps <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6697. <dd><p>Use wallclock as timestamps if set to 1. Default is 0.
  6698. </p>
  6699. </dd>
  6700. <dt>&lsquo;<samp>avoid_negative_ts <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6701. <dd>
  6702. <p>Possible values:
  6703. </p><dl compact="compact">
  6704. <dt>&lsquo;<samp>make_non_negative</samp>&rsquo;</dt>
  6705. <dd><p>Shift timestamps to make them non-negative.
  6706. Also note that this affects only leading negative timestamps, and not
  6707. non-monotonic negative timestamps.
  6708. </p></dd>
  6709. <dt>&lsquo;<samp>make_zero</samp>&rsquo;</dt>
  6710. <dd><p>Shift timestamps so that the first timestamp is 0.
  6711. </p></dd>
  6712. <dt>&lsquo;<samp>auto (default)</samp>&rsquo;</dt>
  6713. <dd><p>Enables shifting when required by the target format.
  6714. </p></dd>
  6715. <dt>&lsquo;<samp>disabled</samp>&rsquo;</dt>
  6716. <dd><p>Disables shifting of timestamp.
  6717. </p></dd>
  6718. </dl>
  6719. <p>When shifting is enabled, all output timestamps are shifted by the
  6720. same amount. Audio, video, and subtitles desynching and relative
  6721. timestamp differences are preserved compared to how they would have
  6722. been without shifting.
  6723. </p>
  6724. </dd>
  6725. <dt>&lsquo;<samp>skip_initial_bytes <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6726. <dd><p>Set number of bytes to skip before reading header and frames if set to 1.
  6727. Default is 0.
  6728. </p>
  6729. </dd>
  6730. <dt>&lsquo;<samp>correct_ts_overflow <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6731. <dd><p>Correct single timestamp overflows if set to 1. Default is 1.
  6732. </p>
  6733. </dd>
  6734. <dt>&lsquo;<samp>flush_packets <var>integer</var> (<em>output</em>)</samp>&rsquo;</dt>
  6735. <dd><p>Flush the underlying I/O stream after each packet. Default is -1 (auto), which
  6736. means that the underlying protocol will decide, 1 enables it, and has the
  6737. effect of reducing the latency, 0 disables it and may increase IO throughput in
  6738. some cases.
  6739. </p>
  6740. </dd>
  6741. <dt>&lsquo;<samp>output_ts_offset <var>offset</var> (<em>output</em>)</samp>&rsquo;</dt>
  6742. <dd><p>Set the output time offset.
  6743. </p>
  6744. <p><var>offset</var> must be a time duration specification,
  6745. see <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  6746. </p>
  6747. <p>The offset is added by the muxer to the output timestamps.
  6748. </p>
  6749. <p>Specifying a positive offset means that the corresponding streams are
  6750. delayed bt the time duration specified in <var>offset</var>. Default value
  6751. is <code>0</code> (meaning that no offset is applied).
  6752. </p>
  6753. </dd>
  6754. <dt>&lsquo;<samp>format_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  6755. <dd><p>&quot;,&quot; separated list of allowed demuxers. By default all are allowed.
  6756. </p>
  6757. </dd>
  6758. <dt>&lsquo;<samp>dump_separator <var>string</var> (<em>input</em>)</samp>&rsquo;</dt>
  6759. <dd><p>Separator used to separate the fields printed on the command line about the
  6760. Stream parameters.
  6761. For example, to separate the fields with newlines and indentation:
  6762. </p><div class="example">
  6763. <pre class="example">ffprobe -dump_separator &quot;
  6764. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  6765. </pre></div>
  6766. </dd>
  6767. <dt>&lsquo;<samp>max_streams <var>integer</var> (<em>input</em>)</samp>&rsquo;</dt>
  6768. <dd><p>Specifies the maximum number of streams. This can be used to reject files that
  6769. would require too many resources due to a large number of streams.
  6770. </p>
  6771. </dd>
  6772. <dt>&lsquo;<samp>skip_estimate_duration_from_pts <var>bool</var> (<em>input</em>)</samp>&rsquo;</dt>
  6773. <dd><p>Skip estimation of input duration when calculated using PTS.
  6774. At present, applicable for MPEG-PS and MPEG-TS.
  6775. </p>
  6776. </dd>
  6777. <dt>&lsquo;<samp>strict, f_strict <var>integer</var> (<em>input/output</em>)</samp>&rsquo;</dt>
  6778. <dd><p>Specify how strictly to follow the standards. <code>f_strict</code> is deprecated and
  6779. should be used only via the <code>ffmpeg</code> tool.
  6780. </p>
  6781. <p>Possible values:
  6782. </p><dl compact="compact">
  6783. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  6784. <dd><p>strictly conform to an older more strict version of the spec or reference software
  6785. </p></dd>
  6786. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  6787. <dd><p>strictly conform to all the things in the spec no matter what consequences
  6788. </p></dd>
  6789. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  6790. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  6791. <dd><p>allow unofficial extensions
  6792. </p></dd>
  6793. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  6794. <dd><p>allow non standardized experimental things, experimental
  6795. (unfinished/work in progress/not well tested) decoders and encoders.
  6796. Note: experimental decoders can pose a security risk, do not use this for
  6797. decoding untrusted input.
  6798. </p></dd>
  6799. </dl>
  6800. </dd>
  6801. </dl>
  6802. <p><a name="Format-stream-specifiers"></a>
  6803. </p><a name="Format-stream-specifiers-1"></a>
  6804. <h2 class="section"><a href="ffprobe-all.html#toc-Format-stream-specifiers-1">14.1 Format stream specifiers</a></h2>
  6805. <p>Format stream specifiers allow selection of one or more streams that
  6806. match specific properties.
  6807. </p>
  6808. <p>The exact semantics of stream specifiers is defined by the
  6809. <code>avformat_match_stream_specifier()</code> function declared in the
  6810. &lsquo;<tt>libavformat/avformat.h</tt>&rsquo; header and documented in the
  6811. <a href="ffmpeg.html#Stream-specifiers">(ffmpeg)Stream specifiers section in the ffmpeg(1) manual</a>.
  6812. </p>
  6813. <a name="Demuxers"></a>
  6814. <h1 class="chapter"><a href="ffprobe-all.html#toc-Demuxers">15 Demuxers</a></h1>
  6815. <p>Demuxers are configured elements in FFmpeg that can read the
  6816. multimedia streams from a particular type of file.
  6817. </p>
  6818. <p>When you configure your FFmpeg build, all the supported demuxers
  6819. are enabled by default. You can list all available ones using the
  6820. configure option <code>--list-demuxers</code>.
  6821. </p>
  6822. <p>You can disable all the demuxers using the configure option
  6823. <code>--disable-demuxers</code>, and selectively enable a single demuxer with
  6824. the option <code>--enable-demuxer=<var>DEMUXER</var></code>, or disable it
  6825. with the option <code>--disable-demuxer=<var>DEMUXER</var></code>.
  6826. </p>
  6827. <p>The option <code>-demuxers</code> of the ff* tools will display the list of
  6828. enabled demuxers. Use <code>-formats</code> to view a combined list of
  6829. enabled demuxers and muxers.
  6830. </p>
  6831. <p>The description of some of the currently available demuxers follows.
  6832. </p>
  6833. <a name="aa"></a>
  6834. <h2 class="section"><a href="ffprobe-all.html#toc-aa">15.1 aa</a></h2>
  6835. <p>Audible Format 2, 3, and 4 demuxer.
  6836. </p>
  6837. <p>This demuxer is used to demux Audible Format 2, 3, and 4 (.aa) files.
  6838. </p>
  6839. <a name="apng"></a>
  6840. <h2 class="section"><a href="ffprobe-all.html#toc-apng">15.2 apng</a></h2>
  6841. <p>Animated Portable Network Graphics demuxer.
  6842. </p>
  6843. <p>This demuxer is used to demux APNG files.
  6844. All headers, but the PNG signature, up to (but not including) the first
  6845. fcTL chunk are transmitted as extradata.
  6846. Frames are then split as being all the chunks between two fcTL ones, or
  6847. between the last fcTL and IEND chunks.
  6848. </p>
  6849. <dl compact="compact">
  6850. <dt>&lsquo;<samp>-ignore_loop <var>bool</var></samp>&rsquo;</dt>
  6851. <dd><p>Ignore the loop variable in the file if set.
  6852. </p></dd>
  6853. <dt>&lsquo;<samp>-max_fps <var>int</var></samp>&rsquo;</dt>
  6854. <dd><p>Maximum framerate in frames per second (0 for no limit).
  6855. </p></dd>
  6856. <dt>&lsquo;<samp>-default_fps <var>int</var></samp>&rsquo;</dt>
  6857. <dd><p>Default framerate in frames per second when none is specified in the file
  6858. (0 meaning as fast as possible).
  6859. </p></dd>
  6860. </dl>
  6861. <a name="asf"></a>
  6862. <h2 class="section"><a href="ffprobe-all.html#toc-asf">15.3 asf</a></h2>
  6863. <p>Advanced Systems Format demuxer.
  6864. </p>
  6865. <p>This demuxer is used to demux ASF files and MMS network streams.
  6866. </p>
  6867. <dl compact="compact">
  6868. <dt>&lsquo;<samp>-no_resync_search <var>bool</var></samp>&rsquo;</dt>
  6869. <dd><p>Do not try to resynchronize by looking for a certain optional start code.
  6870. </p></dd>
  6871. </dl>
  6872. <p><a name="concat"></a>
  6873. </p><a name="concat-1"></a>
  6874. <h2 class="section"><a href="ffprobe-all.html#toc-concat-1">15.4 concat</a></h2>
  6875. <p>Virtual concatenation script demuxer.
  6876. </p>
  6877. <p>This demuxer reads a list of files and other directives from a text file and
  6878. demuxes them one after the other, as if all their packets had been muxed
  6879. together.
  6880. </p>
  6881. <p>The timestamps in the files are adjusted so that the first file starts at 0
  6882. and each next file starts where the previous one finishes. Note that it is
  6883. done globally and may cause gaps if all streams do not have exactly the same
  6884. length.
  6885. </p>
  6886. <p>All files must have the same streams (same codecs, same time base, etc.).
  6887. </p>
  6888. <p>The duration of each file is used to adjust the timestamps of the next file:
  6889. if the duration is incorrect (because it was computed using the bit-rate or
  6890. because the file is truncated, for example), it can cause artifacts. The
  6891. <code>duration</code> directive can be used to override the duration stored in
  6892. each file.
  6893. </p>
  6894. <a name="Syntax"></a>
  6895. <h3 class="subsection"><a href="ffprobe-all.html#toc-Syntax">15.4.1 Syntax</a></h3>
  6896. <p>The script is a text file in extended-ASCII, with one directive per line.
  6897. Empty lines, leading spaces and lines starting with &rsquo;#&rsquo; are ignored. The
  6898. following directive is recognized:
  6899. </p>
  6900. <dl compact="compact">
  6901. <dt>&lsquo;<samp><code>file <var>path</var></code></samp>&rsquo;</dt>
  6902. <dd><p>Path to a file to read; special characters and spaces must be escaped with
  6903. backslash or single quotes.
  6904. </p>
  6905. <p>All subsequent file-related directives apply to that file.
  6906. </p>
  6907. </dd>
  6908. <dt>&lsquo;<samp><code>ffconcat version 1.0</code></samp>&rsquo;</dt>
  6909. <dd><p>Identify the script type and version. It also sets the &lsquo;<samp>safe</samp>&rsquo; option
  6910. to 1 if it was -1.
  6911. </p>
  6912. <p>To make FFmpeg recognize the format automatically, this directive must
  6913. appear exactly as is (no extra space or byte-order-mark) on the very first
  6914. line of the script.
  6915. </p>
  6916. </dd>
  6917. <dt>&lsquo;<samp><code>duration <var>dur</var></code></samp>&rsquo;</dt>
  6918. <dd><p>Duration of the file. This information can be specified from the file;
  6919. specifying it here may be more efficient or help if the information from the
  6920. file is not available or accurate.
  6921. </p>
  6922. <p>If the duration is set for all files, then it is possible to seek in the
  6923. whole concatenated video.
  6924. </p>
  6925. </dd>
  6926. <dt>&lsquo;<samp><code>inpoint <var>timestamp</var></code></samp>&rsquo;</dt>
  6927. <dd><p>In point of the file. When the demuxer opens the file it instantly seeks to the
  6928. specified timestamp. Seeking is done so that all streams can be presented
  6929. successfully at In point.
  6930. </p>
  6931. <p>This directive works best with intra frame codecs, because for non-intra frame
  6932. ones you will usually get extra packets before the actual In point and the
  6933. decoded content will most likely contain frames before In point too.
  6934. </p>
  6935. <p>For each file, packets before the file In point will have timestamps less than
  6936. the calculated start timestamp of the file (negative in case of the first
  6937. file), and the duration of the files (if not specified by the <code>duration</code>
  6938. directive) will be reduced based on their specified In point.
  6939. </p>
  6940. <p>Because of potential packets before the specified In point, packet timestamps
  6941. may overlap between two concatenated files.
  6942. </p>
  6943. </dd>
  6944. <dt>&lsquo;<samp><code>outpoint <var>timestamp</var></code></samp>&rsquo;</dt>
  6945. <dd><p>Out point of the file. When the demuxer reaches the specified decoding
  6946. timestamp in any of the streams, it handles it as an end of file condition and
  6947. skips the current and all the remaining packets from all streams.
  6948. </p>
  6949. <p>Out point is exclusive, which means that the demuxer will not output packets
  6950. with a decoding timestamp greater or equal to Out point.
  6951. </p>
  6952. <p>This directive works best with intra frame codecs and formats where all streams
  6953. are tightly interleaved. For non-intra frame codecs you will usually get
  6954. additional packets with presentation timestamp after Out point therefore the
  6955. decoded content will most likely contain frames after Out point too. If your
  6956. streams are not tightly interleaved you may not get all the packets from all
  6957. streams before Out point and you may only will be able to decode the earliest
  6958. stream until Out point.
  6959. </p>
  6960. <p>The duration of the files (if not specified by the <code>duration</code>
  6961. directive) will be reduced based on their specified Out point.
  6962. </p>
  6963. </dd>
  6964. <dt>&lsquo;<samp><code>file_packet_metadata <var>key=value</var></code></samp>&rsquo;</dt>
  6965. <dd><p>Metadata of the packets of the file. The specified metadata will be set for
  6966. each file packet. You can specify this directive multiple times to add multiple
  6967. metadata entries.
  6968. </p>
  6969. </dd>
  6970. <dt>&lsquo;<samp><code>stream</code></samp>&rsquo;</dt>
  6971. <dd><p>Introduce a stream in the virtual file.
  6972. All subsequent stream-related directives apply to the last introduced
  6973. stream.
  6974. Some streams properties must be set in order to allow identifying the
  6975. matching streams in the subfiles.
  6976. If no streams are defined in the script, the streams from the first file are
  6977. copied.
  6978. </p>
  6979. </dd>
  6980. <dt>&lsquo;<samp><code>exact_stream_id <var>id</var></code></samp>&rsquo;</dt>
  6981. <dd><p>Set the id of the stream.
  6982. If this directive is given, the string with the corresponding id in the
  6983. subfiles will be used.
  6984. This is especially useful for MPEG-PS (VOB) files, where the order of the
  6985. streams is not reliable.
  6986. </p>
  6987. </dd>
  6988. </dl>
  6989. <a name="Options-16"></a>
  6990. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-16">15.4.2 Options</a></h3>
  6991. <p>This demuxer accepts the following option:
  6992. </p>
  6993. <dl compact="compact">
  6994. <dt>&lsquo;<samp>safe</samp>&rsquo;</dt>
  6995. <dd><p>If set to 1, reject unsafe file paths. A file path is considered safe if it
  6996. does not contain a protocol specification and is relative and all components
  6997. only contain characters from the portable character set (letters, digits,
  6998. period, underscore and hyphen) and have no period at the beginning of a
  6999. component.
  7000. </p>
  7001. <p>If set to 0, any file name is accepted.
  7002. </p>
  7003. <p>The default is 1.
  7004. </p>
  7005. <p>-1 is equivalent to 1 if the format was automatically
  7006. probed and 0 otherwise.
  7007. </p>
  7008. </dd>
  7009. <dt>&lsquo;<samp>auto_convert</samp>&rsquo;</dt>
  7010. <dd><p>If set to 1, try to perform automatic conversions on packet data to make the
  7011. streams concatenable.
  7012. The default is 1.
  7013. </p>
  7014. <p>Currently, the only conversion is adding the h264_mp4toannexb bitstream
  7015. filter to H.264 streams in MP4 format. This is necessary in particular if
  7016. there are resolution changes.
  7017. </p>
  7018. </dd>
  7019. <dt>&lsquo;<samp>segment_time_metadata</samp>&rsquo;</dt>
  7020. <dd><p>If set to 1, every packet will contain the <var>lavf.concat.start_time</var> and the
  7021. <var>lavf.concat.duration</var> packet metadata values which are the start_time and
  7022. the duration of the respective file segments in the concatenated output
  7023. expressed in microseconds. The duration metadata is only set if it is known
  7024. based on the concat file.
  7025. The default is 0.
  7026. </p>
  7027. </dd>
  7028. </dl>
  7029. <a name="Examples-40"></a>
  7030. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-40">15.4.3 Examples</a></h3>
  7031. <ul>
  7032. <li>
  7033. Use absolute filenames and include some comments:
  7034. <div class="example">
  7035. <pre class="example"># my first filename
  7036. file /mnt/share/file-1.wav
  7037. # my second filename including whitespace
  7038. file '/mnt/share/file 2.wav'
  7039. # my third filename including whitespace plus single quote
  7040. file '/mnt/share/file 3'\''.wav'
  7041. </pre></div>
  7042. </li><li>
  7043. Allow for input format auto-probing, use safe filenames and set the duration of
  7044. the first file:
  7045. <div class="example">
  7046. <pre class="example">ffconcat version 1.0
  7047. file file-1.wav
  7048. duration 20.0
  7049. file subdir/file-2.wav
  7050. </pre></div>
  7051. </li></ul>
  7052. <a name="dash"></a>
  7053. <h2 class="section"><a href="ffprobe-all.html#toc-dash">15.5 dash</a></h2>
  7054. <p>Dynamic Adaptive Streaming over HTTP demuxer.
  7055. </p>
  7056. <p>This demuxer presents all AVStreams found in the manifest.
  7057. By setting the discard flags on AVStreams the caller can decide
  7058. which streams to actually receive.
  7059. Each stream mirrors the <code>id</code> and <code>bandwidth</code> properties from the
  7060. <code>&lt;Representation&gt;</code> as metadata keys named &quot;id&quot; and &quot;variant_bitrate&quot; respectively.
  7061. </p>
  7062. <a name="flv_002c-live_005fflv"></a>
  7063. <h2 class="section"><a href="ffprobe-all.html#toc-flv_002c-live_005fflv">15.6 flv, live_flv</a></h2>
  7064. <p>Adobe Flash Video Format demuxer.
  7065. </p>
  7066. <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.
  7067. </p>
  7068. <div class="example">
  7069. <pre class="example">ffmpeg -f flv -i myfile.flv ...
  7070. ffmpeg -f live_flv -i rtmp://&lt;any.server&gt;/anything/key ....
  7071. </pre></div>
  7072. <dl compact="compact">
  7073. <dt>&lsquo;<samp>-flv_metadata <var>bool</var></samp>&rsquo;</dt>
  7074. <dd><p>Allocate the streams according to the onMetaData array content.
  7075. </p>
  7076. </dd>
  7077. <dt>&lsquo;<samp>-flv_ignore_prevtag <var>bool</var></samp>&rsquo;</dt>
  7078. <dd><p>Ignore the size of previous tag value.
  7079. </p>
  7080. </dd>
  7081. <dt>&lsquo;<samp>-flv_full_metadata <var>bool</var></samp>&rsquo;</dt>
  7082. <dd><p>Output all context of the onMetadata.
  7083. </p></dd>
  7084. </dl>
  7085. <a name="gif"></a>
  7086. <h2 class="section"><a href="ffprobe-all.html#toc-gif">15.7 gif</a></h2>
  7087. <p>Animated GIF demuxer.
  7088. </p>
  7089. <p>It accepts the following options:
  7090. </p>
  7091. <dl compact="compact">
  7092. <dt>&lsquo;<samp>min_delay</samp>&rsquo;</dt>
  7093. <dd><p>Set the minimum valid delay between frames in hundredths of seconds.
  7094. Range is 0 to 6000. Default value is 2.
  7095. </p>
  7096. </dd>
  7097. <dt>&lsquo;<samp>max_gif_delay</samp>&rsquo;</dt>
  7098. <dd><p>Set the maximum valid delay between frames in hundredth of seconds.
  7099. Range is 0 to 65535. Default value is 65535 (nearly eleven minutes),
  7100. the maximum value allowed by the specification.
  7101. </p>
  7102. </dd>
  7103. <dt>&lsquo;<samp>default_delay</samp>&rsquo;</dt>
  7104. <dd><p>Set the default delay between frames in hundredths of seconds.
  7105. Range is 0 to 6000. Default value is 10.
  7106. </p>
  7107. </dd>
  7108. <dt>&lsquo;<samp>ignore_loop</samp>&rsquo;</dt>
  7109. <dd><p>GIF files can contain information to loop a certain number of times (or
  7110. infinitely). If &lsquo;<samp>ignore_loop</samp>&rsquo; is set to 1, then the loop setting
  7111. from the input will be ignored and looping will not occur. If set to 0,
  7112. then looping will occur and will cycle the number of times according to
  7113. the GIF. Default value is 1.
  7114. </p></dd>
  7115. </dl>
  7116. <p>For example, with the overlay filter, place an infinitely looping GIF
  7117. over another video:
  7118. </p><div class="example">
  7119. <pre class="example">ffmpeg -i input.mp4 -ignore_loop 0 -i input.gif -filter_complex overlay=shortest=1 out.mkv
  7120. </pre></div>
  7121. <p>Note that in the above example the shortest option for overlay filter is
  7122. used to end the output video at the length of the shortest input file,
  7123. which in this case is &lsquo;<tt>input.mp4</tt>&rsquo; as the GIF in this example loops
  7124. infinitely.
  7125. </p>
  7126. <a name="hls"></a>
  7127. <h2 class="section"><a href="ffprobe-all.html#toc-hls">15.8 hls</a></h2>
  7128. <p>HLS demuxer
  7129. </p>
  7130. <p>Apple HTTP Live Streaming demuxer.
  7131. </p>
  7132. <p>This demuxer presents all AVStreams from all variant streams.
  7133. The id field is set to the bitrate variant index number. By setting
  7134. the discard flags on AVStreams (by pressing &rsquo;a&rsquo; or &rsquo;v&rsquo; in ffplay),
  7135. the caller can decide which variant streams to actually receive.
  7136. The total bitrate of the variant that the stream belongs to is
  7137. available in a metadata key named &quot;variant_bitrate&quot;.
  7138. </p>
  7139. <p>It accepts the following options:
  7140. </p>
  7141. <dl compact="compact">
  7142. <dt>&lsquo;<samp>live_start_index</samp>&rsquo;</dt>
  7143. <dd><p>segment index to start live streams at (negative values are from the end).
  7144. </p>
  7145. </dd>
  7146. <dt>&lsquo;<samp>allowed_extensions</samp>&rsquo;</dt>
  7147. <dd><p>&rsquo;,&rsquo; separated list of file extensions that hls is allowed to access.
  7148. </p>
  7149. </dd>
  7150. <dt>&lsquo;<samp>max_reload</samp>&rsquo;</dt>
  7151. <dd><p>Maximum number of times a insufficient list is attempted to be reloaded.
  7152. Default value is 1000.
  7153. </p>
  7154. </dd>
  7155. <dt>&lsquo;<samp>m3u8_hold_counters</samp>&rsquo;</dt>
  7156. <dd><p>The maximum number of times to load m3u8 when it refreshes without new segments.
  7157. Default value is 1000.
  7158. </p>
  7159. </dd>
  7160. <dt>&lsquo;<samp>http_persistent</samp>&rsquo;</dt>
  7161. <dd><p>Use persistent HTTP connections. Applicable only for HTTP streams.
  7162. Enabled by default.
  7163. </p>
  7164. </dd>
  7165. <dt>&lsquo;<samp>http_multiple</samp>&rsquo;</dt>
  7166. <dd><p>Use multiple HTTP connections for downloading HTTP segments.
  7167. Enabled by default for HTTP/1.1 servers.
  7168. </p>
  7169. </dd>
  7170. <dt>&lsquo;<samp>http_seekable</samp>&rsquo;</dt>
  7171. <dd><p>Use HTTP partial requests for downloading HTTP segments.
  7172. 0 = disable, 1 = enable, -1 = auto, Default is auto.
  7173. </p></dd>
  7174. </dl>
  7175. <a name="image2"></a>
  7176. <h2 class="section"><a href="ffprobe-all.html#toc-image2">15.9 image2</a></h2>
  7177. <p>Image file demuxer.
  7178. </p>
  7179. <p>This demuxer reads from a list of image files specified by a pattern.
  7180. The syntax and meaning of the pattern is specified by the
  7181. option <var>pattern_type</var>.
  7182. </p>
  7183. <p>The pattern may contain a suffix which is used to automatically
  7184. determine the format of the images contained in the files.
  7185. </p>
  7186. <p>The size, the pixel format, and the format of each image must be the
  7187. same for all the files in the sequence.
  7188. </p>
  7189. <p>This demuxer accepts the following options:
  7190. </p><dl compact="compact">
  7191. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  7192. <dd><p>Set the frame rate for the video stream. It defaults to 25.
  7193. </p></dd>
  7194. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  7195. <dd><p>If set to 1, loop over the input. Default value is 0.
  7196. </p></dd>
  7197. <dt>&lsquo;<samp>pattern_type</samp>&rsquo;</dt>
  7198. <dd><p>Select the pattern type used to interpret the provided filename.
  7199. </p>
  7200. <p><var>pattern_type</var> accepts one of the following values.
  7201. </p><dl compact="compact">
  7202. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  7203. <dd><p>Disable pattern matching, therefore the video will only contain the specified
  7204. image. You should use this option if you do not want to create sequences from
  7205. multiple images and your filenames may contain special pattern characters.
  7206. </p></dd>
  7207. <dt>&lsquo;<samp>sequence</samp>&rsquo;</dt>
  7208. <dd><p>Select a sequence pattern type, used to specify a sequence of files
  7209. indexed by sequential numbers.
  7210. </p>
  7211. <p>A sequence pattern may contain the string &quot;%d&quot; or &quot;%0<var>N</var>d&quot;, which
  7212. specifies the position of the characters representing a sequential
  7213. number in each filename matched by the pattern. If the form
  7214. &quot;%d0<var>N</var>d&quot; is used, the string representing the number in each
  7215. filename is 0-padded and <var>N</var> is the total number of 0-padded
  7216. digits representing the number. The literal character &rsquo;%&rsquo; can be
  7217. specified in the pattern with the string &quot;%%&quot;.
  7218. </p>
  7219. <p>If the sequence pattern contains &quot;%d&quot; or &quot;%0<var>N</var>d&quot;, the first filename of
  7220. the file list specified by the pattern must contain a number
  7221. inclusively contained between <var>start_number</var> and
  7222. <var>start_number</var>+<var>start_number_range</var>-1, and all the following
  7223. numbers must be sequential.
  7224. </p>
  7225. <p>For example the pattern &quot;img-%03d.bmp&quot; will match a sequence of
  7226. filenames of the form &lsquo;<tt>img-001.bmp</tt>&rsquo;, &lsquo;<tt>img-002.bmp</tt>&rsquo;, ...,
  7227. &lsquo;<tt>img-010.bmp</tt>&rsquo;, etc.; the pattern &quot;i%%m%%g-%d.jpg&quot; will match a
  7228. sequence of filenames of the form &lsquo;<tt>i%m%g-1.jpg</tt>&rsquo;,
  7229. &lsquo;<tt>i%m%g-2.jpg</tt>&rsquo;, ..., &lsquo;<tt>i%m%g-10.jpg</tt>&rsquo;, etc.
  7230. </p>
  7231. <p>Note that the pattern must not necessarily contain &quot;%d&quot; or
  7232. &quot;%0<var>N</var>d&quot;, for example to convert a single image file
  7233. &lsquo;<tt>img.jpeg</tt>&rsquo; you can employ the command:
  7234. </p><div class="example">
  7235. <pre class="example">ffmpeg -i img.jpeg img.png
  7236. </pre></div>
  7237. </dd>
  7238. <dt>&lsquo;<samp>glob</samp>&rsquo;</dt>
  7239. <dd><p>Select a glob wildcard pattern type.
  7240. </p>
  7241. <p>The pattern is interpreted like a <code>glob()</code> pattern. This is only
  7242. selectable if libavformat was compiled with globbing support.
  7243. </p>
  7244. </dd>
  7245. <dt>&lsquo;<samp>glob_sequence <em>(deprecated, will be removed)</em></samp>&rsquo;</dt>
  7246. <dd><p>Select a mixed glob wildcard/sequence pattern.
  7247. </p>
  7248. <p>If your version of libavformat was compiled with globbing support, and
  7249. the provided pattern contains at least one glob meta character among
  7250. <code>%*?[]{}</code> that is preceded by an unescaped &quot;%&quot;, the pattern is
  7251. interpreted like a <code>glob()</code> pattern, otherwise it is interpreted
  7252. like a sequence pattern.
  7253. </p>
  7254. <p>All glob special characters <code>%*?[]{}</code> must be prefixed
  7255. with &quot;%&quot;. To escape a literal &quot;%&quot; you shall use &quot;%%&quot;.
  7256. </p>
  7257. <p>For example the pattern <code>foo-%*.jpeg</code> will match all the
  7258. filenames prefixed by &quot;foo-&quot; and terminating with &quot;.jpeg&quot;, and
  7259. <code>foo-%?%?%?.jpeg</code> will match all the filenames prefixed with
  7260. &quot;foo-&quot;, followed by a sequence of three characters, and terminating
  7261. with &quot;.jpeg&quot;.
  7262. </p>
  7263. <p>This pattern type is deprecated in favor of <var>glob</var> and
  7264. <var>sequence</var>.
  7265. </p></dd>
  7266. </dl>
  7267. <p>Default value is <var>glob_sequence</var>.
  7268. </p></dd>
  7269. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  7270. <dd><p>Set the pixel format of the images to read. If not specified the pixel
  7271. format is guessed from the first image file in the sequence.
  7272. </p></dd>
  7273. <dt>&lsquo;<samp>start_number</samp>&rsquo;</dt>
  7274. <dd><p>Set the index of the file matched by the image file pattern to start
  7275. to read from. Default value is 0.
  7276. </p></dd>
  7277. <dt>&lsquo;<samp>start_number_range</samp>&rsquo;</dt>
  7278. <dd><p>Set the index interval range to check when looking for the first image
  7279. file in the sequence, starting from <var>start_number</var>. Default value
  7280. is 5.
  7281. </p></dd>
  7282. <dt>&lsquo;<samp>ts_from_file</samp>&rsquo;</dt>
  7283. <dd><p>If set to 1, will set frame timestamp to modification time of image file. Note
  7284. that monotonity of timestamps is not provided: images go in the same order as
  7285. without this option. Default value is 0.
  7286. If set to 2, will set frame timestamp to the modification time of the image file in
  7287. nanosecond precision.
  7288. </p></dd>
  7289. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  7290. <dd><p>Set the video size of the images to read. If not specified the video
  7291. size is guessed from the first image file in the sequence.
  7292. </p></dd>
  7293. <dt>&lsquo;<samp>export_path_metadata</samp>&rsquo;</dt>
  7294. <dd><p>If set to 1, will add two extra fields to the metadata found in input, making them
  7295. also available for other filters (see <var>drawtext</var> filter for examples). Default
  7296. value is 0. The extra fields are described below:
  7297. </p><dl compact="compact">
  7298. <dt>&lsquo;<samp>lavf.image2dec.source_path</samp>&rsquo;</dt>
  7299. <dd><p>Corresponds to the full path to the input file being read.
  7300. </p></dd>
  7301. <dt>&lsquo;<samp>lavf.image2dec.source_basename</samp>&rsquo;</dt>
  7302. <dd><p>Corresponds to the name of the file being read.
  7303. </p></dd>
  7304. </dl>
  7305. </dd>
  7306. </dl>
  7307. <a name="Examples-138"></a>
  7308. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-138">15.9.1 Examples</a></h3>
  7309. <ul>
  7310. <li>
  7311. Use <code>ffmpeg</code> for creating a video from the images in the file
  7312. sequence &lsquo;<tt>img-001.jpeg</tt>&rsquo;, &lsquo;<tt>img-002.jpeg</tt>&rsquo;, ..., assuming an
  7313. input frame rate of 10 frames per second:
  7314. <div class="example">
  7315. <pre class="example">ffmpeg -framerate 10 -i 'img-%03d.jpeg' out.mkv
  7316. </pre></div>
  7317. </li><li>
  7318. As above, but start by reading from a file with index 100 in the sequence:
  7319. <div class="example">
  7320. <pre class="example">ffmpeg -framerate 10 -start_number 100 -i 'img-%03d.jpeg' out.mkv
  7321. </pre></div>
  7322. </li><li>
  7323. Read images matching the &quot;*.png&quot; glob pattern , that is all the files
  7324. terminating with the &quot;.png&quot; suffix:
  7325. <div class="example">
  7326. <pre class="example">ffmpeg -framerate 10 -pattern_type glob -i &quot;*.png&quot; out.mkv
  7327. </pre></div>
  7328. </li></ul>
  7329. <a name="libgme"></a>
  7330. <h2 class="section"><a href="ffprobe-all.html#toc-libgme">15.10 libgme</a></h2>
  7331. <p>The Game Music Emu library is a collection of video game music file emulators.
  7332. </p>
  7333. <p>See <a href="https://bitbucket.org/mpyne/game-music-emu/overview">https://bitbucket.org/mpyne/game-music-emu/overview</a> for more information.
  7334. </p>
  7335. <p>It accepts the following options:
  7336. </p>
  7337. <dl compact="compact">
  7338. <dt>&lsquo;<samp>track_index</samp>&rsquo;</dt>
  7339. <dd><p>Set the index of which track to demux. The demuxer can only export one track.
  7340. Track indexes start at 0. Default is to pick the first track. Number of tracks
  7341. is exported as <var>tracks</var> metadata entry.
  7342. </p>
  7343. </dd>
  7344. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  7345. <dd><p>Set the sampling rate of the exported track. Range is 1000 to 999999. Default is 44100.
  7346. </p>
  7347. </dd>
  7348. <dt>&lsquo;<samp>max_size <em>(bytes)</em></samp>&rsquo;</dt>
  7349. <dd><p>The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
  7350. which in turn, acts as a ceiling for the size of files that can be read.
  7351. Default is 50 MiB.
  7352. </p>
  7353. </dd>
  7354. </dl>
  7355. <a name="libmodplug"></a>
  7356. <h2 class="section"><a href="ffprobe-all.html#toc-libmodplug">15.11 libmodplug</a></h2>
  7357. <p>ModPlug based module demuxer
  7358. </p>
  7359. <p>See <a href="https://github.com/Konstanty/libmodplug">https://github.com/Konstanty/libmodplug</a>
  7360. </p>
  7361. <p>It will export one 2-channel 16-bit 44.1 kHz audio stream.
  7362. Optionally, a <code>pal8</code> 16-color video stream can be exported with or without printed metadata.
  7363. </p>
  7364. <p>It accepts the following options:
  7365. </p>
  7366. <dl compact="compact">
  7367. <dt>&lsquo;<samp>noise_reduction</samp>&rsquo;</dt>
  7368. <dd><p>Apply a simple low-pass filter. Can be 1 (on) or 0 (off). Default is 0.
  7369. </p>
  7370. </dd>
  7371. <dt>&lsquo;<samp>reverb_depth</samp>&rsquo;</dt>
  7372. <dd><p>Set amount of reverb. Range 0-100. Default is 0.
  7373. </p>
  7374. </dd>
  7375. <dt>&lsquo;<samp>reverb_delay</samp>&rsquo;</dt>
  7376. <dd><p>Set delay in ms, clamped to 40-250 ms. Default is 0.
  7377. </p>
  7378. </dd>
  7379. <dt>&lsquo;<samp>bass_amount</samp>&rsquo;</dt>
  7380. <dd><p>Apply bass expansion a.k.a. XBass or megabass. Range is 0 (quiet) to 100 (loud). Default is 0.
  7381. </p>
  7382. </dd>
  7383. <dt>&lsquo;<samp>bass_range</samp>&rsquo;</dt>
  7384. <dd><p>Set cutoff i.e. upper-bound for bass frequencies. Range is 10-100 Hz. Default is 0.
  7385. </p>
  7386. </dd>
  7387. <dt>&lsquo;<samp>surround_depth</samp>&rsquo;</dt>
  7388. <dd><p>Apply a Dolby Pro-Logic surround effect. Range is 0 (quiet) to 100 (heavy). Default is 0.
  7389. </p>
  7390. </dd>
  7391. <dt>&lsquo;<samp>surround_delay</samp>&rsquo;</dt>
  7392. <dd><p>Set surround delay in ms, clamped to 5-40 ms. Default is 0.
  7393. </p>
  7394. </dd>
  7395. <dt>&lsquo;<samp>max_size</samp>&rsquo;</dt>
  7396. <dd><p>The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
  7397. which in turn, acts as a ceiling for the size of files that can be read. Range is 0 to 100 MiB.
  7398. 0 removes buffer size limit (not recommended). Default is 5 MiB.
  7399. </p>
  7400. </dd>
  7401. <dt>&lsquo;<samp>video_stream_expr</samp>&rsquo;</dt>
  7402. <dd><p>String which is evaluated using the eval API to assign colors to the generated video stream.
  7403. Variables which can be used are <code>x</code>, <code>y</code>, <code>w</code>, <code>h</code>, <code>t</code>, <code>speed</code>,
  7404. <code>tempo</code>, <code>order</code>, <code>pattern</code> and <code>row</code>.
  7405. </p>
  7406. </dd>
  7407. <dt>&lsquo;<samp>video_stream</samp>&rsquo;</dt>
  7408. <dd><p>Generate video stream. Can be 1 (on) or 0 (off). Default is 0.
  7409. </p>
  7410. </dd>
  7411. <dt>&lsquo;<samp>video_stream_w</samp>&rsquo;</dt>
  7412. <dd><p>Set video frame width in &rsquo;chars&rsquo; where one char indicates 8 pixels. Range is 20-512. Default is 30.
  7413. </p>
  7414. </dd>
  7415. <dt>&lsquo;<samp>video_stream_h</samp>&rsquo;</dt>
  7416. <dd><p>Set video frame height in &rsquo;chars&rsquo; where one char indicates 8 pixels. Range is 20-512. Default is 30.
  7417. </p>
  7418. </dd>
  7419. <dt>&lsquo;<samp>video_stream_ptxt</samp>&rsquo;</dt>
  7420. <dd><p>Print metadata on video stream. Includes <code>speed</code>, <code>tempo</code>, <code>order</code>, <code>pattern</code>,
  7421. <code>row</code> and <code>ts</code> (time in ms). Can be 1 (on) or 0 (off). Default is 1.
  7422. </p>
  7423. </dd>
  7424. </dl>
  7425. <a name="libopenmpt"></a>
  7426. <h2 class="section"><a href="ffprobe-all.html#toc-libopenmpt">15.12 libopenmpt</a></h2>
  7427. <p>libopenmpt based module demuxer
  7428. </p>
  7429. <p>See <a href="https://lib.openmpt.org/libopenmpt/">https://lib.openmpt.org/libopenmpt/</a> for more information.
  7430. </p>
  7431. <p>Some files have multiple subsongs (tracks) this can be set with the &lsquo;<samp>subsong</samp>&rsquo;
  7432. option.
  7433. </p>
  7434. <p>It accepts the following options:
  7435. </p>
  7436. <dl compact="compact">
  7437. <dt>&lsquo;<samp>subsong</samp>&rsquo;</dt>
  7438. <dd><p>Set the subsong index. This can be either &rsquo;all&rsquo;, &rsquo;auto&rsquo;, or the index of the
  7439. subsong. Subsong indexes start at 0. The default is &rsquo;auto&rsquo;.
  7440. </p>
  7441. <p>The default value is to let libopenmpt choose.
  7442. </p>
  7443. </dd>
  7444. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  7445. <dd><p>Set the channel layout. Valid values are 1, 2, and 4 channel layouts.
  7446. The default value is STEREO.
  7447. </p>
  7448. </dd>
  7449. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  7450. <dd><p>Set the sample rate for libopenmpt to output.
  7451. Range is from 1000 to INT_MAX. The value default is 48000.
  7452. </p></dd>
  7453. </dl>
  7454. <a name="mov_002fmp4_002f3gp"></a>
  7455. <h2 class="section"><a href="ffprobe-all.html#toc-mov_002fmp4_002f3gp">15.13 mov/mp4/3gp</a></h2>
  7456. <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).
  7457. </p>
  7458. <p>Registered extensions: mov, mp4, m4a, 3gp, 3g2, mj2, psp, m4b, ism, ismv, isma, f4v
  7459. </p>
  7460. <a name="Options-2"></a>
  7461. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-2">15.13.1 Options</a></h3>
  7462. <p>This demuxer accepts the following options:
  7463. </p><dl compact="compact">
  7464. <dt>&lsquo;<samp>enable_drefs</samp>&rsquo;</dt>
  7465. <dd><p>Enable loading of external tracks, disabled by default.
  7466. Enabling this can theoretically leak information in some use cases.
  7467. </p>
  7468. </dd>
  7469. <dt>&lsquo;<samp>use_absolute_path</samp>&rsquo;</dt>
  7470. <dd><p>Allows loading of external tracks via absolute paths, disabled by default.
  7471. Enabling this poses a security risk. It should only be enabled if the source
  7472. is known to be non-malicious.
  7473. </p>
  7474. </dd>
  7475. <dt>&lsquo;<samp>seek_streams_individually</samp>&rsquo;</dt>
  7476. <dd><p>When seeking, identify the closest point in each stream individually and demux packets in
  7477. that stream from identified point. This can lead to a different sequence of packets compared
  7478. to demuxing linearly from the beginning. Default is true.
  7479. </p>
  7480. </dd>
  7481. <dt>&lsquo;<samp>ignore_editlist</samp>&rsquo;</dt>
  7482. <dd><p>Ignore any edit list atoms. The demuxer, by default, modifies the stream index to reflect the
  7483. timeline described by the edit list. Default is false.
  7484. </p>
  7485. </dd>
  7486. <dt>&lsquo;<samp>advanced_editlist</samp>&rsquo;</dt>
  7487. <dd><p>Modify the stream index to reflect the timeline described by the edit list. <code>ignore_editlist</code>
  7488. must be set to false for this option to be effective.
  7489. If both <code>ignore_editlist</code> and this option are set to false, then only the
  7490. start of the stream index is modified to reflect initial dwell time or starting timestamp
  7491. described by the edit list. Default is true.
  7492. </p>
  7493. </dd>
  7494. <dt>&lsquo;<samp>ignore_chapters</samp>&rsquo;</dt>
  7495. <dd><p>Don&rsquo;t parse chapters. This includes GoPro &rsquo;HiLight&rsquo; tags/moments. Note that chapters are
  7496. only parsed when input is seekable. Default is false.
  7497. </p>
  7498. </dd>
  7499. <dt>&lsquo;<samp>use_mfra_for</samp>&rsquo;</dt>
  7500. <dd><p>For seekable fragmented input, set fragment&rsquo;s starting timestamp from media fragment random access box, if present.
  7501. </p>
  7502. <p>Following options are available:
  7503. </p><dl compact="compact">
  7504. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  7505. <dd><p>Auto-detect whether to set mfra timestamps as PTS or DTS <em>(default)</em>
  7506. </p>
  7507. </dd>
  7508. <dt>&lsquo;<samp>dts</samp>&rsquo;</dt>
  7509. <dd><p>Set mfra timestamps as DTS
  7510. </p>
  7511. </dd>
  7512. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  7513. <dd><p>Set mfra timestamps as PTS
  7514. </p>
  7515. </dd>
  7516. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  7517. <dd><p>Don&rsquo;t use mfra box to set timestamps
  7518. </p></dd>
  7519. </dl>
  7520. </dd>
  7521. <dt>&lsquo;<samp>export_all</samp>&rsquo;</dt>
  7522. <dd><p>Export unrecognized boxes within the <var>udta</var> box as metadata entries. The first four
  7523. characters of the box type are set as the key. Default is false.
  7524. </p>
  7525. </dd>
  7526. <dt>&lsquo;<samp>export_xmp</samp>&rsquo;</dt>
  7527. <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
  7528. if <code>export_all</code> is set and this option isn&rsquo;t, the contents of <var>XMP_</var> box are still exported
  7529. but with key <code>XMP_</code>. Default is false.
  7530. </p>
  7531. </dd>
  7532. <dt>&lsquo;<samp>activation_bytes</samp>&rsquo;</dt>
  7533. <dd><p>4-byte key required to decrypt Audible AAX and AAX+ files. See Audible AAX subsection below.
  7534. </p>
  7535. </dd>
  7536. <dt>&lsquo;<samp>audible_fixed_key</samp>&rsquo;</dt>
  7537. <dd><p>Fixed key used for handling Audible AAX/AAX+ files. It has been pre-set so should not be necessary to
  7538. specify.
  7539. </p>
  7540. </dd>
  7541. <dt>&lsquo;<samp>decryption_key</samp>&rsquo;</dt>
  7542. <dd><p>16-byte key, in hex, to decrypt files encrypted using ISO Common Encryption (CENC/AES-128 CTR; ISO/IEC 23001-7).
  7543. </p></dd>
  7544. </dl>
  7545. <a name="Audible-AAX"></a>
  7546. <h3 class="subsection"><a href="ffprobe-all.html#toc-Audible-AAX">15.13.2 Audible AAX</a></h3>
  7547. <p>Audible AAX files are encrypted M4B files, and they can be decrypted by specifying a 4 byte activation secret.
  7548. </p><div class="example">
  7549. <pre class="example">ffmpeg -activation_bytes 1CEB00DA -i test.aax -vn -c:a copy output.mp4
  7550. </pre></div>
  7551. <a name="mpegts"></a>
  7552. <h2 class="section"><a href="ffprobe-all.html#toc-mpegts">15.14 mpegts</a></h2>
  7553. <p>MPEG-2 transport stream demuxer.
  7554. </p>
  7555. <p>This demuxer accepts the following options:
  7556. </p><dl compact="compact">
  7557. <dt>&lsquo;<samp>resync_size</samp>&rsquo;</dt>
  7558. <dd><p>Set size limit for looking up a new synchronization. Default value is
  7559. 65536.
  7560. </p>
  7561. </dd>
  7562. <dt>&lsquo;<samp>skip_unknown_pmt</samp>&rsquo;</dt>
  7563. <dd><p>Skip PMTs for programs not defined in the PAT. Default value is 0.
  7564. </p>
  7565. </dd>
  7566. <dt>&lsquo;<samp>fix_teletext_pts</samp>&rsquo;</dt>
  7567. <dd><p>Override teletext packet PTS and DTS values with the timestamps calculated
  7568. from the PCR of the first program which the teletext stream is part of and is
  7569. not discarded. Default value is 1, set this option to 0 if you want your
  7570. teletext packet PTS and DTS values untouched.
  7571. </p>
  7572. </dd>
  7573. <dt>&lsquo;<samp>ts_packetsize</samp>&rsquo;</dt>
  7574. <dd><p>Output option carrying the raw packet size in bytes.
  7575. Show the detected raw packet size, cannot be set by the user.
  7576. </p>
  7577. </dd>
  7578. <dt>&lsquo;<samp>scan_all_pmts</samp>&rsquo;</dt>
  7579. <dd><p>Scan and combine all PMTs. The value is an integer with value from -1
  7580. to 1 (-1 means automatic setting, 1 means enabled, 0 means
  7581. disabled). Default value is -1.
  7582. </p>
  7583. </dd>
  7584. <dt>&lsquo;<samp>merge_pmt_versions</samp>&rsquo;</dt>
  7585. <dd><p>Re-use existing streams when a PMT&rsquo;s version is updated and elementary
  7586. streams move to different PIDs. Default value is 0.
  7587. </p></dd>
  7588. </dl>
  7589. <a name="mpjpeg"></a>
  7590. <h2 class="section"><a href="ffprobe-all.html#toc-mpjpeg">15.15 mpjpeg</a></h2>
  7591. <p>MJPEG encapsulated in multi-part MIME demuxer.
  7592. </p>
  7593. <p>This demuxer allows reading of MJPEG, where each frame is represented as a part of
  7594. multipart/x-mixed-replace stream.
  7595. </p><dl compact="compact">
  7596. <dt>&lsquo;<samp>strict_mime_boundary</samp>&rsquo;</dt>
  7597. <dd><p>Default implementation applies a relaxed standard to multi-part MIME boundary detection,
  7598. to prevent regression with numerous existing endpoints not generating a proper MIME
  7599. MJPEG stream. Turning this option on by setting it to 1 will result in a stricter check
  7600. of the boundary value.
  7601. </p></dd>
  7602. </dl>
  7603. <a name="rawvideo-1"></a>
  7604. <h2 class="section"><a href="ffprobe-all.html#toc-rawvideo-1">15.16 rawvideo</a></h2>
  7605. <p>Raw video demuxer.
  7606. </p>
  7607. <p>This demuxer allows one to read raw video data. Since there is no header
  7608. specifying the assumed video parameters, the user must specify them
  7609. in order to be able to decode the data correctly.
  7610. </p>
  7611. <p>This demuxer accepts the following options:
  7612. </p><dl compact="compact">
  7613. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  7614. <dd><p>Set input video frame rate. Default value is 25.
  7615. </p>
  7616. </dd>
  7617. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  7618. <dd><p>Set the input video pixel format. Default value is <code>yuv420p</code>.
  7619. </p>
  7620. </dd>
  7621. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  7622. <dd><p>Set the input video size. This value must be specified explicitly.
  7623. </p></dd>
  7624. </dl>
  7625. <p>For example to read a rawvideo file &lsquo;<tt>input.raw</tt>&rsquo; with
  7626. <code>ffplay</code>, assuming a pixel format of <code>rgb24</code>, a video
  7627. size of <code>320x240</code>, and a frame rate of 10 images per second, use
  7628. the command:
  7629. </p><div class="example">
  7630. <pre class="example">ffplay -f rawvideo -pixel_format rgb24 -video_size 320x240 -framerate 10 input.raw
  7631. </pre></div>
  7632. <a name="sbg"></a>
  7633. <h2 class="section"><a href="ffprobe-all.html#toc-sbg">15.17 sbg</a></h2>
  7634. <p>SBaGen script demuxer.
  7635. </p>
  7636. <p>This demuxer reads the script language used by SBaGen
  7637. <a href="http://uazu.net/sbagen/">http://uazu.net/sbagen/</a> to generate binaural beats sessions. A SBG
  7638. script looks like that:
  7639. </p><div class="example">
  7640. <pre class="example">-SE
  7641. a: 300-2.5/3 440+4.5/0
  7642. b: 300-2.5/0 440+4.5/3
  7643. off: -
  7644. NOW == a
  7645. +0:07:00 == b
  7646. +0:14:00 == a
  7647. +0:21:00 == b
  7648. +0:30:00 off
  7649. </pre></div>
  7650. <p>A SBG script can mix absolute and relative timestamps. If the script uses
  7651. either only absolute timestamps (including the script start time) or only
  7652. relative ones, then its layout is fixed, and the conversion is
  7653. straightforward. On the other hand, if the script mixes both kind of
  7654. timestamps, then the <var>NOW</var> reference for relative timestamps will be
  7655. taken from the current time of day at the time the script is read, and the
  7656. script layout will be frozen according to that reference. That means that if
  7657. the script is directly played, the actual times will match the absolute
  7658. timestamps up to the sound controller&rsquo;s clock accuracy, but if the user
  7659. somehow pauses the playback or seeks, all times will be shifted accordingly.
  7660. </p>
  7661. <a name="tedcaptions"></a>
  7662. <h2 class="section"><a href="ffprobe-all.html#toc-tedcaptions">15.18 tedcaptions</a></h2>
  7663. <p>JSON captions used for <a href="http://www.ted.com/">TED Talks</a>.
  7664. </p>
  7665. <p>TED does not provide links to the captions, but they can be guessed from the
  7666. page. The file &lsquo;<tt>tools/bookmarklets.html</tt>&rsquo; from the FFmpeg source tree
  7667. contains a bookmarklet to expose them.
  7668. </p>
  7669. <p>This demuxer accepts the following option:
  7670. </p><dl compact="compact">
  7671. <dt>&lsquo;<samp>start_time</samp>&rsquo;</dt>
  7672. <dd><p>Set the start time of the TED talk, in milliseconds. The default is 15000
  7673. (15s). It is used to sync the captions with the downloadable videos, because
  7674. they include a 15s intro.
  7675. </p></dd>
  7676. </dl>
  7677. <p>Example: convert the captions to a format most players understand:
  7678. </p><div class="example">
  7679. <pre class="example">ffmpeg -i http://www.ted.com/talks/subtitles/id/1/lang/en talk1-en.srt
  7680. </pre></div>
  7681. <a name="vapoursynth"></a>
  7682. <h2 class="section"><a href="ffprobe-all.html#toc-vapoursynth">15.19 vapoursynth</a></h2>
  7683. <p>Vapoursynth wrapper.
  7684. </p>
  7685. <p>Due to security concerns, Vapoursynth scripts will not
  7686. be autodetected so the input format has to be forced. For ff* CLI tools,
  7687. add <code>-f vapoursynth</code> before the input <code>-i yourscript.vpy</code>.
  7688. </p>
  7689. <p>This demuxer accepts the following option:
  7690. </p><dl compact="compact">
  7691. <dt>&lsquo;<samp>max_script_size</samp>&rsquo;</dt>
  7692. <dd><p>The demuxer buffers the entire script into memory. Adjust this value to set the maximum buffer size,
  7693. which in turn, acts as a ceiling for the size of scripts that can be read.
  7694. Default is 1 MiB.
  7695. </p></dd>
  7696. </dl>
  7697. <a name="Metadata"></a>
  7698. <h1 class="chapter"><a href="ffprobe-all.html#toc-Metadata">16 Metadata</a></h1>
  7699. <p>FFmpeg is able to dump metadata from media files into a simple UTF-8-encoded
  7700. INI-like text file and then load it back using the metadata muxer/demuxer.
  7701. </p>
  7702. <p>The file format is as follows:
  7703. </p><ol>
  7704. <li>
  7705. A file consists of a header and a number of metadata tags divided into sections,
  7706. each on its own line.
  7707. </li><li>
  7708. The header is a &lsquo;<samp>;FFMETADATA</samp>&rsquo; string, followed by a version number (now 1).
  7709. </li><li>
  7710. Metadata tags are of the form &lsquo;<samp>key=value</samp>&rsquo;
  7711. </li><li>
  7712. Immediately after header follows global metadata
  7713. </li><li>
  7714. After global metadata there may be sections with per-stream/per-chapter
  7715. metadata.
  7716. </li><li>
  7717. A section starts with the section name in uppercase (i.e. STREAM or CHAPTER) in
  7718. brackets (&lsquo;<samp>[</samp>&rsquo;, &lsquo;<samp>]</samp>&rsquo;) and ends with next section or end of file.
  7719. </li><li>
  7720. At the beginning of a chapter section there may be an optional timebase to be
  7721. used for start/end values. It must be in form
  7722. &lsquo;<samp>TIMEBASE=<var>num</var>/<var>den</var></samp>&rsquo;, where <var>num</var> and <var>den</var> are
  7723. integers. If the timebase is missing then start/end times are assumed to
  7724. be in nanoseconds.
  7725. <p>Next a chapter section must contain chapter start and end times in form
  7726. &lsquo;<samp>START=<var>num</var></samp>&rsquo;, &lsquo;<samp>END=<var>num</var></samp>&rsquo;, where <var>num</var> is a positive
  7727. integer.
  7728. </p>
  7729. </li><li>
  7730. Empty lines and lines starting with &lsquo;<samp>;</samp>&rsquo; or &lsquo;<samp>#</samp>&rsquo; are ignored.
  7731. </li><li>
  7732. Metadata keys or values containing special characters (&lsquo;<samp>=</samp>&rsquo;, &lsquo;<samp>;</samp>&rsquo;,
  7733. &lsquo;<samp>#</samp>&rsquo;, &lsquo;<samp>\</samp>&rsquo; and a newline) must be escaped with a backslash &lsquo;<samp>\</samp>&rsquo;.
  7734. </li><li>
  7735. Note that whitespace in metadata (e.g. &lsquo;<samp>foo = bar</samp>&rsquo;) is considered to be
  7736. a part of the tag (in the example above key is &lsquo;<samp>foo </samp>&rsquo;, value is
  7737. &lsquo;<samp> bar</samp>&rsquo;).
  7738. </li></ol>
  7739. <p>A ffmetadata file might look like this:
  7740. </p><div class="example">
  7741. <pre class="example">;FFMETADATA1
  7742. title=bike\\shed
  7743. ;this is a comment
  7744. artist=FFmpeg troll team
  7745. [CHAPTER]
  7746. TIMEBASE=1/1000
  7747. START=0
  7748. #chapter ends at 0:01:00
  7749. END=60000
  7750. title=chapter \#1
  7751. [STREAM]
  7752. title=multi\
  7753. line
  7754. </pre></div>
  7755. <p>By using the ffmetadata muxer and demuxer it is possible to extract
  7756. metadata from an input file to an ffmetadata file, and then transcode
  7757. the file into an output file with the edited ffmetadata file.
  7758. </p>
  7759. <p>Extracting an ffmetadata file with &lsquo;<tt>ffmpeg</tt>&rsquo; goes as follows:
  7760. </p><div class="example">
  7761. <pre class="example">ffmpeg -i INPUT -f ffmetadata FFMETADATAFILE
  7762. </pre></div>
  7763. <p>Reinserting edited metadata information from the FFMETADATAFILE file can
  7764. be done as:
  7765. </p><div class="example">
  7766. <pre class="example">ffmpeg -i INPUT -i FFMETADATAFILE -map_metadata 1 -codec copy OUTPUT
  7767. </pre></div>
  7768. <a name="Protocol-Options"></a>
  7769. <h1 class="chapter"><a href="ffprobe-all.html#toc-Protocol-Options">17 Protocol Options</a></h1>
  7770. <p>The libavformat library provides some generic global options, which
  7771. can be set on all the protocols. In addition each protocol may support
  7772. so-called private options, which are specific for that component.
  7773. </p>
  7774. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  7775. FFmpeg tools, or by setting the value explicitly in the
  7776. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  7777. for programmatic use.
  7778. </p>
  7779. <p>The list of supported options follows:
  7780. </p>
  7781. <dl compact="compact">
  7782. <dt>&lsquo;<samp>protocol_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  7783. <dd><p>Set a &quot;,&quot;-separated list of allowed protocols. &quot;ALL&quot; matches all protocols. Protocols
  7784. prefixed by &quot;-&quot; are disabled.
  7785. All protocols are allowed by default but protocols used by an another
  7786. protocol (nested protocols) are restricted to a per protocol subset.
  7787. </p></dd>
  7788. </dl>
  7789. <a name="Protocols"></a>
  7790. <h1 class="chapter"><a href="ffprobe-all.html#toc-Protocols">18 Protocols</a></h1>
  7791. <p>Protocols are configured elements in FFmpeg that enable access to
  7792. resources that require specific protocols.
  7793. </p>
  7794. <p>When you configure your FFmpeg build, all the supported protocols are
  7795. enabled by default. You can list all available ones using the
  7796. configure option &quot;&ndash;list-protocols&quot;.
  7797. </p>
  7798. <p>You can disable all the protocols using the configure option
  7799. &quot;&ndash;disable-protocols&quot;, and selectively enable a protocol using the
  7800. option &quot;&ndash;enable-protocol=<var>PROTOCOL</var>&quot;, or you can disable a
  7801. particular protocol using the option
  7802. &quot;&ndash;disable-protocol=<var>PROTOCOL</var>&quot;.
  7803. </p>
  7804. <p>The option &quot;-protocols&quot; of the ff* tools will display the list of
  7805. supported protocols.
  7806. </p>
  7807. <p>All protocols accept the following options:
  7808. </p>
  7809. <dl compact="compact">
  7810. <dt>&lsquo;<samp>rw_timeout</samp>&rsquo;</dt>
  7811. <dd><p>Maximum time to wait for (network) read/write operations to complete,
  7812. in microseconds.
  7813. </p></dd>
  7814. </dl>
  7815. <p>A description of the currently available protocols follows.
  7816. </p>
  7817. <a name="async"></a>
  7818. <h2 class="section"><a href="ffprobe-all.html#toc-async">18.1 async</a></h2>
  7819. <p>Asynchronous data filling wrapper for input stream.
  7820. </p>
  7821. <p>Fill data in a background thread, to decouple I/O operation from demux thread.
  7822. </p>
  7823. <div class="example">
  7824. <pre class="example">async:<var>URL</var>
  7825. async:http://host/resource
  7826. async:cache:http://host/resource
  7827. </pre></div>
  7828. <a name="bluray"></a>
  7829. <h2 class="section"><a href="ffprobe-all.html#toc-bluray">18.2 bluray</a></h2>
  7830. <p>Read BluRay playlist.
  7831. </p>
  7832. <p>The accepted options are:
  7833. </p><dl compact="compact">
  7834. <dt>&lsquo;<samp>angle</samp>&rsquo;</dt>
  7835. <dd><p>BluRay angle
  7836. </p>
  7837. </dd>
  7838. <dt>&lsquo;<samp>chapter</samp>&rsquo;</dt>
  7839. <dd><p>Start chapter (1...N)
  7840. </p>
  7841. </dd>
  7842. <dt>&lsquo;<samp>playlist</samp>&rsquo;</dt>
  7843. <dd><p>Playlist to read (BDMV/PLAYLIST/?????.mpls)
  7844. </p>
  7845. </dd>
  7846. </dl>
  7847. <p>Examples:
  7848. </p>
  7849. <p>Read longest playlist from BluRay mounted to /mnt/bluray:
  7850. </p><div class="example">
  7851. <pre class="example">bluray:/mnt/bluray
  7852. </pre></div>
  7853. <p>Read angle 2 of playlist 4 from BluRay mounted to /mnt/bluray, start from chapter 2:
  7854. </p><div class="example">
  7855. <pre class="example">-playlist 4 -angle 2 -chapter 2 bluray:/mnt/bluray
  7856. </pre></div>
  7857. <a name="cache"></a>
  7858. <h2 class="section"><a href="ffprobe-all.html#toc-cache">18.3 cache</a></h2>
  7859. <p>Caching wrapper for input stream.
  7860. </p>
  7861. <p>Cache the input stream to temporary file. It brings seeking capability to live streams.
  7862. </p>
  7863. <div class="example">
  7864. <pre class="example">cache:<var>URL</var>
  7865. </pre></div>
  7866. <a name="concat-3"></a>
  7867. <h2 class="section"><a href="ffprobe-all.html#toc-concat-3">18.4 concat</a></h2>
  7868. <p>Physical concatenation protocol.
  7869. </p>
  7870. <p>Read and seek from many resources in sequence as if they were
  7871. a unique resource.
  7872. </p>
  7873. <p>A URL accepted by this protocol has the syntax:
  7874. </p><div class="example">
  7875. <pre class="example">concat:<var>URL1</var>|<var>URL2</var>|...|<var>URLN</var>
  7876. </pre></div>
  7877. <p>where <var>URL1</var>, <var>URL2</var>, ..., <var>URLN</var> are the urls of the
  7878. resource to be concatenated, each one possibly specifying a distinct
  7879. protocol.
  7880. </p>
  7881. <p>For example to read a sequence of files &lsquo;<tt>split1.mpeg</tt>&rsquo;,
  7882. &lsquo;<tt>split2.mpeg</tt>&rsquo;, &lsquo;<tt>split3.mpeg</tt>&rsquo; with <code>ffplay</code> use the
  7883. command:
  7884. </p><div class="example">
  7885. <pre class="example">ffplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg
  7886. </pre></div>
  7887. <p>Note that you may need to escape the character &quot;|&quot; which is special for
  7888. many shells.
  7889. </p>
  7890. <a name="crypto"></a>
  7891. <h2 class="section"><a href="ffprobe-all.html#toc-crypto">18.5 crypto</a></h2>
  7892. <p>AES-encrypted stream reading protocol.
  7893. </p>
  7894. <p>The accepted options are:
  7895. </p><dl compact="compact">
  7896. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  7897. <dd><p>Set the AES decryption key binary block from given hexadecimal representation.
  7898. </p>
  7899. </dd>
  7900. <dt>&lsquo;<samp>iv</samp>&rsquo;</dt>
  7901. <dd><p>Set the AES decryption initialization vector binary block from given hexadecimal representation.
  7902. </p></dd>
  7903. </dl>
  7904. <p>Accepted URL formats:
  7905. </p><div class="example">
  7906. <pre class="example">crypto:<var>URL</var>
  7907. crypto+<var>URL</var>
  7908. </pre></div>
  7909. <a name="data"></a>
  7910. <h2 class="section"><a href="ffprobe-all.html#toc-data">18.6 data</a></h2>
  7911. <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>.
  7912. </p>
  7913. <p>For example, to convert a GIF file given inline with <code>ffmpeg</code>:
  7914. </p><div class="example">
  7915. <pre class="example">ffmpeg -i &quot;data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=&quot; smiley.png
  7916. </pre></div>
  7917. <a name="file"></a>
  7918. <h2 class="section"><a href="ffprobe-all.html#toc-file">18.7 file</a></h2>
  7919. <p>File access protocol.
  7920. </p>
  7921. <p>Read from or write to a file.
  7922. </p>
  7923. <p>A file URL can have the form:
  7924. </p><div class="example">
  7925. <pre class="example">file:<var>filename</var>
  7926. </pre></div>
  7927. <p>where <var>filename</var> is the path of the file to read.
  7928. </p>
  7929. <p>An URL that does not have a protocol prefix will be assumed to be a
  7930. file URL. Depending on the build, an URL that looks like a Windows
  7931. path with the drive letter at the beginning will also be assumed to be
  7932. a file URL (usually not the case in builds for unix-like systems).
  7933. </p>
  7934. <p>For example to read from a file &lsquo;<tt>input.mpeg</tt>&rsquo; with <code>ffmpeg</code>
  7935. use the command:
  7936. </p><div class="example">
  7937. <pre class="example">ffmpeg -i file:input.mpeg output.mpeg
  7938. </pre></div>
  7939. <p>This protocol accepts the following options:
  7940. </p>
  7941. <dl compact="compact">
  7942. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  7943. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  7944. truncating. Default value is 1.
  7945. </p>
  7946. </dd>
  7947. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  7948. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  7949. <code>INT_MAX</code>, which results in not limiting the requested block size.
  7950. Setting this value reasonably low improves user termination request reaction
  7951. time, which is valuable for files on slow medium.
  7952. </p>
  7953. </dd>
  7954. <dt>&lsquo;<samp>follow</samp>&rsquo;</dt>
  7955. <dd><p>If set to 1, the protocol will retry reading at the end of the file, allowing
  7956. reading files that still are being written. In order for this to terminate,
  7957. you either need to use the rw_timeout option, or use the interrupt callback
  7958. (for API users).
  7959. </p>
  7960. </dd>
  7961. <dt>&lsquo;<samp>seekable</samp>&rsquo;</dt>
  7962. <dd><p>Controls if seekability is advertised on the file. 0 means non-seekable, -1
  7963. means auto (seekable for normal files, non-seekable for named pipes).
  7964. </p>
  7965. <p>Many demuxers handle seekable and non-seekable resources differently,
  7966. overriding this might speed up opening certain files at the cost of losing some
  7967. features (e.g. accurate seeking).
  7968. </p></dd>
  7969. </dl>
  7970. <a name="ftp"></a>
  7971. <h2 class="section"><a href="ffprobe-all.html#toc-ftp">18.8 ftp</a></h2>
  7972. <p>FTP (File Transfer Protocol).
  7973. </p>
  7974. <p>Read from or write to remote resources using FTP protocol.
  7975. </p>
  7976. <p>Following syntax is required.
  7977. </p><div class="example">
  7978. <pre class="example">ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  7979. </pre></div>
  7980. <p>This protocol accepts the following options.
  7981. </p>
  7982. <dl compact="compact">
  7983. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  7984. <dd><p>Set timeout in microseconds of socket I/O operations used by the underlying low level
  7985. operation. By default it is set to -1, which means that the timeout is
  7986. not specified.
  7987. </p>
  7988. </dd>
  7989. <dt>&lsquo;<samp>ftp-user</samp>&rsquo;</dt>
  7990. <dd><p>Set a user to be used for authenticating to the FTP server. This is overridden by the
  7991. user in the FTP URL.
  7992. </p>
  7993. </dd>
  7994. <dt>&lsquo;<samp>ftp-password</samp>&rsquo;</dt>
  7995. <dd><p>Set a password to be used for authenticating to the FTP server. This is overridden by
  7996. the password in the FTP URL, or by &lsquo;<samp>ftp-anonymous-password</samp>&rsquo; if no user is set.
  7997. </p>
  7998. </dd>
  7999. <dt>&lsquo;<samp>ftp-anonymous-password</samp>&rsquo;</dt>
  8000. <dd><p>Password used when login as anonymous user. Typically an e-mail address
  8001. should be used.
  8002. </p>
  8003. </dd>
  8004. <dt>&lsquo;<samp>ftp-write-seekable</samp>&rsquo;</dt>
  8005. <dd><p>Control seekability of connection during encoding. If set to 1 the
  8006. resource is supposed to be seekable, if set to 0 it is assumed not
  8007. to be seekable. Default value is 0.
  8008. </p></dd>
  8009. </dl>
  8010. <p>NOTE: Protocol can be used as output, but it is recommended to not do
  8011. it, unless special care is taken (tests, customized server configuration
  8012. etc.). Different FTP servers behave in different way during seek
  8013. operation. ff* tools may produce incomplete content due to server limitations.
  8014. </p>
  8015. <a name="gopher"></a>
  8016. <h2 class="section"><a href="ffprobe-all.html#toc-gopher">18.9 gopher</a></h2>
  8017. <p>Gopher protocol.
  8018. </p>
  8019. <a name="hls-1"></a>
  8020. <h2 class="section"><a href="ffprobe-all.html#toc-hls-1">18.10 hls</a></h2>
  8021. <p>Read Apple HTTP Live Streaming compliant segmented stream as
  8022. a uniform one. The M3U8 playlists describing the segments can be
  8023. remote HTTP resources or local files, accessed using the standard
  8024. file protocol.
  8025. The nested protocol is declared by specifying
  8026. &quot;+<var>proto</var>&quot; after the hls URI scheme name, where <var>proto</var>
  8027. is either &quot;file&quot; or &quot;http&quot;.
  8028. </p>
  8029. <div class="example">
  8030. <pre class="example">hls+http://host/path/to/remote/resource.m3u8
  8031. hls+file://path/to/local/resource.m3u8
  8032. </pre></div>
  8033. <p>Using this protocol is discouraged - the hls demuxer should work
  8034. just as well (if not, please report the issues) and is more complete.
  8035. To use the hls demuxer instead, simply use the direct URLs to the
  8036. m3u8 files.
  8037. </p>
  8038. <a name="http"></a>
  8039. <h2 class="section"><a href="ffprobe-all.html#toc-http">18.11 http</a></h2>
  8040. <p>HTTP (Hyper Text Transfer Protocol).
  8041. </p>
  8042. <p>This protocol accepts the following options:
  8043. </p>
  8044. <dl compact="compact">
  8045. <dt>&lsquo;<samp>seekable</samp>&rsquo;</dt>
  8046. <dd><p>Control seekability of connection. If set to 1 the resource is
  8047. supposed to be seekable, if set to 0 it is assumed not to be seekable,
  8048. if set to -1 it will try to autodetect if it is seekable. Default
  8049. value is -1.
  8050. </p>
  8051. </dd>
  8052. <dt>&lsquo;<samp>chunked_post</samp>&rsquo;</dt>
  8053. <dd><p>If set to 1 use chunked Transfer-Encoding for posts, default is 1.
  8054. </p>
  8055. </dd>
  8056. <dt>&lsquo;<samp>content_type</samp>&rsquo;</dt>
  8057. <dd><p>Set a specific content type for the POST messages or for listen mode.
  8058. </p>
  8059. </dd>
  8060. <dt>&lsquo;<samp>http_proxy</samp>&rsquo;</dt>
  8061. <dd><p>set HTTP proxy to tunnel through e.g. http://example.com:1234
  8062. </p>
  8063. </dd>
  8064. <dt>&lsquo;<samp>headers</samp>&rsquo;</dt>
  8065. <dd><p>Set custom HTTP headers, can override built in default headers. The
  8066. value must be a string encoding the headers.
  8067. </p>
  8068. </dd>
  8069. <dt>&lsquo;<samp>multiple_requests</samp>&rsquo;</dt>
  8070. <dd><p>Use persistent connections if set to 1, default is 0.
  8071. </p>
  8072. </dd>
  8073. <dt>&lsquo;<samp>post_data</samp>&rsquo;</dt>
  8074. <dd><p>Set custom HTTP post data.
  8075. </p>
  8076. </dd>
  8077. <dt>&lsquo;<samp>referer</samp>&rsquo;</dt>
  8078. <dd><p>Set the Referer header. Include &rsquo;Referer: URL&rsquo; header in HTTP request.
  8079. </p>
  8080. </dd>
  8081. <dt>&lsquo;<samp>user_agent</samp>&rsquo;</dt>
  8082. <dd><p>Override the User-Agent header. If not specified the protocol will use a
  8083. string describing the libavformat build. (&quot;Lavf/&lt;version&gt;&quot;)
  8084. </p>
  8085. </dd>
  8086. <dt>&lsquo;<samp>user-agent</samp>&rsquo;</dt>
  8087. <dd><p>This is a deprecated option, you can use user_agent instead it.
  8088. </p>
  8089. </dd>
  8090. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8091. <dd><p>Set timeout in microseconds of socket I/O operations used by the underlying low level
  8092. operation. By default it is set to -1, which means that the timeout is
  8093. not specified.
  8094. </p>
  8095. </dd>
  8096. <dt>&lsquo;<samp>reconnect_at_eof</samp>&rsquo;</dt>
  8097. <dd><p>If set then eof is treated like an error and causes reconnection, this is useful
  8098. for live / endless streams.
  8099. </p>
  8100. </dd>
  8101. <dt>&lsquo;<samp>reconnect_streamed</samp>&rsquo;</dt>
  8102. <dd><p>If set then even streamed/non seekable streams will be reconnected on errors.
  8103. </p>
  8104. </dd>
  8105. <dt>&lsquo;<samp>reconnect_delay_max</samp>&rsquo;</dt>
  8106. <dd><p>Sets the maximum delay in seconds after which to give up reconnecting
  8107. </p>
  8108. </dd>
  8109. <dt>&lsquo;<samp>mime_type</samp>&rsquo;</dt>
  8110. <dd><p>Export the MIME type.
  8111. </p>
  8112. </dd>
  8113. <dt>&lsquo;<samp>http_version</samp>&rsquo;</dt>
  8114. <dd><p>Exports the HTTP response version number. Usually &quot;1.0&quot; or &quot;1.1&quot;.
  8115. </p>
  8116. </dd>
  8117. <dt>&lsquo;<samp>icy</samp>&rsquo;</dt>
  8118. <dd><p>If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
  8119. supports this, the metadata has to be retrieved by the application by reading
  8120. the &lsquo;<samp>icy_metadata_headers</samp>&rsquo; and &lsquo;<samp>icy_metadata_packet</samp>&rsquo; options.
  8121. The default is 1.
  8122. </p>
  8123. </dd>
  8124. <dt>&lsquo;<samp>icy_metadata_headers</samp>&rsquo;</dt>
  8125. <dd><p>If the server supports ICY metadata, this contains the ICY-specific HTTP reply
  8126. headers, separated by newline characters.
  8127. </p>
  8128. </dd>
  8129. <dt>&lsquo;<samp>icy_metadata_packet</samp>&rsquo;</dt>
  8130. <dd><p>If the server supports ICY metadata, and &lsquo;<samp>icy</samp>&rsquo; was set to 1, this
  8131. contains the last non-empty metadata packet sent by the server. It should be
  8132. polled in regular intervals by applications interested in mid-stream metadata
  8133. updates.
  8134. </p>
  8135. </dd>
  8136. <dt>&lsquo;<samp>cookies</samp>&rsquo;</dt>
  8137. <dd><p>Set the cookies to be sent in future requests. The format of each cookie is the
  8138. same as the value of a Set-Cookie HTTP response field. Multiple cookies can be
  8139. delimited by a newline character.
  8140. </p>
  8141. </dd>
  8142. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  8143. <dd><p>Set initial byte offset.
  8144. </p>
  8145. </dd>
  8146. <dt>&lsquo;<samp>end_offset</samp>&rsquo;</dt>
  8147. <dd><p>Try to limit the request to bytes preceding this offset.
  8148. </p>
  8149. </dd>
  8150. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  8151. <dd><p>When used as a client option it sets the HTTP method for the request.
  8152. </p>
  8153. <p>When used as a server option it sets the HTTP method that is going to be
  8154. expected from the client(s).
  8155. If the expected and the received HTTP method do not match the client will
  8156. be given a Bad Request response.
  8157. When unset the HTTP method is not checked for now. This will be replaced by
  8158. autodetection in the future.
  8159. </p>
  8160. </dd>
  8161. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8162. <dd><p>If set to 1 enables experimental HTTP server. This can be used to send data when
  8163. used as an output option, or read data from a client with HTTP POST when used as
  8164. an input option.
  8165. If set to 2 enables experimental multi-client HTTP server. This is not yet implemented
  8166. in ffmpeg.c and thus must not be used as a command line option.
  8167. </p><div class="example">
  8168. <pre class="example"># Server side (sending):
  8169. ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://<var>server</var>:<var>port</var>
  8170. # Client side (receiving):
  8171. ffmpeg -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  8172. # Client can also be done with wget:
  8173. wget http://<var>server</var>:<var>port</var> -O somefile.ogg
  8174. # Server side (receiving):
  8175. ffmpeg -listen 1 -i http://<var>server</var>:<var>port</var> -c copy somefile.ogg
  8176. # Client side (sending):
  8177. ffmpeg -i somefile.ogg -chunked_post 0 -c copy -f ogg http://<var>server</var>:<var>port</var>
  8178. # Client can also be done with wget:
  8179. wget --post-file=somefile.ogg http://<var>server</var>:<var>port</var>
  8180. </pre></div>
  8181. </dd>
  8182. <dt>&lsquo;<samp>send_expect_100</samp>&rsquo;</dt>
  8183. <dd><p>Send an Expect: 100-continue header for POST. If set to 1 it will send, if set
  8184. to 0 it won&rsquo;t, if set to -1 it will try to send if it is applicable. Default
  8185. value is -1.
  8186. </p>
  8187. </dd>
  8188. </dl>
  8189. <a name="HTTP-Cookies"></a>
  8190. <h3 class="subsection"><a href="ffprobe-all.html#toc-HTTP-Cookies">18.11.1 HTTP Cookies</a></h3>
  8191. <p>Some HTTP requests will be denied unless cookie values are passed in with the
  8192. request. The &lsquo;<samp>cookies</samp>&rsquo; option allows these cookies to be specified. At
  8193. the very least, each cookie must specify a value along with a path and domain.
  8194. HTTP requests that match both the domain and path will automatically include the
  8195. cookie value in the HTTP Cookie header field. Multiple cookies can be delimited
  8196. by a newline.
  8197. </p>
  8198. <p>The required syntax to play a stream specifying a cookie is:
  8199. </p><div class="example">
  8200. <pre class="example">ffplay -cookies &quot;nlqptid=nltid=tsn; path=/; domain=somedomain.com;&quot; http://somedomain.com/somestream.m3u8
  8201. </pre></div>
  8202. <a name="Icecast"></a>
  8203. <h2 class="section"><a href="ffprobe-all.html#toc-Icecast">18.12 Icecast</a></h2>
  8204. <p>Icecast protocol (stream to Icecast servers)
  8205. </p>
  8206. <p>This protocol accepts the following options:
  8207. </p>
  8208. <dl compact="compact">
  8209. <dt>&lsquo;<samp>ice_genre</samp>&rsquo;</dt>
  8210. <dd><p>Set the stream genre.
  8211. </p>
  8212. </dd>
  8213. <dt>&lsquo;<samp>ice_name</samp>&rsquo;</dt>
  8214. <dd><p>Set the stream name.
  8215. </p>
  8216. </dd>
  8217. <dt>&lsquo;<samp>ice_description</samp>&rsquo;</dt>
  8218. <dd><p>Set the stream description.
  8219. </p>
  8220. </dd>
  8221. <dt>&lsquo;<samp>ice_url</samp>&rsquo;</dt>
  8222. <dd><p>Set the stream website URL.
  8223. </p>
  8224. </dd>
  8225. <dt>&lsquo;<samp>ice_public</samp>&rsquo;</dt>
  8226. <dd><p>Set if the stream should be public.
  8227. The default is 0 (not public).
  8228. </p>
  8229. </dd>
  8230. <dt>&lsquo;<samp>user_agent</samp>&rsquo;</dt>
  8231. <dd><p>Override the User-Agent header. If not specified a string of the form
  8232. &quot;Lavf/&lt;version&gt;&quot; will be used.
  8233. </p>
  8234. </dd>
  8235. <dt>&lsquo;<samp>password</samp>&rsquo;</dt>
  8236. <dd><p>Set the Icecast mountpoint password.
  8237. </p>
  8238. </dd>
  8239. <dt>&lsquo;<samp>content_type</samp>&rsquo;</dt>
  8240. <dd><p>Set the stream content type. This must be set if it is different from
  8241. audio/mpeg.
  8242. </p>
  8243. </dd>
  8244. <dt>&lsquo;<samp>legacy_icecast</samp>&rsquo;</dt>
  8245. <dd><p>This enables support for Icecast versions &lt; 2.4.0, that do not support the
  8246. HTTP PUT method but the SOURCE method.
  8247. </p>
  8248. </dd>
  8249. </dl>
  8250. <div class="example">
  8251. <pre class="example">icecast://[<var>username</var>[:<var>password</var>]@]<var>server</var>:<var>port</var>/<var>mountpoint</var>
  8252. </pre></div>
  8253. <a name="mmst"></a>
  8254. <h2 class="section"><a href="ffprobe-all.html#toc-mmst">18.13 mmst</a></h2>
  8255. <p>MMS (Microsoft Media Server) protocol over TCP.
  8256. </p>
  8257. <a name="mmsh"></a>
  8258. <h2 class="section"><a href="ffprobe-all.html#toc-mmsh">18.14 mmsh</a></h2>
  8259. <p>MMS (Microsoft Media Server) protocol over HTTP.
  8260. </p>
  8261. <p>The required syntax is:
  8262. </p><div class="example">
  8263. <pre class="example">mmsh://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>]
  8264. </pre></div>
  8265. <a name="md5"></a>
  8266. <h2 class="section"><a href="ffprobe-all.html#toc-md5">18.15 md5</a></h2>
  8267. <p>MD5 output protocol.
  8268. </p>
  8269. <p>Computes the MD5 hash of the data to be written, and on close writes
  8270. this to the designated output or stdout if none is specified. It can
  8271. be used to test muxers without writing an actual file.
  8272. </p>
  8273. <p>Some examples follow.
  8274. </p><div class="example">
  8275. <pre class="example"># Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
  8276. ffmpeg -i input.flv -f avi -y md5:output.avi.md5
  8277. # Write the MD5 hash of the encoded AVI file to stdout.
  8278. ffmpeg -i input.flv -f avi -y md5:
  8279. </pre></div>
  8280. <p>Note that some formats (typically MOV) require the output protocol to
  8281. be seekable, so they will fail with the MD5 output protocol.
  8282. </p>
  8283. <a name="pipe"></a>
  8284. <h2 class="section"><a href="ffprobe-all.html#toc-pipe">18.16 pipe</a></h2>
  8285. <p>UNIX pipe access protocol.
  8286. </p>
  8287. <p>Read and write from UNIX pipes.
  8288. </p>
  8289. <p>The accepted syntax is:
  8290. </p><div class="example">
  8291. <pre class="example">pipe:[<var>number</var>]
  8292. </pre></div>
  8293. <p><var>number</var> is the number corresponding to the file descriptor of the
  8294. pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If <var>number</var>
  8295. is not specified, by default the stdout file descriptor will be used
  8296. for writing, stdin for reading.
  8297. </p>
  8298. <p>For example to read from stdin with <code>ffmpeg</code>:
  8299. </p><div class="example">
  8300. <pre class="example">cat test.wav | ffmpeg -i pipe:0
  8301. # ...this is the same as...
  8302. cat test.wav | ffmpeg -i pipe:
  8303. </pre></div>
  8304. <p>For writing to stdout with <code>ffmpeg</code>:
  8305. </p><div class="example">
  8306. <pre class="example">ffmpeg -i test.wav -f avi pipe:1 | cat &gt; test.avi
  8307. # ...this is the same as...
  8308. ffmpeg -i test.wav -f avi pipe: | cat &gt; test.avi
  8309. </pre></div>
  8310. <p>This protocol accepts the following options:
  8311. </p>
  8312. <dl compact="compact">
  8313. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  8314. <dd><p>Set I/O operation maximum block size, in bytes. Default value is
  8315. <code>INT_MAX</code>, which results in not limiting the requested block size.
  8316. Setting this value reasonably low improves user termination request reaction
  8317. time, which is valuable if data transmission is slow.
  8318. </p></dd>
  8319. </dl>
  8320. <p>Note that some formats (typically MOV), require the output protocol to
  8321. be seekable, so they will fail with the pipe output protocol.
  8322. </p>
  8323. <a name="prompeg"></a>
  8324. <h2 class="section"><a href="ffprobe-all.html#toc-prompeg">18.17 prompeg</a></h2>
  8325. <p>Pro-MPEG Code of Practice #3 Release 2 FEC protocol.
  8326. </p>
  8327. <p>The Pro-MPEG CoP#3 FEC is a 2D parity-check forward error correction mechanism
  8328. for MPEG-2 Transport Streams sent over RTP.
  8329. </p>
  8330. <p>This protocol must be used in conjunction with the <code>rtp_mpegts</code> muxer and
  8331. the <code>rtp</code> protocol.
  8332. </p>
  8333. <p>The required syntax is:
  8334. </p><div class="example">
  8335. <pre class="example">-f rtp_mpegts -fec prompeg=<var>option</var>=<var>val</var>... rtp://<var>hostname</var>:<var>port</var>
  8336. </pre></div>
  8337. <p>The destination UDP ports are <code>port + 2</code> for the column FEC stream
  8338. and <code>port + 4</code> for the row FEC stream.
  8339. </p>
  8340. <p>This protocol accepts the following options:
  8341. </p><dl compact="compact">
  8342. <dt>&lsquo;<samp>l=<var>n</var></samp>&rsquo;</dt>
  8343. <dd><p>The number of columns (4-20, LxD &lt;= 100)
  8344. </p>
  8345. </dd>
  8346. <dt>&lsquo;<samp>d=<var>n</var></samp>&rsquo;</dt>
  8347. <dd><p>The number of rows (4-20, LxD &lt;= 100)
  8348. </p>
  8349. </dd>
  8350. </dl>
  8351. <p>Example usage:
  8352. </p>
  8353. <div class="example">
  8354. <pre class="example">-f rtp_mpegts -fec prompeg=l=8:d=4 rtp://<var>hostname</var>:<var>port</var>
  8355. </pre></div>
  8356. <a name="rtmp"></a>
  8357. <h2 class="section"><a href="ffprobe-all.html#toc-rtmp">18.18 rtmp</a></h2>
  8358. <p>Real-Time Messaging Protocol.
  8359. </p>
  8360. <p>The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
  8361. content across a TCP/IP network.
  8362. </p>
  8363. <p>The required syntax is:
  8364. </p><div class="example">
  8365. <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>]
  8366. </pre></div>
  8367. <p>The accepted parameters are:
  8368. </p><dl compact="compact">
  8369. <dt>&lsquo;<samp>username</samp>&rsquo;</dt>
  8370. <dd><p>An optional username (mostly for publishing).
  8371. </p>
  8372. </dd>
  8373. <dt>&lsquo;<samp>password</samp>&rsquo;</dt>
  8374. <dd><p>An optional password (mostly for publishing).
  8375. </p>
  8376. </dd>
  8377. <dt>&lsquo;<samp>server</samp>&rsquo;</dt>
  8378. <dd><p>The address of the RTMP server.
  8379. </p>
  8380. </dd>
  8381. <dt>&lsquo;<samp>port</samp>&rsquo;</dt>
  8382. <dd><p>The number of the TCP port to use (by default is 1935).
  8383. </p>
  8384. </dd>
  8385. <dt>&lsquo;<samp>app</samp>&rsquo;</dt>
  8386. <dd><p>It is the name of the application to access. It usually corresponds to
  8387. the path where the application is installed on the RTMP server
  8388. (e.g. &lsquo;<tt>/ondemand/</tt>&rsquo;, &lsquo;<tt>/flash/live/</tt>&rsquo;, etc.). You can override
  8389. the value parsed from the URI through the <code>rtmp_app</code> option, too.
  8390. </p>
  8391. </dd>
  8392. <dt>&lsquo;<samp>playpath</samp>&rsquo;</dt>
  8393. <dd><p>It is the path or name of the resource to play with reference to the
  8394. application specified in <var>app</var>, may be prefixed by &quot;mp4:&quot;. You
  8395. can override the value parsed from the URI through the <code>rtmp_playpath</code>
  8396. option, too.
  8397. </p>
  8398. </dd>
  8399. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8400. <dd><p>Act as a server, listening for an incoming connection.
  8401. </p>
  8402. </dd>
  8403. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8404. <dd><p>Maximum time to wait for the incoming connection. Implies listen.
  8405. </p></dd>
  8406. </dl>
  8407. <p>Additionally, the following parameters can be set via command line options
  8408. (or in code via <code>AVOption</code>s):
  8409. </p><dl compact="compact">
  8410. <dt>&lsquo;<samp>rtmp_app</samp>&rsquo;</dt>
  8411. <dd><p>Name of application to connect on the RTMP server. This option
  8412. overrides the parameter specified in the URI.
  8413. </p>
  8414. </dd>
  8415. <dt>&lsquo;<samp>rtmp_buffer</samp>&rsquo;</dt>
  8416. <dd><p>Set the client buffer time in milliseconds. The default is 3000.
  8417. </p>
  8418. </dd>
  8419. <dt>&lsquo;<samp>rtmp_conn</samp>&rsquo;</dt>
  8420. <dd><p>Extra arbitrary AMF connection parameters, parsed from a string,
  8421. e.g. like <code>B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0</code>.
  8422. Each value is prefixed by a single character denoting the type,
  8423. B for Boolean, N for number, S for string, O for object, or Z for null,
  8424. followed by a colon. For Booleans the data must be either 0 or 1 for
  8425. FALSE or TRUE, respectively. Likewise for Objects the data must be 0 or
  8426. 1 to end or begin an object, respectively. Data items in subobjects may
  8427. be named, by prefixing the type with &rsquo;N&rsquo; and specifying the name before
  8428. the value (i.e. <code>NB:myFlag:1</code>). This option may be used multiple
  8429. times to construct arbitrary AMF sequences.
  8430. </p>
  8431. </dd>
  8432. <dt>&lsquo;<samp>rtmp_flashver</samp>&rsquo;</dt>
  8433. <dd><p>Version of the Flash plugin used to run the SWF player. The default
  8434. is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
  8435. &lt;libavformat version&gt;).)
  8436. </p>
  8437. </dd>
  8438. <dt>&lsquo;<samp>rtmp_flush_interval</samp>&rsquo;</dt>
  8439. <dd><p>Number of packets flushed in the same request (RTMPT only). The default
  8440. is 10.
  8441. </p>
  8442. </dd>
  8443. <dt>&lsquo;<samp>rtmp_live</samp>&rsquo;</dt>
  8444. <dd><p>Specify that the media is a live stream. No resuming or seeking in
  8445. live streams is possible. The default value is <code>any</code>, which means the
  8446. subscriber first tries to play the live stream specified in the
  8447. playpath. If a live stream of that name is not found, it plays the
  8448. recorded stream. The other possible values are <code>live</code> and
  8449. <code>recorded</code>.
  8450. </p>
  8451. </dd>
  8452. <dt>&lsquo;<samp>rtmp_pageurl</samp>&rsquo;</dt>
  8453. <dd><p>URL of the web page in which the media was embedded. By default no
  8454. value will be sent.
  8455. </p>
  8456. </dd>
  8457. <dt>&lsquo;<samp>rtmp_playpath</samp>&rsquo;</dt>
  8458. <dd><p>Stream identifier to play or to publish. This option overrides the
  8459. parameter specified in the URI.
  8460. </p>
  8461. </dd>
  8462. <dt>&lsquo;<samp>rtmp_subscribe</samp>&rsquo;</dt>
  8463. <dd><p>Name of live stream to subscribe to. By default no value will be sent.
  8464. It is only sent if the option is specified or if rtmp_live
  8465. is set to live.
  8466. </p>
  8467. </dd>
  8468. <dt>&lsquo;<samp>rtmp_swfhash</samp>&rsquo;</dt>
  8469. <dd><p>SHA256 hash of the decompressed SWF file (32 bytes).
  8470. </p>
  8471. </dd>
  8472. <dt>&lsquo;<samp>rtmp_swfsize</samp>&rsquo;</dt>
  8473. <dd><p>Size of the decompressed SWF file, required for SWFVerification.
  8474. </p>
  8475. </dd>
  8476. <dt>&lsquo;<samp>rtmp_swfurl</samp>&rsquo;</dt>
  8477. <dd><p>URL of the SWF player for the media. By default no value will be sent.
  8478. </p>
  8479. </dd>
  8480. <dt>&lsquo;<samp>rtmp_swfverify</samp>&rsquo;</dt>
  8481. <dd><p>URL to player swf file, compute hash/size automatically.
  8482. </p>
  8483. </dd>
  8484. <dt>&lsquo;<samp>rtmp_tcurl</samp>&rsquo;</dt>
  8485. <dd><p>URL of the target stream. Defaults to proto://host[:port]/app.
  8486. </p>
  8487. </dd>
  8488. </dl>
  8489. <p>For example to read with <code>ffplay</code> a multimedia resource named
  8490. &quot;sample&quot; from the application &quot;vod&quot; from an RTMP server &quot;myserver&quot;:
  8491. </p><div class="example">
  8492. <pre class="example">ffplay rtmp://myserver/vod/sample
  8493. </pre></div>
  8494. <p>To publish to a password protected server, passing the playpath and
  8495. app names separately:
  8496. </p><div class="example">
  8497. <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/
  8498. </pre></div>
  8499. <a name="rtmpe"></a>
  8500. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpe">18.19 rtmpe</a></h2>
  8501. <p>Encrypted Real-Time Messaging Protocol.
  8502. </p>
  8503. <p>The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
  8504. streaming multimedia content within standard cryptographic primitives,
  8505. consisting of Diffie-Hellman key exchange and HMACSHA256, generating
  8506. a pair of RC4 keys.
  8507. </p>
  8508. <a name="rtmps"></a>
  8509. <h2 class="section"><a href="ffprobe-all.html#toc-rtmps">18.20 rtmps</a></h2>
  8510. <p>Real-Time Messaging Protocol over a secure SSL connection.
  8511. </p>
  8512. <p>The Real-Time Messaging Protocol (RTMPS) is used for streaming
  8513. multimedia content across an encrypted connection.
  8514. </p>
  8515. <a name="rtmpt"></a>
  8516. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpt">18.21 rtmpt</a></h2>
  8517. <p>Real-Time Messaging Protocol tunneled through HTTP.
  8518. </p>
  8519. <p>The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
  8520. for streaming multimedia content within HTTP requests to traverse
  8521. firewalls.
  8522. </p>
  8523. <a name="rtmpte"></a>
  8524. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpte">18.22 rtmpte</a></h2>
  8525. <p>Encrypted Real-Time Messaging Protocol tunneled through HTTP.
  8526. </p>
  8527. <p>The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
  8528. is used for streaming multimedia content within HTTP requests to traverse
  8529. firewalls.
  8530. </p>
  8531. <a name="rtmpts"></a>
  8532. <h2 class="section"><a href="ffprobe-all.html#toc-rtmpts">18.23 rtmpts</a></h2>
  8533. <p>Real-Time Messaging Protocol tunneled through HTTPS.
  8534. </p>
  8535. <p>The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
  8536. for streaming multimedia content within HTTPS requests to traverse
  8537. firewalls.
  8538. </p>
  8539. <a name="libsmbclient"></a>
  8540. <h2 class="section"><a href="ffprobe-all.html#toc-libsmbclient">18.24 libsmbclient</a></h2>
  8541. <p>libsmbclient permits one to manipulate CIFS/SMB network resources.
  8542. </p>
  8543. <p>Following syntax is required.
  8544. </p>
  8545. <div class="example">
  8546. <pre class="example">smb://[[domain:]user[:password@]]server[/share[/path[/file]]]
  8547. </pre></div>
  8548. <p>This protocol accepts the following options.
  8549. </p>
  8550. <dl compact="compact">
  8551. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8552. <dd><p>Set timeout in milliseconds of socket I/O operations used by the underlying
  8553. low level operation. By default it is set to -1, which means that the timeout
  8554. is not specified.
  8555. </p>
  8556. </dd>
  8557. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  8558. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  8559. truncating. Default value is 1.
  8560. </p>
  8561. </dd>
  8562. <dt>&lsquo;<samp>workgroup</samp>&rsquo;</dt>
  8563. <dd><p>Set the workgroup used for making connections. By default workgroup is not specified.
  8564. </p>
  8565. </dd>
  8566. </dl>
  8567. <p>For more information see: <a href="http://www.samba.org/">http://www.samba.org/</a>.
  8568. </p>
  8569. <a name="libssh"></a>
  8570. <h2 class="section"><a href="ffprobe-all.html#toc-libssh">18.25 libssh</a></h2>
  8571. <p>Secure File Transfer Protocol via libssh
  8572. </p>
  8573. <p>Read from or write to remote resources using SFTP protocol.
  8574. </p>
  8575. <p>Following syntax is required.
  8576. </p>
  8577. <div class="example">
  8578. <pre class="example">sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
  8579. </pre></div>
  8580. <p>This protocol accepts the following options.
  8581. </p>
  8582. <dl compact="compact">
  8583. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8584. <dd><p>Set timeout of socket I/O operations used by the underlying low level
  8585. operation. By default it is set to -1, which means that the timeout
  8586. is not specified.
  8587. </p>
  8588. </dd>
  8589. <dt>&lsquo;<samp>truncate</samp>&rsquo;</dt>
  8590. <dd><p>Truncate existing files on write, if set to 1. A value of 0 prevents
  8591. truncating. Default value is 1.
  8592. </p>
  8593. </dd>
  8594. <dt>&lsquo;<samp>private_key</samp>&rsquo;</dt>
  8595. <dd><p>Specify the path of the file containing private key to use during authorization.
  8596. By default libssh searches for keys in the &lsquo;<tt>~/.ssh/</tt>&rsquo; directory.
  8597. </p>
  8598. </dd>
  8599. </dl>
  8600. <p>Example: Play a file stored on remote server.
  8601. </p>
  8602. <div class="example">
  8603. <pre class="example">ffplay sftp://user:password@server_address:22/home/user/resource.mpeg
  8604. </pre></div>
  8605. <a name="librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte"></a>
  8606. <h2 class="section"><a href="ffprobe-all.html#toc-librtmp-rtmp_002c-rtmpe_002c-rtmps_002c-rtmpt_002c-rtmpte">18.26 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte</a></h2>
  8607. <p>Real-Time Messaging Protocol and its variants supported through
  8608. librtmp.
  8609. </p>
  8610. <p>Requires the presence of the librtmp headers and library during
  8611. configuration. You need to explicitly configure the build with
  8612. &quot;&ndash;enable-librtmp&quot;. If enabled this will replace the native RTMP
  8613. protocol.
  8614. </p>
  8615. <p>This protocol provides most client functions and a few server
  8616. functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
  8617. encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
  8618. variants of these encrypted types (RTMPTE, RTMPTS).
  8619. </p>
  8620. <p>The required syntax is:
  8621. </p><div class="example">
  8622. <pre class="example"><var>rtmp_proto</var>://<var>server</var>[:<var>port</var>][/<var>app</var>][/<var>playpath</var>] <var>options</var>
  8623. </pre></div>
  8624. <p>where <var>rtmp_proto</var> is one of the strings &quot;rtmp&quot;, &quot;rtmpt&quot;, &quot;rtmpe&quot;,
  8625. &quot;rtmps&quot;, &quot;rtmpte&quot;, &quot;rtmpts&quot; corresponding to each RTMP variant, and
  8626. <var>server</var>, <var>port</var>, <var>app</var> and <var>playpath</var> have the same
  8627. meaning as specified for the RTMP native protocol.
  8628. <var>options</var> contains a list of space-separated options of the form
  8629. <var>key</var>=<var>val</var>.
  8630. </p>
  8631. <p>See the librtmp manual page (man 3 librtmp) for more information.
  8632. </p>
  8633. <p>For example, to stream a file in real-time to an RTMP server using
  8634. <code>ffmpeg</code>:
  8635. </p><div class="example">
  8636. <pre class="example">ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
  8637. </pre></div>
  8638. <p>To play the same stream using <code>ffplay</code>:
  8639. </p><div class="example">
  8640. <pre class="example">ffplay &quot;rtmp://myserver/live/mystream live=1&quot;
  8641. </pre></div>
  8642. <a name="rtp"></a>
  8643. <h2 class="section"><a href="ffprobe-all.html#toc-rtp">18.27 rtp</a></h2>
  8644. <p>Real-time Transport Protocol.
  8645. </p>
  8646. <p>The required syntax for an RTP URL is:
  8647. rtp://<var>hostname</var>[:<var>port</var>][?<var>option</var>=<var>val</var>...]
  8648. </p>
  8649. <p><var>port</var> specifies the RTP port to use.
  8650. </p>
  8651. <p>The following URL options are supported:
  8652. </p>
  8653. <dl compact="compact">
  8654. <dt>&lsquo;<samp>ttl=<var>n</var></samp>&rsquo;</dt>
  8655. <dd><p>Set the TTL (Time-To-Live) value (for multicast only).
  8656. </p>
  8657. </dd>
  8658. <dt>&lsquo;<samp>rtcpport=<var>n</var></samp>&rsquo;</dt>
  8659. <dd><p>Set the remote RTCP port to <var>n</var>.
  8660. </p>
  8661. </dd>
  8662. <dt>&lsquo;<samp>localrtpport=<var>n</var></samp>&rsquo;</dt>
  8663. <dd><p>Set the local RTP port to <var>n</var>.
  8664. </p>
  8665. </dd>
  8666. <dt>&lsquo;<samp>localrtcpport=<var>n</var>'</samp>&rsquo;</dt>
  8667. <dd><p>Set the local RTCP port to <var>n</var>.
  8668. </p>
  8669. </dd>
  8670. <dt>&lsquo;<samp>pkt_size=<var>n</var></samp>&rsquo;</dt>
  8671. <dd><p>Set max packet size (in bytes) to <var>n</var>.
  8672. </p>
  8673. </dd>
  8674. <dt>&lsquo;<samp>connect=0|1</samp>&rsquo;</dt>
  8675. <dd><p>Do a <code>connect()</code> on the UDP socket (if set to 1) or not (if set
  8676. to 0).
  8677. </p>
  8678. </dd>
  8679. <dt>&lsquo;<samp>sources=<var>ip</var>[,<var>ip</var>]</samp>&rsquo;</dt>
  8680. <dd><p>List allowed source IP addresses.
  8681. </p>
  8682. </dd>
  8683. <dt>&lsquo;<samp>block=<var>ip</var>[,<var>ip</var>]</samp>&rsquo;</dt>
  8684. <dd><p>List disallowed (blocked) source IP addresses.
  8685. </p>
  8686. </dd>
  8687. <dt>&lsquo;<samp>write_to_source=0|1</samp>&rsquo;</dt>
  8688. <dd><p>Send packets to the source address of the latest received packet (if
  8689. set to 1) or to a default remote address (if set to 0).
  8690. </p>
  8691. </dd>
  8692. <dt>&lsquo;<samp>localport=<var>n</var></samp>&rsquo;</dt>
  8693. <dd><p>Set the local RTP port to <var>n</var>.
  8694. </p>
  8695. <p>This is a deprecated option. Instead, &lsquo;<samp>localrtpport</samp>&rsquo; should be
  8696. used.
  8697. </p>
  8698. </dd>
  8699. </dl>
  8700. <p>Important notes:
  8701. </p>
  8702. <ol>
  8703. <li>
  8704. If &lsquo;<samp>rtcpport</samp>&rsquo; is not set the RTCP port will be set to the RTP
  8705. port value plus 1.
  8706. </li><li>
  8707. If &lsquo;<samp>localrtpport</samp>&rsquo; (the local RTP port) is not set any available
  8708. port will be used for the local RTP and RTCP ports.
  8709. </li><li>
  8710. If &lsquo;<samp>localrtcpport</samp>&rsquo; (the local RTCP port) is not set it will be
  8711. set to the local RTP port value plus 1.
  8712. </li></ol>
  8713. <a name="rtsp"></a>
  8714. <h2 class="section"><a href="ffprobe-all.html#toc-rtsp">18.28 rtsp</a></h2>
  8715. <p>Real-Time Streaming Protocol.
  8716. </p>
  8717. <p>RTSP is not technically a protocol handler in libavformat, it is a demuxer
  8718. and muxer. The demuxer supports both normal RTSP (with data transferred
  8719. over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
  8720. data transferred over RDT).
  8721. </p>
  8722. <p>The muxer can be used to send a stream using RTSP ANNOUNCE to a server
  8723. supporting it (currently Darwin Streaming Server and Mischa Spiegelmock&rsquo;s
  8724. <a href="https://github.com/revmischa/rtsp-server">RTSP server</a>).
  8725. </p>
  8726. <p>The required syntax for a RTSP url is:
  8727. </p><div class="example">
  8728. <pre class="example">rtsp://<var>hostname</var>[:<var>port</var>]/<var>path</var>
  8729. </pre></div>
  8730. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  8731. line, or set in code via <code>AVOption</code>s or in
  8732. <code>avformat_open_input</code>.
  8733. </p>
  8734. <p>The following options are supported.
  8735. </p>
  8736. <dl compact="compact">
  8737. <dt>&lsquo;<samp>initial_pause</samp>&rsquo;</dt>
  8738. <dd><p>Do not start playing the stream immediately if set to 1. Default value
  8739. is 0.
  8740. </p>
  8741. </dd>
  8742. <dt>&lsquo;<samp>rtsp_transport</samp>&rsquo;</dt>
  8743. <dd><p>Set RTSP transport protocols.
  8744. </p>
  8745. <p>It accepts the following values:
  8746. </p><dl compact="compact">
  8747. <dt>&lsquo;<samp>udp</samp>&rsquo;</dt>
  8748. <dd><p>Use UDP as lower transport protocol.
  8749. </p>
  8750. </dd>
  8751. <dt>&lsquo;<samp>tcp</samp>&rsquo;</dt>
  8752. <dd><p>Use TCP (interleaving within the RTSP control channel) as lower
  8753. transport protocol.
  8754. </p>
  8755. </dd>
  8756. <dt>&lsquo;<samp>udp_multicast</samp>&rsquo;</dt>
  8757. <dd><p>Use UDP multicast as lower transport protocol.
  8758. </p>
  8759. </dd>
  8760. <dt>&lsquo;<samp>http</samp>&rsquo;</dt>
  8761. <dd><p>Use HTTP tunneling as lower transport protocol, which is useful for
  8762. passing proxies.
  8763. </p></dd>
  8764. </dl>
  8765. <p>Multiple lower transport protocols may be specified, in that case they are
  8766. tried one at a time (if the setup of one fails, the next one is tried).
  8767. For the muxer, only the &lsquo;<samp>tcp</samp>&rsquo; and &lsquo;<samp>udp</samp>&rsquo; options are supported.
  8768. </p>
  8769. </dd>
  8770. <dt>&lsquo;<samp>rtsp_flags</samp>&rsquo;</dt>
  8771. <dd><p>Set RTSP flags.
  8772. </p>
  8773. <p>The following values are accepted:
  8774. </p><dl compact="compact">
  8775. <dt>&lsquo;<samp>filter_src</samp>&rsquo;</dt>
  8776. <dd><p>Accept packets only from negotiated peer address and port.
  8777. </p></dd>
  8778. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8779. <dd><p>Act as a server, listening for an incoming connection.
  8780. </p></dd>
  8781. <dt>&lsquo;<samp>prefer_tcp</samp>&rsquo;</dt>
  8782. <dd><p>Try TCP for RTP transport first, if TCP is available as RTSP RTP transport.
  8783. </p></dd>
  8784. </dl>
  8785. <p>Default value is &lsquo;<samp>none</samp>&rsquo;.
  8786. </p>
  8787. </dd>
  8788. <dt>&lsquo;<samp>allowed_media_types</samp>&rsquo;</dt>
  8789. <dd><p>Set media types to accept from the server.
  8790. </p>
  8791. <p>The following flags are accepted:
  8792. </p><dl compact="compact">
  8793. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  8794. <dt>&lsquo;<samp>audio</samp>&rsquo;</dt>
  8795. <dt>&lsquo;<samp>data</samp>&rsquo;</dt>
  8796. </dl>
  8797. <p>By default it accepts all media types.
  8798. </p>
  8799. </dd>
  8800. <dt>&lsquo;<samp>min_port</samp>&rsquo;</dt>
  8801. <dd><p>Set minimum local UDP port. Default value is 5000.
  8802. </p>
  8803. </dd>
  8804. <dt>&lsquo;<samp>max_port</samp>&rsquo;</dt>
  8805. <dd><p>Set maximum local UDP port. Default value is 65000.
  8806. </p>
  8807. </dd>
  8808. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  8809. <dd><p>Set maximum timeout (in seconds) to wait for incoming connections.
  8810. </p>
  8811. <p>A value of -1 means infinite (default). This option implies the
  8812. &lsquo;<samp>rtsp_flags</samp>&rsquo; set to &lsquo;<samp>listen</samp>&rsquo;.
  8813. </p>
  8814. </dd>
  8815. <dt>&lsquo;<samp>reorder_queue_size</samp>&rsquo;</dt>
  8816. <dd><p>Set number of packets to buffer for handling of reordered packets.
  8817. </p>
  8818. </dd>
  8819. <dt>&lsquo;<samp>stimeout</samp>&rsquo;</dt>
  8820. <dd><p>Set socket TCP I/O timeout in microseconds.
  8821. </p>
  8822. </dd>
  8823. <dt>&lsquo;<samp>user-agent</samp>&rsquo;</dt>
  8824. <dd><p>Override User-Agent header. If not specified, it defaults to the
  8825. libavformat identifier string.
  8826. </p></dd>
  8827. </dl>
  8828. <p>When receiving data over UDP, the demuxer tries to reorder received packets
  8829. (since they may arrive out of order, or packets may get lost totally). This
  8830. can be disabled by setting the maximum demuxing delay to zero (via
  8831. the <code>max_delay</code> field of AVFormatContext).
  8832. </p>
  8833. <p>When watching multi-bitrate Real-RTSP streams with <code>ffplay</code>, the
  8834. streams to display can be chosen with <code>-vst</code> <var>n</var> and
  8835. <code>-ast</code> <var>n</var> for video and audio respectively, and can be switched
  8836. on the fly by pressing <code>v</code> and <code>a</code>.
  8837. </p>
  8838. <a name="Examples-49"></a>
  8839. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-49">18.28.1 Examples</a></h3>
  8840. <p>The following examples all make use of the <code>ffplay</code> and
  8841. <code>ffmpeg</code> tools.
  8842. </p>
  8843. <ul>
  8844. <li>
  8845. Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
  8846. <div class="example">
  8847. <pre class="example">ffplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
  8848. </pre></div>
  8849. </li><li>
  8850. Watch a stream tunneled over HTTP:
  8851. <div class="example">
  8852. <pre class="example">ffplay -rtsp_transport http rtsp://server/video.mp4
  8853. </pre></div>
  8854. </li><li>
  8855. Send a stream in realtime to a RTSP server, for others to watch:
  8856. <div class="example">
  8857. <pre class="example">ffmpeg -re -i <var>input</var> -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
  8858. </pre></div>
  8859. </li><li>
  8860. Receive a stream in realtime:
  8861. <div class="example">
  8862. <pre class="example">ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp <var>output</var>
  8863. </pre></div>
  8864. </li></ul>
  8865. <a name="sap"></a>
  8866. <h2 class="section"><a href="ffprobe-all.html#toc-sap">18.29 sap</a></h2>
  8867. <p>Session Announcement Protocol (RFC 2974). This is not technically a
  8868. protocol handler in libavformat, it is a muxer and demuxer.
  8869. It is used for signalling of RTP streams, by announcing the SDP for the
  8870. streams regularly on a separate port.
  8871. </p>
  8872. <a name="Muxer"></a>
  8873. <h3 class="subsection"><a href="ffprobe-all.html#toc-Muxer">18.29.1 Muxer</a></h3>
  8874. <p>The syntax for a SAP url given to the muxer is:
  8875. </p><div class="example">
  8876. <pre class="example">sap://<var>destination</var>[:<var>port</var>][?<var>options</var>]
  8877. </pre></div>
  8878. <p>The RTP packets are sent to <var>destination</var> on port <var>port</var>,
  8879. or to port 5004 if no port is specified.
  8880. <var>options</var> is a <code>&amp;</code>-separated list. The following options
  8881. are supported:
  8882. </p>
  8883. <dl compact="compact">
  8884. <dt>&lsquo;<samp>announce_addr=<var>address</var></samp>&rsquo;</dt>
  8885. <dd><p>Specify the destination IP address for sending the announcements to.
  8886. If omitted, the announcements are sent to the commonly used SAP
  8887. announcement multicast address 224.2.127.254 (sap.mcast.net), or
  8888. ff0e::2:7ffe if <var>destination</var> is an IPv6 address.
  8889. </p>
  8890. </dd>
  8891. <dt>&lsquo;<samp>announce_port=<var>port</var></samp>&rsquo;</dt>
  8892. <dd><p>Specify the port to send the announcements on, defaults to
  8893. 9875 if not specified.
  8894. </p>
  8895. </dd>
  8896. <dt>&lsquo;<samp>ttl=<var>ttl</var></samp>&rsquo;</dt>
  8897. <dd><p>Specify the time to live value for the announcements and RTP packets,
  8898. defaults to 255.
  8899. </p>
  8900. </dd>
  8901. <dt>&lsquo;<samp>same_port=<var>0|1</var></samp>&rsquo;</dt>
  8902. <dd><p>If set to 1, send all RTP streams on the same port pair. If zero (the
  8903. default), all streams are sent on unique ports, with each stream on a
  8904. port 2 numbers higher than the previous.
  8905. VLC/Live555 requires this to be set to 1, to be able to receive the stream.
  8906. The RTP stack in libavformat for receiving requires all streams to be sent
  8907. on unique ports.
  8908. </p></dd>
  8909. </dl>
  8910. <p>Example command lines follow.
  8911. </p>
  8912. <p>To broadcast a stream on the local subnet, for watching in VLC:
  8913. </p>
  8914. <div class="example">
  8915. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255?same_port=1
  8916. </pre></div>
  8917. <p>Similarly, for watching in <code>ffplay</code>:
  8918. </p>
  8919. <div class="example">
  8920. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://224.0.0.255
  8921. </pre></div>
  8922. <p>And for watching in <code>ffplay</code>, over IPv6:
  8923. </p>
  8924. <div class="example">
  8925. <pre class="example">ffmpeg -re -i <var>input</var> -f sap sap://[ff0e::1:2:3:4]
  8926. </pre></div>
  8927. <a name="Demuxer"></a>
  8928. <h3 class="subsection"><a href="ffprobe-all.html#toc-Demuxer">18.29.2 Demuxer</a></h3>
  8929. <p>The syntax for a SAP url given to the demuxer is:
  8930. </p><div class="example">
  8931. <pre class="example">sap://[<var>address</var>][:<var>port</var>]
  8932. </pre></div>
  8933. <p><var>address</var> is the multicast address to listen for announcements on,
  8934. if omitted, the default 224.2.127.254 (sap.mcast.net) is used. <var>port</var>
  8935. is the port that is listened on, 9875 if omitted.
  8936. </p>
  8937. <p>The demuxers listens for announcements on the given address and port.
  8938. Once an announcement is received, it tries to receive that particular stream.
  8939. </p>
  8940. <p>Example command lines follow.
  8941. </p>
  8942. <p>To play back the first stream announced on the normal SAP multicast address:
  8943. </p>
  8944. <div class="example">
  8945. <pre class="example">ffplay sap://
  8946. </pre></div>
  8947. <p>To play back the first stream announced on one the default IPv6 SAP multicast address:
  8948. </p>
  8949. <div class="example">
  8950. <pre class="example">ffplay sap://[ff0e::2:7ffe]
  8951. </pre></div>
  8952. <a name="sctp"></a>
  8953. <h2 class="section"><a href="ffprobe-all.html#toc-sctp">18.30 sctp</a></h2>
  8954. <p>Stream Control Transmission Protocol.
  8955. </p>
  8956. <p>The accepted URL syntax is:
  8957. </p><div class="example">
  8958. <pre class="example">sctp://<var>host</var>:<var>port</var>[?<var>options</var>]
  8959. </pre></div>
  8960. <p>The protocol accepts the following options:
  8961. </p><dl compact="compact">
  8962. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  8963. <dd><p>If set to any value, listen for an incoming connection. Outgoing connection is done by default.
  8964. </p>
  8965. </dd>
  8966. <dt>&lsquo;<samp>max_streams</samp>&rsquo;</dt>
  8967. <dd><p>Set the maximum number of streams. By default no limit is set.
  8968. </p></dd>
  8969. </dl>
  8970. <a name="srt"></a>
  8971. <h2 class="section"><a href="ffprobe-all.html#toc-srt">18.31 srt</a></h2>
  8972. <p>Haivision Secure Reliable Transport Protocol via libsrt.
  8973. </p>
  8974. <p>The supported syntax for a SRT URL is:
  8975. </p><div class="example">
  8976. <pre class="example">srt://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  8977. </pre></div>
  8978. <p><var>options</var> contains a list of &amp;-separated options of the form
  8979. <var>key</var>=<var>val</var>.
  8980. </p>
  8981. <p>or
  8982. </p>
  8983. <div class="example">
  8984. <pre class="example"><var>options</var> srt://<var>hostname</var>:<var>port</var>
  8985. </pre></div>
  8986. <p><var>options</var> contains a list of &rsquo;-<var>key</var> <var>val</var>&rsquo;
  8987. options.
  8988. </p>
  8989. <p>This protocol accepts the following options.
  8990. </p>
  8991. <dl compact="compact">
  8992. <dt>&lsquo;<samp>connect_timeout</samp>&rsquo;</dt>
  8993. <dd><p>Connection timeout; SRT cannot connect for RTT &gt; 1500 msec
  8994. (2 handshake exchanges) with the default connect timeout of
  8995. 3 seconds. This option applies to the caller and rendezvous
  8996. connection modes. The connect timeout is 10 times the value
  8997. set for the rendezvous mode (which can be used as a
  8998. workaround for this connection problem with earlier versions).
  8999. </p>
  9000. </dd>
  9001. <dt>&lsquo;<samp>ffs=<var>bytes</var></samp>&rsquo;</dt>
  9002. <dd><p>Flight Flag Size (Window Size), in bytes. FFS is actually an
  9003. internal parameter and you should set it to not less than
  9004. &lsquo;<samp>recv_buffer_size</samp>&rsquo; and &lsquo;<samp>mss</samp>&rsquo;. The default value
  9005. is relatively large, therefore unless you set a very large receiver buffer,
  9006. you do not need to change this option. Default value is 25600.
  9007. </p>
  9008. </dd>
  9009. <dt>&lsquo;<samp>inputbw=<var>bytes/seconds</var></samp>&rsquo;</dt>
  9010. <dd><p>Sender nominal input rate, in bytes per seconds. Used along with
  9011. &lsquo;<samp>oheadbw</samp>&rsquo;, when &lsquo;<samp>maxbw</samp>&rsquo; is set to relative (0), to
  9012. calculate maximum sending rate when recovery packets are sent
  9013. along with the main media stream:
  9014. &lsquo;<samp>inputbw</samp>&rsquo; * (100 + &lsquo;<samp>oheadbw</samp>&rsquo;) / 100
  9015. if &lsquo;<samp>inputbw</samp>&rsquo; is not set while &lsquo;<samp>maxbw</samp>&rsquo; is set to
  9016. relative (0), the actual input rate is evaluated inside
  9017. the library. Default value is 0.
  9018. </p>
  9019. </dd>
  9020. <dt>&lsquo;<samp>iptos=<var>tos</var></samp>&rsquo;</dt>
  9021. <dd><p>IP Type of Service. Applies to sender only. Default value is 0xB8.
  9022. </p>
  9023. </dd>
  9024. <dt>&lsquo;<samp>ipttl=<var>ttl</var></samp>&rsquo;</dt>
  9025. <dd><p>IP Time To Live. Applies to sender only. Default value is 64.
  9026. </p>
  9027. </dd>
  9028. <dt>&lsquo;<samp>latency</samp>&rsquo;</dt>
  9029. <dd><p>Timestamp-based Packet Delivery Delay.
  9030. Used to absorb bursts of missed packet retransmissions.
  9031. This flag sets both &lsquo;<samp>rcvlatency</samp>&rsquo; and &lsquo;<samp>peerlatency</samp>&rsquo;
  9032. to the same value. Note that prior to version 1.3.0
  9033. this is the only flag to set the latency, however
  9034. this is effectively equivalent to setting &lsquo;<samp>peerlatency</samp>&rsquo;,
  9035. when side is sender and &lsquo;<samp>rcvlatency</samp>&rsquo;
  9036. when side is receiver, and the bidirectional stream
  9037. sending is not supported.
  9038. </p>
  9039. </dd>
  9040. <dt>&lsquo;<samp>listen_timeout</samp>&rsquo;</dt>
  9041. <dd><p>Set socket listen timeout.
  9042. </p>
  9043. </dd>
  9044. <dt>&lsquo;<samp>maxbw=<var>bytes/seconds</var></samp>&rsquo;</dt>
  9045. <dd><p>Maximum sending bandwidth, in bytes per seconds.
  9046. -1 infinite (CSRTCC limit is 30mbps)
  9047. 0 relative to input rate (see &lsquo;<samp>inputbw</samp>&rsquo;)
  9048. &gt;0 absolute limit value
  9049. Default value is 0 (relative)
  9050. </p>
  9051. </dd>
  9052. <dt>&lsquo;<samp>mode=<var>caller|listener|rendezvous</var></samp>&rsquo;</dt>
  9053. <dd><p>Connection mode.
  9054. &lsquo;<samp>caller</samp>&rsquo; opens client connection.
  9055. &lsquo;<samp>listener</samp>&rsquo; starts server to listen for incoming connections.
  9056. &lsquo;<samp>rendezvous</samp>&rsquo; use Rendez-Vous connection mode.
  9057. Default value is caller.
  9058. </p>
  9059. </dd>
  9060. <dt>&lsquo;<samp>mss=<var>bytes</var></samp>&rsquo;</dt>
  9061. <dd><p>Maximum Segment Size, in bytes. Used for buffer allocation
  9062. and rate calculation using a packet counter assuming fully
  9063. filled packets. The smallest MSS between the peers is
  9064. used. This is 1500 by default in the overall internet.
  9065. This is the maximum size of the UDP packet and can be
  9066. only decreased, unless you have some unusual dedicated
  9067. network settings. Default value is 1500.
  9068. </p>
  9069. </dd>
  9070. <dt>&lsquo;<samp>nakreport=<var>1|0</var></samp>&rsquo;</dt>
  9071. <dd><p>If set to 1, Receiver will send &lsquo;UMSG_LOSSREPORT&lsquo; messages
  9072. periodically until a lost packet is retransmitted or
  9073. intentionally dropped. Default value is 1.
  9074. </p>
  9075. </dd>
  9076. <dt>&lsquo;<samp>oheadbw=<var>percents</var></samp>&rsquo;</dt>
  9077. <dd><p>Recovery bandwidth overhead above input rate, in percents.
  9078. See &lsquo;<samp>inputbw</samp>&rsquo;. Default value is 25%.
  9079. </p>
  9080. </dd>
  9081. <dt>&lsquo;<samp>passphrase=<var>string</var></samp>&rsquo;</dt>
  9082. <dd><p>HaiCrypt Encryption/Decryption Passphrase string, length
  9083. from 10 to 79 characters. The passphrase is the shared
  9084. secret between the sender and the receiver. It is used
  9085. to generate the Key Encrypting Key using PBKDF2
  9086. (Password-Based Key Derivation Function). It is used
  9087. only if &lsquo;<samp>pbkeylen</samp>&rsquo; is non-zero. It is used on
  9088. the receiver only if the received data is encrypted.
  9089. The configured passphrase cannot be recovered (write-only).
  9090. </p>
  9091. </dd>
  9092. <dt>&lsquo;<samp>enforced_encryption=<var>1|0</var></samp>&rsquo;</dt>
  9093. <dd><p>If true, both connection parties must have the same password
  9094. set (including empty, that is, with no encryption). If the
  9095. password doesn&rsquo;t match or only one side is unencrypted,
  9096. the connection is rejected. Default is true.
  9097. </p>
  9098. </dd>
  9099. <dt>&lsquo;<samp>kmrefreshrate=<var>packets</var></samp>&rsquo;</dt>
  9100. <dd><p>The number of packets to be transmitted after which the
  9101. encryption key is switched to a new key. Default is -1.
  9102. -1 means auto (0x1000000 in srt library). The range for
  9103. this option is integers in the 0 - <code>INT_MAX</code>.
  9104. </p>
  9105. </dd>
  9106. <dt>&lsquo;<samp>kmpreannounce=<var>packets</var></samp>&rsquo;</dt>
  9107. <dd><p>The interval between when a new encryption key is sent and
  9108. when switchover occurs. This value also applies to the
  9109. subsequent interval between when switchover occurs and
  9110. when the old encryption key is decommissioned. Default is -1.
  9111. -1 means auto (0x1000 in srt library). The range for
  9112. this option is integers in the 0 - <code>INT_MAX</code>.
  9113. </p>
  9114. </dd>
  9115. <dt>&lsquo;<samp>payload_size=<var>bytes</var></samp>&rsquo;</dt>
  9116. <dd><p>Sets the maximum declared size of a packet transferred
  9117. during the single call to the sending function in Live
  9118. mode. Use 0 if this value isn&rsquo;t used (which is default in
  9119. file mode).
  9120. Default is -1 (automatic), which typically means MPEG-TS;
  9121. if you are going to use SRT
  9122. to send any different kind of payload, such as, for example,
  9123. wrapping a live stream in very small frames, then you can
  9124. use a bigger maximum frame size, though not greater than
  9125. 1456 bytes.
  9126. </p>
  9127. </dd>
  9128. <dt>&lsquo;<samp>pkt_size=<var>bytes</var></samp>&rsquo;</dt>
  9129. <dd><p>Alias for &lsquo;<samp>payload_size</samp>&rsquo;.
  9130. </p>
  9131. </dd>
  9132. <dt>&lsquo;<samp>peerlatency</samp>&rsquo;</dt>
  9133. <dd><p>The latency value (as described in &lsquo;<samp>rcvlatency</samp>&rsquo;) that is
  9134. set by the sender side as a minimum value for the receiver.
  9135. </p>
  9136. </dd>
  9137. <dt>&lsquo;<samp>pbkeylen=<var>bytes</var></samp>&rsquo;</dt>
  9138. <dd><p>Sender encryption key length, in bytes.
  9139. Only can be set to 0, 16, 24 and 32.
  9140. Enable sender encryption if not 0.
  9141. Not required on receiver (set to 0),
  9142. key size obtained from sender in HaiCrypt handshake.
  9143. Default value is 0.
  9144. </p>
  9145. </dd>
  9146. <dt>&lsquo;<samp>rcvlatency</samp>&rsquo;</dt>
  9147. <dd><p>The time that should elapse since the moment when the
  9148. packet was sent and the moment when it&rsquo;s delivered to
  9149. the receiver application in the receiving function.
  9150. This time should be a buffer time large enough to cover
  9151. the time spent for sending, unexpectedly extended RTT
  9152. time, and the time needed to retransmit the lost UDP
  9153. packet. The effective latency value will be the maximum
  9154. of this options&rsquo; value and the value of &lsquo;<samp>peerlatency</samp>&rsquo;
  9155. set by the peer side. Before version 1.3.0 this option
  9156. is only available as &lsquo;<samp>latency</samp>&rsquo;.
  9157. </p>
  9158. </dd>
  9159. <dt>&lsquo;<samp>recv_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9160. <dd><p>Set UDP receive buffer size, expressed in bytes.
  9161. </p>
  9162. </dd>
  9163. <dt>&lsquo;<samp>send_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9164. <dd><p>Set UDP send buffer size, expressed in bytes.
  9165. </p>
  9166. </dd>
  9167. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  9168. <dd><p>Set raise error timeouts for read, write and connect operations. Note that the
  9169. SRT library has internal timeouts which can be controlled separately, the
  9170. value set here is only a cap on those.
  9171. </p>
  9172. </dd>
  9173. <dt>&lsquo;<samp>tlpktdrop=<var>1|0</var></samp>&rsquo;</dt>
  9174. <dd><p>Too-late Packet Drop. When enabled on receiver, it skips
  9175. missing packets that have not been delivered in time and
  9176. delivers the following packets to the application when
  9177. their time-to-play has come. It also sends a fake ACK to
  9178. the sender. When enabled on sender and enabled on the
  9179. receiving peer, the sender drops the older packets that
  9180. have no chance of being delivered in time. It was
  9181. automatically enabled in the sender if the receiver
  9182. supports it.
  9183. </p>
  9184. </dd>
  9185. <dt>&lsquo;<samp>sndbuf=<var>bytes</var></samp>&rsquo;</dt>
  9186. <dd><p>Set send buffer size, expressed in bytes.
  9187. </p>
  9188. </dd>
  9189. <dt>&lsquo;<samp>rcvbuf=<var>bytes</var></samp>&rsquo;</dt>
  9190. <dd><p>Set receive buffer size, expressed in bytes.
  9191. </p>
  9192. <p>Receive buffer must not be greater than &lsquo;<samp>ffs</samp>&rsquo;.
  9193. </p>
  9194. </dd>
  9195. <dt>&lsquo;<samp>lossmaxttl=<var>packets</var></samp>&rsquo;</dt>
  9196. <dd><p>The value up to which the Reorder Tolerance may grow. When
  9197. Reorder Tolerance is &gt; 0, then packet loss report is delayed
  9198. until that number of packets come in. Reorder Tolerance
  9199. increases every time a &quot;belated&quot; packet has come, but it
  9200. wasn&rsquo;t due to retransmission (that is, when UDP packets tend
  9201. to come out of order), with the difference between the latest
  9202. sequence and this packet&rsquo;s sequence, and not more than the
  9203. value of this option. By default it&rsquo;s 0, which means that this
  9204. mechanism is turned off, and the loss report is always sent
  9205. immediately upon experiencing a &quot;gap&quot; in sequences.
  9206. </p>
  9207. </dd>
  9208. <dt>&lsquo;<samp>minversion</samp>&rsquo;</dt>
  9209. <dd><p>The minimum SRT version that is required from the peer. A connection
  9210. to a peer that does not satisfy the minimum version requirement
  9211. will be rejected.
  9212. </p>
  9213. <p>The version format in hex is 0xXXYYZZ for x.y.z in human readable
  9214. form.
  9215. </p>
  9216. </dd>
  9217. <dt>&lsquo;<samp>streamid=<var>string</var></samp>&rsquo;</dt>
  9218. <dd><p>A string limited to 512 characters that can be set on the socket prior
  9219. to connecting. This stream ID will be able to be retrieved by the
  9220. listener side from the socket that is returned from srt_accept and
  9221. was connected by a socket with that set stream ID. SRT does not enforce
  9222. any special interpretation of the contents of this string.
  9223. This option doesn’t make sense in Rendezvous connection; the result
  9224. might be that simply one side will override the value from the other
  9225. side and it’s the matter of luck which one would win
  9226. </p>
  9227. </dd>
  9228. <dt>&lsquo;<samp>smoother=<var>live|file</var></samp>&rsquo;</dt>
  9229. <dd><p>The type of Smoother used for the transmission for that socket, which
  9230. is responsible for the transmission and congestion control. The Smoother
  9231. type must be exactly the same on both connecting parties, otherwise
  9232. the connection is rejected.
  9233. </p>
  9234. </dd>
  9235. <dt>&lsquo;<samp>messageapi=<var>1|0</var></samp>&rsquo;</dt>
  9236. <dd><p>When set, this socket uses the Message API, otherwise it uses Buffer
  9237. API. Note that in live mode (see &lsquo;<samp>transtype</samp>&rsquo;) there’s only
  9238. message API available. In File mode you can chose to use one of two modes:
  9239. </p>
  9240. <p>Stream API (default, when this option is false). In this mode you may
  9241. send as many data as you wish with one sending instruction, or even use
  9242. dedicated functions that read directly from a file. The internal facility
  9243. will take care of any speed and congestion control. When receiving, you
  9244. can also receive as many data as desired, the data not extracted will be
  9245. waiting for the next call. There is no boundary between data portions in
  9246. the Stream mode.
  9247. </p>
  9248. <p>Message API. In this mode your single sending instruction passes exactly
  9249. one piece of data that has boundaries (a message). Contrary to Live mode,
  9250. this message may span across multiple UDP packets and the only size
  9251. limitation is that it shall fit as a whole in the sending buffer. The
  9252. receiver shall use as large buffer as necessary to receive the message,
  9253. otherwise the message will not be given up. When the message is not
  9254. complete (not all packets received or there was a packet loss) it will
  9255. not be given up.
  9256. </p>
  9257. </dd>
  9258. <dt>&lsquo;<samp>transtype=<var>live|file</var></samp>&rsquo;</dt>
  9259. <dd><p>Sets the transmission type for the socket, in particular, setting this
  9260. option sets multiple other parameters to their default values as required
  9261. for a particular transmission type.
  9262. </p>
  9263. <p>live: Set options as for live transmission. In this mode, you should
  9264. send by one sending instruction only so many data that fit in one UDP packet,
  9265. and limited to the value defined first in &lsquo;<samp>payload_size</samp>&rsquo; (1316 is
  9266. default in this mode). There is no speed control in this mode, only the
  9267. bandwidth control, if configured, in order to not exceed the bandwidth with
  9268. the overhead transmission (retransmitted and control packets).
  9269. </p>
  9270. <p>file: Set options as for non-live transmission. See &lsquo;<samp>messageapi</samp>&rsquo;
  9271. for further explanations
  9272. </p>
  9273. </dd>
  9274. <dt>&lsquo;<samp>linger=<var>seconds</var></samp>&rsquo;</dt>
  9275. <dd><p>The number of seconds that the socket waits for unsent data when closing.
  9276. Default is -1. -1 means auto (off with 0 seconds in live mode, on with 180
  9277. seconds in file mode). The range for this option is integers in the
  9278. 0 - <code>INT_MAX</code>.
  9279. </p>
  9280. </dd>
  9281. </dl>
  9282. <p>For more information see: <a href="https://github.com/Haivision/srt">https://github.com/Haivision/srt</a>.
  9283. </p>
  9284. <a name="srtp"></a>
  9285. <h2 class="section"><a href="ffprobe-all.html#toc-srtp">18.32 srtp</a></h2>
  9286. <p>Secure Real-time Transport Protocol.
  9287. </p>
  9288. <p>The accepted options are:
  9289. </p><dl compact="compact">
  9290. <dt>&lsquo;<samp>srtp_in_suite</samp>&rsquo;</dt>
  9291. <dt>&lsquo;<samp>srtp_out_suite</samp>&rsquo;</dt>
  9292. <dd><p>Select input and output encoding suites.
  9293. </p>
  9294. <p>Supported values:
  9295. </p><dl compact="compact">
  9296. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_80</samp>&rsquo;</dt>
  9297. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_80</samp>&rsquo;</dt>
  9298. <dt>&lsquo;<samp>AES_CM_128_HMAC_SHA1_32</samp>&rsquo;</dt>
  9299. <dt>&lsquo;<samp>SRTP_AES128_CM_HMAC_SHA1_32</samp>&rsquo;</dt>
  9300. </dl>
  9301. </dd>
  9302. <dt>&lsquo;<samp>srtp_in_params</samp>&rsquo;</dt>
  9303. <dt>&lsquo;<samp>srtp_out_params</samp>&rsquo;</dt>
  9304. <dd><p>Set input and output encoding parameters, which are expressed by a
  9305. base64-encoded representation of a binary block. The first 16 bytes of
  9306. this binary block are used as master key, the following 14 bytes are
  9307. used as master salt.
  9308. </p></dd>
  9309. </dl>
  9310. <a name="subfile"></a>
  9311. <h2 class="section"><a href="ffprobe-all.html#toc-subfile">18.33 subfile</a></h2>
  9312. <p>Virtually extract a segment of a file or another stream.
  9313. The underlying stream must be seekable.
  9314. </p>
  9315. <p>Accepted options:
  9316. </p><dl compact="compact">
  9317. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  9318. <dd><p>Start offset of the extracted segment, in bytes.
  9319. </p></dd>
  9320. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  9321. <dd><p>End offset of the extracted segment, in bytes.
  9322. If set to 0, extract till end of file.
  9323. </p></dd>
  9324. </dl>
  9325. <p>Examples:
  9326. </p>
  9327. <p>Extract a chapter from a DVD VOB file (start and end sectors obtained
  9328. externally and multiplied by 2048):
  9329. </p><div class="example">
  9330. <pre class="example">subfile,,start,153391104,end,268142592,,:/media/dvd/VIDEO_TS/VTS_08_1.VOB
  9331. </pre></div>
  9332. <p>Play an AVI file directly from a TAR archive:
  9333. </p><div class="example">
  9334. <pre class="example">subfile,,start,183241728,end,366490624,,:archive.tar
  9335. </pre></div>
  9336. <p>Play a MPEG-TS file from start offset till end:
  9337. </p><div class="example">
  9338. <pre class="example">subfile,,start,32815239,end,0,,:video.ts
  9339. </pre></div>
  9340. <a name="tee"></a>
  9341. <h2 class="section"><a href="ffprobe-all.html#toc-tee">18.34 tee</a></h2>
  9342. <p>Writes the output to multiple protocols. The individual outputs are separated
  9343. by |
  9344. </p>
  9345. <div class="example">
  9346. <pre class="example">tee:file://path/to/local/this.avi|file://path/to/local/that.avi
  9347. </pre></div>
  9348. <a name="tcp"></a>
  9349. <h2 class="section"><a href="ffprobe-all.html#toc-tcp">18.35 tcp</a></h2>
  9350. <p>Transmission Control Protocol.
  9351. </p>
  9352. <p>The required syntax for a TCP url is:
  9353. </p><div class="example">
  9354. <pre class="example">tcp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9355. </pre></div>
  9356. <p><var>options</var> contains a list of &amp;-separated options of the form
  9357. <var>key</var>=<var>val</var>.
  9358. </p>
  9359. <p>The list of supported options follows.
  9360. </p>
  9361. <dl compact="compact">
  9362. <dt>&lsquo;<samp>listen=<var>1|0</var></samp>&rsquo;</dt>
  9363. <dd><p>Listen for an incoming connection. Default value is 0.
  9364. </p>
  9365. </dd>
  9366. <dt>&lsquo;<samp>timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9367. <dd><p>Set raise error timeout, expressed in microseconds.
  9368. </p>
  9369. <p>This option is only relevant in read mode: if no data arrived in more
  9370. than this time interval, raise error.
  9371. </p>
  9372. </dd>
  9373. <dt>&lsquo;<samp>listen_timeout=<var>milliseconds</var></samp>&rsquo;</dt>
  9374. <dd><p>Set listen timeout, expressed in milliseconds.
  9375. </p>
  9376. </dd>
  9377. <dt>&lsquo;<samp>recv_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9378. <dd><p>Set receive buffer size, expressed bytes.
  9379. </p>
  9380. </dd>
  9381. <dt>&lsquo;<samp>send_buffer_size=<var>bytes</var></samp>&rsquo;</dt>
  9382. <dd><p>Set send buffer size, expressed bytes.
  9383. </p>
  9384. </dd>
  9385. <dt>&lsquo;<samp>tcp_nodelay=<var>1|0</var></samp>&rsquo;</dt>
  9386. <dd><p>Set TCP_NODELAY to disable Nagle&rsquo;s algorithm. Default value is 0.
  9387. </p>
  9388. </dd>
  9389. <dt>&lsquo;<samp>tcp_mss=<var>bytes</var></samp>&rsquo;</dt>
  9390. <dd><p>Set maximum segment size for outgoing TCP packets, expressed in bytes.
  9391. </p></dd>
  9392. </dl>
  9393. <p>The following example shows how to setup a listening TCP connection
  9394. with <code>ffmpeg</code>, which is then accessed with <code>ffplay</code>:
  9395. </p><div class="example">
  9396. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> tcp://<var>hostname</var>:<var>port</var>?listen
  9397. ffplay tcp://<var>hostname</var>:<var>port</var>
  9398. </pre></div>
  9399. <a name="tls"></a>
  9400. <h2 class="section"><a href="ffprobe-all.html#toc-tls">18.36 tls</a></h2>
  9401. <p>Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
  9402. </p>
  9403. <p>The required syntax for a TLS/SSL url is:
  9404. </p><div class="example">
  9405. <pre class="example">tls://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9406. </pre></div>
  9407. <p>The following parameters can be set via command line options
  9408. (or in code via <code>AVOption</code>s):
  9409. </p>
  9410. <dl compact="compact">
  9411. <dt>&lsquo;<samp>ca_file, cafile=<var>filename</var></samp>&rsquo;</dt>
  9412. <dd><p>A file containing certificate authority (CA) root certificates to treat
  9413. as trusted. If the linked TLS library contains a default this might not
  9414. need to be specified for verification to work, but not all libraries and
  9415. setups have defaults built in.
  9416. The file must be in OpenSSL PEM format.
  9417. </p>
  9418. </dd>
  9419. <dt>&lsquo;<samp>tls_verify=<var>1|0</var></samp>&rsquo;</dt>
  9420. <dd><p>If enabled, try to verify the peer that we are communicating with.
  9421. Note, if using OpenSSL, this currently only makes sure that the
  9422. peer certificate is signed by one of the root certificates in the CA
  9423. database, but it does not validate that the certificate actually
  9424. matches the host name we are trying to connect to. (With other backends,
  9425. the host name is validated as well.)
  9426. </p>
  9427. <p>This is disabled by default since it requires a CA database to be
  9428. provided by the caller in many cases.
  9429. </p>
  9430. </dd>
  9431. <dt>&lsquo;<samp>cert_file, cert=<var>filename</var></samp>&rsquo;</dt>
  9432. <dd><p>A file containing a certificate to use in the handshake with the peer.
  9433. (When operating as server, in listen mode, this is more often required
  9434. by the peer, while client certificates only are mandated in certain
  9435. setups.)
  9436. </p>
  9437. </dd>
  9438. <dt>&lsquo;<samp>key_file, key=<var>filename</var></samp>&rsquo;</dt>
  9439. <dd><p>A file containing the private key for the certificate.
  9440. </p>
  9441. </dd>
  9442. <dt>&lsquo;<samp>listen=<var>1|0</var></samp>&rsquo;</dt>
  9443. <dd><p>If enabled, listen for connections on the provided port, and assume
  9444. the server role in the handshake instead of the client role.
  9445. </p>
  9446. </dd>
  9447. </dl>
  9448. <p>Example command lines:
  9449. </p>
  9450. <p>To create a TLS/SSL server that serves an input stream.
  9451. </p>
  9452. <div class="example">
  9453. <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>
  9454. </pre></div>
  9455. <p>To play back a stream from the TLS/SSL server using <code>ffplay</code>:
  9456. </p>
  9457. <div class="example">
  9458. <pre class="example">ffplay tls://<var>hostname</var>:<var>port</var>
  9459. </pre></div>
  9460. <a name="udp"></a>
  9461. <h2 class="section"><a href="ffprobe-all.html#toc-udp">18.37 udp</a></h2>
  9462. <p>User Datagram Protocol.
  9463. </p>
  9464. <p>The required syntax for an UDP URL is:
  9465. </p><div class="example">
  9466. <pre class="example">udp://<var>hostname</var>:<var>port</var>[?<var>options</var>]
  9467. </pre></div>
  9468. <p><var>options</var> contains a list of &amp;-separated options of the form <var>key</var>=<var>val</var>.
  9469. </p>
  9470. <p>In case threading is enabled on the system, a circular buffer is used
  9471. to store the incoming data, which allows one to reduce loss of data due to
  9472. UDP socket buffer overruns. The <var>fifo_size</var> and
  9473. <var>overrun_nonfatal</var> options are related to this buffer.
  9474. </p>
  9475. <p>The list of supported options follows.
  9476. </p>
  9477. <dl compact="compact">
  9478. <dt>&lsquo;<samp>buffer_size=<var>size</var></samp>&rsquo;</dt>
  9479. <dd><p>Set the UDP maximum socket buffer size in bytes. This is used to set either
  9480. the receive or send buffer size, depending on what the socket is used for.
  9481. Default is 32 KB for output, 384 KB for input. See also <var>fifo_size</var>.
  9482. </p>
  9483. </dd>
  9484. <dt>&lsquo;<samp>bitrate=<var>bitrate</var></samp>&rsquo;</dt>
  9485. <dd><p>If set to nonzero, the output will have the specified constant bitrate if the
  9486. input has enough packets to sustain it.
  9487. </p>
  9488. </dd>
  9489. <dt>&lsquo;<samp>burst_bits=<var>bits</var></samp>&rsquo;</dt>
  9490. <dd><p>When using <var>bitrate</var> this specifies the maximum number of bits in
  9491. packet bursts.
  9492. </p>
  9493. </dd>
  9494. <dt>&lsquo;<samp>localport=<var>port</var></samp>&rsquo;</dt>
  9495. <dd><p>Override the local UDP port to bind with.
  9496. </p>
  9497. </dd>
  9498. <dt>&lsquo;<samp>localaddr=<var>addr</var></samp>&rsquo;</dt>
  9499. <dd><p>Local IP address of a network interface used for sending packets or joining
  9500. multicast groups.
  9501. </p>
  9502. </dd>
  9503. <dt>&lsquo;<samp>pkt_size=<var>size</var></samp>&rsquo;</dt>
  9504. <dd><p>Set the size in bytes of UDP packets.
  9505. </p>
  9506. </dd>
  9507. <dt>&lsquo;<samp>reuse=<var>1|0</var></samp>&rsquo;</dt>
  9508. <dd><p>Explicitly allow or disallow reusing UDP sockets.
  9509. </p>
  9510. </dd>
  9511. <dt>&lsquo;<samp>ttl=<var>ttl</var></samp>&rsquo;</dt>
  9512. <dd><p>Set the time to live value (for multicast only).
  9513. </p>
  9514. </dd>
  9515. <dt>&lsquo;<samp>connect=<var>1|0</var></samp>&rsquo;</dt>
  9516. <dd><p>Initialize the UDP socket with <code>connect()</code>. In this case, the
  9517. destination address can&rsquo;t be changed with ff_udp_set_remote_url later.
  9518. If the destination address isn&rsquo;t known at the start, this option can
  9519. be specified in ff_udp_set_remote_url, too.
  9520. This allows finding out the source address for the packets with getsockname,
  9521. and makes writes return with AVERROR(ECONNREFUSED) if &quot;destination
  9522. unreachable&quot; is received.
  9523. For receiving, this gives the benefit of only receiving packets from
  9524. the specified peer address/port.
  9525. </p>
  9526. </dd>
  9527. <dt>&lsquo;<samp>sources=<var>address</var>[,<var>address</var>]</samp>&rsquo;</dt>
  9528. <dd><p>Only receive packets sent from the specified addresses. In case of multicast,
  9529. also subscribe to multicast traffic coming from these addresses only.
  9530. </p>
  9531. </dd>
  9532. <dt>&lsquo;<samp>block=<var>address</var>[,<var>address</var>]</samp>&rsquo;</dt>
  9533. <dd><p>Ignore packets sent from the specified addresses. In case of multicast, also
  9534. exclude the source addresses in the multicast subscription.
  9535. </p>
  9536. </dd>
  9537. <dt>&lsquo;<samp>fifo_size=<var>units</var></samp>&rsquo;</dt>
  9538. <dd><p>Set the UDP receiving circular buffer size, expressed as a number of
  9539. packets with size of 188 bytes. If not specified defaults to 7*4096.
  9540. </p>
  9541. </dd>
  9542. <dt>&lsquo;<samp>overrun_nonfatal=<var>1|0</var></samp>&rsquo;</dt>
  9543. <dd><p>Survive in case of UDP receiving circular buffer overrun. Default
  9544. value is 0.
  9545. </p>
  9546. </dd>
  9547. <dt>&lsquo;<samp>timeout=<var>microseconds</var></samp>&rsquo;</dt>
  9548. <dd><p>Set raise error timeout, expressed in microseconds.
  9549. </p>
  9550. <p>This option is only relevant in read mode: if no data arrived in more
  9551. than this time interval, raise error.
  9552. </p>
  9553. </dd>
  9554. <dt>&lsquo;<samp>broadcast=<var>1|0</var></samp>&rsquo;</dt>
  9555. <dd><p>Explicitly allow or disallow UDP broadcasting.
  9556. </p>
  9557. <p>Note that broadcasting may not work properly on networks having
  9558. a broadcast storm protection.
  9559. </p></dd>
  9560. </dl>
  9561. <a name="Examples-19"></a>
  9562. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-19">18.37.1 Examples</a></h3>
  9563. <ul>
  9564. <li>
  9565. Use <code>ffmpeg</code> to stream over UDP to a remote endpoint:
  9566. <div class="example">
  9567. <pre class="example">ffmpeg -i <var>input</var> -f <var>format</var> udp://<var>hostname</var>:<var>port</var>
  9568. </pre></div>
  9569. </li><li>
  9570. Use <code>ffmpeg</code> to stream in mpegts format over UDP using 188
  9571. sized UDP packets, using a large input buffer:
  9572. <div class="example">
  9573. <pre class="example">ffmpeg -i <var>input</var> -f mpegts udp://<var>hostname</var>:<var>port</var>?pkt_size=188&amp;buffer_size=65535
  9574. </pre></div>
  9575. </li><li>
  9576. Use <code>ffmpeg</code> to receive over UDP from a remote endpoint:
  9577. <div class="example">
  9578. <pre class="example">ffmpeg -i udp://[<var>multicast-address</var>]:<var>port</var> ...
  9579. </pre></div>
  9580. </li></ul>
  9581. <a name="unix"></a>
  9582. <h2 class="section"><a href="ffprobe-all.html#toc-unix">18.38 unix</a></h2>
  9583. <p>Unix local socket
  9584. </p>
  9585. <p>The required syntax for a Unix socket URL is:
  9586. </p>
  9587. <div class="example">
  9588. <pre class="example">unix://<var>filepath</var>
  9589. </pre></div>
  9590. <p>The following parameters can be set via command line options
  9591. (or in code via <code>AVOption</code>s):
  9592. </p>
  9593. <dl compact="compact">
  9594. <dt>&lsquo;<samp>timeout</samp>&rsquo;</dt>
  9595. <dd><p>Timeout in ms.
  9596. </p></dd>
  9597. <dt>&lsquo;<samp>listen</samp>&rsquo;</dt>
  9598. <dd><p>Create the Unix socket in listening mode.
  9599. </p></dd>
  9600. </dl>
  9601. <a name="zmq"></a>
  9602. <h2 class="section"><a href="ffprobe-all.html#toc-zmq">18.39 zmq</a></h2>
  9603. <p>ZeroMQ asynchronous messaging using the libzmq library.
  9604. </p>
  9605. <p>This library supports unicast streaming to multiple clients without relying on
  9606. an external server.
  9607. </p>
  9608. <p>The required syntax for streaming or connecting to a stream is:
  9609. </p><div class="example">
  9610. <pre class="example">zmq:tcp://ip-address:port
  9611. </pre></div>
  9612. <p>Example:
  9613. Create a localhost stream on port 5555:
  9614. </p><div class="example">
  9615. <pre class="example">ffmpeg -re -i input -f mpegts zmq:tcp://127.0.0.1:5555
  9616. </pre></div>
  9617. <p>Multiple clients may connect to the stream using:
  9618. </p><div class="example">
  9619. <pre class="example">ffplay zmq:tcp://127.0.0.1:5555
  9620. </pre></div>
  9621. <p>Streaming to multiple clients is implemented using a ZeroMQ Pub-Sub pattern.
  9622. The server side binds to a port and publishes data. Clients connect to the
  9623. server (via IP address/port) and subscribe to the stream. The order in which
  9624. the server and client start generally does not matter.
  9625. </p>
  9626. <p>ffmpeg must be compiled with the &ndash;enable-libzmq option to support
  9627. this protocol.
  9628. </p>
  9629. <p>Options can be set on the <code>ffmpeg</code>/<code>ffplay</code> command
  9630. line. The following options are supported:
  9631. </p>
  9632. <dl compact="compact">
  9633. <dt>&lsquo;<samp>pkt_size</samp>&rsquo;</dt>
  9634. <dd><p>Forces the maximum packet size for sending/receiving data. The default value is
  9635. 32,768 bytes. On the server side, this sets the maximum size of sent packets
  9636. via ZeroMQ. On the clients, it sets an internal buffer size for receiving
  9637. packets. Note that pkt_size on the clients should be equal to or greater than
  9638. pkt_size on the server. Otherwise the received message may be truncated causing
  9639. decoding errors.
  9640. </p>
  9641. </dd>
  9642. </dl>
  9643. <a name="Device-Options"></a>
  9644. <h1 class="chapter"><a href="ffprobe-all.html#toc-Device-Options">19 Device Options</a></h1>
  9645. <p>The libavdevice library provides the same interface as
  9646. libavformat. Namely, an input device is considered like a demuxer, and
  9647. an output device like a muxer, and the interface and generic device
  9648. options are the same provided by libavformat (see the ffmpeg-formats
  9649. manual).
  9650. </p>
  9651. <p>In addition each input or output device may support so-called private
  9652. options, which are specific for that component.
  9653. </p>
  9654. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  9655. FFmpeg tools, or by setting the value explicitly in the device
  9656. <code>AVFormatContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  9657. for programmatic use.
  9658. </p>
  9659. <a name="Input-Devices"></a>
  9660. <h1 class="chapter"><a href="ffprobe-all.html#toc-Input-Devices">20 Input Devices</a></h1>
  9661. <p>Input devices are configured elements in FFmpeg which enable accessing
  9662. the data coming from a multimedia device attached to your system.
  9663. </p>
  9664. <p>When you configure your FFmpeg build, all the supported input devices
  9665. are enabled by default. You can list all available ones using the
  9666. configure option &quot;&ndash;list-indevs&quot;.
  9667. </p>
  9668. <p>You can disable all the input devices using the configure option
  9669. &quot;&ndash;disable-indevs&quot;, and selectively enable an input device using the
  9670. option &quot;&ndash;enable-indev=<var>INDEV</var>&quot;, or you can disable a particular
  9671. input device using the option &quot;&ndash;disable-indev=<var>INDEV</var>&quot;.
  9672. </p>
  9673. <p>The option &quot;-devices&quot; of the ff* tools will display the list of
  9674. supported input devices.
  9675. </p>
  9676. <p>A description of the currently available input devices follows.
  9677. </p>
  9678. <a name="alsa"></a>
  9679. <h2 class="section"><a href="ffprobe-all.html#toc-alsa">20.1 alsa</a></h2>
  9680. <p>ALSA (Advanced Linux Sound Architecture) input device.
  9681. </p>
  9682. <p>To enable this input device during configuration you need libasound
  9683. installed on your system.
  9684. </p>
  9685. <p>This device allows capturing from an ALSA device. The name of the
  9686. device to capture has to be an ALSA card identifier.
  9687. </p>
  9688. <p>An ALSA identifier has the syntax:
  9689. </p><div class="example">
  9690. <pre class="example">hw:<var>CARD</var>[,<var>DEV</var>[,<var>SUBDEV</var>]]
  9691. </pre></div>
  9692. <p>where the <var>DEV</var> and <var>SUBDEV</var> components are optional.
  9693. </p>
  9694. <p>The three arguments (in order: <var>CARD</var>,<var>DEV</var>,<var>SUBDEV</var>)
  9695. specify card number or identifier, device number and subdevice number
  9696. (-1 means any).
  9697. </p>
  9698. <p>To see the list of cards currently recognized by your system check the
  9699. files &lsquo;<tt>/proc/asound/cards</tt>&rsquo; and &lsquo;<tt>/proc/asound/devices</tt>&rsquo;.
  9700. </p>
  9701. <p>For example to capture with <code>ffmpeg</code> from an ALSA device with
  9702. card id 0, you may run the command:
  9703. </p><div class="example">
  9704. <pre class="example">ffmpeg -f alsa -i hw:0 alsaout.wav
  9705. </pre></div>
  9706. <p>For more information see:
  9707. <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>
  9708. </p>
  9709. <a name="Options-6"></a>
  9710. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-6">20.1.1 Options</a></h3>
  9711. <dl compact="compact">
  9712. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  9713. <dd><p>Set the sample rate in Hz. Default is 48000.
  9714. </p>
  9715. </dd>
  9716. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  9717. <dd><p>Set the number of channels. Default is 2.
  9718. </p>
  9719. </dd>
  9720. </dl>
  9721. <a name="android_005fcamera"></a>
  9722. <h2 class="section"><a href="ffprobe-all.html#toc-android_005fcamera">20.2 android_camera</a></h2>
  9723. <p>Android camera input device.
  9724. </p>
  9725. <p>This input devices uses the Android Camera2 NDK API which is
  9726. available on devices with API level 24+. The availability of
  9727. android_camera is autodetected during configuration.
  9728. </p>
  9729. <p>This device allows capturing from all cameras on an Android device,
  9730. which are integrated into the Camera2 NDK API.
  9731. </p>
  9732. <p>The available cameras are enumerated internally and can be selected
  9733. with the <var>camera_index</var> parameter. The input file string is
  9734. discarded.
  9735. </p>
  9736. <p>Generally the back facing camera has index 0 while the front facing
  9737. camera has index 1.
  9738. </p>
  9739. <a name="Options-33"></a>
  9740. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-33">20.2.1 Options</a></h3>
  9741. <dl compact="compact">
  9742. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  9743. <dd><p>Set the video size given as a string such as 640x480 or hd720.
  9744. Falls back to the first available configuration reported by
  9745. Android if requested video size is not available or by default.
  9746. </p>
  9747. </dd>
  9748. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  9749. <dd><p>Set the video framerate.
  9750. Falls back to the first available configuration reported by
  9751. Android if requested framerate is not available or by default (-1).
  9752. </p>
  9753. </dd>
  9754. <dt>&lsquo;<samp>camera_index</samp>&rsquo;</dt>
  9755. <dd><p>Set the index of the camera to use. Default is 0.
  9756. </p>
  9757. </dd>
  9758. <dt>&lsquo;<samp>input_queue_size</samp>&rsquo;</dt>
  9759. <dd><p>Set the maximum number of frames to buffer. Default is 5.
  9760. </p>
  9761. </dd>
  9762. </dl>
  9763. <a name="avfoundation"></a>
  9764. <h2 class="section"><a href="ffprobe-all.html#toc-avfoundation">20.3 avfoundation</a></h2>
  9765. <p>AVFoundation input device.
  9766. </p>
  9767. <p>AVFoundation is the currently recommended framework by Apple for streamgrabbing on OSX &gt;= 10.7 as well as on iOS.
  9768. </p>
  9769. <p>The input filename has to be given in the following syntax:
  9770. </p><div class="example">
  9771. <pre class="example">-i &quot;[[VIDEO]:[AUDIO]]&quot;
  9772. </pre></div>
  9773. <p>The first entry selects the video input while the latter selects the audio input.
  9774. The stream has to be specified by the device name or the device index as shown by the device list.
  9775. Alternatively, the video and/or audio input device can be chosen by index using the
  9776. &lsquo;<samp>
  9777. -video_device_index &lt;INDEX&gt;
  9778. </samp>&rsquo;
  9779. and/or
  9780. &lsquo;<samp>
  9781. -audio_device_index &lt;INDEX&gt;
  9782. </samp>&rsquo;
  9783. , overriding any
  9784. device name or index given in the input filename.
  9785. </p>
  9786. <p>All available devices can be enumerated by using &lsquo;<samp>-list_devices true</samp>&rsquo;, listing
  9787. all device names and corresponding indices.
  9788. </p>
  9789. <p>There are two device name aliases:
  9790. </p><dl compact="compact">
  9791. <dt><code>default</code></dt>
  9792. <dd><p>Select the AVFoundation default device of the corresponding type.
  9793. </p>
  9794. </dd>
  9795. <dt><code>none</code></dt>
  9796. <dd><p>Do not record the corresponding media type.
  9797. This is equivalent to specifying an empty device name or index.
  9798. </p>
  9799. </dd>
  9800. </dl>
  9801. <a name="Options-23"></a>
  9802. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-23">20.3.1 Options</a></h3>
  9803. <p>AVFoundation supports the following options:
  9804. </p>
  9805. <dl compact="compact">
  9806. <dt>&lsquo;<samp>-list_devices &lt;TRUE|FALSE&gt;</samp>&rsquo;</dt>
  9807. <dd><p>If set to true, a list of all available input devices is given showing all
  9808. device names and indices.
  9809. </p>
  9810. </dd>
  9811. <dt>&lsquo;<samp>-video_device_index &lt;INDEX&gt;</samp>&rsquo;</dt>
  9812. <dd><p>Specify the video device by its index. Overrides anything given in the input filename.
  9813. </p>
  9814. </dd>
  9815. <dt>&lsquo;<samp>-audio_device_index &lt;INDEX&gt;</samp>&rsquo;</dt>
  9816. <dd><p>Specify the audio device by its index. Overrides anything given in the input filename.
  9817. </p>
  9818. </dd>
  9819. <dt>&lsquo;<samp>-pixel_format &lt;FORMAT&gt;</samp>&rsquo;</dt>
  9820. <dd><p>Request the video device to use a specific pixel format.
  9821. If the specified format is not supported, a list of available formats is given
  9822. and the first one in this list is used instead. Available pixel formats are:
  9823. <code>monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0,
  9824. bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10,
  9825. yuv420p, nv12, yuyv422, gray</code>
  9826. </p>
  9827. </dd>
  9828. <dt>&lsquo;<samp>-framerate</samp>&rsquo;</dt>
  9829. <dd><p>Set the grabbing frame rate. Default is <code>ntsc</code>, corresponding to a
  9830. frame rate of <code>30000/1001</code>.
  9831. </p>
  9832. </dd>
  9833. <dt>&lsquo;<samp>-video_size</samp>&rsquo;</dt>
  9834. <dd><p>Set the video frame size.
  9835. </p>
  9836. </dd>
  9837. <dt>&lsquo;<samp>-capture_cursor</samp>&rsquo;</dt>
  9838. <dd><p>Capture the mouse pointer. Default is 0.
  9839. </p>
  9840. </dd>
  9841. <dt>&lsquo;<samp>-capture_mouse_clicks</samp>&rsquo;</dt>
  9842. <dd><p>Capture the screen mouse clicks. Default is 0.
  9843. </p>
  9844. </dd>
  9845. <dt>&lsquo;<samp>-capture_raw_data</samp>&rsquo;</dt>
  9846. <dd><p>Capture the raw device data. Default is 0.
  9847. 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.
  9848. </p></dd>
  9849. </dl>
  9850. <a name="Examples-22"></a>
  9851. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-22">20.3.2 Examples</a></h3>
  9852. <ul>
  9853. <li>
  9854. Print the list of AVFoundation supported devices and exit:
  9855. <div class="example">
  9856. <pre class="example">$ ffmpeg -f avfoundation -list_devices true -i &quot;&quot;
  9857. </pre></div>
  9858. </li><li>
  9859. Record video from video device 0 and audio from audio device 0 into out.avi:
  9860. <div class="example">
  9861. <pre class="example">$ ffmpeg -f avfoundation -i &quot;0:0&quot; out.avi
  9862. </pre></div>
  9863. </li><li>
  9864. Record video from video device 2 and audio from audio device 1 into out.avi:
  9865. <div class="example">
  9866. <pre class="example">$ ffmpeg -f avfoundation -video_device_index 2 -i &quot;:1&quot; out.avi
  9867. </pre></div>
  9868. </li><li>
  9869. Record video from the system default video device using the pixel format bgr0 and do not record any audio into out.avi:
  9870. <div class="example">
  9871. <pre class="example">$ ffmpeg -f avfoundation -pixel_format bgr0 -i &quot;default:none&quot; out.avi
  9872. </pre></div>
  9873. </li><li>
  9874. Record raw DV data from a suitable input device and write the output into out.dv:
  9875. <div class="example">
  9876. <pre class="example">$ ffmpeg -f avfoundation -capture_raw_data true -i &quot;zr100:none&quot; out.dv
  9877. </pre></div>
  9878. </li></ul>
  9879. <a name="bktr"></a>
  9880. <h2 class="section"><a href="ffprobe-all.html#toc-bktr">20.4 bktr</a></h2>
  9881. <p>BSD video input device.
  9882. </p>
  9883. <a name="Options-4"></a>
  9884. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-4">20.4.1 Options</a></h3>
  9885. <dl compact="compact">
  9886. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  9887. <dd><p>Set the frame rate.
  9888. </p>
  9889. </dd>
  9890. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  9891. <dd><p>Set the video frame size. Default is <code>vga</code>.
  9892. </p>
  9893. </dd>
  9894. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  9895. <dd>
  9896. <p>Available values are:
  9897. </p><dl compact="compact">
  9898. <dt>&lsquo;<samp>pal</samp>&rsquo;</dt>
  9899. <dt>&lsquo;<samp>ntsc</samp>&rsquo;</dt>
  9900. <dt>&lsquo;<samp>secam</samp>&rsquo;</dt>
  9901. <dt>&lsquo;<samp>paln</samp>&rsquo;</dt>
  9902. <dt>&lsquo;<samp>palm</samp>&rsquo;</dt>
  9903. <dt>&lsquo;<samp>ntscj</samp>&rsquo;</dt>
  9904. </dl>
  9905. </dd>
  9906. </dl>
  9907. <a name="decklink"></a>
  9908. <h2 class="section"><a href="ffprobe-all.html#toc-decklink">20.5 decklink</a></h2>
  9909. <p>The decklink input device provides capture capabilities for Blackmagic
  9910. DeckLink devices.
  9911. </p>
  9912. <p>To enable this input device, you need the Blackmagic DeckLink SDK and you
  9913. need to configure with the appropriate <code>--extra-cflags</code>
  9914. and <code>--extra-ldflags</code>.
  9915. On Windows, you need to run the IDL files through <code>widl</code>.
  9916. </p>
  9917. <p>DeckLink is very picky about the formats it supports. Pixel format of the
  9918. input can be set with &lsquo;<samp>raw_format</samp>&rsquo;.
  9919. Framerate and video size must be determined for your device with
  9920. <code>-list_formats 1</code>. Audio sample rate is always 48 kHz and the number
  9921. of channels can be 2, 8 or 16. Note that all audio channels are bundled in one single
  9922. audio track.
  9923. </p>
  9924. <a name="Options-29"></a>
  9925. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-29">20.5.1 Options</a></h3>
  9926. <dl compact="compact">
  9927. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  9928. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  9929. Defaults to &lsquo;<samp>false</samp>&rsquo;. This option is deprecated, please use the
  9930. <code>-sources</code> option of ffmpeg to list the available input devices.
  9931. </p>
  9932. </dd>
  9933. <dt>&lsquo;<samp>list_formats</samp>&rsquo;</dt>
  9934. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of supported formats and exit.
  9935. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  9936. </p>
  9937. </dd>
  9938. <dt>&lsquo;<samp>format_code &lt;FourCC&gt;</samp>&rsquo;</dt>
  9939. <dd><p>This sets the input video format to the format given by the FourCC. To see
  9940. the supported values of your device(s) use &lsquo;<samp>list_formats</samp>&rsquo;.
  9941. Note that there is a FourCC &lsquo;<samp>'pal '</samp>&rsquo; that can also be used
  9942. as &lsquo;<samp>pal</samp>&rsquo; (3 letters).
  9943. Default behavior is autodetection of the input video format, if the hardware
  9944. supports it.
  9945. </p>
  9946. </dd>
  9947. <dt>&lsquo;<samp>raw_format</samp>&rsquo;</dt>
  9948. <dd><p>Set the pixel format of the captured video.
  9949. Available values are:
  9950. </p><dl compact="compact">
  9951. <dt>&lsquo;<samp>uyvy422</samp>&rsquo;</dt>
  9952. <dt>&lsquo;<samp>yuv422p10</samp>&rsquo;</dt>
  9953. <dt>&lsquo;<samp>argb</samp>&rsquo;</dt>
  9954. <dt>&lsquo;<samp>bgra</samp>&rsquo;</dt>
  9955. <dt>&lsquo;<samp>rgb10</samp>&rsquo;</dt>
  9956. </dl>
  9957. </dd>
  9958. <dt>&lsquo;<samp>teletext_lines</samp>&rsquo;</dt>
  9959. <dd><p>If set to nonzero, an additional teletext stream will be captured from the
  9960. vertical ancillary data. Both SD PAL (576i) and HD (1080i or 1080p)
  9961. sources are supported. In case of HD sources, OP47 packets are decoded.
  9962. </p>
  9963. <p>This option is a bitmask of the SD PAL VBI lines captured, specifically lines 6
  9964. to 22, and lines 318 to 335. Line 6 is the LSB in the mask. Selected lines
  9965. which do not contain teletext information will be ignored. You can use the
  9966. special &lsquo;<samp>all</samp>&rsquo; constant to select all possible lines, or
  9967. &lsquo;<samp>standard</samp>&rsquo; to skip lines 6, 318 and 319, which are not compatible with
  9968. all receivers.
  9969. </p>
  9970. <p>For SD sources, ffmpeg needs to be compiled with <code>--enable-libzvbi</code>. For
  9971. HD sources, on older (pre-4K) DeckLink card models you have to capture in 10
  9972. bit mode.
  9973. </p>
  9974. </dd>
  9975. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  9976. <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;.
  9977. Defaults to &lsquo;<samp>2</samp>&rsquo;.
  9978. </p>
  9979. </dd>
  9980. <dt>&lsquo;<samp>duplex_mode</samp>&rsquo;</dt>
  9981. <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;.
  9982. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  9983. </p>
  9984. </dd>
  9985. <dt>&lsquo;<samp>timecode_format</samp>&rsquo;</dt>
  9986. <dd><p>Timecode type to include in the frame and video stream metadata. Must be
  9987. &lsquo;<samp>none</samp>&rsquo;, &lsquo;<samp>rp188vitc</samp>&rsquo;, &lsquo;<samp>rp188vitc2</samp>&rsquo;, &lsquo;<samp>rp188ltc</samp>&rsquo;,
  9988. &lsquo;<samp>rp188any</samp>&rsquo;, &lsquo;<samp>vitc</samp>&rsquo;, &lsquo;<samp>vitc2</samp>&rsquo;, or &lsquo;<samp>serial</samp>&rsquo;. Defaults to
  9989. &lsquo;<samp>none</samp>&rsquo; (not included).
  9990. </p>
  9991. </dd>
  9992. <dt>&lsquo;<samp>video_input</samp>&rsquo;</dt>
  9993. <dd><p>Sets the video input source. Must be &lsquo;<samp>unset</samp>&rsquo;, &lsquo;<samp>sdi</samp>&rsquo;, &lsquo;<samp>hdmi</samp>&rsquo;,
  9994. &lsquo;<samp>optical_sdi</samp>&rsquo;, &lsquo;<samp>component</samp>&rsquo;, &lsquo;<samp>composite</samp>&rsquo; or &lsquo;<samp>s_video</samp>&rsquo;.
  9995. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  9996. </p>
  9997. </dd>
  9998. <dt>&lsquo;<samp>audio_input</samp>&rsquo;</dt>
  9999. <dd><p>Sets the audio input source. Must be &lsquo;<samp>unset</samp>&rsquo;, &lsquo;<samp>embedded</samp>&rsquo;,
  10000. &lsquo;<samp>aes_ebu</samp>&rsquo;, &lsquo;<samp>analog</samp>&rsquo;, &lsquo;<samp>analog_xlr</samp>&rsquo;, &lsquo;<samp>analog_rca</samp>&rsquo; or
  10001. &lsquo;<samp>microphone</samp>&rsquo;. Defaults to &lsquo;<samp>unset</samp>&rsquo;.
  10002. </p>
  10003. </dd>
  10004. <dt>&lsquo;<samp>video_pts</samp>&rsquo;</dt>
  10005. <dd><p>Sets the video packet timestamp source. Must be &lsquo;<samp>video</samp>&rsquo;, &lsquo;<samp>audio</samp>&rsquo;,
  10006. &lsquo;<samp>reference</samp>&rsquo;, &lsquo;<samp>wallclock</samp>&rsquo; or &lsquo;<samp>abs_wallclock</samp>&rsquo;.
  10007. Defaults to &lsquo;<samp>video</samp>&rsquo;.
  10008. </p>
  10009. </dd>
  10010. <dt>&lsquo;<samp>audio_pts</samp>&rsquo;</dt>
  10011. <dd><p>Sets the audio packet timestamp source. Must be &lsquo;<samp>video</samp>&rsquo;, &lsquo;<samp>audio</samp>&rsquo;,
  10012. &lsquo;<samp>reference</samp>&rsquo;, &lsquo;<samp>wallclock</samp>&rsquo; or &lsquo;<samp>abs_wallclock</samp>&rsquo;.
  10013. Defaults to &lsquo;<samp>audio</samp>&rsquo;.
  10014. </p>
  10015. </dd>
  10016. <dt>&lsquo;<samp>draw_bars</samp>&rsquo;</dt>
  10017. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, color bars are drawn in the event of a signal loss.
  10018. Defaults to &lsquo;<samp>true</samp>&rsquo;.
  10019. </p>
  10020. </dd>
  10021. <dt>&lsquo;<samp>queue_size</samp>&rsquo;</dt>
  10022. <dd><p>Sets maximum input buffer size in bytes. If the buffering reaches this value,
  10023. incoming frames will be dropped.
  10024. Defaults to &lsquo;<samp>1073741824</samp>&rsquo;.
  10025. </p>
  10026. </dd>
  10027. <dt>&lsquo;<samp>audio_depth</samp>&rsquo;</dt>
  10028. <dd><p>Sets the audio sample bit depth. Must be &lsquo;<samp>16</samp>&rsquo; or &lsquo;<samp>32</samp>&rsquo;.
  10029. Defaults to &lsquo;<samp>16</samp>&rsquo;.
  10030. </p>
  10031. </dd>
  10032. <dt>&lsquo;<samp>decklink_copyts</samp>&rsquo;</dt>
  10033. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, timestamps are forwarded as they are without removing
  10034. the initial offset.
  10035. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10036. </p>
  10037. </dd>
  10038. <dt>&lsquo;<samp>timestamp_align</samp>&rsquo;</dt>
  10039. <dd><p>Capture start time alignment in seconds. If set to nonzero, input frames are
  10040. dropped till the system timestamp aligns with configured value.
  10041. Alignment difference of up to one frame duration is tolerated.
  10042. This is useful for maintaining input synchronization across N different
  10043. hardware devices deployed for &rsquo;N-way&rsquo; redundancy. The system time of different
  10044. hardware devices should be synchronized with protocols such as NTP or PTP,
  10045. before using this option.
  10046. Note that this method is not foolproof. In some border cases input
  10047. synchronization may not happen due to thread scheduling jitters in the OS.
  10048. Either sync could go wrong by 1 frame or in a rarer case
  10049. &lsquo;<samp>timestamp_align</samp>&rsquo; seconds.
  10050. Defaults to &lsquo;<samp>0</samp>&rsquo;.
  10051. </p>
  10052. </dd>
  10053. <dt>&lsquo;<samp>wait_for_tc (<em>bool</em>)</samp>&rsquo;</dt>
  10054. <dd><p>Drop frames till a frame with timecode is received. Sometimes serial timecode
  10055. isn&rsquo;t received with the first input frame. If that happens, the stored stream
  10056. timecode will be inaccurate. If this option is set to &lsquo;<samp>true</samp>&rsquo;, input frames
  10057. are dropped till a frame with timecode is received.
  10058. Option <var>timecode_format</var> must be specified.
  10059. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10060. </p>
  10061. </dd>
  10062. </dl>
  10063. <a name="Examples-77"></a>
  10064. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-77">20.5.2 Examples</a></h3>
  10065. <ul>
  10066. <li>
  10067. List input devices:
  10068. <div class="example">
  10069. <pre class="example">ffmpeg -sources decklink
  10070. </pre></div>
  10071. </li><li>
  10072. List supported formats:
  10073. <div class="example">
  10074. <pre class="example">ffmpeg -f decklink -list_formats 1 -i 'Intensity Pro'
  10075. </pre></div>
  10076. </li><li>
  10077. Capture video clip at 1080i50:
  10078. <div class="example">
  10079. <pre class="example">ffmpeg -format_code Hi50 -f decklink -i 'Intensity Pro' -c:a copy -c:v copy output.avi
  10080. </pre></div>
  10081. </li><li>
  10082. Capture video clip at 1080i50 10 bit:
  10083. <div class="example">
  10084. <pre class="example">ffmpeg -raw_format yuv422p10 -format_code Hi50 -f decklink -i 'UltraStudio Mini Recorder' -c:a copy -c:v copy output.avi
  10085. </pre></div>
  10086. </li><li>
  10087. Capture video clip at 1080i50 with 16 audio channels:
  10088. <div class="example">
  10089. <pre class="example">ffmpeg -channels 16 -format_code Hi50 -f decklink -i 'UltraStudio Mini Recorder' -c:a copy -c:v copy output.avi
  10090. </pre></div>
  10091. </li></ul>
  10092. <a name="dshow"></a>
  10093. <h2 class="section"><a href="ffprobe-all.html#toc-dshow">20.6 dshow</a></h2>
  10094. <p>Windows DirectShow input device.
  10095. </p>
  10096. <p>DirectShow support is enabled when FFmpeg is built with the mingw-w64 project.
  10097. Currently only audio and video devices are supported.
  10098. </p>
  10099. <p>Multiple devices may be opened as separate inputs, but they may also be
  10100. opened on the same input, which should improve synchronism between them.
  10101. </p>
  10102. <p>The input name should be in the format:
  10103. </p>
  10104. <div class="example">
  10105. <pre class="example"><var>TYPE</var>=<var>NAME</var>[:<var>TYPE</var>=<var>NAME</var>]
  10106. </pre></div>
  10107. <p>where <var>TYPE</var> can be either <var>audio</var> or <var>video</var>,
  10108. and <var>NAME</var> is the device&rsquo;s name or alternative name..
  10109. </p>
  10110. <a name="Options-18"></a>
  10111. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-18">20.6.1 Options</a></h3>
  10112. <p>If no options are specified, the device&rsquo;s defaults are used.
  10113. If the device does not support the requested options, it will
  10114. fail to open.
  10115. </p>
  10116. <dl compact="compact">
  10117. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10118. <dd><p>Set the video size in the captured video.
  10119. </p>
  10120. </dd>
  10121. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10122. <dd><p>Set the frame rate in the captured video.
  10123. </p>
  10124. </dd>
  10125. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10126. <dd><p>Set the sample rate (in Hz) of the captured audio.
  10127. </p>
  10128. </dd>
  10129. <dt>&lsquo;<samp>sample_size</samp>&rsquo;</dt>
  10130. <dd><p>Set the sample size (in bits) of the captured audio.
  10131. </p>
  10132. </dd>
  10133. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10134. <dd><p>Set the number of channels in the captured audio.
  10135. </p>
  10136. </dd>
  10137. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  10138. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  10139. </p>
  10140. </dd>
  10141. <dt>&lsquo;<samp>list_options</samp>&rsquo;</dt>
  10142. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of selected device&rsquo;s options
  10143. and exit.
  10144. </p>
  10145. </dd>
  10146. <dt>&lsquo;<samp>video_device_number</samp>&rsquo;</dt>
  10147. <dd><p>Set video device number for devices with the same name (starts at 0,
  10148. defaults to 0).
  10149. </p>
  10150. </dd>
  10151. <dt>&lsquo;<samp>audio_device_number</samp>&rsquo;</dt>
  10152. <dd><p>Set audio device number for devices with the same name (starts at 0,
  10153. defaults to 0).
  10154. </p>
  10155. </dd>
  10156. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  10157. <dd><p>Select pixel format to be used by DirectShow. This may only be set when
  10158. the video codec is not set or set to rawvideo.
  10159. </p>
  10160. </dd>
  10161. <dt>&lsquo;<samp>audio_buffer_size</samp>&rsquo;</dt>
  10162. <dd><p>Set audio device buffer size in milliseconds (which can directly
  10163. impact latency, depending on the device).
  10164. Defaults to using the audio device&rsquo;s
  10165. default buffer size (typically some multiple of 500ms).
  10166. Setting this value too low can degrade performance.
  10167. See also
  10168. <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>
  10169. </p>
  10170. </dd>
  10171. <dt>&lsquo;<samp>video_pin_name</samp>&rsquo;</dt>
  10172. <dd><p>Select video capture pin to use by name or alternative name.
  10173. </p>
  10174. </dd>
  10175. <dt>&lsquo;<samp>audio_pin_name</samp>&rsquo;</dt>
  10176. <dd><p>Select audio capture pin to use by name or alternative name.
  10177. </p>
  10178. </dd>
  10179. <dt>&lsquo;<samp>crossbar_video_input_pin_number</samp>&rsquo;</dt>
  10180. <dd><p>Select video input pin number for crossbar device. This will be
  10181. routed to the crossbar device&rsquo;s Video Decoder output pin.
  10182. Note that changing this value can affect future invocations
  10183. (sets a new default) until system reboot occurs.
  10184. </p>
  10185. </dd>
  10186. <dt>&lsquo;<samp>crossbar_audio_input_pin_number</samp>&rsquo;</dt>
  10187. <dd><p>Select audio input pin number for crossbar device. This will be
  10188. routed to the crossbar device&rsquo;s Audio Decoder output pin.
  10189. Note that changing this value can affect future invocations
  10190. (sets a new default) until system reboot occurs.
  10191. </p>
  10192. </dd>
  10193. <dt>&lsquo;<samp>show_video_device_dialog</samp>&rsquo;</dt>
  10194. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display dialog
  10195. to the end user, allowing them to change video filter properties
  10196. and configurations manually.
  10197. Note that for crossbar devices, adjusting values in this dialog
  10198. may be needed at times to toggle between PAL (25 fps) and NTSC (29.97)
  10199. input frame rates, sizes, interlacing, etc. Changing these values can
  10200. enable different scan rates/frame rates and avoiding green bars at
  10201. the bottom, flickering scan lines, etc.
  10202. Note that with some devices, changing these properties can also affect future
  10203. invocations (sets new defaults) until system reboot occurs.
  10204. </p>
  10205. </dd>
  10206. <dt>&lsquo;<samp>show_audio_device_dialog</samp>&rsquo;</dt>
  10207. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display dialog
  10208. to the end user, allowing them to change audio filter properties
  10209. and configurations manually.
  10210. </p>
  10211. </dd>
  10212. <dt>&lsquo;<samp>show_video_crossbar_connection_dialog</samp>&rsquo;</dt>
  10213. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10214. dialog to the end user, allowing them to manually
  10215. modify crossbar pin routings, when it opens a video device.
  10216. </p>
  10217. </dd>
  10218. <dt>&lsquo;<samp>show_audio_crossbar_connection_dialog</samp>&rsquo;</dt>
  10219. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10220. dialog to the end user, allowing them to manually
  10221. modify crossbar pin routings, when it opens an audio device.
  10222. </p>
  10223. </dd>
  10224. <dt>&lsquo;<samp>show_analog_tv_tuner_dialog</samp>&rsquo;</dt>
  10225. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10226. dialog to the end user, allowing them to manually
  10227. modify TV channels and frequencies.
  10228. </p>
  10229. </dd>
  10230. <dt>&lsquo;<samp>show_analog_tv_tuner_audio_dialog</samp>&rsquo;</dt>
  10231. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, before capture starts, popup a display
  10232. dialog to the end user, allowing them to manually
  10233. modify TV audio (like mono vs. stereo, Language A,B or C).
  10234. </p>
  10235. </dd>
  10236. <dt>&lsquo;<samp>audio_device_load</samp>&rsquo;</dt>
  10237. <dd><p>Load an audio capture filter device from file instead of searching
  10238. it by name. It may load additional parameters too, if the filter
  10239. supports the serialization of its properties to.
  10240. To use this an audio capture source has to be specified, but it can
  10241. be anything even fake one.
  10242. </p>
  10243. </dd>
  10244. <dt>&lsquo;<samp>audio_device_save</samp>&rsquo;</dt>
  10245. <dd><p>Save the currently used audio capture filter device and its
  10246. parameters (if the filter supports it) to a file.
  10247. If a file with the same name exists it will be overwritten.
  10248. </p>
  10249. </dd>
  10250. <dt>&lsquo;<samp>video_device_load</samp>&rsquo;</dt>
  10251. <dd><p>Load a video capture filter device from file instead of searching
  10252. it by name. It may load additional parameters too, if the filter
  10253. supports the serialization of its properties to.
  10254. To use this a video capture source has to be specified, but it can
  10255. be anything even fake one.
  10256. </p>
  10257. </dd>
  10258. <dt>&lsquo;<samp>video_device_save</samp>&rsquo;</dt>
  10259. <dd><p>Save the currently used video capture filter device and its
  10260. parameters (if the filter supports it) to a file.
  10261. If a file with the same name exists it will be overwritten.
  10262. </p>
  10263. </dd>
  10264. </dl>
  10265. <a name="Examples-65"></a>
  10266. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-65">20.6.2 Examples</a></h3>
  10267. <ul>
  10268. <li>
  10269. Print the list of DirectShow supported devices and exit:
  10270. <div class="example">
  10271. <pre class="example">$ ffmpeg -list_devices true -f dshow -i dummy
  10272. </pre></div>
  10273. </li><li>
  10274. Open video device <var>Camera</var>:
  10275. <div class="example">
  10276. <pre class="example">$ ffmpeg -f dshow -i video=&quot;Camera&quot;
  10277. </pre></div>
  10278. </li><li>
  10279. Open second video device with name <var>Camera</var>:
  10280. <div class="example">
  10281. <pre class="example">$ ffmpeg -f dshow -video_device_number 1 -i video=&quot;Camera&quot;
  10282. </pre></div>
  10283. </li><li>
  10284. Open video device <var>Camera</var> and audio device <var>Microphone</var>:
  10285. <div class="example">
  10286. <pre class="example">$ ffmpeg -f dshow -i video=&quot;Camera&quot;:audio=&quot;Microphone&quot;
  10287. </pre></div>
  10288. </li><li>
  10289. Print the list of supported options in selected device and exit:
  10290. <div class="example">
  10291. <pre class="example">$ ffmpeg -list_options true -f dshow -i video=&quot;Camera&quot;
  10292. </pre></div>
  10293. </li><li>
  10294. Specify pin names to capture by name or alternative name, specify alternative device name:
  10295. <div class="example">
  10296. <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;
  10297. </pre></div>
  10298. </li><li>
  10299. Configure a crossbar device, specifying crossbar pins, allow user to adjust video capture properties at startup:
  10300. <div class="example">
  10301. <pre class="example">$ ffmpeg -f dshow -show_video_device_dialog true -crossbar_video_input_pin_number 0
  10302. -crossbar_audio_input_pin_number 3 -i video=&quot;AVerMedia BDA Analog Capture&quot;:audio=&quot;AVerMedia BDA Analog Capture&quot;
  10303. </pre></div>
  10304. </li></ul>
  10305. <a name="fbdev"></a>
  10306. <h2 class="section"><a href="ffprobe-all.html#toc-fbdev">20.7 fbdev</a></h2>
  10307. <p>Linux framebuffer input device.
  10308. </p>
  10309. <p>The Linux framebuffer is a graphic hardware-independent abstraction
  10310. layer to show graphics on a computer monitor, typically on the
  10311. console. It is accessed through a file device node, usually
  10312. &lsquo;<tt>/dev/fb0</tt>&rsquo;.
  10313. </p>
  10314. <p>For more detailed information read the file
  10315. Documentation/fb/framebuffer.txt included in the Linux source tree.
  10316. </p>
  10317. <p>See also <a href="http://linux-fbdev.sourceforge.net/">http://linux-fbdev.sourceforge.net/</a>, and fbset(1).
  10318. </p>
  10319. <p>To record from the framebuffer device &lsquo;<tt>/dev/fb0</tt>&rsquo; with
  10320. <code>ffmpeg</code>:
  10321. </p><div class="example">
  10322. <pre class="example">ffmpeg -f fbdev -framerate 10 -i /dev/fb0 out.avi
  10323. </pre></div>
  10324. <p>You can take a single screenshot image with the command:
  10325. </p><div class="example">
  10326. <pre class="example">ffmpeg -f fbdev -framerate 1 -i /dev/fb0 -frames:v 1 screenshot.jpeg
  10327. </pre></div>
  10328. <a name="Options-21"></a>
  10329. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-21">20.7.1 Options</a></h3>
  10330. <dl compact="compact">
  10331. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10332. <dd><p>Set the frame rate. Default is 25.
  10333. </p>
  10334. </dd>
  10335. </dl>
  10336. <a name="gdigrab"></a>
  10337. <h2 class="section"><a href="ffprobe-all.html#toc-gdigrab">20.8 gdigrab</a></h2>
  10338. <p>Win32 GDI-based screen capture device.
  10339. </p>
  10340. <p>This device allows you to capture a region of the display on Windows.
  10341. </p>
  10342. <p>There are two options for the input filename:
  10343. </p><div class="example">
  10344. <pre class="example">desktop
  10345. </pre></div>
  10346. <p>or
  10347. </p><div class="example">
  10348. <pre class="example">title=<var>window_title</var>
  10349. </pre></div>
  10350. <p>The first option will capture the entire desktop, or a fixed region of the
  10351. desktop. The second option will instead capture the contents of a single
  10352. window, regardless of its position on the screen.
  10353. </p>
  10354. <p>For example, to grab the entire desktop using <code>ffmpeg</code>:
  10355. </p><div class="example">
  10356. <pre class="example">ffmpeg -f gdigrab -framerate 6 -i desktop out.mpg
  10357. </pre></div>
  10358. <p>Grab a 640x480 region at position <code>10,20</code>:
  10359. </p><div class="example">
  10360. <pre class="example">ffmpeg -f gdigrab -framerate 6 -offset_x 10 -offset_y 20 -video_size vga -i desktop out.mpg
  10361. </pre></div>
  10362. <p>Grab the contents of the window named &quot;Calculator&quot;
  10363. </p><div class="example">
  10364. <pre class="example">ffmpeg -f gdigrab -framerate 6 -i title=Calculator out.mpg
  10365. </pre></div>
  10366. <a name="Options-30"></a>
  10367. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-30">20.8.1 Options</a></h3>
  10368. <dl compact="compact">
  10369. <dt>&lsquo;<samp>draw_mouse</samp>&rsquo;</dt>
  10370. <dd><p>Specify whether to draw the mouse pointer. Use the value <code>0</code> to
  10371. not draw the pointer. Default value is <code>1</code>.
  10372. </p>
  10373. </dd>
  10374. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10375. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  10376. corresponding to a frame rate of <code>30000/1001</code>.
  10377. </p>
  10378. </dd>
  10379. <dt>&lsquo;<samp>show_region</samp>&rsquo;</dt>
  10380. <dd><p>Show grabbed region on screen.
  10381. </p>
  10382. <p>If <var>show_region</var> is specified with <code>1</code>, then the grabbing
  10383. region will be indicated on screen. With this option, it is easy to
  10384. know what is being grabbed if only a portion of the screen is grabbed.
  10385. </p>
  10386. <p>Note that <var>show_region</var> is incompatible with grabbing the contents
  10387. of a single window.
  10388. </p>
  10389. <p>For example:
  10390. </p><div class="example">
  10391. <pre class="example">ffmpeg -f gdigrab -show_region 1 -framerate 6 -video_size cif -offset_x 10 -offset_y 20 -i desktop out.mpg
  10392. </pre></div>
  10393. </dd>
  10394. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10395. <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.
  10396. </p>
  10397. </dd>
  10398. <dt>&lsquo;<samp>offset_x</samp>&rsquo;</dt>
  10399. <dd><p>When capturing a region with <var>video_size</var>, set the distance from the left edge of the screen or desktop.
  10400. </p>
  10401. <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.
  10402. </p>
  10403. </dd>
  10404. <dt>&lsquo;<samp>offset_y</samp>&rsquo;</dt>
  10405. <dd><p>When capturing a region with <var>video_size</var>, set the distance from the top edge of the screen or desktop.
  10406. </p>
  10407. <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.
  10408. </p>
  10409. </dd>
  10410. </dl>
  10411. <a name="iec61883"></a>
  10412. <h2 class="section"><a href="ffprobe-all.html#toc-iec61883">20.9 iec61883</a></h2>
  10413. <p>FireWire DV/HDV input device using libiec61883.
  10414. </p>
  10415. <p>To enable this input device, you need libiec61883, libraw1394 and
  10416. libavc1394 installed on your system. Use the configure option
  10417. <code>--enable-libiec61883</code> to compile with the device enabled.
  10418. </p>
  10419. <p>The iec61883 capture device supports capturing from a video device
  10420. connected via IEEE1394 (FireWire), using libiec61883 and the new Linux
  10421. FireWire stack (juju). This is the default DV/HDV input method in Linux
  10422. Kernel 2.6.37 and later, since the old FireWire stack was removed.
  10423. </p>
  10424. <p>Specify the FireWire port to be used as input file, or &quot;auto&quot;
  10425. to choose the first port connected.
  10426. </p>
  10427. <a name="Options-32"></a>
  10428. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-32">20.9.1 Options</a></h3>
  10429. <dl compact="compact">
  10430. <dt>&lsquo;<samp>dvtype</samp>&rsquo;</dt>
  10431. <dd><p>Override autodetection of DV/HDV. This should only be used if auto
  10432. detection does not work, or if usage of a different device type
  10433. should be prohibited. Treating a DV device as HDV (or vice versa) will
  10434. not work and result in undefined behavior.
  10435. The values &lsquo;<samp>auto</samp>&rsquo;, &lsquo;<samp>dv</samp>&rsquo; and &lsquo;<samp>hdv</samp>&rsquo; are supported.
  10436. </p>
  10437. </dd>
  10438. <dt>&lsquo;<samp>dvbuffer</samp>&rsquo;</dt>
  10439. <dd><p>Set maximum size of buffer for incoming data, in frames. For DV, this
  10440. is an exact value. For HDV, it is not frame exact, since HDV does
  10441. not have a fixed frame size.
  10442. </p>
  10443. </dd>
  10444. <dt>&lsquo;<samp>dvguid</samp>&rsquo;</dt>
  10445. <dd><p>Select the capture device by specifying its GUID. Capturing will only
  10446. be performed from the specified device and fails if no device with the
  10447. given GUID is found. This is useful to select the input if multiple
  10448. devices are connected at the same time.
  10449. Look at /sys/bus/firewire/devices to find out the GUIDs.
  10450. </p>
  10451. </dd>
  10452. </dl>
  10453. <a name="Examples-117"></a>
  10454. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-117">20.9.2 Examples</a></h3>
  10455. <ul>
  10456. <li>
  10457. Grab and show the input of a FireWire DV/HDV device.
  10458. <div class="example">
  10459. <pre class="example">ffplay -f iec61883 -i auto
  10460. </pre></div>
  10461. </li><li>
  10462. Grab and record the input of a FireWire DV/HDV device,
  10463. using a packet buffer of 100000 packets if the source is HDV.
  10464. <div class="example">
  10465. <pre class="example">ffmpeg -f iec61883 -i auto -dvbuffer 100000 out.mpg
  10466. </pre></div>
  10467. </li></ul>
  10468. <a name="jack"></a>
  10469. <h2 class="section"><a href="ffprobe-all.html#toc-jack">20.10 jack</a></h2>
  10470. <p>JACK input device.
  10471. </p>
  10472. <p>To enable this input device during configuration you need libjack
  10473. installed on your system.
  10474. </p>
  10475. <p>A JACK input device creates one or more JACK writable clients, one for
  10476. each audio channel, with name <var>client_name</var>:input_<var>N</var>, where
  10477. <var>client_name</var> is the name provided by the application, and <var>N</var>
  10478. is a number which identifies the channel.
  10479. Each writable client will send the acquired data to the FFmpeg input
  10480. device.
  10481. </p>
  10482. <p>Once you have created one or more JACK readable clients, you need to
  10483. connect them to one or more JACK writable clients.
  10484. </p>
  10485. <p>To connect or disconnect JACK clients you can use the <code>jack_connect</code>
  10486. and <code>jack_disconnect</code> programs, or do it through a graphical interface,
  10487. for example with <code>qjackctl</code>.
  10488. </p>
  10489. <p>To list the JACK clients and their properties you can invoke the command
  10490. <code>jack_lsp</code>.
  10491. </p>
  10492. <p>Follows an example which shows how to capture a JACK readable client
  10493. with <code>ffmpeg</code>.
  10494. </p><div class="example">
  10495. <pre class="example"># Create a JACK writable client with name &quot;ffmpeg&quot;.
  10496. $ ffmpeg -f jack -i ffmpeg -y out.wav
  10497. # Start the sample jack_metro readable client.
  10498. $ jack_metro -b 120 -d 0.2 -f 4000
  10499. # List the current JACK clients.
  10500. $ jack_lsp -c
  10501. system:capture_1
  10502. system:capture_2
  10503. system:playback_1
  10504. system:playback_2
  10505. ffmpeg:input_1
  10506. metro:120_bpm
  10507. # Connect metro to the ffmpeg writable client.
  10508. $ jack_connect metro:120_bpm ffmpeg:input_1
  10509. </pre></div>
  10510. <p>For more information read:
  10511. <a href="http://jackaudio.org/">http://jackaudio.org/</a>
  10512. </p>
  10513. <a name="Options-8"></a>
  10514. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-8">20.10.1 Options</a></h3>
  10515. <dl compact="compact">
  10516. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10517. <dd><p>Set the number of channels. Default is 2.
  10518. </p>
  10519. </dd>
  10520. </dl>
  10521. <a name="kmsgrab"></a>
  10522. <h2 class="section"><a href="ffprobe-all.html#toc-kmsgrab">20.11 kmsgrab</a></h2>
  10523. <p>KMS video input device.
  10524. </p>
  10525. <p>Captures the KMS scanout framebuffer associated with a specified CRTC or plane as a
  10526. DRM object that can be passed to other hardware functions.
  10527. </p>
  10528. <p>Requires either DRM master or CAP_SYS_ADMIN to run.
  10529. </p>
  10530. <p>If you don&rsquo;t understand what all of that means, you probably don&rsquo;t want this. Look at
  10531. &lsquo;<samp>x11grab</samp>&rsquo; instead.
  10532. </p>
  10533. <a name="Options-14"></a>
  10534. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-14">20.11.1 Options</a></h3>
  10535. <dl compact="compact">
  10536. <dt>&lsquo;<samp>device</samp>&rsquo;</dt>
  10537. <dd><p>DRM device to capture on. Defaults to &lsquo;<samp>/dev/dri/card0</samp>&rsquo;.
  10538. </p>
  10539. </dd>
  10540. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  10541. <dd><p>Pixel format of the framebuffer. Defaults to &lsquo;<samp>bgr0</samp>&rsquo;.
  10542. </p>
  10543. </dd>
  10544. <dt>&lsquo;<samp>format_modifier</samp>&rsquo;</dt>
  10545. <dd><p>Format modifier to signal on output frames. This is necessary to import correctly into
  10546. some APIs, but can&rsquo;t be autodetected. See the libdrm documentation for possible values.
  10547. </p>
  10548. </dd>
  10549. <dt>&lsquo;<samp>crtc_id</samp>&rsquo;</dt>
  10550. <dd><p>KMS CRTC ID to define the capture source. The first active plane on the given CRTC
  10551. will be used.
  10552. </p>
  10553. </dd>
  10554. <dt>&lsquo;<samp>plane_id</samp>&rsquo;</dt>
  10555. <dd><p>KMS plane ID to define the capture source. Defaults to the first active plane found if
  10556. neither &lsquo;<samp>crtc_id</samp>&rsquo; nor &lsquo;<samp>plane_id</samp>&rsquo; are specified.
  10557. </p>
  10558. </dd>
  10559. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10560. <dd><p>Framerate to capture at. This is not synchronised to any page flipping or framebuffer
  10561. changes - it just defines the interval at which the framebuffer is sampled. Sampling
  10562. faster than the framebuffer update rate will generate independent frames with the same
  10563. content. Defaults to <code>30</code>.
  10564. </p>
  10565. </dd>
  10566. </dl>
  10567. <a name="Examples-7"></a>
  10568. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-7">20.11.2 Examples</a></h3>
  10569. <ul>
  10570. <li>
  10571. Capture from the first active plane, download the result to normal frames and encode.
  10572. This will only work if the framebuffer is both linear and mappable - if not, the result
  10573. may be scrambled or fail to download.
  10574. <div class="example">
  10575. <pre class="example">ffmpeg -f kmsgrab -i - -vf 'hwdownload,format=bgr0' output.mp4
  10576. </pre></div>
  10577. </li><li>
  10578. Capture from CRTC ID 42 at 60fps, map the result to VAAPI, convert to NV12 and encode as H.264.
  10579. <div class="example">
  10580. <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
  10581. </pre></div>
  10582. </li><li>
  10583. To capture only part of a plane the output can be cropped - this can be used to capture
  10584. a single window, as long as it has a known absolute position and size. For example, to
  10585. capture and encode the middle quarter of a 1920x1080 plane:
  10586. <div class="example">
  10587. <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
  10588. </pre></div>
  10589. </li></ul>
  10590. <a name="lavfi"></a>
  10591. <h2 class="section"><a href="ffprobe-all.html#toc-lavfi">20.12 lavfi</a></h2>
  10592. <p>Libavfilter input virtual device.
  10593. </p>
  10594. <p>This input device reads data from the open output pads of a libavfilter
  10595. filtergraph.
  10596. </p>
  10597. <p>For each filtergraph open output, the input device will create a
  10598. corresponding stream which is mapped to the generated output. Currently
  10599. only video data is supported. The filtergraph is specified through the
  10600. option &lsquo;<samp>graph</samp>&rsquo;.
  10601. </p>
  10602. <a name="Options-5"></a>
  10603. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-5">20.12.1 Options</a></h3>
  10604. <dl compact="compact">
  10605. <dt>&lsquo;<samp>graph</samp>&rsquo;</dt>
  10606. <dd><p>Specify the filtergraph to use as input. Each video open output must be
  10607. labelled by a unique string of the form &quot;out<var>N</var>&quot;, where <var>N</var> is a
  10608. number starting from 0 corresponding to the mapped input stream
  10609. generated by the device.
  10610. The first unlabelled output is automatically assigned to the &quot;out0&quot;
  10611. label, but all the others need to be specified explicitly.
  10612. </p>
  10613. <p>The suffix &quot;+subcc&quot; can be appended to the output label to create an extra
  10614. stream with the closed captions packets attached to that output
  10615. (experimental; only for EIA-608 / CEA-708 for now).
  10616. The subcc streams are created after all the normal streams, in the order of
  10617. the corresponding stream.
  10618. For example, if there is &quot;out19+subcc&quot;, &quot;out7+subcc&quot; and up to &quot;out42&quot;, the
  10619. stream #43 is subcc for stream #7 and stream #44 is subcc for stream #19.
  10620. </p>
  10621. <p>If not specified defaults to the filename specified for the input
  10622. device.
  10623. </p>
  10624. </dd>
  10625. <dt>&lsquo;<samp>graph_file</samp>&rsquo;</dt>
  10626. <dd><p>Set the filename of the filtergraph to be read and sent to the other
  10627. filters. Syntax of the filtergraph is the same as the one specified by
  10628. the option <var>graph</var>.
  10629. </p>
  10630. </dd>
  10631. <dt>&lsquo;<samp>dumpgraph</samp>&rsquo;</dt>
  10632. <dd><p>Dump graph to stderr.
  10633. </p>
  10634. </dd>
  10635. </dl>
  10636. <a name="Examples-106"></a>
  10637. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-106">20.12.2 Examples</a></h3>
  10638. <ul>
  10639. <li>
  10640. Create a color video stream and play it back with <code>ffplay</code>:
  10641. <div class="example">
  10642. <pre class="example">ffplay -f lavfi -graph &quot;color=c=pink [out0]&quot; dummy
  10643. </pre></div>
  10644. </li><li>
  10645. As the previous example, but use filename for specifying the graph
  10646. description, and omit the &quot;out0&quot; label:
  10647. <div class="example">
  10648. <pre class="example">ffplay -f lavfi color=c=pink
  10649. </pre></div>
  10650. </li><li>
  10651. Create three different video test filtered sources and play them:
  10652. <div class="example">
  10653. <pre class="example">ffplay -f lavfi -graph &quot;testsrc [out0]; testsrc,hflip [out1]; testsrc,negate [out2]&quot; test3
  10654. </pre></div>
  10655. </li><li>
  10656. Read an audio stream from a file using the amovie source and play it
  10657. back with <code>ffplay</code>:
  10658. <div class="example">
  10659. <pre class="example">ffplay -f lavfi &quot;amovie=test.wav&quot;
  10660. </pre></div>
  10661. </li><li>
  10662. Read an audio stream and a video stream and play it back with
  10663. <code>ffplay</code>:
  10664. <div class="example">
  10665. <pre class="example">ffplay -f lavfi &quot;movie=test.avi[out0];amovie=test.wav[out1]&quot;
  10666. </pre></div>
  10667. </li><li>
  10668. Dump decoded frames to images and closed captions to a file (experimental):
  10669. <div class="example">
  10670. <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
  10671. </pre></div>
  10672. </li></ul>
  10673. <a name="libcdio"></a>
  10674. <h2 class="section"><a href="ffprobe-all.html#toc-libcdio">20.13 libcdio</a></h2>
  10675. <p>Audio-CD input device based on libcdio.
  10676. </p>
  10677. <p>To enable this input device during configuration you need libcdio
  10678. installed on your system. It requires the configure option
  10679. <code>--enable-libcdio</code>.
  10680. </p>
  10681. <p>This device allows playing and grabbing from an Audio-CD.
  10682. </p>
  10683. <p>For example to copy with <code>ffmpeg</code> the entire Audio-CD in &lsquo;<tt>/dev/sr0</tt>&rsquo;,
  10684. you may run the command:
  10685. </p><div class="example">
  10686. <pre class="example">ffmpeg -f libcdio -i /dev/sr0 cd.wav
  10687. </pre></div>
  10688. <a name="Options-19"></a>
  10689. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-19">20.13.1 Options</a></h3>
  10690. <dl compact="compact">
  10691. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  10692. <dd><p>Set drive reading speed. Default value is 0.
  10693. </p>
  10694. <p>The speed is specified CD-ROM speed units. The speed is set through
  10695. the libcdio <code>cdio_cddap_speed_set</code> function. On many CD-ROM
  10696. drives, specifying a value too large will result in using the fastest
  10697. speed.
  10698. </p>
  10699. </dd>
  10700. <dt>&lsquo;<samp>paranoia_mode</samp>&rsquo;</dt>
  10701. <dd><p>Set paranoia recovery mode flags. It accepts one of the following values:
  10702. </p>
  10703. <dl compact="compact">
  10704. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  10705. <dt>&lsquo;<samp>verify</samp>&rsquo;</dt>
  10706. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  10707. <dt>&lsquo;<samp>neverskip</samp>&rsquo;</dt>
  10708. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  10709. </dl>
  10710. <p>Default value is &lsquo;<samp>disable</samp>&rsquo;.
  10711. </p>
  10712. <p>For more information about the available recovery modes, consult the
  10713. paranoia project documentation.
  10714. </p></dd>
  10715. </dl>
  10716. <a name="libdc1394"></a>
  10717. <h2 class="section"><a href="ffprobe-all.html#toc-libdc1394">20.14 libdc1394</a></h2>
  10718. <p>IIDC1394 input device, based on libdc1394 and libraw1394.
  10719. </p>
  10720. <p>Requires the configure option <code>--enable-libdc1394</code>.
  10721. </p>
  10722. <a name="Options-10"></a>
  10723. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-10">20.14.1 Options</a></h3>
  10724. <dl compact="compact">
  10725. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  10726. <dd><p>Set the frame rate. Default is <code>ntsc</code>, corresponding to a frame
  10727. rate of <code>30000/1001</code>.
  10728. </p>
  10729. </dd>
  10730. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  10731. <dd><p>Select the pixel format. Default is <code>uyvy422</code>.
  10732. </p>
  10733. </dd>
  10734. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  10735. <dd><p>Set the video size given as a string such as <code>640x480</code> or <code>hd720</code>.
  10736. Default is <code>qvga</code>.
  10737. </p></dd>
  10738. </dl>
  10739. <a name="openal"></a>
  10740. <h2 class="section"><a href="ffprobe-all.html#toc-openal">20.15 openal</a></h2>
  10741. <p>The OpenAL input device provides audio capture on all systems with a
  10742. working OpenAL 1.1 implementation.
  10743. </p>
  10744. <p>To enable this input device during configuration, you need OpenAL
  10745. headers and libraries installed on your system, and need to configure
  10746. FFmpeg with <code>--enable-openal</code>.
  10747. </p>
  10748. <p>OpenAL headers and libraries should be provided as part of your OpenAL
  10749. implementation, or as an additional download (an SDK). Depending on your
  10750. installation you may need to specify additional flags via the
  10751. <code>--extra-cflags</code> and <code>--extra-ldflags</code> for allowing the build
  10752. system to locate the OpenAL headers and libraries.
  10753. </p>
  10754. <p>An incomplete list of OpenAL implementations follows:
  10755. </p>
  10756. <dl compact="compact">
  10757. <dt><strong>Creative</strong></dt>
  10758. <dd><p>The official Windows implementation, providing hardware acceleration
  10759. with supported devices and software fallback.
  10760. See <a href="http://openal.org/">http://openal.org/</a>.
  10761. </p></dd>
  10762. <dt><strong>OpenAL Soft</strong></dt>
  10763. <dd><p>Portable, open source (LGPL) software implementation. Includes
  10764. backends for the most common sound APIs on the Windows, Linux,
  10765. Solaris, and BSD operating systems.
  10766. See <a href="http://kcat.strangesoft.net/openal.html">http://kcat.strangesoft.net/openal.html</a>.
  10767. </p></dd>
  10768. <dt><strong>Apple</strong></dt>
  10769. <dd><p>OpenAL is part of Core Audio, the official Mac OS X Audio interface.
  10770. See <a href="http://developer.apple.com/technologies/mac/audio-and-video.html">http://developer.apple.com/technologies/mac/audio-and-video.html</a>
  10771. </p></dd>
  10772. </dl>
  10773. <p>This device allows one to capture from an audio input device handled
  10774. through OpenAL.
  10775. </p>
  10776. <p>You need to specify the name of the device to capture in the provided
  10777. filename. If the empty string is provided, the device will
  10778. automatically select the default device. You can get the list of the
  10779. supported devices by using the option <var>list_devices</var>.
  10780. </p>
  10781. <a name="Options-7"></a>
  10782. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-7">20.15.1 Options</a></h3>
  10783. <dl compact="compact">
  10784. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10785. <dd><p>Set the number of channels in the captured audio. Only the values
  10786. &lsquo;<samp>1</samp>&rsquo; (monaural) and &lsquo;<samp>2</samp>&rsquo; (stereo) are currently supported.
  10787. Defaults to &lsquo;<samp>2</samp>&rsquo;.
  10788. </p>
  10789. </dd>
  10790. <dt>&lsquo;<samp>sample_size</samp>&rsquo;</dt>
  10791. <dd><p>Set the sample size (in bits) of the captured audio. Only the values
  10792. &lsquo;<samp>8</samp>&rsquo; and &lsquo;<samp>16</samp>&rsquo; are currently supported. Defaults to
  10793. &lsquo;<samp>16</samp>&rsquo;.
  10794. </p>
  10795. </dd>
  10796. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10797. <dd><p>Set the sample rate (in Hz) of the captured audio.
  10798. Defaults to &lsquo;<samp>44.1k</samp>&rsquo;.
  10799. </p>
  10800. </dd>
  10801. <dt>&lsquo;<samp>list_devices</samp>&rsquo;</dt>
  10802. <dd><p>If set to &lsquo;<samp>true</samp>&rsquo;, print a list of devices and exit.
  10803. Defaults to &lsquo;<samp>false</samp>&rsquo;.
  10804. </p>
  10805. </dd>
  10806. </dl>
  10807. <a name="Examples-15"></a>
  10808. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-15">20.15.2 Examples</a></h3>
  10809. <p>Print the list of OpenAL supported devices and exit:
  10810. </p><div class="example">
  10811. <pre class="example">$ ffmpeg -list_devices true -f openal -i dummy out.ogg
  10812. </pre></div>
  10813. <p>Capture from the OpenAL device &lsquo;<tt>DR-BT101 via PulseAudio</tt>&rsquo;:
  10814. </p><div class="example">
  10815. <pre class="example">$ ffmpeg -f openal -i 'DR-BT101 via PulseAudio' out.ogg
  10816. </pre></div>
  10817. <p>Capture from the default device (note the empty string &rdquo; as filename):
  10818. </p><div class="example">
  10819. <pre class="example">$ ffmpeg -f openal -i '' out.ogg
  10820. </pre></div>
  10821. <p>Capture from two devices simultaneously, writing to two different files,
  10822. within the same <code>ffmpeg</code> command:
  10823. </p><div class="example">
  10824. <pre class="example">$ ffmpeg -f openal -i 'DR-BT101 via PulseAudio' out1.ogg -f openal -i 'ALSA Default' out2.ogg
  10825. </pre></div>
  10826. <p>Note: not all OpenAL implementations support multiple simultaneous capture -
  10827. try the latest OpenAL Soft if the above does not work.
  10828. </p>
  10829. <a name="oss"></a>
  10830. <h2 class="section"><a href="ffprobe-all.html#toc-oss">20.16 oss</a></h2>
  10831. <p>Open Sound System input device.
  10832. </p>
  10833. <p>The filename to provide to the input device is the device node
  10834. representing the OSS input device, and is usually set to
  10835. &lsquo;<tt>/dev/dsp</tt>&rsquo;.
  10836. </p>
  10837. <p>For example to grab from &lsquo;<tt>/dev/dsp</tt>&rsquo; using <code>ffmpeg</code> use the
  10838. command:
  10839. </p><div class="example">
  10840. <pre class="example">ffmpeg -f oss -i /dev/dsp /tmp/oss.wav
  10841. </pre></div>
  10842. <p>For more information about OSS see:
  10843. <a href="http://manuals.opensound.com/usersguide/dsp.html">http://manuals.opensound.com/usersguide/dsp.html</a>
  10844. </p>
  10845. <a name="Options-25"></a>
  10846. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-25">20.16.1 Options</a></h3>
  10847. <dl compact="compact">
  10848. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10849. <dd><p>Set the sample rate in Hz. Default is 48000.
  10850. </p>
  10851. </dd>
  10852. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10853. <dd><p>Set the number of channels. Default is 2.
  10854. </p>
  10855. </dd>
  10856. </dl>
  10857. <a name="pulse"></a>
  10858. <h2 class="section"><a href="ffprobe-all.html#toc-pulse">20.17 pulse</a></h2>
  10859. <p>PulseAudio input device.
  10860. </p>
  10861. <p>To enable this output device you need to configure FFmpeg with <code>--enable-libpulse</code>.
  10862. </p>
  10863. <p>The filename to provide to the input device is a source device or the
  10864. string &quot;default&quot;
  10865. </p>
  10866. <p>To list the PulseAudio source devices and their properties you can invoke
  10867. the command <code>pactl list sources</code>.
  10868. </p>
  10869. <p>More information about PulseAudio can be found on <a href="http://www.pulseaudio.org">http://www.pulseaudio.org</a>.
  10870. </p>
  10871. <a name="Options-20"></a>
  10872. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-20">20.17.1 Options</a></h3>
  10873. <dl compact="compact">
  10874. <dt>&lsquo;<samp>server</samp>&rsquo;</dt>
  10875. <dd><p>Connect to a specific PulseAudio server, specified by an IP address.
  10876. Default server is used when not provided.
  10877. </p>
  10878. </dd>
  10879. <dt>&lsquo;<samp>name</samp>&rsquo;</dt>
  10880. <dd><p>Specify the application name PulseAudio will use when showing active clients,
  10881. by default it is the <code>LIBAVFORMAT_IDENT</code> string.
  10882. </p>
  10883. </dd>
  10884. <dt>&lsquo;<samp>stream_name</samp>&rsquo;</dt>
  10885. <dd><p>Specify the stream name PulseAudio will use when showing active streams,
  10886. by default it is &quot;record&quot;.
  10887. </p>
  10888. </dd>
  10889. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10890. <dd><p>Specify the samplerate in Hz, by default 48kHz is used.
  10891. </p>
  10892. </dd>
  10893. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10894. <dd><p>Specify the channels in use, by default 2 (stereo) is set.
  10895. </p>
  10896. </dd>
  10897. <dt>&lsquo;<samp>frame_size</samp>&rsquo;</dt>
  10898. <dd><p>Specify the number of bytes per frame, by default it is set to 1024.
  10899. </p>
  10900. </dd>
  10901. <dt>&lsquo;<samp>fragment_size</samp>&rsquo;</dt>
  10902. <dd><p>Specify the minimal buffering fragment in PulseAudio, it will affect the
  10903. audio latency. By default it is unset.
  10904. </p>
  10905. </dd>
  10906. <dt>&lsquo;<samp>wallclock</samp>&rsquo;</dt>
  10907. <dd><p>Set the initial PTS using the current time. Default is 1.
  10908. </p>
  10909. </dd>
  10910. </dl>
  10911. <a name="Examples-141"></a>
  10912. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-141">20.17.2 Examples</a></h3>
  10913. <p>Record a stream from default device:
  10914. </p><div class="example">
  10915. <pre class="example">ffmpeg -f pulse -i default /tmp/pulse.wav
  10916. </pre></div>
  10917. <a name="sndio"></a>
  10918. <h2 class="section"><a href="ffprobe-all.html#toc-sndio">20.18 sndio</a></h2>
  10919. <p>sndio input device.
  10920. </p>
  10921. <p>To enable this input device during configuration you need libsndio
  10922. installed on your system.
  10923. </p>
  10924. <p>The filename to provide to the input device is the device node
  10925. representing the sndio input device, and is usually set to
  10926. &lsquo;<tt>/dev/audio0</tt>&rsquo;.
  10927. </p>
  10928. <p>For example to grab from &lsquo;<tt>/dev/audio0</tt>&rsquo; using <code>ffmpeg</code> use the
  10929. command:
  10930. </p><div class="example">
  10931. <pre class="example">ffmpeg -f sndio -i /dev/audio0 /tmp/oss.wav
  10932. </pre></div>
  10933. <a name="Options-9"></a>
  10934. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-9">20.18.1 Options</a></h3>
  10935. <dl compact="compact">
  10936. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  10937. <dd><p>Set the sample rate in Hz. Default is 48000.
  10938. </p>
  10939. </dd>
  10940. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  10941. <dd><p>Set the number of channels. Default is 2.
  10942. </p>
  10943. </dd>
  10944. </dl>
  10945. <a name="video4linux2_002c-v4l2"></a>
  10946. <h2 class="section"><a href="ffprobe-all.html#toc-video4linux2_002c-v4l2">20.19 video4linux2, v4l2</a></h2>
  10947. <p>Video4Linux2 input video device.
  10948. </p>
  10949. <p>&quot;v4l2&quot; can be used as alias for &quot;video4linux2&quot;.
  10950. </p>
  10951. <p>If FFmpeg is built with v4l-utils support (by using the
  10952. <code>--enable-libv4l2</code> configure option), it is possible to use it with the
  10953. <code>-use_libv4l2</code> input device option.
  10954. </p>
  10955. <p>The name of the device to grab is a file device node, usually Linux
  10956. systems tend to automatically create such nodes when the device
  10957. (e.g. an USB webcam) is plugged into the system, and has a name of the
  10958. kind &lsquo;<tt>/dev/video<var>N</var></tt>&rsquo;, where <var>N</var> is a number associated to
  10959. the device.
  10960. </p>
  10961. <p>Video4Linux2 devices usually support a limited set of
  10962. <var>width</var>x<var>height</var> sizes and frame rates. You can check which are
  10963. supported using <code>-list_formats all</code> for Video4Linux2 devices.
  10964. Some devices, like TV cards, support one or more standards. It is possible
  10965. to list all the supported standards using <code>-list_standards all</code>.
  10966. </p>
  10967. <p>The time base for the timestamps is 1 microsecond. Depending on the kernel
  10968. version and configuration, the timestamps may be derived from the real time
  10969. clock (origin at the Unix Epoch) or the monotonic clock (origin usually at
  10970. boot time, unaffected by NTP or manual changes to the clock). The
  10971. &lsquo;<samp>-timestamps abs</samp>&rsquo; or &lsquo;<samp>-ts abs</samp>&rsquo; option can be used to force
  10972. conversion into the real time clock.
  10973. </p>
  10974. <p>Some usage examples of the video4linux2 device with <code>ffmpeg</code>
  10975. and <code>ffplay</code>:
  10976. </p><ul>
  10977. <li>
  10978. List supported formats for a video4linux2 device:
  10979. <div class="example">
  10980. <pre class="example">ffplay -f video4linux2 -list_formats all /dev/video0
  10981. </pre></div>
  10982. </li><li>
  10983. Grab and show the input of a video4linux2 device:
  10984. <div class="example">
  10985. <pre class="example">ffplay -f video4linux2 -framerate 30 -video_size hd720 /dev/video0
  10986. </pre></div>
  10987. </li><li>
  10988. Grab and record the input of a video4linux2 device, leave the
  10989. frame rate and size as previously set:
  10990. <div class="example">
  10991. <pre class="example">ffmpeg -f video4linux2 -input_format mjpeg -i /dev/video0 out.mpeg
  10992. </pre></div>
  10993. </li></ul>
  10994. <p>For more information about Video4Linux, check <a href="http://linuxtv.org/">http://linuxtv.org/</a>.
  10995. </p>
  10996. <a name="Options-12"></a>
  10997. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-12">20.19.1 Options</a></h3>
  10998. <dl compact="compact">
  10999. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  11000. <dd><p>Set the standard. Must be the name of a supported standard. To get a
  11001. list of the supported standards, use the &lsquo;<samp>list_standards</samp>&rsquo;
  11002. option.
  11003. </p>
  11004. </dd>
  11005. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  11006. <dd><p>Set the input channel number. Default to -1, which means using the
  11007. previously selected channel.
  11008. </p>
  11009. </dd>
  11010. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11011. <dd><p>Set the video frame size. The argument must be a string in the form
  11012. <var>WIDTH</var>x<var>HEIGHT</var> or a valid size abbreviation.
  11013. </p>
  11014. </dd>
  11015. <dt>&lsquo;<samp>pixel_format</samp>&rsquo;</dt>
  11016. <dd><p>Select the pixel format (only valid for raw video input).
  11017. </p>
  11018. </dd>
  11019. <dt>&lsquo;<samp>input_format</samp>&rsquo;</dt>
  11020. <dd><p>Set the preferred pixel format (for raw video) or a codec name.
  11021. This option allows one to select the input format, when several are
  11022. available.
  11023. </p>
  11024. </dd>
  11025. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11026. <dd><p>Set the preferred video frame rate.
  11027. </p>
  11028. </dd>
  11029. <dt>&lsquo;<samp>list_formats</samp>&rsquo;</dt>
  11030. <dd><p>List available formats (supported pixel formats, codecs, and frame
  11031. sizes) and exit.
  11032. </p>
  11033. <p>Available values are:
  11034. </p><dl compact="compact">
  11035. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  11036. <dd><p>Show all available (compressed and non-compressed) formats.
  11037. </p>
  11038. </dd>
  11039. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  11040. <dd><p>Show only raw video (non-compressed) formats.
  11041. </p>
  11042. </dd>
  11043. <dt>&lsquo;<samp>compressed</samp>&rsquo;</dt>
  11044. <dd><p>Show only compressed formats.
  11045. </p></dd>
  11046. </dl>
  11047. </dd>
  11048. <dt>&lsquo;<samp>list_standards</samp>&rsquo;</dt>
  11049. <dd><p>List supported standards and exit.
  11050. </p>
  11051. <p>Available values are:
  11052. </p><dl compact="compact">
  11053. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  11054. <dd><p>Show all supported standards.
  11055. </p></dd>
  11056. </dl>
  11057. </dd>
  11058. <dt>&lsquo;<samp>timestamps, ts</samp>&rsquo;</dt>
  11059. <dd><p>Set type of timestamps for grabbed frames.
  11060. </p>
  11061. <p>Available values are:
  11062. </p><dl compact="compact">
  11063. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  11064. <dd><p>Use timestamps from the kernel.
  11065. </p>
  11066. </dd>
  11067. <dt>&lsquo;<samp>abs</samp>&rsquo;</dt>
  11068. <dd><p>Use absolute timestamps (wall clock).
  11069. </p>
  11070. </dd>
  11071. <dt>&lsquo;<samp>mono2abs</samp>&rsquo;</dt>
  11072. <dd><p>Force conversion from monotonic to absolute timestamps.
  11073. </p></dd>
  11074. </dl>
  11075. <p>Default value is <code>default</code>.
  11076. </p>
  11077. </dd>
  11078. <dt>&lsquo;<samp>use_libv4l2</samp>&rsquo;</dt>
  11079. <dd><p>Use libv4l2 (v4l-utils) conversion functions. Default is 0.
  11080. </p>
  11081. </dd>
  11082. </dl>
  11083. <a name="vfwcap"></a>
  11084. <h2 class="section"><a href="ffprobe-all.html#toc-vfwcap">20.20 vfwcap</a></h2>
  11085. <p>VfW (Video for Windows) capture input device.
  11086. </p>
  11087. <p>The filename passed as input is the capture driver number, ranging from
  11088. 0 to 9. You may use &quot;list&quot; as filename to print a list of drivers. Any
  11089. other filename will be interpreted as device number 0.
  11090. </p>
  11091. <a name="Options"></a>
  11092. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options">20.20.1 Options</a></h3>
  11093. <dl compact="compact">
  11094. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11095. <dd><p>Set the video frame size.
  11096. </p>
  11097. </dd>
  11098. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11099. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  11100. corresponding to a frame rate of <code>30000/1001</code>.
  11101. </p>
  11102. </dd>
  11103. </dl>
  11104. <a name="x11grab"></a>
  11105. <h2 class="section"><a href="ffprobe-all.html#toc-x11grab">20.21 x11grab</a></h2>
  11106. <p>X11 video input device.
  11107. </p>
  11108. <p>To enable this input device during configuration you need libxcb
  11109. installed on your system. It will be automatically detected during
  11110. configuration.
  11111. </p>
  11112. <p>This device allows one to capture a region of an X11 display.
  11113. </p>
  11114. <p>The filename passed as input has the syntax:
  11115. </p><div class="example">
  11116. <pre class="example">[<var>hostname</var>]:<var>display_number</var>.<var>screen_number</var>[+<var>x_offset</var>,<var>y_offset</var>]
  11117. </pre></div>
  11118. <p><var>hostname</var>:<var>display_number</var>.<var>screen_number</var> specifies the
  11119. X11 display name of the screen to grab from. <var>hostname</var> can be
  11120. omitted, and defaults to &quot;localhost&quot;. The environment variable
  11121. <code>DISPLAY</code> contains the default display name.
  11122. </p>
  11123. <p><var>x_offset</var> and <var>y_offset</var> specify the offsets of the grabbed
  11124. area with respect to the top-left border of the X11 screen. They
  11125. default to 0.
  11126. </p>
  11127. <p>Check the X11 documentation (e.g. <code>man X</code>) for more detailed
  11128. information.
  11129. </p>
  11130. <p>Use the <code>xdpyinfo</code> program for getting basic information about
  11131. the properties of your X11 display (e.g. grep for &quot;name&quot; or
  11132. &quot;dimensions&quot;).
  11133. </p>
  11134. <p>For example to grab from &lsquo;<tt>:0.0</tt>&rsquo; using <code>ffmpeg</code>:
  11135. </p><div class="example">
  11136. <pre class="example">ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0 out.mpg
  11137. </pre></div>
  11138. <p>Grab at position <code>10,20</code>:
  11139. </p><div class="example">
  11140. <pre class="example">ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
  11141. </pre></div>
  11142. <a name="Options-26"></a>
  11143. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-26">20.21.1 Options</a></h3>
  11144. <dl compact="compact">
  11145. <dt>&lsquo;<samp>draw_mouse</samp>&rsquo;</dt>
  11146. <dd><p>Specify whether to draw the mouse pointer. A value of <code>0</code> specifies
  11147. not to draw the pointer. Default value is <code>1</code>.
  11148. </p>
  11149. </dd>
  11150. <dt>&lsquo;<samp>follow_mouse</samp>&rsquo;</dt>
  11151. <dd><p>Make the grabbed area follow the mouse. The argument can be
  11152. <code>centered</code> or a number of pixels <var>PIXELS</var>.
  11153. </p>
  11154. <p>When it is specified with &quot;centered&quot;, the grabbing region follows the mouse
  11155. pointer and keeps the pointer at the center of region; otherwise, the region
  11156. follows only when the mouse pointer reaches within <var>PIXELS</var> (greater than
  11157. zero) to the edge of region.
  11158. </p>
  11159. <p>For example:
  11160. </p><div class="example">
  11161. <pre class="example">ffmpeg -f x11grab -follow_mouse centered -framerate 25 -video_size cif -i :0.0 out.mpg
  11162. </pre></div>
  11163. <p>To follow only when the mouse pointer reaches within 100 pixels to edge:
  11164. </p><div class="example">
  11165. <pre class="example">ffmpeg -f x11grab -follow_mouse 100 -framerate 25 -video_size cif -i :0.0 out.mpg
  11166. </pre></div>
  11167. </dd>
  11168. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  11169. <dd><p>Set the grabbing frame rate. Default value is <code>ntsc</code>,
  11170. corresponding to a frame rate of <code>30000/1001</code>.
  11171. </p>
  11172. </dd>
  11173. <dt>&lsquo;<samp>show_region</samp>&rsquo;</dt>
  11174. <dd><p>Show grabbed region on screen.
  11175. </p>
  11176. <p>If <var>show_region</var> is specified with <code>1</code>, then the grabbing
  11177. region will be indicated on screen. With this option, it is easy to
  11178. know what is being grabbed if only a portion of the screen is grabbed.
  11179. </p>
  11180. </dd>
  11181. <dt>&lsquo;<samp>region_border</samp>&rsquo;</dt>
  11182. <dd><p>Set the region border thickness if &lsquo;<samp>-show_region 1</samp>&rsquo; is used.
  11183. Range is 1 to 128 and default is 3 (XCB-based x11grab only).
  11184. </p>
  11185. <p>For example:
  11186. </p><div class="example">
  11187. <pre class="example">ffmpeg -f x11grab -show_region 1 -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
  11188. </pre></div>
  11189. <p>With <var>follow_mouse</var>:
  11190. </p><div class="example">
  11191. <pre class="example">ffmpeg -f x11grab -follow_mouse centered -show_region 1 -framerate 25 -video_size cif -i :0.0 out.mpg
  11192. </pre></div>
  11193. </dd>
  11194. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  11195. <dd><p>Set the video frame size. Default is the full desktop.
  11196. </p>
  11197. </dd>
  11198. <dt>&lsquo;<samp>grab_x</samp>&rsquo;</dt>
  11199. <dt>&lsquo;<samp>grab_y</samp>&rsquo;</dt>
  11200. <dd><p>Set the grabbing region coordinates. They are expressed as offset from
  11201. the top left corner of the X11 window and correspond to the
  11202. <var>x_offset</var> and <var>y_offset</var> parameters in the device name. The
  11203. default value for both options is 0.
  11204. </p></dd>
  11205. </dl>
  11206. <a name="Resampler-Options"></a>
  11207. <h1 class="chapter"><a href="ffprobe-all.html#toc-Resampler-Options">21 Resampler Options</a></h1>
  11208. <p>The audio resampler supports the following named options.
  11209. </p>
  11210. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  11211. FFmpeg tools, <var>option</var>=<var>value</var> for the aresample filter,
  11212. by setting the value explicitly in the
  11213. <code>SwrContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API for
  11214. programmatic use.
  11215. </p>
  11216. <dl compact="compact">
  11217. <dt>&lsquo;<samp>ich, in_channel_count</samp>&rsquo;</dt>
  11218. <dd><p>Set the number of input channels. Default value is 0. Setting this
  11219. value is not mandatory if the corresponding channel layout
  11220. &lsquo;<samp>in_channel_layout</samp>&rsquo; is set.
  11221. </p>
  11222. </dd>
  11223. <dt>&lsquo;<samp>och, out_channel_count</samp>&rsquo;</dt>
  11224. <dd><p>Set the number of output channels. Default value is 0. Setting this
  11225. value is not mandatory if the corresponding channel layout
  11226. &lsquo;<samp>out_channel_layout</samp>&rsquo; is set.
  11227. </p>
  11228. </dd>
  11229. <dt>&lsquo;<samp>uch, used_channel_count</samp>&rsquo;</dt>
  11230. <dd><p>Set the number of used input channels. Default value is 0. This option is
  11231. only used for special remapping.
  11232. </p>
  11233. </dd>
  11234. <dt>&lsquo;<samp>isr, in_sample_rate</samp>&rsquo;</dt>
  11235. <dd><p>Set the input sample rate. Default value is 0.
  11236. </p>
  11237. </dd>
  11238. <dt>&lsquo;<samp>osr, out_sample_rate</samp>&rsquo;</dt>
  11239. <dd><p>Set the output sample rate. Default value is 0.
  11240. </p>
  11241. </dd>
  11242. <dt>&lsquo;<samp>isf, in_sample_fmt</samp>&rsquo;</dt>
  11243. <dd><p>Specify the input sample format. It is set by default to <code>none</code>.
  11244. </p>
  11245. </dd>
  11246. <dt>&lsquo;<samp>osf, out_sample_fmt</samp>&rsquo;</dt>
  11247. <dd><p>Specify the output sample format. It is set by default to <code>none</code>.
  11248. </p>
  11249. </dd>
  11250. <dt>&lsquo;<samp>tsf, internal_sample_fmt</samp>&rsquo;</dt>
  11251. <dd><p>Set the internal sample format. Default value is <code>none</code>.
  11252. This will automatically be chosen when it is not explicitly set.
  11253. </p>
  11254. </dd>
  11255. <dt>&lsquo;<samp>icl, in_channel_layout</samp>&rsquo;</dt>
  11256. <dt>&lsquo;<samp>ocl, out_channel_layout</samp>&rsquo;</dt>
  11257. <dd><p>Set the input/output channel layout.
  11258. </p>
  11259. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  11260. for the required syntax.
  11261. </p>
  11262. </dd>
  11263. <dt>&lsquo;<samp>clev, center_mix_level</samp>&rsquo;</dt>
  11264. <dd><p>Set the center mix level. It is a value expressed in deciBel, and must be
  11265. in the interval [-32,32].
  11266. </p>
  11267. </dd>
  11268. <dt>&lsquo;<samp>slev, surround_mix_level</samp>&rsquo;</dt>
  11269. <dd><p>Set the surround mix level. It is a value expressed in deciBel, and must
  11270. be in the interval [-32,32].
  11271. </p>
  11272. </dd>
  11273. <dt>&lsquo;<samp>lfe_mix_level</samp>&rsquo;</dt>
  11274. <dd><p>Set LFE mix into non LFE level. It is used when there is a LFE input but no
  11275. LFE output. It is a value expressed in deciBel, and must
  11276. be in the interval [-32,32].
  11277. </p>
  11278. </dd>
  11279. <dt>&lsquo;<samp>rmvol, rematrix_volume</samp>&rsquo;</dt>
  11280. <dd><p>Set rematrix volume. Default value is 1.0.
  11281. </p>
  11282. </dd>
  11283. <dt>&lsquo;<samp>rematrix_maxval</samp>&rsquo;</dt>
  11284. <dd><p>Set maximum output value for rematrixing.
  11285. This can be used to prevent clipping vs. preventing volume reduction.
  11286. A value of 1.0 prevents clipping.
  11287. </p>
  11288. </dd>
  11289. <dt>&lsquo;<samp>flags, swr_flags</samp>&rsquo;</dt>
  11290. <dd><p>Set flags used by the converter. Default value is 0.
  11291. </p>
  11292. <p>It supports the following individual flags:
  11293. </p><dl compact="compact">
  11294. <dt>&lsquo;<samp>res</samp>&rsquo;</dt>
  11295. <dd><p>force resampling, this flag forces resampling to be used even when the
  11296. input and output sample rates match.
  11297. </p></dd>
  11298. </dl>
  11299. </dd>
  11300. <dt>&lsquo;<samp>dither_scale</samp>&rsquo;</dt>
  11301. <dd><p>Set the dither scale. Default value is 1.
  11302. </p>
  11303. </dd>
  11304. <dt>&lsquo;<samp>dither_method</samp>&rsquo;</dt>
  11305. <dd><p>Set dither method. Default value is 0.
  11306. </p>
  11307. <p>Supported values:
  11308. </p><dl compact="compact">
  11309. <dt>&lsquo;<samp>rectangular</samp>&rsquo;</dt>
  11310. <dd><p>select rectangular dither
  11311. </p></dd>
  11312. <dt>&lsquo;<samp>triangular</samp>&rsquo;</dt>
  11313. <dd><p>select triangular dither
  11314. </p></dd>
  11315. <dt>&lsquo;<samp>triangular_hp</samp>&rsquo;</dt>
  11316. <dd><p>select triangular dither with high pass
  11317. </p></dd>
  11318. <dt>&lsquo;<samp>lipshitz</samp>&rsquo;</dt>
  11319. <dd><p>select Lipshitz noise shaping dither.
  11320. </p></dd>
  11321. <dt>&lsquo;<samp>shibata</samp>&rsquo;</dt>
  11322. <dd><p>select Shibata noise shaping dither.
  11323. </p></dd>
  11324. <dt>&lsquo;<samp>low_shibata</samp>&rsquo;</dt>
  11325. <dd><p>select low Shibata noise shaping dither.
  11326. </p></dd>
  11327. <dt>&lsquo;<samp>high_shibata</samp>&rsquo;</dt>
  11328. <dd><p>select high Shibata noise shaping dither.
  11329. </p></dd>
  11330. <dt>&lsquo;<samp>f_weighted</samp>&rsquo;</dt>
  11331. <dd><p>select f-weighted noise shaping dither
  11332. </p></dd>
  11333. <dt>&lsquo;<samp>modified_e_weighted</samp>&rsquo;</dt>
  11334. <dd><p>select modified-e-weighted noise shaping dither
  11335. </p></dd>
  11336. <dt>&lsquo;<samp>improved_e_weighted</samp>&rsquo;</dt>
  11337. <dd><p>select improved-e-weighted noise shaping dither
  11338. </p>
  11339. </dd>
  11340. </dl>
  11341. </dd>
  11342. <dt>&lsquo;<samp>resampler</samp>&rsquo;</dt>
  11343. <dd><p>Set resampling engine. Default value is swr.
  11344. </p>
  11345. <p>Supported values:
  11346. </p><dl compact="compact">
  11347. <dt>&lsquo;<samp>swr</samp>&rsquo;</dt>
  11348. <dd><p>select the native SW Resampler; filter options precision and cheby are not
  11349. applicable in this case.
  11350. </p></dd>
  11351. <dt>&lsquo;<samp>soxr</samp>&rsquo;</dt>
  11352. <dd><p>select the SoX Resampler (where available); compensation, and filter options
  11353. filter_size, phase_shift, exact_rational, filter_type &amp; kaiser_beta, are not
  11354. applicable in this case.
  11355. </p></dd>
  11356. </dl>
  11357. </dd>
  11358. <dt>&lsquo;<samp>filter_size</samp>&rsquo;</dt>
  11359. <dd><p>For swr only, set resampling filter size, default value is 32.
  11360. </p>
  11361. </dd>
  11362. <dt>&lsquo;<samp>phase_shift</samp>&rsquo;</dt>
  11363. <dd><p>For swr only, set resampling phase shift, default value is 10, and must be in
  11364. the interval [0,30].
  11365. </p>
  11366. </dd>
  11367. <dt>&lsquo;<samp>linear_interp</samp>&rsquo;</dt>
  11368. <dd><p>Use linear interpolation when enabled (the default). Disable it if you want
  11369. to preserve speed instead of quality when exact_rational fails.
  11370. </p>
  11371. </dd>
  11372. <dt>&lsquo;<samp>exact_rational</samp>&rsquo;</dt>
  11373. <dd><p>For swr only, when enabled, try to use exact phase_count based on input and
  11374. output sample rate. However, if it is larger than <code>1 &lt;&lt; phase_shift</code>,
  11375. the phase_count will be <code>1 &lt;&lt; phase_shift</code> as fallback. Default is enabled.
  11376. </p>
  11377. </dd>
  11378. <dt>&lsquo;<samp>cutoff</samp>&rsquo;</dt>
  11379. <dd><p>Set cutoff frequency (swr: 6dB point; soxr: 0dB point) ratio; must be a float
  11380. value between 0 and 1. Default value is 0.97 with swr, and 0.91 with soxr
  11381. (which, with a sample-rate of 44100, preserves the entire audio band to 20kHz).
  11382. </p>
  11383. </dd>
  11384. <dt>&lsquo;<samp>precision</samp>&rsquo;</dt>
  11385. <dd><p>For soxr only, the precision in bits to which the resampled signal will be
  11386. calculated. The default value of 20 (which, with suitable dithering, is
  11387. appropriate for a destination bit-depth of 16) gives SoX&rsquo;s &rsquo;High Quality&rsquo;; a
  11388. value of 28 gives SoX&rsquo;s &rsquo;Very High Quality&rsquo;.
  11389. </p>
  11390. </dd>
  11391. <dt>&lsquo;<samp>cheby</samp>&rsquo;</dt>
  11392. <dd><p>For soxr only, selects passband rolloff none (Chebyshev) &amp; higher-precision
  11393. approximation for &rsquo;irrational&rsquo; ratios. Default value is 0.
  11394. </p>
  11395. </dd>
  11396. <dt>&lsquo;<samp>async</samp>&rsquo;</dt>
  11397. <dd><p>For swr only, simple 1 parameter audio sync to timestamps using stretching,
  11398. squeezing, filling and trimming. Setting this to 1 will enable filling and
  11399. trimming, larger values represent the maximum amount in samples that the data
  11400. may be stretched or squeezed for each second.
  11401. Default value is 0, thus no compensation is applied to make the samples match
  11402. the audio timestamps.
  11403. </p>
  11404. </dd>
  11405. <dt>&lsquo;<samp>first_pts</samp>&rsquo;</dt>
  11406. <dd><p>For swr only, assume the first pts should be this value. The time unit is 1 / sample rate.
  11407. This allows for padding/trimming at the start of stream. By default, no
  11408. assumption is made about the first frame&rsquo;s expected pts, so no padding or
  11409. trimming is done. For example, this could be set to 0 to pad the beginning with
  11410. silence if an audio stream starts after the video stream or to trim any samples
  11411. with a negative pts due to encoder delay.
  11412. </p>
  11413. </dd>
  11414. <dt>&lsquo;<samp>min_comp</samp>&rsquo;</dt>
  11415. <dd><p>For swr only, set the minimum difference between timestamps and audio data (in
  11416. seconds) to trigger stretching/squeezing/filling or trimming of the
  11417. data to make it match the timestamps. The default is that
  11418. stretching/squeezing/filling and trimming is disabled
  11419. (&lsquo;<samp>min_comp</samp>&rsquo; = <code>FLT_MAX</code>).
  11420. </p>
  11421. </dd>
  11422. <dt>&lsquo;<samp>min_hard_comp</samp>&rsquo;</dt>
  11423. <dd><p>For swr only, set the minimum difference between timestamps and audio data (in
  11424. seconds) to trigger adding/dropping samples to make it match the
  11425. timestamps. This option effectively is a threshold to select between
  11426. hard (trim/fill) and soft (squeeze/stretch) compensation. Note that
  11427. all compensation is by default disabled through &lsquo;<samp>min_comp</samp>&rsquo;.
  11428. The default is 0.1.
  11429. </p>
  11430. </dd>
  11431. <dt>&lsquo;<samp>comp_duration</samp>&rsquo;</dt>
  11432. <dd><p>For swr only, set duration (in seconds) over which data is stretched/squeezed
  11433. to make it match the timestamps. Must be a non-negative double float value,
  11434. default value is 1.0.
  11435. </p>
  11436. </dd>
  11437. <dt>&lsquo;<samp>max_soft_comp</samp>&rsquo;</dt>
  11438. <dd><p>For swr only, set maximum factor by which data is stretched/squeezed to make it
  11439. match the timestamps. Must be a non-negative double float value, default value
  11440. is 0.
  11441. </p>
  11442. </dd>
  11443. <dt>&lsquo;<samp>matrix_encoding</samp>&rsquo;</dt>
  11444. <dd><p>Select matrixed stereo encoding.
  11445. </p>
  11446. <p>It accepts the following values:
  11447. </p><dl compact="compact">
  11448. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11449. <dd><p>select none
  11450. </p></dd>
  11451. <dt>&lsquo;<samp>dolby</samp>&rsquo;</dt>
  11452. <dd><p>select Dolby
  11453. </p></dd>
  11454. <dt>&lsquo;<samp>dplii</samp>&rsquo;</dt>
  11455. <dd><p>select Dolby Pro Logic II
  11456. </p></dd>
  11457. </dl>
  11458. <p>Default value is <code>none</code>.
  11459. </p>
  11460. </dd>
  11461. <dt>&lsquo;<samp>filter_type</samp>&rsquo;</dt>
  11462. <dd><p>For swr only, select resampling filter type. This only affects resampling
  11463. operations.
  11464. </p>
  11465. <p>It accepts the following values:
  11466. </p><dl compact="compact">
  11467. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  11468. <dd><p>select cubic
  11469. </p></dd>
  11470. <dt>&lsquo;<samp>blackman_nuttall</samp>&rsquo;</dt>
  11471. <dd><p>select Blackman Nuttall windowed sinc
  11472. </p></dd>
  11473. <dt>&lsquo;<samp>kaiser</samp>&rsquo;</dt>
  11474. <dd><p>select Kaiser windowed sinc
  11475. </p></dd>
  11476. </dl>
  11477. </dd>
  11478. <dt>&lsquo;<samp>kaiser_beta</samp>&rsquo;</dt>
  11479. <dd><p>For swr only, set Kaiser window beta value. Must be a double float value in the
  11480. interval [2,16], default value is 9.
  11481. </p>
  11482. </dd>
  11483. <dt>&lsquo;<samp>output_sample_bits</samp>&rsquo;</dt>
  11484. <dd><p>For swr only, set number of used output sample bits for dithering. Must be an integer in the
  11485. interval [0,64], default value is 0, which means it&rsquo;s not used.
  11486. </p>
  11487. </dd>
  11488. </dl>
  11489. <p><a name="scaler_005foptions"></a>
  11490. </p><a name="Scaler-Options"></a>
  11491. <h1 class="chapter"><a href="ffprobe-all.html#toc-Scaler-Options">22 Scaler Options</a></h1>
  11492. <p>The video scaler supports the following named options.
  11493. </p>
  11494. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  11495. FFmpeg tools, with a few API-only exceptions noted below.
  11496. For programmatic use, they can be set explicitly in the
  11497. <code>SwsContext</code> options or through the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API.
  11498. </p>
  11499. <dl compact="compact">
  11500. <dd>
  11501. <p><a name="sws_005fflags"></a>
  11502. </p></dd>
  11503. <dt>&lsquo;<samp>sws_flags</samp>&rsquo;</dt>
  11504. <dd><p>Set the scaler flags. This is also used to set the scaling
  11505. algorithm. Only a single algorithm should be selected. Default
  11506. value is &lsquo;<samp>bicubic</samp>&rsquo;.
  11507. </p>
  11508. <p>It accepts the following values:
  11509. </p><dl compact="compact">
  11510. <dt>&lsquo;<samp>fast_bilinear</samp>&rsquo;</dt>
  11511. <dd><p>Select fast bilinear scaling algorithm.
  11512. </p>
  11513. </dd>
  11514. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  11515. <dd><p>Select bilinear scaling algorithm.
  11516. </p>
  11517. </dd>
  11518. <dt>&lsquo;<samp>bicubic</samp>&rsquo;</dt>
  11519. <dd><p>Select bicubic scaling algorithm.
  11520. </p>
  11521. </dd>
  11522. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  11523. <dd><p>Select experimental scaling algorithm.
  11524. </p>
  11525. </dd>
  11526. <dt>&lsquo;<samp>neighbor</samp>&rsquo;</dt>
  11527. <dd><p>Select nearest neighbor rescaling algorithm.
  11528. </p>
  11529. </dd>
  11530. <dt>&lsquo;<samp>area</samp>&rsquo;</dt>
  11531. <dd><p>Select averaging area rescaling algorithm.
  11532. </p>
  11533. </dd>
  11534. <dt>&lsquo;<samp>bicublin</samp>&rsquo;</dt>
  11535. <dd><p>Select bicubic scaling algorithm for the luma component, bilinear for
  11536. chroma components.
  11537. </p>
  11538. </dd>
  11539. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  11540. <dd><p>Select Gaussian rescaling algorithm.
  11541. </p>
  11542. </dd>
  11543. <dt>&lsquo;<samp>sinc</samp>&rsquo;</dt>
  11544. <dd><p>Select sinc rescaling algorithm.
  11545. </p>
  11546. </dd>
  11547. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  11548. <dd><p>Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
  11549. changed by setting <code>param0</code>.
  11550. </p>
  11551. </dd>
  11552. <dt>&lsquo;<samp>spline</samp>&rsquo;</dt>
  11553. <dd><p>Select natural bicubic spline rescaling algorithm.
  11554. </p>
  11555. </dd>
  11556. <dt>&lsquo;<samp>print_info</samp>&rsquo;</dt>
  11557. <dd><p>Enable printing/debug logging.
  11558. </p>
  11559. </dd>
  11560. <dt>&lsquo;<samp>accurate_rnd</samp>&rsquo;</dt>
  11561. <dd><p>Enable accurate rounding.
  11562. </p>
  11563. </dd>
  11564. <dt>&lsquo;<samp>full_chroma_int</samp>&rsquo;</dt>
  11565. <dd><p>Enable full chroma interpolation.
  11566. </p>
  11567. </dd>
  11568. <dt>&lsquo;<samp>full_chroma_inp</samp>&rsquo;</dt>
  11569. <dd><p>Select full chroma input.
  11570. </p>
  11571. </dd>
  11572. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  11573. <dd><p>Enable bitexact output.
  11574. </p></dd>
  11575. </dl>
  11576. </dd>
  11577. <dt>&lsquo;<samp>srcw <var>(API only)</var></samp>&rsquo;</dt>
  11578. <dd><p>Set source width.
  11579. </p>
  11580. </dd>
  11581. <dt>&lsquo;<samp>srch <var>(API only)</var></samp>&rsquo;</dt>
  11582. <dd><p>Set source height.
  11583. </p>
  11584. </dd>
  11585. <dt>&lsquo;<samp>dstw <var>(API only)</var></samp>&rsquo;</dt>
  11586. <dd><p>Set destination width.
  11587. </p>
  11588. </dd>
  11589. <dt>&lsquo;<samp>dsth <var>(API only)</var></samp>&rsquo;</dt>
  11590. <dd><p>Set destination height.
  11591. </p>
  11592. </dd>
  11593. <dt>&lsquo;<samp>src_format <var>(API only)</var></samp>&rsquo;</dt>
  11594. <dd><p>Set source pixel format (must be expressed as an integer).
  11595. </p>
  11596. </dd>
  11597. <dt>&lsquo;<samp>dst_format <var>(API only)</var></samp>&rsquo;</dt>
  11598. <dd><p>Set destination pixel format (must be expressed as an integer).
  11599. </p>
  11600. </dd>
  11601. <dt>&lsquo;<samp>src_range <var>(boolean)</var></samp>&rsquo;</dt>
  11602. <dd><p>If value is set to <code>1</code>, indicates source is full range. Default value is
  11603. <code>0</code>, which indicates source is limited range.
  11604. </p>
  11605. </dd>
  11606. <dt>&lsquo;<samp>dst_range <var>(boolean)</var></samp>&rsquo;</dt>
  11607. <dd><p>If value is set to <code>1</code>, enable full range for destination. Default value
  11608. is <code>0</code>, which enables limited range.
  11609. </p>
  11610. <p><a name="sws_005fparams"></a>
  11611. </p></dd>
  11612. <dt>&lsquo;<samp>param0, param1</samp>&rsquo;</dt>
  11613. <dd><p>Set scaling algorithm parameters. The specified values are specific of
  11614. some scaling algorithms and ignored by others. The specified values
  11615. are floating point number values.
  11616. </p>
  11617. </dd>
  11618. <dt>&lsquo;<samp>sws_dither</samp>&rsquo;</dt>
  11619. <dd><p>Set the dithering algorithm. Accepts one of the following
  11620. values. Default value is &lsquo;<samp>auto</samp>&rsquo;.
  11621. </p>
  11622. <dl compact="compact">
  11623. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  11624. <dd><p>automatic choice
  11625. </p>
  11626. </dd>
  11627. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11628. <dd><p>no dithering
  11629. </p>
  11630. </dd>
  11631. <dt>&lsquo;<samp>bayer</samp>&rsquo;</dt>
  11632. <dd><p>bayer dither
  11633. </p>
  11634. </dd>
  11635. <dt>&lsquo;<samp>ed</samp>&rsquo;</dt>
  11636. <dd><p>error diffusion dither
  11637. </p>
  11638. </dd>
  11639. <dt>&lsquo;<samp>a_dither</samp>&rsquo;</dt>
  11640. <dd><p>arithmetic dither, based using addition
  11641. </p>
  11642. </dd>
  11643. <dt>&lsquo;<samp>x_dither</samp>&rsquo;</dt>
  11644. <dd><p>arithmetic dither, based using xor (more random/less apparent patterning that
  11645. a_dither).
  11646. </p>
  11647. </dd>
  11648. </dl>
  11649. </dd>
  11650. <dt>&lsquo;<samp>alphablend</samp>&rsquo;</dt>
  11651. <dd><p>Set the alpha blending to use when the input has alpha but the output does not.
  11652. Default value is &lsquo;<samp>none</samp>&rsquo;.
  11653. </p>
  11654. <dl compact="compact">
  11655. <dt>&lsquo;<samp>uniform_color</samp>&rsquo;</dt>
  11656. <dd><p>Blend onto a uniform background color
  11657. </p>
  11658. </dd>
  11659. <dt>&lsquo;<samp>checkerboard</samp>&rsquo;</dt>
  11660. <dd><p>Blend onto a checkerboard
  11661. </p>
  11662. </dd>
  11663. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  11664. <dd><p>No blending
  11665. </p>
  11666. </dd>
  11667. </dl>
  11668. </dd>
  11669. </dl>
  11670. <a name="Filtering-Introduction"></a>
  11671. <h1 class="chapter"><a href="ffprobe-all.html#toc-Filtering-Introduction">23 Filtering Introduction</a></h1>
  11672. <p>Filtering in FFmpeg is enabled through the libavfilter library.
  11673. </p>
  11674. <p>In libavfilter, a filter can have multiple inputs and multiple
  11675. outputs.
  11676. To illustrate the sorts of things that are possible, we consider the
  11677. following filtergraph.
  11678. </p>
  11679. <pre class="verbatim"> [main]
  11680. input --&gt; split ---------------------&gt; overlay --&gt; output
  11681. | ^
  11682. |[tmp] [flip]|
  11683. +-----&gt; crop --&gt; vflip -------+
  11684. </pre>
  11685. <p>This filtergraph splits the input stream in two streams, then sends one
  11686. stream through the crop filter and the vflip filter, before merging it
  11687. back with the other stream by overlaying it on top. You can use the
  11688. following command to achieve this:
  11689. </p>
  11690. <div class="example">
  11691. <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
  11692. </pre></div>
  11693. <p>The result will be that the top half of the video is mirrored
  11694. onto the bottom half of the output video.
  11695. </p>
  11696. <p>Filters in the same linear chain are separated by commas, and distinct
  11697. linear chains of filters are separated by semicolons. In our example,
  11698. <var>crop,vflip</var> are in one linear chain, <var>split</var> and
  11699. <var>overlay</var> are separately in another. The points where the linear
  11700. chains join are labelled by names enclosed in square brackets. In the
  11701. example, the split filter generates two outputs that are associated to
  11702. the labels <var>[main]</var> and <var>[tmp]</var>.
  11703. </p>
  11704. <p>The stream sent to the second output of <var>split</var>, labelled as
  11705. <var>[tmp]</var>, is processed through the <var>crop</var> filter, which crops
  11706. away the lower half part of the video, and then vertically flipped. The
  11707. <var>overlay</var> filter takes in input the first unchanged output of the
  11708. split filter (which was labelled as <var>[main]</var>), and overlay on its
  11709. lower half the output generated by the <var>crop,vflip</var> filterchain.
  11710. </p>
  11711. <p>Some filters take in input a list of parameters: they are specified
  11712. after the filter name and an equal sign, and are separated from each other
  11713. by a colon.
  11714. </p>
  11715. <p>There exist so-called <var>source filters</var> that do not have an
  11716. audio/video input, and <var>sink filters</var> that will not have audio/video
  11717. output.
  11718. </p>
  11719. <a name="graph2dot"></a>
  11720. <h1 class="chapter"><a href="ffprobe-all.html#toc-graph2dot">24 graph2dot</a></h1>
  11721. <p>The &lsquo;<tt>graph2dot</tt>&rsquo; program included in the FFmpeg &lsquo;<tt>tools</tt>&rsquo;
  11722. directory can be used to parse a filtergraph description and issue a
  11723. corresponding textual representation in the dot language.
  11724. </p>
  11725. <p>Invoke the command:
  11726. </p><div class="example">
  11727. <pre class="example">graph2dot -h
  11728. </pre></div>
  11729. <p>to see how to use &lsquo;<tt>graph2dot</tt>&rsquo;.
  11730. </p>
  11731. <p>You can then pass the dot description to the &lsquo;<tt>dot</tt>&rsquo; program (from
  11732. the graphviz suite of programs) and obtain a graphical representation
  11733. of the filtergraph.
  11734. </p>
  11735. <p>For example the sequence of commands:
  11736. </p><div class="example">
  11737. <pre class="example">echo <var>GRAPH_DESCRIPTION</var> | \
  11738. tools/graph2dot -o graph.tmp &amp;&amp; \
  11739. dot -Tpng graph.tmp -o graph.png &amp;&amp; \
  11740. display graph.png
  11741. </pre></div>
  11742. <p>can be used to create and display an image representing the graph
  11743. described by the <var>GRAPH_DESCRIPTION</var> string. Note that this string must be
  11744. a complete self-contained graph, with its inputs and outputs explicitly defined.
  11745. For example if your command line is of the form:
  11746. </p><div class="example">
  11747. <pre class="example">ffmpeg -i infile -vf scale=640:360 outfile
  11748. </pre></div>
  11749. <p>your <var>GRAPH_DESCRIPTION</var> string will need to be of the form:
  11750. </p><div class="example">
  11751. <pre class="example">nullsrc,scale=640:360,nullsink
  11752. </pre></div>
  11753. <p>you may also need to set the <var>nullsrc</var> parameters and add a <var>format</var>
  11754. filter in order to simulate a specific input file.
  11755. </p>
  11756. <a name="Filtergraph-description"></a>
  11757. <h1 class="chapter"><a href="ffprobe-all.html#toc-Filtergraph-description">25 Filtergraph description</a></h1>
  11758. <p>A filtergraph is a directed graph of connected filters. It can contain
  11759. cycles, and there can be multiple links between a pair of
  11760. filters. Each link has one input pad on one side connecting it to one
  11761. filter from which it takes its input, and one output pad on the other
  11762. side connecting it to one filter accepting its output.
  11763. </p>
  11764. <p>Each filter in a filtergraph is an instance of a filter class
  11765. registered in the application, which defines the features and the
  11766. number of input and output pads of the filter.
  11767. </p>
  11768. <p>A filter with no input pads is called a &quot;source&quot;, and a filter with no
  11769. output pads is called a &quot;sink&quot;.
  11770. </p>
  11771. <p><a name="Filtergraph-syntax"></a>
  11772. </p><a name="Filtergraph-syntax-1"></a>
  11773. <h2 class="section"><a href="ffprobe-all.html#toc-Filtergraph-syntax-1">25.1 Filtergraph syntax</a></h2>
  11774. <p>A filtergraph has a textual representation, which is recognized by the
  11775. &lsquo;<samp>-filter</samp>&rsquo;/&lsquo;<samp>-vf</samp>&rsquo;/&lsquo;<samp>-af</samp>&rsquo; and
  11776. &lsquo;<samp>-filter_complex</samp>&rsquo; options in <code>ffmpeg</code> and
  11777. &lsquo;<samp>-vf</samp>&rsquo;/&lsquo;<samp>-af</samp>&rsquo; in <code>ffplay</code>, and by the
  11778. <code>avfilter_graph_parse_ptr()</code> function defined in
  11779. &lsquo;<tt>libavfilter/avfilter.h</tt>&rsquo;.
  11780. </p>
  11781. <p>A filterchain consists of a sequence of connected filters, each one
  11782. connected to the previous one in the sequence. A filterchain is
  11783. represented by a list of &quot;,&quot;-separated filter descriptions.
  11784. </p>
  11785. <p>A filtergraph consists of a sequence of filterchains. A sequence of
  11786. filterchains is represented by a list of &quot;;&quot;-separated filterchain
  11787. descriptions.
  11788. </p>
  11789. <p>A filter is represented by a string of the form:
  11790. [<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>]
  11791. </p>
  11792. <p><var>filter_name</var> is the name of the filter class of which the
  11793. described filter is an instance of, and has to be the name of one of
  11794. the filter classes registered in the program optionally followed by &quot;@<var>id</var>&quot;.
  11795. The name of the filter class is optionally followed by a string
  11796. &quot;=<var>arguments</var>&quot;.
  11797. </p>
  11798. <p><var>arguments</var> is a string which contains the parameters used to
  11799. initialize the filter instance. It may have one of two forms:
  11800. </p><ul>
  11801. <li>
  11802. A &rsquo;:&rsquo;-separated list of <var>key=value</var> pairs.
  11803. </li><li>
  11804. A &rsquo;:&rsquo;-separated list of <var>value</var>. In this case, the keys are assumed to be
  11805. the option names in the order they are declared. E.g. the <code>fade</code> filter
  11806. declares three options in this order &ndash; &lsquo;<samp>type</samp>&rsquo;, &lsquo;<samp>start_frame</samp>&rsquo; and
  11807. &lsquo;<samp>nb_frames</samp>&rsquo;. Then the parameter list <var>in:0:30</var> means that the value
  11808. <var>in</var> is assigned to the option &lsquo;<samp>type</samp>&rsquo;, <var>0</var> to
  11809. &lsquo;<samp>start_frame</samp>&rsquo; and <var>30</var> to &lsquo;<samp>nb_frames</samp>&rsquo;.
  11810. </li><li>
  11811. A &rsquo;:&rsquo;-separated list of mixed direct <var>value</var> and long <var>key=value</var>
  11812. pairs. The direct <var>value</var> must precede the <var>key=value</var> pairs, and
  11813. follow the same constraints order of the previous point. The following
  11814. <var>key=value</var> pairs can be set in any preferred order.
  11815. </li></ul>
  11816. <p>If the option value itself is a list of items (e.g. the <code>format</code> filter
  11817. takes a list of pixel formats), the items in the list are usually separated by
  11818. &lsquo;<samp>|</samp>&rsquo;.
  11819. </p>
  11820. <p>The list of arguments can be quoted using the character &lsquo;<samp>'</samp>&rsquo; as initial
  11821. and ending mark, and the character &lsquo;<samp>\</samp>&rsquo; for escaping the characters
  11822. within the quoted text; otherwise the argument string is considered
  11823. terminated when the next special character (belonging to the set
  11824. &lsquo;<samp>[]=;,</samp>&rsquo;) is encountered.
  11825. </p>
  11826. <p>The name and arguments of the filter are optionally preceded and
  11827. followed by a list of link labels.
  11828. A link label allows one to name a link and associate it to a filter output
  11829. or input pad. The preceding labels <var>in_link_1</var>
  11830. ... <var>in_link_N</var>, are associated to the filter input pads,
  11831. the following labels <var>out_link_1</var> ... <var>out_link_M</var>, are
  11832. associated to the output pads.
  11833. </p>
  11834. <p>When two link labels with the same name are found in the
  11835. filtergraph, a link between the corresponding input and output pad is
  11836. created.
  11837. </p>
  11838. <p>If an output pad is not labelled, it is linked by default to the first
  11839. unlabelled input pad of the next filter in the filterchain.
  11840. For example in the filterchain
  11841. </p><div class="example">
  11842. <pre class="example">nullsrc, split[L1], [L2]overlay, nullsink
  11843. </pre></div>
  11844. <p>the split filter instance has two output pads, and the overlay filter
  11845. instance two input pads. The first output pad of split is labelled
  11846. &quot;L1&quot;, the first input pad of overlay is labelled &quot;L2&quot;, and the second
  11847. output pad of split is linked to the second input pad of overlay,
  11848. which are both unlabelled.
  11849. </p>
  11850. <p>In a filter description, if the input label of the first filter is not
  11851. specified, &quot;in&quot; is assumed; if the output label of the last filter is not
  11852. specified, &quot;out&quot; is assumed.
  11853. </p>
  11854. <p>In a complete filterchain all the unlabelled filter input and output
  11855. pads must be connected. A filtergraph is considered valid if all the
  11856. filter input and output pads of all the filterchains are connected.
  11857. </p>
  11858. <p>Libavfilter will automatically insert <a href="#scale">scale</a> filters where format
  11859. conversion is required. It is possible to specify swscale flags
  11860. for those automatically inserted scalers by prepending
  11861. <code>sws_flags=<var>flags</var>;</code>
  11862. to the filtergraph description.
  11863. </p>
  11864. <p>Here is a BNF description of the filtergraph syntax:
  11865. </p><div class="example">
  11866. <pre class="example"><var>NAME</var> ::= sequence of alphanumeric characters and '_'
  11867. <var>FILTER_NAME</var> ::= <var>NAME</var>[&quot;@&quot;<var>NAME</var>]
  11868. <var>LINKLABEL</var> ::= &quot;[&quot; <var>NAME</var> &quot;]&quot;
  11869. <var>LINKLABELS</var> ::= <var>LINKLABEL</var> [<var>LINKLABELS</var>]
  11870. <var>FILTER_ARGUMENTS</var> ::= sequence of chars (possibly quoted)
  11871. <var>FILTER</var> ::= [<var>LINKLABELS</var>] <var>FILTER_NAME</var> [&quot;=&quot; <var>FILTER_ARGUMENTS</var>] [<var>LINKLABELS</var>]
  11872. <var>FILTERCHAIN</var> ::= <var>FILTER</var> [,<var>FILTERCHAIN</var>]
  11873. <var>FILTERGRAPH</var> ::= [sws_flags=<var>flags</var>;] <var>FILTERCHAIN</var> [;<var>FILTERGRAPH</var>]
  11874. </pre></div>
  11875. <p><a name="filtergraph-escaping"></a>
  11876. </p><a name="Notes-on-filtergraph-escaping"></a>
  11877. <h2 class="section"><a href="ffprobe-all.html#toc-Notes-on-filtergraph-escaping">25.2 Notes on filtergraph escaping</a></h2>
  11878. <p>Filtergraph description composition entails several levels of
  11879. 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
  11880. information about the employed escaping procedure.
  11881. </p>
  11882. <p>A first level escaping affects the content of each filter option
  11883. value, which may contain the special character <code>:</code> used to
  11884. separate values, or one of the escaping characters <code>\'</code>.
  11885. </p>
  11886. <p>A second level escaping affects the whole filter description, which
  11887. may contain the escaping characters <code>\'</code> or the special
  11888. characters <code>[],;</code> used by the filtergraph description.
  11889. </p>
  11890. <p>Finally, when you specify a filtergraph on a shell commandline, you
  11891. need to perform a third level escaping for the shell special
  11892. characters contained within it.
  11893. </p>
  11894. <p>For example, consider the following string to be embedded in
  11895. the <a href="#drawtext">drawtext</a> filter description &lsquo;<samp>text</samp>&rsquo; value:
  11896. </p><div class="example">
  11897. <pre class="example">this is a 'string': may contain one, or more, special characters
  11898. </pre></div>
  11899. <p>This string contains the <code>'</code> special escaping character, and the
  11900. <code>:</code> special character, so it needs to be escaped in this way:
  11901. </p><div class="example">
  11902. <pre class="example">text=this is a \'string\'\: may contain one, or more, special characters
  11903. </pre></div>
  11904. <p>A second level of escaping is required when embedding the filter
  11905. description in a filtergraph description, in order to escape all the
  11906. filtergraph special characters. Thus the example above becomes:
  11907. </p><div class="example">
  11908. <pre class="example">drawtext=text=this is a \\\'string\\\'\\: may contain one\, or more\, special characters
  11909. </pre></div>
  11910. <p>(note that in addition to the <code>\'</code> escaping special characters,
  11911. also <code>,</code> needs to be escaped).
  11912. </p>
  11913. <p>Finally an additional level of escaping is needed when writing the
  11914. filtergraph description in a shell command, which depends on the
  11915. escaping rules of the adopted shell. For example, assuming that
  11916. <code>\</code> is special and needs to be escaped with another <code>\</code>, the
  11917. previous string will finally result in:
  11918. </p><div class="example">
  11919. <pre class="example">-vf &quot;drawtext=text=this is a \\\\\\'string\\\\\\'\\\\: may contain one\\, or more\\, special characters&quot;
  11920. </pre></div>
  11921. <a name="Timeline-editing"></a>
  11922. <h1 class="chapter"><a href="ffprobe-all.html#toc-Timeline-editing">26 Timeline editing</a></h1>
  11923. <p>Some filters support a generic &lsquo;<samp>enable</samp>&rsquo; option. For the filters
  11924. supporting timeline editing, this option can be set to an expression which is
  11925. evaluated before sending a frame to the filter. If the evaluation is non-zero,
  11926. the filter will be enabled, otherwise the frame will be sent unchanged to the
  11927. next filter in the filtergraph.
  11928. </p>
  11929. <p>The expression accepts the following values:
  11930. </p><dl compact="compact">
  11931. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  11932. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  11933. </p>
  11934. </dd>
  11935. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  11936. <dd><p>sequential number of the input frame, starting from 0
  11937. </p>
  11938. </dd>
  11939. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  11940. <dd><p>the position in the file of the input frame, NAN if unknown
  11941. </p>
  11942. </dd>
  11943. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  11944. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  11945. <dd><p>width and height of the input frame if video
  11946. </p></dd>
  11947. </dl>
  11948. <p>Additionally, these filters support an &lsquo;<samp>enable</samp>&rsquo; command that can be used
  11949. to re-define the expression.
  11950. </p>
  11951. <p>Like any other filtering option, the &lsquo;<samp>enable</samp>&rsquo; option follows the same
  11952. rules.
  11953. </p>
  11954. <p>For example, to enable a blur filter (<a href="#smartblur">smartblur</a>) from 10 seconds to 3
  11955. minutes, and a <a href="#curves">curves</a> filter starting at 3 seconds:
  11956. </p><div class="example">
  11957. <pre class="example">smartblur = enable='between(t,10,3*60)',
  11958. curves = enable='gte(t,3)' : preset=cross_process
  11959. </pre></div>
  11960. <p>See <code>ffmpeg -filters</code> to view which filters have timeline support.
  11961. </p>
  11962. <p><a name="commands"></a>
  11963. </p><a name="Changing-options-at-runtime-with-a-command"></a>
  11964. <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>
  11965. <p>Some options can be changed during the operation of the filter using
  11966. a command. These options are marked &rsquo;T&rsquo; on the output of
  11967. <code>ffmpeg</code> &lsquo;<samp>-h filter=&lt;name of filter&gt;</samp>&rsquo;.
  11968. The name of the command is the name of the option and the argument is
  11969. the new value.
  11970. </p>
  11971. <p><a name="framesync"></a>
  11972. </p><a name="Options-for-filters-with-several-inputs-_0028framesync_0029"></a>
  11973. <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>
  11974. <p>Some filters with several inputs support a common set of options.
  11975. These options can only be set by name, not with the short notation.
  11976. </p>
  11977. <dl compact="compact">
  11978. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  11979. <dd><p>The action to take when EOF is encountered on the secondary input; it accepts
  11980. one of the following values:
  11981. </p>
  11982. <dl compact="compact">
  11983. <dt>&lsquo;<samp>repeat</samp>&rsquo;</dt>
  11984. <dd><p>Repeat the last frame (the default).
  11985. </p></dd>
  11986. <dt>&lsquo;<samp>endall</samp>&rsquo;</dt>
  11987. <dd><p>End both streams.
  11988. </p></dd>
  11989. <dt>&lsquo;<samp>pass</samp>&rsquo;</dt>
  11990. <dd><p>Pass the main input through.
  11991. </p></dd>
  11992. </dl>
  11993. </dd>
  11994. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  11995. <dd><p>If set to 1, force the output to terminate when the shortest input
  11996. terminates. Default value is 0.
  11997. </p>
  11998. </dd>
  11999. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  12000. <dd><p>If set to 1, force the filter to extend the last frame of secondary streams
  12001. until the end of the primary stream. A value of 0 disables this behavior.
  12002. Default value is 1.
  12003. </p></dd>
  12004. </dl>
  12005. <a name="Audio-Filters"></a>
  12006. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Filters">29 Audio Filters</a></h1>
  12007. <p>When you configure your FFmpeg build, you can disable any of the
  12008. existing filters using <code>--disable-filters</code>.
  12009. The configure output will show the audio filters included in your
  12010. build.
  12011. </p>
  12012. <p>Below is a description of the currently available audio filters.
  12013. </p>
  12014. <a name="acompressor"></a>
  12015. <h2 class="section"><a href="ffprobe-all.html#toc-acompressor">29.1 acompressor</a></h2>
  12016. <p>A compressor is mainly used to reduce the dynamic range of a signal.
  12017. Especially modern music is mostly compressed at a high ratio to
  12018. improve the overall loudness. It&rsquo;s done to get the highest attention
  12019. of a listener, &quot;fatten&quot; the sound and bring more &quot;power&quot; to the track.
  12020. If a signal is compressed too much it may sound dull or &quot;dead&quot;
  12021. afterwards or it may start to &quot;pump&quot; (which could be a powerful effect
  12022. but can also destroy a track completely).
  12023. The right compression is the key to reach a professional sound and is
  12024. the high art of mixing and mastering. Because of its complex settings
  12025. it may take a long time to get the right feeling for this kind of effect.
  12026. </p>
  12027. <p>Compression is done by detecting the volume above a chosen level
  12028. <code>threshold</code> and dividing it by the factor set with <code>ratio</code>.
  12029. So if you set the threshold to -12dB and your signal reaches -6dB a ratio
  12030. of 2:1 will result in a signal at -9dB. Because an exact manipulation of
  12031. the signal would cause distortion of the waveform the reduction can be
  12032. levelled over the time. This is done by setting &quot;Attack&quot; and &quot;Release&quot;.
  12033. <code>attack</code> determines how long the signal has to rise above the threshold
  12034. before any reduction will occur and <code>release</code> sets the time the signal
  12035. has to fall below the threshold to reduce the reduction again. Shorter signals
  12036. than the chosen attack time will be left untouched.
  12037. The overall reduction of the signal can be made up afterwards with the
  12038. <code>makeup</code> setting. So compressing the peaks of a signal about 6dB and
  12039. raising the makeup to this level results in a signal twice as loud than the
  12040. source. To gain a softer entry in the compression the <code>knee</code> flattens the
  12041. hard edge at the threshold in the range of the chosen decibels.
  12042. </p>
  12043. <p>The filter accepts the following options:
  12044. </p>
  12045. <dl compact="compact">
  12046. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12047. <dd><p>Set input gain. Default is 1. Range is between 0.015625 and 64.
  12048. </p>
  12049. </dd>
  12050. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12051. <dd><p>Set mode of compressor operation. Can be <code>upward</code> or <code>downward</code>.
  12052. Default is <code>downward</code>.
  12053. </p>
  12054. </dd>
  12055. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  12056. <dd><p>If a signal of stream rises above this level it will affect the gain
  12057. reduction.
  12058. By default it is 0.125. Range is between 0.00097563 and 1.
  12059. </p>
  12060. </dd>
  12061. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  12062. <dd><p>Set a ratio by which the signal is reduced. 1:2 means that if the level
  12063. rose 4dB above the threshold, it will be only 2dB above after the reduction.
  12064. Default is 2. Range is between 1 and 20.
  12065. </p>
  12066. </dd>
  12067. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  12068. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  12069. reduction starts. Default is 20. Range is between 0.01 and 2000.
  12070. </p>
  12071. </dd>
  12072. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  12073. <dd><p>Amount of milliseconds the signal has to fall below the threshold before
  12074. reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
  12075. </p>
  12076. </dd>
  12077. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  12078. <dd><p>Set the amount by how much signal will be amplified after processing.
  12079. Default is 1. Range is from 1 to 64.
  12080. </p>
  12081. </dd>
  12082. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  12083. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  12084. Default is 2.82843. Range is between 1 and 8.
  12085. </p>
  12086. </dd>
  12087. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  12088. <dd><p>Choose if the <code>average</code> level between all channels of input stream
  12089. or the louder(<code>maximum</code>) channel of input stream affects the
  12090. reduction. Default is <code>average</code>.
  12091. </p>
  12092. </dd>
  12093. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  12094. <dd><p>Should the exact signal be taken in case of <code>peak</code> or an RMS one in case
  12095. of <code>rms</code>. Default is <code>rms</code> which is mostly smoother.
  12096. </p>
  12097. </dd>
  12098. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  12099. <dd><p>How much to use compressed signal in output. Default is 1.
  12100. Range is between 0 and 1.
  12101. </p></dd>
  12102. </dl>
  12103. <a name="Commands-56"></a>
  12104. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-56">29.1.1 Commands</a></h3>
  12105. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  12106. </p>
  12107. <a name="acontrast"></a>
  12108. <h2 class="section"><a href="ffprobe-all.html#toc-acontrast">29.2 acontrast</a></h2>
  12109. <p>Simple audio dynamic range compression/expansion filter.
  12110. </p>
  12111. <p>The filter accepts the following options:
  12112. </p>
  12113. <dl compact="compact">
  12114. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  12115. <dd><p>Set contrast. Default is 33. Allowed range is between 0 and 100.
  12116. </p></dd>
  12117. </dl>
  12118. <a name="acopy"></a>
  12119. <h2 class="section"><a href="ffprobe-all.html#toc-acopy">29.3 acopy</a></h2>
  12120. <p>Copy the input audio source unchanged to the output. This is mainly useful for
  12121. testing purposes.
  12122. </p>
  12123. <a name="acrossfade"></a>
  12124. <h2 class="section"><a href="ffprobe-all.html#toc-acrossfade">29.4 acrossfade</a></h2>
  12125. <p>Apply cross fade from one input audio stream to another input audio stream.
  12126. The cross fade is applied for specified duration near the end of first stream.
  12127. </p>
  12128. <p>The filter accepts the following options:
  12129. </p>
  12130. <dl compact="compact">
  12131. <dt>&lsquo;<samp>nb_samples, ns</samp>&rsquo;</dt>
  12132. <dd><p>Specify the number of samples for which the cross fade effect has to last.
  12133. At the end of the cross fade effect the first input audio will be completely
  12134. silent. Default is 44100.
  12135. </p>
  12136. </dd>
  12137. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  12138. <dd><p>Specify the duration of the cross fade effect. See
  12139. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12140. for the accepted syntax.
  12141. By default the duration is determined by <var>nb_samples</var>.
  12142. If set this option is used instead of <var>nb_samples</var>.
  12143. </p>
  12144. </dd>
  12145. <dt>&lsquo;<samp>overlap, o</samp>&rsquo;</dt>
  12146. <dd><p>Should first stream end overlap with second stream start. Default is enabled.
  12147. </p>
  12148. </dd>
  12149. <dt>&lsquo;<samp>curve1</samp>&rsquo;</dt>
  12150. <dd><p>Set curve for cross fade transition for first stream.
  12151. </p>
  12152. </dd>
  12153. <dt>&lsquo;<samp>curve2</samp>&rsquo;</dt>
  12154. <dd><p>Set curve for cross fade transition for second stream.
  12155. </p>
  12156. <p>For description of available curve types see <a href="#afade">afade</a> filter description.
  12157. </p></dd>
  12158. </dl>
  12159. <a name="Examples-162"></a>
  12160. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-162">29.4.1 Examples</a></h3>
  12161. <ul>
  12162. <li>
  12163. Cross fade from one input to another:
  12164. <div class="example">
  12165. <pre class="example">ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:c1=exp:c2=exp output.flac
  12166. </pre></div>
  12167. </li><li>
  12168. Cross fade from one input to another but without overlapping:
  12169. <div class="example">
  12170. <pre class="example">ffmpeg -i first.flac -i second.flac -filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac
  12171. </pre></div>
  12172. </li></ul>
  12173. <a name="acrossover"></a>
  12174. <h2 class="section"><a href="ffprobe-all.html#toc-acrossover">29.5 acrossover</a></h2>
  12175. <p>Split audio stream into several bands.
  12176. </p>
  12177. <p>This filter splits audio stream into two or more frequency ranges.
  12178. Summing all streams back will give flat output.
  12179. </p>
  12180. <p>The filter accepts the following options:
  12181. </p>
  12182. <dl compact="compact">
  12183. <dt>&lsquo;<samp>split</samp>&rsquo;</dt>
  12184. <dd><p>Set split frequencies. Those must be positive and increasing.
  12185. </p>
  12186. </dd>
  12187. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  12188. <dd><p>Set filter order, can be <var>2nd</var>, <var>4th</var> or <var>8th</var>.
  12189. Default is <var>4th</var>.
  12190. </p></dd>
  12191. </dl>
  12192. <a name="acrusher"></a>
  12193. <h2 class="section"><a href="ffprobe-all.html#toc-acrusher">29.6 acrusher</a></h2>
  12194. <p>Reduce audio bit resolution.
  12195. </p>
  12196. <p>This filter is bit crusher with enhanced functionality. A bit crusher
  12197. is used to audibly reduce number of bits an audio signal is sampled
  12198. with. This doesn&rsquo;t change the bit depth at all, it just produces the
  12199. effect. Material reduced in bit depth sounds more harsh and &quot;digital&quot;.
  12200. This filter is able to even round to continuous values instead of discrete
  12201. bit depths.
  12202. Additionally it has a D/C offset which results in different crushing of
  12203. the lower and the upper half of the signal.
  12204. An Anti-Aliasing setting is able to produce &quot;softer&quot; crushing sounds.
  12205. </p>
  12206. <p>Another feature of this filter is the logarithmic mode.
  12207. This setting switches from linear distances between bits to logarithmic ones.
  12208. The result is a much more &quot;natural&quot; sounding crusher which doesn&rsquo;t gate low
  12209. signals for example. The human ear has a logarithmic perception,
  12210. so this kind of crushing is much more pleasant.
  12211. Logarithmic crushing is also able to get anti-aliased.
  12212. </p>
  12213. <p>The filter accepts the following options:
  12214. </p>
  12215. <dl compact="compact">
  12216. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12217. <dd><p>Set level in.
  12218. </p>
  12219. </dd>
  12220. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  12221. <dd><p>Set level out.
  12222. </p>
  12223. </dd>
  12224. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  12225. <dd><p>Set bit reduction.
  12226. </p>
  12227. </dd>
  12228. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  12229. <dd><p>Set mixing amount.
  12230. </p>
  12231. </dd>
  12232. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12233. <dd><p>Can be linear: <code>lin</code> or logarithmic: <code>log</code>.
  12234. </p>
  12235. </dd>
  12236. <dt>&lsquo;<samp>dc</samp>&rsquo;</dt>
  12237. <dd><p>Set DC.
  12238. </p>
  12239. </dd>
  12240. <dt>&lsquo;<samp>aa</samp>&rsquo;</dt>
  12241. <dd><p>Set anti-aliasing.
  12242. </p>
  12243. </dd>
  12244. <dt>&lsquo;<samp>samples</samp>&rsquo;</dt>
  12245. <dd><p>Set sample reduction.
  12246. </p>
  12247. </dd>
  12248. <dt>&lsquo;<samp>lfo</samp>&rsquo;</dt>
  12249. <dd><p>Enable LFO. By default disabled.
  12250. </p>
  12251. </dd>
  12252. <dt>&lsquo;<samp>lforange</samp>&rsquo;</dt>
  12253. <dd><p>Set LFO range.
  12254. </p>
  12255. </dd>
  12256. <dt>&lsquo;<samp>lforate</samp>&rsquo;</dt>
  12257. <dd><p>Set LFO rate.
  12258. </p></dd>
  12259. </dl>
  12260. <a name="acue"></a>
  12261. <h2 class="section"><a href="ffprobe-all.html#toc-acue">29.7 acue</a></h2>
  12262. <p>Delay audio filtering until a given wallclock timestamp. See the <a href="#cue">cue</a>
  12263. filter.
  12264. </p>
  12265. <a name="adeclick"></a>
  12266. <h2 class="section"><a href="ffprobe-all.html#toc-adeclick">29.8 adeclick</a></h2>
  12267. <p>Remove impulsive noise from input audio.
  12268. </p>
  12269. <p>Samples detected as impulsive noise are replaced by interpolated samples using
  12270. autoregressive modelling.
  12271. </p>
  12272. <dl compact="compact">
  12273. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12274. <dd><p>Set window size, in milliseconds. Allowed range is from <code>10</code> to
  12275. <code>100</code>. Default value is <code>55</code> milliseconds.
  12276. This sets size of window which will be processed at once.
  12277. </p>
  12278. </dd>
  12279. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12280. <dd><p>Set window overlap, in percentage of window size. Allowed range is from
  12281. <code>50</code> to <code>95</code>. Default value is <code>75</code> percent.
  12282. Setting this to a very high value increases impulsive noise removal but makes
  12283. whole process much slower.
  12284. </p>
  12285. </dd>
  12286. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12287. <dd><p>Set autoregression order, in percentage of window size. Allowed range is from
  12288. <code>0</code> to <code>25</code>. Default value is <code>2</code> percent. This option also
  12289. controls quality of interpolated samples using neighbour good samples.
  12290. </p>
  12291. </dd>
  12292. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12293. <dd><p>Set threshold value. Allowed range is from <code>1</code> to <code>100</code>.
  12294. Default value is <code>2</code>.
  12295. This controls the strength of impulsive noise which is going to be removed.
  12296. The lower value, the more samples will be detected as impulsive noise.
  12297. </p>
  12298. </dd>
  12299. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  12300. <dd><p>Set burst fusion, in percentage of window size. Allowed range is <code>0</code> to
  12301. <code>10</code>. Default value is <code>2</code>.
  12302. If any two samples detected as noise are spaced less than this value then any
  12303. sample between those two samples will be also detected as noise.
  12304. </p>
  12305. </dd>
  12306. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  12307. <dd><p>Set overlap method.
  12308. </p>
  12309. <p>It accepts the following values:
  12310. </p><dl compact="compact">
  12311. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12312. <dd><p>Select overlap-add method. Even not interpolated samples are slightly
  12313. changed with this method.
  12314. </p>
  12315. </dd>
  12316. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12317. <dd><p>Select overlap-save method. Not interpolated samples remain unchanged.
  12318. </p></dd>
  12319. </dl>
  12320. <p>Default value is <code>a</code>.
  12321. </p></dd>
  12322. </dl>
  12323. <a name="adeclip"></a>
  12324. <h2 class="section"><a href="ffprobe-all.html#toc-adeclip">29.9 adeclip</a></h2>
  12325. <p>Remove clipped samples from input audio.
  12326. </p>
  12327. <p>Samples detected as clipped are replaced by interpolated samples using
  12328. autoregressive modelling.
  12329. </p>
  12330. <dl compact="compact">
  12331. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12332. <dd><p>Set window size, in milliseconds. Allowed range is from <code>10</code> to <code>100</code>.
  12333. Default value is <code>55</code> milliseconds.
  12334. This sets size of window which will be processed at once.
  12335. </p>
  12336. </dd>
  12337. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12338. <dd><p>Set window overlap, in percentage of window size. Allowed range is from <code>50</code>
  12339. to <code>95</code>. Default value is <code>75</code> percent.
  12340. </p>
  12341. </dd>
  12342. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12343. <dd><p>Set autoregression order, in percentage of window size. Allowed range is from
  12344. <code>0</code> to <code>25</code>. Default value is <code>8</code> percent. This option also controls
  12345. quality of interpolated samples using neighbour good samples.
  12346. </p>
  12347. </dd>
  12348. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12349. <dd><p>Set threshold value. Allowed range is from <code>1</code> to <code>100</code>.
  12350. Default value is <code>10</code>. Higher values make clip detection less aggressive.
  12351. </p>
  12352. </dd>
  12353. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12354. <dd><p>Set size of histogram used to detect clips. Allowed range is from <code>100</code> to <code>9999</code>.
  12355. Default value is <code>1000</code>. Higher values make clip detection less aggressive.
  12356. </p>
  12357. </dd>
  12358. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  12359. <dd><p>Set overlap method.
  12360. </p>
  12361. <p>It accepts the following values:
  12362. </p><dl compact="compact">
  12363. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  12364. <dd><p>Select overlap-add method. Even not interpolated samples are slightly changed
  12365. with this method.
  12366. </p>
  12367. </dd>
  12368. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12369. <dd><p>Select overlap-save method. Not interpolated samples remain unchanged.
  12370. </p></dd>
  12371. </dl>
  12372. <p>Default value is <code>a</code>.
  12373. </p></dd>
  12374. </dl>
  12375. <a name="adelay"></a>
  12376. <h2 class="section"><a href="ffprobe-all.html#toc-adelay">29.10 adelay</a></h2>
  12377. <p>Delay one or more audio channels.
  12378. </p>
  12379. <p>Samples in delayed channel are filled with silence.
  12380. </p>
  12381. <p>The filter accepts the following option:
  12382. </p>
  12383. <dl compact="compact">
  12384. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  12385. <dd><p>Set list of delays in milliseconds for each channel separated by &rsquo;|&rsquo;.
  12386. Unused delays will be silently ignored. If number of given delays is
  12387. smaller than number of channels all remaining channels will not be delayed.
  12388. If you want to delay exact number of samples, append &rsquo;S&rsquo; to number.
  12389. If you want instead to delay in seconds, append &rsquo;s&rsquo; to number.
  12390. </p>
  12391. </dd>
  12392. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  12393. <dd><p>Use last set delay for all remaining channels. By default is disabled.
  12394. This option if enabled changes how option <code>delays</code> is interpreted.
  12395. </p></dd>
  12396. </dl>
  12397. <a name="Examples-112"></a>
  12398. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-112">29.10.1 Examples</a></h3>
  12399. <ul>
  12400. <li>
  12401. Delay first channel by 1.5 seconds, the third channel by 0.5 seconds and leave
  12402. the second channel (and any other channels that may be present) unchanged.
  12403. <div class="example">
  12404. <pre class="example">adelay=1500|0|500
  12405. </pre></div>
  12406. </li><li>
  12407. Delay second channel by 500 samples, the third channel by 700 samples and leave
  12408. the first channel (and any other channels that may be present) unchanged.
  12409. <div class="example">
  12410. <pre class="example">adelay=0|500S|700S
  12411. </pre></div>
  12412. </li><li>
  12413. Delay all channels by same number of samples:
  12414. <div class="example">
  12415. <pre class="example">adelay=delays=64S:all=1
  12416. </pre></div>
  12417. </li></ul>
  12418. <a name="aderivative_002c-aintegral"></a>
  12419. <h2 class="section"><a href="ffprobe-all.html#toc-aderivative_002c-aintegral">29.11 aderivative, aintegral</a></h2>
  12420. <p>Compute derivative/integral of audio stream.
  12421. </p>
  12422. <p>Applying both filters one after another produces original audio.
  12423. </p>
  12424. <a name="aecho"></a>
  12425. <h2 class="section"><a href="ffprobe-all.html#toc-aecho">29.12 aecho</a></h2>
  12426. <p>Apply echoing to the input audio.
  12427. </p>
  12428. <p>Echoes are reflected sound and can occur naturally amongst mountains
  12429. (and sometimes large buildings) when talking or shouting; digital echo
  12430. effects emulate this behaviour and are often used to help fill out the
  12431. sound of a single instrument or vocal. The time difference between the
  12432. original signal and the reflection is the <code>delay</code>, and the
  12433. loudness of the reflected signal is the <code>decay</code>.
  12434. Multiple echoes can have different delays and decays.
  12435. </p>
  12436. <p>A description of the accepted parameters follows.
  12437. </p>
  12438. <dl compact="compact">
  12439. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  12440. <dd><p>Set input gain of reflected signal. Default is <code>0.6</code>.
  12441. </p>
  12442. </dd>
  12443. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  12444. <dd><p>Set output gain of reflected signal. Default is <code>0.3</code>.
  12445. </p>
  12446. </dd>
  12447. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  12448. <dd><p>Set list of time intervals in milliseconds between original signal and reflections
  12449. separated by &rsquo;|&rsquo;. Allowed range for each <code>delay</code> is <code>(0 - 90000.0]</code>.
  12450. Default is <code>1000</code>.
  12451. </p>
  12452. </dd>
  12453. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  12454. <dd><p>Set list of loudness of reflected signals separated by &rsquo;|&rsquo;.
  12455. Allowed range for each <code>decay</code> is <code>(0 - 1.0]</code>.
  12456. Default is <code>0.5</code>.
  12457. </p></dd>
  12458. </dl>
  12459. <a name="Examples-114"></a>
  12460. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-114">29.12.1 Examples</a></h3>
  12461. <ul>
  12462. <li>
  12463. Make it sound as if there are twice as many instruments as are actually playing:
  12464. <div class="example">
  12465. <pre class="example">aecho=0.8:0.88:60:0.4
  12466. </pre></div>
  12467. </li><li>
  12468. If delay is very short, then it sounds like a (metallic) robot playing music:
  12469. <div class="example">
  12470. <pre class="example">aecho=0.8:0.88:6:0.4
  12471. </pre></div>
  12472. </li><li>
  12473. A longer delay will sound like an open air concert in the mountains:
  12474. <div class="example">
  12475. <pre class="example">aecho=0.8:0.9:1000:0.3
  12476. </pre></div>
  12477. </li><li>
  12478. Same as above but with one more mountain:
  12479. <div class="example">
  12480. <pre class="example">aecho=0.8:0.9:1000|1800:0.3|0.25
  12481. </pre></div>
  12482. </li></ul>
  12483. <a name="aemphasis"></a>
  12484. <h2 class="section"><a href="ffprobe-all.html#toc-aemphasis">29.13 aemphasis</a></h2>
  12485. <p>Audio emphasis filter creates or restores material directly taken from LPs or
  12486. emphased CDs with different filter curves. E.g. to store music on vinyl the
  12487. signal has to be altered by a filter first to even out the disadvantages of
  12488. this recording medium.
  12489. Once the material is played back the inverse filter has to be applied to
  12490. restore the distortion of the frequency response.
  12491. </p>
  12492. <p>The filter accepts the following options:
  12493. </p>
  12494. <dl compact="compact">
  12495. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  12496. <dd><p>Set input gain.
  12497. </p>
  12498. </dd>
  12499. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  12500. <dd><p>Set output gain.
  12501. </p>
  12502. </dd>
  12503. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  12504. <dd><p>Set filter mode. For restoring material use <code>reproduction</code> mode, otherwise
  12505. use <code>production</code> mode. Default is <code>reproduction</code> mode.
  12506. </p>
  12507. </dd>
  12508. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  12509. <dd><p>Set filter type. Selects medium. Can be one of the following:
  12510. </p>
  12511. <dl compact="compact">
  12512. <dt>&lsquo;<samp>col</samp>&rsquo;</dt>
  12513. <dd><p>select Columbia.
  12514. </p></dd>
  12515. <dt>&lsquo;<samp>emi</samp>&rsquo;</dt>
  12516. <dd><p>select EMI.
  12517. </p></dd>
  12518. <dt>&lsquo;<samp>bsi</samp>&rsquo;</dt>
  12519. <dd><p>select BSI (78RPM).
  12520. </p></dd>
  12521. <dt>&lsquo;<samp>riaa</samp>&rsquo;</dt>
  12522. <dd><p>select RIAA.
  12523. </p></dd>
  12524. <dt>&lsquo;<samp>cd</samp>&rsquo;</dt>
  12525. <dd><p>select Compact Disc (CD).
  12526. </p></dd>
  12527. <dt>&lsquo;<samp>50fm</samp>&rsquo;</dt>
  12528. <dd><p>select 50µs (FM).
  12529. </p></dd>
  12530. <dt>&lsquo;<samp>75fm</samp>&rsquo;</dt>
  12531. <dd><p>select 75µs (FM).
  12532. </p></dd>
  12533. <dt>&lsquo;<samp>50kf</samp>&rsquo;</dt>
  12534. <dd><p>select 50µs (FM-KF).
  12535. </p></dd>
  12536. <dt>&lsquo;<samp>75kf</samp>&rsquo;</dt>
  12537. <dd><p>select 75µs (FM-KF).
  12538. </p></dd>
  12539. </dl>
  12540. </dd>
  12541. </dl>
  12542. <a name="aeval"></a>
  12543. <h2 class="section"><a href="ffprobe-all.html#toc-aeval">29.14 aeval</a></h2>
  12544. <p>Modify an audio signal according to the specified expressions.
  12545. </p>
  12546. <p>This filter accepts one or more expressions (one for each channel),
  12547. which are evaluated and used to modify a corresponding audio signal.
  12548. </p>
  12549. <p>It accepts the following parameters:
  12550. </p>
  12551. <dl compact="compact">
  12552. <dt>&lsquo;<samp>exprs</samp>&rsquo;</dt>
  12553. <dd><p>Set the &rsquo;|&rsquo;-separated expressions list for each separate channel. If
  12554. the number of input channels is greater than the number of
  12555. expressions, the last specified expression is used for the remaining
  12556. output channels.
  12557. </p>
  12558. </dd>
  12559. <dt>&lsquo;<samp>channel_layout, c</samp>&rsquo;</dt>
  12560. <dd><p>Set output channel layout. If not specified, the channel layout is
  12561. specified by the number of expressions. If set to &lsquo;<samp>same</samp>&rsquo;, it will
  12562. use by default the same input channel layout.
  12563. </p></dd>
  12564. </dl>
  12565. <p>Each expression in <var>exprs</var> can contain the following constants and functions:
  12566. </p>
  12567. <dl compact="compact">
  12568. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  12569. <dd><p>channel number of the current expression
  12570. </p>
  12571. </dd>
  12572. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12573. <dd><p>number of the evaluated sample, starting from 0
  12574. </p>
  12575. </dd>
  12576. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12577. <dd><p>sample rate
  12578. </p>
  12579. </dd>
  12580. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  12581. <dd><p>time of the evaluated sample expressed in seconds
  12582. </p>
  12583. </dd>
  12584. <dt>&lsquo;<samp>nb_in_channels</samp>&rsquo;</dt>
  12585. <dt>&lsquo;<samp>nb_out_channels</samp>&rsquo;</dt>
  12586. <dd><p>input and output number of channels
  12587. </p>
  12588. </dd>
  12589. <dt>&lsquo;<samp>val(CH)</samp>&rsquo;</dt>
  12590. <dd><p>the value of input channel with number <var>CH</var>
  12591. </p></dd>
  12592. </dl>
  12593. <p>Note: this filter is slow. For faster processing you should use a
  12594. dedicated filter.
  12595. </p>
  12596. <a name="Examples-33"></a>
  12597. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-33">29.14.1 Examples</a></h3>
  12598. <ul>
  12599. <li>
  12600. Half volume:
  12601. <div class="example">
  12602. <pre class="example">aeval=val(ch)/2:c=same
  12603. </pre></div>
  12604. </li><li>
  12605. Invert phase of the second channel:
  12606. <div class="example">
  12607. <pre class="example">aeval=val(0)|-val(1)
  12608. </pre></div>
  12609. </li></ul>
  12610. <p><a name="afade"></a>
  12611. </p><a name="afade-1"></a>
  12612. <h2 class="section"><a href="ffprobe-all.html#toc-afade-1">29.15 afade</a></h2>
  12613. <p>Apply fade-in/out effect to input audio.
  12614. </p>
  12615. <p>A description of the accepted parameters follows.
  12616. </p>
  12617. <dl compact="compact">
  12618. <dt>&lsquo;<samp>type, t</samp>&rsquo;</dt>
  12619. <dd><p>Specify the effect type, can be either <code>in</code> for fade-in, or
  12620. <code>out</code> for a fade-out effect. Default is <code>in</code>.
  12621. </p>
  12622. </dd>
  12623. <dt>&lsquo;<samp>start_sample, ss</samp>&rsquo;</dt>
  12624. <dd><p>Specify the number of the start sample for starting to apply the fade
  12625. effect. Default is 0.
  12626. </p>
  12627. </dd>
  12628. <dt>&lsquo;<samp>nb_samples, ns</samp>&rsquo;</dt>
  12629. <dd><p>Specify the number of samples for which the fade effect has to last. At
  12630. the end of the fade-in effect the output audio will have the same
  12631. volume as the input audio, at the end of the fade-out transition
  12632. the output audio will be silence. Default is 44100.
  12633. </p>
  12634. </dd>
  12635. <dt>&lsquo;<samp>start_time, st</samp>&rsquo;</dt>
  12636. <dd><p>Specify the start time of the fade effect. Default is 0.
  12637. The value must be specified as a time duration; see
  12638. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12639. for the accepted syntax.
  12640. If set this option is used instead of <var>start_sample</var>.
  12641. </p>
  12642. </dd>
  12643. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  12644. <dd><p>Specify the duration of the fade effect. See
  12645. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  12646. for the accepted syntax.
  12647. At the end of the fade-in effect the output audio will have the same
  12648. volume as the input audio, at the end of the fade-out transition
  12649. the output audio will be silence.
  12650. By default the duration is determined by <var>nb_samples</var>.
  12651. If set this option is used instead of <var>nb_samples</var>.
  12652. </p>
  12653. </dd>
  12654. <dt>&lsquo;<samp>curve</samp>&rsquo;</dt>
  12655. <dd><p>Set curve for fade transition.
  12656. </p>
  12657. <p>It accepts the following values:
  12658. </p><dl compact="compact">
  12659. <dt>&lsquo;<samp>tri</samp>&rsquo;</dt>
  12660. <dd><p>select triangular, linear slope (default)
  12661. </p></dd>
  12662. <dt>&lsquo;<samp>qsin</samp>&rsquo;</dt>
  12663. <dd><p>select quarter of sine wave
  12664. </p></dd>
  12665. <dt>&lsquo;<samp>hsin</samp>&rsquo;</dt>
  12666. <dd><p>select half of sine wave
  12667. </p></dd>
  12668. <dt>&lsquo;<samp>esin</samp>&rsquo;</dt>
  12669. <dd><p>select exponential sine wave
  12670. </p></dd>
  12671. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  12672. <dd><p>select logarithmic
  12673. </p></dd>
  12674. <dt>&lsquo;<samp>ipar</samp>&rsquo;</dt>
  12675. <dd><p>select inverted parabola
  12676. </p></dd>
  12677. <dt>&lsquo;<samp>qua</samp>&rsquo;</dt>
  12678. <dd><p>select quadratic
  12679. </p></dd>
  12680. <dt>&lsquo;<samp>cub</samp>&rsquo;</dt>
  12681. <dd><p>select cubic
  12682. </p></dd>
  12683. <dt>&lsquo;<samp>squ</samp>&rsquo;</dt>
  12684. <dd><p>select square root
  12685. </p></dd>
  12686. <dt>&lsquo;<samp>cbr</samp>&rsquo;</dt>
  12687. <dd><p>select cubic root
  12688. </p></dd>
  12689. <dt>&lsquo;<samp>par</samp>&rsquo;</dt>
  12690. <dd><p>select parabola
  12691. </p></dd>
  12692. <dt>&lsquo;<samp>exp</samp>&rsquo;</dt>
  12693. <dd><p>select exponential
  12694. </p></dd>
  12695. <dt>&lsquo;<samp>iqsin</samp>&rsquo;</dt>
  12696. <dd><p>select inverted quarter of sine wave
  12697. </p></dd>
  12698. <dt>&lsquo;<samp>ihsin</samp>&rsquo;</dt>
  12699. <dd><p>select inverted half of sine wave
  12700. </p></dd>
  12701. <dt>&lsquo;<samp>dese</samp>&rsquo;</dt>
  12702. <dd><p>select double-exponential seat
  12703. </p></dd>
  12704. <dt>&lsquo;<samp>desi</samp>&rsquo;</dt>
  12705. <dd><p>select double-exponential sigmoid
  12706. </p></dd>
  12707. <dt>&lsquo;<samp>losi</samp>&rsquo;</dt>
  12708. <dd><p>select logistic sigmoid
  12709. </p></dd>
  12710. <dt>&lsquo;<samp>nofade</samp>&rsquo;</dt>
  12711. <dd><p>no fade applied
  12712. </p></dd>
  12713. </dl>
  12714. </dd>
  12715. </dl>
  12716. <a name="Examples-156"></a>
  12717. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-156">29.15.1 Examples</a></h3>
  12718. <ul>
  12719. <li>
  12720. Fade in first 15 seconds of audio:
  12721. <div class="example">
  12722. <pre class="example">afade=t=in:ss=0:d=15
  12723. </pre></div>
  12724. </li><li>
  12725. Fade out last 25 seconds of a 900 seconds audio:
  12726. <div class="example">
  12727. <pre class="example">afade=t=out:st=875:d=25
  12728. </pre></div>
  12729. </li></ul>
  12730. <a name="afftdn"></a>
  12731. <h2 class="section"><a href="ffprobe-all.html#toc-afftdn">29.16 afftdn</a></h2>
  12732. <p>Denoise audio samples with FFT.
  12733. </p>
  12734. <p>A description of the accepted parameters follows.
  12735. </p>
  12736. <dl compact="compact">
  12737. <dt>&lsquo;<samp>nr</samp>&rsquo;</dt>
  12738. <dd><p>Set the noise reduction in dB, allowed range is 0.01 to 97.
  12739. Default value is 12 dB.
  12740. </p>
  12741. </dd>
  12742. <dt>&lsquo;<samp>nf</samp>&rsquo;</dt>
  12743. <dd><p>Set the noise floor in dB, allowed range is -80 to -20.
  12744. Default value is -50 dB.
  12745. </p>
  12746. </dd>
  12747. <dt>&lsquo;<samp>nt</samp>&rsquo;</dt>
  12748. <dd><p>Set the noise type.
  12749. </p>
  12750. <p>It accepts the following values:
  12751. </p><dl compact="compact">
  12752. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  12753. <dd><p>Select white noise.
  12754. </p>
  12755. </dd>
  12756. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  12757. <dd><p>Select vinyl noise.
  12758. </p>
  12759. </dd>
  12760. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  12761. <dd><p>Select shellac noise.
  12762. </p>
  12763. </dd>
  12764. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  12765. <dd><p>Select custom noise, defined in <code>bn</code> option.
  12766. </p>
  12767. <p>Default value is white noise.
  12768. </p></dd>
  12769. </dl>
  12770. </dd>
  12771. <dt>&lsquo;<samp>bn</samp>&rsquo;</dt>
  12772. <dd><p>Set custom band noise for every one of 15 bands.
  12773. Bands are separated by &rsquo; &rsquo; or &rsquo;|&rsquo;.
  12774. </p>
  12775. </dd>
  12776. <dt>&lsquo;<samp>rf</samp>&rsquo;</dt>
  12777. <dd><p>Set the residual floor in dB, allowed range is -80 to -20.
  12778. Default value is -38 dB.
  12779. </p>
  12780. </dd>
  12781. <dt>&lsquo;<samp>tn</samp>&rsquo;</dt>
  12782. <dd><p>Enable noise tracking. By default is disabled.
  12783. With this enabled, noise floor is automatically adjusted.
  12784. </p>
  12785. </dd>
  12786. <dt>&lsquo;<samp>tr</samp>&rsquo;</dt>
  12787. <dd><p>Enable residual tracking. By default is disabled.
  12788. </p>
  12789. </dd>
  12790. <dt>&lsquo;<samp>om</samp>&rsquo;</dt>
  12791. <dd><p>Set the output mode.
  12792. </p>
  12793. <p>It accepts the following values:
  12794. </p><dl compact="compact">
  12795. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  12796. <dd><p>Pass input unchanged.
  12797. </p>
  12798. </dd>
  12799. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  12800. <dd><p>Pass noise filtered out.
  12801. </p>
  12802. </dd>
  12803. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  12804. <dd><p>Pass only noise.
  12805. </p>
  12806. <p>Default value is <var>o</var>.
  12807. </p></dd>
  12808. </dl>
  12809. </dd>
  12810. </dl>
  12811. <a name="Commands-35"></a>
  12812. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-35">29.16.1 Commands</a></h3>
  12813. <p>This filter supports the following commands:
  12814. </p><dl compact="compact">
  12815. <dt>&lsquo;<samp>sample_noise, sn</samp>&rsquo;</dt>
  12816. <dd><p>Start or stop measuring noise profile.
  12817. Syntax for the command is : &quot;start&quot; or &quot;stop&quot; string.
  12818. After measuring noise profile is stopped it will be
  12819. automatically applied in filtering.
  12820. </p>
  12821. </dd>
  12822. <dt>&lsquo;<samp>noise_reduction, nr</samp>&rsquo;</dt>
  12823. <dd><p>Change noise reduction. Argument is single float number.
  12824. Syntax for the command is : &quot;<var>noise_reduction</var>&quot;
  12825. </p>
  12826. </dd>
  12827. <dt>&lsquo;<samp>noise_floor, nf</samp>&rsquo;</dt>
  12828. <dd><p>Change noise floor. Argument is single float number.
  12829. Syntax for the command is : &quot;<var>noise_floor</var>&quot;
  12830. </p>
  12831. </dd>
  12832. <dt>&lsquo;<samp>output_mode, om</samp>&rsquo;</dt>
  12833. <dd><p>Change output mode operation.
  12834. Syntax for the command is : &quot;i&quot;, &quot;o&quot; or &quot;n&quot; string.
  12835. </p></dd>
  12836. </dl>
  12837. <a name="afftfilt"></a>
  12838. <h2 class="section"><a href="ffprobe-all.html#toc-afftfilt">29.17 afftfilt</a></h2>
  12839. <p>Apply arbitrary expressions to samples in frequency domain.
  12840. </p>
  12841. <dl compact="compact">
  12842. <dt>&lsquo;<samp>real</samp>&rsquo;</dt>
  12843. <dd><p>Set frequency domain real expression for each separate channel separated
  12844. by &rsquo;|&rsquo;. Default is &quot;re&quot;.
  12845. If the number of input channels is greater than the number of
  12846. expressions, the last specified expression is used for the remaining
  12847. output channels.
  12848. </p>
  12849. </dd>
  12850. <dt>&lsquo;<samp>imag</samp>&rsquo;</dt>
  12851. <dd><p>Set frequency domain imaginary expression for each separate channel
  12852. separated by &rsquo;|&rsquo;. Default is &quot;im&quot;.
  12853. </p>
  12854. <p>Each expression in <var>real</var> and <var>imag</var> can contain the following
  12855. constants and functions:
  12856. </p>
  12857. <dl compact="compact">
  12858. <dt>&lsquo;<samp>sr</samp>&rsquo;</dt>
  12859. <dd><p>sample rate
  12860. </p>
  12861. </dd>
  12862. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  12863. <dd><p>current frequency bin number
  12864. </p>
  12865. </dd>
  12866. <dt>&lsquo;<samp>nb</samp>&rsquo;</dt>
  12867. <dd><p>number of available bins
  12868. </p>
  12869. </dd>
  12870. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  12871. <dd><p>channel number of the current expression
  12872. </p>
  12873. </dd>
  12874. <dt>&lsquo;<samp>chs</samp>&rsquo;</dt>
  12875. <dd><p>number of channels
  12876. </p>
  12877. </dd>
  12878. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  12879. <dd><p>current frame pts
  12880. </p>
  12881. </dd>
  12882. <dt>&lsquo;<samp>re</samp>&rsquo;</dt>
  12883. <dd><p>current real part of frequency bin of current channel
  12884. </p>
  12885. </dd>
  12886. <dt>&lsquo;<samp>im</samp>&rsquo;</dt>
  12887. <dd><p>current imaginary part of frequency bin of current channel
  12888. </p>
  12889. </dd>
  12890. <dt>&lsquo;<samp>real(b, ch)</samp>&rsquo;</dt>
  12891. <dd><p>Return the value of real part of frequency bin at location (<var>bin</var>,<var>channel</var>)
  12892. </p>
  12893. </dd>
  12894. <dt>&lsquo;<samp>imag(b, ch)</samp>&rsquo;</dt>
  12895. <dd><p>Return the value of imaginary part of frequency bin at location (<var>bin</var>,<var>channel</var>)
  12896. </p></dd>
  12897. </dl>
  12898. </dd>
  12899. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  12900. <dd><p>Set window size. Allowed range is from 16 to 131072.
  12901. Default is <code>4096</code>
  12902. </p>
  12903. </dd>
  12904. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  12905. <dd><p>Set window function. Default is <code>hann</code>.
  12906. </p>
  12907. </dd>
  12908. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  12909. <dd><p>Set window overlap. If set to 1, the recommended overlap for selected
  12910. window function will be picked. Default is <code>0.75</code>.
  12911. </p></dd>
  12912. </dl>
  12913. <a name="Examples-35"></a>
  12914. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-35">29.17.1 Examples</a></h3>
  12915. <ul>
  12916. <li>
  12917. Leave almost only low frequencies in audio:
  12918. <div class="example">
  12919. <pre class="example">afftfilt=&quot;'real=re * (1-clip((b/nb)*b,0,1))':imag='im * (1-clip((b/nb)*b,0,1))'&quot;
  12920. </pre></div>
  12921. </li><li>
  12922. Apply robotize effect:
  12923. <div class="example">
  12924. <pre class="example">afftfilt=&quot;real='hypot(re,im)*sin(0)':imag='hypot(re,im)*cos(0)':win_size=512:overlap=0.75&quot;
  12925. </pre></div>
  12926. </li><li>
  12927. Apply whisper effect:
  12928. <div class="example">
  12929. <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;
  12930. </pre></div>
  12931. </li></ul>
  12932. <p><a name="afir"></a>
  12933. </p><a name="afir-1"></a>
  12934. <h2 class="section"><a href="ffprobe-all.html#toc-afir-1">29.18 afir</a></h2>
  12935. <p>Apply an arbitrary Finite Impulse Response filter.
  12936. </p>
  12937. <p>This filter is designed for applying long FIR filters,
  12938. up to 60 seconds long.
  12939. </p>
  12940. <p>It can be used as component for digital crossover filters,
  12941. room equalization, cross talk cancellation, wavefield synthesis,
  12942. auralization, ambiophonics, ambisonics and spatialization.
  12943. </p>
  12944. <p>This filter uses the streams higher than first one as FIR coefficients.
  12945. If the non-first stream holds a single channel, it will be used
  12946. for all input channels in the first stream, otherwise
  12947. the number of channels in the non-first stream must be same as
  12948. the number of channels in the first stream.
  12949. </p>
  12950. <p>It accepts the following parameters:
  12951. </p>
  12952. <dl compact="compact">
  12953. <dt>&lsquo;<samp>dry</samp>&rsquo;</dt>
  12954. <dd><p>Set dry gain. This sets input gain.
  12955. </p>
  12956. </dd>
  12957. <dt>&lsquo;<samp>wet</samp>&rsquo;</dt>
  12958. <dd><p>Set wet gain. This sets final output gain.
  12959. </p>
  12960. </dd>
  12961. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  12962. <dd><p>Set Impulse Response filter length. Default is 1, which means whole IR is processed.
  12963. </p>
  12964. </dd>
  12965. <dt>&lsquo;<samp>gtype</samp>&rsquo;</dt>
  12966. <dd><p>Enable applying gain measured from power of IR.
  12967. </p>
  12968. <p>Set which approach to use for auto gain measurement.
  12969. </p>
  12970. <dl compact="compact">
  12971. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  12972. <dd><p>Do not apply any gain.
  12973. </p>
  12974. </dd>
  12975. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  12976. <dd><p>select peak gain, very conservative approach. This is default value.
  12977. </p>
  12978. </dd>
  12979. <dt>&lsquo;<samp>dc</samp>&rsquo;</dt>
  12980. <dd><p>select DC gain, limited application.
  12981. </p>
  12982. </dd>
  12983. <dt>&lsquo;<samp>gn</samp>&rsquo;</dt>
  12984. <dd><p>select gain to noise approach, this is most popular one.
  12985. </p></dd>
  12986. </dl>
  12987. </dd>
  12988. <dt>&lsquo;<samp>irgain</samp>&rsquo;</dt>
  12989. <dd><p>Set gain to be applied to IR coefficients before filtering.
  12990. Allowed range is 0 to 1. This gain is applied after any gain applied with <var>gtype</var> option.
  12991. </p>
  12992. </dd>
  12993. <dt>&lsquo;<samp>irfmt</samp>&rsquo;</dt>
  12994. <dd><p>Set format of IR stream. Can be <code>mono</code> or <code>input</code>.
  12995. Default is <code>input</code>.
  12996. </p>
  12997. </dd>
  12998. <dt>&lsquo;<samp>maxir</samp>&rsquo;</dt>
  12999. <dd><p>Set max allowed Impulse Response filter duration in seconds. Default is 30 seconds.
  13000. Allowed range is 0.1 to 60 seconds.
  13001. </p>
  13002. </dd>
  13003. <dt>&lsquo;<samp>response</samp>&rsquo;</dt>
  13004. <dd><p>Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
  13005. By default it is disabled.
  13006. </p>
  13007. </dd>
  13008. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  13009. <dd><p>Set for which IR channel to display frequency response. By default is first channel
  13010. displayed. This option is used only when <var>response</var> is enabled.
  13011. </p>
  13012. </dd>
  13013. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13014. <dd><p>Set video stream size. This option is used only when <var>response</var> is enabled.
  13015. </p>
  13016. </dd>
  13017. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  13018. <dd><p>Set video stream frame rate. This option is used only when <var>response</var> is enabled.
  13019. </p>
  13020. </dd>
  13021. <dt>&lsquo;<samp>minp</samp>&rsquo;</dt>
  13022. <dd><p>Set minimal partition size used for convolution. Default is <var>8192</var>.
  13023. Allowed range is from <var>1</var> to <var>32768</var>.
  13024. Lower values decreases latency at cost of higher CPU usage.
  13025. </p>
  13026. </dd>
  13027. <dt>&lsquo;<samp>maxp</samp>&rsquo;</dt>
  13028. <dd><p>Set maximal partition size used for convolution. Default is <var>8192</var>.
  13029. Allowed range is from <var>8</var> to <var>32768</var>.
  13030. Lower values may increase CPU usage.
  13031. </p>
  13032. </dd>
  13033. <dt>&lsquo;<samp>nbirs</samp>&rsquo;</dt>
  13034. <dd><p>Set number of input impulse responses streams which will be switchable at runtime.
  13035. Allowed range is from <var>1</var> to <var>32</var>. Default is <var>1</var>.
  13036. </p>
  13037. </dd>
  13038. <dt>&lsquo;<samp>ir</samp>&rsquo;</dt>
  13039. <dd><p>Set IR stream which will be used for convolution, starting from <var>0</var>, should always be
  13040. lower than supplied value by <code>nbirs</code> option. Default is <var>0</var>.
  13041. This option can be changed at runtime via <a href="#commands">commands</a>.
  13042. </p></dd>
  13043. </dl>
  13044. <a name="Examples-21"></a>
  13045. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-21">29.18.1 Examples</a></h3>
  13046. <ul>
  13047. <li>
  13048. Apply reverb to stream using mono IR file as second input, complete command using ffmpeg:
  13049. <div class="example">
  13050. <pre class="example">ffmpeg -i input.wav -i middle_tunnel_1way_mono.wav -lavfi afir output.wav
  13051. </pre></div>
  13052. </li></ul>
  13053. <p><a name="aformat"></a>
  13054. </p><a name="aformat-1"></a>
  13055. <h2 class="section"><a href="ffprobe-all.html#toc-aformat-1">29.19 aformat</a></h2>
  13056. <p>Set output format constraints for the input audio. The framework will
  13057. negotiate the most appropriate format to minimize conversions.
  13058. </p>
  13059. <p>It accepts the following parameters:
  13060. </p><dl compact="compact">
  13061. <dt>&lsquo;<samp>sample_fmts, f</samp>&rsquo;</dt>
  13062. <dd><p>A &rsquo;|&rsquo;-separated list of requested sample formats.
  13063. </p>
  13064. </dd>
  13065. <dt>&lsquo;<samp>sample_rates, r</samp>&rsquo;</dt>
  13066. <dd><p>A &rsquo;|&rsquo;-separated list of requested sample rates.
  13067. </p>
  13068. </dd>
  13069. <dt>&lsquo;<samp>channel_layouts, cl</samp>&rsquo;</dt>
  13070. <dd><p>A &rsquo;|&rsquo;-separated list of requested channel layouts.
  13071. </p>
  13072. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  13073. for the required syntax.
  13074. </p></dd>
  13075. </dl>
  13076. <p>If a parameter is omitted, all values are allowed.
  13077. </p>
  13078. <p>Force the output to either unsigned 8-bit or signed 16-bit stereo
  13079. </p><div class="example">
  13080. <pre class="example">aformat=sample_fmts=u8|s16:channel_layouts=stereo
  13081. </pre></div>
  13082. <a name="agate"></a>
  13083. <h2 class="section"><a href="ffprobe-all.html#toc-agate">29.20 agate</a></h2>
  13084. <p>A gate is mainly used to reduce lower parts of a signal. This kind of signal
  13085. processing reduces disturbing noise between useful signals.
  13086. </p>
  13087. <p>Gating is done by detecting the volume below a chosen level <var>threshold</var>
  13088. and dividing it by the factor set with <var>ratio</var>. The bottom of the noise
  13089. floor is set via <var>range</var>. Because an exact manipulation of the signal
  13090. would cause distortion of the waveform the reduction can be levelled over
  13091. time. This is done by setting <var>attack</var> and <var>release</var>.
  13092. </p>
  13093. <p><var>attack</var> determines how long the signal has to fall below the threshold
  13094. before any reduction will occur and <var>release</var> sets the time the signal
  13095. has to rise above the threshold to reduce the reduction again.
  13096. Shorter signals than the chosen attack time will be left untouched.
  13097. </p>
  13098. <dl compact="compact">
  13099. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  13100. <dd><p>Set input level before filtering.
  13101. Default is 1. Allowed range is from 0.015625 to 64.
  13102. </p>
  13103. </dd>
  13104. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  13105. <dd><p>Set the mode of operation. Can be <code>upward</code> or <code>downward</code>.
  13106. Default is <code>downward</code>. If set to <code>upward</code> mode, higher parts of signal
  13107. will be amplified, expanding dynamic range in upward direction.
  13108. Otherwise, in case of <code>downward</code> lower parts of signal will be reduced.
  13109. </p>
  13110. </dd>
  13111. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  13112. <dd><p>Set the level of gain reduction when the signal is below the threshold.
  13113. Default is 0.06125. Allowed range is from 0 to 1.
  13114. Setting this to 0 disables reduction and then filter behaves like expander.
  13115. </p>
  13116. </dd>
  13117. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  13118. <dd><p>If a signal rises above this level the gain reduction is released.
  13119. Default is 0.125. Allowed range is from 0 to 1.
  13120. </p>
  13121. </dd>
  13122. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  13123. <dd><p>Set a ratio by which the signal is reduced.
  13124. Default is 2. Allowed range is from 1 to 9000.
  13125. </p>
  13126. </dd>
  13127. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  13128. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  13129. reduction stops.
  13130. Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
  13131. </p>
  13132. </dd>
  13133. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  13134. <dd><p>Amount of milliseconds the signal has to fall below the threshold before the
  13135. reduction is increased again. Default is 250 milliseconds.
  13136. Allowed range is from 0.01 to 9000.
  13137. </p>
  13138. </dd>
  13139. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  13140. <dd><p>Set amount of amplification of signal after processing.
  13141. Default is 1. Allowed range is from 1 to 64.
  13142. </p>
  13143. </dd>
  13144. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  13145. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  13146. Default is 2.828427125. Allowed range is from 1 to 8.
  13147. </p>
  13148. </dd>
  13149. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  13150. <dd><p>Choose if exact signal should be taken for detection or an RMS like one.
  13151. Default is <code>rms</code>. Can be <code>peak</code> or <code>rms</code>.
  13152. </p>
  13153. </dd>
  13154. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  13155. <dd><p>Choose if the average level between all channels or the louder channel affects
  13156. the reduction.
  13157. Default is <code>average</code>. Can be <code>average</code> or <code>maximum</code>.
  13158. </p></dd>
  13159. </dl>
  13160. <a name="aiir"></a>
  13161. <h2 class="section"><a href="ffprobe-all.html#toc-aiir">29.21 aiir</a></h2>
  13162. <p>Apply an arbitrary Infinite Impulse Response filter.
  13163. </p>
  13164. <p>It accepts the following parameters:
  13165. </p>
  13166. <dl compact="compact">
  13167. <dt>&lsquo;<samp>z</samp>&rsquo;</dt>
  13168. <dd><p>Set numerator/zeros coefficients.
  13169. </p>
  13170. </dd>
  13171. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  13172. <dd><p>Set denominator/poles coefficients.
  13173. </p>
  13174. </dd>
  13175. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  13176. <dd><p>Set channels gains.
  13177. </p>
  13178. </dd>
  13179. <dt>&lsquo;<samp>dry_gain</samp>&rsquo;</dt>
  13180. <dd><p>Set input gain.
  13181. </p>
  13182. </dd>
  13183. <dt>&lsquo;<samp>wet_gain</samp>&rsquo;</dt>
  13184. <dd><p>Set output gain.
  13185. </p>
  13186. </dd>
  13187. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  13188. <dd><p>Set coefficients format.
  13189. </p>
  13190. <dl compact="compact">
  13191. <dt>&lsquo;<samp>tf</samp>&rsquo;</dt>
  13192. <dd><p>transfer function
  13193. </p></dd>
  13194. <dt>&lsquo;<samp>zp</samp>&rsquo;</dt>
  13195. <dd><p>Z-plane zeros/poles, cartesian (default)
  13196. </p></dd>
  13197. <dt>&lsquo;<samp>pr</samp>&rsquo;</dt>
  13198. <dd><p>Z-plane zeros/poles, polar radians
  13199. </p></dd>
  13200. <dt>&lsquo;<samp>pd</samp>&rsquo;</dt>
  13201. <dd><p>Z-plane zeros/poles, polar degrees
  13202. </p></dd>
  13203. </dl>
  13204. </dd>
  13205. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  13206. <dd><p>Set kind of processing.
  13207. Can be <code>d</code> - direct or <code>s</code> - serial cascading. Default is <code>s</code>.
  13208. </p>
  13209. </dd>
  13210. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  13211. <dd><p>Set filtering precision.
  13212. </p>
  13213. <dl compact="compact">
  13214. <dt>&lsquo;<samp>dbl</samp>&rsquo;</dt>
  13215. <dd><p>double-precision floating-point (default)
  13216. </p></dd>
  13217. <dt>&lsquo;<samp>flt</samp>&rsquo;</dt>
  13218. <dd><p>single-precision floating-point
  13219. </p></dd>
  13220. <dt>&lsquo;<samp>i32</samp>&rsquo;</dt>
  13221. <dd><p>32-bit integers
  13222. </p></dd>
  13223. <dt>&lsquo;<samp>i16</samp>&rsquo;</dt>
  13224. <dd><p>16-bit integers
  13225. </p></dd>
  13226. </dl>
  13227. </dd>
  13228. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  13229. <dd><p>How much to use filtered signal in output. Default is 1.
  13230. Range is between 0 and 1.
  13231. </p>
  13232. </dd>
  13233. <dt>&lsquo;<samp>response</samp>&rsquo;</dt>
  13234. <dd><p>Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
  13235. By default it is disabled.
  13236. </p>
  13237. </dd>
  13238. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  13239. <dd><p>Set for which IR channel to display frequency response. By default is first channel
  13240. displayed. This option is used only when <var>response</var> is enabled.
  13241. </p>
  13242. </dd>
  13243. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13244. <dd><p>Set video stream size. This option is used only when <var>response</var> is enabled.
  13245. </p></dd>
  13246. </dl>
  13247. <p>Coefficients in <code>tf</code> format are separated by spaces and are in ascending
  13248. order.
  13249. </p>
  13250. <p>Coefficients in <code>zp</code> format are separated by spaces and order of coefficients
  13251. doesn&rsquo;t matter. Coefficients in <code>zp</code> format are complex numbers with <var>i</var>
  13252. imaginary unit.
  13253. </p>
  13254. <p>Different coefficients and gains can be provided for every channel, in such case
  13255. use &rsquo;|&rsquo; to separate coefficients or gains. Last provided coefficients will be
  13256. used for all remaining channels.
  13257. </p>
  13258. <a name="Examples-144"></a>
  13259. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-144">29.21.1 Examples</a></h3>
  13260. <ul>
  13261. <li>
  13262. Apply 2 pole elliptic notch at around 5000Hz for 48000 Hz sample rate:
  13263. <div class="example">
  13264. <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
  13265. </pre></div>
  13266. </li><li>
  13267. Same as above but in <code>zp</code> format:
  13268. <div class="example">
  13269. <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
  13270. </pre></div>
  13271. </li></ul>
  13272. <a name="alimiter"></a>
  13273. <h2 class="section"><a href="ffprobe-all.html#toc-alimiter">29.22 alimiter</a></h2>
  13274. <p>The limiter prevents an input signal from rising over a desired threshold.
  13275. This limiter uses lookahead technology to prevent your signal from distorting.
  13276. It means that there is a small delay after the signal is processed. Keep in mind
  13277. that the delay it produces is the attack time you set.
  13278. </p>
  13279. <p>The filter accepts the following options:
  13280. </p>
  13281. <dl compact="compact">
  13282. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  13283. <dd><p>Set input gain. Default is 1.
  13284. </p>
  13285. </dd>
  13286. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  13287. <dd><p>Set output gain. Default is 1.
  13288. </p>
  13289. </dd>
  13290. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  13291. <dd><p>Don&rsquo;t let signals above this level pass the limiter. Default is 1.
  13292. </p>
  13293. </dd>
  13294. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  13295. <dd><p>The limiter will reach its attenuation level in this amount of time in
  13296. milliseconds. Default is 5 milliseconds.
  13297. </p>
  13298. </dd>
  13299. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  13300. <dd><p>Come back from limiting to attenuation 1.0 in this amount of milliseconds.
  13301. Default is 50 milliseconds.
  13302. </p>
  13303. </dd>
  13304. <dt>&lsquo;<samp>asc</samp>&rsquo;</dt>
  13305. <dd><p>When gain reduction is always needed ASC takes care of releasing to an
  13306. average reduction level rather than reaching a reduction of 0 in the release
  13307. time.
  13308. </p>
  13309. </dd>
  13310. <dt>&lsquo;<samp>asc_level</samp>&rsquo;</dt>
  13311. <dd><p>Select how much the release time is affected by ASC, 0 means nearly no changes
  13312. in release time while 1 produces higher release times.
  13313. </p>
  13314. </dd>
  13315. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  13316. <dd><p>Auto level output signal. Default is enabled.
  13317. This normalizes audio back to 0dB if enabled.
  13318. </p></dd>
  13319. </dl>
  13320. <p>Depending on picked setting it is recommended to upsample input 2x or 4x times
  13321. with <a href="#aresample">aresample</a> before applying this filter.
  13322. </p>
  13323. <a name="allpass"></a>
  13324. <h2 class="section"><a href="ffprobe-all.html#toc-allpass">29.23 allpass</a></h2>
  13325. <p>Apply a two-pole all-pass filter with central frequency (in Hz)
  13326. <var>frequency</var>, and filter-width <var>width</var>.
  13327. An all-pass filter changes the audio&rsquo;s frequency to phase relationship
  13328. without changing its frequency to amplitude relationship.
  13329. </p>
  13330. <p>The filter accepts the following options:
  13331. </p>
  13332. <dl compact="compact">
  13333. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  13334. <dd><p>Set frequency in Hz.
  13335. </p>
  13336. </dd>
  13337. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  13338. <dd><p>Set method to specify band-width of filter.
  13339. </p><dl compact="compact">
  13340. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  13341. <dd><p>Hz
  13342. </p></dd>
  13343. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  13344. <dd><p>Q-Factor
  13345. </p></dd>
  13346. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13347. <dd><p>octave
  13348. </p></dd>
  13349. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13350. <dd><p>slope
  13351. </p></dd>
  13352. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  13353. <dd><p>kHz
  13354. </p></dd>
  13355. </dl>
  13356. </dd>
  13357. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  13358. <dd><p>Specify the band-width of a filter in width_type units.
  13359. </p>
  13360. </dd>
  13361. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  13362. <dd><p>How much to use filtered signal in output. Default is 1.
  13363. Range is between 0 and 1.
  13364. </p>
  13365. </dd>
  13366. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  13367. <dd><p>Specify which channels to filter, by default all available are filtered.
  13368. </p>
  13369. </dd>
  13370. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  13371. <dd><p>Normalize biquad coefficients, by default is disabled.
  13372. Enabling it will normalize magnitude response at DC to 0dB.
  13373. </p></dd>
  13374. </dl>
  13375. <a name="Commands-12"></a>
  13376. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-12">29.23.1 Commands</a></h3>
  13377. <p>This filter supports the following commands:
  13378. </p><dl compact="compact">
  13379. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  13380. <dd><p>Change allpass frequency.
  13381. Syntax for the command is : &quot;<var>frequency</var>&quot;
  13382. </p>
  13383. </dd>
  13384. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  13385. <dd><p>Change allpass width_type.
  13386. Syntax for the command is : &quot;<var>width_type</var>&quot;
  13387. </p>
  13388. </dd>
  13389. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  13390. <dd><p>Change allpass width.
  13391. Syntax for the command is : &quot;<var>width</var>&quot;
  13392. </p>
  13393. </dd>
  13394. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  13395. <dd><p>Change allpass mix.
  13396. Syntax for the command is : &quot;<var>mix</var>&quot;
  13397. </p></dd>
  13398. </dl>
  13399. <a name="aloop"></a>
  13400. <h2 class="section"><a href="ffprobe-all.html#toc-aloop">29.24 aloop</a></h2>
  13401. <p>Loop audio samples.
  13402. </p>
  13403. <p>The filter accepts the following options:
  13404. </p>
  13405. <dl compact="compact">
  13406. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  13407. <dd><p>Set the number of loops. Setting this value to -1 will result in infinite loops.
  13408. Default is 0.
  13409. </p>
  13410. </dd>
  13411. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13412. <dd><p>Set maximal number of samples. Default is 0.
  13413. </p>
  13414. </dd>
  13415. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  13416. <dd><p>Set first sample of loop. Default is 0.
  13417. </p></dd>
  13418. </dl>
  13419. <p><a name="amerge"></a>
  13420. </p><a name="amerge-1"></a>
  13421. <h2 class="section"><a href="ffprobe-all.html#toc-amerge-1">29.25 amerge</a></h2>
  13422. <p>Merge two or more audio streams into a single multi-channel stream.
  13423. </p>
  13424. <p>The filter accepts the following options:
  13425. </p>
  13426. <dl compact="compact">
  13427. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  13428. <dd><p>Set the number of inputs. Default is 2.
  13429. </p>
  13430. </dd>
  13431. </dl>
  13432. <p>If the channel layouts of the inputs are disjoint, and therefore compatible,
  13433. the channel layout of the output will be set accordingly and the channels
  13434. will be reordered as necessary. If the channel layouts of the inputs are not
  13435. disjoint, the output will have all the channels of the first input then all
  13436. the channels of the second input, in that order, and the channel layout of
  13437. the output will be the default value corresponding to the total number of
  13438. channels.
  13439. </p>
  13440. <p>For example, if the first input is in 2.1 (FL+FR+LF) and the second input
  13441. is FC+BL+BR, then the output will be in 5.1, with the channels in the
  13442. following order: a1, a2, b1, a3, b2, b3 (a1 is the first channel of the
  13443. first input, b1 is the first channel of the second input).
  13444. </p>
  13445. <p>On the other hand, if both input are in stereo, the output channels will be
  13446. in the default order: a1, a2, b1, b2, and the channel layout will be
  13447. arbitrarily set to 4.0, which may or may not be the expected value.
  13448. </p>
  13449. <p>All inputs must have the same sample rate, and format.
  13450. </p>
  13451. <p>If inputs do not have the same duration, the output will stop with the
  13452. shortest.
  13453. </p>
  13454. <a name="Examples-86"></a>
  13455. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-86">29.25.1 Examples</a></h3>
  13456. <ul>
  13457. <li>
  13458. Merge two mono files into a stereo stream:
  13459. <div class="example">
  13460. <pre class="example">amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
  13461. </pre></div>
  13462. </li><li>
  13463. Multiple merges assuming 1 video stream and 6 audio streams in &lsquo;<tt>input.mkv</tt>&rsquo;:
  13464. <div class="example">
  13465. <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
  13466. </pre></div>
  13467. </li></ul>
  13468. <a name="amix"></a>
  13469. <h2 class="section"><a href="ffprobe-all.html#toc-amix">29.26 amix</a></h2>
  13470. <p>Mixes multiple audio inputs into a single output.
  13471. </p>
  13472. <p>Note that this filter only supports float samples (the <var>amerge</var>
  13473. and <var>pan</var> audio filters support many formats). If the <var>amix</var>
  13474. input has integer samples then <a href="#aresample">aresample</a> will be automatically
  13475. inserted to perform the conversion to float samples.
  13476. </p>
  13477. <p>For example
  13478. </p><div class="example">
  13479. <pre class="example">ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
  13480. </pre></div>
  13481. <p>will mix 3 input audio streams to a single output with the same duration as the
  13482. first input and a dropout transition time of 3 seconds.
  13483. </p>
  13484. <p>It accepts the following parameters:
  13485. </p><dl compact="compact">
  13486. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  13487. <dd><p>The number of inputs. If unspecified, it defaults to 2.
  13488. </p>
  13489. </dd>
  13490. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  13491. <dd><p>How to determine the end-of-stream.
  13492. </p><dl compact="compact">
  13493. <dt>&lsquo;<samp>longest</samp>&rsquo;</dt>
  13494. <dd><p>The duration of the longest input. (default)
  13495. </p>
  13496. </dd>
  13497. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  13498. <dd><p>The duration of the shortest input.
  13499. </p>
  13500. </dd>
  13501. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  13502. <dd><p>The duration of the first input.
  13503. </p>
  13504. </dd>
  13505. </dl>
  13506. </dd>
  13507. <dt>&lsquo;<samp>dropout_transition</samp>&rsquo;</dt>
  13508. <dd><p>The transition time, in seconds, for volume renormalization when an input
  13509. stream ends. The default value is 2 seconds.
  13510. </p>
  13511. </dd>
  13512. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  13513. <dd><p>Specify weight of each input audio stream as sequence.
  13514. Each weight is separated by space. By default all inputs have same weight.
  13515. </p></dd>
  13516. </dl>
  13517. <a name="amultiply"></a>
  13518. <h2 class="section"><a href="ffprobe-all.html#toc-amultiply">29.27 amultiply</a></h2>
  13519. <p>Multiply first audio stream with second audio stream and store result
  13520. in output audio stream. Multiplication is done by multiplying each
  13521. sample from first stream with sample at same position from second stream.
  13522. </p>
  13523. <p>With this element-wise multiplication one can create amplitude fades and
  13524. amplitude modulations.
  13525. </p>
  13526. <a name="anequalizer"></a>
  13527. <h2 class="section"><a href="ffprobe-all.html#toc-anequalizer">29.28 anequalizer</a></h2>
  13528. <p>High-order parametric multiband equalizer for each channel.
  13529. </p>
  13530. <p>It accepts the following parameters:
  13531. </p><dl compact="compact">
  13532. <dt>&lsquo;<samp>params</samp>&rsquo;</dt>
  13533. <dd>
  13534. <p>This option string is in format:
  13535. &quot;c<var>chn</var> f=<var>cf</var> w=<var>w</var> g=<var>g</var> t=<var>f</var> | ...&quot;
  13536. Each equalizer band is separated by &rsquo;|&rsquo;.
  13537. </p>
  13538. <dl compact="compact">
  13539. <dt>&lsquo;<samp>chn</samp>&rsquo;</dt>
  13540. <dd><p>Set channel number to which equalization will be applied.
  13541. If input doesn&rsquo;t have that channel the entry is ignored.
  13542. </p>
  13543. </dd>
  13544. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  13545. <dd><p>Set central frequency for band.
  13546. If input doesn&rsquo;t have that frequency the entry is ignored.
  13547. </p>
  13548. </dd>
  13549. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  13550. <dd><p>Set band width in hertz.
  13551. </p>
  13552. </dd>
  13553. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  13554. <dd><p>Set band gain in dB.
  13555. </p>
  13556. </dd>
  13557. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  13558. <dd><p>Set filter type for band, optional, can be:
  13559. </p>
  13560. <dl compact="compact">
  13561. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  13562. <dd><p>Butterworth, this is default.
  13563. </p>
  13564. </dd>
  13565. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  13566. <dd><p>Chebyshev type 1.
  13567. </p>
  13568. </dd>
  13569. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  13570. <dd><p>Chebyshev type 2.
  13571. </p></dd>
  13572. </dl>
  13573. </dd>
  13574. </dl>
  13575. </dd>
  13576. <dt>&lsquo;<samp>curves</samp>&rsquo;</dt>
  13577. <dd><p>With this option activated frequency response of anequalizer is displayed
  13578. in video stream.
  13579. </p>
  13580. </dd>
  13581. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  13582. <dd><p>Set video stream size. Only useful if curves option is activated.
  13583. </p>
  13584. </dd>
  13585. <dt>&lsquo;<samp>mgain</samp>&rsquo;</dt>
  13586. <dd><p>Set max gain that will be displayed. Only useful if curves option is activated.
  13587. Setting this to a reasonable value makes it possible to display gain which is derived from
  13588. neighbour bands which are too close to each other and thus produce higher gain
  13589. when both are activated.
  13590. </p>
  13591. </dd>
  13592. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  13593. <dd><p>Set frequency scale used to draw frequency response in video output.
  13594. Can be linear or logarithmic. Default is logarithmic.
  13595. </p>
  13596. </dd>
  13597. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  13598. <dd><p>Set color for each channel curve which is going to be displayed in video stream.
  13599. This is list of color names separated by space or by &rsquo;|&rsquo;.
  13600. Unrecognised or missing colors will be replaced by white color.
  13601. </p></dd>
  13602. </dl>
  13603. <a name="Examples-132"></a>
  13604. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-132">29.28.1 Examples</a></h3>
  13605. <ul>
  13606. <li>
  13607. Lower gain by 10 of central frequency 200Hz and width 100 Hz
  13608. for first 2 channels using Chebyshev type 1 filter:
  13609. <div class="example">
  13610. <pre class="example">anequalizer=c0 f=200 w=100 g=-10 t=1|c1 f=200 w=100 g=-10 t=1
  13611. </pre></div>
  13612. </li></ul>
  13613. <a name="Commands-59"></a>
  13614. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-59">29.28.2 Commands</a></h3>
  13615. <p>This filter supports the following commands:
  13616. </p><dl compact="compact">
  13617. <dt>&lsquo;<samp>change</samp>&rsquo;</dt>
  13618. <dd><p>Alter existing filter parameters.
  13619. Syntax for the commands is : &quot;<var>fN</var>|f=<var>freq</var>|w=<var>width</var>|g=<var>gain</var>&quot;
  13620. </p>
  13621. <p><var>fN</var> is existing filter number, starting from 0, if no such filter is available
  13622. error is returned.
  13623. <var>freq</var> set new frequency parameter.
  13624. <var>width</var> set new width parameter in herz.
  13625. <var>gain</var> set new gain parameter in dB.
  13626. </p>
  13627. <p>Full filter invocation with asendcmd may look like this:
  13628. asendcmd=c=&rsquo;4.0 anequalizer change 0|f=200|w=50|g=1&rsquo;,anequalizer=...
  13629. </p></dd>
  13630. </dl>
  13631. <a name="anlmdn"></a>
  13632. <h2 class="section"><a href="ffprobe-all.html#toc-anlmdn">29.29 anlmdn</a></h2>
  13633. <p>Reduce broadband noise in audio samples using Non-Local Means algorithm.
  13634. </p>
  13635. <p>Each sample is adjusted by looking for other samples with similar contexts. This
  13636. context similarity is defined by comparing their surrounding patches of size
  13637. &lsquo;<samp>p</samp>&rsquo;. Patches are searched in an area of &lsquo;<samp>r</samp>&rsquo; around the sample.
  13638. </p>
  13639. <p>The filter accepts the following options:
  13640. </p>
  13641. <dl compact="compact">
  13642. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13643. <dd><p>Set denoising strength. Allowed range is from 0.00001 to 10. Default value is 0.00001.
  13644. </p>
  13645. </dd>
  13646. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  13647. <dd><p>Set patch radius duration. Allowed range is from 1 to 100 milliseconds.
  13648. Default value is 2 milliseconds.
  13649. </p>
  13650. </dd>
  13651. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  13652. <dd><p>Set research radius duration. Allowed range is from 2 to 300 milliseconds.
  13653. Default value is 6 milliseconds.
  13654. </p>
  13655. </dd>
  13656. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13657. <dd><p>Set the output mode.
  13658. </p>
  13659. <p>It accepts the following values:
  13660. </p><dl compact="compact">
  13661. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  13662. <dd><p>Pass input unchanged.
  13663. </p>
  13664. </dd>
  13665. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13666. <dd><p>Pass noise filtered out.
  13667. </p>
  13668. </dd>
  13669. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  13670. <dd><p>Pass only noise.
  13671. </p>
  13672. <p>Default value is <var>o</var>.
  13673. </p></dd>
  13674. </dl>
  13675. </dd>
  13676. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  13677. <dd><p>Set smooth factor. Default value is <var>11</var>. Allowed range is from <var>1</var> to <var>15</var>.
  13678. </p></dd>
  13679. </dl>
  13680. <a name="Commands-21"></a>
  13681. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-21">29.29.1 Commands</a></h3>
  13682. <p>This filter supports the following commands:
  13683. </p><dl compact="compact">
  13684. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  13685. <dd><p>Change denoise strength. Argument is single float number.
  13686. Syntax for the command is : &quot;<var>s</var>&quot;
  13687. </p>
  13688. </dd>
  13689. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13690. <dd><p>Change output mode.
  13691. Syntax for the command is : &quot;i&quot;, &quot;o&quot; or &quot;n&quot; string.
  13692. </p></dd>
  13693. </dl>
  13694. <a name="anlms"></a>
  13695. <h2 class="section"><a href="ffprobe-all.html#toc-anlms">29.30 anlms</a></h2>
  13696. <p>Apply Normalized Least-Mean-Squares algorithm to the first audio stream using the second audio stream.
  13697. </p>
  13698. <p>This adaptive filter is used to mimic a desired filter by finding the filter coefficients that
  13699. relate to producing the least mean square of the error signal (difference between the desired,
  13700. 2nd input audio stream and the actual signal, the 1st input audio stream).
  13701. </p>
  13702. <p>A description of the accepted options follows.
  13703. </p>
  13704. <dl compact="compact">
  13705. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  13706. <dd><p>Set filter order.
  13707. </p>
  13708. </dd>
  13709. <dt>&lsquo;<samp>mu</samp>&rsquo;</dt>
  13710. <dd><p>Set filter mu.
  13711. </p>
  13712. </dd>
  13713. <dt>&lsquo;<samp>eps</samp>&rsquo;</dt>
  13714. <dd><p>Set the filter eps.
  13715. </p>
  13716. </dd>
  13717. <dt>&lsquo;<samp>leakage</samp>&rsquo;</dt>
  13718. <dd><p>Set the filter leakage.
  13719. </p>
  13720. </dd>
  13721. <dt>&lsquo;<samp>out_mode</samp>&rsquo;</dt>
  13722. <dd><p>It accepts the following values:
  13723. </p><dl compact="compact">
  13724. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  13725. <dd><p>Pass the 1st input.
  13726. </p>
  13727. </dd>
  13728. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  13729. <dd><p>Pass the 2nd input.
  13730. </p>
  13731. </dd>
  13732. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  13733. <dd><p>Pass filtered samples.
  13734. </p>
  13735. </dd>
  13736. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  13737. <dd><p>Pass difference between desired and filtered samples.
  13738. </p>
  13739. <p>Default value is <var>o</var>.
  13740. </p></dd>
  13741. </dl>
  13742. </dd>
  13743. </dl>
  13744. <a name="Examples-89"></a>
  13745. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-89">29.30.1 Examples</a></h3>
  13746. <ul>
  13747. <li>
  13748. One of many usages of this filter is noise reduction, input audio is filtered
  13749. with same samples that are delayed by fixed amount, one such example for stereo audio is:
  13750. <div class="example">
  13751. <pre class="example">asplit[a][b],[a]adelay=32S|32S[a],[b][a]anlms=order=128:leakage=0.0005:mu=.5:out_mode=o
  13752. </pre></div>
  13753. </li></ul>
  13754. <a name="Commands-50"></a>
  13755. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-50">29.30.2 Commands</a></h3>
  13756. <p>This filter supports the same commands as options, excluding option <code>order</code>.
  13757. </p>
  13758. <a name="anull"></a>
  13759. <h2 class="section"><a href="ffprobe-all.html#toc-anull">29.31 anull</a></h2>
  13760. <p>Pass the audio source unchanged to the output.
  13761. </p>
  13762. <a name="apad"></a>
  13763. <h2 class="section"><a href="ffprobe-all.html#toc-apad">29.32 apad</a></h2>
  13764. <p>Pad the end of an audio stream with silence.
  13765. </p>
  13766. <p>This can be used together with <code>ffmpeg</code> &lsquo;<samp>-shortest</samp>&rsquo; to
  13767. extend audio streams to the same length as the video stream.
  13768. </p>
  13769. <p>A description of the accepted options follows.
  13770. </p>
  13771. <dl compact="compact">
  13772. <dt>&lsquo;<samp>packet_size</samp>&rsquo;</dt>
  13773. <dd><p>Set silence packet size. Default value is 4096.
  13774. </p>
  13775. </dd>
  13776. <dt>&lsquo;<samp>pad_len</samp>&rsquo;</dt>
  13777. <dd><p>Set the number of samples of silence to add to the end. After the
  13778. value is reached, the stream is terminated. This option is mutually
  13779. exclusive with &lsquo;<samp>whole_len</samp>&rsquo;.
  13780. </p>
  13781. </dd>
  13782. <dt>&lsquo;<samp>whole_len</samp>&rsquo;</dt>
  13783. <dd><p>Set the minimum total number of samples in the output audio stream. If
  13784. the value is longer than the input audio length, silence is added to
  13785. the end, until the value is reached. This option is mutually exclusive
  13786. with &lsquo;<samp>pad_len</samp>&rsquo;.
  13787. </p>
  13788. </dd>
  13789. <dt>&lsquo;<samp>pad_dur</samp>&rsquo;</dt>
  13790. <dd><p>Specify the duration of samples of silence to add. See
  13791. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  13792. for the accepted syntax. Used only if set to non-zero value.
  13793. </p>
  13794. </dd>
  13795. <dt>&lsquo;<samp>whole_dur</samp>&rsquo;</dt>
  13796. <dd><p>Specify the minimum total duration in the output audio stream. See
  13797. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  13798. for the accepted syntax. Used only if set to non-zero value. If the value is longer than
  13799. the input audio length, silence is added to the end, until the value is reached.
  13800. This option is mutually exclusive with &lsquo;<samp>pad_dur</samp>&rsquo;
  13801. </p></dd>
  13802. </dl>
  13803. <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;
  13804. nor &lsquo;<samp>whole_dur</samp>&rsquo; option is set, the filter will add silence to the end of
  13805. the input stream indefinitely.
  13806. </p>
  13807. <a name="Examples-115"></a>
  13808. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-115">29.32.1 Examples</a></h3>
  13809. <ul>
  13810. <li>
  13811. Add 1024 samples of silence to the end of the input:
  13812. <div class="example">
  13813. <pre class="example">apad=pad_len=1024
  13814. </pre></div>
  13815. </li><li>
  13816. Make sure the audio output will contain at least 10000 samples, pad
  13817. the input with silence if required:
  13818. <div class="example">
  13819. <pre class="example">apad=whole_len=10000
  13820. </pre></div>
  13821. </li><li>
  13822. Use <code>ffmpeg</code> to pad the audio input with silence, so that the
  13823. video stream will always result the shortest and will be converted
  13824. until the end in the output file when using the &lsquo;<samp>shortest</samp>&rsquo;
  13825. option:
  13826. <div class="example">
  13827. <pre class="example">ffmpeg -i VIDEO -i AUDIO -filter_complex &quot;[1:0]apad&quot; -shortest OUTPUT
  13828. </pre></div>
  13829. </li></ul>
  13830. <a name="aphaser"></a>
  13831. <h2 class="section"><a href="ffprobe-all.html#toc-aphaser">29.33 aphaser</a></h2>
  13832. <p>Add a phasing effect to the input audio.
  13833. </p>
  13834. <p>A phaser filter creates series of peaks and troughs in the frequency spectrum.
  13835. The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect.
  13836. </p>
  13837. <p>A description of the accepted parameters follows.
  13838. </p>
  13839. <dl compact="compact">
  13840. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  13841. <dd><p>Set input gain. Default is 0.4.
  13842. </p>
  13843. </dd>
  13844. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  13845. <dd><p>Set output gain. Default is 0.74
  13846. </p>
  13847. </dd>
  13848. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  13849. <dd><p>Set delay in milliseconds. Default is 3.0.
  13850. </p>
  13851. </dd>
  13852. <dt>&lsquo;<samp>decay</samp>&rsquo;</dt>
  13853. <dd><p>Set decay. Default is 0.4.
  13854. </p>
  13855. </dd>
  13856. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  13857. <dd><p>Set modulation speed in Hz. Default is 0.5.
  13858. </p>
  13859. </dd>
  13860. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  13861. <dd><p>Set modulation type. Default is triangular.
  13862. </p>
  13863. <p>It accepts the following values:
  13864. </p><dl compact="compact">
  13865. <dt>&lsquo;<samp>triangular, t</samp>&rsquo;</dt>
  13866. <dt>&lsquo;<samp>sinusoidal, s</samp>&rsquo;</dt>
  13867. </dl>
  13868. </dd>
  13869. </dl>
  13870. <a name="apulsator"></a>
  13871. <h2 class="section"><a href="ffprobe-all.html#toc-apulsator">29.34 apulsator</a></h2>
  13872. <p>Audio pulsator is something between an autopanner and a tremolo.
  13873. But it can produce funny stereo effects as well. Pulsator changes the volume
  13874. of the left and right channel based on a LFO (low frequency oscillator) with
  13875. different waveforms and shifted phases.
  13876. This filter have the ability to define an offset between left and right
  13877. channel. An offset of 0 means that both LFO shapes match each other.
  13878. The left and right channel are altered equally - a conventional tremolo.
  13879. An offset of 50% means that the shape of the right channel is exactly shifted
  13880. in phase (or moved backwards about half of the frequency) - pulsator acts as
  13881. an autopanner. At 1 both curves match again. Every setting in between moves the
  13882. phase shift gapless between all stages and produces some &quot;bypassing&quot; sounds with
  13883. sine and triangle waveforms. The more you set the offset near 1 (starting from
  13884. the 0.5) the faster the signal passes from the left to the right speaker.
  13885. </p>
  13886. <p>The filter accepts the following options:
  13887. </p>
  13888. <dl compact="compact">
  13889. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  13890. <dd><p>Set input gain. By default it is 1. Range is [0.015625 - 64].
  13891. </p>
  13892. </dd>
  13893. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  13894. <dd><p>Set output gain. By default it is 1. Range is [0.015625 - 64].
  13895. </p>
  13896. </dd>
  13897. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  13898. <dd><p>Set waveform shape the LFO will use. Can be one of: sine, triangle, square,
  13899. sawup or sawdown. Default is sine.
  13900. </p>
  13901. </dd>
  13902. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  13903. <dd><p>Set modulation. Define how much of original signal is affected by the LFO.
  13904. </p>
  13905. </dd>
  13906. <dt>&lsquo;<samp>offset_l</samp>&rsquo;</dt>
  13907. <dd><p>Set left channel offset. Default is 0. Allowed range is [0 - 1].
  13908. </p>
  13909. </dd>
  13910. <dt>&lsquo;<samp>offset_r</samp>&rsquo;</dt>
  13911. <dd><p>Set right channel offset. Default is 0.5. Allowed range is [0 - 1].
  13912. </p>
  13913. </dd>
  13914. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  13915. <dd><p>Set pulse width. Default is 1. Allowed range is [0 - 2].
  13916. </p>
  13917. </dd>
  13918. <dt>&lsquo;<samp>timing</samp>&rsquo;</dt>
  13919. <dd><p>Set possible timing mode. Can be one of: bpm, ms or hz. Default is hz.
  13920. </p>
  13921. </dd>
  13922. <dt>&lsquo;<samp>bpm</samp>&rsquo;</dt>
  13923. <dd><p>Set bpm. Default is 120. Allowed range is [30 - 300]. Only used if timing
  13924. is set to bpm.
  13925. </p>
  13926. </dd>
  13927. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  13928. <dd><p>Set ms. Default is 500. Allowed range is [10 - 2000]. Only used if timing
  13929. is set to ms.
  13930. </p>
  13931. </dd>
  13932. <dt>&lsquo;<samp>hz</samp>&rsquo;</dt>
  13933. <dd><p>Set frequency in Hz. Default is 2. Allowed range is [0.01 - 100]. Only used
  13934. if timing is set to hz.
  13935. </p></dd>
  13936. </dl>
  13937. <p><a name="aresample"></a>
  13938. </p><a name="aresample-1"></a>
  13939. <h2 class="section"><a href="ffprobe-all.html#toc-aresample-1">29.35 aresample</a></h2>
  13940. <p>Resample the input audio to the specified parameters, using the
  13941. libswresample library. If none are specified then the filter will
  13942. automatically convert between its input and output.
  13943. </p>
  13944. <p>This filter is also able to stretch/squeeze the audio data to make it match
  13945. the timestamps or to inject silence / cut out audio to make it match the
  13946. timestamps, do a combination of both or do neither.
  13947. </p>
  13948. <p>The filter accepts the syntax
  13949. [<var>sample_rate</var>:]<var>resampler_options</var>, where <var>sample_rate</var>
  13950. expresses a sample rate and <var>resampler_options</var> is a list of
  13951. <var>key</var>=<var>value</var> pairs, separated by &quot;:&quot;. See the
  13952. <a href="ffmpeg-resampler.html#Resampler-Options">(ffmpeg-resampler)&quot;Resampler Options&quot; section in the ffmpeg-resampler(1) manual</a>
  13953. for the complete list of supported options.
  13954. </p>
  13955. <a name="Examples-47"></a>
  13956. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-47">29.35.1 Examples</a></h3>
  13957. <ul>
  13958. <li>
  13959. Resample the input audio to 44100Hz:
  13960. <div class="example">
  13961. <pre class="example">aresample=44100
  13962. </pre></div>
  13963. </li><li>
  13964. Stretch/squeeze samples to the given timestamps, with a maximum of 1000
  13965. samples per second compensation:
  13966. <div class="example">
  13967. <pre class="example">aresample=async=1000
  13968. </pre></div>
  13969. </li></ul>
  13970. <a name="areverse"></a>
  13971. <h2 class="section"><a href="ffprobe-all.html#toc-areverse">29.36 areverse</a></h2>
  13972. <p>Reverse an audio clip.
  13973. </p>
  13974. <p>Warning: This filter requires memory to buffer the entire clip, so trimming
  13975. is suggested.
  13976. </p>
  13977. <a name="Examples-150"></a>
  13978. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-150">29.36.1 Examples</a></h3>
  13979. <ul>
  13980. <li>
  13981. Take the first 5 seconds of a clip, and reverse it.
  13982. <div class="example">
  13983. <pre class="example">atrim=end=5,areverse
  13984. </pre></div>
  13985. </li></ul>
  13986. <a name="arnndn"></a>
  13987. <h2 class="section"><a href="ffprobe-all.html#toc-arnndn">29.37 arnndn</a></h2>
  13988. <p>Reduce noise from speech using Recurrent Neural Networks.
  13989. </p>
  13990. <p>This filter accepts the following options:
  13991. </p>
  13992. <dl compact="compact">
  13993. <dt>&lsquo;<samp>model, m</samp>&rsquo;</dt>
  13994. <dd><p>Set train model file to load. This option is always required.
  13995. </p></dd>
  13996. </dl>
  13997. <a name="asetnsamples"></a>
  13998. <h2 class="section"><a href="ffprobe-all.html#toc-asetnsamples">29.38 asetnsamples</a></h2>
  13999. <p>Set the number of samples per each output audio frame.
  14000. </p>
  14001. <p>The last output packet may contain a different number of samples, as
  14002. the filter will flush all the remaining samples when the input audio
  14003. signals its end.
  14004. </p>
  14005. <p>The filter accepts the following options:
  14006. </p>
  14007. <dl compact="compact">
  14008. <dt>&lsquo;<samp>nb_out_samples, n</samp>&rsquo;</dt>
  14009. <dd><p>Set the number of frames per each output audio frame. The number is
  14010. intended as the number of samples <em>per each channel</em>.
  14011. Default value is 1024.
  14012. </p>
  14013. </dd>
  14014. <dt>&lsquo;<samp>pad, p</samp>&rsquo;</dt>
  14015. <dd><p>If set to 1, the filter will pad the last audio frame with zeroes, so
  14016. that the last frame will contain the same number of samples as the
  14017. previous ones. Default value is 1.
  14018. </p></dd>
  14019. </dl>
  14020. <p>For example, to set the number of per-frame samples to 1234 and
  14021. disable padding for the last frame, use:
  14022. </p><div class="example">
  14023. <pre class="example">asetnsamples=n=1234:p=0
  14024. </pre></div>
  14025. <a name="asetrate"></a>
  14026. <h2 class="section"><a href="ffprobe-all.html#toc-asetrate">29.39 asetrate</a></h2>
  14027. <p>Set the sample rate without altering the PCM data.
  14028. This will result in a change of speed and pitch.
  14029. </p>
  14030. <p>The filter accepts the following options:
  14031. </p>
  14032. <dl compact="compact">
  14033. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  14034. <dd><p>Set the output sample rate. Default is 44100 Hz.
  14035. </p></dd>
  14036. </dl>
  14037. <a name="ashowinfo"></a>
  14038. <h2 class="section"><a href="ffprobe-all.html#toc-ashowinfo">29.40 ashowinfo</a></h2>
  14039. <p>Show a line containing various information for each input audio frame.
  14040. The input audio is not modified.
  14041. </p>
  14042. <p>The shown line contains a sequence of key/value pairs of the form
  14043. <var>key</var>:<var>value</var>.
  14044. </p>
  14045. <p>The following values are shown in the output:
  14046. </p>
  14047. <dl compact="compact">
  14048. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  14049. <dd><p>The (sequential) number of the input frame, starting from 0.
  14050. </p>
  14051. </dd>
  14052. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  14053. <dd><p>The presentation timestamp of the input frame, in time base units; the time base
  14054. depends on the filter input pad, and is usually 1/<var>sample_rate</var>.
  14055. </p>
  14056. </dd>
  14057. <dt>&lsquo;<samp>pts_time</samp>&rsquo;</dt>
  14058. <dd><p>The presentation timestamp of the input frame in seconds.
  14059. </p>
  14060. </dd>
  14061. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  14062. <dd><p>position of the frame in the input stream, -1 if this information in
  14063. unavailable and/or meaningless (for example in case of synthetic audio)
  14064. </p>
  14065. </dd>
  14066. <dt>&lsquo;<samp>fmt</samp>&rsquo;</dt>
  14067. <dd><p>The sample format.
  14068. </p>
  14069. </dd>
  14070. <dt>&lsquo;<samp>chlayout</samp>&rsquo;</dt>
  14071. <dd><p>The channel layout.
  14072. </p>
  14073. </dd>
  14074. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  14075. <dd><p>The sample rate for the audio frame.
  14076. </p>
  14077. </dd>
  14078. <dt>&lsquo;<samp>nb_samples</samp>&rsquo;</dt>
  14079. <dd><p>The number of samples (per channel) in the frame.
  14080. </p>
  14081. </dd>
  14082. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  14083. <dd><p>The Adler-32 checksum (printed in hexadecimal) of the audio data. For planar
  14084. audio, the data is treated as if all the planes were concatenated.
  14085. </p>
  14086. </dd>
  14087. <dt>&lsquo;<samp>plane_checksums</samp>&rsquo;</dt>
  14088. <dd><p>A list of Adler-32 checksums for each data plane.
  14089. </p></dd>
  14090. </dl>
  14091. <a name="asoftclip"></a>
  14092. <h2 class="section"><a href="ffprobe-all.html#toc-asoftclip">29.41 asoftclip</a></h2>
  14093. <p>Apply audio soft clipping.
  14094. </p>
  14095. <p>Soft clipping is a type of distortion effect where the amplitude of a signal is saturated
  14096. along a smooth curve, rather than the abrupt shape of hard-clipping.
  14097. </p>
  14098. <p>This filter accepts the following options:
  14099. </p>
  14100. <dl compact="compact">
  14101. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  14102. <dd><p>Set type of soft-clipping.
  14103. </p>
  14104. <p>It accepts the following values:
  14105. </p><dl compact="compact">
  14106. <dt>&lsquo;<samp>tanh</samp>&rsquo;</dt>
  14107. <dt>&lsquo;<samp>atan</samp>&rsquo;</dt>
  14108. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  14109. <dt>&lsquo;<samp>exp</samp>&rsquo;</dt>
  14110. <dt>&lsquo;<samp>alg</samp>&rsquo;</dt>
  14111. <dt>&lsquo;<samp>quintic</samp>&rsquo;</dt>
  14112. <dt>&lsquo;<samp>sin</samp>&rsquo;</dt>
  14113. </dl>
  14114. </dd>
  14115. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  14116. <dd><p>Set additional parameter which controls sigmoid function.
  14117. </p></dd>
  14118. </dl>
  14119. <a name="Commands-66"></a>
  14120. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-66">29.41.1 Commands</a></h3>
  14121. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  14122. </p>
  14123. <a name="asr"></a>
  14124. <h2 class="section"><a href="ffprobe-all.html#toc-asr">29.42 asr</a></h2>
  14125. <p>Automatic Speech Recognition
  14126. </p>
  14127. <p>This filter uses PocketSphinx for speech recognition. To enable
  14128. compilation of this filter, you need to configure FFmpeg with
  14129. <code>--enable-pocketsphinx</code>.
  14130. </p>
  14131. <p>It accepts the following options:
  14132. </p>
  14133. <dl compact="compact">
  14134. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  14135. <dd><p>Set sampling rate of input audio. Defaults is <code>16000</code>.
  14136. This need to match speech models, otherwise one will get poor results.
  14137. </p>
  14138. </dd>
  14139. <dt>&lsquo;<samp>hmm</samp>&rsquo;</dt>
  14140. <dd><p>Set dictionary containing acoustic model files.
  14141. </p>
  14142. </dd>
  14143. <dt>&lsquo;<samp>dict</samp>&rsquo;</dt>
  14144. <dd><p>Set pronunciation dictionary.
  14145. </p>
  14146. </dd>
  14147. <dt>&lsquo;<samp>lm</samp>&rsquo;</dt>
  14148. <dd><p>Set language model file.
  14149. </p>
  14150. </dd>
  14151. <dt>&lsquo;<samp>lmctl</samp>&rsquo;</dt>
  14152. <dd><p>Set language model set.
  14153. </p>
  14154. </dd>
  14155. <dt>&lsquo;<samp>lmname</samp>&rsquo;</dt>
  14156. <dd><p>Set which language model to use.
  14157. </p>
  14158. </dd>
  14159. <dt>&lsquo;<samp>logfn</samp>&rsquo;</dt>
  14160. <dd><p>Set output for log messages.
  14161. </p></dd>
  14162. </dl>
  14163. <p>The filter exports recognized speech as the frame metadata <code>lavfi.asr.text</code>.
  14164. </p>
  14165. <p><a name="astats"></a>
  14166. </p><a name="astats-1"></a>
  14167. <h2 class="section"><a href="ffprobe-all.html#toc-astats-1">29.43 astats</a></h2>
  14168. <p>Display time domain statistical information about the audio channels.
  14169. Statistics are calculated and displayed for each audio channel and,
  14170. where applicable, an overall figure is also given.
  14171. </p>
  14172. <p>It accepts the following option:
  14173. </p><dl compact="compact">
  14174. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  14175. <dd><p>Short window length in seconds, used for peak and trough RMS measurement.
  14176. Default is <code>0.05</code> (50 milliseconds). Allowed range is <code>[0.01 - 10]</code>.
  14177. </p>
  14178. </dd>
  14179. <dt>&lsquo;<samp>metadata</samp>&rsquo;</dt>
  14180. <dd>
  14181. <p>Set metadata injection. All the metadata keys are prefixed with <code>lavfi.astats.X</code>,
  14182. where <code>X</code> is channel number starting from 1 or string <code>Overall</code>. Default is
  14183. disabled.
  14184. </p>
  14185. <p>Available keys for each channel are:
  14186. DC_offset
  14187. Min_level
  14188. Max_level
  14189. Min_difference
  14190. Max_difference
  14191. Mean_difference
  14192. RMS_difference
  14193. Peak_level
  14194. RMS_peak
  14195. RMS_trough
  14196. Crest_factor
  14197. Flat_factor
  14198. Peak_count
  14199. Bit_depth
  14200. Dynamic_range
  14201. Zero_crossings
  14202. Zero_crossings_rate
  14203. Number_of_NaNs
  14204. Number_of_Infs
  14205. Number_of_denormals
  14206. </p>
  14207. <p>and for Overall:
  14208. DC_offset
  14209. Min_level
  14210. Max_level
  14211. Min_difference
  14212. Max_difference
  14213. Mean_difference
  14214. RMS_difference
  14215. Peak_level
  14216. RMS_level
  14217. RMS_peak
  14218. RMS_trough
  14219. Flat_factor
  14220. Peak_count
  14221. Bit_depth
  14222. Number_of_samples
  14223. Number_of_NaNs
  14224. Number_of_Infs
  14225. Number_of_denormals
  14226. </p>
  14227. <p>For example full key look like this <code>lavfi.astats.1.DC_offset</code> or
  14228. this <code>lavfi.astats.Overall.Peak_count</code>.
  14229. </p>
  14230. <p>For description what each key means read below.
  14231. </p>
  14232. </dd>
  14233. <dt>&lsquo;<samp>reset</samp>&rsquo;</dt>
  14234. <dd><p>Set number of frame after which stats are going to be recalculated.
  14235. Default is disabled.
  14236. </p>
  14237. </dd>
  14238. <dt>&lsquo;<samp>measure_perchannel</samp>&rsquo;</dt>
  14239. <dd><p>Select the entries which need to be measured per channel. The metadata keys can
  14240. be used as flags, default is &lsquo;<samp>all</samp>&rsquo; which measures everything.
  14241. &lsquo;<samp>none</samp>&rsquo; disables all per channel measurement.
  14242. </p>
  14243. </dd>
  14244. <dt>&lsquo;<samp>measure_overall</samp>&rsquo;</dt>
  14245. <dd><p>Select the entries which need to be measured overall. The metadata keys can
  14246. be used as flags, default is &lsquo;<samp>all</samp>&rsquo; which measures everything.
  14247. &lsquo;<samp>none</samp>&rsquo; disables all overall measurement.
  14248. </p>
  14249. </dd>
  14250. </dl>
  14251. <p>A description of each shown parameter follows:
  14252. </p>
  14253. <dl compact="compact">
  14254. <dt>&lsquo;<samp>DC offset</samp>&rsquo;</dt>
  14255. <dd><p>Mean amplitude displacement from zero.
  14256. </p>
  14257. </dd>
  14258. <dt>&lsquo;<samp>Min level</samp>&rsquo;</dt>
  14259. <dd><p>Minimal sample level.
  14260. </p>
  14261. </dd>
  14262. <dt>&lsquo;<samp>Max level</samp>&rsquo;</dt>
  14263. <dd><p>Maximal sample level.
  14264. </p>
  14265. </dd>
  14266. <dt>&lsquo;<samp>Min difference</samp>&rsquo;</dt>
  14267. <dd><p>Minimal difference between two consecutive samples.
  14268. </p>
  14269. </dd>
  14270. <dt>&lsquo;<samp>Max difference</samp>&rsquo;</dt>
  14271. <dd><p>Maximal difference between two consecutive samples.
  14272. </p>
  14273. </dd>
  14274. <dt>&lsquo;<samp>Mean difference</samp>&rsquo;</dt>
  14275. <dd><p>Mean difference between two consecutive samples.
  14276. The average of each difference between two consecutive samples.
  14277. </p>
  14278. </dd>
  14279. <dt>&lsquo;<samp>RMS difference</samp>&rsquo;</dt>
  14280. <dd><p>Root Mean Square difference between two consecutive samples.
  14281. </p>
  14282. </dd>
  14283. <dt>&lsquo;<samp>Peak level dB</samp>&rsquo;</dt>
  14284. <dt>&lsquo;<samp>RMS level dB</samp>&rsquo;</dt>
  14285. <dd><p>Standard peak and RMS level measured in dBFS.
  14286. </p>
  14287. </dd>
  14288. <dt>&lsquo;<samp>RMS peak dB</samp>&rsquo;</dt>
  14289. <dt>&lsquo;<samp>RMS trough dB</samp>&rsquo;</dt>
  14290. <dd><p>Peak and trough values for RMS level measured over a short window.
  14291. </p>
  14292. </dd>
  14293. <dt>&lsquo;<samp>Crest factor</samp>&rsquo;</dt>
  14294. <dd><p>Standard ratio of peak to RMS level (note: not in dB).
  14295. </p>
  14296. </dd>
  14297. <dt>&lsquo;<samp>Flat factor</samp>&rsquo;</dt>
  14298. <dd><p>Flatness (i.e. consecutive samples with the same value) of the signal at its peak levels
  14299. (i.e. either <var>Min level</var> or <var>Max level</var>).
  14300. </p>
  14301. </dd>
  14302. <dt>&lsquo;<samp>Peak count</samp>&rsquo;</dt>
  14303. <dd><p>Number of occasions (not the number of samples) that the signal attained either
  14304. <var>Min level</var> or <var>Max level</var>.
  14305. </p>
  14306. </dd>
  14307. <dt>&lsquo;<samp>Bit depth</samp>&rsquo;</dt>
  14308. <dd><p>Overall bit depth of audio. Number of bits used for each sample.
  14309. </p>
  14310. </dd>
  14311. <dt>&lsquo;<samp>Dynamic range</samp>&rsquo;</dt>
  14312. <dd><p>Measured dynamic range of audio in dB.
  14313. </p>
  14314. </dd>
  14315. <dt>&lsquo;<samp>Zero crossings</samp>&rsquo;</dt>
  14316. <dd><p>Number of points where the waveform crosses the zero level axis.
  14317. </p>
  14318. </dd>
  14319. <dt>&lsquo;<samp>Zero crossings rate</samp>&rsquo;</dt>
  14320. <dd><p>Rate of Zero crossings and number of audio samples.
  14321. </p></dd>
  14322. </dl>
  14323. <a name="atempo"></a>
  14324. <h2 class="section"><a href="ffprobe-all.html#toc-atempo">29.44 atempo</a></h2>
  14325. <p>Adjust audio tempo.
  14326. </p>
  14327. <p>The filter accepts exactly one parameter, the audio tempo. If not
  14328. specified then the filter will assume nominal 1.0 tempo. Tempo must
  14329. be in the [0.5, 100.0] range.
  14330. </p>
  14331. <p>Note that tempo greater than 2 will skip some samples rather than
  14332. blend them in. If for any reason this is a concern it is always
  14333. possible to daisy-chain several instances of atempo to achieve the
  14334. desired product tempo.
  14335. </p>
  14336. <a name="Examples-16"></a>
  14337. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-16">29.44.1 Examples</a></h3>
  14338. <ul>
  14339. <li>
  14340. Slow down audio to 80% tempo:
  14341. <div class="example">
  14342. <pre class="example">atempo=0.8
  14343. </pre></div>
  14344. </li><li>
  14345. To speed up audio to 300% tempo:
  14346. <div class="example">
  14347. <pre class="example">atempo=3
  14348. </pre></div>
  14349. </li><li>
  14350. To speed up audio to 300% tempo by daisy-chaining two atempo instances:
  14351. <div class="example">
  14352. <pre class="example">atempo=sqrt(3),atempo=sqrt(3)
  14353. </pre></div>
  14354. </li></ul>
  14355. <a name="Commands-29"></a>
  14356. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-29">29.44.2 Commands</a></h3>
  14357. <p>This filter supports the following commands:
  14358. </p><dl compact="compact">
  14359. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  14360. <dd><p>Change filter tempo scale factor.
  14361. Syntax for the command is : &quot;<var>tempo</var>&quot;
  14362. </p></dd>
  14363. </dl>
  14364. <a name="atrim"></a>
  14365. <h2 class="section"><a href="ffprobe-all.html#toc-atrim">29.45 atrim</a></h2>
  14366. <p>Trim the input so that the output contains one continuous subpart of the input.
  14367. </p>
  14368. <p>It accepts the following parameters:
  14369. </p><dl compact="compact">
  14370. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  14371. <dd><p>Timestamp (in seconds) of the start of the section to keep. I.e. the audio
  14372. sample with the timestamp <var>start</var> will be the first sample in the output.
  14373. </p>
  14374. </dd>
  14375. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  14376. <dd><p>Specify time of the first audio sample that will be dropped, i.e. the
  14377. audio sample immediately preceding the one with the timestamp <var>end</var> will be
  14378. the last sample in the output.
  14379. </p>
  14380. </dd>
  14381. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  14382. <dd><p>Same as <var>start</var>, except this option sets the start timestamp in samples
  14383. instead of seconds.
  14384. </p>
  14385. </dd>
  14386. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  14387. <dd><p>Same as <var>end</var>, except this option sets the end timestamp in samples instead
  14388. of seconds.
  14389. </p>
  14390. </dd>
  14391. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  14392. <dd><p>The maximum duration of the output in seconds.
  14393. </p>
  14394. </dd>
  14395. <dt>&lsquo;<samp>start_sample</samp>&rsquo;</dt>
  14396. <dd><p>The number of the first sample that should be output.
  14397. </p>
  14398. </dd>
  14399. <dt>&lsquo;<samp>end_sample</samp>&rsquo;</dt>
  14400. <dd><p>The number of the first sample that should be dropped.
  14401. </p></dd>
  14402. </dl>
  14403. <p>&lsquo;<samp>start</samp>&rsquo;, &lsquo;<samp>end</samp>&rsquo;, and &lsquo;<samp>duration</samp>&rsquo; are expressed as time
  14404. duration specifications; see
  14405. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  14406. </p>
  14407. <p>Note that the first two sets of the start/end options and the &lsquo;<samp>duration</samp>&rsquo;
  14408. option look at the frame timestamp, while the _sample options simply count the
  14409. samples that pass through the filter. So start/end_pts and start/end_sample will
  14410. give different results when the timestamps are wrong, inexact or do not start at
  14411. zero. Also note that this filter does not modify the timestamps. If you wish
  14412. to have the output timestamps start at zero, insert the asetpts filter after the
  14413. atrim filter.
  14414. </p>
  14415. <p>If multiple start or end options are set, this filter tries to be greedy and
  14416. keep all samples that match at least one of the specified constraints. To keep
  14417. only the part that matches all the constraints at once, chain multiple atrim
  14418. filters.
  14419. </p>
  14420. <p>The defaults are such that all the input is kept. So it is possible to set e.g.
  14421. just the end values to keep everything before the specified time.
  14422. </p>
  14423. <p>Examples:
  14424. </p><ul>
  14425. <li>
  14426. Drop everything except the second minute of input:
  14427. <div class="example">
  14428. <pre class="example">ffmpeg -i INPUT -af atrim=60:120
  14429. </pre></div>
  14430. </li><li>
  14431. Keep only the first 1000 samples:
  14432. <div class="example">
  14433. <pre class="example">ffmpeg -i INPUT -af atrim=end_sample=1000
  14434. </pre></div>
  14435. </li></ul>
  14436. <a name="axcorrelate"></a>
  14437. <h2 class="section"><a href="ffprobe-all.html#toc-axcorrelate">29.46 axcorrelate</a></h2>
  14438. <p>Calculate normalized cross-correlation between two input audio streams.
  14439. </p>
  14440. <p>Resulted samples are always between -1 and 1 inclusive.
  14441. If result is 1 it means two input samples are highly correlated in that selected segment.
  14442. Result 0 means they are not correlated at all.
  14443. If result is -1 it means two input samples are out of phase, which means they cancel each
  14444. other.
  14445. </p>
  14446. <p>The filter accepts the following options:
  14447. </p>
  14448. <dl compact="compact">
  14449. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  14450. <dd><p>Set size of segment over which cross-correlation is calculated.
  14451. Default is 256. Allowed range is from 2 to 131072.
  14452. </p>
  14453. </dd>
  14454. <dt>&lsquo;<samp>algo</samp>&rsquo;</dt>
  14455. <dd><p>Set algorithm for cross-correlation. Can be <code>slow</code> or <code>fast</code>.
  14456. Default is <code>slow</code>. Fast algorithm assumes mean values over any given segment
  14457. are always zero and thus need much less calculations to make.
  14458. This is generally not true, but is valid for typical audio streams.
  14459. </p></dd>
  14460. </dl>
  14461. <a name="Examples-131"></a>
  14462. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-131">29.46.1 Examples</a></h3>
  14463. <ul>
  14464. <li>
  14465. Calculate correlation between channels in stereo audio stream:
  14466. <div class="example">
  14467. <pre class="example">ffmpeg -i stereo.wav -af channelsplit,axcorrelate=size=1024:algo=fast correlation.wav
  14468. </pre></div>
  14469. </li></ul>
  14470. <a name="bandpass"></a>
  14471. <h2 class="section"><a href="ffprobe-all.html#toc-bandpass">29.47 bandpass</a></h2>
  14472. <p>Apply a two-pole Butterworth band-pass filter with central
  14473. frequency <var>frequency</var>, and (3dB-point) band-width width.
  14474. The <var>csg</var> option selects a constant skirt gain (peak gain = Q)
  14475. instead of the default: constant 0dB peak gain.
  14476. The filter roll off at 6dB per octave (20dB per decade).
  14477. </p>
  14478. <p>The filter accepts the following options:
  14479. </p>
  14480. <dl compact="compact">
  14481. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14482. <dd><p>Set the filter&rsquo;s central frequency. Default is <code>3000</code>.
  14483. </p>
  14484. </dd>
  14485. <dt>&lsquo;<samp>csg</samp>&rsquo;</dt>
  14486. <dd><p>Constant skirt gain if set to 1. Defaults to 0.
  14487. </p>
  14488. </dd>
  14489. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14490. <dd><p>Set method to specify band-width of filter.
  14491. </p><dl compact="compact">
  14492. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14493. <dd><p>Hz
  14494. </p></dd>
  14495. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14496. <dd><p>Q-Factor
  14497. </p></dd>
  14498. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14499. <dd><p>octave
  14500. </p></dd>
  14501. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14502. <dd><p>slope
  14503. </p></dd>
  14504. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14505. <dd><p>kHz
  14506. </p></dd>
  14507. </dl>
  14508. </dd>
  14509. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14510. <dd><p>Specify the band-width of a filter in width_type units.
  14511. </p>
  14512. </dd>
  14513. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14514. <dd><p>How much to use filtered signal in output. Default is 1.
  14515. Range is between 0 and 1.
  14516. </p>
  14517. </dd>
  14518. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14519. <dd><p>Specify which channels to filter, by default all available are filtered.
  14520. </p>
  14521. </dd>
  14522. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14523. <dd><p>Normalize biquad coefficients, by default is disabled.
  14524. Enabling it will normalize magnitude response at DC to 0dB.
  14525. </p></dd>
  14526. </dl>
  14527. <a name="Commands-64"></a>
  14528. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-64">29.47.1 Commands</a></h3>
  14529. <p>This filter supports the following commands:
  14530. </p><dl compact="compact">
  14531. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14532. <dd><p>Change bandpass frequency.
  14533. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14534. </p>
  14535. </dd>
  14536. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14537. <dd><p>Change bandpass width_type.
  14538. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14539. </p>
  14540. </dd>
  14541. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14542. <dd><p>Change bandpass width.
  14543. Syntax for the command is : &quot;<var>width</var>&quot;
  14544. </p>
  14545. </dd>
  14546. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14547. <dd><p>Change bandpass mix.
  14548. Syntax for the command is : &quot;<var>mix</var>&quot;
  14549. </p></dd>
  14550. </dl>
  14551. <a name="bandreject"></a>
  14552. <h2 class="section"><a href="ffprobe-all.html#toc-bandreject">29.48 bandreject</a></h2>
  14553. <p>Apply a two-pole Butterworth band-reject filter with central
  14554. frequency <var>frequency</var>, and (3dB-point) band-width <var>width</var>.
  14555. The filter roll off at 6dB per octave (20dB per decade).
  14556. </p>
  14557. <p>The filter accepts the following options:
  14558. </p>
  14559. <dl compact="compact">
  14560. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14561. <dd><p>Set the filter&rsquo;s central frequency. Default is <code>3000</code>.
  14562. </p>
  14563. </dd>
  14564. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14565. <dd><p>Set method to specify band-width of filter.
  14566. </p><dl compact="compact">
  14567. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14568. <dd><p>Hz
  14569. </p></dd>
  14570. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14571. <dd><p>Q-Factor
  14572. </p></dd>
  14573. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14574. <dd><p>octave
  14575. </p></dd>
  14576. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14577. <dd><p>slope
  14578. </p></dd>
  14579. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14580. <dd><p>kHz
  14581. </p></dd>
  14582. </dl>
  14583. </dd>
  14584. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14585. <dd><p>Specify the band-width of a filter in width_type units.
  14586. </p>
  14587. </dd>
  14588. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14589. <dd><p>How much to use filtered signal in output. Default is 1.
  14590. Range is between 0 and 1.
  14591. </p>
  14592. </dd>
  14593. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14594. <dd><p>Specify which channels to filter, by default all available are filtered.
  14595. </p>
  14596. </dd>
  14597. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14598. <dd><p>Normalize biquad coefficients, by default is disabled.
  14599. Enabling it will normalize magnitude response at DC to 0dB.
  14600. </p></dd>
  14601. </dl>
  14602. <a name="Commands-20"></a>
  14603. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-20">29.48.1 Commands</a></h3>
  14604. <p>This filter supports the following commands:
  14605. </p><dl compact="compact">
  14606. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14607. <dd><p>Change bandreject frequency.
  14608. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14609. </p>
  14610. </dd>
  14611. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14612. <dd><p>Change bandreject width_type.
  14613. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14614. </p>
  14615. </dd>
  14616. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14617. <dd><p>Change bandreject width.
  14618. Syntax for the command is : &quot;<var>width</var>&quot;
  14619. </p>
  14620. </dd>
  14621. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14622. <dd><p>Change bandreject mix.
  14623. Syntax for the command is : &quot;<var>mix</var>&quot;
  14624. </p></dd>
  14625. </dl>
  14626. <a name="bass_002c-lowshelf"></a>
  14627. <h2 class="section"><a href="ffprobe-all.html#toc-bass_002c-lowshelf">29.49 bass, lowshelf</a></h2>
  14628. <p>Boost or cut the bass (lower) frequencies of the audio using a two-pole
  14629. shelving filter with a response similar to that of a standard
  14630. hi-fi&rsquo;s tone-controls. This is also known as shelving equalisation (EQ).
  14631. </p>
  14632. <p>The filter accepts the following options:
  14633. </p>
  14634. <dl compact="compact">
  14635. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  14636. <dd><p>Give the gain at 0 Hz. Its useful range is about -20
  14637. (for a large cut) to +20 (for a large boost).
  14638. Beware of clipping when using a positive gain.
  14639. </p>
  14640. </dd>
  14641. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14642. <dd><p>Set the filter&rsquo;s central frequency and so can be used
  14643. to extend or reduce the frequency range to be boosted or cut.
  14644. The default value is <code>100</code> Hz.
  14645. </p>
  14646. </dd>
  14647. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14648. <dd><p>Set method to specify band-width of filter.
  14649. </p><dl compact="compact">
  14650. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  14651. <dd><p>Hz
  14652. </p></dd>
  14653. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  14654. <dd><p>Q-Factor
  14655. </p></dd>
  14656. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  14657. <dd><p>octave
  14658. </p></dd>
  14659. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  14660. <dd><p>slope
  14661. </p></dd>
  14662. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  14663. <dd><p>kHz
  14664. </p></dd>
  14665. </dl>
  14666. </dd>
  14667. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14668. <dd><p>Determine how steep is the filter&rsquo;s shelf transition.
  14669. </p>
  14670. </dd>
  14671. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14672. <dd><p>How much to use filtered signal in output. Default is 1.
  14673. Range is between 0 and 1.
  14674. </p>
  14675. </dd>
  14676. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14677. <dd><p>Specify which channels to filter, by default all available are filtered.
  14678. </p>
  14679. </dd>
  14680. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14681. <dd><p>Normalize biquad coefficients, by default is disabled.
  14682. Enabling it will normalize magnitude response at DC to 0dB.
  14683. </p></dd>
  14684. </dl>
  14685. <a name="Commands-7"></a>
  14686. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-7">29.49.1 Commands</a></h3>
  14687. <p>This filter supports the following commands:
  14688. </p><dl compact="compact">
  14689. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  14690. <dd><p>Change bass frequency.
  14691. Syntax for the command is : &quot;<var>frequency</var>&quot;
  14692. </p>
  14693. </dd>
  14694. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  14695. <dd><p>Change bass width_type.
  14696. Syntax for the command is : &quot;<var>width_type</var>&quot;
  14697. </p>
  14698. </dd>
  14699. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  14700. <dd><p>Change bass width.
  14701. Syntax for the command is : &quot;<var>width</var>&quot;
  14702. </p>
  14703. </dd>
  14704. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  14705. <dd><p>Change bass gain.
  14706. Syntax for the command is : &quot;<var>gain</var>&quot;
  14707. </p>
  14708. </dd>
  14709. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14710. <dd><p>Change bass mix.
  14711. Syntax for the command is : &quot;<var>mix</var>&quot;
  14712. </p></dd>
  14713. </dl>
  14714. <a name="biquad"></a>
  14715. <h2 class="section"><a href="ffprobe-all.html#toc-biquad">29.50 biquad</a></h2>
  14716. <p>Apply a biquad IIR filter with the given coefficients.
  14717. Where <var>b0</var>, <var>b1</var>, <var>b2</var> and <var>a0</var>, <var>a1</var>, <var>a2</var>
  14718. are the numerator and denominator coefficients respectively.
  14719. and <var>channels</var>, <var>c</var> specify which channels to filter, by default all
  14720. available are filtered.
  14721. </p>
  14722. <a name="Commands-54"></a>
  14723. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-54">29.50.1 Commands</a></h3>
  14724. <p>This filter supports the following commands:
  14725. </p><dl compact="compact">
  14726. <dt>&lsquo;<samp>a0</samp>&rsquo;</dt>
  14727. <dt>&lsquo;<samp>a1</samp>&rsquo;</dt>
  14728. <dt>&lsquo;<samp>a2</samp>&rsquo;</dt>
  14729. <dt>&lsquo;<samp>b0</samp>&rsquo;</dt>
  14730. <dt>&lsquo;<samp>b1</samp>&rsquo;</dt>
  14731. <dt>&lsquo;<samp>b2</samp>&rsquo;</dt>
  14732. <dd><p>Change biquad parameter.
  14733. Syntax for the command is : &quot;<var>value</var>&quot;
  14734. </p>
  14735. </dd>
  14736. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  14737. <dd><p>How much to use filtered signal in output. Default is 1.
  14738. Range is between 0 and 1.
  14739. </p>
  14740. </dd>
  14741. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  14742. <dd><p>Specify which channels to filter, by default all available are filtered.
  14743. </p>
  14744. </dd>
  14745. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  14746. <dd><p>Normalize biquad coefficients, by default is disabled.
  14747. Enabling it will normalize magnitude response at DC to 0dB.
  14748. </p></dd>
  14749. </dl>
  14750. <a name="bs2b"></a>
  14751. <h2 class="section"><a href="ffprobe-all.html#toc-bs2b">29.51 bs2b</a></h2>
  14752. <p>Bauer stereo to binaural transformation, which improves headphone listening of
  14753. stereo audio records.
  14754. </p>
  14755. <p>To enable compilation of this filter you need to configure FFmpeg with
  14756. <code>--enable-libbs2b</code>.
  14757. </p>
  14758. <p>It accepts the following parameters:
  14759. </p><dl compact="compact">
  14760. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  14761. <dd><p>Pre-defined crossfeed level.
  14762. </p><dl compact="compact">
  14763. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  14764. <dd><p>Default level (fcut=700, feed=50).
  14765. </p>
  14766. </dd>
  14767. <dt>&lsquo;<samp>cmoy</samp>&rsquo;</dt>
  14768. <dd><p>Chu Moy circuit (fcut=700, feed=60).
  14769. </p>
  14770. </dd>
  14771. <dt>&lsquo;<samp>jmeier</samp>&rsquo;</dt>
  14772. <dd><p>Jan Meier circuit (fcut=650, feed=95).
  14773. </p>
  14774. </dd>
  14775. </dl>
  14776. </dd>
  14777. <dt>&lsquo;<samp>fcut</samp>&rsquo;</dt>
  14778. <dd><p>Cut frequency (in Hz).
  14779. </p>
  14780. </dd>
  14781. <dt>&lsquo;<samp>feed</samp>&rsquo;</dt>
  14782. <dd><p>Feed level (in Hz).
  14783. </p>
  14784. </dd>
  14785. </dl>
  14786. <a name="channelmap"></a>
  14787. <h2 class="section"><a href="ffprobe-all.html#toc-channelmap">29.52 channelmap</a></h2>
  14788. <p>Remap input channels to new locations.
  14789. </p>
  14790. <p>It accepts the following parameters:
  14791. </p><dl compact="compact">
  14792. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  14793. <dd><p>Map channels from input to output. The argument is a &rsquo;|&rsquo;-separated list of
  14794. mappings, each in the <code><var>in_channel</var>-<var>out_channel</var></code> or
  14795. <var>in_channel</var> form. <var>in_channel</var> can be either the name of the input
  14796. channel (e.g. FL for front left) or its index in the input channel layout.
  14797. <var>out_channel</var> is the name of the output channel or its index in the output
  14798. channel layout. If <var>out_channel</var> is not given then it is implicitly an
  14799. index, starting with zero and increasing by one for each mapping.
  14800. </p>
  14801. </dd>
  14802. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  14803. <dd><p>The channel layout of the output stream.
  14804. </p></dd>
  14805. </dl>
  14806. <p>If no mapping is present, the filter will implicitly map input channels to
  14807. output channels, preserving indices.
  14808. </p>
  14809. <a name="Examples-123"></a>
  14810. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-123">29.52.1 Examples</a></h3>
  14811. <ul>
  14812. <li>
  14813. For example, assuming a 5.1+downmix input MOV file,
  14814. <div class="example">
  14815. <pre class="example">ffmpeg -i in.mov -filter 'channelmap=map=DL-FL|DR-FR' out.wav
  14816. </pre></div>
  14817. <p>will create an output WAV file tagged as stereo from the downmix channels of
  14818. the input.
  14819. </p>
  14820. </li><li>
  14821. To fix a 5.1 WAV improperly encoded in AAC&rsquo;s native channel order
  14822. <div class="example">
  14823. <pre class="example">ffmpeg -i in.wav -filter 'channelmap=1|2|0|5|3|4:5.1' out.wav
  14824. </pre></div>
  14825. </li></ul>
  14826. <a name="channelsplit"></a>
  14827. <h2 class="section"><a href="ffprobe-all.html#toc-channelsplit">29.53 channelsplit</a></h2>
  14828. <p>Split each channel from an input audio stream into a separate output stream.
  14829. </p>
  14830. <p>It accepts the following parameters:
  14831. </p><dl compact="compact">
  14832. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  14833. <dd><p>The channel layout of the input stream. The default is &quot;stereo&quot;.
  14834. </p></dd>
  14835. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  14836. <dd><p>A channel layout describing the channels to be extracted as separate output streams
  14837. or &quot;all&quot; to extract each input channel as a separate stream. The default is &quot;all&quot;.
  14838. </p>
  14839. <p>Choosing channels not present in channel layout in the input will result in an error.
  14840. </p></dd>
  14841. </dl>
  14842. <a name="Examples-108"></a>
  14843. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-108">29.53.1 Examples</a></h3>
  14844. <ul>
  14845. <li>
  14846. For example, assuming a stereo input MP3 file,
  14847. <div class="example">
  14848. <pre class="example">ffmpeg -i in.mp3 -filter_complex channelsplit out.mkv
  14849. </pre></div>
  14850. <p>will create an output Matroska file with two audio streams, one containing only
  14851. the left channel and the other the right channel.
  14852. </p>
  14853. </li><li>
  14854. Split a 5.1 WAV file into per-channel files:
  14855. <div class="example">
  14856. <pre class="example">ffmpeg -i in.wav -filter_complex
  14857. 'channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]'
  14858. -map '[FL]' front_left.wav -map '[FR]' front_right.wav -map '[FC]'
  14859. front_center.wav -map '[LFE]' lfe.wav -map '[SL]' side_left.wav -map '[SR]'
  14860. side_right.wav
  14861. </pre></div>
  14862. </li><li>
  14863. Extract only LFE from a 5.1 WAV file:
  14864. <div class="example">
  14865. <pre class="example">ffmpeg -i in.wav -filter_complex 'channelsplit=channel_layout=5.1:channels=LFE[LFE]'
  14866. -map '[LFE]' lfe.wav
  14867. </pre></div>
  14868. </li></ul>
  14869. <a name="chorus"></a>
  14870. <h2 class="section"><a href="ffprobe-all.html#toc-chorus">29.54 chorus</a></h2>
  14871. <p>Add a chorus effect to the audio.
  14872. </p>
  14873. <p>Can make a single vocal sound like a chorus, but can also be applied to instrumentation.
  14874. </p>
  14875. <p>Chorus resembles an echo effect with a short delay, but whereas with echo the delay is
  14876. constant, with chorus, it is varied using using sinusoidal or triangular modulation.
  14877. The modulation depth defines the range the modulated delay is played before or after
  14878. the delay. Hence the delayed sound will sound slower or faster, that is the delayed
  14879. sound tuned around the original one, like in a chorus where some vocals are slightly
  14880. off key.
  14881. </p>
  14882. <p>It accepts the following parameters:
  14883. </p><dl compact="compact">
  14884. <dt>&lsquo;<samp>in_gain</samp>&rsquo;</dt>
  14885. <dd><p>Set input gain. Default is 0.4.
  14886. </p>
  14887. </dd>
  14888. <dt>&lsquo;<samp>out_gain</samp>&rsquo;</dt>
  14889. <dd><p>Set output gain. Default is 0.4.
  14890. </p>
  14891. </dd>
  14892. <dt>&lsquo;<samp>delays</samp>&rsquo;</dt>
  14893. <dd><p>Set delays. A typical delay is around 40ms to 60ms.
  14894. </p>
  14895. </dd>
  14896. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  14897. <dd><p>Set decays.
  14898. </p>
  14899. </dd>
  14900. <dt>&lsquo;<samp>speeds</samp>&rsquo;</dt>
  14901. <dd><p>Set speeds.
  14902. </p>
  14903. </dd>
  14904. <dt>&lsquo;<samp>depths</samp>&rsquo;</dt>
  14905. <dd><p>Set depths.
  14906. </p></dd>
  14907. </dl>
  14908. <a name="Examples-137"></a>
  14909. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-137">29.54.1 Examples</a></h3>
  14910. <ul>
  14911. <li>
  14912. A single delay:
  14913. <div class="example">
  14914. <pre class="example">chorus=0.7:0.9:55:0.4:0.25:2
  14915. </pre></div>
  14916. </li><li>
  14917. Two delays:
  14918. <div class="example">
  14919. <pre class="example">chorus=0.6:0.9:50|60:0.4|0.32:0.25|0.4:2|1.3
  14920. </pre></div>
  14921. </li><li>
  14922. Fuller sounding chorus with three delays:
  14923. <div class="example">
  14924. <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
  14925. </pre></div>
  14926. </li></ul>
  14927. <a name="compand"></a>
  14928. <h2 class="section"><a href="ffprobe-all.html#toc-compand">29.55 compand</a></h2>
  14929. <p>Compress or expand the audio&rsquo;s dynamic range.
  14930. </p>
  14931. <p>It accepts the following parameters:
  14932. </p>
  14933. <dl compact="compact">
  14934. <dt>&lsquo;<samp>attacks</samp>&rsquo;</dt>
  14935. <dt>&lsquo;<samp>decays</samp>&rsquo;</dt>
  14936. <dd><p>A list of times in seconds for each channel over which the instantaneous level
  14937. of the input signal is averaged to determine its volume. <var>attacks</var> refers to
  14938. increase of volume and <var>decays</var> refers to decrease of volume. For most
  14939. situations, the attack time (response to the audio getting louder) should be
  14940. shorter than the decay time, because the human ear is more sensitive to sudden
  14941. loud audio than sudden soft audio. A typical value for attack is 0.3 seconds and
  14942. a typical value for decay is 0.8 seconds.
  14943. If specified number of attacks &amp; decays is lower than number of channels, the last
  14944. set attack/decay will be used for all remaining channels.
  14945. </p>
  14946. </dd>
  14947. <dt>&lsquo;<samp>points</samp>&rsquo;</dt>
  14948. <dd><p>A list of points for the transfer function, specified in dB relative to the
  14949. maximum possible signal amplitude. Each key points list must be defined using
  14950. the following syntax: <code>x0/y0|x1/y1|x2/y2|....</code> or
  14951. <code>x0/y0 x1/y1 x2/y2 ....</code>
  14952. </p>
  14953. <p>The input values must be in strictly increasing order but the transfer function
  14954. does not have to be monotonically rising. The point <code>0/0</code> is assumed but
  14955. may be overridden (by <code>0/out-dBn</code>). Typical values for the transfer
  14956. function are <code>-70/-70|-60/-20|1/0</code>.
  14957. </p>
  14958. </dd>
  14959. <dt>&lsquo;<samp>soft-knee</samp>&rsquo;</dt>
  14960. <dd><p>Set the curve radius in dB for all joints. It defaults to 0.01.
  14961. </p>
  14962. </dd>
  14963. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  14964. <dd><p>Set the additional gain in dB to be applied at all points on the transfer
  14965. function. This allows for easy adjustment of the overall gain.
  14966. It defaults to 0.
  14967. </p>
  14968. </dd>
  14969. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  14970. <dd><p>Set an initial volume, in dB, to be assumed for each channel when filtering
  14971. starts. This permits the user to supply a nominal level initially, so that, for
  14972. example, a very large gain is not applied to initial signal levels before the
  14973. companding has begun to operate. A typical value for audio which is initially
  14974. quiet is -90 dB. It defaults to 0.
  14975. </p>
  14976. </dd>
  14977. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  14978. <dd><p>Set a delay, in seconds. The input audio is analyzed immediately, but audio is
  14979. delayed before being fed to the volume adjuster. Specifying a delay
  14980. approximately equal to the attack/decay times allows the filter to effectively
  14981. operate in predictive rather than reactive mode. It defaults to 0.
  14982. </p>
  14983. </dd>
  14984. </dl>
  14985. <a name="Examples-84"></a>
  14986. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-84">29.55.1 Examples</a></h3>
  14987. <ul>
  14988. <li>
  14989. Make music with both quiet and loud passages suitable for listening to in a
  14990. noisy environment:
  14991. <div class="example">
  14992. <pre class="example">compand=.3|.3:1|1:-90/-60|-60/-40|-40/-30|-20/-20:6:0:-90:0.2
  14993. </pre></div>
  14994. <p>Another example for audio with whisper and explosion parts:
  14995. </p><div class="example">
  14996. <pre class="example">compand=0|0:1|1:-90/-900|-70/-70|-30/-9|0/-3:6:0:0:0
  14997. </pre></div>
  14998. </li><li>
  14999. A noise gate for when the noise is at a lower level than the signal:
  15000. <div class="example">
  15001. <pre class="example">compand=.1|.1:.2|.2:-900/-900|-50.1/-900|-50/-50:.01:0:-90:.1
  15002. </pre></div>
  15003. </li><li>
  15004. Here is another noise gate, this time for when the noise is at a higher level
  15005. than the signal (making it, in some ways, similar to squelch):
  15006. <div class="example">
  15007. <pre class="example">compand=.1|.1:.1|.1:-45.1/-45.1|-45/-900|0/-900:.01:45:-90:.1
  15008. </pre></div>
  15009. </li><li>
  15010. 2:1 compression starting at -6dB:
  15011. <div class="example">
  15012. <pre class="example">compand=points=-80/-80|-6/-6|0/-3.8|20/3.5
  15013. </pre></div>
  15014. </li><li>
  15015. 2:1 compression starting at -9dB:
  15016. <div class="example">
  15017. <pre class="example">compand=points=-80/-80|-9/-9|0/-5.3|20/2.9
  15018. </pre></div>
  15019. </li><li>
  15020. 2:1 compression starting at -12dB:
  15021. <div class="example">
  15022. <pre class="example">compand=points=-80/-80|-12/-12|0/-6.8|20/1.9
  15023. </pre></div>
  15024. </li><li>
  15025. 2:1 compression starting at -18dB:
  15026. <div class="example">
  15027. <pre class="example">compand=points=-80/-80|-18/-18|0/-9.8|20/0.7
  15028. </pre></div>
  15029. </li><li>
  15030. 3:1 compression starting at -15dB:
  15031. <div class="example">
  15032. <pre class="example">compand=points=-80/-80|-15/-15|0/-10.8|20/-5.2
  15033. </pre></div>
  15034. </li><li>
  15035. Compressor/Gate:
  15036. <div class="example">
  15037. <pre class="example">compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6
  15038. </pre></div>
  15039. </li><li>
  15040. Expander:
  15041. <div class="example">
  15042. <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
  15043. </pre></div>
  15044. </li><li>
  15045. Hard limiter at -6dB:
  15046. <div class="example">
  15047. <pre class="example">compand=attacks=0:points=-80/-80|-6/-6|20/-6
  15048. </pre></div>
  15049. </li><li>
  15050. Hard limiter at -12dB:
  15051. <div class="example">
  15052. <pre class="example">compand=attacks=0:points=-80/-80|-12/-12|20/-12
  15053. </pre></div>
  15054. </li><li>
  15055. Hard noise gate at -35 dB:
  15056. <div class="example">
  15057. <pre class="example">compand=attacks=0:points=-80/-115|-35.1/-80|-35/-35|20/20
  15058. </pre></div>
  15059. </li><li>
  15060. Soft limiter:
  15061. <div class="example">
  15062. <pre class="example">compand=attacks=0:points=-80/-80|-12.4/-12.4|-6/-8|0/-6.8|20/-2.8
  15063. </pre></div>
  15064. </li></ul>
  15065. <a name="compensationdelay"></a>
  15066. <h2 class="section"><a href="ffprobe-all.html#toc-compensationdelay">29.56 compensationdelay</a></h2>
  15067. <p>Compensation Delay Line is a metric based delay to compensate differing
  15068. positions of microphones or speakers.
  15069. </p>
  15070. <p>For example, you have recorded guitar with two microphones placed in
  15071. different locations. Because the front of sound wave has fixed speed in
  15072. normal conditions, the phasing of microphones can vary and depends on
  15073. their location and interposition. The best sound mix can be achieved when
  15074. these microphones are in phase (synchronized). Note that a distance of
  15075. ~30 cm between microphones makes one microphone capture the signal in
  15076. antiphase to the other microphone. That makes the final mix sound moody.
  15077. This filter helps to solve phasing problems by adding different delays
  15078. to each microphone track and make them synchronized.
  15079. </p>
  15080. <p>The best result can be reached when you take one track as base and
  15081. synchronize other tracks one by one with it.
  15082. Remember that synchronization/delay tolerance depends on sample rate, too.
  15083. Higher sample rates will give more tolerance.
  15084. </p>
  15085. <p>The filter accepts the following parameters:
  15086. </p>
  15087. <dl compact="compact">
  15088. <dt>&lsquo;<samp>mm</samp>&rsquo;</dt>
  15089. <dd><p>Set millimeters distance. This is compensation distance for fine tuning.
  15090. Default is 0.
  15091. </p>
  15092. </dd>
  15093. <dt>&lsquo;<samp>cm</samp>&rsquo;</dt>
  15094. <dd><p>Set cm distance. This is compensation distance for tightening distance setup.
  15095. Default is 0.
  15096. </p>
  15097. </dd>
  15098. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15099. <dd><p>Set meters distance. This is compensation distance for hard distance setup.
  15100. Default is 0.
  15101. </p>
  15102. </dd>
  15103. <dt>&lsquo;<samp>dry</samp>&rsquo;</dt>
  15104. <dd><p>Set dry amount. Amount of unprocessed (dry) signal.
  15105. Default is 0.
  15106. </p>
  15107. </dd>
  15108. <dt>&lsquo;<samp>wet</samp>&rsquo;</dt>
  15109. <dd><p>Set wet amount. Amount of processed (wet) signal.
  15110. Default is 1.
  15111. </p>
  15112. </dd>
  15113. <dt>&lsquo;<samp>temp</samp>&rsquo;</dt>
  15114. <dd><p>Set temperature in degrees Celsius. This is the temperature of the environment.
  15115. Default is 20.
  15116. </p></dd>
  15117. </dl>
  15118. <a name="crossfeed"></a>
  15119. <h2 class="section"><a href="ffprobe-all.html#toc-crossfeed">29.57 crossfeed</a></h2>
  15120. <p>Apply headphone crossfeed filter.
  15121. </p>
  15122. <p>Crossfeed is the process of blending the left and right channels of stereo
  15123. audio recording.
  15124. It is mainly used to reduce extreme stereo separation of low frequencies.
  15125. </p>
  15126. <p>The intent is to produce more speaker like sound to the listener.
  15127. </p>
  15128. <p>The filter accepts the following options:
  15129. </p>
  15130. <dl compact="compact">
  15131. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  15132. <dd><p>Set strength of crossfeed. Default is 0.2. Allowed range is from 0 to 1.
  15133. This sets gain of low shelf filter for side part of stereo image.
  15134. Default is -6dB. Max allowed is -30db when strength is set to 1.
  15135. </p>
  15136. </dd>
  15137. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  15138. <dd><p>Set soundstage wideness. Default is 0.5. Allowed range is from 0 to 1.
  15139. This sets cut off frequency of low shelf filter. Default is cut off near
  15140. 1550 Hz. With range set to 1 cut off frequency is set to 2100 Hz.
  15141. </p>
  15142. </dd>
  15143. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  15144. <dd><p>Set input gain. Default is 0.9.
  15145. </p>
  15146. </dd>
  15147. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  15148. <dd><p>Set output gain. Default is 1.
  15149. </p></dd>
  15150. </dl>
  15151. <a name="crystalizer"></a>
  15152. <h2 class="section"><a href="ffprobe-all.html#toc-crystalizer">29.58 crystalizer</a></h2>
  15153. <p>Simple algorithm to expand audio dynamic range.
  15154. </p>
  15155. <p>The filter accepts the following options:
  15156. </p>
  15157. <dl compact="compact">
  15158. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15159. <dd><p>Sets the intensity of effect (default: 2.0). Must be in range between 0.0
  15160. (unchanged sound) to 10.0 (maximum effect).
  15161. </p>
  15162. </dd>
  15163. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  15164. <dd><p>Enable clipping. By default is enabled.
  15165. </p></dd>
  15166. </dl>
  15167. <a name="Commands"></a>
  15168. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands">29.58.1 Commands</a></h3>
  15169. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15170. </p>
  15171. <a name="dcshift"></a>
  15172. <h2 class="section"><a href="ffprobe-all.html#toc-dcshift">29.59 dcshift</a></h2>
  15173. <p>Apply a DC shift to the audio.
  15174. </p>
  15175. <p>This can be useful to remove a DC offset (caused perhaps by a hardware problem
  15176. in the recording chain) from the audio. The effect of a DC offset is reduced
  15177. headroom and hence volume. The <a href="#astats">astats</a> filter can be used to determine if
  15178. a signal has a DC offset.
  15179. </p>
  15180. <dl compact="compact">
  15181. <dt>&lsquo;<samp>shift</samp>&rsquo;</dt>
  15182. <dd><p>Set the DC shift, allowed range is [-1, 1]. It indicates the amount to shift
  15183. the audio.
  15184. </p>
  15185. </dd>
  15186. <dt>&lsquo;<samp>limitergain</samp>&rsquo;</dt>
  15187. <dd><p>Optional. It should have a value much less than 1 (e.g. 0.05 or 0.02) and is
  15188. used to prevent clipping.
  15189. </p></dd>
  15190. </dl>
  15191. <a name="deesser"></a>
  15192. <h2 class="section"><a href="ffprobe-all.html#toc-deesser">29.60 deesser</a></h2>
  15193. <p>Apply de-essing to the audio samples.
  15194. </p>
  15195. <dl compact="compact">
  15196. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15197. <dd><p>Set intensity for triggering de-essing. Allowed range is from 0 to 1.
  15198. Default is 0.
  15199. </p>
  15200. </dd>
  15201. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15202. <dd><p>Set amount of ducking on treble part of sound. Allowed range is from 0 to 1.
  15203. Default is 0.5.
  15204. </p>
  15205. </dd>
  15206. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  15207. <dd><p>How much of original frequency content to keep when de-essing. Allowed range is from 0 to 1.
  15208. Default is 0.5.
  15209. </p>
  15210. </dd>
  15211. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  15212. <dd><p>Set the output mode.
  15213. </p>
  15214. <p>It accepts the following values:
  15215. </p><dl compact="compact">
  15216. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  15217. <dd><p>Pass input unchanged.
  15218. </p>
  15219. </dd>
  15220. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  15221. <dd><p>Pass ess filtered out.
  15222. </p>
  15223. </dd>
  15224. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  15225. <dd><p>Pass only ess.
  15226. </p>
  15227. <p>Default value is <var>o</var>.
  15228. </p></dd>
  15229. </dl>
  15230. </dd>
  15231. </dl>
  15232. <a name="drmeter"></a>
  15233. <h2 class="section"><a href="ffprobe-all.html#toc-drmeter">29.61 drmeter</a></h2>
  15234. <p>Measure audio dynamic range.
  15235. </p>
  15236. <p>DR values of 14 and higher is found in very dynamic material. DR of 8 to 13
  15237. is found in transition material. And anything less that 8 have very poor dynamics
  15238. and is very compressed.
  15239. </p>
  15240. <p>The filter accepts the following options:
  15241. </p>
  15242. <dl compact="compact">
  15243. <dt>&lsquo;<samp>length</samp>&rsquo;</dt>
  15244. <dd><p>Set window length in seconds used to split audio into segments of equal length.
  15245. Default is 3 seconds.
  15246. </p></dd>
  15247. </dl>
  15248. <a name="dynaudnorm"></a>
  15249. <h2 class="section"><a href="ffprobe-all.html#toc-dynaudnorm">29.62 dynaudnorm</a></h2>
  15250. <p>Dynamic Audio Normalizer.
  15251. </p>
  15252. <p>This filter applies a certain amount of gain to the input audio in order
  15253. to bring its peak magnitude to a target level (e.g. 0 dBFS). However, in
  15254. contrast to more &quot;simple&quot; normalization algorithms, the Dynamic Audio
  15255. Normalizer *dynamically* re-adjusts the gain factor to the input audio.
  15256. This allows for applying extra gain to the &quot;quiet&quot; sections of the audio
  15257. while avoiding distortions or clipping the &quot;loud&quot; sections. In other words:
  15258. The Dynamic Audio Normalizer will &quot;even out&quot; the volume of quiet and loud
  15259. sections, in the sense that the volume of each section is brought to the
  15260. same target level. Note, however, that the Dynamic Audio Normalizer achieves
  15261. this goal *without* applying &quot;dynamic range compressing&quot;. It will retain 100%
  15262. of the dynamic range *within* each section of the audio file.
  15263. </p>
  15264. <dl compact="compact">
  15265. <dt>&lsquo;<samp>framelen, f</samp>&rsquo;</dt>
  15266. <dd><p>Set the frame length in milliseconds. In range from 10 to 8000 milliseconds.
  15267. Default is 500 milliseconds.
  15268. The Dynamic Audio Normalizer processes the input audio in small chunks,
  15269. referred to as frames. This is required, because a peak magnitude has no
  15270. meaning for just a single sample value. Instead, we need to determine the
  15271. peak magnitude for a contiguous sequence of sample values. While a &quot;standard&quot;
  15272. normalizer would simply use the peak magnitude of the complete file, the
  15273. Dynamic Audio Normalizer determines the peak magnitude individually for each
  15274. frame. The length of a frame is specified in milliseconds. By default, the
  15275. Dynamic Audio Normalizer uses a frame length of 500 milliseconds, which has
  15276. been found to give good results with most files.
  15277. Note that the exact frame length, in number of samples, will be determined
  15278. automatically, based on the sampling rate of the individual input audio file.
  15279. </p>
  15280. </dd>
  15281. <dt>&lsquo;<samp>gausssize, g</samp>&rsquo;</dt>
  15282. <dd><p>Set the Gaussian filter window size. In range from 3 to 301, must be odd
  15283. number. Default is 31.
  15284. Probably the most important parameter of the Dynamic Audio Normalizer is the
  15285. <code>window size</code> of the Gaussian smoothing filter. The filter&rsquo;s window size
  15286. is specified in frames, centered around the current frame. For the sake of
  15287. simplicity, this must be an odd number. Consequently, the default value of 31
  15288. takes into account the current frame, as well as the 15 preceding frames and
  15289. the 15 subsequent frames. Using a larger window results in a stronger
  15290. smoothing effect and thus in less gain variation, i.e. slower gain
  15291. adaptation. Conversely, using a smaller window results in a weaker smoothing
  15292. effect and thus in more gain variation, i.e. faster gain adaptation.
  15293. In other words, the more you increase this value, the more the Dynamic Audio
  15294. Normalizer will behave like a &quot;traditional&quot; normalization filter. On the
  15295. contrary, the more you decrease this value, the more the Dynamic Audio
  15296. Normalizer will behave like a dynamic range compressor.
  15297. </p>
  15298. </dd>
  15299. <dt>&lsquo;<samp>peak, p</samp>&rsquo;</dt>
  15300. <dd><p>Set the target peak value. This specifies the highest permissible magnitude
  15301. level for the normalized audio input. This filter will try to approach the
  15302. target peak magnitude as closely as possible, but at the same time it also
  15303. makes sure that the normalized signal will never exceed the peak magnitude.
  15304. A frame&rsquo;s maximum local gain factor is imposed directly by the target peak
  15305. magnitude. The default value is 0.95 and thus leaves a headroom of 5%*.
  15306. It is not recommended to go above this value.
  15307. </p>
  15308. </dd>
  15309. <dt>&lsquo;<samp>maxgain, m</samp>&rsquo;</dt>
  15310. <dd><p>Set the maximum gain factor. In range from 1.0 to 100.0. Default is 10.0.
  15311. The Dynamic Audio Normalizer determines the maximum possible (local) gain
  15312. factor for each input frame, i.e. the maximum gain factor that does not
  15313. result in clipping or distortion. The maximum gain factor is determined by
  15314. the frame&rsquo;s highest magnitude sample. However, the Dynamic Audio Normalizer
  15315. additionally bounds the frame&rsquo;s maximum gain factor by a predetermined
  15316. (global) maximum gain factor. This is done in order to avoid excessive gain
  15317. factors in &quot;silent&quot; or almost silent frames. By default, the maximum gain
  15318. factor is 10.0, For most inputs the default value should be sufficient and
  15319. it usually is not recommended to increase this value. Though, for input
  15320. with an extremely low overall volume level, it may be necessary to allow even
  15321. higher gain factors. Note, however, that the Dynamic Audio Normalizer does
  15322. not simply apply a &quot;hard&quot; threshold (i.e. cut off values above the threshold).
  15323. Instead, a &quot;sigmoid&quot; threshold function will be applied. This way, the
  15324. gain factors will smoothly approach the threshold value, but never exceed that
  15325. value.
  15326. </p>
  15327. </dd>
  15328. <dt>&lsquo;<samp>targetrms, r</samp>&rsquo;</dt>
  15329. <dd><p>Set the target RMS. In range from 0.0 to 1.0. Default is 0.0 - disabled.
  15330. By default, the Dynamic Audio Normalizer performs &quot;peak&quot; normalization.
  15331. This means that the maximum local gain factor for each frame is defined
  15332. (only) by the frame&rsquo;s highest magnitude sample. This way, the samples can
  15333. be amplified as much as possible without exceeding the maximum signal
  15334. level, i.e. without clipping. Optionally, however, the Dynamic Audio
  15335. Normalizer can also take into account the frame&rsquo;s root mean square,
  15336. abbreviated RMS. In electrical engineering, the RMS is commonly used to
  15337. determine the power of a time-varying signal. It is therefore considered
  15338. that the RMS is a better approximation of the &quot;perceived loudness&quot; than
  15339. just looking at the signal&rsquo;s peak magnitude. Consequently, by adjusting all
  15340. frames to a constant RMS value, a uniform &quot;perceived loudness&quot; can be
  15341. established. If a target RMS value has been specified, a frame&rsquo;s local gain
  15342. factor is defined as the factor that would result in exactly that RMS value.
  15343. Note, however, that the maximum local gain factor is still restricted by the
  15344. frame&rsquo;s highest magnitude sample, in order to prevent clipping.
  15345. </p>
  15346. </dd>
  15347. <dt>&lsquo;<samp>coupling, n</samp>&rsquo;</dt>
  15348. <dd><p>Enable channels coupling. By default is enabled.
  15349. By default, the Dynamic Audio Normalizer will amplify all channels by the same
  15350. amount. This means the same gain factor will be applied to all channels, i.e.
  15351. the maximum possible gain factor is determined by the &quot;loudest&quot; channel.
  15352. However, in some recordings, it may happen that the volume of the different
  15353. channels is uneven, e.g. one channel may be &quot;quieter&quot; than the other one(s).
  15354. In this case, this option can be used to disable the channel coupling. This way,
  15355. the gain factor will be determined independently for each channel, depending
  15356. only on the individual channel&rsquo;s highest magnitude sample. This allows for
  15357. harmonizing the volume of the different channels.
  15358. </p>
  15359. </dd>
  15360. <dt>&lsquo;<samp>correctdc, c</samp>&rsquo;</dt>
  15361. <dd><p>Enable DC bias correction. By default is disabled.
  15362. An audio signal (in the time domain) is a sequence of sample values.
  15363. In the Dynamic Audio Normalizer these sample values are represented in the
  15364. -1.0 to 1.0 range, regardless of the original input format. Normally, the
  15365. audio signal, or &quot;waveform&quot;, should be centered around the zero point.
  15366. That means if we calculate the mean value of all samples in a file, or in a
  15367. single frame, then the result should be 0.0 or at least very close to that
  15368. value. If, however, there is a significant deviation of the mean value from
  15369. 0.0, in either positive or negative direction, this is referred to as a
  15370. DC bias or DC offset. Since a DC bias is clearly undesirable, the Dynamic
  15371. Audio Normalizer provides optional DC bias correction.
  15372. With DC bias correction enabled, the Dynamic Audio Normalizer will determine
  15373. the mean value, or &quot;DC correction&quot; offset, of each input frame and subtract
  15374. that value from all of the frame&rsquo;s sample values which ensures those samples
  15375. are centered around 0.0 again. Also, in order to avoid &quot;gaps&quot; at the frame
  15376. boundaries, the DC correction offset values will be interpolated smoothly
  15377. between neighbouring frames.
  15378. </p>
  15379. </dd>
  15380. <dt>&lsquo;<samp>altboundary, b</samp>&rsquo;</dt>
  15381. <dd><p>Enable alternative boundary mode. By default is disabled.
  15382. The Dynamic Audio Normalizer takes into account a certain neighbourhood
  15383. around each frame. This includes the preceding frames as well as the
  15384. subsequent frames. However, for the &quot;boundary&quot; frames, located at the very
  15385. beginning and at the very end of the audio file, not all neighbouring
  15386. frames are available. In particular, for the first few frames in the audio
  15387. file, the preceding frames are not known. And, similarly, for the last few
  15388. frames in the audio file, the subsequent frames are not known. Thus, the
  15389. question arises which gain factors should be assumed for the missing frames
  15390. in the &quot;boundary&quot; region. The Dynamic Audio Normalizer implements two modes
  15391. to deal with this situation. The default boundary mode assumes a gain factor
  15392. of exactly 1.0 for the missing frames, resulting in a smooth &quot;fade in&quot; and
  15393. &quot;fade out&quot; at the beginning and at the end of the input, respectively.
  15394. </p>
  15395. </dd>
  15396. <dt>&lsquo;<samp>compress, s</samp>&rsquo;</dt>
  15397. <dd><p>Set the compress factor. In range from 0.0 to 30.0. Default is 0.0.
  15398. By default, the Dynamic Audio Normalizer does not apply &quot;traditional&quot;
  15399. compression. This means that signal peaks will not be pruned and thus the
  15400. full dynamic range will be retained within each local neighbourhood. However,
  15401. in some cases it may be desirable to combine the Dynamic Audio Normalizer&rsquo;s
  15402. normalization algorithm with a more &quot;traditional&quot; compression.
  15403. For this purpose, the Dynamic Audio Normalizer provides an optional compression
  15404. (thresholding) function. If (and only if) the compression feature is enabled,
  15405. all input frames will be processed by a soft knee thresholding function prior
  15406. to the actual normalization process. Put simply, the thresholding function is
  15407. going to prune all samples whose magnitude exceeds a certain threshold value.
  15408. However, the Dynamic Audio Normalizer does not simply apply a fixed threshold
  15409. value. Instead, the threshold value will be adjusted for each individual
  15410. frame.
  15411. In general, smaller parameters result in stronger compression, and vice versa.
  15412. Values below 3.0 are not recommended, because audible distortion may appear.
  15413. </p>
  15414. </dd>
  15415. <dt>&lsquo;<samp>threshold, t</samp>&rsquo;</dt>
  15416. <dd><p>Set the target threshold value. This specifies the lowest permissible
  15417. magnitude level for the audio input which will be normalized.
  15418. If input frame volume is above this value frame will be normalized.
  15419. Otherwise frame may not be normalized at all. The default value is set
  15420. to 0, which means all input frames will be normalized.
  15421. This option is mostly useful if digital noise is not wanted to be amplified.
  15422. </p></dd>
  15423. </dl>
  15424. <a name="Commands-28"></a>
  15425. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-28">29.62.1 Commands</a></h3>
  15426. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15427. </p>
  15428. <a name="earwax"></a>
  15429. <h2 class="section"><a href="ffprobe-all.html#toc-earwax">29.63 earwax</a></h2>
  15430. <p>Make audio easier to listen to on headphones.
  15431. </p>
  15432. <p>This filter adds &lsquo;cues&rsquo; to 44.1kHz stereo (i.e. audio CD format) audio
  15433. so that when listened to on headphones the stereo image is moved from
  15434. inside your head (standard for headphones) to outside and in front of
  15435. the listener (standard for speakers).
  15436. </p>
  15437. <p>Ported from SoX.
  15438. </p>
  15439. <a name="equalizer"></a>
  15440. <h2 class="section"><a href="ffprobe-all.html#toc-equalizer">29.64 equalizer</a></h2>
  15441. <p>Apply a two-pole peaking equalisation (EQ) filter. With this
  15442. filter, the signal-level at and around a selected frequency can
  15443. be increased or decreased, whilst (unlike bandpass and bandreject
  15444. filters) that at all other frequencies is unchanged.
  15445. </p>
  15446. <p>In order to produce complex equalisation curves, this filter can
  15447. be given several times, each with a different central frequency.
  15448. </p>
  15449. <p>The filter accepts the following options:
  15450. </p>
  15451. <dl compact="compact">
  15452. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  15453. <dd><p>Set the filter&rsquo;s central frequency in Hz.
  15454. </p>
  15455. </dd>
  15456. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  15457. <dd><p>Set method to specify band-width of filter.
  15458. </p><dl compact="compact">
  15459. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  15460. <dd><p>Hz
  15461. </p></dd>
  15462. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  15463. <dd><p>Q-Factor
  15464. </p></dd>
  15465. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  15466. <dd><p>octave
  15467. </p></dd>
  15468. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  15469. <dd><p>slope
  15470. </p></dd>
  15471. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  15472. <dd><p>kHz
  15473. </p></dd>
  15474. </dl>
  15475. </dd>
  15476. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  15477. <dd><p>Specify the band-width of a filter in width_type units.
  15478. </p>
  15479. </dd>
  15480. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  15481. <dd><p>Set the required gain or attenuation in dB.
  15482. Beware of clipping when using a positive gain.
  15483. </p>
  15484. </dd>
  15485. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  15486. <dd><p>How much to use filtered signal in output. Default is 1.
  15487. Range is between 0 and 1.
  15488. </p>
  15489. </dd>
  15490. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  15491. <dd><p>Specify which channels to filter, by default all available are filtered.
  15492. </p>
  15493. </dd>
  15494. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  15495. <dd><p>Normalize biquad coefficients, by default is disabled.
  15496. Enabling it will normalize magnitude response at DC to 0dB.
  15497. </p></dd>
  15498. </dl>
  15499. <a name="Examples-25"></a>
  15500. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-25">29.64.1 Examples</a></h3>
  15501. <ul>
  15502. <li>
  15503. Attenuate 10 dB at 1000 Hz, with a bandwidth of 200 Hz:
  15504. <div class="example">
  15505. <pre class="example">equalizer=f=1000:t=h:width=200:g=-10
  15506. </pre></div>
  15507. </li><li>
  15508. Apply 2 dB gain at 1000 Hz with Q 1 and attenuate 5 dB at 100 Hz with Q 2:
  15509. <div class="example">
  15510. <pre class="example">equalizer=f=1000:t=q:w=1:g=2,equalizer=f=100:t=q:w=2:g=-5
  15511. </pre></div>
  15512. </li></ul>
  15513. <a name="Commands-51"></a>
  15514. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-51">29.64.2 Commands</a></h3>
  15515. <p>This filter supports the following commands:
  15516. </p><dl compact="compact">
  15517. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  15518. <dd><p>Change equalizer frequency.
  15519. Syntax for the command is : &quot;<var>frequency</var>&quot;
  15520. </p>
  15521. </dd>
  15522. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  15523. <dd><p>Change equalizer width_type.
  15524. Syntax for the command is : &quot;<var>width_type</var>&quot;
  15525. </p>
  15526. </dd>
  15527. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  15528. <dd><p>Change equalizer width.
  15529. Syntax for the command is : &quot;<var>width</var>&quot;
  15530. </p>
  15531. </dd>
  15532. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  15533. <dd><p>Change equalizer gain.
  15534. Syntax for the command is : &quot;<var>gain</var>&quot;
  15535. </p>
  15536. </dd>
  15537. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  15538. <dd><p>Change equalizer mix.
  15539. Syntax for the command is : &quot;<var>mix</var>&quot;
  15540. </p></dd>
  15541. </dl>
  15542. <a name="extrastereo"></a>
  15543. <h2 class="section"><a href="ffprobe-all.html#toc-extrastereo">29.65 extrastereo</a></h2>
  15544. <p>Linearly increases the difference between left and right channels which
  15545. adds some sort of &quot;live&quot; effect to playback.
  15546. </p>
  15547. <p>The filter accepts the following options:
  15548. </p>
  15549. <dl compact="compact">
  15550. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  15551. <dd><p>Sets the difference coefficient (default: 2.5). 0.0 means mono sound
  15552. (average of both channels), with 1.0 sound will be unchanged, with
  15553. -1.0 left and right channels will be swapped.
  15554. </p>
  15555. </dd>
  15556. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  15557. <dd><p>Enable clipping. By default is enabled.
  15558. </p></dd>
  15559. </dl>
  15560. <a name="Commands-41"></a>
  15561. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-41">29.65.1 Commands</a></h3>
  15562. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  15563. </p>
  15564. <a name="firequalizer"></a>
  15565. <h2 class="section"><a href="ffprobe-all.html#toc-firequalizer">29.66 firequalizer</a></h2>
  15566. <p>Apply FIR Equalization using arbitrary frequency response.
  15567. </p>
  15568. <p>The filter accepts the following option:
  15569. </p>
  15570. <dl compact="compact">
  15571. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  15572. <dd><p>Set gain curve equation (in dB). The expression can contain variables:
  15573. </p><dl compact="compact">
  15574. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  15575. <dd><p>the evaluated frequency
  15576. </p></dd>
  15577. <dt>&lsquo;<samp>sr</samp>&rsquo;</dt>
  15578. <dd><p>sample rate
  15579. </p></dd>
  15580. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  15581. <dd><p>channel number, set to 0 when multichannels evaluation is disabled
  15582. </p></dd>
  15583. <dt>&lsquo;<samp>chid</samp>&rsquo;</dt>
  15584. <dd><p>channel id, see libavutil/channel_layout.h, set to the first channel id when
  15585. multichannels evaluation is disabled
  15586. </p></dd>
  15587. <dt>&lsquo;<samp>chs</samp>&rsquo;</dt>
  15588. <dd><p>number of channels
  15589. </p></dd>
  15590. <dt>&lsquo;<samp>chlayout</samp>&rsquo;</dt>
  15591. <dd><p>channel_layout, see libavutil/channel_layout.h
  15592. </p>
  15593. </dd>
  15594. </dl>
  15595. <p>and functions:
  15596. </p><dl compact="compact">
  15597. <dt>&lsquo;<samp>gain_interpolate(f)</samp>&rsquo;</dt>
  15598. <dd><p>interpolate gain on frequency f based on gain_entry
  15599. </p></dd>
  15600. <dt>&lsquo;<samp>cubic_interpolate(f)</samp>&rsquo;</dt>
  15601. <dd><p>same as gain_interpolate, but smoother
  15602. </p></dd>
  15603. </dl>
  15604. <p>This option is also available as command. Default is <code>gain_interpolate(f)</code>.
  15605. </p>
  15606. </dd>
  15607. <dt>&lsquo;<samp>gain_entry</samp>&rsquo;</dt>
  15608. <dd><p>Set gain entry for gain_interpolate function. The expression can
  15609. contain functions:
  15610. </p><dl compact="compact">
  15611. <dt>&lsquo;<samp>entry(f, g)</samp>&rsquo;</dt>
  15612. <dd><p>store gain entry at frequency f with value g
  15613. </p></dd>
  15614. </dl>
  15615. <p>This option is also available as command.
  15616. </p>
  15617. </dd>
  15618. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  15619. <dd><p>Set filter delay in seconds. Higher value means more accurate.
  15620. Default is <code>0.01</code>.
  15621. </p>
  15622. </dd>
  15623. <dt>&lsquo;<samp>accuracy</samp>&rsquo;</dt>
  15624. <dd><p>Set filter accuracy in Hz. Lower value means more accurate.
  15625. Default is <code>5</code>.
  15626. </p>
  15627. </dd>
  15628. <dt>&lsquo;<samp>wfunc</samp>&rsquo;</dt>
  15629. <dd><p>Set window function. Acceptable values are:
  15630. </p><dl compact="compact">
  15631. <dt>&lsquo;<samp>rectangular</samp>&rsquo;</dt>
  15632. <dd><p>rectangular window, useful when gain curve is already smooth
  15633. </p></dd>
  15634. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  15635. <dd><p>hann window (default)
  15636. </p></dd>
  15637. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  15638. <dd><p>hamming window
  15639. </p></dd>
  15640. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  15641. <dd><p>blackman window
  15642. </p></dd>
  15643. <dt>&lsquo;<samp>nuttall3</samp>&rsquo;</dt>
  15644. <dd><p>3-terms continuous 1st derivative nuttall window
  15645. </p></dd>
  15646. <dt>&lsquo;<samp>mnuttall3</samp>&rsquo;</dt>
  15647. <dd><p>minimum 3-terms discontinuous nuttall window
  15648. </p></dd>
  15649. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  15650. <dd><p>4-terms continuous 1st derivative nuttall window
  15651. </p></dd>
  15652. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  15653. <dd><p>minimum 4-terms discontinuous nuttall (blackman-nuttall) window
  15654. </p></dd>
  15655. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  15656. <dd><p>blackman-harris window
  15657. </p></dd>
  15658. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  15659. <dd><p>tukey window
  15660. </p></dd>
  15661. </dl>
  15662. </dd>
  15663. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  15664. <dd><p>If enabled, use fixed number of audio samples. This improves speed when
  15665. filtering with large delay. Default is disabled.
  15666. </p>
  15667. </dd>
  15668. <dt>&lsquo;<samp>multi</samp>&rsquo;</dt>
  15669. <dd><p>Enable multichannels evaluation on gain. Default is disabled.
  15670. </p>
  15671. </dd>
  15672. <dt>&lsquo;<samp>zero_phase</samp>&rsquo;</dt>
  15673. <dd><p>Enable zero phase mode by subtracting timestamp to compensate delay.
  15674. Default is disabled.
  15675. </p>
  15676. </dd>
  15677. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  15678. <dd><p>Set scale used by gain. Acceptable values are:
  15679. </p><dl compact="compact">
  15680. <dt>&lsquo;<samp>linlin</samp>&rsquo;</dt>
  15681. <dd><p>linear frequency, linear gain
  15682. </p></dd>
  15683. <dt>&lsquo;<samp>linlog</samp>&rsquo;</dt>
  15684. <dd><p>linear frequency, logarithmic (in dB) gain (default)
  15685. </p></dd>
  15686. <dt>&lsquo;<samp>loglin</samp>&rsquo;</dt>
  15687. <dd><p>logarithmic (in octave scale where 20 Hz is 0) frequency, linear gain
  15688. </p></dd>
  15689. <dt>&lsquo;<samp>loglog</samp>&rsquo;</dt>
  15690. <dd><p>logarithmic frequency, logarithmic gain
  15691. </p></dd>
  15692. </dl>
  15693. </dd>
  15694. <dt>&lsquo;<samp>dumpfile</samp>&rsquo;</dt>
  15695. <dd><p>Set file for dumping, suitable for gnuplot.
  15696. </p>
  15697. </dd>
  15698. <dt>&lsquo;<samp>dumpscale</samp>&rsquo;</dt>
  15699. <dd><p>Set scale for dumpfile. Acceptable values are same with scale option.
  15700. Default is linlog.
  15701. </p>
  15702. </dd>
  15703. <dt>&lsquo;<samp>fft2</samp>&rsquo;</dt>
  15704. <dd><p>Enable 2-channel convolution using complex FFT. This improves speed significantly.
  15705. Default is disabled.
  15706. </p>
  15707. </dd>
  15708. <dt>&lsquo;<samp>min_phase</samp>&rsquo;</dt>
  15709. <dd><p>Enable minimum phase impulse response. Default is disabled.
  15710. </p></dd>
  15711. </dl>
  15712. <a name="Examples-142"></a>
  15713. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-142">29.66.1 Examples</a></h3>
  15714. <ul>
  15715. <li>
  15716. lowpass at 1000 Hz:
  15717. <div class="example">
  15718. <pre class="example">firequalizer=gain='if(lt(f,1000), 0, -INF)'
  15719. </pre></div>
  15720. </li><li>
  15721. lowpass at 1000 Hz with gain_entry:
  15722. <div class="example">
  15723. <pre class="example">firequalizer=gain_entry='entry(1000,0); entry(1001, -INF)'
  15724. </pre></div>
  15725. </li><li>
  15726. custom equalization:
  15727. <div class="example">
  15728. <pre class="example">firequalizer=gain_entry='entry(100,0); entry(400, -4); entry(1000, -6); entry(2000, 0)'
  15729. </pre></div>
  15730. </li><li>
  15731. higher delay with zero phase to compensate delay:
  15732. <div class="example">
  15733. <pre class="example">firequalizer=delay=0.1:fixed=on:zero_phase=on
  15734. </pre></div>
  15735. </li><li>
  15736. lowpass on left channel, highpass on right channel:
  15737. <div class="example">
  15738. <pre class="example">firequalizer=gain='if(eq(chid,1), gain_interpolate(f), if(eq(chid,2), gain_interpolate(1e6+f), 0))'
  15739. :gain_entry='entry(1000, 0); entry(1001,-INF); entry(1e6+1000,0)':multi=on
  15740. </pre></div>
  15741. </li></ul>
  15742. <a name="flanger"></a>
  15743. <h2 class="section"><a href="ffprobe-all.html#toc-flanger">29.67 flanger</a></h2>
  15744. <p>Apply a flanging effect to the audio.
  15745. </p>
  15746. <p>The filter accepts the following options:
  15747. </p>
  15748. <dl compact="compact">
  15749. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  15750. <dd><p>Set base delay in milliseconds. Range from 0 to 30. Default value is 0.
  15751. </p>
  15752. </dd>
  15753. <dt>&lsquo;<samp>depth</samp>&rsquo;</dt>
  15754. <dd><p>Set added sweep delay in milliseconds. Range from 0 to 10. Default value is 2.
  15755. </p>
  15756. </dd>
  15757. <dt>&lsquo;<samp>regen</samp>&rsquo;</dt>
  15758. <dd><p>Set percentage regeneration (delayed signal feedback). Range from -95 to 95.
  15759. Default value is 0.
  15760. </p>
  15761. </dd>
  15762. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  15763. <dd><p>Set percentage of delayed signal mixed with original. Range from 0 to 100.
  15764. Default value is 71.
  15765. </p>
  15766. </dd>
  15767. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  15768. <dd><p>Set sweeps per second (Hz). Range from 0.1 to 10. Default value is 0.5.
  15769. </p>
  15770. </dd>
  15771. <dt>&lsquo;<samp>shape</samp>&rsquo;</dt>
  15772. <dd><p>Set swept wave shape, can be <var>triangular</var> or <var>sinusoidal</var>.
  15773. Default value is <var>sinusoidal</var>.
  15774. </p>
  15775. </dd>
  15776. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  15777. <dd><p>Set swept wave percentage-shift for multi channel. Range from 0 to 100.
  15778. Default value is 25.
  15779. </p>
  15780. </dd>
  15781. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  15782. <dd><p>Set delay-line interpolation, <var>linear</var> or <var>quadratic</var>.
  15783. Default is <var>linear</var>.
  15784. </p></dd>
  15785. </dl>
  15786. <a name="haas"></a>
  15787. <h2 class="section"><a href="ffprobe-all.html#toc-haas">29.68 haas</a></h2>
  15788. <p>Apply Haas effect to audio.
  15789. </p>
  15790. <p>Note that this makes most sense to apply on mono signals.
  15791. With this filter applied to mono signals it give some directionality and
  15792. stretches its stereo image.
  15793. </p>
  15794. <p>The filter accepts the following options:
  15795. </p>
  15796. <dl compact="compact">
  15797. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  15798. <dd><p>Set input level. By default is <var>1</var>, or 0dB
  15799. </p>
  15800. </dd>
  15801. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  15802. <dd><p>Set output level. By default is <var>1</var>, or 0dB.
  15803. </p>
  15804. </dd>
  15805. <dt>&lsquo;<samp>side_gain</samp>&rsquo;</dt>
  15806. <dd><p>Set gain applied to side part of signal. By default is <var>1</var>.
  15807. </p>
  15808. </dd>
  15809. <dt>&lsquo;<samp>middle_source</samp>&rsquo;</dt>
  15810. <dd><p>Set kind of middle source. Can be one of the following:
  15811. </p>
  15812. <dl compact="compact">
  15813. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  15814. <dd><p>Pick left channel.
  15815. </p>
  15816. </dd>
  15817. <dt>&lsquo;<samp>right</samp>&rsquo;</dt>
  15818. <dd><p>Pick right channel.
  15819. </p>
  15820. </dd>
  15821. <dt>&lsquo;<samp>mid</samp>&rsquo;</dt>
  15822. <dd><p>Pick middle part signal of stereo image.
  15823. </p>
  15824. </dd>
  15825. <dt>&lsquo;<samp>side</samp>&rsquo;</dt>
  15826. <dd><p>Pick side part signal of stereo image.
  15827. </p></dd>
  15828. </dl>
  15829. </dd>
  15830. <dt>&lsquo;<samp>middle_phase</samp>&rsquo;</dt>
  15831. <dd><p>Change middle phase. By default is disabled.
  15832. </p>
  15833. </dd>
  15834. <dt>&lsquo;<samp>left_delay</samp>&rsquo;</dt>
  15835. <dd><p>Set left channel delay. By default is <var>2.05</var> milliseconds.
  15836. </p>
  15837. </dd>
  15838. <dt>&lsquo;<samp>left_balance</samp>&rsquo;</dt>
  15839. <dd><p>Set left channel balance. By default is <var>-1</var>.
  15840. </p>
  15841. </dd>
  15842. <dt>&lsquo;<samp>left_gain</samp>&rsquo;</dt>
  15843. <dd><p>Set left channel gain. By default is <var>1</var>.
  15844. </p>
  15845. </dd>
  15846. <dt>&lsquo;<samp>left_phase</samp>&rsquo;</dt>
  15847. <dd><p>Change left phase. By default is disabled.
  15848. </p>
  15849. </dd>
  15850. <dt>&lsquo;<samp>right_delay</samp>&rsquo;</dt>
  15851. <dd><p>Set right channel delay. By defaults is <var>2.12</var> milliseconds.
  15852. </p>
  15853. </dd>
  15854. <dt>&lsquo;<samp>right_balance</samp>&rsquo;</dt>
  15855. <dd><p>Set right channel balance. By default is <var>1</var>.
  15856. </p>
  15857. </dd>
  15858. <dt>&lsquo;<samp>right_gain</samp>&rsquo;</dt>
  15859. <dd><p>Set right channel gain. By default is <var>1</var>.
  15860. </p>
  15861. </dd>
  15862. <dt>&lsquo;<samp>right_phase</samp>&rsquo;</dt>
  15863. <dd><p>Change right phase. By default is enabled.
  15864. </p></dd>
  15865. </dl>
  15866. <a name="hdcd"></a>
  15867. <h2 class="section"><a href="ffprobe-all.html#toc-hdcd">29.69 hdcd</a></h2>
  15868. <p>Decodes High Definition Compatible Digital (HDCD) data. A 16-bit PCM stream with
  15869. embedded HDCD codes is expanded into a 20-bit PCM stream.
  15870. </p>
  15871. <p>The filter supports the Peak Extend and Low-level Gain Adjustment features
  15872. of HDCD, and detects the Transient Filter flag.
  15873. </p>
  15874. <div class="example">
  15875. <pre class="example">ffmpeg -i HDCD16.flac -af hdcd OUT24.flac
  15876. </pre></div>
  15877. <p>When using the filter with wav, note the default encoding for wav is 16-bit,
  15878. so the resulting 20-bit stream will be truncated back to 16-bit. Use something
  15879. like <code>-acodec pcm_s24le</code> after the filter to get 24-bit PCM output.
  15880. </p><div class="example">
  15881. <pre class="example">ffmpeg -i HDCD16.wav -af hdcd OUT16.wav
  15882. ffmpeg -i HDCD16.wav -af hdcd -c:a pcm_s24le OUT24.wav
  15883. </pre></div>
  15884. <p>The filter accepts the following options:
  15885. </p>
  15886. <dl compact="compact">
  15887. <dt>&lsquo;<samp>disable_autoconvert</samp>&rsquo;</dt>
  15888. <dd><p>Disable any automatic format conversion or resampling in the filter graph.
  15889. </p>
  15890. </dd>
  15891. <dt>&lsquo;<samp>process_stereo</samp>&rsquo;</dt>
  15892. <dd><p>Process the stereo channels together. If target_gain does not match between
  15893. channels, consider it invalid and use the last valid target_gain.
  15894. </p>
  15895. </dd>
  15896. <dt>&lsquo;<samp>cdt_ms</samp>&rsquo;</dt>
  15897. <dd><p>Set the code detect timer period in ms.
  15898. </p>
  15899. </dd>
  15900. <dt>&lsquo;<samp>force_pe</samp>&rsquo;</dt>
  15901. <dd><p>Always extend peaks above -3dBFS even if PE isn&rsquo;t signaled.
  15902. </p>
  15903. </dd>
  15904. <dt>&lsquo;<samp>analyze_mode</samp>&rsquo;</dt>
  15905. <dd><p>Replace audio with a solid tone and adjust the amplitude to signal some
  15906. specific aspect of the decoding process. The output file can be loaded in
  15907. an audio editor alongside the original to aid analysis.
  15908. </p>
  15909. <p><code>analyze_mode=pe:force_pe=true</code> can be used to see all samples above the PE level.
  15910. </p>
  15911. <p>Modes are:
  15912. </p><dl compact="compact">
  15913. <dt>&lsquo;<samp>0, off</samp>&rsquo;</dt>
  15914. <dd><p>Disabled
  15915. </p></dd>
  15916. <dt>&lsquo;<samp>1, lle</samp>&rsquo;</dt>
  15917. <dd><p>Gain adjustment level at each sample
  15918. </p></dd>
  15919. <dt>&lsquo;<samp>2, pe</samp>&rsquo;</dt>
  15920. <dd><p>Samples where peak extend occurs
  15921. </p></dd>
  15922. <dt>&lsquo;<samp>3, cdt</samp>&rsquo;</dt>
  15923. <dd><p>Samples where the code detect timer is active
  15924. </p></dd>
  15925. <dt>&lsquo;<samp>4, tgm</samp>&rsquo;</dt>
  15926. <dd><p>Samples where the target gain does not match between channels
  15927. </p></dd>
  15928. </dl>
  15929. </dd>
  15930. </dl>
  15931. <a name="headphone"></a>
  15932. <h2 class="section"><a href="ffprobe-all.html#toc-headphone">29.70 headphone</a></h2>
  15933. <p>Apply head-related transfer functions (HRTFs) to create virtual
  15934. loudspeakers around the user for binaural listening via headphones.
  15935. The HRIRs are provided via additional streams, for each channel
  15936. one stereo input stream is needed.
  15937. </p>
  15938. <p>The filter accepts the following options:
  15939. </p>
  15940. <dl compact="compact">
  15941. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  15942. <dd><p>Set mapping of input streams for convolution.
  15943. The argument is a &rsquo;|&rsquo;-separated list of channel names in order as they
  15944. are given as additional stream inputs for filter.
  15945. This also specify number of input streams. Number of input streams
  15946. must be not less than number of channels in first stream plus one.
  15947. </p>
  15948. </dd>
  15949. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  15950. <dd><p>Set gain applied to audio. Value is in dB. Default is 0.
  15951. </p>
  15952. </dd>
  15953. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  15954. <dd><p>Set processing type. Can be <var>time</var> or <var>freq</var>. <var>time</var> is
  15955. processing audio in time domain which is slow.
  15956. <var>freq</var> is processing audio in frequency domain which is fast.
  15957. Default is <var>freq</var>.
  15958. </p>
  15959. </dd>
  15960. <dt>&lsquo;<samp>lfe</samp>&rsquo;</dt>
  15961. <dd><p>Set custom gain for LFE channels. Value is in dB. Default is 0.
  15962. </p>
  15963. </dd>
  15964. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  15965. <dd><p>Set size of frame in number of samples which will be processed at once.
  15966. Default value is <var>1024</var>. Allowed range is from 1024 to 96000.
  15967. </p>
  15968. </dd>
  15969. <dt>&lsquo;<samp>hrir</samp>&rsquo;</dt>
  15970. <dd><p>Set format of hrir stream.
  15971. Default value is <var>stereo</var>. Alternative value is <var>multich</var>.
  15972. If value is set to <var>stereo</var>, number of additional streams should
  15973. be greater or equal to number of input channels in first input stream.
  15974. Also each additional stream should have stereo number of channels.
  15975. If value is set to <var>multich</var>, number of additional streams should
  15976. be exactly one. Also number of input channels of additional stream
  15977. should be equal or greater than twice number of channels of first input
  15978. stream.
  15979. </p></dd>
  15980. </dl>
  15981. <a name="Examples-54"></a>
  15982. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-54">29.70.1 Examples</a></h3>
  15983. <ul>
  15984. <li>
  15985. Full example using wav files as coefficients with amovie filters for 7.1 downmix,
  15986. each amovie filter use stereo file with IR coefficients as input.
  15987. The files give coefficients for each position of virtual loudspeaker:
  15988. <div class="example">
  15989. <pre class="example">ffmpeg -i input.wav
  15990. -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;
  15991. output.wav
  15992. </pre></div>
  15993. </li><li>
  15994. Full example using wav files as coefficients with amovie filters for 7.1 downmix,
  15995. but now in <var>multich</var> <var>hrir</var> format.
  15996. <div class="example">
  15997. <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;
  15998. output.wav
  15999. </pre></div>
  16000. </li></ul>
  16001. <a name="highpass"></a>
  16002. <h2 class="section"><a href="ffprobe-all.html#toc-highpass">29.71 highpass</a></h2>
  16003. <p>Apply a high-pass filter with 3dB point frequency.
  16004. The filter can be either single-pole, or double-pole (the default).
  16005. The filter roll off at 6dB per pole per octave (20dB per pole per decade).
  16006. </p>
  16007. <p>The filter accepts the following options:
  16008. </p>
  16009. <dl compact="compact">
  16010. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16011. <dd><p>Set frequency in Hz. Default is 3000.
  16012. </p>
  16013. </dd>
  16014. <dt>&lsquo;<samp>poles, p</samp>&rsquo;</dt>
  16015. <dd><p>Set number of poles. Default is 2.
  16016. </p>
  16017. </dd>
  16018. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16019. <dd><p>Set method to specify band-width of filter.
  16020. </p><dl compact="compact">
  16021. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  16022. <dd><p>Hz
  16023. </p></dd>
  16024. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  16025. <dd><p>Q-Factor
  16026. </p></dd>
  16027. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  16028. <dd><p>octave
  16029. </p></dd>
  16030. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  16031. <dd><p>slope
  16032. </p></dd>
  16033. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  16034. <dd><p>kHz
  16035. </p></dd>
  16036. </dl>
  16037. </dd>
  16038. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16039. <dd><p>Specify the band-width of a filter in width_type units.
  16040. Applies only to double-pole filter.
  16041. The default is 0.707q and gives a Butterworth response.
  16042. </p>
  16043. </dd>
  16044. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16045. <dd><p>How much to use filtered signal in output. Default is 1.
  16046. Range is between 0 and 1.
  16047. </p>
  16048. </dd>
  16049. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  16050. <dd><p>Specify which channels to filter, by default all available are filtered.
  16051. </p>
  16052. </dd>
  16053. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  16054. <dd><p>Normalize biquad coefficients, by default is disabled.
  16055. Enabling it will normalize magnitude response at DC to 0dB.
  16056. </p></dd>
  16057. </dl>
  16058. <a name="Commands-58"></a>
  16059. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-58">29.71.1 Commands</a></h3>
  16060. <p>This filter supports the following commands:
  16061. </p><dl compact="compact">
  16062. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16063. <dd><p>Change highpass frequency.
  16064. Syntax for the command is : &quot;<var>frequency</var>&quot;
  16065. </p>
  16066. </dd>
  16067. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16068. <dd><p>Change highpass width_type.
  16069. Syntax for the command is : &quot;<var>width_type</var>&quot;
  16070. </p>
  16071. </dd>
  16072. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16073. <dd><p>Change highpass width.
  16074. Syntax for the command is : &quot;<var>width</var>&quot;
  16075. </p>
  16076. </dd>
  16077. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16078. <dd><p>Change highpass mix.
  16079. Syntax for the command is : &quot;<var>mix</var>&quot;
  16080. </p></dd>
  16081. </dl>
  16082. <a name="join"></a>
  16083. <h2 class="section"><a href="ffprobe-all.html#toc-join">29.72 join</a></h2>
  16084. <p>Join multiple input streams into one multi-channel stream.
  16085. </p>
  16086. <p>It accepts the following parameters:
  16087. </p><dl compact="compact">
  16088. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  16089. <dd><p>The number of input streams. It defaults to 2.
  16090. </p>
  16091. </dd>
  16092. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  16093. <dd><p>The desired output channel layout. It defaults to stereo.
  16094. </p>
  16095. </dd>
  16096. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  16097. <dd><p>Map channels from inputs to output. The argument is a &rsquo;|&rsquo;-separated list of
  16098. mappings, each in the <code><var>input_idx</var>.<var>in_channel</var>-<var>out_channel</var></code>
  16099. form. <var>input_idx</var> is the 0-based index of the input stream. <var>in_channel</var>
  16100. can be either the name of the input channel (e.g. FL for front left) or its
  16101. index in the specified input stream. <var>out_channel</var> is the name of the output
  16102. channel.
  16103. </p></dd>
  16104. </dl>
  16105. <p>The filter will attempt to guess the mappings when they are not specified
  16106. explicitly. It does so by first trying to find an unused matching input channel
  16107. and if that fails it picks the first unused input channel.
  16108. </p>
  16109. <p>Join 3 inputs (with properly set channel layouts):
  16110. </p><div class="example">
  16111. <pre class="example">ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex join=inputs=3 OUTPUT
  16112. </pre></div>
  16113. <p>Build a 5.1 output from 6 single-channel streams:
  16114. </p><div class="example">
  16115. <pre class="example">ffmpeg -i fl -i fr -i fc -i sl -i sr -i lfe -filter_complex
  16116. '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'
  16117. out
  16118. </pre></div>
  16119. <a name="ladspa"></a>
  16120. <h2 class="section"><a href="ffprobe-all.html#toc-ladspa">29.73 ladspa</a></h2>
  16121. <p>Load a LADSPA (Linux Audio Developer&rsquo;s Simple Plugin API) plugin.
  16122. </p>
  16123. <p>To enable compilation of this filter you need to configure FFmpeg with
  16124. <code>--enable-ladspa</code>.
  16125. </p>
  16126. <dl compact="compact">
  16127. <dt>&lsquo;<samp>file, f</samp>&rsquo;</dt>
  16128. <dd><p>Specifies the name of LADSPA plugin library to load. If the environment
  16129. variable <code>LADSPA_PATH</code> is defined, the LADSPA plugin is searched in
  16130. each one of the directories specified by the colon separated list in
  16131. <code>LADSPA_PATH</code>, otherwise in the standard LADSPA paths, which are in
  16132. this order: &lsquo;<tt>HOME/.ladspa/lib/</tt>&rsquo;, &lsquo;<tt>/usr/local/lib/ladspa/</tt>&rsquo;,
  16133. &lsquo;<tt>/usr/lib/ladspa/</tt>&rsquo;.
  16134. </p>
  16135. </dd>
  16136. <dt>&lsquo;<samp>plugin, p</samp>&rsquo;</dt>
  16137. <dd><p>Specifies the plugin within the library. Some libraries contain only
  16138. one plugin, but others contain many of them. If this is not set filter
  16139. will list all available plugins within the specified library.
  16140. </p>
  16141. </dd>
  16142. <dt>&lsquo;<samp>controls, c</samp>&rsquo;</dt>
  16143. <dd><p>Set the &rsquo;|&rsquo; separated list of controls which are zero or more floating point
  16144. values that determine the behavior of the loaded plugin (for example delay,
  16145. threshold or gain).
  16146. Controls need to be defined using the following syntax:
  16147. c0=<var>value0</var>|c1=<var>value1</var>|c2=<var>value2</var>|..., where
  16148. <var>valuei</var> is the value set on the <var>i</var>-th control.
  16149. Alternatively they can be also defined using the following syntax:
  16150. <var>value0</var>|<var>value1</var>|<var>value2</var>|..., where
  16151. <var>valuei</var> is the value set on the <var>i</var>-th control.
  16152. If &lsquo;<samp>controls</samp>&rsquo; is set to <code>help</code>, all available controls and
  16153. their valid ranges are printed.
  16154. </p>
  16155. </dd>
  16156. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  16157. <dd><p>Specify the sample rate, default to 44100. Only used if plugin have
  16158. zero inputs.
  16159. </p>
  16160. </dd>
  16161. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  16162. <dd><p>Set the number of samples per channel per each output frame, default
  16163. is 1024. Only used if plugin have zero inputs.
  16164. </p>
  16165. </dd>
  16166. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  16167. <dd><p>Set the minimum duration of the sourced audio. See
  16168. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  16169. for the accepted syntax.
  16170. Note that the resulting duration may be greater than the specified duration,
  16171. as the generated audio is always cut at the end of a complete frame.
  16172. If not specified, or the expressed duration is negative, the audio is
  16173. supposed to be generated forever.
  16174. Only used if plugin have zero inputs.
  16175. </p>
  16176. </dd>
  16177. </dl>
  16178. <a name="Examples"></a>
  16179. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples">29.73.1 Examples</a></h3>
  16180. <ul>
  16181. <li>
  16182. List all available plugins within amp (LADSPA example plugin) library:
  16183. <div class="example">
  16184. <pre class="example">ladspa=file=amp
  16185. </pre></div>
  16186. </li><li>
  16187. List all available controls and their valid ranges for <code>vcf_notch</code>
  16188. plugin from <code>VCF</code> library:
  16189. <div class="example">
  16190. <pre class="example">ladspa=f=vcf:p=vcf_notch:c=help
  16191. </pre></div>
  16192. </li><li>
  16193. Simulate low quality audio equipment using <code>Computer Music Toolkit</code> (CMT)
  16194. plugin library:
  16195. <div class="example">
  16196. <pre class="example">ladspa=file=cmt:plugin=lofi:controls=c0=22|c1=12|c2=12
  16197. </pre></div>
  16198. </li><li>
  16199. Add reverberation to the audio using TAP-plugins
  16200. (Tom&rsquo;s Audio Processing plugins):
  16201. <div class="example">
  16202. <pre class="example">ladspa=file=tap_reverb:tap_reverb
  16203. </pre></div>
  16204. </li><li>
  16205. Generate white noise, with 0.2 amplitude:
  16206. <div class="example">
  16207. <pre class="example">ladspa=file=cmt:noise_source_white:c=c0=.2
  16208. </pre></div>
  16209. </li><li>
  16210. Generate 20 bpm clicks using plugin <code>C* Click - Metronome</code> from the
  16211. <code>C* Audio Plugin Suite</code> (CAPS) library:
  16212. <div class="example">
  16213. <pre class="example">ladspa=file=caps:Click:c=c1=20'
  16214. </pre></div>
  16215. </li><li>
  16216. Apply <code>C* Eq10X2 - Stereo 10-band equaliser</code> effect:
  16217. <div class="example">
  16218. <pre class="example">ladspa=caps:Eq10X2:c=c0=-48|c9=-24|c3=12|c4=2
  16219. </pre></div>
  16220. </li><li>
  16221. Increase volume by 20dB using fast lookahead limiter from Steve Harris
  16222. <code>SWH Plugins</code> collection:
  16223. <div class="example">
  16224. <pre class="example">ladspa=fast_lookahead_limiter_1913:fastLookaheadLimiter:20|0|2
  16225. </pre></div>
  16226. </li><li>
  16227. Attenuate low frequencies using Multiband EQ from Steve Harris
  16228. <code>SWH Plugins</code> collection:
  16229. <div class="example">
  16230. <pre class="example">ladspa=mbeq_1197:mbeq:-24|-24|-24|0|0|0|0|0|0|0|0|0|0|0|0
  16231. </pre></div>
  16232. </li><li>
  16233. Reduce stereo image using <code>Narrower</code> from the <code>C* Audio Plugin Suite</code>
  16234. (CAPS) library:
  16235. <div class="example">
  16236. <pre class="example">ladspa=caps:Narrower
  16237. </pre></div>
  16238. </li><li>
  16239. Another white noise, now using <code>C* Audio Plugin Suite</code> (CAPS) library:
  16240. <div class="example">
  16241. <pre class="example">ladspa=caps:White:.2
  16242. </pre></div>
  16243. </li><li>
  16244. Some fractal noise, using <code>C* Audio Plugin Suite</code> (CAPS) library:
  16245. <div class="example">
  16246. <pre class="example">ladspa=caps:Fractal:c=c1=1
  16247. </pre></div>
  16248. </li><li>
  16249. Dynamic volume normalization using <code>VLevel</code> plugin:
  16250. <div class="example">
  16251. <pre class="example">ladspa=vlevel-ladspa:vlevel_mono
  16252. </pre></div>
  16253. </li></ul>
  16254. <a name="Commands-23"></a>
  16255. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-23">29.73.2 Commands</a></h3>
  16256. <p>This filter supports the following commands:
  16257. </p><dl compact="compact">
  16258. <dt>&lsquo;<samp>cN</samp>&rsquo;</dt>
  16259. <dd><p>Modify the <var>N</var>-th control value.
  16260. </p>
  16261. <p>If the specified value is not valid, it is ignored and prior one is kept.
  16262. </p></dd>
  16263. </dl>
  16264. <a name="loudnorm"></a>
  16265. <h2 class="section"><a href="ffprobe-all.html#toc-loudnorm">29.74 loudnorm</a></h2>
  16266. <p>EBU R128 loudness normalization. Includes both dynamic and linear normalization modes.
  16267. Support for both single pass (livestreams, files) and double pass (files) modes.
  16268. This algorithm can target IL, LRA, and maximum true peak. In dynamic mode, to accurately
  16269. detect true peaks, the audio stream will be upsampled to 192 kHz.
  16270. Use the <code>-ar</code> option or <code>aresample</code> filter to explicitly set an output sample rate.
  16271. </p>
  16272. <p>The filter accepts the following options:
  16273. </p>
  16274. <dl compact="compact">
  16275. <dt>&lsquo;<samp>I, i</samp>&rsquo;</dt>
  16276. <dd><p>Set integrated loudness target.
  16277. Range is -70.0 - -5.0. Default value is -24.0.
  16278. </p>
  16279. </dd>
  16280. <dt>&lsquo;<samp>LRA, lra</samp>&rsquo;</dt>
  16281. <dd><p>Set loudness range target.
  16282. Range is 1.0 - 20.0. Default value is 7.0.
  16283. </p>
  16284. </dd>
  16285. <dt>&lsquo;<samp>TP, tp</samp>&rsquo;</dt>
  16286. <dd><p>Set maximum true peak.
  16287. Range is -9.0 - +0.0. Default value is -2.0.
  16288. </p>
  16289. </dd>
  16290. <dt>&lsquo;<samp>measured_I, measured_i</samp>&rsquo;</dt>
  16291. <dd><p>Measured IL of input file.
  16292. Range is -99.0 - +0.0.
  16293. </p>
  16294. </dd>
  16295. <dt>&lsquo;<samp>measured_LRA, measured_lra</samp>&rsquo;</dt>
  16296. <dd><p>Measured LRA of input file.
  16297. Range is 0.0 - 99.0.
  16298. </p>
  16299. </dd>
  16300. <dt>&lsquo;<samp>measured_TP, measured_tp</samp>&rsquo;</dt>
  16301. <dd><p>Measured true peak of input file.
  16302. Range is -99.0 - +99.0.
  16303. </p>
  16304. </dd>
  16305. <dt>&lsquo;<samp>measured_thresh</samp>&rsquo;</dt>
  16306. <dd><p>Measured threshold of input file.
  16307. Range is -99.0 - +0.0.
  16308. </p>
  16309. </dd>
  16310. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  16311. <dd><p>Set offset gain. Gain is applied before the true-peak limiter.
  16312. Range is -99.0 - +99.0. Default is +0.0.
  16313. </p>
  16314. </dd>
  16315. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  16316. <dd><p>Normalize by linearly scaling the source audio.
  16317. <code>measured_I</code>, <code>measured_LRA</code>, <code>measured_TP</code>,
  16318. and <code>measured_thresh</code> must all be specified. Target LRA shouldn&rsquo;t
  16319. be lower than source LRA and the change in integrated loudness shouldn&rsquo;t
  16320. result in a true peak which exceeds the target TP. If any of these
  16321. conditions aren&rsquo;t met, normalization mode will revert to <var>dynamic</var>.
  16322. Options are <code>true</code> or <code>false</code>. Default is <code>true</code>.
  16323. </p>
  16324. </dd>
  16325. <dt>&lsquo;<samp>dual_mono</samp>&rsquo;</dt>
  16326. <dd><p>Treat mono input files as &quot;dual-mono&quot;. If a mono file is intended for playback
  16327. on a stereo system, its EBU R128 measurement will be perceptually incorrect.
  16328. If set to <code>true</code>, this option will compensate for this effect.
  16329. Multi-channel input files are not affected by this option.
  16330. Options are true or false. Default is false.
  16331. </p>
  16332. </dd>
  16333. <dt>&lsquo;<samp>print_format</samp>&rsquo;</dt>
  16334. <dd><p>Set print format for stats. Options are summary, json, or none.
  16335. Default value is none.
  16336. </p></dd>
  16337. </dl>
  16338. <a name="lowpass"></a>
  16339. <h2 class="section"><a href="ffprobe-all.html#toc-lowpass">29.75 lowpass</a></h2>
  16340. <p>Apply a low-pass filter with 3dB point frequency.
  16341. The filter can be either single-pole or double-pole (the default).
  16342. The filter roll off at 6dB per pole per octave (20dB per pole per decade).
  16343. </p>
  16344. <p>The filter accepts the following options:
  16345. </p>
  16346. <dl compact="compact">
  16347. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16348. <dd><p>Set frequency in Hz. Default is 500.
  16349. </p>
  16350. </dd>
  16351. <dt>&lsquo;<samp>poles, p</samp>&rsquo;</dt>
  16352. <dd><p>Set number of poles. Default is 2.
  16353. </p>
  16354. </dd>
  16355. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16356. <dd><p>Set method to specify band-width of filter.
  16357. </p><dl compact="compact">
  16358. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  16359. <dd><p>Hz
  16360. </p></dd>
  16361. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  16362. <dd><p>Q-Factor
  16363. </p></dd>
  16364. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  16365. <dd><p>octave
  16366. </p></dd>
  16367. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  16368. <dd><p>slope
  16369. </p></dd>
  16370. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  16371. <dd><p>kHz
  16372. </p></dd>
  16373. </dl>
  16374. </dd>
  16375. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16376. <dd><p>Specify the band-width of a filter in width_type units.
  16377. Applies only to double-pole filter.
  16378. The default is 0.707q and gives a Butterworth response.
  16379. </p>
  16380. </dd>
  16381. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16382. <dd><p>How much to use filtered signal in output. Default is 1.
  16383. Range is between 0 and 1.
  16384. </p>
  16385. </dd>
  16386. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  16387. <dd><p>Specify which channels to filter, by default all available are filtered.
  16388. </p>
  16389. </dd>
  16390. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  16391. <dd><p>Normalize biquad coefficients, by default is disabled.
  16392. Enabling it will normalize magnitude response at DC to 0dB.
  16393. </p></dd>
  16394. </dl>
  16395. <a name="Examples-75"></a>
  16396. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-75">29.75.1 Examples</a></h3>
  16397. <ul>
  16398. <li>
  16399. Lowpass only LFE channel, it LFE is not present it does nothing:
  16400. <div class="example">
  16401. <pre class="example">lowpass=c=LFE
  16402. </pre></div>
  16403. </li></ul>
  16404. <a name="Commands-8"></a>
  16405. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-8">29.75.2 Commands</a></h3>
  16406. <p>This filter supports the following commands:
  16407. </p><dl compact="compact">
  16408. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  16409. <dd><p>Change lowpass frequency.
  16410. Syntax for the command is : &quot;<var>frequency</var>&quot;
  16411. </p>
  16412. </dd>
  16413. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  16414. <dd><p>Change lowpass width_type.
  16415. Syntax for the command is : &quot;<var>width_type</var>&quot;
  16416. </p>
  16417. </dd>
  16418. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  16419. <dd><p>Change lowpass width.
  16420. Syntax for the command is : &quot;<var>width</var>&quot;
  16421. </p>
  16422. </dd>
  16423. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  16424. <dd><p>Change lowpass mix.
  16425. Syntax for the command is : &quot;<var>mix</var>&quot;
  16426. </p></dd>
  16427. </dl>
  16428. <a name="lv2"></a>
  16429. <h2 class="section"><a href="ffprobe-all.html#toc-lv2">29.76 lv2</a></h2>
  16430. <p>Load a LV2 (LADSPA Version 2) plugin.
  16431. </p>
  16432. <p>To enable compilation of this filter you need to configure FFmpeg with
  16433. <code>--enable-lv2</code>.
  16434. </p>
  16435. <dl compact="compact">
  16436. <dt>&lsquo;<samp>plugin, p</samp>&rsquo;</dt>
  16437. <dd><p>Specifies the plugin URI. You may need to escape &rsquo;:&rsquo;.
  16438. </p>
  16439. </dd>
  16440. <dt>&lsquo;<samp>controls, c</samp>&rsquo;</dt>
  16441. <dd><p>Set the &rsquo;|&rsquo; separated list of controls which are zero or more floating point
  16442. values that determine the behavior of the loaded plugin (for example delay,
  16443. threshold or gain).
  16444. If &lsquo;<samp>controls</samp>&rsquo; is set to <code>help</code>, all available controls and
  16445. their valid ranges are printed.
  16446. </p>
  16447. </dd>
  16448. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  16449. <dd><p>Specify the sample rate, default to 44100. Only used if plugin have
  16450. zero inputs.
  16451. </p>
  16452. </dd>
  16453. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  16454. <dd><p>Set the number of samples per channel per each output frame, default
  16455. is 1024. Only used if plugin have zero inputs.
  16456. </p>
  16457. </dd>
  16458. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  16459. <dd><p>Set the minimum duration of the sourced audio. See
  16460. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  16461. for the accepted syntax.
  16462. Note that the resulting duration may be greater than the specified duration,
  16463. as the generated audio is always cut at the end of a complete frame.
  16464. If not specified, or the expressed duration is negative, the audio is
  16465. supposed to be generated forever.
  16466. Only used if plugin have zero inputs.
  16467. </p></dd>
  16468. </dl>
  16469. <a name="Examples-152"></a>
  16470. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-152">29.76.1 Examples</a></h3>
  16471. <ul>
  16472. <li>
  16473. Apply bass enhancer plugin from Calf:
  16474. <div class="example">
  16475. <pre class="example">lv2=p=http\\\\://calf.sourceforge.net/plugins/BassEnhancer:c=amount=2
  16476. </pre></div>
  16477. </li><li>
  16478. Apply vinyl plugin from Calf:
  16479. <div class="example">
  16480. <pre class="example">lv2=p=http\\\\://calf.sourceforge.net/plugins/Vinyl:c=drone=0.2|aging=0.5
  16481. </pre></div>
  16482. </li><li>
  16483. Apply bit crusher plugin from ArtyFX:
  16484. <div class="example">
  16485. <pre class="example">lv2=p=http\\\\://www.openavproductions.com/artyfx#bitta:c=crush=0.3
  16486. </pre></div>
  16487. </li></ul>
  16488. <a name="mcompand"></a>
  16489. <h2 class="section"><a href="ffprobe-all.html#toc-mcompand">29.77 mcompand</a></h2>
  16490. <p>Multiband Compress or expand the audio&rsquo;s dynamic range.
  16491. </p>
  16492. <p>The input audio is divided into bands using 4th order Linkwitz-Riley IIRs.
  16493. This is akin to the crossover of a loudspeaker, and results in flat frequency
  16494. response when absent compander action.
  16495. </p>
  16496. <p>It accepts the following parameters:
  16497. </p>
  16498. <dl compact="compact">
  16499. <dt>&lsquo;<samp>args</samp>&rsquo;</dt>
  16500. <dd><p>This option syntax is:
  16501. attack,decay,[attack,decay..] soft-knee points crossover_frequency [delay [initial_volume [gain]]] | attack,decay ...
  16502. For explanation of each item refer to compand filter documentation.
  16503. </p></dd>
  16504. </dl>
  16505. <p><a name="pan"></a>
  16506. </p><a name="pan-1"></a>
  16507. <h2 class="section"><a href="ffprobe-all.html#toc-pan-1">29.78 pan</a></h2>
  16508. <p>Mix channels with specific gain levels. The filter accepts the output
  16509. channel layout followed by a set of channels definitions.
  16510. </p>
  16511. <p>This filter is also designed to efficiently remap the channels of an audio
  16512. stream.
  16513. </p>
  16514. <p>The filter accepts parameters of the form:
  16515. &quot;<var>l</var>|<var>outdef</var>|<var>outdef</var>|...&quot;
  16516. </p>
  16517. <dl compact="compact">
  16518. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  16519. <dd><p>output channel layout or number of channels
  16520. </p>
  16521. </dd>
  16522. <dt>&lsquo;<samp>outdef</samp>&rsquo;</dt>
  16523. <dd><p>output channel specification, of the form:
  16524. &quot;<var>out_name</var>=[<var>gain</var>*]<var>in_name</var>[(+-)[<var>gain</var>*]<var>in_name</var>...]&quot;
  16525. </p>
  16526. </dd>
  16527. <dt>&lsquo;<samp>out_name</samp>&rsquo;</dt>
  16528. <dd><p>output channel to define, either a channel name (FL, FR, etc.) or a channel
  16529. number (c0, c1, etc.)
  16530. </p>
  16531. </dd>
  16532. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  16533. <dd><p>multiplicative coefficient for the channel, 1 leaving the volume unchanged
  16534. </p>
  16535. </dd>
  16536. <dt>&lsquo;<samp>in_name</samp>&rsquo;</dt>
  16537. <dd><p>input channel to use, see out_name for details; it is not possible to mix
  16538. named and numbered input channels
  16539. </p></dd>
  16540. </dl>
  16541. <p>If the &lsquo;=&rsquo; in a channel specification is replaced by &lsquo;&lt;&rsquo;, then the gains for
  16542. that specification will be renormalized so that the total is 1, thus
  16543. avoiding clipping noise.
  16544. </p>
  16545. <a name="Mixing-examples"></a>
  16546. <h3 class="subsection"><a href="ffprobe-all.html#toc-Mixing-examples">29.78.1 Mixing examples</a></h3>
  16547. <p>For example, if you want to down-mix from stereo to mono, but with a bigger
  16548. factor for the left channel:
  16549. </p><div class="example">
  16550. <pre class="example">pan=1c|c0=0.9*c0+0.1*c1
  16551. </pre></div>
  16552. <p>A customized down-mix to stereo that works automatically for 3-, 4-, 5- and
  16553. 7-channels surround:
  16554. </p><div class="example">
  16555. <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
  16556. </pre></div>
  16557. <p>Note that <code>ffmpeg</code> integrates a default down-mix (and up-mix) system
  16558. that should be preferred (see &quot;-ac&quot; option) unless you have very specific
  16559. needs.
  16560. </p>
  16561. <a name="Remapping-examples"></a>
  16562. <h3 class="subsection"><a href="ffprobe-all.html#toc-Remapping-examples">29.78.2 Remapping examples</a></h3>
  16563. <p>The channel remapping will be effective if, and only if:
  16564. </p>
  16565. <ul>
  16566. <li> gain coefficients are zeroes or ones,
  16567. </li><li> only one input per channel output,
  16568. </li></ul>
  16569. <p>If all these conditions are satisfied, the filter will notify the user (&quot;Pure
  16570. channel mapping detected&quot;), and use an optimized and lossless method to do the
  16571. remapping.
  16572. </p>
  16573. <p>For example, if you have a 5.1 source and want a stereo audio stream by
  16574. dropping the extra channels:
  16575. </p><div class="example">
  16576. <pre class="example">pan=&quot;stereo| c0=FL | c1=FR&quot;
  16577. </pre></div>
  16578. <p>Given the same source, you can also switch front left and front right channels
  16579. and keep the input channel layout:
  16580. </p><div class="example">
  16581. <pre class="example">pan=&quot;5.1| c0=c1 | c1=c0 | c2=c2 | c3=c3 | c4=c4 | c5=c5&quot;
  16582. </pre></div>
  16583. <p>If the input is a stereo audio stream, you can mute the front left channel (and
  16584. still keep the stereo channel layout) with:
  16585. </p><div class="example">
  16586. <pre class="example">pan=&quot;stereo|c1=c1&quot;
  16587. </pre></div>
  16588. <p>Still with a stereo audio stream input, you can copy the right channel in both
  16589. front left and right:
  16590. </p><div class="example">
  16591. <pre class="example">pan=&quot;stereo| c0=FR | c1=FR&quot;
  16592. </pre></div>
  16593. <a name="replaygain"></a>
  16594. <h2 class="section"><a href="ffprobe-all.html#toc-replaygain">29.79 replaygain</a></h2>
  16595. <p>ReplayGain scanner filter. This filter takes an audio stream as an input and
  16596. outputs it unchanged.
  16597. At end of filtering it displays <code>track_gain</code> and <code>track_peak</code>.
  16598. </p>
  16599. <a name="resample"></a>
  16600. <h2 class="section"><a href="ffprobe-all.html#toc-resample">29.80 resample</a></h2>
  16601. <p>Convert the audio sample format, sample rate and channel layout. It is
  16602. not meant to be used directly.
  16603. </p>
  16604. <a name="rubberband"></a>
  16605. <h2 class="section"><a href="ffprobe-all.html#toc-rubberband">29.81 rubberband</a></h2>
  16606. <p>Apply time-stretching and pitch-shifting with librubberband.
  16607. </p>
  16608. <p>To enable compilation of this filter, you need to configure FFmpeg with
  16609. <code>--enable-librubberband</code>.
  16610. </p>
  16611. <p>The filter accepts the following options:
  16612. </p>
  16613. <dl compact="compact">
  16614. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  16615. <dd><p>Set tempo scale factor.
  16616. </p>
  16617. </dd>
  16618. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  16619. <dd><p>Set pitch scale factor.
  16620. </p>
  16621. </dd>
  16622. <dt>&lsquo;<samp>transients</samp>&rsquo;</dt>
  16623. <dd><p>Set transients detector.
  16624. Possible values are:
  16625. </p><dl compact="compact">
  16626. <dt><var>crisp</var></dt>
  16627. <dt><var>mixed</var></dt>
  16628. <dt><var>smooth</var></dt>
  16629. </dl>
  16630. </dd>
  16631. <dt>&lsquo;<samp>detector</samp>&rsquo;</dt>
  16632. <dd><p>Set detector.
  16633. Possible values are:
  16634. </p><dl compact="compact">
  16635. <dt><var>compound</var></dt>
  16636. <dt><var>percussive</var></dt>
  16637. <dt><var>soft</var></dt>
  16638. </dl>
  16639. </dd>
  16640. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  16641. <dd><p>Set phase.
  16642. Possible values are:
  16643. </p><dl compact="compact">
  16644. <dt><var>laminar</var></dt>
  16645. <dt><var>independent</var></dt>
  16646. </dl>
  16647. </dd>
  16648. <dt>&lsquo;<samp>window</samp>&rsquo;</dt>
  16649. <dd><p>Set processing window size.
  16650. Possible values are:
  16651. </p><dl compact="compact">
  16652. <dt><var>standard</var></dt>
  16653. <dt><var>short</var></dt>
  16654. <dt><var>long</var></dt>
  16655. </dl>
  16656. </dd>
  16657. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  16658. <dd><p>Set smoothing.
  16659. Possible values are:
  16660. </p><dl compact="compact">
  16661. <dt><var>off</var></dt>
  16662. <dt><var>on</var></dt>
  16663. </dl>
  16664. </dd>
  16665. <dt>&lsquo;<samp>formant</samp>&rsquo;</dt>
  16666. <dd><p>Enable formant preservation when shift pitching.
  16667. Possible values are:
  16668. </p><dl compact="compact">
  16669. <dt><var>shifted</var></dt>
  16670. <dt><var>preserved</var></dt>
  16671. </dl>
  16672. </dd>
  16673. <dt>&lsquo;<samp>pitchq</samp>&rsquo;</dt>
  16674. <dd><p>Set pitch quality.
  16675. Possible values are:
  16676. </p><dl compact="compact">
  16677. <dt><var>quality</var></dt>
  16678. <dt><var>speed</var></dt>
  16679. <dt><var>consistency</var></dt>
  16680. </dl>
  16681. </dd>
  16682. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  16683. <dd><p>Set channels.
  16684. Possible values are:
  16685. </p><dl compact="compact">
  16686. <dt><var>apart</var></dt>
  16687. <dt><var>together</var></dt>
  16688. </dl>
  16689. </dd>
  16690. </dl>
  16691. <a name="Commands-6"></a>
  16692. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-6">29.81.1 Commands</a></h3>
  16693. <p>This filter supports the following commands:
  16694. </p><dl compact="compact">
  16695. <dt>&lsquo;<samp>tempo</samp>&rsquo;</dt>
  16696. <dd><p>Change filter tempo scale factor.
  16697. Syntax for the command is : &quot;<var>tempo</var>&quot;
  16698. </p>
  16699. </dd>
  16700. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  16701. <dd><p>Change filter pitch scale factor.
  16702. Syntax for the command is : &quot;<var>pitch</var>&quot;
  16703. </p></dd>
  16704. </dl>
  16705. <a name="sidechaincompress"></a>
  16706. <h2 class="section"><a href="ffprobe-all.html#toc-sidechaincompress">29.82 sidechaincompress</a></h2>
  16707. <p>This filter acts like normal compressor but has the ability to compress
  16708. detected signal using second input signal.
  16709. It needs two input streams and returns one output stream.
  16710. First input stream will be processed depending on second stream signal.
  16711. The filtered signal then can be filtered with other filters in later stages of
  16712. processing. See <a href="#pan">pan</a> and <a href="#amerge">amerge</a> filter.
  16713. </p>
  16714. <p>The filter accepts the following options:
  16715. </p>
  16716. <dl compact="compact">
  16717. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  16718. <dd><p>Set input gain. Default is 1. Range is between 0.015625 and 64.
  16719. </p>
  16720. </dd>
  16721. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  16722. <dd><p>Set mode of compressor operation. Can be <code>upward</code> or <code>downward</code>.
  16723. Default is <code>downward</code>.
  16724. </p>
  16725. </dd>
  16726. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  16727. <dd><p>If a signal of second stream raises above this level it will affect the gain
  16728. reduction of first stream.
  16729. By default is 0.125. Range is between 0.00097563 and 1.
  16730. </p>
  16731. </dd>
  16732. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  16733. <dd><p>Set a ratio about which the signal is reduced. 1:2 means that if the level
  16734. raised 4dB above the threshold, it will be only 2dB above after the reduction.
  16735. Default is 2. Range is between 1 and 20.
  16736. </p>
  16737. </dd>
  16738. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  16739. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  16740. reduction starts. Default is 20. Range is between 0.01 and 2000.
  16741. </p>
  16742. </dd>
  16743. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  16744. <dd><p>Amount of milliseconds the signal has to fall below the threshold before
  16745. reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
  16746. </p>
  16747. </dd>
  16748. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  16749. <dd><p>Set the amount by how much signal will be amplified after processing.
  16750. Default is 1. Range is from 1 to 64.
  16751. </p>
  16752. </dd>
  16753. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  16754. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  16755. Default is 2.82843. Range is between 1 and 8.
  16756. </p>
  16757. </dd>
  16758. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  16759. <dd><p>Choose if the <code>average</code> level between all channels of side-chain stream
  16760. or the louder(<code>maximum</code>) channel of side-chain stream affects the
  16761. reduction. Default is <code>average</code>.
  16762. </p>
  16763. </dd>
  16764. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  16765. <dd><p>Should the exact signal be taken in case of <code>peak</code> or an RMS one in case
  16766. of <code>rms</code>. Default is <code>rms</code> which is mainly smoother.
  16767. </p>
  16768. </dd>
  16769. <dt>&lsquo;<samp>level_sc</samp>&rsquo;</dt>
  16770. <dd><p>Set sidechain gain. Default is 1. Range is between 0.015625 and 64.
  16771. </p>
  16772. </dd>
  16773. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  16774. <dd><p>How much to use compressed signal in output. Default is 1.
  16775. Range is between 0 and 1.
  16776. </p></dd>
  16777. </dl>
  16778. <a name="Commands-34"></a>
  16779. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-34">29.82.1 Commands</a></h3>
  16780. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  16781. </p>
  16782. <a name="Examples-143"></a>
  16783. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-143">29.82.2 Examples</a></h3>
  16784. <ul>
  16785. <li>
  16786. Full ffmpeg example taking 2 audio inputs, 1st input to be compressed
  16787. depending on the signal of 2nd input and later compressed signal to be
  16788. merged with 2nd input:
  16789. <div class="example">
  16790. <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;
  16791. </pre></div>
  16792. </li></ul>
  16793. <a name="sidechaingate"></a>
  16794. <h2 class="section"><a href="ffprobe-all.html#toc-sidechaingate">29.83 sidechaingate</a></h2>
  16795. <p>A sidechain gate acts like a normal (wideband) gate but has the ability to
  16796. filter the detected signal before sending it to the gain reduction stage.
  16797. Normally a gate uses the full range signal to detect a level above the
  16798. threshold.
  16799. For example: If you cut all lower frequencies from your sidechain signal
  16800. the gate will decrease the volume of your track only if not enough highs
  16801. appear. With this technique you are able to reduce the resonation of a
  16802. natural drum or remove &quot;rumbling&quot; of muted strokes from a heavily distorted
  16803. guitar.
  16804. It needs two input streams and returns one output stream.
  16805. First input stream will be processed depending on second stream signal.
  16806. </p>
  16807. <p>The filter accepts the following options:
  16808. </p>
  16809. <dl compact="compact">
  16810. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  16811. <dd><p>Set input level before filtering.
  16812. Default is 1. Allowed range is from 0.015625 to 64.
  16813. </p>
  16814. </dd>
  16815. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  16816. <dd><p>Set the mode of operation. Can be <code>upward</code> or <code>downward</code>.
  16817. Default is <code>downward</code>. If set to <code>upward</code> mode, higher parts of signal
  16818. will be amplified, expanding dynamic range in upward direction.
  16819. Otherwise, in case of <code>downward</code> lower parts of signal will be reduced.
  16820. </p>
  16821. </dd>
  16822. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  16823. <dd><p>Set the level of gain reduction when the signal is below the threshold.
  16824. Default is 0.06125. Allowed range is from 0 to 1.
  16825. Setting this to 0 disables reduction and then filter behaves like expander.
  16826. </p>
  16827. </dd>
  16828. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  16829. <dd><p>If a signal rises above this level the gain reduction is released.
  16830. Default is 0.125. Allowed range is from 0 to 1.
  16831. </p>
  16832. </dd>
  16833. <dt>&lsquo;<samp>ratio</samp>&rsquo;</dt>
  16834. <dd><p>Set a ratio about which the signal is reduced.
  16835. Default is 2. Allowed range is from 1 to 9000.
  16836. </p>
  16837. </dd>
  16838. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  16839. <dd><p>Amount of milliseconds the signal has to rise above the threshold before gain
  16840. reduction stops.
  16841. Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
  16842. </p>
  16843. </dd>
  16844. <dt>&lsquo;<samp>release</samp>&rsquo;</dt>
  16845. <dd><p>Amount of milliseconds the signal has to fall below the threshold before the
  16846. reduction is increased again. Default is 250 milliseconds.
  16847. Allowed range is from 0.01 to 9000.
  16848. </p>
  16849. </dd>
  16850. <dt>&lsquo;<samp>makeup</samp>&rsquo;</dt>
  16851. <dd><p>Set amount of amplification of signal after processing.
  16852. Default is 1. Allowed range is from 1 to 64.
  16853. </p>
  16854. </dd>
  16855. <dt>&lsquo;<samp>knee</samp>&rsquo;</dt>
  16856. <dd><p>Curve the sharp knee around the threshold to enter gain reduction more softly.
  16857. Default is 2.828427125. Allowed range is from 1 to 8.
  16858. </p>
  16859. </dd>
  16860. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  16861. <dd><p>Choose if exact signal should be taken for detection or an RMS like one.
  16862. Default is rms. Can be peak or rms.
  16863. </p>
  16864. </dd>
  16865. <dt>&lsquo;<samp>link</samp>&rsquo;</dt>
  16866. <dd><p>Choose if the average level between all channels or the louder channel affects
  16867. the reduction.
  16868. Default is average. Can be average or maximum.
  16869. </p>
  16870. </dd>
  16871. <dt>&lsquo;<samp>level_sc</samp>&rsquo;</dt>
  16872. <dd><p>Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
  16873. </p></dd>
  16874. </dl>
  16875. <a name="silencedetect"></a>
  16876. <h2 class="section"><a href="ffprobe-all.html#toc-silencedetect">29.84 silencedetect</a></h2>
  16877. <p>Detect silence in an audio stream.
  16878. </p>
  16879. <p>This filter logs a message when it detects that the input audio volume is less
  16880. or equal to a noise tolerance value for a duration greater or equal to the
  16881. minimum detected noise duration.
  16882. </p>
  16883. <p>The printed times and duration are expressed in seconds. The
  16884. <code>lavfi.silence_start</code> or <code>lavfi.silence_start.X</code> metadata key
  16885. is set on the first frame whose timestamp equals or exceeds the detection
  16886. duration and it contains the timestamp of the first frame of the silence.
  16887. </p>
  16888. <p>The <code>lavfi.silence_duration</code> or <code>lavfi.silence_duration.X</code>
  16889. and <code>lavfi.silence_end</code> or <code>lavfi.silence_end.X</code> metadata
  16890. keys are set on the first frame after the silence. If &lsquo;<samp>mono</samp>&rsquo; is
  16891. enabled, and each channel is evaluated separately, the <code>.X</code>
  16892. suffixed keys are used, and <code>X</code> corresponds to the channel number.
  16893. </p>
  16894. <p>The filter accepts the following options:
  16895. </p>
  16896. <dl compact="compact">
  16897. <dt>&lsquo;<samp>noise, n</samp>&rsquo;</dt>
  16898. <dd><p>Set noise tolerance. Can be specified in dB (in case &quot;dB&quot; is appended to the
  16899. specified value) or amplitude ratio. Default is -60dB, or 0.001.
  16900. </p>
  16901. </dd>
  16902. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  16903. <dd><p>Set silence duration until notification (default is 2 seconds). See
  16904. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  16905. for the accepted syntax.
  16906. </p>
  16907. </dd>
  16908. <dt>&lsquo;<samp>mono, m</samp>&rsquo;</dt>
  16909. <dd><p>Process each channel separately, instead of combined. By default is disabled.
  16910. </p></dd>
  16911. </dl>
  16912. <a name="Examples-95"></a>
  16913. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-95">29.84.1 Examples</a></h3>
  16914. <ul>
  16915. <li>
  16916. Detect 5 seconds of silence with -50dB noise tolerance:
  16917. <div class="example">
  16918. <pre class="example">silencedetect=n=-50dB:d=5
  16919. </pre></div>
  16920. </li><li>
  16921. Complete example with <code>ffmpeg</code> to detect silence with 0.0001 noise
  16922. tolerance in &lsquo;<tt>silence.mp3</tt>&rsquo;:
  16923. <div class="example">
  16924. <pre class="example">ffmpeg -i silence.mp3 -af silencedetect=noise=0.0001 -f null -
  16925. </pre></div>
  16926. </li></ul>
  16927. <a name="silenceremove"></a>
  16928. <h2 class="section"><a href="ffprobe-all.html#toc-silenceremove">29.85 silenceremove</a></h2>
  16929. <p>Remove silence from the beginning, middle or end of the audio.
  16930. </p>
  16931. <p>The filter accepts the following options:
  16932. </p>
  16933. <dl compact="compact">
  16934. <dt>&lsquo;<samp>start_periods</samp>&rsquo;</dt>
  16935. <dd><p>This value is used to indicate if audio should be trimmed at beginning of
  16936. the audio. A value of zero indicates no silence should be trimmed from the
  16937. beginning. When specifying a non-zero value, it trims audio up until it
  16938. finds non-silence. Normally, when trimming silence from beginning of audio
  16939. the <var>start_periods</var> will be <code>1</code> but it can be increased to higher
  16940. values to trim all audio up to specific count of non-silence periods.
  16941. Default value is <code>0</code>.
  16942. </p>
  16943. </dd>
  16944. <dt>&lsquo;<samp>start_duration</samp>&rsquo;</dt>
  16945. <dd><p>Specify the amount of time that non-silence must be detected before it stops
  16946. trimming audio. By increasing the duration, bursts of noises can be treated
  16947. as silence and trimmed off. Default value is <code>0</code>.
  16948. </p>
  16949. </dd>
  16950. <dt>&lsquo;<samp>start_threshold</samp>&rsquo;</dt>
  16951. <dd><p>This indicates what sample value should be treated as silence. For digital
  16952. audio, a value of <code>0</code> may be fine but for audio recorded from analog,
  16953. you may wish to increase the value to account for background noise.
  16954. Can be specified in dB (in case &quot;dB&quot; is appended to the specified value)
  16955. or amplitude ratio. Default value is <code>0</code>.
  16956. </p>
  16957. </dd>
  16958. <dt>&lsquo;<samp>start_silence</samp>&rsquo;</dt>
  16959. <dd><p>Specify max duration of silence at beginning that will be kept after
  16960. trimming. Default is 0, which is equal to trimming all samples detected
  16961. as silence.
  16962. </p>
  16963. </dd>
  16964. <dt>&lsquo;<samp>start_mode</samp>&rsquo;</dt>
  16965. <dd><p>Specify mode of detection of silence end in start of multi-channel audio.
  16966. Can be <var>any</var> or <var>all</var>. Default is <var>any</var>.
  16967. With <var>any</var>, any sample that is detected as non-silence will cause
  16968. stopped trimming of silence.
  16969. With <var>all</var>, only if all channels are detected as non-silence will cause
  16970. stopped trimming of silence.
  16971. </p>
  16972. </dd>
  16973. <dt>&lsquo;<samp>stop_periods</samp>&rsquo;</dt>
  16974. <dd><p>Set the count for trimming silence from the end of audio.
  16975. To remove silence from the middle of a file, specify a <var>stop_periods</var>
  16976. that is negative. This value is then treated as a positive value and is
  16977. used to indicate the effect should restart processing as specified by
  16978. <var>start_periods</var>, making it suitable for removing periods of silence
  16979. in the middle of the audio.
  16980. Default value is <code>0</code>.
  16981. </p>
  16982. </dd>
  16983. <dt>&lsquo;<samp>stop_duration</samp>&rsquo;</dt>
  16984. <dd><p>Specify a duration of silence that must exist before audio is not copied any
  16985. more. By specifying a higher duration, silence that is wanted can be left in
  16986. the audio.
  16987. Default value is <code>0</code>.
  16988. </p>
  16989. </dd>
  16990. <dt>&lsquo;<samp>stop_threshold</samp>&rsquo;</dt>
  16991. <dd><p>This is the same as &lsquo;<samp>start_threshold</samp>&rsquo; but for trimming silence from
  16992. the end of audio.
  16993. Can be specified in dB (in case &quot;dB&quot; is appended to the specified value)
  16994. or amplitude ratio. Default value is <code>0</code>.
  16995. </p>
  16996. </dd>
  16997. <dt>&lsquo;<samp>stop_silence</samp>&rsquo;</dt>
  16998. <dd><p>Specify max duration of silence at end that will be kept after
  16999. trimming. Default is 0, which is equal to trimming all samples detected
  17000. as silence.
  17001. </p>
  17002. </dd>
  17003. <dt>&lsquo;<samp>stop_mode</samp>&rsquo;</dt>
  17004. <dd><p>Specify mode of detection of silence start in end of multi-channel audio.
  17005. Can be <var>any</var> or <var>all</var>. Default is <var>any</var>.
  17006. With <var>any</var>, any sample that is detected as non-silence will cause
  17007. stopped trimming of silence.
  17008. With <var>all</var>, only if all channels are detected as non-silence will cause
  17009. stopped trimming of silence.
  17010. </p>
  17011. </dd>
  17012. <dt>&lsquo;<samp>detection</samp>&rsquo;</dt>
  17013. <dd><p>Set how is silence detected. Can be <code>rms</code> or <code>peak</code>. Second is faster
  17014. and works better with digital silence which is exactly 0.
  17015. Default value is <code>rms</code>.
  17016. </p>
  17017. </dd>
  17018. <dt>&lsquo;<samp>window</samp>&rsquo;</dt>
  17019. <dd><p>Set duration in number of seconds used to calculate size of window in number
  17020. of samples for detecting silence.
  17021. Default value is <code>0.02</code>. Allowed range is from <code>0</code> to <code>10</code>.
  17022. </p></dd>
  17023. </dl>
  17024. <a name="Examples-45"></a>
  17025. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-45">29.85.1 Examples</a></h3>
  17026. <ul>
  17027. <li>
  17028. The following example shows how this filter can be used to start a recording
  17029. that does not contain the delay at the start which usually occurs between
  17030. pressing the record button and the start of the performance:
  17031. <div class="example">
  17032. <pre class="example">silenceremove=start_periods=1:start_duration=5:start_threshold=0.02
  17033. </pre></div>
  17034. </li><li>
  17035. Trim all silence encountered from beginning to end where there is more than 1
  17036. second of silence in audio:
  17037. <div class="example">
  17038. <pre class="example">silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB
  17039. </pre></div>
  17040. </li><li>
  17041. Trim all digital silence samples, using peak detection, from beginning to end
  17042. where there is more than 0 samples of digital silence in audio and digital
  17043. silence is detected in all channels at same positions in stream:
  17044. <div class="example">
  17045. <pre class="example">silenceremove=window=0:detection=peak:stop_mode=all:start_mode=all:stop_periods=-1:stop_threshold=0
  17046. </pre></div>
  17047. </li></ul>
  17048. <a name="sofalizer"></a>
  17049. <h2 class="section"><a href="ffprobe-all.html#toc-sofalizer">29.86 sofalizer</a></h2>
  17050. <p>SOFAlizer uses head-related transfer functions (HRTFs) to create virtual
  17051. loudspeakers around the user for binaural listening via headphones (audio
  17052. formats up to 9 channels supported).
  17053. The HRTFs are stored in SOFA files (see <a href="http://www.sofacoustics.org/">http://www.sofacoustics.org/</a> for a database).
  17054. SOFAlizer is developed at the Acoustics Research Institute (ARI) of the
  17055. Austrian Academy of Sciences.
  17056. </p>
  17057. <p>To enable compilation of this filter you need to configure FFmpeg with
  17058. <code>--enable-libmysofa</code>.
  17059. </p>
  17060. <p>The filter accepts the following options:
  17061. </p>
  17062. <dl compact="compact">
  17063. <dt>&lsquo;<samp>sofa</samp>&rsquo;</dt>
  17064. <dd><p>Set the SOFA file used for rendering.
  17065. </p>
  17066. </dd>
  17067. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  17068. <dd><p>Set gain applied to audio. Value is in dB. Default is 0.
  17069. </p>
  17070. </dd>
  17071. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  17072. <dd><p>Set rotation of virtual loudspeakers in deg. Default is 0.
  17073. </p>
  17074. </dd>
  17075. <dt>&lsquo;<samp>elevation</samp>&rsquo;</dt>
  17076. <dd><p>Set elevation of virtual speakers in deg. Default is 0.
  17077. </p>
  17078. </dd>
  17079. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  17080. <dd><p>Set distance in meters between loudspeakers and the listener with near-field
  17081. HRTFs. Default is 1.
  17082. </p>
  17083. </dd>
  17084. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  17085. <dd><p>Set processing type. Can be <var>time</var> or <var>freq</var>. <var>time</var> is
  17086. processing audio in time domain which is slow.
  17087. <var>freq</var> is processing audio in frequency domain which is fast.
  17088. Default is <var>freq</var>.
  17089. </p>
  17090. </dd>
  17091. <dt>&lsquo;<samp>speakers</samp>&rsquo;</dt>
  17092. <dd><p>Set custom positions of virtual loudspeakers. Syntax for this option is:
  17093. &lt;CH&gt; &lt;AZIM&gt; &lt;ELEV&gt;[|&lt;CH&gt; &lt;AZIM&gt; &lt;ELEV&gt;|...].
  17094. Each virtual loudspeaker is described with short channel name following with
  17095. azimuth and elevation in degrees.
  17096. Each virtual loudspeaker description is separated by &rsquo;|&rsquo;.
  17097. For example to override front left and front right channel positions use:
  17098. &rsquo;speakers=FL 45 15|FR 345 15&rsquo;.
  17099. Descriptions with unrecognised channel names are ignored.
  17100. </p>
  17101. </dd>
  17102. <dt>&lsquo;<samp>lfegain</samp>&rsquo;</dt>
  17103. <dd><p>Set custom gain for LFE channels. Value is in dB. Default is 0.
  17104. </p>
  17105. </dd>
  17106. <dt>&lsquo;<samp>framesize</samp>&rsquo;</dt>
  17107. <dd><p>Set custom frame size in number of samples. Default is 1024.
  17108. Allowed range is from 1024 to 96000. Only used if option &lsquo;<samp>type</samp>&rsquo;
  17109. is set to <var>freq</var>.
  17110. </p>
  17111. </dd>
  17112. <dt>&lsquo;<samp>normalize</samp>&rsquo;</dt>
  17113. <dd><p>Should all IRs be normalized upon importing SOFA file.
  17114. By default is enabled.
  17115. </p>
  17116. </dd>
  17117. <dt>&lsquo;<samp>interpolate</samp>&rsquo;</dt>
  17118. <dd><p>Should nearest IRs be interpolated with neighbor IRs if exact position
  17119. does not match. By default is disabled.
  17120. </p>
  17121. </dd>
  17122. <dt>&lsquo;<samp>minphase</samp>&rsquo;</dt>
  17123. <dd><p>Minphase all IRs upon loading of SOFA file. By default is disabled.
  17124. </p>
  17125. </dd>
  17126. <dt>&lsquo;<samp>anglestep</samp>&rsquo;</dt>
  17127. <dd><p>Set neighbor search angle step. Only used if option <var>interpolate</var> is enabled.
  17128. </p>
  17129. </dd>
  17130. <dt>&lsquo;<samp>radstep</samp>&rsquo;</dt>
  17131. <dd><p>Set neighbor search radius step. Only used if option <var>interpolate</var> is enabled.
  17132. </p></dd>
  17133. </dl>
  17134. <a name="Examples-57"></a>
  17135. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-57">29.86.1 Examples</a></h3>
  17136. <ul>
  17137. <li>
  17138. Using ClubFritz6 sofa file:
  17139. <div class="example">
  17140. <pre class="example">sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=1
  17141. </pre></div>
  17142. </li><li>
  17143. Using ClubFritz12 sofa file and bigger radius with small rotation:
  17144. <div class="example">
  17145. <pre class="example">sofalizer=sofa=/path/to/ClubFritz12.sofa:type=freq:radius=2:rotation=5
  17146. </pre></div>
  17147. </li><li>
  17148. Similar as above but with custom speaker positions for front left, front right, back left and back right
  17149. and also with custom gain:
  17150. <div class="example">
  17151. <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;
  17152. </pre></div>
  17153. </li></ul>
  17154. <a name="stereotools"></a>
  17155. <h2 class="section"><a href="ffprobe-all.html#toc-stereotools">29.87 stereotools</a></h2>
  17156. <p>This filter has some handy utilities to manage stereo signals, for converting
  17157. M/S stereo recordings to L/R signal while having control over the parameters
  17158. or spreading the stereo image of master track.
  17159. </p>
  17160. <p>The filter accepts the following options:
  17161. </p>
  17162. <dl compact="compact">
  17163. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  17164. <dd><p>Set input level before filtering for both channels. Defaults is 1.
  17165. Allowed range is from 0.015625 to 64.
  17166. </p>
  17167. </dd>
  17168. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  17169. <dd><p>Set output level after filtering for both channels. Defaults is 1.
  17170. Allowed range is from 0.015625 to 64.
  17171. </p>
  17172. </dd>
  17173. <dt>&lsquo;<samp>balance_in</samp>&rsquo;</dt>
  17174. <dd><p>Set input balance between both channels. Default is 0.
  17175. Allowed range is from -1 to 1.
  17176. </p>
  17177. </dd>
  17178. <dt>&lsquo;<samp>balance_out</samp>&rsquo;</dt>
  17179. <dd><p>Set output balance between both channels. Default is 0.
  17180. Allowed range is from -1 to 1.
  17181. </p>
  17182. </dd>
  17183. <dt>&lsquo;<samp>softclip</samp>&rsquo;</dt>
  17184. <dd><p>Enable softclipping. Results in analog distortion instead of harsh digital 0dB
  17185. clipping. Disabled by default.
  17186. </p>
  17187. </dd>
  17188. <dt>&lsquo;<samp>mutel</samp>&rsquo;</dt>
  17189. <dd><p>Mute the left channel. Disabled by default.
  17190. </p>
  17191. </dd>
  17192. <dt>&lsquo;<samp>muter</samp>&rsquo;</dt>
  17193. <dd><p>Mute the right channel. Disabled by default.
  17194. </p>
  17195. </dd>
  17196. <dt>&lsquo;<samp>phasel</samp>&rsquo;</dt>
  17197. <dd><p>Change the phase of the left channel. Disabled by default.
  17198. </p>
  17199. </dd>
  17200. <dt>&lsquo;<samp>phaser</samp>&rsquo;</dt>
  17201. <dd><p>Change the phase of the right channel. Disabled by default.
  17202. </p>
  17203. </dd>
  17204. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  17205. <dd><p>Set stereo mode. Available values are:
  17206. </p>
  17207. <dl compact="compact">
  17208. <dt>&lsquo;<samp>lr&gt;lr</samp>&rsquo;</dt>
  17209. <dd><p>Left/Right to Left/Right, this is default.
  17210. </p>
  17211. </dd>
  17212. <dt>&lsquo;<samp>lr&gt;ms</samp>&rsquo;</dt>
  17213. <dd><p>Left/Right to Mid/Side.
  17214. </p>
  17215. </dd>
  17216. <dt>&lsquo;<samp>ms&gt;lr</samp>&rsquo;</dt>
  17217. <dd><p>Mid/Side to Left/Right.
  17218. </p>
  17219. </dd>
  17220. <dt>&lsquo;<samp>lr&gt;ll</samp>&rsquo;</dt>
  17221. <dd><p>Left/Right to Left/Left.
  17222. </p>
  17223. </dd>
  17224. <dt>&lsquo;<samp>lr&gt;rr</samp>&rsquo;</dt>
  17225. <dd><p>Left/Right to Right/Right.
  17226. </p>
  17227. </dd>
  17228. <dt>&lsquo;<samp>lr&gt;l+r</samp>&rsquo;</dt>
  17229. <dd><p>Left/Right to Left + Right.
  17230. </p>
  17231. </dd>
  17232. <dt>&lsquo;<samp>lr&gt;rl</samp>&rsquo;</dt>
  17233. <dd><p>Left/Right to Right/Left.
  17234. </p>
  17235. </dd>
  17236. <dt>&lsquo;<samp>ms&gt;ll</samp>&rsquo;</dt>
  17237. <dd><p>Mid/Side to Left/Left.
  17238. </p>
  17239. </dd>
  17240. <dt>&lsquo;<samp>ms&gt;rr</samp>&rsquo;</dt>
  17241. <dd><p>Mid/Side to Right/Right.
  17242. </p></dd>
  17243. </dl>
  17244. </dd>
  17245. <dt>&lsquo;<samp>slev</samp>&rsquo;</dt>
  17246. <dd><p>Set level of side signal. Default is 1.
  17247. Allowed range is from 0.015625 to 64.
  17248. </p>
  17249. </dd>
  17250. <dt>&lsquo;<samp>sbal</samp>&rsquo;</dt>
  17251. <dd><p>Set balance of side signal. Default is 0.
  17252. Allowed range is from -1 to 1.
  17253. </p>
  17254. </dd>
  17255. <dt>&lsquo;<samp>mlev</samp>&rsquo;</dt>
  17256. <dd><p>Set level of the middle signal. Default is 1.
  17257. Allowed range is from 0.015625 to 64.
  17258. </p>
  17259. </dd>
  17260. <dt>&lsquo;<samp>mpan</samp>&rsquo;</dt>
  17261. <dd><p>Set middle signal pan. Default is 0. Allowed range is from -1 to 1.
  17262. </p>
  17263. </dd>
  17264. <dt>&lsquo;<samp>base</samp>&rsquo;</dt>
  17265. <dd><p>Set stereo base between mono and inversed channels. Default is 0.
  17266. Allowed range is from -1 to 1.
  17267. </p>
  17268. </dd>
  17269. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  17270. <dd><p>Set delay in milliseconds how much to delay left from right channel and
  17271. vice versa. Default is 0. Allowed range is from -20 to 20.
  17272. </p>
  17273. </dd>
  17274. <dt>&lsquo;<samp>sclevel</samp>&rsquo;</dt>
  17275. <dd><p>Set S/C level. Default is 1. Allowed range is from 1 to 100.
  17276. </p>
  17277. </dd>
  17278. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  17279. <dd><p>Set the stereo phase in degrees. Default is 0. Allowed range is from 0 to 360.
  17280. </p>
  17281. </dd>
  17282. <dt>&lsquo;<samp>bmode_in, bmode_out</samp>&rsquo;</dt>
  17283. <dd><p>Set balance mode for balance_in/balance_out option.
  17284. </p>
  17285. <p>Can be one of the following:
  17286. </p>
  17287. <dl compact="compact">
  17288. <dt>&lsquo;<samp>balance</samp>&rsquo;</dt>
  17289. <dd><p>Classic balance mode. Attenuate one channel at time.
  17290. Gain is raised up to 1.
  17291. </p>
  17292. </dd>
  17293. <dt>&lsquo;<samp>amplitude</samp>&rsquo;</dt>
  17294. <dd><p>Similar as classic mode above but gain is raised up to 2.
  17295. </p>
  17296. </dd>
  17297. <dt>&lsquo;<samp>power</samp>&rsquo;</dt>
  17298. <dd><p>Equal power distribution, from -6dB to +6dB range.
  17299. </p></dd>
  17300. </dl>
  17301. </dd>
  17302. </dl>
  17303. <a name="Examples-6"></a>
  17304. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-6">29.87.1 Examples</a></h3>
  17305. <ul>
  17306. <li>
  17307. Apply karaoke like effect:
  17308. <div class="example">
  17309. <pre class="example">stereotools=mlev=0.015625
  17310. </pre></div>
  17311. </li><li>
  17312. Convert M/S signal to L/R:
  17313. <div class="example">
  17314. <pre class="example">&quot;stereotools=mode=ms&gt;lr&quot;
  17315. </pre></div>
  17316. </li></ul>
  17317. <a name="stereowiden"></a>
  17318. <h2 class="section"><a href="ffprobe-all.html#toc-stereowiden">29.88 stereowiden</a></h2>
  17319. <p>This filter enhance the stereo effect by suppressing signal common to both
  17320. channels and by delaying the signal of left into right and vice versa,
  17321. thereby widening the stereo effect.
  17322. </p>
  17323. <p>The filter accepts the following options:
  17324. </p>
  17325. <dl compact="compact">
  17326. <dt>&lsquo;<samp>delay</samp>&rsquo;</dt>
  17327. <dd><p>Time in milliseconds of the delay of left signal into right and vice versa.
  17328. Default is 20 milliseconds.
  17329. </p>
  17330. </dd>
  17331. <dt>&lsquo;<samp>feedback</samp>&rsquo;</dt>
  17332. <dd><p>Amount of gain in delayed signal into right and vice versa. Gives a delay
  17333. effect of left signal in right output and vice versa which gives widening
  17334. effect. Default is 0.3.
  17335. </p>
  17336. </dd>
  17337. <dt>&lsquo;<samp>crossfeed</samp>&rsquo;</dt>
  17338. <dd><p>Cross feed of left into right with inverted phase. This helps in suppressing
  17339. the mono. If the value is 1 it will cancel all the signal common to both
  17340. channels. Default is 0.3.
  17341. </p>
  17342. </dd>
  17343. <dt>&lsquo;<samp>drymix</samp>&rsquo;</dt>
  17344. <dd><p>Set level of input signal of original channel. Default is 0.8.
  17345. </p></dd>
  17346. </dl>
  17347. <a name="Commands-32"></a>
  17348. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-32">29.88.1 Commands</a></h3>
  17349. <p>This filter supports the all above options except <code>delay</code> as <a href="#commands">commands</a>.
  17350. </p>
  17351. <a name="superequalizer"></a>
  17352. <h2 class="section"><a href="ffprobe-all.html#toc-superequalizer">29.89 superequalizer</a></h2>
  17353. <p>Apply 18 band equalizer.
  17354. </p>
  17355. <p>The filter accepts the following options:
  17356. </p><dl compact="compact">
  17357. <dt>&lsquo;<samp>1b</samp>&rsquo;</dt>
  17358. <dd><p>Set 65Hz band gain.
  17359. </p></dd>
  17360. <dt>&lsquo;<samp>2b</samp>&rsquo;</dt>
  17361. <dd><p>Set 92Hz band gain.
  17362. </p></dd>
  17363. <dt>&lsquo;<samp>3b</samp>&rsquo;</dt>
  17364. <dd><p>Set 131Hz band gain.
  17365. </p></dd>
  17366. <dt>&lsquo;<samp>4b</samp>&rsquo;</dt>
  17367. <dd><p>Set 185Hz band gain.
  17368. </p></dd>
  17369. <dt>&lsquo;<samp>5b</samp>&rsquo;</dt>
  17370. <dd><p>Set 262Hz band gain.
  17371. </p></dd>
  17372. <dt>&lsquo;<samp>6b</samp>&rsquo;</dt>
  17373. <dd><p>Set 370Hz band gain.
  17374. </p></dd>
  17375. <dt>&lsquo;<samp>7b</samp>&rsquo;</dt>
  17376. <dd><p>Set 523Hz band gain.
  17377. </p></dd>
  17378. <dt>&lsquo;<samp>8b</samp>&rsquo;</dt>
  17379. <dd><p>Set 740Hz band gain.
  17380. </p></dd>
  17381. <dt>&lsquo;<samp>9b</samp>&rsquo;</dt>
  17382. <dd><p>Set 1047Hz band gain.
  17383. </p></dd>
  17384. <dt>&lsquo;<samp>10b</samp>&rsquo;</dt>
  17385. <dd><p>Set 1480Hz band gain.
  17386. </p></dd>
  17387. <dt>&lsquo;<samp>11b</samp>&rsquo;</dt>
  17388. <dd><p>Set 2093Hz band gain.
  17389. </p></dd>
  17390. <dt>&lsquo;<samp>12b</samp>&rsquo;</dt>
  17391. <dd><p>Set 2960Hz band gain.
  17392. </p></dd>
  17393. <dt>&lsquo;<samp>13b</samp>&rsquo;</dt>
  17394. <dd><p>Set 4186Hz band gain.
  17395. </p></dd>
  17396. <dt>&lsquo;<samp>14b</samp>&rsquo;</dt>
  17397. <dd><p>Set 5920Hz band gain.
  17398. </p></dd>
  17399. <dt>&lsquo;<samp>15b</samp>&rsquo;</dt>
  17400. <dd><p>Set 8372Hz band gain.
  17401. </p></dd>
  17402. <dt>&lsquo;<samp>16b</samp>&rsquo;</dt>
  17403. <dd><p>Set 11840Hz band gain.
  17404. </p></dd>
  17405. <dt>&lsquo;<samp>17b</samp>&rsquo;</dt>
  17406. <dd><p>Set 16744Hz band gain.
  17407. </p></dd>
  17408. <dt>&lsquo;<samp>18b</samp>&rsquo;</dt>
  17409. <dd><p>Set 20000Hz band gain.
  17410. </p></dd>
  17411. </dl>
  17412. <a name="surround"></a>
  17413. <h2 class="section"><a href="ffprobe-all.html#toc-surround">29.90 surround</a></h2>
  17414. <p>Apply audio surround upmix filter.
  17415. </p>
  17416. <p>This filter allows to produce multichannel output from audio stream.
  17417. </p>
  17418. <p>The filter accepts the following options:
  17419. </p>
  17420. <dl compact="compact">
  17421. <dt>&lsquo;<samp>chl_out</samp>&rsquo;</dt>
  17422. <dd><p>Set output channel layout. By default, this is <var>5.1</var>.
  17423. </p>
  17424. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  17425. for the required syntax.
  17426. </p>
  17427. </dd>
  17428. <dt>&lsquo;<samp>chl_in</samp>&rsquo;</dt>
  17429. <dd><p>Set input channel layout. By default, this is <var>stereo</var>.
  17430. </p>
  17431. <p>See <a href="ffmpeg-utils.html#channel-layout-syntax">(ffmpeg-utils)the Channel Layout section in the ffmpeg-utils(1) manual</a>
  17432. for the required syntax.
  17433. </p>
  17434. </dd>
  17435. <dt>&lsquo;<samp>level_in</samp>&rsquo;</dt>
  17436. <dd><p>Set input volume level. By default, this is <var>1</var>.
  17437. </p>
  17438. </dd>
  17439. <dt>&lsquo;<samp>level_out</samp>&rsquo;</dt>
  17440. <dd><p>Set output volume level. By default, this is <var>1</var>.
  17441. </p>
  17442. </dd>
  17443. <dt>&lsquo;<samp>lfe</samp>&rsquo;</dt>
  17444. <dd><p>Enable LFE channel output if output channel layout has it. By default, this is enabled.
  17445. </p>
  17446. </dd>
  17447. <dt>&lsquo;<samp>lfe_low</samp>&rsquo;</dt>
  17448. <dd><p>Set LFE low cut off frequency. By default, this is <var>128</var> Hz.
  17449. </p>
  17450. </dd>
  17451. <dt>&lsquo;<samp>lfe_high</samp>&rsquo;</dt>
  17452. <dd><p>Set LFE high cut off frequency. By default, this is <var>256</var> Hz.
  17453. </p>
  17454. </dd>
  17455. <dt>&lsquo;<samp>lfe_mode</samp>&rsquo;</dt>
  17456. <dd><p>Set LFE mode, can be <var>add</var> or <var>sub</var>. Default is <var>add</var>.
  17457. In <var>add</var> mode, LFE channel is created from input audio and added to output.
  17458. In <var>sub</var> mode, LFE channel is created from input audio and added to output but
  17459. also all non-LFE output channels are subtracted with output LFE channel.
  17460. </p>
  17461. </dd>
  17462. <dt>&lsquo;<samp>angle</samp>&rsquo;</dt>
  17463. <dd><p>Set angle of stereo surround transform, Allowed range is from <var>0</var> to <var>360</var>.
  17464. Default is <var>90</var>.
  17465. </p>
  17466. </dd>
  17467. <dt>&lsquo;<samp>fc_in</samp>&rsquo;</dt>
  17468. <dd><p>Set front center input volume. By default, this is <var>1</var>.
  17469. </p>
  17470. </dd>
  17471. <dt>&lsquo;<samp>fc_out</samp>&rsquo;</dt>
  17472. <dd><p>Set front center output volume. By default, this is <var>1</var>.
  17473. </p>
  17474. </dd>
  17475. <dt>&lsquo;<samp>fl_in</samp>&rsquo;</dt>
  17476. <dd><p>Set front left input volume. By default, this is <var>1</var>.
  17477. </p>
  17478. </dd>
  17479. <dt>&lsquo;<samp>fl_out</samp>&rsquo;</dt>
  17480. <dd><p>Set front left output volume. By default, this is <var>1</var>.
  17481. </p>
  17482. </dd>
  17483. <dt>&lsquo;<samp>fr_in</samp>&rsquo;</dt>
  17484. <dd><p>Set front right input volume. By default, this is <var>1</var>.
  17485. </p>
  17486. </dd>
  17487. <dt>&lsquo;<samp>fr_out</samp>&rsquo;</dt>
  17488. <dd><p>Set front right output volume. By default, this is <var>1</var>.
  17489. </p>
  17490. </dd>
  17491. <dt>&lsquo;<samp>sl_in</samp>&rsquo;</dt>
  17492. <dd><p>Set side left input volume. By default, this is <var>1</var>.
  17493. </p>
  17494. </dd>
  17495. <dt>&lsquo;<samp>sl_out</samp>&rsquo;</dt>
  17496. <dd><p>Set side left output volume. By default, this is <var>1</var>.
  17497. </p>
  17498. </dd>
  17499. <dt>&lsquo;<samp>sr_in</samp>&rsquo;</dt>
  17500. <dd><p>Set side right input volume. By default, this is <var>1</var>.
  17501. </p>
  17502. </dd>
  17503. <dt>&lsquo;<samp>sr_out</samp>&rsquo;</dt>
  17504. <dd><p>Set side right output volume. By default, this is <var>1</var>.
  17505. </p>
  17506. </dd>
  17507. <dt>&lsquo;<samp>bl_in</samp>&rsquo;</dt>
  17508. <dd><p>Set back left input volume. By default, this is <var>1</var>.
  17509. </p>
  17510. </dd>
  17511. <dt>&lsquo;<samp>bl_out</samp>&rsquo;</dt>
  17512. <dd><p>Set back left output volume. By default, this is <var>1</var>.
  17513. </p>
  17514. </dd>
  17515. <dt>&lsquo;<samp>br_in</samp>&rsquo;</dt>
  17516. <dd><p>Set back right input volume. By default, this is <var>1</var>.
  17517. </p>
  17518. </dd>
  17519. <dt>&lsquo;<samp>br_out</samp>&rsquo;</dt>
  17520. <dd><p>Set back right output volume. By default, this is <var>1</var>.
  17521. </p>
  17522. </dd>
  17523. <dt>&lsquo;<samp>bc_in</samp>&rsquo;</dt>
  17524. <dd><p>Set back center input volume. By default, this is <var>1</var>.
  17525. </p>
  17526. </dd>
  17527. <dt>&lsquo;<samp>bc_out</samp>&rsquo;</dt>
  17528. <dd><p>Set back center output volume. By default, this is <var>1</var>.
  17529. </p>
  17530. </dd>
  17531. <dt>&lsquo;<samp>lfe_in</samp>&rsquo;</dt>
  17532. <dd><p>Set LFE input volume. By default, this is <var>1</var>.
  17533. </p>
  17534. </dd>
  17535. <dt>&lsquo;<samp>lfe_out</samp>&rsquo;</dt>
  17536. <dd><p>Set LFE output volume. By default, this is <var>1</var>.
  17537. </p>
  17538. </dd>
  17539. <dt>&lsquo;<samp>allx</samp>&rsquo;</dt>
  17540. <dd><p>Set spread usage of stereo image across X axis for all channels.
  17541. </p>
  17542. </dd>
  17543. <dt>&lsquo;<samp>ally</samp>&rsquo;</dt>
  17544. <dd><p>Set spread usage of stereo image across Y axis for all channels.
  17545. </p>
  17546. </dd>
  17547. <dt>&lsquo;<samp>fcx, flx, frx, blx, brx, slx, srx, bcx</samp>&rsquo;</dt>
  17548. <dd><p>Set spread usage of stereo image across X axis for each channel.
  17549. </p>
  17550. </dd>
  17551. <dt>&lsquo;<samp>fcy, fly, fry, bly, bry, sly, sry, bcy</samp>&rsquo;</dt>
  17552. <dd><p>Set spread usage of stereo image across Y axis for each channel.
  17553. </p>
  17554. </dd>
  17555. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  17556. <dd><p>Set window size. Allowed range is from <var>1024</var> to <var>65536</var>. Default size is <var>4096</var>.
  17557. </p>
  17558. </dd>
  17559. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  17560. <dd><p>Set window function.
  17561. </p>
  17562. <p>It accepts the following values:
  17563. </p><dl compact="compact">
  17564. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  17565. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  17566. <dt>&lsquo;<samp>hann, hanning</samp>&rsquo;</dt>
  17567. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  17568. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  17569. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  17570. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  17571. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  17572. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  17573. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  17574. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  17575. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  17576. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  17577. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  17578. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  17579. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  17580. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  17581. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  17582. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  17583. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  17584. </dl>
  17585. <p>Default is <code>hann</code>.
  17586. </p>
  17587. </dd>
  17588. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  17589. <dd><p>Set window overlap. If set to 1, the recommended overlap for selected
  17590. window function will be picked. Default is <code>0.5</code>.
  17591. </p></dd>
  17592. </dl>
  17593. <a name="treble_002c-highshelf"></a>
  17594. <h2 class="section"><a href="ffprobe-all.html#toc-treble_002c-highshelf">29.91 treble, highshelf</a></h2>
  17595. <p>Boost or cut treble (upper) frequencies of the audio using a two-pole
  17596. shelving filter with a response similar to that of a standard
  17597. hi-fi&rsquo;s tone-controls. This is also known as shelving equalisation (EQ).
  17598. </p>
  17599. <p>The filter accepts the following options:
  17600. </p>
  17601. <dl compact="compact">
  17602. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  17603. <dd><p>Give the gain at whichever is the lower of ~22 kHz and the
  17604. Nyquist frequency. Its useful range is about -20 (for a large cut)
  17605. to +20 (for a large boost). Beware of clipping when using a positive gain.
  17606. </p>
  17607. </dd>
  17608. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  17609. <dd><p>Set the filter&rsquo;s central frequency and so can be used
  17610. to extend or reduce the frequency range to be boosted or cut.
  17611. The default value is <code>3000</code> Hz.
  17612. </p>
  17613. </dd>
  17614. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  17615. <dd><p>Set method to specify band-width of filter.
  17616. </p><dl compact="compact">
  17617. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  17618. <dd><p>Hz
  17619. </p></dd>
  17620. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  17621. <dd><p>Q-Factor
  17622. </p></dd>
  17623. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  17624. <dd><p>octave
  17625. </p></dd>
  17626. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  17627. <dd><p>slope
  17628. </p></dd>
  17629. <dt>&lsquo;<samp>k</samp>&rsquo;</dt>
  17630. <dd><p>kHz
  17631. </p></dd>
  17632. </dl>
  17633. </dd>
  17634. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  17635. <dd><p>Determine how steep is the filter&rsquo;s shelf transition.
  17636. </p>
  17637. </dd>
  17638. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  17639. <dd><p>How much to use filtered signal in output. Default is 1.
  17640. Range is between 0 and 1.
  17641. </p>
  17642. </dd>
  17643. <dt>&lsquo;<samp>channels, c</samp>&rsquo;</dt>
  17644. <dd><p>Specify which channels to filter, by default all available are filtered.
  17645. </p>
  17646. </dd>
  17647. <dt>&lsquo;<samp>normalize, n</samp>&rsquo;</dt>
  17648. <dd><p>Normalize biquad coefficients, by default is disabled.
  17649. Enabling it will normalize magnitude response at DC to 0dB.
  17650. </p></dd>
  17651. </dl>
  17652. <a name="Commands-39"></a>
  17653. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-39">29.91.1 Commands</a></h3>
  17654. <p>This filter supports the following commands:
  17655. </p><dl compact="compact">
  17656. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  17657. <dd><p>Change treble frequency.
  17658. Syntax for the command is : &quot;<var>frequency</var>&quot;
  17659. </p>
  17660. </dd>
  17661. <dt>&lsquo;<samp>width_type, t</samp>&rsquo;</dt>
  17662. <dd><p>Change treble width_type.
  17663. Syntax for the command is : &quot;<var>width_type</var>&quot;
  17664. </p>
  17665. </dd>
  17666. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  17667. <dd><p>Change treble width.
  17668. Syntax for the command is : &quot;<var>width</var>&quot;
  17669. </p>
  17670. </dd>
  17671. <dt>&lsquo;<samp>gain, g</samp>&rsquo;</dt>
  17672. <dd><p>Change treble gain.
  17673. Syntax for the command is : &quot;<var>gain</var>&quot;
  17674. </p>
  17675. </dd>
  17676. <dt>&lsquo;<samp>mix, m</samp>&rsquo;</dt>
  17677. <dd><p>Change treble mix.
  17678. Syntax for the command is : &quot;<var>mix</var>&quot;
  17679. </p></dd>
  17680. </dl>
  17681. <a name="tremolo"></a>
  17682. <h2 class="section"><a href="ffprobe-all.html#toc-tremolo">29.92 tremolo</a></h2>
  17683. <p>Sinusoidal amplitude modulation.
  17684. </p>
  17685. <p>The filter accepts the following options:
  17686. </p>
  17687. <dl compact="compact">
  17688. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  17689. <dd><p>Modulation frequency in Hertz. Modulation frequencies in the subharmonic range
  17690. (20 Hz or lower) will result in a tremolo effect.
  17691. This filter may also be used as a ring modulator by specifying
  17692. a modulation frequency higher than 20 Hz.
  17693. Range is 0.1 - 20000.0. Default value is 5.0 Hz.
  17694. </p>
  17695. </dd>
  17696. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  17697. <dd><p>Depth of modulation as a percentage. Range is 0.0 - 1.0.
  17698. Default value is 0.5.
  17699. </p></dd>
  17700. </dl>
  17701. <a name="vibrato"></a>
  17702. <h2 class="section"><a href="ffprobe-all.html#toc-vibrato">29.93 vibrato</a></h2>
  17703. <p>Sinusoidal phase modulation.
  17704. </p>
  17705. <p>The filter accepts the following options:
  17706. </p>
  17707. <dl compact="compact">
  17708. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  17709. <dd><p>Modulation frequency in Hertz.
  17710. Range is 0.1 - 20000.0. Default value is 5.0 Hz.
  17711. </p>
  17712. </dd>
  17713. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  17714. <dd><p>Depth of modulation as a percentage. Range is 0.0 - 1.0.
  17715. Default value is 0.5.
  17716. </p></dd>
  17717. </dl>
  17718. <a name="volume"></a>
  17719. <h2 class="section"><a href="ffprobe-all.html#toc-volume">29.94 volume</a></h2>
  17720. <p>Adjust the input audio volume.
  17721. </p>
  17722. <p>It accepts the following parameters:
  17723. </p><dl compact="compact">
  17724. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  17725. <dd><p>Set audio volume expression.
  17726. </p>
  17727. <p>Output values are clipped to the maximum value.
  17728. </p>
  17729. <p>The output audio volume is given by the relation:
  17730. </p><div class="example">
  17731. <pre class="example"><var>output_volume</var> = <var>volume</var> * <var>input_volume</var>
  17732. </pre></div>
  17733. <p>The default value for <var>volume</var> is &quot;1.0&quot;.
  17734. </p>
  17735. </dd>
  17736. <dt>&lsquo;<samp>precision</samp>&rsquo;</dt>
  17737. <dd><p>This parameter represents the mathematical precision.
  17738. </p>
  17739. <p>It determines which input sample formats will be allowed, which affects the
  17740. precision of the volume scaling.
  17741. </p>
  17742. <dl compact="compact">
  17743. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  17744. <dd><p>8-bit fixed-point; this limits input sample format to U8, S16, and S32.
  17745. </p></dd>
  17746. <dt>&lsquo;<samp>float</samp>&rsquo;</dt>
  17747. <dd><p>32-bit floating-point; this limits input sample format to FLT. (default)
  17748. </p></dd>
  17749. <dt>&lsquo;<samp>double</samp>&rsquo;</dt>
  17750. <dd><p>64-bit floating-point; this limits input sample format to DBL.
  17751. </p></dd>
  17752. </dl>
  17753. </dd>
  17754. <dt>&lsquo;<samp>replaygain</samp>&rsquo;</dt>
  17755. <dd><p>Choose the behaviour on encountering ReplayGain side data in input frames.
  17756. </p>
  17757. <dl compact="compact">
  17758. <dt>&lsquo;<samp>drop</samp>&rsquo;</dt>
  17759. <dd><p>Remove ReplayGain side data, ignoring its contents (the default).
  17760. </p>
  17761. </dd>
  17762. <dt>&lsquo;<samp>ignore</samp>&rsquo;</dt>
  17763. <dd><p>Ignore ReplayGain side data, but leave it in the frame.
  17764. </p>
  17765. </dd>
  17766. <dt>&lsquo;<samp>track</samp>&rsquo;</dt>
  17767. <dd><p>Prefer the track gain, if present.
  17768. </p>
  17769. </dd>
  17770. <dt>&lsquo;<samp>album</samp>&rsquo;</dt>
  17771. <dd><p>Prefer the album gain, if present.
  17772. </p></dd>
  17773. </dl>
  17774. </dd>
  17775. <dt>&lsquo;<samp>replaygain_preamp</samp>&rsquo;</dt>
  17776. <dd><p>Pre-amplification gain in dB to apply to the selected replaygain gain.
  17777. </p>
  17778. <p>Default value for <var>replaygain_preamp</var> is 0.0.
  17779. </p>
  17780. </dd>
  17781. <dt>&lsquo;<samp>replaygain_noclip</samp>&rsquo;</dt>
  17782. <dd><p>Prevent clipping by limiting the gain applied.
  17783. </p>
  17784. <p>Default value for <var>replaygain_noclip</var> is 1.
  17785. </p>
  17786. </dd>
  17787. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  17788. <dd><p>Set when the volume expression is evaluated.
  17789. </p>
  17790. <p>It accepts the following values:
  17791. </p><dl compact="compact">
  17792. <dt>&lsquo;<samp>once</samp>&rsquo;</dt>
  17793. <dd><p>only evaluate expression once during the filter initialization, or
  17794. when the &lsquo;<samp>volume</samp>&rsquo; command is sent
  17795. </p>
  17796. </dd>
  17797. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  17798. <dd><p>evaluate expression for each incoming frame
  17799. </p></dd>
  17800. </dl>
  17801. <p>Default value is &lsquo;<samp>once</samp>&rsquo;.
  17802. </p></dd>
  17803. </dl>
  17804. <p>The volume expression can contain the following parameters.
  17805. </p>
  17806. <dl compact="compact">
  17807. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  17808. <dd><p>frame number (starting at zero)
  17809. </p></dd>
  17810. <dt>&lsquo;<samp>nb_channels</samp>&rsquo;</dt>
  17811. <dd><p>number of channels
  17812. </p></dd>
  17813. <dt>&lsquo;<samp>nb_consumed_samples</samp>&rsquo;</dt>
  17814. <dd><p>number of samples consumed by the filter
  17815. </p></dd>
  17816. <dt>&lsquo;<samp>nb_samples</samp>&rsquo;</dt>
  17817. <dd><p>number of samples in the current frame
  17818. </p></dd>
  17819. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  17820. <dd><p>original frame position in the file
  17821. </p></dd>
  17822. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  17823. <dd><p>frame PTS
  17824. </p></dd>
  17825. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  17826. <dd><p>sample rate
  17827. </p></dd>
  17828. <dt>&lsquo;<samp>startpts</samp>&rsquo;</dt>
  17829. <dd><p>PTS at start of stream
  17830. </p></dd>
  17831. <dt>&lsquo;<samp>startt</samp>&rsquo;</dt>
  17832. <dd><p>time at start of stream
  17833. </p></dd>
  17834. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  17835. <dd><p>frame time
  17836. </p></dd>
  17837. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  17838. <dd><p>timestamp timebase
  17839. </p></dd>
  17840. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  17841. <dd><p>last set volume value
  17842. </p></dd>
  17843. </dl>
  17844. <p>Note that when &lsquo;<samp>eval</samp>&rsquo; is set to &lsquo;<samp>once</samp>&rsquo; only the
  17845. <var>sample_rate</var> and <var>tb</var> variables are available, all other
  17846. variables will evaluate to NAN.
  17847. </p>
  17848. <a name="Commands-42"></a>
  17849. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-42">29.94.1 Commands</a></h3>
  17850. <p>This filter supports the following commands:
  17851. </p><dl compact="compact">
  17852. <dt>&lsquo;<samp>volume</samp>&rsquo;</dt>
  17853. <dd><p>Modify the volume expression.
  17854. The command accepts the same syntax of the corresponding option.
  17855. </p>
  17856. <p>If the specified expression is not valid, it is kept at its current
  17857. value.
  17858. </p></dd>
  17859. </dl>
  17860. <a name="Examples-85"></a>
  17861. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-85">29.94.2 Examples</a></h3>
  17862. <ul>
  17863. <li>
  17864. Halve the input audio volume:
  17865. <div class="example">
  17866. <pre class="example">volume=volume=0.5
  17867. volume=volume=1/2
  17868. volume=volume=-6.0206dB
  17869. </pre></div>
  17870. <p>In all the above example the named key for &lsquo;<samp>volume</samp>&rsquo; can be
  17871. omitted, for example like in:
  17872. </p><div class="example">
  17873. <pre class="example">volume=0.5
  17874. </pre></div>
  17875. </li><li>
  17876. Increase input audio power by 6 decibels using fixed-point precision:
  17877. <div class="example">
  17878. <pre class="example">volume=volume=6dB:precision=fixed
  17879. </pre></div>
  17880. </li><li>
  17881. Fade volume after time 10 with an annihilation period of 5 seconds:
  17882. <div class="example">
  17883. <pre class="example">volume='if(lt(t,10),1,max(1-(t-10)/5,0))':eval=frame
  17884. </pre></div>
  17885. </li></ul>
  17886. <a name="volumedetect"></a>
  17887. <h2 class="section"><a href="ffprobe-all.html#toc-volumedetect">29.95 volumedetect</a></h2>
  17888. <p>Detect the volume of the input video.
  17889. </p>
  17890. <p>The filter has no parameters. The input is not modified. Statistics about
  17891. the volume will be printed in the log when the input stream end is reached.
  17892. </p>
  17893. <p>In particular it will show the mean volume (root mean square), maximum
  17894. volume (on a per-sample basis), and the beginning of a histogram of the
  17895. registered volume values (from the maximum value to a cumulated 1/1000 of
  17896. the samples).
  17897. </p>
  17898. <p>All volumes are in decibels relative to the maximum PCM value.
  17899. </p>
  17900. <a name="Examples-151"></a>
  17901. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-151">29.95.1 Examples</a></h3>
  17902. <p>Here is an excerpt of the output:
  17903. </p><div class="example">
  17904. <pre class="example">[Parsed_volumedetect_0 &nbsp;0xa23120] mean_volume: -27 dB
  17905. [Parsed_volumedetect_0 &nbsp;0xa23120] max_volume: -4 dB
  17906. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_4db: 6
  17907. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_5db: 62
  17908. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_6db: 286
  17909. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_7db: 1042
  17910. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_8db: 2551
  17911. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_9db: 4609
  17912. [Parsed_volumedetect_0 &nbsp;0xa23120] histogram_10db: 8409
  17913. </pre></div>
  17914. <p>It means that:
  17915. </p><ul>
  17916. <li>
  17917. The mean square energy is approximately -27 dB, or 10^-2.7.
  17918. </li><li>
  17919. The largest sample is at -4 dB, or more precisely between -4 dB and -5 dB.
  17920. </li><li>
  17921. There are 6 samples at -4 dB, 62 at -5 dB, 286 at -6 dB, etc.
  17922. </li></ul>
  17923. <p>In other words, raising the volume by +4 dB does not cause any clipping,
  17924. raising it by +5 dB causes clipping for 6 samples, etc.
  17925. </p>
  17926. <a name="Audio-Sources"></a>
  17927. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Sources">30 Audio Sources</a></h1>
  17928. <p>Below is a description of the currently available audio sources.
  17929. </p>
  17930. <a name="abuffer"></a>
  17931. <h2 class="section"><a href="ffprobe-all.html#toc-abuffer">30.1 abuffer</a></h2>
  17932. <p>Buffer audio frames, and make them available to the filter chain.
  17933. </p>
  17934. <p>This source is mainly intended for a programmatic use, in particular
  17935. through the interface defined in &lsquo;<tt>libavfilter/asrc_abuffer.h</tt>&rsquo;.
  17936. </p>
  17937. <p>It accepts the following parameters:
  17938. </p><dl compact="compact">
  17939. <dt>&lsquo;<samp>time_base</samp>&rsquo;</dt>
  17940. <dd><p>The timebase which will be used for timestamps of submitted frames. It must be
  17941. either a floating-point number or in <var>numerator</var>/<var>denominator</var> form.
  17942. </p>
  17943. </dd>
  17944. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  17945. <dd><p>The sample rate of the incoming audio buffers.
  17946. </p>
  17947. </dd>
  17948. <dt>&lsquo;<samp>sample_fmt</samp>&rsquo;</dt>
  17949. <dd><p>The sample format of the incoming audio buffers.
  17950. Either a sample format name or its corresponding integer representation from
  17951. the enum AVSampleFormat in &lsquo;<tt>libavutil/samplefmt.h</tt>&rsquo;
  17952. </p>
  17953. </dd>
  17954. <dt>&lsquo;<samp>channel_layout</samp>&rsquo;</dt>
  17955. <dd><p>The channel layout of the incoming audio buffers.
  17956. Either a channel layout name from channel_layout_map in
  17957. &lsquo;<tt>libavutil/channel_layout.c</tt>&rsquo; or its corresponding integer representation
  17958. from the AV_CH_LAYOUT_* macros in &lsquo;<tt>libavutil/channel_layout.h</tt>&rsquo;
  17959. </p>
  17960. </dd>
  17961. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  17962. <dd><p>The number of channels of the incoming audio buffers.
  17963. If both <var>channels</var> and <var>channel_layout</var> are specified, then they
  17964. must be consistent.
  17965. </p>
  17966. </dd>
  17967. </dl>
  17968. <a name="Examples-51"></a>
  17969. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-51">30.1.1 Examples</a></h3>
  17970. <div class="example">
  17971. <pre class="example">abuffer=sample_rate=44100:sample_fmt=s16p:channel_layout=stereo
  17972. </pre></div>
  17973. <p>will instruct the source to accept planar 16bit signed stereo at 44100Hz.
  17974. Since the sample format with name &quot;s16p&quot; corresponds to the number
  17975. 6 and the &quot;stereo&quot; channel layout corresponds to the value 0x3, this is
  17976. equivalent to:
  17977. </p><div class="example">
  17978. <pre class="example">abuffer=sample_rate=44100:sample_fmt=6:channel_layout=0x3
  17979. </pre></div>
  17980. <a name="aevalsrc"></a>
  17981. <h2 class="section"><a href="ffprobe-all.html#toc-aevalsrc">30.2 aevalsrc</a></h2>
  17982. <p>Generate an audio signal specified by an expression.
  17983. </p>
  17984. <p>This source accepts in input one or more expressions (one for each
  17985. channel), which are evaluated and used to generate a corresponding
  17986. audio signal.
  17987. </p>
  17988. <p>This source accepts the following options:
  17989. </p>
  17990. <dl compact="compact">
  17991. <dt>&lsquo;<samp>exprs</samp>&rsquo;</dt>
  17992. <dd><p>Set the &rsquo;|&rsquo;-separated expressions list for each separate channel. In case the
  17993. &lsquo;<samp>channel_layout</samp>&rsquo; option is not specified, the selected channel layout
  17994. depends on the number of provided expressions. Otherwise the last
  17995. specified expression is applied to the remaining output channels.
  17996. </p>
  17997. </dd>
  17998. <dt>&lsquo;<samp>channel_layout, c</samp>&rsquo;</dt>
  17999. <dd><p>Set the channel layout. The number of channels in the specified layout
  18000. must be equal to the number of specified expressions.
  18001. </p>
  18002. </dd>
  18003. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18004. <dd><p>Set the minimum duration of the sourced audio. See
  18005. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  18006. for the accepted syntax.
  18007. Note that the resulting duration may be greater than the specified
  18008. duration, as the generated audio is always cut at the end of a
  18009. complete frame.
  18010. </p>
  18011. <p>If not specified, or the expressed duration is negative, the audio is
  18012. supposed to be generated forever.
  18013. </p>
  18014. </dd>
  18015. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18016. <dd><p>Set the number of samples per channel per each output frame,
  18017. default to 1024.
  18018. </p>
  18019. </dd>
  18020. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  18021. <dd><p>Specify the sample rate, default to 44100.
  18022. </p></dd>
  18023. </dl>
  18024. <p>Each expression in <var>exprs</var> can contain the following constants:
  18025. </p>
  18026. <dl compact="compact">
  18027. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  18028. <dd><p>number of the evaluated sample, starting from 0
  18029. </p>
  18030. </dd>
  18031. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  18032. <dd><p>time of the evaluated sample expressed in seconds, starting from 0
  18033. </p>
  18034. </dd>
  18035. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  18036. <dd><p>sample rate
  18037. </p>
  18038. </dd>
  18039. </dl>
  18040. <a name="Examples-88"></a>
  18041. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-88">30.2.1 Examples</a></h3>
  18042. <ul>
  18043. <li>
  18044. Generate silence:
  18045. <div class="example">
  18046. <pre class="example">aevalsrc=0
  18047. </pre></div>
  18048. </li><li>
  18049. Generate a sin signal with frequency of 440 Hz, set sample rate to
  18050. 8000 Hz:
  18051. <div class="example">
  18052. <pre class="example">aevalsrc=&quot;sin(440*2*PI*t):s=8000&quot;
  18053. </pre></div>
  18054. </li><li>
  18055. Generate a two channels signal, specify the channel layout (Front
  18056. Center + Back Center) explicitly:
  18057. <div class="example">
  18058. <pre class="example">aevalsrc=&quot;sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC&quot;
  18059. </pre></div>
  18060. </li><li>
  18061. Generate white noise:
  18062. <div class="example">
  18063. <pre class="example">aevalsrc=&quot;-2+random(0)&quot;
  18064. </pre></div>
  18065. </li><li>
  18066. Generate an amplitude modulated signal:
  18067. <div class="example">
  18068. <pre class="example">aevalsrc=&quot;sin(10*2*PI*t)*sin(880*2*PI*t)&quot;
  18069. </pre></div>
  18070. </li><li>
  18071. Generate 2.5 Hz binaural beats on a 360 Hz carrier:
  18072. <div class="example">
  18073. <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;
  18074. </pre></div>
  18075. </li></ul>
  18076. <a name="afirsrc"></a>
  18077. <h2 class="section"><a href="ffprobe-all.html#toc-afirsrc">30.3 afirsrc</a></h2>
  18078. <p>Generate a FIR coefficients using frequency sampling method.
  18079. </p>
  18080. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for filtering the audio signal.
  18081. </p>
  18082. <p>The filter accepts the following options:
  18083. </p>
  18084. <dl compact="compact">
  18085. <dt>&lsquo;<samp>taps, t</samp>&rsquo;</dt>
  18086. <dd><p>Set number of filter coefficents in output audio stream.
  18087. Default value is 1025.
  18088. </p>
  18089. </dd>
  18090. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  18091. <dd><p>Set frequency points from where magnitude and phase are set.
  18092. This must be in non decreasing order, and first element must be 0, while last element
  18093. must be 1. Elements are separated by white spaces.
  18094. </p>
  18095. </dd>
  18096. <dt>&lsquo;<samp>magnitude, m</samp>&rsquo;</dt>
  18097. <dd><p>Set magnitude value for every frequency point set by &lsquo;<samp>frequency</samp>&rsquo;.
  18098. Number of values must be same as number of frequency points.
  18099. Values are separated by white spaces.
  18100. </p>
  18101. </dd>
  18102. <dt>&lsquo;<samp>phase, p</samp>&rsquo;</dt>
  18103. <dd><p>Set phase value for every frequency point set by &lsquo;<samp>frequency</samp>&rsquo;.
  18104. Number of values must be same as number of frequency points.
  18105. Values are separated by white spaces.
  18106. </p>
  18107. </dd>
  18108. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18109. <dd><p>Set sample rate, default is 44100.
  18110. </p>
  18111. </dd>
  18112. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18113. <dd><p>Set number of samples per each frame. Default is 1024.
  18114. </p>
  18115. </dd>
  18116. <dt>&lsquo;<samp>win_func, w</samp>&rsquo;</dt>
  18117. <dd><p>Set window function. Default is blackman.
  18118. </p></dd>
  18119. </dl>
  18120. <a name="anullsrc"></a>
  18121. <h2 class="section"><a href="ffprobe-all.html#toc-anullsrc">30.4 anullsrc</a></h2>
  18122. <p>The null audio source, return unprocessed audio frames. It is mainly useful
  18123. as a template and to be employed in analysis / debugging tools, or as
  18124. the source for filters which ignore the input data (for example the sox
  18125. synth filter).
  18126. </p>
  18127. <p>This source accepts the following options:
  18128. </p>
  18129. <dl compact="compact">
  18130. <dt>&lsquo;<samp>channel_layout, cl</samp>&rsquo;</dt>
  18131. <dd>
  18132. <p>Specifies the channel layout, and can be either an integer or a string
  18133. representing a channel layout. The default value of <var>channel_layout</var>
  18134. is &quot;stereo&quot;.
  18135. </p>
  18136. <p>Check the channel_layout_map definition in
  18137. &lsquo;<tt>libavutil/channel_layout.c</tt>&rsquo; for the mapping between strings and
  18138. channel layout values.
  18139. </p>
  18140. </dd>
  18141. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18142. <dd><p>Specifies the sample rate, and defaults to 44100.
  18143. </p>
  18144. </dd>
  18145. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18146. <dd><p>Set the number of samples per requested frames.
  18147. </p>
  18148. </dd>
  18149. </dl>
  18150. <a name="Examples-37"></a>
  18151. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-37">30.4.1 Examples</a></h3>
  18152. <ul>
  18153. <li>
  18154. Set the sample rate to 48000 Hz and the channel layout to AV_CH_LAYOUT_MONO.
  18155. <div class="example">
  18156. <pre class="example">anullsrc=r=48000:cl=4
  18157. </pre></div>
  18158. </li><li>
  18159. Do the same operation with a more obvious syntax:
  18160. <div class="example">
  18161. <pre class="example">anullsrc=r=48000:cl=mono
  18162. </pre></div>
  18163. </li></ul>
  18164. <p>All the parameters need to be explicitly defined.
  18165. </p>
  18166. <a name="flite"></a>
  18167. <h2 class="section"><a href="ffprobe-all.html#toc-flite">30.5 flite</a></h2>
  18168. <p>Synthesize a voice utterance using the libflite library.
  18169. </p>
  18170. <p>To enable compilation of this filter you need to configure FFmpeg with
  18171. <code>--enable-libflite</code>.
  18172. </p>
  18173. <p>Note that versions of the flite library prior to 2.0 are not thread-safe.
  18174. </p>
  18175. <p>The filter accepts the following options:
  18176. </p>
  18177. <dl compact="compact">
  18178. <dt>&lsquo;<samp>list_voices</samp>&rsquo;</dt>
  18179. <dd><p>If set to 1, list the names of the available voices and exit
  18180. immediately. Default value is 0.
  18181. </p>
  18182. </dd>
  18183. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18184. <dd><p>Set the maximum number of samples per frame. Default value is 512.
  18185. </p>
  18186. </dd>
  18187. <dt>&lsquo;<samp>textfile</samp>&rsquo;</dt>
  18188. <dd><p>Set the filename containing the text to speak.
  18189. </p>
  18190. </dd>
  18191. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  18192. <dd><p>Set the text to speak.
  18193. </p>
  18194. </dd>
  18195. <dt>&lsquo;<samp>voice, v</samp>&rsquo;</dt>
  18196. <dd><p>Set the voice to use for the speech synthesis. Default value is
  18197. <code>kal</code>. See also the <var>list_voices</var> option.
  18198. </p></dd>
  18199. </dl>
  18200. <a name="Examples-139"></a>
  18201. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-139">30.5.1 Examples</a></h3>
  18202. <ul>
  18203. <li>
  18204. Read from file &lsquo;<tt>speech.txt</tt>&rsquo;, and synthesize the text using the
  18205. standard flite voice:
  18206. <div class="example">
  18207. <pre class="example">flite=textfile=speech.txt
  18208. </pre></div>
  18209. </li><li>
  18210. Read the specified text selecting the <code>slt</code> voice:
  18211. <div class="example">
  18212. <pre class="example">flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt
  18213. </pre></div>
  18214. </li><li>
  18215. Input text to ffmpeg:
  18216. <div class="example">
  18217. <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
  18218. </pre></div>
  18219. </li><li>
  18220. Make &lsquo;<tt>ffplay</tt>&rsquo; speak the specified text, using <code>flite</code> and
  18221. the <code>lavfi</code> device:
  18222. <div class="example">
  18223. <pre class="example">ffplay -f lavfi flite=text='No more be grieved for which that thou hast done.'
  18224. </pre></div>
  18225. </li></ul>
  18226. <p>For more information about libflite, check:
  18227. <a href="http://www.festvox.org/flite/">http://www.festvox.org/flite/</a>
  18228. </p>
  18229. <a name="anoisesrc"></a>
  18230. <h2 class="section"><a href="ffprobe-all.html#toc-anoisesrc">30.6 anoisesrc</a></h2>
  18231. <p>Generate a noise audio signal.
  18232. </p>
  18233. <p>The filter accepts the following options:
  18234. </p>
  18235. <dl compact="compact">
  18236. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18237. <dd><p>Specify the sample rate. Default value is 48000 Hz.
  18238. </p>
  18239. </dd>
  18240. <dt>&lsquo;<samp>amplitude, a</samp>&rsquo;</dt>
  18241. <dd><p>Specify the amplitude (0.0 - 1.0) of the generated audio stream. Default value
  18242. is 1.0.
  18243. </p>
  18244. </dd>
  18245. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18246. <dd><p>Specify the duration of the generated audio stream. Not specifying this option
  18247. results in noise with an infinite length.
  18248. </p>
  18249. </dd>
  18250. <dt>&lsquo;<samp>color, colour, c</samp>&rsquo;</dt>
  18251. <dd><p>Specify the color of noise. Available noise colors are white, pink, brown,
  18252. blue, violet and velvet. Default color is white.
  18253. </p>
  18254. </dd>
  18255. <dt>&lsquo;<samp>seed, s</samp>&rsquo;</dt>
  18256. <dd><p>Specify a value used to seed the PRNG.
  18257. </p>
  18258. </dd>
  18259. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18260. <dd><p>Set the number of samples per each output frame, default is 1024.
  18261. </p></dd>
  18262. </dl>
  18263. <a name="Examples-158"></a>
  18264. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-158">30.6.1 Examples</a></h3>
  18265. <ul>
  18266. <li>
  18267. Generate 60 seconds of pink noise, with a 44.1 kHz sampling rate and an amplitude of 0.5:
  18268. <div class="example">
  18269. <pre class="example">anoisesrc=d=60:c=pink:r=44100:a=0.5
  18270. </pre></div>
  18271. </li></ul>
  18272. <a name="hilbert"></a>
  18273. <h2 class="section"><a href="ffprobe-all.html#toc-hilbert">30.7 hilbert</a></h2>
  18274. <p>Generate odd-tap Hilbert transform FIR coefficients.
  18275. </p>
  18276. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for phase-shifting
  18277. the signal by 90 degrees.
  18278. </p>
  18279. <p>This is used in many matrix coding schemes and for analytic signal generation.
  18280. The process is often written as a multiplication by i (or j), the imaginary unit.
  18281. </p>
  18282. <p>The filter accepts the following options:
  18283. </p>
  18284. <dl compact="compact">
  18285. <dt>&lsquo;<samp>sample_rate, s</samp>&rsquo;</dt>
  18286. <dd><p>Set sample rate, default is 44100.
  18287. </p>
  18288. </dd>
  18289. <dt>&lsquo;<samp>taps, t</samp>&rsquo;</dt>
  18290. <dd><p>Set length of FIR filter, default is 22051.
  18291. </p>
  18292. </dd>
  18293. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18294. <dd><p>Set number of samples per each frame.
  18295. </p>
  18296. </dd>
  18297. <dt>&lsquo;<samp>win_func, w</samp>&rsquo;</dt>
  18298. <dd><p>Set window function to be used when generating FIR coefficients.
  18299. </p></dd>
  18300. </dl>
  18301. <a name="sinc"></a>
  18302. <h2 class="section"><a href="ffprobe-all.html#toc-sinc">30.8 sinc</a></h2>
  18303. <p>Generate a sinc kaiser-windowed low-pass, high-pass, band-pass, or band-reject FIR coefficients.
  18304. </p>
  18305. <p>The resulting stream can be used with <a href="#afir">afir</a> filter for filtering the audio signal.
  18306. </p>
  18307. <p>The filter accepts the following options:
  18308. </p>
  18309. <dl compact="compact">
  18310. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18311. <dd><p>Set sample rate, default is 44100.
  18312. </p>
  18313. </dd>
  18314. <dt>&lsquo;<samp>nb_samples, n</samp>&rsquo;</dt>
  18315. <dd><p>Set number of samples per each frame. Default is 1024.
  18316. </p>
  18317. </dd>
  18318. <dt>&lsquo;<samp>hp</samp>&rsquo;</dt>
  18319. <dd><p>Set high-pass frequency. Default is 0.
  18320. </p>
  18321. </dd>
  18322. <dt>&lsquo;<samp>lp</samp>&rsquo;</dt>
  18323. <dd><p>Set low-pass frequency. Default is 0.
  18324. If high-pass frequency is lower than low-pass frequency and low-pass frequency
  18325. is higher than 0 then filter will create band-pass filter coefficients,
  18326. otherwise band-reject filter coefficients.
  18327. </p>
  18328. </dd>
  18329. <dt>&lsquo;<samp>phase</samp>&rsquo;</dt>
  18330. <dd><p>Set filter phase response. Default is 50. Allowed range is from 0 to 100.
  18331. </p>
  18332. </dd>
  18333. <dt>&lsquo;<samp>beta</samp>&rsquo;</dt>
  18334. <dd><p>Set Kaiser window beta.
  18335. </p>
  18336. </dd>
  18337. <dt>&lsquo;<samp>att</samp>&rsquo;</dt>
  18338. <dd><p>Set stop-band attenuation. Default is 120dB, allowed range is from 40 to 180 dB.
  18339. </p>
  18340. </dd>
  18341. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  18342. <dd><p>Enable rounding, by default is disabled.
  18343. </p>
  18344. </dd>
  18345. <dt>&lsquo;<samp>hptaps</samp>&rsquo;</dt>
  18346. <dd><p>Set number of taps for high-pass filter.
  18347. </p>
  18348. </dd>
  18349. <dt>&lsquo;<samp>lptaps</samp>&rsquo;</dt>
  18350. <dd><p>Set number of taps for low-pass filter.
  18351. </p></dd>
  18352. </dl>
  18353. <a name="sine"></a>
  18354. <h2 class="section"><a href="ffprobe-all.html#toc-sine">30.9 sine</a></h2>
  18355. <p>Generate an audio signal made of a sine wave with amplitude 1/8.
  18356. </p>
  18357. <p>The audio signal is bit-exact.
  18358. </p>
  18359. <p>The filter accepts the following options:
  18360. </p>
  18361. <dl compact="compact">
  18362. <dt>&lsquo;<samp>frequency, f</samp>&rsquo;</dt>
  18363. <dd><p>Set the carrier frequency. Default is 440 Hz.
  18364. </p>
  18365. </dd>
  18366. <dt>&lsquo;<samp>beep_factor, b</samp>&rsquo;</dt>
  18367. <dd><p>Enable a periodic beep every second with frequency <var>beep_factor</var> times
  18368. the carrier frequency. Default is 0, meaning the beep is disabled.
  18369. </p>
  18370. </dd>
  18371. <dt>&lsquo;<samp>sample_rate, r</samp>&rsquo;</dt>
  18372. <dd><p>Specify the sample rate, default is 44100.
  18373. </p>
  18374. </dd>
  18375. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  18376. <dd><p>Specify the duration of the generated audio stream.
  18377. </p>
  18378. </dd>
  18379. <dt>&lsquo;<samp>samples_per_frame</samp>&rsquo;</dt>
  18380. <dd><p>Set the number of samples per output frame.
  18381. </p>
  18382. <p>The expression can contain the following constants:
  18383. </p>
  18384. <dl compact="compact">
  18385. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  18386. <dd><p>The (sequential) number of the output audio frame, starting from 0.
  18387. </p>
  18388. </dd>
  18389. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  18390. <dd><p>The PTS (Presentation TimeStamp) of the output audio frame,
  18391. expressed in <var>TB</var> units.
  18392. </p>
  18393. </dd>
  18394. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  18395. <dd><p>The PTS of the output audio frame, expressed in seconds.
  18396. </p>
  18397. </dd>
  18398. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  18399. <dd><p>The timebase of the output audio frames.
  18400. </p></dd>
  18401. </dl>
  18402. <p>Default is <code>1024</code>.
  18403. </p></dd>
  18404. </dl>
  18405. <a name="Examples-14"></a>
  18406. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-14">30.9.1 Examples</a></h3>
  18407. <ul>
  18408. <li>
  18409. Generate a simple 440 Hz sine wave:
  18410. <div class="example">
  18411. <pre class="example">sine
  18412. </pre></div>
  18413. </li><li>
  18414. Generate a 220 Hz sine wave with a 880 Hz beep each second, for 5 seconds:
  18415. <div class="example">
  18416. <pre class="example">sine=220:4:d=5
  18417. sine=f=220:b=4:d=5
  18418. sine=frequency=220:beep_factor=4:duration=5
  18419. </pre></div>
  18420. </li><li>
  18421. Generate a 1 kHz sine wave following <code>1602,1601,1602,1601,1602</code> NTSC
  18422. pattern:
  18423. <div class="example">
  18424. <pre class="example">sine=1000:samples_per_frame='st(0,mod(n,5)); 1602-not(not(eq(ld(0),1)+eq(ld(0),3)))'
  18425. </pre></div>
  18426. </li></ul>
  18427. <a name="Audio-Sinks"></a>
  18428. <h1 class="chapter"><a href="ffprobe-all.html#toc-Audio-Sinks">31 Audio Sinks</a></h1>
  18429. <p>Below is a description of the currently available audio sinks.
  18430. </p>
  18431. <a name="abuffersink"></a>
  18432. <h2 class="section"><a href="ffprobe-all.html#toc-abuffersink">31.1 abuffersink</a></h2>
  18433. <p>Buffer audio frames, and make them available to the end of filter chain.
  18434. </p>
  18435. <p>This sink is mainly intended for programmatic use, in particular
  18436. through the interface defined in &lsquo;<tt>libavfilter/buffersink.h</tt>&rsquo;
  18437. or the options system.
  18438. </p>
  18439. <p>It accepts a pointer to an AVABufferSinkContext structure, which
  18440. defines the incoming buffers&rsquo; formats, to be passed as the opaque
  18441. parameter to <code>avfilter_init_filter</code> for initialization.
  18442. </p><a name="anullsink"></a>
  18443. <h2 class="section"><a href="ffprobe-all.html#toc-anullsink">31.2 anullsink</a></h2>
  18444. <p>Null audio sink; do absolutely nothing with the input audio. It is
  18445. mainly useful as a template and for use in analysis / debugging
  18446. tools.
  18447. </p>
  18448. <a name="Video-Filters"></a>
  18449. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Filters">32 Video Filters</a></h1>
  18450. <p>When you configure your FFmpeg build, you can disable any of the
  18451. existing filters using <code>--disable-filters</code>.
  18452. The configure output will show the video filters included in your
  18453. build.
  18454. </p>
  18455. <p>Below is a description of the currently available video filters.
  18456. </p>
  18457. <a name="addroi"></a>
  18458. <h2 class="section"><a href="ffprobe-all.html#toc-addroi">32.1 addroi</a></h2>
  18459. <p>Mark a region of interest in a video frame.
  18460. </p>
  18461. <p>The frame data is passed through unchanged, but metadata is attached
  18462. to the frame indicating regions of interest which can affect the
  18463. behaviour of later encoding. Multiple regions can be marked by
  18464. applying the filter multiple times.
  18465. </p>
  18466. <dl compact="compact">
  18467. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  18468. <dd><p>Region distance in pixels from the left edge of the frame.
  18469. </p></dd>
  18470. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  18471. <dd><p>Region distance in pixels from the top edge of the frame.
  18472. </p></dd>
  18473. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  18474. <dd><p>Region width in pixels.
  18475. </p></dd>
  18476. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  18477. <dd><p>Region height in pixels.
  18478. </p>
  18479. <p>The parameters <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> are expressions,
  18480. and may contain the following variables:
  18481. </p><dl compact="compact">
  18482. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  18483. <dd><p>Width of the input frame.
  18484. </p></dd>
  18485. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  18486. <dd><p>Height of the input frame.
  18487. </p></dd>
  18488. </dl>
  18489. </dd>
  18490. <dt>&lsquo;<samp>qoffset</samp>&rsquo;</dt>
  18491. <dd><p>Quantisation offset to apply within the region.
  18492. </p>
  18493. <p>This must be a real value in the range -1 to +1. A value of zero
  18494. indicates no quality change. A negative value asks for better quality
  18495. (less quantisation), while a positive value asks for worse quality
  18496. (greater quantisation).
  18497. </p>
  18498. <p>The range is calibrated so that the extreme values indicate the
  18499. largest possible offset - if the rest of the frame is encoded with the
  18500. worst possible quality, an offset of -1 indicates that this region
  18501. should be encoded with the best possible quality anyway. Intermediate
  18502. values are then interpolated in some codec-dependent way.
  18503. </p>
  18504. <p>For example, in 10-bit H.264 the quantisation parameter varies between
  18505. -12 and 51. A typical qoffset value of -1/10 therefore indicates that
  18506. this region should be encoded with a QP around one-tenth of the full
  18507. range better than the rest of the frame. So, if most of the frame
  18508. were to be encoded with a QP of around 30, this region would get a QP
  18509. of around 24 (an offset of approximately -1/10 * (51 - -12) = -6.3).
  18510. An extreme value of -1 would indicate that this region should be
  18511. encoded with the best possible quality regardless of the treatment of
  18512. the rest of the frame - that is, should be encoded at a QP of -12.
  18513. </p></dd>
  18514. <dt>&lsquo;<samp>clear</samp>&rsquo;</dt>
  18515. <dd><p>If set to true, remove any existing regions of interest marked on the
  18516. frame before adding the new one.
  18517. </p></dd>
  18518. </dl>
  18519. <a name="Examples-23"></a>
  18520. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-23">32.1.1 Examples</a></h3>
  18521. <ul>
  18522. <li>
  18523. Mark the centre quarter of the frame as interesting.
  18524. <div class="example">
  18525. <pre class="example">addroi=iw/4:ih/4:iw/2:ih/2:-1/10
  18526. </pre></div>
  18527. </li><li>
  18528. Mark the 100-pixel-wide region on the left edge of the frame as very
  18529. uninteresting (to be encoded at much lower quality than the rest of
  18530. the frame).
  18531. <div class="example">
  18532. <pre class="example">addroi=0:0:100:ih:+1/5
  18533. </pre></div>
  18534. </li></ul>
  18535. <a name="alphaextract"></a>
  18536. <h2 class="section"><a href="ffprobe-all.html#toc-alphaextract">32.2 alphaextract</a></h2>
  18537. <p>Extract the alpha component from the input as a grayscale video. This
  18538. is especially useful with the <var>alphamerge</var> filter.
  18539. </p>
  18540. <a name="alphamerge"></a>
  18541. <h2 class="section"><a href="ffprobe-all.html#toc-alphamerge">32.3 alphamerge</a></h2>
  18542. <p>Add or replace the alpha component of the primary input with the
  18543. grayscale value of a second input. This is intended for use with
  18544. <var>alphaextract</var> to allow the transmission or storage of frame
  18545. sequences that have alpha in a format that doesn&rsquo;t support an alpha
  18546. channel.
  18547. </p>
  18548. <p>For example, to reconstruct full frames from a normal YUV-encoded video
  18549. and a separate video created with <var>alphaextract</var>, you might use:
  18550. </p><div class="example">
  18551. <pre class="example">movie=in_alpha.mkv [alpha]; [in][alpha] alphamerge [out]
  18552. </pre></div>
  18553. <p>Since this filter is designed for reconstruction, it operates on frame
  18554. sequences without considering timestamps, and terminates when either
  18555. input reaches end of stream. This will cause problems if your encoding
  18556. pipeline drops frames. If you&rsquo;re trying to apply an image as an
  18557. overlay to a video stream, consider the <var>overlay</var> filter instead.
  18558. </p>
  18559. <a name="amplify"></a>
  18560. <h2 class="section"><a href="ffprobe-all.html#toc-amplify">32.4 amplify</a></h2>
  18561. <p>Amplify differences between current pixel and pixels of adjacent frames in
  18562. same pixel location.
  18563. </p>
  18564. <p>This filter accepts the following options:
  18565. </p>
  18566. <dl compact="compact">
  18567. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  18568. <dd><p>Set frame radius. Default is 2. Allowed range is from 1 to 63.
  18569. For example radius of 3 will instruct filter to calculate average of 7 frames.
  18570. </p>
  18571. </dd>
  18572. <dt>&lsquo;<samp>factor</samp>&rsquo;</dt>
  18573. <dd><p>Set factor to amplify difference. Default is 2. Allowed range is from 0 to 65535.
  18574. </p>
  18575. </dd>
  18576. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  18577. <dd><p>Set threshold for difference amplification. Any difference greater or equal to
  18578. this value will not alter source pixel. Default is 10.
  18579. Allowed range is from 0 to 65535.
  18580. </p>
  18581. </dd>
  18582. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  18583. <dd><p>Set tolerance for difference amplification. Any difference lower to
  18584. this value will not alter source pixel. Default is 0.
  18585. Allowed range is from 0 to 65535.
  18586. </p>
  18587. </dd>
  18588. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  18589. <dd><p>Set lower limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
  18590. This option controls maximum possible value that will decrease source pixel value.
  18591. </p>
  18592. </dd>
  18593. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  18594. <dd><p>Set high limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
  18595. This option controls maximum possible value that will increase source pixel value.
  18596. </p>
  18597. </dd>
  18598. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18599. <dd><p>Set which planes to filter. Default is all. Allowed range is from 0 to 15.
  18600. </p></dd>
  18601. </dl>
  18602. <a name="Commands-37"></a>
  18603. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-37">32.4.1 Commands</a></h3>
  18604. <p>This filter supports the following <a href="#commands">commands</a> that corresponds to option of same name:
  18605. </p><dl compact="compact">
  18606. <dt>&lsquo;<samp>factor</samp>&rsquo;</dt>
  18607. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  18608. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  18609. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  18610. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  18611. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18612. </dl>
  18613. <a name="ass"></a>
  18614. <h2 class="section"><a href="ffprobe-all.html#toc-ass">32.5 ass</a></h2>
  18615. <p>Same as the <a href="#subtitles">subtitles</a> filter, except that it doesn&rsquo;t require libavcodec
  18616. and libavformat to work. On the other hand, it is limited to ASS (Advanced
  18617. Substation Alpha) subtitles files.
  18618. </p>
  18619. <p>This filter accepts the following option in addition to the common options from
  18620. the <a href="#subtitles">subtitles</a> filter:
  18621. </p>
  18622. <dl compact="compact">
  18623. <dt>&lsquo;<samp>shaping</samp>&rsquo;</dt>
  18624. <dd><p>Set the shaping engine
  18625. </p>
  18626. <p>Available values are:
  18627. </p><dl compact="compact">
  18628. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  18629. <dd><p>The default libass shaping engine, which is the best available.
  18630. </p></dd>
  18631. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  18632. <dd><p>Fast, font-agnostic shaper that can do only substitutions
  18633. </p></dd>
  18634. <dt>&lsquo;<samp>complex</samp>&rsquo;</dt>
  18635. <dd><p>Slower shaper using OpenType for substitutions and positioning
  18636. </p></dd>
  18637. </dl>
  18638. <p>The default is <code>auto</code>.
  18639. </p></dd>
  18640. </dl>
  18641. <a name="atadenoise"></a>
  18642. <h2 class="section"><a href="ffprobe-all.html#toc-atadenoise">32.6 atadenoise</a></h2>
  18643. <p>Apply an Adaptive Temporal Averaging Denoiser to the video input.
  18644. </p>
  18645. <p>The filter accepts the following options:
  18646. </p>
  18647. <dl compact="compact">
  18648. <dt>&lsquo;<samp>0a</samp>&rsquo;</dt>
  18649. <dd><p>Set threshold A for 1st plane. Default is 0.02.
  18650. Valid range is 0 to 0.3.
  18651. </p>
  18652. </dd>
  18653. <dt>&lsquo;<samp>0b</samp>&rsquo;</dt>
  18654. <dd><p>Set threshold B for 1st plane. Default is 0.04.
  18655. Valid range is 0 to 5.
  18656. </p>
  18657. </dd>
  18658. <dt>&lsquo;<samp>1a</samp>&rsquo;</dt>
  18659. <dd><p>Set threshold A for 2nd plane. Default is 0.02.
  18660. Valid range is 0 to 0.3.
  18661. </p>
  18662. </dd>
  18663. <dt>&lsquo;<samp>1b</samp>&rsquo;</dt>
  18664. <dd><p>Set threshold B for 2nd plane. Default is 0.04.
  18665. Valid range is 0 to 5.
  18666. </p>
  18667. </dd>
  18668. <dt>&lsquo;<samp>2a</samp>&rsquo;</dt>
  18669. <dd><p>Set threshold A for 3rd plane. Default is 0.02.
  18670. Valid range is 0 to 0.3.
  18671. </p>
  18672. </dd>
  18673. <dt>&lsquo;<samp>2b</samp>&rsquo;</dt>
  18674. <dd><p>Set threshold B for 3rd plane. Default is 0.04.
  18675. Valid range is 0 to 5.
  18676. </p>
  18677. <p>Threshold A is designed to react on abrupt changes in the input signal and
  18678. threshold B is designed to react on continuous changes in the input signal.
  18679. </p>
  18680. </dd>
  18681. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  18682. <dd><p>Set number of frames filter will use for averaging. Default is 9. Must be odd
  18683. number in range [5, 129].
  18684. </p>
  18685. </dd>
  18686. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  18687. <dd><p>Set what planes of frame filter will use for averaging. Default is all.
  18688. </p>
  18689. </dd>
  18690. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  18691. <dd><p>Set what variant of algorithm filter will use for averaging. Default is <code>p</code> parallel.
  18692. Alternatively can be set to <code>s</code> serial.
  18693. </p>
  18694. <p>Parallel can be faster then serial, while other way around is never true.
  18695. Parallel will abort early on first change being greater then thresholds, while serial
  18696. will continue processing other side of frames if they are equal or bellow thresholds.
  18697. </p></dd>
  18698. </dl>
  18699. <a name="Commands-13"></a>
  18700. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-13">32.6.1 Commands</a></h3>
  18701. <p>This filter supports same <a href="#commands">commands</a> as options except option <code>s</code>.
  18702. The command accepts the same syntax of the corresponding option.
  18703. </p>
  18704. <a name="avgblur"></a>
  18705. <h2 class="section"><a href="ffprobe-all.html#toc-avgblur">32.7 avgblur</a></h2>
  18706. <p>Apply average blur filter.
  18707. </p>
  18708. <p>The filter accepts the following options:
  18709. </p>
  18710. <dl compact="compact">
  18711. <dt>&lsquo;<samp>sizeX</samp>&rsquo;</dt>
  18712. <dd><p>Set horizontal radius size.
  18713. </p>
  18714. </dd>
  18715. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18716. <dd><p>Set which planes to filter. By default all planes are filtered.
  18717. </p>
  18718. </dd>
  18719. <dt>&lsquo;<samp>sizeY</samp>&rsquo;</dt>
  18720. <dd><p>Set vertical radius size, if zero it will be same as <code>sizeX</code>.
  18721. Default is <code>0</code>.
  18722. </p></dd>
  18723. </dl>
  18724. <a name="Commands-49"></a>
  18725. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-49">32.7.1 Commands</a></h3>
  18726. <p>This filter supports same commands as options.
  18727. The command accepts the same syntax of the corresponding option.
  18728. </p>
  18729. <p>If the specified expression is not valid, it is kept at its current
  18730. value.
  18731. </p>
  18732. <a name="bbox"></a>
  18733. <h2 class="section"><a href="ffprobe-all.html#toc-bbox">32.8 bbox</a></h2>
  18734. <p>Compute the bounding box for the non-black pixels in the input frame
  18735. luminance plane.
  18736. </p>
  18737. <p>This filter computes the bounding box containing all the pixels with a
  18738. luminance value greater than the minimum allowed value.
  18739. The parameters describing the bounding box are printed on the filter
  18740. log.
  18741. </p>
  18742. <p>The filter accepts the following option:
  18743. </p>
  18744. <dl compact="compact">
  18745. <dt>&lsquo;<samp>min_val</samp>&rsquo;</dt>
  18746. <dd><p>Set the minimal luminance value. Default is <code>16</code>.
  18747. </p></dd>
  18748. </dl>
  18749. <a name="bilateral"></a>
  18750. <h2 class="section"><a href="ffprobe-all.html#toc-bilateral">32.9 bilateral</a></h2>
  18751. <p>Apply bilateral filter, spatial smoothing while preserving edges.
  18752. </p>
  18753. <p>The filter accepts the following options:
  18754. </p><dl compact="compact">
  18755. <dt>&lsquo;<samp>sigmaS</samp>&rsquo;</dt>
  18756. <dd><p>Set sigma of gaussian function to calculate spatial weight.
  18757. Allowed range is 0 to 10. Default is 0.1.
  18758. </p>
  18759. </dd>
  18760. <dt>&lsquo;<samp>sigmaR</samp>&rsquo;</dt>
  18761. <dd><p>Set sigma of gaussian function to calculate range weight.
  18762. Allowed range is 0 to 1. Default is 0.1.
  18763. </p>
  18764. </dd>
  18765. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  18766. <dd><p>Set planes to filter. Default is first only.
  18767. </p></dd>
  18768. </dl>
  18769. <a name="bitplanenoise"></a>
  18770. <h2 class="section"><a href="ffprobe-all.html#toc-bitplanenoise">32.10 bitplanenoise</a></h2>
  18771. <p>Show and measure bit plane noise.
  18772. </p>
  18773. <p>The filter accepts the following options:
  18774. </p>
  18775. <dl compact="compact">
  18776. <dt>&lsquo;<samp>bitplane</samp>&rsquo;</dt>
  18777. <dd><p>Set which plane to analyze. Default is <code>1</code>.
  18778. </p>
  18779. </dd>
  18780. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  18781. <dd><p>Filter out noisy pixels from <code>bitplane</code> set above.
  18782. Default is disabled.
  18783. </p></dd>
  18784. </dl>
  18785. <a name="blackdetect"></a>
  18786. <h2 class="section"><a href="ffprobe-all.html#toc-blackdetect">32.11 blackdetect</a></h2>
  18787. <p>Detect video intervals that are (almost) completely black. Can be
  18788. useful to detect chapter transitions, commercials, or invalid
  18789. recordings. Output lines contains the time for the start, end and
  18790. duration of the detected black interval expressed in seconds.
  18791. </p>
  18792. <p>In order to display the output lines, you need to set the loglevel at
  18793. least to the AV_LOG_INFO value.
  18794. </p>
  18795. <p>The filter accepts the following options:
  18796. </p>
  18797. <dl compact="compact">
  18798. <dt>&lsquo;<samp>black_min_duration, d</samp>&rsquo;</dt>
  18799. <dd><p>Set the minimum detected black duration expressed in seconds. It must
  18800. be a non-negative floating point number.
  18801. </p>
  18802. <p>Default value is 2.0.
  18803. </p>
  18804. </dd>
  18805. <dt>&lsquo;<samp>picture_black_ratio_th, pic_th</samp>&rsquo;</dt>
  18806. <dd><p>Set the threshold for considering a picture &quot;black&quot;.
  18807. Express the minimum value for the ratio:
  18808. </p><div class="example">
  18809. <pre class="example"><var>nb_black_pixels</var> / <var>nb_pixels</var>
  18810. </pre></div>
  18811. <p>for which a picture is considered black.
  18812. Default value is 0.98.
  18813. </p>
  18814. </dd>
  18815. <dt>&lsquo;<samp>pixel_black_th, pix_th</samp>&rsquo;</dt>
  18816. <dd><p>Set the threshold for considering a pixel &quot;black&quot;.
  18817. </p>
  18818. <p>The threshold expresses the maximum pixel luminance value for which a
  18819. pixel is considered &quot;black&quot;. The provided value is scaled according to
  18820. the following equation:
  18821. </p><div class="example">
  18822. <pre class="example"><var>absolute_threshold</var> = <var>luminance_minimum_value</var> + <var>pixel_black_th</var> * <var>luminance_range_size</var>
  18823. </pre></div>
  18824. <p><var>luminance_range_size</var> and <var>luminance_minimum_value</var> depend on
  18825. the input video format, the range is [0-255] for YUV full-range
  18826. formats and [16-235] for YUV non full-range formats.
  18827. </p>
  18828. <p>Default value is 0.10.
  18829. </p></dd>
  18830. </dl>
  18831. <p>The following example sets the maximum pixel threshold to the minimum
  18832. value, and detects only black intervals of 2 or more seconds:
  18833. </p><div class="example">
  18834. <pre class="example">blackdetect=d=2:pix_th=0.00
  18835. </pre></div>
  18836. <a name="blackframe"></a>
  18837. <h2 class="section"><a href="ffprobe-all.html#toc-blackframe">32.12 blackframe</a></h2>
  18838. <p>Detect frames that are (almost) completely black. Can be useful to
  18839. detect chapter transitions or commercials. Output lines consist of
  18840. the frame number of the detected frame, the percentage of blackness,
  18841. the position in the file if known or -1 and the timestamp in seconds.
  18842. </p>
  18843. <p>In order to display the output lines, you need to set the loglevel at
  18844. least to the AV_LOG_INFO value.
  18845. </p>
  18846. <p>This filter exports frame metadata <code>lavfi.blackframe.pblack</code>.
  18847. The value represents the percentage of pixels in the picture that
  18848. are below the threshold value.
  18849. </p>
  18850. <p>It accepts the following parameters:
  18851. </p>
  18852. <dl compact="compact">
  18853. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  18854. <dd><p>The percentage of the pixels that have to be below the threshold; it defaults to
  18855. <code>98</code>.
  18856. </p>
  18857. </dd>
  18858. <dt>&lsquo;<samp>threshold, thresh</samp>&rsquo;</dt>
  18859. <dd><p>The threshold below which a pixel value is considered black; it defaults to
  18860. <code>32</code>.
  18861. </p>
  18862. </dd>
  18863. </dl>
  18864. <p><a name="blend"></a>
  18865. </p><a name="blend-1"></a>
  18866. <h2 class="section"><a href="ffprobe-all.html#toc-blend-1">32.13 blend</a></h2>
  18867. <p>Blend two video frames into each other.
  18868. </p>
  18869. <p>The <code>blend</code> filter takes two input streams and outputs one
  18870. stream, the first input is the &quot;top&quot; layer and second input is
  18871. &quot;bottom&quot; layer. By default, the output terminates when the longest input terminates.
  18872. </p>
  18873. <p>The <code>tblend</code> (time blend) filter takes two consecutive frames
  18874. from one single stream, and outputs the result obtained by blending
  18875. the new frame on top of the old frame.
  18876. </p>
  18877. <p>A description of the accepted options follows.
  18878. </p>
  18879. <dl compact="compact">
  18880. <dt>&lsquo;<samp>c0_mode</samp>&rsquo;</dt>
  18881. <dt>&lsquo;<samp>c1_mode</samp>&rsquo;</dt>
  18882. <dt>&lsquo;<samp>c2_mode</samp>&rsquo;</dt>
  18883. <dt>&lsquo;<samp>c3_mode</samp>&rsquo;</dt>
  18884. <dt>&lsquo;<samp>all_mode</samp>&rsquo;</dt>
  18885. <dd><p>Set blend mode for specific pixel component or all pixel components in case
  18886. of <var>all_mode</var>. Default value is <code>normal</code>.
  18887. </p>
  18888. <p>Available values for component modes are:
  18889. </p><dl compact="compact">
  18890. <dt>&lsquo;<samp>addition</samp>&rsquo;</dt>
  18891. <dt>&lsquo;<samp>grainmerge</samp>&rsquo;</dt>
  18892. <dt>&lsquo;<samp>and</samp>&rsquo;</dt>
  18893. <dt>&lsquo;<samp>average</samp>&rsquo;</dt>
  18894. <dt>&lsquo;<samp>burn</samp>&rsquo;</dt>
  18895. <dt>&lsquo;<samp>darken</samp>&rsquo;</dt>
  18896. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  18897. <dt>&lsquo;<samp>grainextract</samp>&rsquo;</dt>
  18898. <dt>&lsquo;<samp>divide</samp>&rsquo;</dt>
  18899. <dt>&lsquo;<samp>dodge</samp>&rsquo;</dt>
  18900. <dt>&lsquo;<samp>freeze</samp>&rsquo;</dt>
  18901. <dt>&lsquo;<samp>exclusion</samp>&rsquo;</dt>
  18902. <dt>&lsquo;<samp>extremity</samp>&rsquo;</dt>
  18903. <dt>&lsquo;<samp>glow</samp>&rsquo;</dt>
  18904. <dt>&lsquo;<samp>hardlight</samp>&rsquo;</dt>
  18905. <dt>&lsquo;<samp>hardmix</samp>&rsquo;</dt>
  18906. <dt>&lsquo;<samp>heat</samp>&rsquo;</dt>
  18907. <dt>&lsquo;<samp>lighten</samp>&rsquo;</dt>
  18908. <dt>&lsquo;<samp>linearlight</samp>&rsquo;</dt>
  18909. <dt>&lsquo;<samp>multiply</samp>&rsquo;</dt>
  18910. <dt>&lsquo;<samp>multiply128</samp>&rsquo;</dt>
  18911. <dt>&lsquo;<samp>negation</samp>&rsquo;</dt>
  18912. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  18913. <dt>&lsquo;<samp>or</samp>&rsquo;</dt>
  18914. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  18915. <dt>&lsquo;<samp>phoenix</samp>&rsquo;</dt>
  18916. <dt>&lsquo;<samp>pinlight</samp>&rsquo;</dt>
  18917. <dt>&lsquo;<samp>reflect</samp>&rsquo;</dt>
  18918. <dt>&lsquo;<samp>screen</samp>&rsquo;</dt>
  18919. <dt>&lsquo;<samp>softlight</samp>&rsquo;</dt>
  18920. <dt>&lsquo;<samp>subtract</samp>&rsquo;</dt>
  18921. <dt>&lsquo;<samp>vividlight</samp>&rsquo;</dt>
  18922. <dt>&lsquo;<samp>xor</samp>&rsquo;</dt>
  18923. </dl>
  18924. </dd>
  18925. <dt>&lsquo;<samp>c0_opacity</samp>&rsquo;</dt>
  18926. <dt>&lsquo;<samp>c1_opacity</samp>&rsquo;</dt>
  18927. <dt>&lsquo;<samp>c2_opacity</samp>&rsquo;</dt>
  18928. <dt>&lsquo;<samp>c3_opacity</samp>&rsquo;</dt>
  18929. <dt>&lsquo;<samp>all_opacity</samp>&rsquo;</dt>
  18930. <dd><p>Set blend opacity for specific pixel component or all pixel components in case
  18931. of <var>all_opacity</var>. Only used in combination with pixel component blend modes.
  18932. </p>
  18933. </dd>
  18934. <dt>&lsquo;<samp>c0_expr</samp>&rsquo;</dt>
  18935. <dt>&lsquo;<samp>c1_expr</samp>&rsquo;</dt>
  18936. <dt>&lsquo;<samp>c2_expr</samp>&rsquo;</dt>
  18937. <dt>&lsquo;<samp>c3_expr</samp>&rsquo;</dt>
  18938. <dt>&lsquo;<samp>all_expr</samp>&rsquo;</dt>
  18939. <dd><p>Set blend expression for specific pixel component or all pixel components in case
  18940. of <var>all_expr</var>. Note that related mode options will be ignored if those are set.
  18941. </p>
  18942. <p>The expressions can use the following variables:
  18943. </p>
  18944. <dl compact="compact">
  18945. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  18946. <dd><p>The sequential number of the filtered frame, starting from <code>0</code>.
  18947. </p>
  18948. </dd>
  18949. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  18950. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  18951. <dd><p>the coordinates of the current sample
  18952. </p>
  18953. </dd>
  18954. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  18955. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  18956. <dd><p>the width and height of currently filtered plane
  18957. </p>
  18958. </dd>
  18959. <dt>&lsquo;<samp>SW</samp>&rsquo;</dt>
  18960. <dt>&lsquo;<samp>SH</samp>&rsquo;</dt>
  18961. <dd><p>Width and height scale for the plane being filtered. It is the
  18962. ratio between the dimensions of the current plane to the luma plane,
  18963. e.g. for a <code>yuv420p</code> frame, the values are <code>1,1</code> for
  18964. the luma plane and <code>0.5,0.5</code> for the chroma planes.
  18965. </p>
  18966. </dd>
  18967. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  18968. <dd><p>Time of the current frame, expressed in seconds.
  18969. </p>
  18970. </dd>
  18971. <dt>&lsquo;<samp>TOP, A</samp>&rsquo;</dt>
  18972. <dd><p>Value of pixel component at current location for first video frame (top layer).
  18973. </p>
  18974. </dd>
  18975. <dt>&lsquo;<samp>BOTTOM, B</samp>&rsquo;</dt>
  18976. <dd><p>Value of pixel component at current location for second video frame (bottom layer).
  18977. </p></dd>
  18978. </dl>
  18979. </dd>
  18980. </dl>
  18981. <p>The <code>blend</code> filter also supports the <a href="#framesync">framesync</a> options.
  18982. </p>
  18983. <a name="Examples-111"></a>
  18984. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-111">32.13.1 Examples</a></h3>
  18985. <ul>
  18986. <li>
  18987. Apply transition from bottom layer to top layer in first 10 seconds:
  18988. <div class="example">
  18989. <pre class="example">blend=all_expr='A*(if(gte(T,10),1,T/10))+B*(1-(if(gte(T,10),1,T/10)))'
  18990. </pre></div>
  18991. </li><li>
  18992. Apply linear horizontal transition from top layer to bottom layer:
  18993. <div class="example">
  18994. <pre class="example">blend=all_expr='A*(X/W)+B*(1-X/W)'
  18995. </pre></div>
  18996. </li><li>
  18997. Apply 1x1 checkerboard effect:
  18998. <div class="example">
  18999. <pre class="example">blend=all_expr='if(eq(mod(X,2),mod(Y,2)),A,B)'
  19000. </pre></div>
  19001. </li><li>
  19002. Apply uncover left effect:
  19003. <div class="example">
  19004. <pre class="example">blend=all_expr='if(gte(N*SW+X,W),A,B)'
  19005. </pre></div>
  19006. </li><li>
  19007. Apply uncover down effect:
  19008. <div class="example">
  19009. <pre class="example">blend=all_expr='if(gte(Y-N*SH,0),A,B)'
  19010. </pre></div>
  19011. </li><li>
  19012. Apply uncover up-left effect:
  19013. <div class="example">
  19014. <pre class="example">blend=all_expr='if(gte(T*SH*40+Y,H)*gte((T*40*SW+X)*W/H,W),A,B)'
  19015. </pre></div>
  19016. </li><li>
  19017. Split diagonally video and shows top and bottom layer on each side:
  19018. <div class="example">
  19019. <pre class="example">blend=all_expr='if(gt(X,Y*(W/H)),A,B)'
  19020. </pre></div>
  19021. </li><li>
  19022. Display differences between the current and the previous frame:
  19023. <div class="example">
  19024. <pre class="example">tblend=all_mode=grainextract
  19025. </pre></div>
  19026. </li></ul>
  19027. <a name="bm3d"></a>
  19028. <h2 class="section"><a href="ffprobe-all.html#toc-bm3d">32.14 bm3d</a></h2>
  19029. <p>Denoise frames using Block-Matching 3D algorithm.
  19030. </p>
  19031. <p>The filter accepts the following options.
  19032. </p>
  19033. <dl compact="compact">
  19034. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  19035. <dd><p>Set denoising strength. Default value is 1.
  19036. Allowed range is from 0 to 999.9.
  19037. The denoising algorithm is very sensitive to sigma, so adjust it
  19038. according to the source.
  19039. </p>
  19040. </dd>
  19041. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  19042. <dd><p>Set local patch size. This sets dimensions in 2D.
  19043. </p>
  19044. </dd>
  19045. <dt>&lsquo;<samp>bstep</samp>&rsquo;</dt>
  19046. <dd><p>Set sliding step for processing blocks. Default value is 4.
  19047. Allowed range is from 1 to 64.
  19048. Smaller values allows processing more reference blocks and is slower.
  19049. </p>
  19050. </dd>
  19051. <dt>&lsquo;<samp>group</samp>&rsquo;</dt>
  19052. <dd><p>Set maximal number of similar blocks for 3rd dimension. Default value is 1.
  19053. When set to 1, no block matching is done. Larger values allows more blocks
  19054. in single group.
  19055. Allowed range is from 1 to 256.
  19056. </p>
  19057. </dd>
  19058. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  19059. <dd><p>Set radius for search block matching. Default is 9.
  19060. Allowed range is from 1 to INT32_MAX.
  19061. </p>
  19062. </dd>
  19063. <dt>&lsquo;<samp>mstep</samp>&rsquo;</dt>
  19064. <dd><p>Set step between two search locations for block matching. Default is 1.
  19065. Allowed range is from 1 to 64. Smaller is slower.
  19066. </p>
  19067. </dd>
  19068. <dt>&lsquo;<samp>thmse</samp>&rsquo;</dt>
  19069. <dd><p>Set threshold of mean square error for block matching. Valid range is 0 to
  19070. INT32_MAX.
  19071. </p>
  19072. </dd>
  19073. <dt>&lsquo;<samp>hdthr</samp>&rsquo;</dt>
  19074. <dd><p>Set thresholding parameter for hard thresholding in 3D transformed domain.
  19075. Larger values results in stronger hard-thresholding filtering in frequency
  19076. domain.
  19077. </p>
  19078. </dd>
  19079. <dt>&lsquo;<samp>estim</samp>&rsquo;</dt>
  19080. <dd><p>Set filtering estimation mode. Can be <code>basic</code> or <code>final</code>.
  19081. Default is <code>basic</code>.
  19082. </p>
  19083. </dd>
  19084. <dt>&lsquo;<samp>ref</samp>&rsquo;</dt>
  19085. <dd><p>If enabled, filter will use 2nd stream for block matching.
  19086. Default is disabled for <code>basic</code> value of <var>estim</var> option,
  19087. and always enabled if value of <var>estim</var> is <code>final</code>.
  19088. </p>
  19089. </dd>
  19090. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  19091. <dd><p>Set planes to filter. Default is all available except alpha.
  19092. </p></dd>
  19093. </dl>
  19094. <a name="Examples-147"></a>
  19095. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-147">32.14.1 Examples</a></h3>
  19096. <ul>
  19097. <li>
  19098. Basic filtering with bm3d:
  19099. <div class="example">
  19100. <pre class="example">bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic
  19101. </pre></div>
  19102. </li><li>
  19103. Same as above, but filtering only luma:
  19104. <div class="example">
  19105. <pre class="example">bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic:planes=1
  19106. </pre></div>
  19107. </li><li>
  19108. Same as above, but with both estimation modes:
  19109. <div class="example">
  19110. <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
  19111. </pre></div>
  19112. </li><li>
  19113. Same as above, but prefilter with <a href="#nlmeans">nlmeans</a> filter instead:
  19114. <div class="example">
  19115. <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
  19116. </pre></div>
  19117. </li></ul>
  19118. <a name="boxblur"></a>
  19119. <h2 class="section"><a href="ffprobe-all.html#toc-boxblur">32.15 boxblur</a></h2>
  19120. <p>Apply a boxblur algorithm to the input video.
  19121. </p>
  19122. <p>It accepts the following parameters:
  19123. </p>
  19124. <dl compact="compact">
  19125. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  19126. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  19127. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  19128. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  19129. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  19130. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  19131. </dl>
  19132. <p>A description of the accepted options follows.
  19133. </p>
  19134. <dl compact="compact">
  19135. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  19136. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  19137. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  19138. <dd><p>Set an expression for the box radius in pixels used for blurring the
  19139. corresponding input plane.
  19140. </p>
  19141. <p>The radius value must be a non-negative number, and must not be
  19142. greater than the value of the expression <code>min(w,h)/2</code> for the
  19143. luma and alpha planes, and of <code>min(cw,ch)/2</code> for the chroma
  19144. planes.
  19145. </p>
  19146. <p>Default value for &lsquo;<samp>luma_radius</samp>&rsquo; is &quot;2&quot;. If not specified,
  19147. &lsquo;<samp>chroma_radius</samp>&rsquo; and &lsquo;<samp>alpha_radius</samp>&rsquo; default to the
  19148. corresponding value set for &lsquo;<samp>luma_radius</samp>&rsquo;.
  19149. </p>
  19150. <p>The expressions can contain the following constants:
  19151. </p><dl compact="compact">
  19152. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  19153. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  19154. <dd><p>The input width and height in pixels.
  19155. </p>
  19156. </dd>
  19157. <dt>&lsquo;<samp>cw</samp>&rsquo;</dt>
  19158. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  19159. <dd><p>The input chroma image width and height in pixels.
  19160. </p>
  19161. </dd>
  19162. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  19163. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  19164. <dd><p>The horizontal and vertical chroma subsample values. For example, for the
  19165. pixel format &quot;yuv422p&quot;, <var>hsub</var> is 2 and <var>vsub</var> is 1.
  19166. </p></dd>
  19167. </dl>
  19168. </dd>
  19169. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  19170. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  19171. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  19172. <dd><p>Specify how many times the boxblur filter is applied to the
  19173. corresponding plane.
  19174. </p>
  19175. <p>Default value for &lsquo;<samp>luma_power</samp>&rsquo; is 2. If not specified,
  19176. &lsquo;<samp>chroma_power</samp>&rsquo; and &lsquo;<samp>alpha_power</samp>&rsquo; default to the
  19177. corresponding value set for &lsquo;<samp>luma_power</samp>&rsquo;.
  19178. </p>
  19179. <p>A value of 0 will disable the effect.
  19180. </p></dd>
  19181. </dl>
  19182. <a name="Examples-159"></a>
  19183. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-159">32.15.1 Examples</a></h3>
  19184. <ul>
  19185. <li>
  19186. Apply a boxblur filter with the luma, chroma, and alpha radii
  19187. set to 2:
  19188. <div class="example">
  19189. <pre class="example">boxblur=luma_radius=2:luma_power=1
  19190. boxblur=2:1
  19191. </pre></div>
  19192. </li><li>
  19193. Set the luma radius to 2, and alpha and chroma radius to 0:
  19194. <div class="example">
  19195. <pre class="example">boxblur=2:1:cr=0:ar=0
  19196. </pre></div>
  19197. </li><li>
  19198. Set the luma and chroma radii to a fraction of the video dimension:
  19199. <div class="example">
  19200. <pre class="example">boxblur=luma_radius=min(h\,w)/10:luma_power=1:chroma_radius=min(cw\,ch)/10:chroma_power=1
  19201. </pre></div>
  19202. </li></ul>
  19203. <a name="bwdif"></a>
  19204. <h2 class="section"><a href="ffprobe-all.html#toc-bwdif">32.16 bwdif</a></h2>
  19205. <p>Deinterlace the input video (&quot;bwdif&quot; stands for &quot;Bob Weaver
  19206. Deinterlacing Filter&quot;).
  19207. </p>
  19208. <p>Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic
  19209. interpolation algorithms.
  19210. It accepts the following parameters:
  19211. </p>
  19212. <dl compact="compact">
  19213. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  19214. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  19215. </p>
  19216. <dl compact="compact">
  19217. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  19218. <dd><p>Output one frame for each frame.
  19219. </p></dd>
  19220. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  19221. <dd><p>Output one frame for each field.
  19222. </p></dd>
  19223. </dl>
  19224. <p>The default value is <code>send_field</code>.
  19225. </p>
  19226. </dd>
  19227. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  19228. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  19229. of the following values:
  19230. </p>
  19231. <dl compact="compact">
  19232. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  19233. <dd><p>Assume the top field is first.
  19234. </p></dd>
  19235. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  19236. <dd><p>Assume the bottom field is first.
  19237. </p></dd>
  19238. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  19239. <dd><p>Enable automatic detection of field parity.
  19240. </p></dd>
  19241. </dl>
  19242. <p>The default value is <code>auto</code>.
  19243. If the interlacing is unknown or the decoder does not export this information,
  19244. top field first will be assumed.
  19245. </p>
  19246. </dd>
  19247. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  19248. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  19249. values:
  19250. </p>
  19251. <dl compact="compact">
  19252. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  19253. <dd><p>Deinterlace all frames.
  19254. </p></dd>
  19255. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  19256. <dd><p>Only deinterlace frames marked as interlaced.
  19257. </p></dd>
  19258. </dl>
  19259. <p>The default value is <code>all</code>.
  19260. </p></dd>
  19261. </dl>
  19262. <a name="cas"></a>
  19263. <h2 class="section"><a href="ffprobe-all.html#toc-cas">32.17 cas</a></h2>
  19264. <p>Apply Contrast Adaptive Sharpen filter to video stream.
  19265. </p>
  19266. <p>The filter accepts the following options:
  19267. </p>
  19268. <dl compact="compact">
  19269. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  19270. <dd><p>Set the sharpening strength. Default value is 0.
  19271. </p>
  19272. </dd>
  19273. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  19274. <dd><p>Set planes to filter. Default value is to filter all
  19275. planes except alpha plane.
  19276. </p></dd>
  19277. </dl>
  19278. <a name="chromahold"></a>
  19279. <h2 class="section"><a href="ffprobe-all.html#toc-chromahold">32.18 chromahold</a></h2>
  19280. <p>Remove all color information for all colors except for certain one.
  19281. </p>
  19282. <p>The filter accepts the following options:
  19283. </p>
  19284. <dl compact="compact">
  19285. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19286. <dd><p>The color which will not be replaced with neutral chroma.
  19287. </p>
  19288. </dd>
  19289. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19290. <dd><p>Similarity percentage with the above color.
  19291. 0.01 matches only the exact key color, while 1.0 matches everything.
  19292. </p>
  19293. </dd>
  19294. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19295. <dd><p>Blend percentage.
  19296. 0.0 makes pixels either fully gray, or not gray at all.
  19297. Higher values result in more preserved color.
  19298. </p>
  19299. </dd>
  19300. <dt>&lsquo;<samp>yuv</samp>&rsquo;</dt>
  19301. <dd><p>Signals that the color passed is already in YUV instead of RGB.
  19302. </p>
  19303. <p>Literal colors like &quot;green&quot; or &quot;red&quot; don&rsquo;t make sense with this enabled anymore.
  19304. This can be used to pass exact YUV values as hexadecimal numbers.
  19305. </p></dd>
  19306. </dl>
  19307. <a name="Commands-36"></a>
  19308. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-36">32.18.1 Commands</a></h3>
  19309. <p>This filter supports same <a href="#commands">commands</a> as options.
  19310. The command accepts the same syntax of the corresponding option.
  19311. </p>
  19312. <p>If the specified expression is not valid, it is kept at its current
  19313. value.
  19314. </p>
  19315. <a name="chromakey"></a>
  19316. <h2 class="section"><a href="ffprobe-all.html#toc-chromakey">32.19 chromakey</a></h2>
  19317. <p>YUV colorspace color/chroma keying.
  19318. </p>
  19319. <p>The filter accepts the following options:
  19320. </p>
  19321. <dl compact="compact">
  19322. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19323. <dd><p>The color which will be replaced with transparency.
  19324. </p>
  19325. </dd>
  19326. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19327. <dd><p>Similarity percentage with the key color.
  19328. </p>
  19329. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  19330. </p>
  19331. </dd>
  19332. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19333. <dd><p>Blend percentage.
  19334. </p>
  19335. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  19336. </p>
  19337. <p>Higher values result in semi-transparent pixels, with a higher transparency
  19338. the more similar the pixels color is to the key color.
  19339. </p>
  19340. </dd>
  19341. <dt>&lsquo;<samp>yuv</samp>&rsquo;</dt>
  19342. <dd><p>Signals that the color passed is already in YUV instead of RGB.
  19343. </p>
  19344. <p>Literal colors like &quot;green&quot; or &quot;red&quot; don&rsquo;t make sense with this enabled anymore.
  19345. This can be used to pass exact YUV values as hexadecimal numbers.
  19346. </p></dd>
  19347. </dl>
  19348. <a name="Commands-1"></a>
  19349. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-1">32.19.1 Commands</a></h3>
  19350. <p>This filter supports same <a href="#commands">commands</a> as options.
  19351. The command accepts the same syntax of the corresponding option.
  19352. </p>
  19353. <p>If the specified expression is not valid, it is kept at its current
  19354. value.
  19355. </p>
  19356. <a name="Examples-53"></a>
  19357. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-53">32.19.2 Examples</a></h3>
  19358. <ul>
  19359. <li>
  19360. Make every green pixel in the input image transparent:
  19361. <div class="example">
  19362. <pre class="example">ffmpeg -i input.png -vf chromakey=green out.png
  19363. </pre></div>
  19364. </li><li>
  19365. Overlay a greenscreen-video on top of a static black background.
  19366. <div class="example">
  19367. <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
  19368. </pre></div>
  19369. </li></ul>
  19370. <a name="chromashift"></a>
  19371. <h2 class="section"><a href="ffprobe-all.html#toc-chromashift">32.20 chromashift</a></h2>
  19372. <p>Shift chroma pixels horizontally and/or vertically.
  19373. </p>
  19374. <p>The filter accepts the following options:
  19375. </p><dl compact="compact">
  19376. <dt>&lsquo;<samp>cbh</samp>&rsquo;</dt>
  19377. <dd><p>Set amount to shift chroma-blue horizontally.
  19378. </p></dd>
  19379. <dt>&lsquo;<samp>cbv</samp>&rsquo;</dt>
  19380. <dd><p>Set amount to shift chroma-blue vertically.
  19381. </p></dd>
  19382. <dt>&lsquo;<samp>crh</samp>&rsquo;</dt>
  19383. <dd><p>Set amount to shift chroma-red horizontally.
  19384. </p></dd>
  19385. <dt>&lsquo;<samp>crv</samp>&rsquo;</dt>
  19386. <dd><p>Set amount to shift chroma-red vertically.
  19387. </p></dd>
  19388. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  19389. <dd><p>Set edge mode, can be <var>smear</var>, default, or <var>warp</var>.
  19390. </p></dd>
  19391. </dl>
  19392. <a name="Commands-10"></a>
  19393. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-10">32.20.1 Commands</a></h3>
  19394. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19395. </p>
  19396. <a name="ciescope"></a>
  19397. <h2 class="section"><a href="ffprobe-all.html#toc-ciescope">32.21 ciescope</a></h2>
  19398. <p>Display CIE color diagram with pixels overlaid onto it.
  19399. </p>
  19400. <p>The filter accepts the following options:
  19401. </p>
  19402. <dl compact="compact">
  19403. <dt>&lsquo;<samp>system</samp>&rsquo;</dt>
  19404. <dd><p>Set color system.
  19405. </p>
  19406. <dl compact="compact">
  19407. <dt>&lsquo;<samp>ntsc, 470m</samp>&rsquo;</dt>
  19408. <dt>&lsquo;<samp>ebu, 470bg</samp>&rsquo;</dt>
  19409. <dt>&lsquo;<samp>smpte</samp>&rsquo;</dt>
  19410. <dt>&lsquo;<samp>240m</samp>&rsquo;</dt>
  19411. <dt>&lsquo;<samp>apple</samp>&rsquo;</dt>
  19412. <dt>&lsquo;<samp>widergb</samp>&rsquo;</dt>
  19413. <dt>&lsquo;<samp>cie1931</samp>&rsquo;</dt>
  19414. <dt>&lsquo;<samp>rec709, hdtv</samp>&rsquo;</dt>
  19415. <dt>&lsquo;<samp>uhdtv, rec2020</samp>&rsquo;</dt>
  19416. <dt>&lsquo;<samp>dcip3</samp>&rsquo;</dt>
  19417. </dl>
  19418. </dd>
  19419. <dt>&lsquo;<samp>cie</samp>&rsquo;</dt>
  19420. <dd><p>Set CIE system.
  19421. </p>
  19422. <dl compact="compact">
  19423. <dt>&lsquo;<samp>xyy</samp>&rsquo;</dt>
  19424. <dt>&lsquo;<samp>ucs</samp>&rsquo;</dt>
  19425. <dt>&lsquo;<samp>luv</samp>&rsquo;</dt>
  19426. </dl>
  19427. </dd>
  19428. <dt>&lsquo;<samp>gamuts</samp>&rsquo;</dt>
  19429. <dd><p>Set what gamuts to draw.
  19430. </p>
  19431. <p>See <code>system</code> option for available values.
  19432. </p>
  19433. </dd>
  19434. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  19435. <dd><p>Set ciescope size, by default set to 512.
  19436. </p>
  19437. </dd>
  19438. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  19439. <dd><p>Set intensity used to map input pixel values to CIE diagram.
  19440. </p>
  19441. </dd>
  19442. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  19443. <dd><p>Set contrast used to draw tongue colors that are out of active color system gamut.
  19444. </p>
  19445. </dd>
  19446. <dt>&lsquo;<samp>corrgamma</samp>&rsquo;</dt>
  19447. <dd><p>Correct gamma displayed on scope, by default enabled.
  19448. </p>
  19449. </dd>
  19450. <dt>&lsquo;<samp>showwhite</samp>&rsquo;</dt>
  19451. <dd><p>Show white point on CIE diagram, by default disabled.
  19452. </p>
  19453. </dd>
  19454. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  19455. <dd><p>Set input gamma. Used only with XYZ input color space.
  19456. </p></dd>
  19457. </dl>
  19458. <a name="codecview"></a>
  19459. <h2 class="section"><a href="ffprobe-all.html#toc-codecview">32.22 codecview</a></h2>
  19460. <p>Visualize information exported by some codecs.
  19461. </p>
  19462. <p>Some codecs can export information through frames using side-data or other
  19463. means. For example, some MPEG based codecs export motion vectors through the
  19464. <var>export_mvs</var> flag in the codec &lsquo;<samp>flags2</samp>&rsquo; option.
  19465. </p>
  19466. <p>The filter accepts the following option:
  19467. </p>
  19468. <dl compact="compact">
  19469. <dt>&lsquo;<samp>mv</samp>&rsquo;</dt>
  19470. <dd><p>Set motion vectors to visualize.
  19471. </p>
  19472. <p>Available flags for <var>mv</var> are:
  19473. </p>
  19474. <dl compact="compact">
  19475. <dt>&lsquo;<samp>pf</samp>&rsquo;</dt>
  19476. <dd><p>forward predicted MVs of P-frames
  19477. </p></dd>
  19478. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  19479. <dd><p>forward predicted MVs of B-frames
  19480. </p></dd>
  19481. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  19482. <dd><p>backward predicted MVs of B-frames
  19483. </p></dd>
  19484. </dl>
  19485. </dd>
  19486. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  19487. <dd><p>Display quantization parameters using the chroma planes.
  19488. </p>
  19489. </dd>
  19490. <dt>&lsquo;<samp>mv_type, mvt</samp>&rsquo;</dt>
  19491. <dd><p>Set motion vectors type to visualize. Includes MVs from all frames unless specified by <var>frame_type</var> option.
  19492. </p>
  19493. <p>Available flags for <var>mv_type</var> are:
  19494. </p>
  19495. <dl compact="compact">
  19496. <dt>&lsquo;<samp>fp</samp>&rsquo;</dt>
  19497. <dd><p>forward predicted MVs
  19498. </p></dd>
  19499. <dt>&lsquo;<samp>bp</samp>&rsquo;</dt>
  19500. <dd><p>backward predicted MVs
  19501. </p></dd>
  19502. </dl>
  19503. </dd>
  19504. <dt>&lsquo;<samp>frame_type, ft</samp>&rsquo;</dt>
  19505. <dd><p>Set frame type to visualize motion vectors of.
  19506. </p>
  19507. <p>Available flags for <var>frame_type</var> are:
  19508. </p>
  19509. <dl compact="compact">
  19510. <dt>&lsquo;<samp>if</samp>&rsquo;</dt>
  19511. <dd><p>intra-coded frames (I-frames)
  19512. </p></dd>
  19513. <dt>&lsquo;<samp>pf</samp>&rsquo;</dt>
  19514. <dd><p>predicted frames (P-frames)
  19515. </p></dd>
  19516. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  19517. <dd><p>bi-directionally predicted frames (B-frames)
  19518. </p></dd>
  19519. </dl>
  19520. </dd>
  19521. </dl>
  19522. <a name="Examples-148"></a>
  19523. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-148">32.22.1 Examples</a></h3>
  19524. <ul>
  19525. <li>
  19526. Visualize forward predicted MVs of all frames using <code>ffplay</code>:
  19527. <div class="example">
  19528. <pre class="example">ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv_type=fp
  19529. </pre></div>
  19530. </li><li>
  19531. Visualize multi-directionals MVs of P and B-Frames using <code>ffplay</code>:
  19532. <div class="example">
  19533. <pre class="example">ffplay -flags2 +export_mvs input.mp4 -vf codecview=mv=pf+bf+bb
  19534. </pre></div>
  19535. </li></ul>
  19536. <a name="colorbalance"></a>
  19537. <h2 class="section"><a href="ffprobe-all.html#toc-colorbalance">32.23 colorbalance</a></h2>
  19538. <p>Modify intensity of primary colors (red, green and blue) of input frames.
  19539. </p>
  19540. <p>The filter allows an input frame to be adjusted in the shadows, midtones or highlights
  19541. regions for the red-cyan, green-magenta or blue-yellow balance.
  19542. </p>
  19543. <p>A positive adjustment value shifts the balance towards the primary color, a negative
  19544. value towards the complementary color.
  19545. </p>
  19546. <p>The filter accepts the following options:
  19547. </p>
  19548. <dl compact="compact">
  19549. <dt>&lsquo;<samp>rs</samp>&rsquo;</dt>
  19550. <dt>&lsquo;<samp>gs</samp>&rsquo;</dt>
  19551. <dt>&lsquo;<samp>bs</samp>&rsquo;</dt>
  19552. <dd><p>Adjust red, green and blue shadows (darkest pixels).
  19553. </p>
  19554. </dd>
  19555. <dt>&lsquo;<samp>rm</samp>&rsquo;</dt>
  19556. <dt>&lsquo;<samp>gm</samp>&rsquo;</dt>
  19557. <dt>&lsquo;<samp>bm</samp>&rsquo;</dt>
  19558. <dd><p>Adjust red, green and blue midtones (medium pixels).
  19559. </p>
  19560. </dd>
  19561. <dt>&lsquo;<samp>rh</samp>&rsquo;</dt>
  19562. <dt>&lsquo;<samp>gh</samp>&rsquo;</dt>
  19563. <dt>&lsquo;<samp>bh</samp>&rsquo;</dt>
  19564. <dd><p>Adjust red, green and blue highlights (brightest pixels).
  19565. </p>
  19566. <p>Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>0</code>.
  19567. </p>
  19568. </dd>
  19569. <dt>&lsquo;<samp>pl</samp>&rsquo;</dt>
  19570. <dd><p>Preserve lightness when changing color balance. Default is disabled.
  19571. </p></dd>
  19572. </dl>
  19573. <a name="Examples-60"></a>
  19574. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-60">32.23.1 Examples</a></h3>
  19575. <ul>
  19576. <li>
  19577. Add red color cast to shadows:
  19578. <div class="example">
  19579. <pre class="example">colorbalance=rs=.3
  19580. </pre></div>
  19581. </li></ul>
  19582. <a name="Commands-26"></a>
  19583. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-26">32.23.2 Commands</a></h3>
  19584. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19585. </p>
  19586. <a name="colorchannelmixer"></a>
  19587. <h2 class="section"><a href="ffprobe-all.html#toc-colorchannelmixer">32.24 colorchannelmixer</a></h2>
  19588. <p>Adjust video input frames by re-mixing color channels.
  19589. </p>
  19590. <p>This filter modifies a color channel by adding the values associated to
  19591. the other channels of the same pixels. For example if the value to
  19592. modify is red, the output value will be:
  19593. </p><div class="example">
  19594. <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>
  19595. </pre></div>
  19596. <p>The filter accepts the following options:
  19597. </p>
  19598. <dl compact="compact">
  19599. <dt>&lsquo;<samp>rr</samp>&rsquo;</dt>
  19600. <dt>&lsquo;<samp>rg</samp>&rsquo;</dt>
  19601. <dt>&lsquo;<samp>rb</samp>&rsquo;</dt>
  19602. <dt>&lsquo;<samp>ra</samp>&rsquo;</dt>
  19603. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output red channel.
  19604. Default is <code>1</code> for <var>rr</var>, and <code>0</code> for <var>rg</var>, <var>rb</var> and <var>ra</var>.
  19605. </p>
  19606. </dd>
  19607. <dt>&lsquo;<samp>gr</samp>&rsquo;</dt>
  19608. <dt>&lsquo;<samp>gg</samp>&rsquo;</dt>
  19609. <dt>&lsquo;<samp>gb</samp>&rsquo;</dt>
  19610. <dt>&lsquo;<samp>ga</samp>&rsquo;</dt>
  19611. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output green channel.
  19612. Default is <code>1</code> for <var>gg</var>, and <code>0</code> for <var>gr</var>, <var>gb</var> and <var>ga</var>.
  19613. </p>
  19614. </dd>
  19615. <dt>&lsquo;<samp>br</samp>&rsquo;</dt>
  19616. <dt>&lsquo;<samp>bg</samp>&rsquo;</dt>
  19617. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  19618. <dt>&lsquo;<samp>ba</samp>&rsquo;</dt>
  19619. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output blue channel.
  19620. Default is <code>1</code> for <var>bb</var>, and <code>0</code> for <var>br</var>, <var>bg</var> and <var>ba</var>.
  19621. </p>
  19622. </dd>
  19623. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  19624. <dt>&lsquo;<samp>ag</samp>&rsquo;</dt>
  19625. <dt>&lsquo;<samp>ab</samp>&rsquo;</dt>
  19626. <dt>&lsquo;<samp>aa</samp>&rsquo;</dt>
  19627. <dd><p>Adjust contribution of input red, green, blue and alpha channels for output alpha channel.
  19628. Default is <code>1</code> for <var>aa</var>, and <code>0</code> for <var>ar</var>, <var>ag</var> and <var>ab</var>.
  19629. </p>
  19630. <p>Allowed ranges for options are <code>[-2.0, 2.0]</code>.
  19631. </p></dd>
  19632. </dl>
  19633. <a name="Examples-38"></a>
  19634. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-38">32.24.1 Examples</a></h3>
  19635. <ul>
  19636. <li>
  19637. Convert source to grayscale:
  19638. <div class="example">
  19639. <pre class="example">colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3
  19640. </pre></div>
  19641. </li><li>
  19642. Simulate sepia tones:
  19643. <div class="example">
  19644. <pre class="example">colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131
  19645. </pre></div>
  19646. </li></ul>
  19647. <a name="Commands-65"></a>
  19648. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-65">32.24.2 Commands</a></h3>
  19649. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19650. </p>
  19651. <a name="colorkey"></a>
  19652. <h2 class="section"><a href="ffprobe-all.html#toc-colorkey">32.25 colorkey</a></h2>
  19653. <p>RGB colorspace color keying.
  19654. </p>
  19655. <p>The filter accepts the following options:
  19656. </p>
  19657. <dl compact="compact">
  19658. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19659. <dd><p>The color which will be replaced with transparency.
  19660. </p>
  19661. </dd>
  19662. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19663. <dd><p>Similarity percentage with the key color.
  19664. </p>
  19665. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  19666. </p>
  19667. </dd>
  19668. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19669. <dd><p>Blend percentage.
  19670. </p>
  19671. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  19672. </p>
  19673. <p>Higher values result in semi-transparent pixels, with a higher transparency
  19674. the more similar the pixels color is to the key color.
  19675. </p></dd>
  19676. </dl>
  19677. <a name="Examples-109"></a>
  19678. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-109">32.25.1 Examples</a></h3>
  19679. <ul>
  19680. <li>
  19681. Make every green pixel in the input image transparent:
  19682. <div class="example">
  19683. <pre class="example">ffmpeg -i input.png -vf colorkey=green out.png
  19684. </pre></div>
  19685. </li><li>
  19686. Overlay a greenscreen-video on top of a static background image.
  19687. <div class="example">
  19688. <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
  19689. </pre></div>
  19690. </li></ul>
  19691. <a name="Commands-3"></a>
  19692. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-3">32.25.2 Commands</a></h3>
  19693. <p>This filter supports same <a href="#commands">commands</a> as options.
  19694. The command accepts the same syntax of the corresponding option.
  19695. </p>
  19696. <p>If the specified expression is not valid, it is kept at its current
  19697. value.
  19698. </p>
  19699. <a name="colorhold"></a>
  19700. <h2 class="section"><a href="ffprobe-all.html#toc-colorhold">32.26 colorhold</a></h2>
  19701. <p>Remove all color information for all RGB colors except for certain one.
  19702. </p>
  19703. <p>The filter accepts the following options:
  19704. </p>
  19705. <dl compact="compact">
  19706. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  19707. <dd><p>The color which will not be replaced with neutral gray.
  19708. </p>
  19709. </dd>
  19710. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  19711. <dd><p>Similarity percentage with the above color.
  19712. 0.01 matches only the exact key color, while 1.0 matches everything.
  19713. </p>
  19714. </dd>
  19715. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  19716. <dd><p>Blend percentage. 0.0 makes pixels fully gray.
  19717. Higher values result in more preserved color.
  19718. </p></dd>
  19719. </dl>
  19720. <a name="Commands-4"></a>
  19721. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-4">32.26.1 Commands</a></h3>
  19722. <p>This filter supports same <a href="#commands">commands</a> as options.
  19723. The command accepts the same syntax of the corresponding option.
  19724. </p>
  19725. <p>If the specified expression is not valid, it is kept at its current
  19726. value.
  19727. </p>
  19728. <a name="colorlevels"></a>
  19729. <h2 class="section"><a href="ffprobe-all.html#toc-colorlevels">32.27 colorlevels</a></h2>
  19730. <p>Adjust video input frames using levels.
  19731. </p>
  19732. <p>The filter accepts the following options:
  19733. </p>
  19734. <dl compact="compact">
  19735. <dt>&lsquo;<samp>rimin</samp>&rsquo;</dt>
  19736. <dt>&lsquo;<samp>gimin</samp>&rsquo;</dt>
  19737. <dt>&lsquo;<samp>bimin</samp>&rsquo;</dt>
  19738. <dt>&lsquo;<samp>aimin</samp>&rsquo;</dt>
  19739. <dd><p>Adjust red, green, blue and alpha input black point.
  19740. Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>0</code>.
  19741. </p>
  19742. </dd>
  19743. <dt>&lsquo;<samp>rimax</samp>&rsquo;</dt>
  19744. <dt>&lsquo;<samp>gimax</samp>&rsquo;</dt>
  19745. <dt>&lsquo;<samp>bimax</samp>&rsquo;</dt>
  19746. <dt>&lsquo;<samp>aimax</samp>&rsquo;</dt>
  19747. <dd><p>Adjust red, green, blue and alpha input white point.
  19748. Allowed ranges for options are <code>[-1.0, 1.0]</code>. Defaults are <code>1</code>.
  19749. </p>
  19750. <p>Input levels are used to lighten highlights (bright tones), darken shadows
  19751. (dark tones), change the balance of bright and dark tones.
  19752. </p>
  19753. </dd>
  19754. <dt>&lsquo;<samp>romin</samp>&rsquo;</dt>
  19755. <dt>&lsquo;<samp>gomin</samp>&rsquo;</dt>
  19756. <dt>&lsquo;<samp>bomin</samp>&rsquo;</dt>
  19757. <dt>&lsquo;<samp>aomin</samp>&rsquo;</dt>
  19758. <dd><p>Adjust red, green, blue and alpha output black point.
  19759. Allowed ranges for options are <code>[0, 1.0]</code>. Defaults are <code>0</code>.
  19760. </p>
  19761. </dd>
  19762. <dt>&lsquo;<samp>romax</samp>&rsquo;</dt>
  19763. <dt>&lsquo;<samp>gomax</samp>&rsquo;</dt>
  19764. <dt>&lsquo;<samp>bomax</samp>&rsquo;</dt>
  19765. <dt>&lsquo;<samp>aomax</samp>&rsquo;</dt>
  19766. <dd><p>Adjust red, green, blue and alpha output white point.
  19767. Allowed ranges for options are <code>[0, 1.0]</code>. Defaults are <code>1</code>.
  19768. </p>
  19769. <p>Output levels allows manual selection of a constrained output level range.
  19770. </p></dd>
  19771. </dl>
  19772. <a name="Examples-29"></a>
  19773. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-29">32.27.1 Examples</a></h3>
  19774. <ul>
  19775. <li>
  19776. Make video output darker:
  19777. <div class="example">
  19778. <pre class="example">colorlevels=rimin=0.058:gimin=0.058:bimin=0.058
  19779. </pre></div>
  19780. </li><li>
  19781. Increase contrast:
  19782. <div class="example">
  19783. <pre class="example">colorlevels=rimin=0.039:gimin=0.039:bimin=0.039:rimax=0.96:gimax=0.96:bimax=0.96
  19784. </pre></div>
  19785. </li><li>
  19786. Make video output lighter:
  19787. <div class="example">
  19788. <pre class="example">colorlevels=rimax=0.902:gimax=0.902:bimax=0.902
  19789. </pre></div>
  19790. </li><li>
  19791. Increase brightness:
  19792. <div class="example">
  19793. <pre class="example">colorlevels=romin=0.5:gomin=0.5:bomin=0.5
  19794. </pre></div>
  19795. </li></ul>
  19796. <a name="Commands-22"></a>
  19797. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-22">32.27.2 Commands</a></h3>
  19798. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  19799. </p>
  19800. <a name="colormatrix"></a>
  19801. <h2 class="section"><a href="ffprobe-all.html#toc-colormatrix">32.28 colormatrix</a></h2>
  19802. <p>Convert color matrix.
  19803. </p>
  19804. <p>The filter accepts the following options:
  19805. </p>
  19806. <dl compact="compact">
  19807. <dt>&lsquo;<samp>src</samp>&rsquo;</dt>
  19808. <dt>&lsquo;<samp>dst</samp>&rsquo;</dt>
  19809. <dd><p>Specify the source and destination color matrix. Both values must be
  19810. specified.
  19811. </p>
  19812. <p>The accepted values are:
  19813. </p><dl compact="compact">
  19814. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  19815. <dd><p>BT.709
  19816. </p>
  19817. </dd>
  19818. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  19819. <dd><p>FCC
  19820. </p>
  19821. </dd>
  19822. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  19823. <dd><p>BT.601
  19824. </p>
  19825. </dd>
  19826. <dt>&lsquo;<samp>bt470</samp>&rsquo;</dt>
  19827. <dd><p>BT.470
  19828. </p>
  19829. </dd>
  19830. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  19831. <dd><p>BT.470BG
  19832. </p>
  19833. </dd>
  19834. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  19835. <dd><p>SMPTE-170M
  19836. </p>
  19837. </dd>
  19838. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  19839. <dd><p>SMPTE-240M
  19840. </p>
  19841. </dd>
  19842. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  19843. <dd><p>BT.2020
  19844. </p></dd>
  19845. </dl>
  19846. </dd>
  19847. </dl>
  19848. <p>For example to convert from BT.601 to SMPTE-240M, use the command:
  19849. </p><div class="example">
  19850. <pre class="example">colormatrix=bt601:smpte240m
  19851. </pre></div>
  19852. <a name="colorspace"></a>
  19853. <h2 class="section"><a href="ffprobe-all.html#toc-colorspace">32.29 colorspace</a></h2>
  19854. <p>Convert colorspace, transfer characteristics or color primaries.
  19855. Input video needs to have an even size.
  19856. </p>
  19857. <p>The filter accepts the following options:
  19858. </p>
  19859. <dl compact="compact">
  19860. <dd><p><a name="all"></a>
  19861. </p></dd>
  19862. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  19863. <dd><p>Specify all color properties at once.
  19864. </p>
  19865. <p>The accepted values are:
  19866. </p><dl compact="compact">
  19867. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  19868. <dd><p>BT.470M
  19869. </p>
  19870. </dd>
  19871. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  19872. <dd><p>BT.470BG
  19873. </p>
  19874. </dd>
  19875. <dt>&lsquo;<samp>bt601-6-525</samp>&rsquo;</dt>
  19876. <dd><p>BT.601-6 525
  19877. </p>
  19878. </dd>
  19879. <dt>&lsquo;<samp>bt601-6-625</samp>&rsquo;</dt>
  19880. <dd><p>BT.601-6 625
  19881. </p>
  19882. </dd>
  19883. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  19884. <dd><p>BT.709
  19885. </p>
  19886. </dd>
  19887. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  19888. <dd><p>SMPTE-170M
  19889. </p>
  19890. </dd>
  19891. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  19892. <dd><p>SMPTE-240M
  19893. </p>
  19894. </dd>
  19895. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  19896. <dd><p>BT.2020
  19897. </p>
  19898. </dd>
  19899. </dl>
  19900. <p><a name="space"></a>
  19901. </p></dd>
  19902. <dt>&lsquo;<samp>space</samp>&rsquo;</dt>
  19903. <dd><p>Specify output colorspace.
  19904. </p>
  19905. <p>The accepted values are:
  19906. </p><dl compact="compact">
  19907. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  19908. <dd><p>BT.709
  19909. </p>
  19910. </dd>
  19911. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  19912. <dd><p>FCC
  19913. </p>
  19914. </dd>
  19915. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  19916. <dd><p>BT.470BG or BT.601-6 625
  19917. </p>
  19918. </dd>
  19919. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  19920. <dd><p>SMPTE-170M or BT.601-6 525
  19921. </p>
  19922. </dd>
  19923. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  19924. <dd><p>SMPTE-240M
  19925. </p>
  19926. </dd>
  19927. <dt>&lsquo;<samp>ycgco</samp>&rsquo;</dt>
  19928. <dd><p>YCgCo
  19929. </p>
  19930. </dd>
  19931. <dt>&lsquo;<samp>bt2020ncl</samp>&rsquo;</dt>
  19932. <dd><p>BT.2020 with non-constant luminance
  19933. </p>
  19934. </dd>
  19935. </dl>
  19936. <p><a name="trc"></a>
  19937. </p></dd>
  19938. <dt>&lsquo;<samp>trc</samp>&rsquo;</dt>
  19939. <dd><p>Specify output transfer characteristics.
  19940. </p>
  19941. <p>The accepted values are:
  19942. </p><dl compact="compact">
  19943. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  19944. <dd><p>BT.709
  19945. </p>
  19946. </dd>
  19947. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  19948. <dd><p>BT.470M
  19949. </p>
  19950. </dd>
  19951. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  19952. <dd><p>BT.470BG
  19953. </p>
  19954. </dd>
  19955. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  19956. <dd><p>Constant gamma of 2.2
  19957. </p>
  19958. </dd>
  19959. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  19960. <dd><p>Constant gamma of 2.8
  19961. </p>
  19962. </dd>
  19963. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  19964. <dd><p>SMPTE-170M, BT.601-6 625 or BT.601-6 525
  19965. </p>
  19966. </dd>
  19967. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  19968. <dd><p>SMPTE-240M
  19969. </p>
  19970. </dd>
  19971. <dt>&lsquo;<samp>srgb</samp>&rsquo;</dt>
  19972. <dd><p>SRGB
  19973. </p>
  19974. </dd>
  19975. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  19976. <dd><p>iec61966-2-1
  19977. </p>
  19978. </dd>
  19979. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  19980. <dd><p>iec61966-2-4
  19981. </p>
  19982. </dd>
  19983. <dt>&lsquo;<samp>xvycc</samp>&rsquo;</dt>
  19984. <dd><p>xvycc
  19985. </p>
  19986. </dd>
  19987. <dt>&lsquo;<samp>bt2020-10</samp>&rsquo;</dt>
  19988. <dd><p>BT.2020 for 10-bits content
  19989. </p>
  19990. </dd>
  19991. <dt>&lsquo;<samp>bt2020-12</samp>&rsquo;</dt>
  19992. <dd><p>BT.2020 for 12-bits content
  19993. </p>
  19994. </dd>
  19995. </dl>
  19996. <p><a name="primaries"></a>
  19997. </p></dd>
  19998. <dt>&lsquo;<samp>primaries</samp>&rsquo;</dt>
  19999. <dd><p>Specify output color primaries.
  20000. </p>
  20001. <p>The accepted values are:
  20002. </p><dl compact="compact">
  20003. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  20004. <dd><p>BT.709
  20005. </p>
  20006. </dd>
  20007. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  20008. <dd><p>BT.470M
  20009. </p>
  20010. </dd>
  20011. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  20012. <dd><p>BT.470BG or BT.601-6 625
  20013. </p>
  20014. </dd>
  20015. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  20016. <dd><p>SMPTE-170M or BT.601-6 525
  20017. </p>
  20018. </dd>
  20019. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  20020. <dd><p>SMPTE-240M
  20021. </p>
  20022. </dd>
  20023. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  20024. <dd><p>film
  20025. </p>
  20026. </dd>
  20027. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  20028. <dd><p>SMPTE-431
  20029. </p>
  20030. </dd>
  20031. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  20032. <dd><p>SMPTE-432
  20033. </p>
  20034. </dd>
  20035. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  20036. <dd><p>BT.2020
  20037. </p>
  20038. </dd>
  20039. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  20040. <dd><p>JEDEC P22 phosphors
  20041. </p>
  20042. </dd>
  20043. </dl>
  20044. <p><a name="range"></a>
  20045. </p></dd>
  20046. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  20047. <dd><p>Specify output color range.
  20048. </p>
  20049. <p>The accepted values are:
  20050. </p><dl compact="compact">
  20051. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  20052. <dd><p>TV (restricted) range
  20053. </p>
  20054. </dd>
  20055. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  20056. <dd><p>MPEG (restricted) range
  20057. </p>
  20058. </dd>
  20059. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  20060. <dd><p>PC (full) range
  20061. </p>
  20062. </dd>
  20063. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  20064. <dd><p>JPEG (full) range
  20065. </p>
  20066. </dd>
  20067. </dl>
  20068. </dd>
  20069. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  20070. <dd><p>Specify output color format.
  20071. </p>
  20072. <p>The accepted values are:
  20073. </p><dl compact="compact">
  20074. <dt>&lsquo;<samp>yuv420p</samp>&rsquo;</dt>
  20075. <dd><p>YUV 4:2:0 planar 8-bits
  20076. </p>
  20077. </dd>
  20078. <dt>&lsquo;<samp>yuv420p10</samp>&rsquo;</dt>
  20079. <dd><p>YUV 4:2:0 planar 10-bits
  20080. </p>
  20081. </dd>
  20082. <dt>&lsquo;<samp>yuv420p12</samp>&rsquo;</dt>
  20083. <dd><p>YUV 4:2:0 planar 12-bits
  20084. </p>
  20085. </dd>
  20086. <dt>&lsquo;<samp>yuv422p</samp>&rsquo;</dt>
  20087. <dd><p>YUV 4:2:2 planar 8-bits
  20088. </p>
  20089. </dd>
  20090. <dt>&lsquo;<samp>yuv422p10</samp>&rsquo;</dt>
  20091. <dd><p>YUV 4:2:2 planar 10-bits
  20092. </p>
  20093. </dd>
  20094. <dt>&lsquo;<samp>yuv422p12</samp>&rsquo;</dt>
  20095. <dd><p>YUV 4:2:2 planar 12-bits
  20096. </p>
  20097. </dd>
  20098. <dt>&lsquo;<samp>yuv444p</samp>&rsquo;</dt>
  20099. <dd><p>YUV 4:4:4 planar 8-bits
  20100. </p>
  20101. </dd>
  20102. <dt>&lsquo;<samp>yuv444p10</samp>&rsquo;</dt>
  20103. <dd><p>YUV 4:4:4 planar 10-bits
  20104. </p>
  20105. </dd>
  20106. <dt>&lsquo;<samp>yuv444p12</samp>&rsquo;</dt>
  20107. <dd><p>YUV 4:4:4 planar 12-bits
  20108. </p>
  20109. </dd>
  20110. </dl>
  20111. </dd>
  20112. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  20113. <dd><p>Do a fast conversion, which skips gamma/primary correction. This will take
  20114. significantly less CPU, but will be mathematically incorrect. To get output
  20115. compatible with that produced by the colormatrix filter, use fast=1.
  20116. </p>
  20117. </dd>
  20118. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  20119. <dd><p>Specify dithering mode.
  20120. </p>
  20121. <p>The accepted values are:
  20122. </p><dl compact="compact">
  20123. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  20124. <dd><p>No dithering
  20125. </p>
  20126. </dd>
  20127. <dt>&lsquo;<samp>fsb</samp>&rsquo;</dt>
  20128. <dd><p>Floyd-Steinberg dithering
  20129. </p></dd>
  20130. </dl>
  20131. </dd>
  20132. <dt>&lsquo;<samp>wpadapt</samp>&rsquo;</dt>
  20133. <dd><p>Whitepoint adaptation mode.
  20134. </p>
  20135. <p>The accepted values are:
  20136. </p><dl compact="compact">
  20137. <dt>&lsquo;<samp>bradford</samp>&rsquo;</dt>
  20138. <dd><p>Bradford whitepoint adaptation
  20139. </p>
  20140. </dd>
  20141. <dt>&lsquo;<samp>vonkries</samp>&rsquo;</dt>
  20142. <dd><p>von Kries whitepoint adaptation
  20143. </p>
  20144. </dd>
  20145. <dt>&lsquo;<samp>identity</samp>&rsquo;</dt>
  20146. <dd><p>identity whitepoint adaptation (i.e. no whitepoint adaptation)
  20147. </p></dd>
  20148. </dl>
  20149. </dd>
  20150. <dt>&lsquo;<samp>iall</samp>&rsquo;</dt>
  20151. <dd><p>Override all input properties at once. Same accepted values as <a href="#all">all</a>.
  20152. </p>
  20153. </dd>
  20154. <dt>&lsquo;<samp>ispace</samp>&rsquo;</dt>
  20155. <dd><p>Override input colorspace. Same accepted values as <a href="#space">space</a>.
  20156. </p>
  20157. </dd>
  20158. <dt>&lsquo;<samp>iprimaries</samp>&rsquo;</dt>
  20159. <dd><p>Override input color primaries. Same accepted values as <a href="#primaries">primaries</a>.
  20160. </p>
  20161. </dd>
  20162. <dt>&lsquo;<samp>itrc</samp>&rsquo;</dt>
  20163. <dd><p>Override input transfer characteristics. Same accepted values as <a href="#trc">trc</a>.
  20164. </p>
  20165. </dd>
  20166. <dt>&lsquo;<samp>irange</samp>&rsquo;</dt>
  20167. <dd><p>Override input color range. Same accepted values as <a href="#range">range</a>.
  20168. </p>
  20169. </dd>
  20170. </dl>
  20171. <p>The filter converts the transfer characteristics, color space and color
  20172. primaries to the specified user values. The output value, if not specified,
  20173. is set to a default value based on the &quot;all&quot; property. If that property is
  20174. also not specified, the filter will log an error. The output color range and
  20175. format default to the same value as the input color range and format. The
  20176. input transfer characteristics, color space, color primaries and color range
  20177. should be set on the input data. If any of these are missing, the filter will
  20178. log an error and no conversion will take place.
  20179. </p>
  20180. <p>For example to convert the input to SMPTE-240M, use the command:
  20181. </p><div class="example">
  20182. <pre class="example">colorspace=smpte240m
  20183. </pre></div>
  20184. <a name="convolution"></a>
  20185. <h2 class="section"><a href="ffprobe-all.html#toc-convolution">32.30 convolution</a></h2>
  20186. <p>Apply convolution of 3x3, 5x5, 7x7 or horizontal/vertical up to 49 elements.
  20187. </p>
  20188. <p>The filter accepts the following options:
  20189. </p>
  20190. <dl compact="compact">
  20191. <dt>&lsquo;<samp>0m</samp>&rsquo;</dt>
  20192. <dt>&lsquo;<samp>1m</samp>&rsquo;</dt>
  20193. <dt>&lsquo;<samp>2m</samp>&rsquo;</dt>
  20194. <dt>&lsquo;<samp>3m</samp>&rsquo;</dt>
  20195. <dd><p>Set matrix for each plane.
  20196. Matrix is sequence of 9, 25 or 49 signed integers in <var>square</var> mode,
  20197. and from 1 to 49 odd number of signed integers in <var>row</var> mode.
  20198. </p>
  20199. </dd>
  20200. <dt>&lsquo;<samp>0rdiv</samp>&rsquo;</dt>
  20201. <dt>&lsquo;<samp>1rdiv</samp>&rsquo;</dt>
  20202. <dt>&lsquo;<samp>2rdiv</samp>&rsquo;</dt>
  20203. <dt>&lsquo;<samp>3rdiv</samp>&rsquo;</dt>
  20204. <dd><p>Set multiplier for calculated value for each plane.
  20205. If unset or 0, it will be sum of all matrix elements.
  20206. </p>
  20207. </dd>
  20208. <dt>&lsquo;<samp>0bias</samp>&rsquo;</dt>
  20209. <dt>&lsquo;<samp>1bias</samp>&rsquo;</dt>
  20210. <dt>&lsquo;<samp>2bias</samp>&rsquo;</dt>
  20211. <dt>&lsquo;<samp>3bias</samp>&rsquo;</dt>
  20212. <dd><p>Set bias for each plane. This value is added to the result of the multiplication.
  20213. Useful for making the overall image brighter or darker. Default is 0.0.
  20214. </p>
  20215. </dd>
  20216. <dt>&lsquo;<samp>0mode</samp>&rsquo;</dt>
  20217. <dt>&lsquo;<samp>1mode</samp>&rsquo;</dt>
  20218. <dt>&lsquo;<samp>2mode</samp>&rsquo;</dt>
  20219. <dt>&lsquo;<samp>3mode</samp>&rsquo;</dt>
  20220. <dd><p>Set matrix mode for each plane. Can be <var>square</var>, <var>row</var> or <var>column</var>.
  20221. Default is <var>square</var>.
  20222. </p></dd>
  20223. </dl>
  20224. <a name="Examples-122"></a>
  20225. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-122">32.30.1 Examples</a></h3>
  20226. <ul>
  20227. <li>
  20228. Apply sharpen:
  20229. <div class="example">
  20230. <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;
  20231. </pre></div>
  20232. </li><li>
  20233. Apply blur:
  20234. <div class="example">
  20235. <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;
  20236. </pre></div>
  20237. </li><li>
  20238. Apply edge enhance:
  20239. <div class="example">
  20240. <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;
  20241. </pre></div>
  20242. </li><li>
  20243. Apply edge detect:
  20244. <div class="example">
  20245. <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;
  20246. </pre></div>
  20247. </li><li>
  20248. Apply laplacian edge detector which includes diagonals:
  20249. <div class="example">
  20250. <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;
  20251. </pre></div>
  20252. </li><li>
  20253. Apply emboss:
  20254. <div class="example">
  20255. <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;
  20256. </pre></div>
  20257. </li></ul>
  20258. <a name="convolve"></a>
  20259. <h2 class="section"><a href="ffprobe-all.html#toc-convolve">32.31 convolve</a></h2>
  20260. <p>Apply 2D convolution of video stream in frequency domain using second stream
  20261. as impulse.
  20262. </p>
  20263. <p>The filter accepts the following options:
  20264. </p>
  20265. <dl compact="compact">
  20266. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  20267. <dd><p>Set which planes to process.
  20268. </p>
  20269. </dd>
  20270. <dt>&lsquo;<samp>impulse</samp>&rsquo;</dt>
  20271. <dd><p>Set which impulse video frames will be processed, can be <var>first</var>
  20272. or <var>all</var>. Default is <var>all</var>.
  20273. </p></dd>
  20274. </dl>
  20275. <p>The <code>convolve</code> filter also supports the <a href="#framesync">framesync</a> options.
  20276. </p>
  20277. <a name="copy"></a>
  20278. <h2 class="section"><a href="ffprobe-all.html#toc-copy">32.32 copy</a></h2>
  20279. <p>Copy the input video source unchanged to the output. This is mainly useful for
  20280. testing purposes.
  20281. </p>
  20282. <p><a name="coreimage"></a>
  20283. </p><a name="coreimage-1"></a>
  20284. <h2 class="section"><a href="ffprobe-all.html#toc-coreimage-1">32.33 coreimage</a></h2>
  20285. <p>Video filtering on GPU using Apple&rsquo;s CoreImage API on OSX.
  20286. </p>
  20287. <p>Hardware acceleration is based on an OpenGL context. Usually, this means it is
  20288. processed by video hardware. However, software-based OpenGL implementations
  20289. exist which means there is no guarantee for hardware processing. It depends on
  20290. the respective OSX.
  20291. </p>
  20292. <p>There are many filters and image generators provided by Apple that come with a
  20293. large variety of options. The filter has to be referenced by its name along
  20294. with its options.
  20295. </p>
  20296. <p>The coreimage filter accepts the following options:
  20297. </p><dl compact="compact">
  20298. <dt>&lsquo;<samp>list_filters</samp>&rsquo;</dt>
  20299. <dd><p>List all available filters and generators along with all their respective
  20300. options as well as possible minimum and maximum values along with the default
  20301. values.
  20302. </p><div class="example">
  20303. <pre class="example">list_filters=true
  20304. </pre></div>
  20305. </dd>
  20306. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  20307. <dd><p>Specify all filters by their respective name and options.
  20308. Use <var>list_filters</var> to determine all valid filter names and options.
  20309. Numerical options are specified by a float value and are automatically clamped
  20310. to their respective value range. Vector and color options have to be specified
  20311. by a list of space separated float values. Character escaping has to be done.
  20312. A special option name <code>default</code> is available to use default options for a
  20313. filter.
  20314. </p>
  20315. <p>It is required to specify either <code>default</code> or at least one of the filter options.
  20316. All omitted options are used with their default values.
  20317. The syntax of the filter string is as follows:
  20318. </p><div class="example">
  20319. <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;][@...]][#...]
  20320. </pre></div>
  20321. </dd>
  20322. <dt>&lsquo;<samp>output_rect</samp>&rsquo;</dt>
  20323. <dd><p>Specify a rectangle where the output of the filter chain is copied into the
  20324. input image. It is given by a list of space separated float values:
  20325. </p><div class="example">
  20326. <pre class="example">output_rect=x\ y\ width\ height
  20327. </pre></div>
  20328. <p>If not given, the output rectangle equals the dimensions of the input image.
  20329. The output rectangle is automatically cropped at the borders of the input
  20330. image. Negative values are valid for each component.
  20331. </p><div class="example">
  20332. <pre class="example">output_rect=25\ 25\ 100\ 100
  20333. </pre></div>
  20334. </dd>
  20335. </dl>
  20336. <p>Several filters can be chained for successive processing without GPU-HOST
  20337. transfers allowing for fast processing of complex filter chains.
  20338. Currently, only filters with zero (generators) or exactly one (filters) input
  20339. image and one output image are supported. Also, transition filters are not yet
  20340. usable as intended.
  20341. </p>
  20342. <p>Some filters generate output images with additional padding depending on the
  20343. respective filter kernel. The padding is automatically removed to ensure the
  20344. filter output has the same size as the input image.
  20345. </p>
  20346. <p>For image generators, the size of the output image is determined by the
  20347. previous output image of the filter chain or the input image of the whole
  20348. filterchain, respectively. The generators do not use the pixel information of
  20349. this image to generate their output. However, the generated output is
  20350. blended onto this image, resulting in partial or complete coverage of the
  20351. output image.
  20352. </p>
  20353. <p>The <a href="#coreimagesrc">coreimagesrc</a> video source can be used for generating input images
  20354. which are directly fed into the filter chain. By using it, providing input
  20355. images by another video source or an input video is not required.
  20356. </p>
  20357. <a name="Examples-64"></a>
  20358. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-64">32.33.1 Examples</a></h3>
  20359. <ul>
  20360. <li>
  20361. List all filters available:
  20362. <div class="example">
  20363. <pre class="example">coreimage=list_filters=true
  20364. </pre></div>
  20365. </li><li>
  20366. Use the CIBoxBlur filter with default options to blur an image:
  20367. <div class="example">
  20368. <pre class="example">coreimage=filter=CIBoxBlur@default
  20369. </pre></div>
  20370. </li><li>
  20371. Use a filter chain with CISepiaTone at default values and CIVignetteEffect with
  20372. its center at 100x100 and a radius of 50 pixels:
  20373. <div class="example">
  20374. <pre class="example">coreimage=filter=CIBoxBlur@default#CIVignetteEffect@inputCenter=100\ 100@inputRadius=50
  20375. </pre></div>
  20376. </li><li>
  20377. Use nullsrc and CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
  20378. given as complete and escaped command-line for Apple&rsquo;s standard bash shell:
  20379. <div class="example">
  20380. <pre class="example">ffmpeg -f lavfi -i nullsrc=s=100x100,coreimage=filter=CIQRCodeGenerator@inputMessage=https\\\\\://FFmpeg.org/@inputCorrectionLevel=H -frames:v 1 QRCode.png
  20381. </pre></div>
  20382. </li></ul>
  20383. <a name="cover_005frect"></a>
  20384. <h2 class="section"><a href="ffprobe-all.html#toc-cover_005frect">32.34 cover_rect</a></h2>
  20385. <p>Cover a rectangular object
  20386. </p>
  20387. <p>It accepts the following options:
  20388. </p>
  20389. <dl compact="compact">
  20390. <dt>&lsquo;<samp>cover</samp>&rsquo;</dt>
  20391. <dd><p>Filepath of the optional cover image, needs to be in yuv420.
  20392. </p>
  20393. </dd>
  20394. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  20395. <dd><p>Set covering mode.
  20396. </p>
  20397. <p>It accepts the following values:
  20398. </p><dl compact="compact">
  20399. <dt>&lsquo;<samp>cover</samp>&rsquo;</dt>
  20400. <dd><p>cover it by the supplied image
  20401. </p></dd>
  20402. <dt>&lsquo;<samp>blur</samp>&rsquo;</dt>
  20403. <dd><p>cover it by interpolating the surrounding pixels
  20404. </p></dd>
  20405. </dl>
  20406. <p>Default value is <var>blur</var>.
  20407. </p></dd>
  20408. </dl>
  20409. <a name="Examples-72"></a>
  20410. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-72">32.34.1 Examples</a></h3>
  20411. <ul>
  20412. <li>
  20413. Cover a rectangular object by the supplied image of a given video using <code>ffmpeg</code>:
  20414. <div class="example">
  20415. <pre class="example">ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
  20416. </pre></div>
  20417. </li></ul>
  20418. <a name="crop"></a>
  20419. <h2 class="section"><a href="ffprobe-all.html#toc-crop">32.35 crop</a></h2>
  20420. <p>Crop the input video to given dimensions.
  20421. </p>
  20422. <p>It accepts the following parameters:
  20423. </p>
  20424. <dl compact="compact">
  20425. <dt>&lsquo;<samp>w, out_w</samp>&rsquo;</dt>
  20426. <dd><p>The width of the output video. It defaults to <code>iw</code>.
  20427. This expression is evaluated only once during the filter
  20428. configuration, or when the &lsquo;<samp>w</samp>&rsquo; or &lsquo;<samp>out_w</samp>&rsquo; command is sent.
  20429. </p>
  20430. </dd>
  20431. <dt>&lsquo;<samp>h, out_h</samp>&rsquo;</dt>
  20432. <dd><p>The height of the output video. It defaults to <code>ih</code>.
  20433. This expression is evaluated only once during the filter
  20434. configuration, or when the &lsquo;<samp>h</samp>&rsquo; or &lsquo;<samp>out_h</samp>&rsquo; command is sent.
  20435. </p>
  20436. </dd>
  20437. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20438. <dd><p>The horizontal position, in the input video, of the left edge of the output
  20439. video. It defaults to <code>(in_w-out_w)/2</code>.
  20440. This expression is evaluated per-frame.
  20441. </p>
  20442. </dd>
  20443. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20444. <dd><p>The vertical position, in the input video, of the top edge of the output video.
  20445. It defaults to <code>(in_h-out_h)/2</code>.
  20446. This expression is evaluated per-frame.
  20447. </p>
  20448. </dd>
  20449. <dt>&lsquo;<samp>keep_aspect</samp>&rsquo;</dt>
  20450. <dd><p>If set to 1 will force the output display aspect ratio
  20451. to be the same of the input, by changing the output sample aspect
  20452. ratio. It defaults to 0.
  20453. </p>
  20454. </dd>
  20455. <dt>&lsquo;<samp>exact</samp>&rsquo;</dt>
  20456. <dd><p>Enable exact cropping. If enabled, subsampled videos will be cropped at exact
  20457. width/height/x/y as specified and will not be rounded to nearest smaller value.
  20458. It defaults to 0.
  20459. </p></dd>
  20460. </dl>
  20461. <p>The <var>out_w</var>, <var>out_h</var>, <var>x</var>, <var>y</var> parameters are
  20462. expressions containing the following constants:
  20463. </p>
  20464. <dl compact="compact">
  20465. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20466. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20467. <dd><p>The computed values for <var>x</var> and <var>y</var>. They are evaluated for
  20468. each new frame.
  20469. </p>
  20470. </dd>
  20471. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  20472. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  20473. <dd><p>The input width and height.
  20474. </p>
  20475. </dd>
  20476. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  20477. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  20478. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  20479. </p>
  20480. </dd>
  20481. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  20482. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  20483. <dd><p>The output (cropped) width and height.
  20484. </p>
  20485. </dd>
  20486. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  20487. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  20488. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  20489. </p>
  20490. </dd>
  20491. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  20492. <dd><p>same as <var>iw</var> / <var>ih</var>
  20493. </p>
  20494. </dd>
  20495. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  20496. <dd><p>input sample aspect ratio
  20497. </p>
  20498. </dd>
  20499. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  20500. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  20501. </p>
  20502. </dd>
  20503. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  20504. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  20505. <dd><p>horizontal and vertical chroma subsample values. For example for the
  20506. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  20507. </p>
  20508. </dd>
  20509. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  20510. <dd><p>The number of the input frame, starting from 0.
  20511. </p>
  20512. </dd>
  20513. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  20514. <dd><p>the position in the file of the input frame, NAN if unknown
  20515. </p>
  20516. </dd>
  20517. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  20518. <dd><p>The timestamp expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  20519. </p>
  20520. </dd>
  20521. </dl>
  20522. <p>The expression for <var>out_w</var> may depend on the value of <var>out_h</var>,
  20523. and the expression for <var>out_h</var> may depend on <var>out_w</var>, but they
  20524. cannot depend on <var>x</var> and <var>y</var>, as <var>x</var> and <var>y</var> are
  20525. evaluated after <var>out_w</var> and <var>out_h</var>.
  20526. </p>
  20527. <p>The <var>x</var> and <var>y</var> parameters specify the expressions for the
  20528. position of the top-left corner of the output (non-cropped) area. They
  20529. are evaluated for each frame. If the evaluated value is not valid, it
  20530. is approximated to the nearest valid value.
  20531. </p>
  20532. <p>The expression for <var>x</var> may depend on <var>y</var>, and the expression
  20533. for <var>y</var> may depend on <var>x</var>.
  20534. </p>
  20535. <a name="Examples-134"></a>
  20536. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-134">32.35.1 Examples</a></h3>
  20537. <ul>
  20538. <li>
  20539. Crop area with size 100x100 at position (12,34).
  20540. <div class="example">
  20541. <pre class="example">crop=100:100:12:34
  20542. </pre></div>
  20543. <p>Using named options, the example above becomes:
  20544. </p><div class="example">
  20545. <pre class="example">crop=w=100:h=100:x=12:y=34
  20546. </pre></div>
  20547. </li><li>
  20548. Crop the central input area with size 100x100:
  20549. <div class="example">
  20550. <pre class="example">crop=100:100
  20551. </pre></div>
  20552. </li><li>
  20553. Crop the central input area with size 2/3 of the input video:
  20554. <div class="example">
  20555. <pre class="example">crop=2/3*in_w:2/3*in_h
  20556. </pre></div>
  20557. </li><li>
  20558. Crop the input video central square:
  20559. <div class="example">
  20560. <pre class="example">crop=out_w=in_h
  20561. crop=in_h
  20562. </pre></div>
  20563. </li><li>
  20564. Delimit the rectangle with the top-left corner placed at position
  20565. 100:100 and the right-bottom corner corresponding to the right-bottom
  20566. corner of the input image.
  20567. <div class="example">
  20568. <pre class="example">crop=in_w-100:in_h-100:100:100
  20569. </pre></div>
  20570. </li><li>
  20571. Crop 10 pixels from the left and right borders, and 20 pixels from
  20572. the top and bottom borders
  20573. <div class="example">
  20574. <pre class="example">crop=in_w-2*10:in_h-2*20
  20575. </pre></div>
  20576. </li><li>
  20577. Keep only the bottom right quarter of the input image:
  20578. <div class="example">
  20579. <pre class="example">crop=in_w/2:in_h/2:in_w/2:in_h/2
  20580. </pre></div>
  20581. </li><li>
  20582. Crop height for getting Greek harmony:
  20583. <div class="example">
  20584. <pre class="example">crop=in_w:1/PHI*in_w
  20585. </pre></div>
  20586. </li><li>
  20587. Apply trembling effect:
  20588. <div class="example">
  20589. <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)
  20590. </pre></div>
  20591. </li><li>
  20592. Apply erratic camera effect depending on timestamp:
  20593. <div class="example">
  20594. <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;
  20595. </pre></div>
  20596. </li><li>
  20597. Set x depending on the value of y:
  20598. <div class="example">
  20599. <pre class="example">crop=in_w/2:in_h/2:y:10+10*sin(n/10)
  20600. </pre></div>
  20601. </li></ul>
  20602. <a name="Commands-31"></a>
  20603. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-31">32.35.2 Commands</a></h3>
  20604. <p>This filter supports the following commands:
  20605. </p><dl compact="compact">
  20606. <dt>&lsquo;<samp>w, out_w</samp>&rsquo;</dt>
  20607. <dt>&lsquo;<samp>h, out_h</samp>&rsquo;</dt>
  20608. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20609. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20610. <dd><p>Set width/height of the output video and the horizontal/vertical position
  20611. in the input video.
  20612. The command accepts the same syntax of the corresponding option.
  20613. </p>
  20614. <p>If the specified expression is not valid, it is kept at its current
  20615. value.
  20616. </p></dd>
  20617. </dl>
  20618. <a name="cropdetect"></a>
  20619. <h2 class="section"><a href="ffprobe-all.html#toc-cropdetect">32.36 cropdetect</a></h2>
  20620. <p>Auto-detect the crop size.
  20621. </p>
  20622. <p>It calculates the necessary cropping parameters and prints the
  20623. recommended parameters via the logging system. The detected dimensions
  20624. correspond to the non-black area of the input video.
  20625. </p>
  20626. <p>It accepts the following parameters:
  20627. </p>
  20628. <dl compact="compact">
  20629. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  20630. <dd><p>Set higher black value threshold, which can be optionally specified
  20631. from nothing (0) to everything (255 for 8-bit based formats). An intensity
  20632. value greater to the set value is considered non-black. It defaults to 24.
  20633. You can also specify a value between 0.0 and 1.0 which will be scaled depending
  20634. on the bitdepth of the pixel format.
  20635. </p>
  20636. </dd>
  20637. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  20638. <dd><p>The value which the width/height should be divisible by. It defaults to
  20639. 16. The offset is automatically adjusted to center the video. Use 2 to
  20640. get only even dimensions (needed for 4:2:2 video). 16 is best when
  20641. encoding to most video codecs.
  20642. </p>
  20643. </dd>
  20644. <dt>&lsquo;<samp>reset_count, reset</samp>&rsquo;</dt>
  20645. <dd><p>Set the counter that determines after how many frames cropdetect will
  20646. reset the previously detected largest video area and start over to
  20647. detect the current optimal crop area. Default value is 0.
  20648. </p>
  20649. <p>This can be useful when channel logos distort the video area. 0
  20650. indicates &rsquo;never reset&rsquo;, and returns the largest area encountered during
  20651. playback.
  20652. </p></dd>
  20653. </dl>
  20654. <p><a name="cue"></a>
  20655. </p><a name="cue-1"></a>
  20656. <h2 class="section"><a href="ffprobe-all.html#toc-cue-1">32.37 cue</a></h2>
  20657. <p>Delay video filtering until a given wallclock timestamp. The filter first
  20658. passes on &lsquo;<samp>preroll</samp>&rsquo; amount of frames, then it buffers at most
  20659. &lsquo;<samp>buffer</samp>&rsquo; amount of frames and waits for the cue. After reaching the cue
  20660. it forwards the buffered frames and also any subsequent frames coming in its
  20661. input.
  20662. </p>
  20663. <p>The filter can be used synchronize the output of multiple ffmpeg processes for
  20664. realtime output devices like decklink. By putting the delay in the filtering
  20665. chain and pre-buffering frames the process can pass on data to output almost
  20666. immediately after the target wallclock timestamp is reached.
  20667. </p>
  20668. <p>Perfect frame accuracy cannot be guaranteed, but the result is good enough for
  20669. some use cases.
  20670. </p>
  20671. <dl compact="compact">
  20672. <dt>&lsquo;<samp>cue</samp>&rsquo;</dt>
  20673. <dd><p>The cue timestamp expressed in a UNIX timestamp in microseconds. Default is 0.
  20674. </p>
  20675. </dd>
  20676. <dt>&lsquo;<samp>preroll</samp>&rsquo;</dt>
  20677. <dd><p>The duration of content to pass on as preroll expressed in seconds. Default is 0.
  20678. </p>
  20679. </dd>
  20680. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  20681. <dd><p>The maximum duration of content to buffer before waiting for the cue expressed
  20682. in seconds. Default is 0.
  20683. </p>
  20684. </dd>
  20685. </dl>
  20686. <p><a name="curves"></a>
  20687. </p><a name="curves-1"></a>
  20688. <h2 class="section"><a href="ffprobe-all.html#toc-curves-1">32.38 curves</a></h2>
  20689. <p>Apply color adjustments using curves.
  20690. </p>
  20691. <p>This filter is similar to the Adobe Photoshop and GIMP curves tools. Each
  20692. component (red, green and blue) has its values defined by <var>N</var> key points
  20693. tied from each other using a smooth curve. The x-axis represents the pixel
  20694. values from the input frame, and the y-axis the new pixel values to be set for
  20695. the output frame.
  20696. </p>
  20697. <p>By default, a component curve is defined by the two points <var>(0;0)</var> and
  20698. <var>(1;1)</var>. This creates a straight line where each original pixel value is
  20699. &quot;adjusted&quot; to its own value, which means no change to the image.
  20700. </p>
  20701. <p>The filter allows you to redefine these two points and add some more. A new
  20702. curve (using a natural cubic spline interpolation) will be define to pass
  20703. smoothly through all these new coordinates. The new defined points needs to be
  20704. strictly increasing over the x-axis, and their <var>x</var> and <var>y</var> values must
  20705. be in the <var>[0;1]</var> interval. If the computed curves happened to go outside
  20706. the vector spaces, the values will be clipped accordingly.
  20707. </p>
  20708. <p>The filter accepts the following options:
  20709. </p>
  20710. <dl compact="compact">
  20711. <dt>&lsquo;<samp>preset</samp>&rsquo;</dt>
  20712. <dd><p>Select one of the available color presets. This option can be used in addition
  20713. to the &lsquo;<samp>r</samp>&rsquo;, &lsquo;<samp>g</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; parameters; in this case, the later
  20714. options takes priority on the preset values.
  20715. Available presets are:
  20716. </p><dl compact="compact">
  20717. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  20718. <dt>&lsquo;<samp>color_negative</samp>&rsquo;</dt>
  20719. <dt>&lsquo;<samp>cross_process</samp>&rsquo;</dt>
  20720. <dt>&lsquo;<samp>darker</samp>&rsquo;</dt>
  20721. <dt>&lsquo;<samp>increase_contrast</samp>&rsquo;</dt>
  20722. <dt>&lsquo;<samp>lighter</samp>&rsquo;</dt>
  20723. <dt>&lsquo;<samp>linear_contrast</samp>&rsquo;</dt>
  20724. <dt>&lsquo;<samp>medium_contrast</samp>&rsquo;</dt>
  20725. <dt>&lsquo;<samp>negative</samp>&rsquo;</dt>
  20726. <dt>&lsquo;<samp>strong_contrast</samp>&rsquo;</dt>
  20727. <dt>&lsquo;<samp>vintage</samp>&rsquo;</dt>
  20728. </dl>
  20729. <p>Default is <code>none</code>.
  20730. </p></dd>
  20731. <dt>&lsquo;<samp>master, m</samp>&rsquo;</dt>
  20732. <dd><p>Set the master key points. These points will define a second pass mapping. It
  20733. is sometimes called a &quot;luminance&quot; or &quot;value&quot; mapping. It can be used with
  20734. &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
  20735. post-processing LUT.
  20736. </p></dd>
  20737. <dt>&lsquo;<samp>red, r</samp>&rsquo;</dt>
  20738. <dd><p>Set the key points for the red component.
  20739. </p></dd>
  20740. <dt>&lsquo;<samp>green, g</samp>&rsquo;</dt>
  20741. <dd><p>Set the key points for the green component.
  20742. </p></dd>
  20743. <dt>&lsquo;<samp>blue, b</samp>&rsquo;</dt>
  20744. <dd><p>Set the key points for the blue component.
  20745. </p></dd>
  20746. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  20747. <dd><p>Set the key points for all components (not including master).
  20748. Can be used in addition to the other key points component
  20749. options. In this case, the unset component(s) will fallback on this
  20750. &lsquo;<samp>all</samp>&rsquo; setting.
  20751. </p></dd>
  20752. <dt>&lsquo;<samp>psfile</samp>&rsquo;</dt>
  20753. <dd><p>Specify a Photoshop curves file (<code>.acv</code>) to import the settings from.
  20754. </p></dd>
  20755. <dt>&lsquo;<samp>plot</samp>&rsquo;</dt>
  20756. <dd><p>Save Gnuplot script of the curves in specified file.
  20757. </p></dd>
  20758. </dl>
  20759. <p>To avoid some filtergraph syntax conflicts, each key points list need to be
  20760. defined using the following syntax: <code>x0/y0 x1/y1 x2/y2 ...</code>.
  20761. </p>
  20762. <a name="Examples-18"></a>
  20763. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-18">32.38.1 Examples</a></h3>
  20764. <ul>
  20765. <li>
  20766. Increase slightly the middle level of blue:
  20767. <div class="example">
  20768. <pre class="example">curves=blue='0/0 0.5/0.58 1/1'
  20769. </pre></div>
  20770. </li><li>
  20771. Vintage effect:
  20772. <div class="example">
  20773. <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'
  20774. </pre></div>
  20775. <p>Here we obtain the following coordinates for each components:
  20776. </p><dl compact="compact">
  20777. <dt><var>red</var></dt>
  20778. <dd><p><code>(0;0.11) (0.42;0.51) (1;0.95)</code>
  20779. </p></dd>
  20780. <dt><var>green</var></dt>
  20781. <dd><p><code>(0;0) (0.50;0.48) (1;1)</code>
  20782. </p></dd>
  20783. <dt><var>blue</var></dt>
  20784. <dd><p><code>(0;0.22) (0.49;0.44) (1;0.80)</code>
  20785. </p></dd>
  20786. </dl>
  20787. </li><li>
  20788. The previous example can also be achieved with the associated built-in preset:
  20789. <div class="example">
  20790. <pre class="example">curves=preset=vintage
  20791. </pre></div>
  20792. </li><li>
  20793. Or simply:
  20794. <div class="example">
  20795. <pre class="example">curves=vintage
  20796. </pre></div>
  20797. </li><li>
  20798. Use a Photoshop preset and redefine the points of the green component:
  20799. <div class="example">
  20800. <pre class="example">curves=psfile='MyCurvesPresets/purple.acv':green='0/0 0.45/0.53 1/1'
  20801. </pre></div>
  20802. </li><li>
  20803. Check out the curves of the <code>cross_process</code> profile using <code>ffmpeg</code>
  20804. and <code>gnuplot</code>:
  20805. <div class="example">
  20806. <pre class="example">ffmpeg -f lavfi -i color -vf curves=cross_process:plot=/tmp/curves.plt -frames:v 1 -f null -
  20807. gnuplot -p /tmp/curves.plt
  20808. </pre></div>
  20809. </li></ul>
  20810. <a name="datascope"></a>
  20811. <h2 class="section"><a href="ffprobe-all.html#toc-datascope">32.39 datascope</a></h2>
  20812. <p>Video data analysis filter.
  20813. </p>
  20814. <p>This filter shows hexadecimal pixel values of part of video.
  20815. </p>
  20816. <p>The filter accepts the following options:
  20817. </p>
  20818. <dl compact="compact">
  20819. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  20820. <dd><p>Set output video size.
  20821. </p>
  20822. </dd>
  20823. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  20824. <dd><p>Set x offset from where to pick pixels.
  20825. </p>
  20826. </dd>
  20827. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  20828. <dd><p>Set y offset from where to pick pixels.
  20829. </p>
  20830. </dd>
  20831. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  20832. <dd><p>Set scope mode, can be one of the following:
  20833. </p><dl compact="compact">
  20834. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  20835. <dd><p>Draw hexadecimal pixel values with white color on black background.
  20836. </p>
  20837. </dd>
  20838. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  20839. <dd><p>Draw hexadecimal pixel values with input video pixel color on black
  20840. background.
  20841. </p>
  20842. </dd>
  20843. <dt>&lsquo;<samp>color2</samp>&rsquo;</dt>
  20844. <dd><p>Draw hexadecimal pixel values on color background picked from input video,
  20845. the text color is picked in such way so its always visible.
  20846. </p></dd>
  20847. </dl>
  20848. </dd>
  20849. <dt>&lsquo;<samp>axis</samp>&rsquo;</dt>
  20850. <dd><p>Draw rows and columns numbers on left and top of video.
  20851. </p>
  20852. </dd>
  20853. <dt>&lsquo;<samp>opacity</samp>&rsquo;</dt>
  20854. <dd><p>Set background opacity.
  20855. </p>
  20856. </dd>
  20857. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  20858. <dd><p>Set display number format. Can be <code>hex</code>, or <code>dec</code>. Default is <code>hex</code>.
  20859. </p></dd>
  20860. </dl>
  20861. <a name="dctdnoiz"></a>
  20862. <h2 class="section"><a href="ffprobe-all.html#toc-dctdnoiz">32.40 dctdnoiz</a></h2>
  20863. <p>Denoise frames using 2D DCT (frequency domain filtering).
  20864. </p>
  20865. <p>This filter is not designed for real time.
  20866. </p>
  20867. <p>The filter accepts the following options:
  20868. </p>
  20869. <dl compact="compact">
  20870. <dt>&lsquo;<samp>sigma, s</samp>&rsquo;</dt>
  20871. <dd><p>Set the noise sigma constant.
  20872. </p>
  20873. <p>This <var>sigma</var> defines a hard threshold of <code>3 * sigma</code>; every DCT
  20874. coefficient (absolute value) below this threshold with be dropped.
  20875. </p>
  20876. <p>If you need a more advanced filtering, see &lsquo;<samp>expr</samp>&rsquo;.
  20877. </p>
  20878. <p>Default is <code>0</code>.
  20879. </p>
  20880. </dd>
  20881. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  20882. <dd><p>Set number overlapping pixels for each block. Since the filter can be slow, you
  20883. may want to reduce this value, at the cost of a less effective filter and the
  20884. risk of various artefacts.
  20885. </p>
  20886. <p>If the overlapping value doesn&rsquo;t permit processing the whole input width or
  20887. height, a warning will be displayed and according borders won&rsquo;t be denoised.
  20888. </p>
  20889. <p>Default value is <var>blocksize</var>-1, which is the best possible setting.
  20890. </p>
  20891. </dd>
  20892. <dt>&lsquo;<samp>expr, e</samp>&rsquo;</dt>
  20893. <dd><p>Set the coefficient factor expression.
  20894. </p>
  20895. <p>For each coefficient of a DCT block, this expression will be evaluated as a
  20896. multiplier value for the coefficient.
  20897. </p>
  20898. <p>If this is option is set, the &lsquo;<samp>sigma</samp>&rsquo; option will be ignored.
  20899. </p>
  20900. <p>The absolute value of the coefficient can be accessed through the <var>c</var>
  20901. variable.
  20902. </p>
  20903. </dd>
  20904. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  20905. <dd><p>Set the <var>blocksize</var> using the number of bits. <code>1&lt;&lt;<var>n</var></code> defines the
  20906. <var>blocksize</var>, which is the width and height of the processed blocks.
  20907. </p>
  20908. <p>The default value is <var>3</var> (8x8) and can be raised to <var>4</var> for a
  20909. <var>blocksize</var> of 16x16. Note that changing this setting has huge consequences
  20910. on the speed processing. Also, a larger block size does not necessarily means a
  20911. better de-noising.
  20912. </p></dd>
  20913. </dl>
  20914. <a name="Examples-113"></a>
  20915. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-113">32.40.1 Examples</a></h3>
  20916. <p>Apply a denoise with a &lsquo;<samp>sigma</samp>&rsquo; of <code>4.5</code>:
  20917. </p><div class="example">
  20918. <pre class="example">dctdnoiz=4.5
  20919. </pre></div>
  20920. <p>The same operation can be achieved using the expression system:
  20921. </p><div class="example">
  20922. <pre class="example">dctdnoiz=e='gte(c, 4.5*3)'
  20923. </pre></div>
  20924. <p>Violent denoise using a block size of <code>16x16</code>:
  20925. </p><div class="example">
  20926. <pre class="example">dctdnoiz=15:n=4
  20927. </pre></div>
  20928. <a name="deband"></a>
  20929. <h2 class="section"><a href="ffprobe-all.html#toc-deband">32.41 deband</a></h2>
  20930. <p>Remove banding artifacts from input video.
  20931. It works by replacing banded pixels with average value of referenced pixels.
  20932. </p>
  20933. <p>The filter accepts the following options:
  20934. </p>
  20935. <dl compact="compact">
  20936. <dt>&lsquo;<samp>1thr</samp>&rsquo;</dt>
  20937. <dt>&lsquo;<samp>2thr</samp>&rsquo;</dt>
  20938. <dt>&lsquo;<samp>3thr</samp>&rsquo;</dt>
  20939. <dt>&lsquo;<samp>4thr</samp>&rsquo;</dt>
  20940. <dd><p>Set banding detection threshold for each plane. Default is 0.02.
  20941. Valid range is 0.00003 to 0.5.
  20942. If difference between current pixel and reference pixel is less than threshold,
  20943. it will be considered as banded.
  20944. </p>
  20945. </dd>
  20946. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  20947. <dd><p>Banding detection range in pixels. Default is 16. If positive, random number
  20948. in range 0 to set value will be used. If negative, exact absolute value
  20949. will be used.
  20950. The range defines square of four pixels around current pixel.
  20951. </p>
  20952. </dd>
  20953. <dt>&lsquo;<samp>direction, d</samp>&rsquo;</dt>
  20954. <dd><p>Set direction in radians from which four pixel will be compared. If positive,
  20955. random direction from 0 to set direction will be picked. If negative, exact of
  20956. absolute value will be picked. For example direction 0, -PI or -2*PI radians
  20957. will pick only pixels on same row and -PI/2 will pick only pixels on same
  20958. column.
  20959. </p>
  20960. </dd>
  20961. <dt>&lsquo;<samp>blur, b</samp>&rsquo;</dt>
  20962. <dd><p>If enabled, current pixel is compared with average value of all four
  20963. surrounding pixels. The default is enabled. If disabled current pixel is
  20964. compared with all four surrounding pixels. The pixel is considered banded
  20965. if only all four differences with surrounding pixels are less than threshold.
  20966. </p>
  20967. </dd>
  20968. <dt>&lsquo;<samp>coupling, c</samp>&rsquo;</dt>
  20969. <dd><p>If enabled, current pixel is changed if and only if all pixel components are banded,
  20970. e.g. banding detection threshold is triggered for all color components.
  20971. The default is disabled.
  20972. </p></dd>
  20973. </dl>
  20974. <a name="deblock"></a>
  20975. <h2 class="section"><a href="ffprobe-all.html#toc-deblock">32.42 deblock</a></h2>
  20976. <p>Remove blocking artifacts from input video.
  20977. </p>
  20978. <p>The filter accepts the following options:
  20979. </p>
  20980. <dl compact="compact">
  20981. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  20982. <dd><p>Set filter type, can be <var>weak</var> or <var>strong</var>. Default is <var>strong</var>.
  20983. This controls what kind of deblocking is applied.
  20984. </p>
  20985. </dd>
  20986. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  20987. <dd><p>Set size of block, allowed range is from 4 to 512. Default is <var>8</var>.
  20988. </p>
  20989. </dd>
  20990. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  20991. <dt>&lsquo;<samp>beta</samp>&rsquo;</dt>
  20992. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  20993. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  20994. <dd><p>Set blocking detection thresholds. Allowed range is 0 to 1.
  20995. Defaults are: <var>0.098</var> for <var>alpha</var> and <var>0.05</var> for the rest.
  20996. Using higher threshold gives more deblocking strength.
  20997. Setting <var>alpha</var> controls threshold detection at exact edge of block.
  20998. Remaining options controls threshold detection near the edge. Each one for
  20999. below/above or left/right. Setting any of those to <var>0</var> disables
  21000. deblocking.
  21001. </p>
  21002. </dd>
  21003. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  21004. <dd><p>Set planes to filter. Default is to filter all available planes.
  21005. </p></dd>
  21006. </dl>
  21007. <a name="Examples-105"></a>
  21008. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-105">32.42.1 Examples</a></h3>
  21009. <ul>
  21010. <li>
  21011. Deblock using weak filter and block size of 4 pixels.
  21012. <div class="example">
  21013. <pre class="example">deblock=filter=weak:block=4
  21014. </pre></div>
  21015. </li><li>
  21016. Deblock using strong filter, block size of 4 pixels and custom thresholds for
  21017. deblocking more edges.
  21018. <div class="example">
  21019. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05
  21020. </pre></div>
  21021. </li><li>
  21022. Similar as above, but filter only first plane.
  21023. <div class="example">
  21024. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=1
  21025. </pre></div>
  21026. </li><li>
  21027. Similar as above, but filter only second and third plane.
  21028. <div class="example">
  21029. <pre class="example">deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=6
  21030. </pre></div>
  21031. </li></ul>
  21032. <p><a name="decimate"></a>
  21033. </p><a name="decimate-1"></a>
  21034. <h2 class="section"><a href="ffprobe-all.html#toc-decimate-1">32.43 decimate</a></h2>
  21035. <p>Drop duplicated frames at regular intervals.
  21036. </p>
  21037. <p>The filter accepts the following options:
  21038. </p>
  21039. <dl compact="compact">
  21040. <dt>&lsquo;<samp>cycle</samp>&rsquo;</dt>
  21041. <dd><p>Set the number of frames from which one will be dropped. Setting this to
  21042. <var>N</var> means one frame in every batch of <var>N</var> frames will be dropped.
  21043. Default is <code>5</code>.
  21044. </p>
  21045. </dd>
  21046. <dt>&lsquo;<samp>dupthresh</samp>&rsquo;</dt>
  21047. <dd><p>Set the threshold for duplicate detection. If the difference metric for a frame
  21048. is less than or equal to this value, then it is declared as duplicate. Default
  21049. is <code>1.1</code>
  21050. </p>
  21051. </dd>
  21052. <dt>&lsquo;<samp>scthresh</samp>&rsquo;</dt>
  21053. <dd><p>Set scene change threshold. Default is <code>15</code>.
  21054. </p>
  21055. </dd>
  21056. <dt>&lsquo;<samp>blockx</samp>&rsquo;</dt>
  21057. <dt>&lsquo;<samp>blocky</samp>&rsquo;</dt>
  21058. <dd><p>Set the size of the x and y-axis blocks used during metric calculations.
  21059. Larger blocks give better noise suppression, but also give worse detection of
  21060. small movements. Must be a power of two. Default is <code>32</code>.
  21061. </p>
  21062. </dd>
  21063. <dt>&lsquo;<samp>ppsrc</samp>&rsquo;</dt>
  21064. <dd><p>Mark main input as a pre-processed input and activate clean source input
  21065. stream. This allows the input to be pre-processed with various filters to help
  21066. the metrics calculation while keeping the frame selection lossless. When set to
  21067. <code>1</code>, the first stream is for the pre-processed input, and the second
  21068. stream is the clean source from where the kept frames are chosen. Default is
  21069. <code>0</code>.
  21070. </p>
  21071. </dd>
  21072. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  21073. <dd><p>Set whether or not chroma is considered in the metric calculations. Default is
  21074. <code>1</code>.
  21075. </p></dd>
  21076. </dl>
  21077. <a name="deconvolve"></a>
  21078. <h2 class="section"><a href="ffprobe-all.html#toc-deconvolve">32.44 deconvolve</a></h2>
  21079. <p>Apply 2D deconvolution of video stream in frequency domain using second stream
  21080. as impulse.
  21081. </p>
  21082. <p>The filter accepts the following options:
  21083. </p>
  21084. <dl compact="compact">
  21085. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  21086. <dd><p>Set which planes to process.
  21087. </p>
  21088. </dd>
  21089. <dt>&lsquo;<samp>impulse</samp>&rsquo;</dt>
  21090. <dd><p>Set which impulse video frames will be processed, can be <var>first</var>
  21091. or <var>all</var>. Default is <var>all</var>.
  21092. </p>
  21093. </dd>
  21094. <dt>&lsquo;<samp>noise</samp>&rsquo;</dt>
  21095. <dd><p>Set noise when doing divisions. Default is <var>0.0000001</var>. Useful when width
  21096. and height are not same and not power of 2 or if stream prior to convolving
  21097. had noise.
  21098. </p></dd>
  21099. </dl>
  21100. <p>The <code>deconvolve</code> filter also supports the <a href="#framesync">framesync</a> options.
  21101. </p>
  21102. <a name="dedot"></a>
  21103. <h2 class="section"><a href="ffprobe-all.html#toc-dedot">32.45 dedot</a></h2>
  21104. <p>Reduce cross-luminance (dot-crawl) and cross-color (rainbows) from video.
  21105. </p>
  21106. <p>It accepts the following options:
  21107. </p>
  21108. <dl compact="compact">
  21109. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  21110. <dd><p>Set mode of operation. Can be combination of <var>dotcrawl</var> for cross-luminance reduction and/or
  21111. <var>rainbows</var> for cross-color reduction.
  21112. </p>
  21113. </dd>
  21114. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  21115. <dd><p>Set spatial luma threshold. Lower values increases reduction of cross-luminance.
  21116. </p>
  21117. </dd>
  21118. <dt>&lsquo;<samp>tl</samp>&rsquo;</dt>
  21119. <dd><p>Set tolerance for temporal luma. Higher values increases reduction of cross-luminance.
  21120. </p>
  21121. </dd>
  21122. <dt>&lsquo;<samp>tc</samp>&rsquo;</dt>
  21123. <dd><p>Set tolerance for chroma temporal variation. Higher values increases reduction of cross-color.
  21124. </p>
  21125. </dd>
  21126. <dt>&lsquo;<samp>ct</samp>&rsquo;</dt>
  21127. <dd><p>Set temporal chroma threshold. Lower values increases reduction of cross-color.
  21128. </p></dd>
  21129. </dl>
  21130. <a name="deflate"></a>
  21131. <h2 class="section"><a href="ffprobe-all.html#toc-deflate">32.46 deflate</a></h2>
  21132. <p>Apply deflate effect to the video.
  21133. </p>
  21134. <p>This filter replaces the pixel by the local(3x3) average by taking into account
  21135. only values lower than the pixel.
  21136. </p>
  21137. <p>It accepts the following options:
  21138. </p>
  21139. <dl compact="compact">
  21140. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  21141. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  21142. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  21143. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  21144. <dd><p>Limit the maximum change for each plane, default is 65535.
  21145. If 0, plane will remain unchanged.
  21146. </p></dd>
  21147. </dl>
  21148. <a name="Commands-57"></a>
  21149. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-57">32.46.1 Commands</a></h3>
  21150. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  21151. </p>
  21152. <a name="deflicker"></a>
  21153. <h2 class="section"><a href="ffprobe-all.html#toc-deflicker">32.47 deflicker</a></h2>
  21154. <p>Remove temporal frame luminance variations.
  21155. </p>
  21156. <p>It accepts the following options:
  21157. </p>
  21158. <dl compact="compact">
  21159. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  21160. <dd><p>Set moving-average filter size in frames. Default is 5. Allowed range is 2 - 129.
  21161. </p>
  21162. </dd>
  21163. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  21164. <dd><p>Set averaging mode to smooth temporal luminance variations.
  21165. </p>
  21166. <p>Available values are:
  21167. </p><dl compact="compact">
  21168. <dt>&lsquo;<samp>am</samp>&rsquo;</dt>
  21169. <dd><p>Arithmetic mean
  21170. </p>
  21171. </dd>
  21172. <dt>&lsquo;<samp>gm</samp>&rsquo;</dt>
  21173. <dd><p>Geometric mean
  21174. </p>
  21175. </dd>
  21176. <dt>&lsquo;<samp>hm</samp>&rsquo;</dt>
  21177. <dd><p>Harmonic mean
  21178. </p>
  21179. </dd>
  21180. <dt>&lsquo;<samp>qm</samp>&rsquo;</dt>
  21181. <dd><p>Quadratic mean
  21182. </p>
  21183. </dd>
  21184. <dt>&lsquo;<samp>cm</samp>&rsquo;</dt>
  21185. <dd><p>Cubic mean
  21186. </p>
  21187. </dd>
  21188. <dt>&lsquo;<samp>pm</samp>&rsquo;</dt>
  21189. <dd><p>Power mean
  21190. </p>
  21191. </dd>
  21192. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  21193. <dd><p>Median
  21194. </p></dd>
  21195. </dl>
  21196. </dd>
  21197. <dt>&lsquo;<samp>bypass</samp>&rsquo;</dt>
  21198. <dd><p>Do not actually modify frame. Useful when one only wants metadata.
  21199. </p></dd>
  21200. </dl>
  21201. <a name="dejudder"></a>
  21202. <h2 class="section"><a href="ffprobe-all.html#toc-dejudder">32.48 dejudder</a></h2>
  21203. <p>Remove judder produced by partially interlaced telecined content.
  21204. </p>
  21205. <p>Judder can be introduced, for instance, by <a href="#pullup">pullup</a> filter. If the original
  21206. source was partially telecined content then the output of <code>pullup,dejudder</code>
  21207. will have a variable frame rate. May change the recorded frame rate of the
  21208. container. Aside from that change, this filter will not affect constant frame
  21209. rate video.
  21210. </p>
  21211. <p>The option available in this filter is:
  21212. </p><dl compact="compact">
  21213. <dt>&lsquo;<samp>cycle</samp>&rsquo;</dt>
  21214. <dd><p>Specify the length of the window over which the judder repeats.
  21215. </p>
  21216. <p>Accepts any integer greater than 1. Useful values are:
  21217. </p><dl compact="compact">
  21218. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  21219. <dd><p>If the original was telecined from 24 to 30 fps (Film to NTSC).
  21220. </p>
  21221. </dd>
  21222. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  21223. <dd><p>If the original was telecined from 25 to 30 fps (PAL to NTSC).
  21224. </p>
  21225. </dd>
  21226. <dt>&lsquo;<samp>20</samp>&rsquo;</dt>
  21227. <dd><p>If a mixture of the two.
  21228. </p></dd>
  21229. </dl>
  21230. <p>The default is &lsquo;<samp>4</samp>&rsquo;.
  21231. </p></dd>
  21232. </dl>
  21233. <a name="delogo"></a>
  21234. <h2 class="section"><a href="ffprobe-all.html#toc-delogo">32.49 delogo</a></h2>
  21235. <p>Suppress a TV station logo by a simple interpolation of the surrounding
  21236. pixels. Just set a rectangle covering the logo and watch it disappear
  21237. (and sometimes something even uglier appear - your mileage may vary).
  21238. </p>
  21239. <p>It accepts the following parameters:
  21240. </p><dl compact="compact">
  21241. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21242. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21243. <dd><p>Specify the top left corner coordinates of the logo. They must be
  21244. specified.
  21245. </p>
  21246. </dd>
  21247. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21248. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21249. <dd><p>Specify the width and height of the logo to clear. They must be
  21250. specified.
  21251. </p>
  21252. </dd>
  21253. <dt>&lsquo;<samp>band, t</samp>&rsquo;</dt>
  21254. <dd><p>Specify the thickness of the fuzzy edge of the rectangle (added to
  21255. <var>w</var> and <var>h</var>). The default value is 1. This option is
  21256. deprecated, setting higher values should no longer be necessary and
  21257. is not recommended.
  21258. </p>
  21259. </dd>
  21260. <dt>&lsquo;<samp>show</samp>&rsquo;</dt>
  21261. <dd><p>When set to 1, a green rectangle is drawn on the screen to simplify
  21262. finding the right <var>x</var>, <var>y</var>, <var>w</var>, and <var>h</var> parameters.
  21263. The default value is 0.
  21264. </p>
  21265. <p>The rectangle is drawn on the outermost pixels which will be (partly)
  21266. replaced with interpolated values. The values of the next pixels
  21267. immediately outside this rectangle in each direction will be used to
  21268. compute the interpolated pixel values inside the rectangle.
  21269. </p>
  21270. </dd>
  21271. </dl>
  21272. <a name="Examples-80"></a>
  21273. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-80">32.49.1 Examples</a></h3>
  21274. <ul>
  21275. <li>
  21276. Set a rectangle covering the area with top left corner coordinates 0,0
  21277. and size 100x77, and a band of size 10:
  21278. <div class="example">
  21279. <pre class="example">delogo=x=0:y=0:w=100:h=77:band=10
  21280. </pre></div>
  21281. </li></ul>
  21282. <a name="derain"></a>
  21283. <h2 class="section"><a href="ffprobe-all.html#toc-derain">32.50 derain</a></h2>
  21284. <p>Remove the rain in the input image/video by applying the derain methods based on
  21285. convolutional neural networks. Supported models:
  21286. </p>
  21287. <ul>
  21288. <li>
  21289. Recurrent Squeeze-and-Excitation Context Aggregation Net (RESCAN).
  21290. 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>.
  21291. </li></ul>
  21292. <p>Training as well as model generation scripts are provided in
  21293. the repository at <a href="https://github.com/XueweiMeng/derain_filter.git">https://github.com/XueweiMeng/derain_filter.git</a>.
  21294. </p>
  21295. <p>Native model files (.model) can be generated from TensorFlow model
  21296. files (.pb) by using tools/python/convert.py
  21297. </p>
  21298. <p>The filter accepts the following options:
  21299. </p>
  21300. <dl compact="compact">
  21301. <dt>&lsquo;<samp>filter_type</samp>&rsquo;</dt>
  21302. <dd><p>Specify which filter to use. This option accepts the following values:
  21303. </p>
  21304. <dl compact="compact">
  21305. <dt>&lsquo;<samp>derain</samp>&rsquo;</dt>
  21306. <dd><p>Derain filter. To conduct derain filter, you need to use a derain model.
  21307. </p>
  21308. </dd>
  21309. <dt>&lsquo;<samp>dehaze</samp>&rsquo;</dt>
  21310. <dd><p>Dehaze filter. To conduct dehaze filter, you need to use a dehaze model.
  21311. </p></dd>
  21312. </dl>
  21313. <p>Default value is &lsquo;<samp>derain</samp>&rsquo;.
  21314. </p>
  21315. </dd>
  21316. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  21317. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  21318. the following values:
  21319. </p>
  21320. <dl compact="compact">
  21321. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  21322. <dd><p>Native implementation of DNN loading and execution.
  21323. </p>
  21324. </dd>
  21325. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  21326. <dd><p>TensorFlow backend. To enable this backend you
  21327. need to install the TensorFlow for C library (see
  21328. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  21329. <code>--enable-libtensorflow</code>
  21330. </p></dd>
  21331. </dl>
  21332. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  21333. </p>
  21334. </dd>
  21335. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  21336. <dd><p>Set path to model file specifying network architecture and its parameters.
  21337. Note that different backends use different file formats. TensorFlow and native
  21338. backend can load files for only its format.
  21339. </p></dd>
  21340. </dl>
  21341. <a name="deshake"></a>
  21342. <h2 class="section"><a href="ffprobe-all.html#toc-deshake">32.51 deshake</a></h2>
  21343. <p>Attempt to fix small changes in horizontal and/or vertical shift. This
  21344. filter helps remove camera shake from hand-holding a camera, bumping a
  21345. tripod, moving on a vehicle, etc.
  21346. </p>
  21347. <p>The filter accepts the following options:
  21348. </p>
  21349. <dl compact="compact">
  21350. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21351. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21352. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21353. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21354. <dd><p>Specify a rectangular area where to limit the search for motion
  21355. vectors.
  21356. If desired the search for motion vectors can be limited to a
  21357. rectangular area of the frame defined by its top left corner, width
  21358. and height. These parameters have the same meaning as the drawbox
  21359. filter which can be used to visualise the position of the bounding
  21360. box.
  21361. </p>
  21362. <p>This is useful when simultaneous movement of subjects within the frame
  21363. might be confused for camera motion by the motion vector search.
  21364. </p>
  21365. <p>If any or all of <var>x</var>, <var>y</var>, <var>w</var> and <var>h</var> are set to -1
  21366. then the full frame is used. This allows later options to be set
  21367. without specifying the bounding box for the motion vector search.
  21368. </p>
  21369. <p>Default - search the whole frame.
  21370. </p>
  21371. </dd>
  21372. <dt>&lsquo;<samp>rx</samp>&rsquo;</dt>
  21373. <dt>&lsquo;<samp>ry</samp>&rsquo;</dt>
  21374. <dd><p>Specify the maximum extent of movement in x and y directions in the
  21375. range 0-64 pixels. Default 16.
  21376. </p>
  21377. </dd>
  21378. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  21379. <dd><p>Specify how to generate pixels to fill blanks at the edge of the
  21380. frame. Available values are:
  21381. </p><dl compact="compact">
  21382. <dt>&lsquo;<samp>blank, 0</samp>&rsquo;</dt>
  21383. <dd><p>Fill zeroes at blank locations
  21384. </p></dd>
  21385. <dt>&lsquo;<samp>original, 1</samp>&rsquo;</dt>
  21386. <dd><p>Original image at blank locations
  21387. </p></dd>
  21388. <dt>&lsquo;<samp>clamp, 2</samp>&rsquo;</dt>
  21389. <dd><p>Extruded edge value at blank locations
  21390. </p></dd>
  21391. <dt>&lsquo;<samp>mirror, 3</samp>&rsquo;</dt>
  21392. <dd><p>Mirrored edge at blank locations
  21393. </p></dd>
  21394. </dl>
  21395. <p>Default value is &lsquo;<samp>mirror</samp>&rsquo;.
  21396. </p>
  21397. </dd>
  21398. <dt>&lsquo;<samp>blocksize</samp>&rsquo;</dt>
  21399. <dd><p>Specify the blocksize to use for motion search. Range 4-128 pixels,
  21400. default 8.
  21401. </p>
  21402. </dd>
  21403. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  21404. <dd><p>Specify the contrast threshold for blocks. Only blocks with more than
  21405. the specified contrast (difference between darkest and lightest
  21406. pixels) will be considered. Range 1-255, default 125.
  21407. </p>
  21408. </dd>
  21409. <dt>&lsquo;<samp>search</samp>&rsquo;</dt>
  21410. <dd><p>Specify the search strategy. Available values are:
  21411. </p><dl compact="compact">
  21412. <dt>&lsquo;<samp>exhaustive, 0</samp>&rsquo;</dt>
  21413. <dd><p>Set exhaustive search
  21414. </p></dd>
  21415. <dt>&lsquo;<samp>less, 1</samp>&rsquo;</dt>
  21416. <dd><p>Set less exhaustive search.
  21417. </p></dd>
  21418. </dl>
  21419. <p>Default value is &lsquo;<samp>exhaustive</samp>&rsquo;.
  21420. </p>
  21421. </dd>
  21422. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  21423. <dd><p>If set then a detailed log of the motion search is written to the
  21424. specified file.
  21425. </p>
  21426. </dd>
  21427. </dl>
  21428. <a name="despill"></a>
  21429. <h2 class="section"><a href="ffprobe-all.html#toc-despill">32.52 despill</a></h2>
  21430. <p>Remove unwanted contamination of foreground colors, caused by reflected color of
  21431. greenscreen or bluescreen.
  21432. </p>
  21433. <p>This filter accepts the following options:
  21434. </p>
  21435. <dl compact="compact">
  21436. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  21437. <dd><p>Set what type of despill to use.
  21438. </p>
  21439. </dd>
  21440. <dt>&lsquo;<samp>mix</samp>&rsquo;</dt>
  21441. <dd><p>Set how spillmap will be generated.
  21442. </p>
  21443. </dd>
  21444. <dt>&lsquo;<samp>expand</samp>&rsquo;</dt>
  21445. <dd><p>Set how much to get rid of still remaining spill.
  21446. </p>
  21447. </dd>
  21448. <dt>&lsquo;<samp>red</samp>&rsquo;</dt>
  21449. <dd><p>Controls amount of red in spill area.
  21450. </p>
  21451. </dd>
  21452. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  21453. <dd><p>Controls amount of green in spill area.
  21454. Should be -1 for greenscreen.
  21455. </p>
  21456. </dd>
  21457. <dt>&lsquo;<samp>blue</samp>&rsquo;</dt>
  21458. <dd><p>Controls amount of blue in spill area.
  21459. Should be -1 for bluescreen.
  21460. </p>
  21461. </dd>
  21462. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  21463. <dd><p>Controls brightness of spill area, preserving colors.
  21464. </p>
  21465. </dd>
  21466. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  21467. <dd><p>Modify alpha from generated spillmap.
  21468. </p></dd>
  21469. </dl>
  21470. <a name="detelecine"></a>
  21471. <h2 class="section"><a href="ffprobe-all.html#toc-detelecine">32.53 detelecine</a></h2>
  21472. <p>Apply an exact inverse of the telecine operation. It requires a predefined
  21473. pattern specified using the pattern option which must be the same as that passed
  21474. to the telecine filter.
  21475. </p>
  21476. <p>This filter accepts the following options:
  21477. </p>
  21478. <dl compact="compact">
  21479. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  21480. <dd><dl compact="compact">
  21481. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  21482. <dd><p>top field first
  21483. </p></dd>
  21484. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  21485. <dd><p>bottom field first
  21486. The default value is <code>top</code>.
  21487. </p></dd>
  21488. </dl>
  21489. </dd>
  21490. <dt>&lsquo;<samp>pattern</samp>&rsquo;</dt>
  21491. <dd><p>A string of numbers representing the pulldown pattern you wish to apply.
  21492. The default value is <code>23</code>.
  21493. </p>
  21494. </dd>
  21495. <dt>&lsquo;<samp>start_frame</samp>&rsquo;</dt>
  21496. <dd><p>A number representing position of the first frame with respect to the telecine
  21497. pattern. This is to be used if the stream is cut. The default value is <code>0</code>.
  21498. </p></dd>
  21499. </dl>
  21500. <a name="dilation"></a>
  21501. <h2 class="section"><a href="ffprobe-all.html#toc-dilation">32.54 dilation</a></h2>
  21502. <p>Apply dilation effect to the video.
  21503. </p>
  21504. <p>This filter replaces the pixel by the local(3x3) maximum.
  21505. </p>
  21506. <p>It accepts the following options:
  21507. </p>
  21508. <dl compact="compact">
  21509. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  21510. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  21511. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  21512. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  21513. <dd><p>Limit the maximum change for each plane, default is 65535.
  21514. If 0, plane will remain unchanged.
  21515. </p>
  21516. </dd>
  21517. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  21518. <dd><p>Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
  21519. pixels are used.
  21520. </p>
  21521. <p>Flags to local 3x3 coordinates maps like this:
  21522. </p>
  21523. <p> 1 2 3
  21524. 4 5
  21525. 6 7 8
  21526. </p></dd>
  21527. </dl>
  21528. <a name="Commands-27"></a>
  21529. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-27">32.54.1 Commands</a></h3>
  21530. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  21531. </p>
  21532. <a name="displace"></a>
  21533. <h2 class="section"><a href="ffprobe-all.html#toc-displace">32.55 displace</a></h2>
  21534. <p>Displace pixels as indicated by second and third input stream.
  21535. </p>
  21536. <p>It takes three input streams and outputs one stream, the first input is the
  21537. source, and second and third input are displacement maps.
  21538. </p>
  21539. <p>The second input specifies how much to displace pixels along the
  21540. x-axis, while the third input specifies how much to displace pixels
  21541. along the y-axis.
  21542. If one of displacement map streams terminates, last frame from that
  21543. displacement map will be used.
  21544. </p>
  21545. <p>Note that once generated, displacements maps can be reused over and over again.
  21546. </p>
  21547. <p>A description of the accepted options follows.
  21548. </p>
  21549. <dl compact="compact">
  21550. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  21551. <dd><p>Set displace behavior for pixels that are out of range.
  21552. </p>
  21553. <p>Available values are:
  21554. </p><dl compact="compact">
  21555. <dt>&lsquo;<samp>blank</samp>&rsquo;</dt>
  21556. <dd><p>Missing pixels are replaced by black pixels.
  21557. </p>
  21558. </dd>
  21559. <dt>&lsquo;<samp>smear</samp>&rsquo;</dt>
  21560. <dd><p>Adjacent pixels will spread out to replace missing pixels.
  21561. </p>
  21562. </dd>
  21563. <dt>&lsquo;<samp>wrap</samp>&rsquo;</dt>
  21564. <dd><p>Out of range pixels are wrapped so they point to pixels of other side.
  21565. </p>
  21566. </dd>
  21567. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  21568. <dd><p>Out of range pixels will be replaced with mirrored pixels.
  21569. </p></dd>
  21570. </dl>
  21571. <p>Default is &lsquo;<samp>smear</samp>&rsquo;.
  21572. </p>
  21573. </dd>
  21574. </dl>
  21575. <a name="Examples-103"></a>
  21576. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-103">32.55.1 Examples</a></h3>
  21577. <ul>
  21578. <li>
  21579. Add ripple effect to rgb input of video size hd720:
  21580. <div class="example">
  21581. <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
  21582. </pre></div>
  21583. </li><li>
  21584. Add wave effect to rgb input of video size hd720:
  21585. <div class="example">
  21586. <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
  21587. </pre></div>
  21588. </li></ul>
  21589. <a name="dnn_005fprocessing"></a>
  21590. <h2 class="section"><a href="ffprobe-all.html#toc-dnn_005fprocessing">32.56 dnn_processing</a></h2>
  21591. <p>Do image processing with deep neural networks. It works together with another filter
  21592. which converts the pixel format of the Frame to what the dnn network requires.
  21593. </p>
  21594. <p>The filter accepts the following options:
  21595. </p>
  21596. <dl compact="compact">
  21597. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  21598. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  21599. the following values:
  21600. </p>
  21601. <dl compact="compact">
  21602. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  21603. <dd><p>Native implementation of DNN loading and execution.
  21604. </p>
  21605. </dd>
  21606. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  21607. <dd><p>TensorFlow backend. To enable this backend you
  21608. need to install the TensorFlow for C library (see
  21609. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  21610. <code>--enable-libtensorflow</code>
  21611. </p></dd>
  21612. </dl>
  21613. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  21614. </p>
  21615. </dd>
  21616. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  21617. <dd><p>Set path to model file specifying network architecture and its parameters.
  21618. Note that different backends use different file formats. TensorFlow and native
  21619. backend can load files for only its format.
  21620. </p>
  21621. <p>Native model file (.model) can be generated from TensorFlow model file (.pb) by using tools/python/convert.py
  21622. </p>
  21623. </dd>
  21624. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  21625. <dd><p>Set the input name of the dnn network.
  21626. </p>
  21627. </dd>
  21628. <dt>&lsquo;<samp>output</samp>&rsquo;</dt>
  21629. <dd><p>Set the output name of the dnn network.
  21630. </p>
  21631. </dd>
  21632. </dl>
  21633. <ul>
  21634. <li>
  21635. Halve the red channle of the frame with format rgb24:
  21636. <div class="example">
  21637. <pre class="example">ffmpeg -i input.jpg -vf format=rgb24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native out.native.png
  21638. </pre></div>
  21639. </li><li>
  21640. Halve the pixel value of the frame with format gray32f:
  21641. <div class="example">
  21642. <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
  21643. </pre></div>
  21644. </li></ul>
  21645. <a name="drawbox"></a>
  21646. <h2 class="section"><a href="ffprobe-all.html#toc-drawbox">32.57 drawbox</a></h2>
  21647. <p>Draw a colored box on the input image.
  21648. </p>
  21649. <p>It accepts the following parameters:
  21650. </p>
  21651. <dl compact="compact">
  21652. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21653. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21654. <dd><p>The expressions which specify the top left corner coordinates of the box. It defaults to 0.
  21655. </p>
  21656. </dd>
  21657. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  21658. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  21659. <dd><p>The expressions which specify the width and height of the box; if 0 they are interpreted as
  21660. the input width and height. It defaults to 0.
  21661. </p>
  21662. </dd>
  21663. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  21664. <dd><p>Specify the color of the box to write. For the general syntax of this option,
  21665. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>. If the special
  21666. value <code>invert</code> is used, the box edge color is the same as the
  21667. video with inverted luma.
  21668. </p>
  21669. </dd>
  21670. <dt>&lsquo;<samp>thickness, t</samp>&rsquo;</dt>
  21671. <dd><p>The expression which sets the thickness of the box edge.
  21672. A value of <code>fill</code> will create a filled box. Default value is <code>3</code>.
  21673. </p>
  21674. <p>See below for the list of accepted constants.
  21675. </p>
  21676. </dd>
  21677. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  21678. <dd><p>Applicable if the input has alpha. With value <code>1</code>, the pixels of the painted box
  21679. will overwrite the video&rsquo;s color and alpha pixels.
  21680. Default is <code>0</code>, which composites the box onto the input, leaving the video&rsquo;s alpha intact.
  21681. </p></dd>
  21682. </dl>
  21683. <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
  21684. following constants:
  21685. </p>
  21686. <dl compact="compact">
  21687. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  21688. <dd><p>The input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>.
  21689. </p>
  21690. </dd>
  21691. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  21692. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  21693. <dd><p>horizontal and vertical chroma subsample values. For example for the
  21694. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  21695. </p>
  21696. </dd>
  21697. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  21698. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  21699. <dd><p>The input width and height.
  21700. </p>
  21701. </dd>
  21702. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  21703. <dd><p>The input sample aspect ratio.
  21704. </p>
  21705. </dd>
  21706. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21707. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21708. <dd><p>The x and y offset coordinates where the box is drawn.
  21709. </p>
  21710. </dd>
  21711. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21712. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21713. <dd><p>The width and height of the drawn box.
  21714. </p>
  21715. </dd>
  21716. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  21717. <dd><p>The thickness of the drawn box.
  21718. </p>
  21719. <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
  21720. each other, so you may for example specify <code>y=x/dar</code> or <code>h=w/dar</code>.
  21721. </p>
  21722. </dd>
  21723. </dl>
  21724. <a name="Examples-119"></a>
  21725. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-119">32.57.1 Examples</a></h3>
  21726. <ul>
  21727. <li>
  21728. Draw a black box around the edge of the input image:
  21729. <div class="example">
  21730. <pre class="example">drawbox
  21731. </pre></div>
  21732. </li><li>
  21733. Draw a box with color red and an opacity of 50%:
  21734. <div class="example">
  21735. <pre class="example">drawbox=10:20:200:60:red@0.5
  21736. </pre></div>
  21737. <p>The previous example can be specified as:
  21738. </p><div class="example">
  21739. <pre class="example">drawbox=x=10:y=20:w=200:h=60:color=red@0.5
  21740. </pre></div>
  21741. </li><li>
  21742. Fill the box with pink color:
  21743. <div class="example">
  21744. <pre class="example">drawbox=x=10:y=10:w=100:h=100:color=pink@0.5:t=fill
  21745. </pre></div>
  21746. </li><li>
  21747. Draw a 2-pixel red 2.40:1 mask:
  21748. <div class="example">
  21749. <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
  21750. </pre></div>
  21751. </li></ul>
  21752. <a name="Commands-30"></a>
  21753. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-30">32.57.2 Commands</a></h3>
  21754. <p>This filter supports same commands as options.
  21755. The command accepts the same syntax of the corresponding option.
  21756. </p>
  21757. <p>If the specified expression is not valid, it is kept at its current
  21758. value.
  21759. </p>
  21760. <p><a name="drawgraph"></a>
  21761. </p><a name="drawgraph-1"></a>
  21762. <h2 class="section"><a href="ffprobe-all.html#toc-drawgraph-1">32.58 drawgraph</a></h2>
  21763. <p>Draw a graph using input video metadata.
  21764. </p>
  21765. <p>It accepts the following parameters:
  21766. </p>
  21767. <dl compact="compact">
  21768. <dt>&lsquo;<samp>m1</samp>&rsquo;</dt>
  21769. <dd><p>Set 1st frame metadata key from which metadata values will be used to draw a graph.
  21770. </p>
  21771. </dd>
  21772. <dt>&lsquo;<samp>fg1</samp>&rsquo;</dt>
  21773. <dd><p>Set 1st foreground color expression.
  21774. </p>
  21775. </dd>
  21776. <dt>&lsquo;<samp>m2</samp>&rsquo;</dt>
  21777. <dd><p>Set 2nd frame metadata key from which metadata values will be used to draw a graph.
  21778. </p>
  21779. </dd>
  21780. <dt>&lsquo;<samp>fg2</samp>&rsquo;</dt>
  21781. <dd><p>Set 2nd foreground color expression.
  21782. </p>
  21783. </dd>
  21784. <dt>&lsquo;<samp>m3</samp>&rsquo;</dt>
  21785. <dd><p>Set 3rd frame metadata key from which metadata values will be used to draw a graph.
  21786. </p>
  21787. </dd>
  21788. <dt>&lsquo;<samp>fg3</samp>&rsquo;</dt>
  21789. <dd><p>Set 3rd foreground color expression.
  21790. </p>
  21791. </dd>
  21792. <dt>&lsquo;<samp>m4</samp>&rsquo;</dt>
  21793. <dd><p>Set 4th frame metadata key from which metadata values will be used to draw a graph.
  21794. </p>
  21795. </dd>
  21796. <dt>&lsquo;<samp>fg4</samp>&rsquo;</dt>
  21797. <dd><p>Set 4th foreground color expression.
  21798. </p>
  21799. </dd>
  21800. <dt>&lsquo;<samp>min</samp>&rsquo;</dt>
  21801. <dd><p>Set minimal value of metadata value.
  21802. </p>
  21803. </dd>
  21804. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  21805. <dd><p>Set maximal value of metadata value.
  21806. </p>
  21807. </dd>
  21808. <dt>&lsquo;<samp>bg</samp>&rsquo;</dt>
  21809. <dd><p>Set graph background color. Default is white.
  21810. </p>
  21811. </dd>
  21812. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  21813. <dd><p>Set graph mode.
  21814. </p>
  21815. <p>Available values for mode is:
  21816. </p><dl compact="compact">
  21817. <dt>&lsquo;<samp>bar</samp>&rsquo;</dt>
  21818. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  21819. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  21820. </dl>
  21821. <p>Default is <code>line</code>.
  21822. </p>
  21823. </dd>
  21824. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  21825. <dd><p>Set slide mode.
  21826. </p>
  21827. <p>Available values for slide is:
  21828. </p><dl compact="compact">
  21829. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  21830. <dd><p>Draw new frame when right border is reached.
  21831. </p>
  21832. </dd>
  21833. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  21834. <dd><p>Replace old columns with new ones.
  21835. </p>
  21836. </dd>
  21837. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  21838. <dd><p>Scroll from right to left.
  21839. </p>
  21840. </dd>
  21841. <dt>&lsquo;<samp>rscroll</samp>&rsquo;</dt>
  21842. <dd><p>Scroll from left to right.
  21843. </p>
  21844. </dd>
  21845. <dt>&lsquo;<samp>picture</samp>&rsquo;</dt>
  21846. <dd><p>Draw single picture.
  21847. </p></dd>
  21848. </dl>
  21849. <p>Default is <code>frame</code>.
  21850. </p>
  21851. </dd>
  21852. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  21853. <dd><p>Set size of graph video. For the syntax of this option, check the
  21854. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  21855. The default value is <code>900x256</code>.
  21856. </p>
  21857. </dd>
  21858. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  21859. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  21860. </p>
  21861. <p>The foreground color expressions can use the following variables:
  21862. </p><dl compact="compact">
  21863. <dt>&lsquo;<samp>MIN</samp>&rsquo;</dt>
  21864. <dd><p>Minimal value of metadata value.
  21865. </p>
  21866. </dd>
  21867. <dt>&lsquo;<samp>MAX</samp>&rsquo;</dt>
  21868. <dd><p>Maximal value of metadata value.
  21869. </p>
  21870. </dd>
  21871. <dt>&lsquo;<samp>VAL</samp>&rsquo;</dt>
  21872. <dd><p>Current metadata key value.
  21873. </p></dd>
  21874. </dl>
  21875. <p>The color is defined as 0xAABBGGRR.
  21876. </p></dd>
  21877. </dl>
  21878. <p>Example using metadata from <a href="#signalstats">signalstats</a> filter:
  21879. </p><div class="example">
  21880. <pre class="example">signalstats,drawgraph=lavfi.signalstats.YAVG:min=0:max=255
  21881. </pre></div>
  21882. <p>Example using metadata from <a href="#ebur128">ebur128</a> filter:
  21883. </p><div class="example">
  21884. <pre class="example">ebur128=metadata=1,adrawgraph=lavfi.r128.M:min=-120:max=5
  21885. </pre></div>
  21886. <a name="drawgrid"></a>
  21887. <h2 class="section"><a href="ffprobe-all.html#toc-drawgrid">32.59 drawgrid</a></h2>
  21888. <p>Draw a grid on the input image.
  21889. </p>
  21890. <p>It accepts the following parameters:
  21891. </p>
  21892. <dl compact="compact">
  21893. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21894. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21895. <dd><p>The expressions which specify the coordinates of some point of grid intersection (meant to configure offset). Both default to 0.
  21896. </p>
  21897. </dd>
  21898. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  21899. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  21900. <dd><p>The expressions which specify the width and height of the grid cell, if 0 they are interpreted as the
  21901. input width and height, respectively, minus <code>thickness</code>, so image gets
  21902. framed. Default to 0.
  21903. </p>
  21904. </dd>
  21905. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  21906. <dd><p>Specify the color of the grid. For the general syntax of this option,
  21907. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>. If the special
  21908. value <code>invert</code> is used, the grid color is the same as the
  21909. video with inverted luma.
  21910. </p>
  21911. </dd>
  21912. <dt>&lsquo;<samp>thickness, t</samp>&rsquo;</dt>
  21913. <dd><p>The expression which sets the thickness of the grid line. Default value is <code>1</code>.
  21914. </p>
  21915. <p>See below for the list of accepted constants.
  21916. </p>
  21917. </dd>
  21918. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  21919. <dd><p>Applicable if the input has alpha. With <code>1</code> the pixels of the painted grid
  21920. will overwrite the video&rsquo;s color and alpha pixels.
  21921. Default is <code>0</code>, which composites the grid onto the input, leaving the video&rsquo;s alpha intact.
  21922. </p></dd>
  21923. </dl>
  21924. <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
  21925. following constants:
  21926. </p>
  21927. <dl compact="compact">
  21928. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  21929. <dd><p>The input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>.
  21930. </p>
  21931. </dd>
  21932. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  21933. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  21934. <dd><p>horizontal and vertical chroma subsample values. For example for the
  21935. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  21936. </p>
  21937. </dd>
  21938. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  21939. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  21940. <dd><p>The input grid cell width and height.
  21941. </p>
  21942. </dd>
  21943. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  21944. <dd><p>The input sample aspect ratio.
  21945. </p>
  21946. </dd>
  21947. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  21948. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  21949. <dd><p>The x and y coordinates of some point of grid intersection (meant to configure offset).
  21950. </p>
  21951. </dd>
  21952. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  21953. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  21954. <dd><p>The width and height of the drawn cell.
  21955. </p>
  21956. </dd>
  21957. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  21958. <dd><p>The thickness of the drawn cell.
  21959. </p>
  21960. <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
  21961. each other, so you may for example specify <code>y=x/dar</code> or <code>h=w/dar</code>.
  21962. </p>
  21963. </dd>
  21964. </dl>
  21965. <a name="Examples-61"></a>
  21966. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-61">32.59.1 Examples</a></h3>
  21967. <ul>
  21968. <li>
  21969. Draw a grid with cell 100x100 pixels, thickness 2 pixels, with color red and an opacity of 50%:
  21970. <div class="example">
  21971. <pre class="example">drawgrid=width=100:height=100:thickness=2:color=red@0.5
  21972. </pre></div>
  21973. </li><li>
  21974. Draw a white 3x3 grid with an opacity of 50%:
  21975. <div class="example">
  21976. <pre class="example">drawgrid=w=iw/3:h=ih/3:t=2:c=white@0.5
  21977. </pre></div>
  21978. </li></ul>
  21979. <a name="Commands-47"></a>
  21980. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-47">32.59.2 Commands</a></h3>
  21981. <p>This filter supports same commands as options.
  21982. The command accepts the same syntax of the corresponding option.
  21983. </p>
  21984. <p>If the specified expression is not valid, it is kept at its current
  21985. value.
  21986. </p>
  21987. <p><a name="drawtext"></a>
  21988. </p><a name="drawtext-1"></a>
  21989. <h2 class="section"><a href="ffprobe-all.html#toc-drawtext-1">32.60 drawtext</a></h2>
  21990. <p>Draw a text string or text from a specified file on top of a video, using the
  21991. libfreetype library.
  21992. </p>
  21993. <p>To enable compilation of this filter, you need to configure FFmpeg with
  21994. <code>--enable-libfreetype</code>.
  21995. To enable default font fallback and the <var>font</var> option you need to
  21996. configure FFmpeg with <code>--enable-libfontconfig</code>.
  21997. To enable the <var>text_shaping</var> option, you need to configure FFmpeg with
  21998. <code>--enable-libfribidi</code>.
  21999. </p>
  22000. <a name="Syntax-2"></a>
  22001. <h3 class="subsection"><a href="ffprobe-all.html#toc-Syntax-2">32.60.1 Syntax</a></h3>
  22002. <p>It accepts the following parameters:
  22003. </p>
  22004. <dl compact="compact">
  22005. <dt>&lsquo;<samp>box</samp>&rsquo;</dt>
  22006. <dd><p>Used to draw a box around text using the background color.
  22007. The value must be either 1 (enable) or 0 (disable).
  22008. The default value of <var>box</var> is 0.
  22009. </p>
  22010. </dd>
  22011. <dt>&lsquo;<samp>boxborderw</samp>&rsquo;</dt>
  22012. <dd><p>Set the width of the border to be drawn around the box using <var>boxcolor</var>.
  22013. The default value of <var>boxborderw</var> is 0.
  22014. </p>
  22015. </dd>
  22016. <dt>&lsquo;<samp>boxcolor</samp>&rsquo;</dt>
  22017. <dd><p>The color to be used for drawing box around text. For the syntax of this
  22018. option, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22019. </p>
  22020. <p>The default value of <var>boxcolor</var> is &quot;white&quot;.
  22021. </p>
  22022. </dd>
  22023. <dt>&lsquo;<samp>line_spacing</samp>&rsquo;</dt>
  22024. <dd><p>Set the line spacing in pixels of the border to be drawn around the box using <var>box</var>.
  22025. The default value of <var>line_spacing</var> is 0.
  22026. </p>
  22027. </dd>
  22028. <dt>&lsquo;<samp>borderw</samp>&rsquo;</dt>
  22029. <dd><p>Set the width of the border to be drawn around the text using <var>bordercolor</var>.
  22030. The default value of <var>borderw</var> is 0.
  22031. </p>
  22032. </dd>
  22033. <dt>&lsquo;<samp>bordercolor</samp>&rsquo;</dt>
  22034. <dd><p>Set the color to be used for drawing border around text. For the syntax of this
  22035. option, check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22036. </p>
  22037. <p>The default value of <var>bordercolor</var> is &quot;black&quot;.
  22038. </p>
  22039. </dd>
  22040. <dt>&lsquo;<samp>expansion</samp>&rsquo;</dt>
  22041. <dd><p>Select how the <var>text</var> is expanded. Can be either <code>none</code>,
  22042. <code>strftime</code> (deprecated) or
  22043. <code>normal</code> (default). See the <a href="#drawtext_005fexpansion">Text expansion</a> section
  22044. below for details.
  22045. </p>
  22046. </dd>
  22047. <dt>&lsquo;<samp>basetime</samp>&rsquo;</dt>
  22048. <dd><p>Set a start time for the count. Value is in microseconds. Only applied
  22049. in the deprecated strftime expansion mode. To emulate in normal expansion
  22050. mode use the <code>pts</code> function, supplying the start time (in seconds)
  22051. as the second argument.
  22052. </p>
  22053. </dd>
  22054. <dt>&lsquo;<samp>fix_bounds</samp>&rsquo;</dt>
  22055. <dd><p>If true, check and fix text coords to avoid clipping.
  22056. </p>
  22057. </dd>
  22058. <dt>&lsquo;<samp>fontcolor</samp>&rsquo;</dt>
  22059. <dd><p>The color to be used for drawing fonts. For the syntax of this option, check
  22060. the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  22061. </p>
  22062. <p>The default value of <var>fontcolor</var> is &quot;black&quot;.
  22063. </p>
  22064. </dd>
  22065. <dt>&lsquo;<samp>fontcolor_expr</samp>&rsquo;</dt>
  22066. <dd><p>String which is expanded the same way as <var>text</var> to obtain dynamic
  22067. <var>fontcolor</var> value. By default this option has empty value and is not
  22068. processed. When this option is set, it overrides <var>fontcolor</var> option.
  22069. </p>
  22070. </dd>
  22071. <dt>&lsquo;<samp>font</samp>&rsquo;</dt>
  22072. <dd><p>The font family to be used for drawing text. By default Sans.
  22073. </p>
  22074. </dd>
  22075. <dt>&lsquo;<samp>fontfile</samp>&rsquo;</dt>
  22076. <dd><p>The font file to be used for drawing text. The path must be included.
  22077. This parameter is mandatory if the fontconfig support is disabled.
  22078. </p>
  22079. </dd>
  22080. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  22081. <dd><p>Draw the text applying alpha blending. The value can
  22082. be a number between 0.0 and 1.0.
  22083. The expression accepts the same variables <var>x, y</var> as well.
  22084. The default value is 1.
  22085. Please see <var>fontcolor_expr</var>.
  22086. </p>
  22087. </dd>
  22088. <dt>&lsquo;<samp>fontsize</samp>&rsquo;</dt>
  22089. <dd><p>The font size to be used for drawing text.
  22090. The default value of <var>fontsize</var> is 16.
  22091. </p>
  22092. </dd>
  22093. <dt>&lsquo;<samp>text_shaping</samp>&rsquo;</dt>
  22094. <dd><p>If set to 1, attempt to shape the text (for example, reverse the order of
  22095. right-to-left text and join Arabic characters) before drawing it.
  22096. Otherwise, just draw the text exactly as given.
  22097. By default 1 (if supported).
  22098. </p>
  22099. </dd>
  22100. <dt>&lsquo;<samp>ft_load_flags</samp>&rsquo;</dt>
  22101. <dd><p>The flags to be used for loading the fonts.
  22102. </p>
  22103. <p>The flags map the corresponding flags supported by libfreetype, and are
  22104. a combination of the following values:
  22105. </p><dl compact="compact">
  22106. <dt><var>default</var></dt>
  22107. <dt><var>no_scale</var></dt>
  22108. <dt><var>no_hinting</var></dt>
  22109. <dt><var>render</var></dt>
  22110. <dt><var>no_bitmap</var></dt>
  22111. <dt><var>vertical_layout</var></dt>
  22112. <dt><var>force_autohint</var></dt>
  22113. <dt><var>crop_bitmap</var></dt>
  22114. <dt><var>pedantic</var></dt>
  22115. <dt><var>ignore_global_advance_width</var></dt>
  22116. <dt><var>no_recurse</var></dt>
  22117. <dt><var>ignore_transform</var></dt>
  22118. <dt><var>monochrome</var></dt>
  22119. <dt><var>linear_design</var></dt>
  22120. <dt><var>no_autohint</var></dt>
  22121. </dl>
  22122. <p>Default value is &quot;default&quot;.
  22123. </p>
  22124. <p>For more information consult the documentation for the FT_LOAD_*
  22125. libfreetype flags.
  22126. </p>
  22127. </dd>
  22128. <dt>&lsquo;<samp>shadowcolor</samp>&rsquo;</dt>
  22129. <dd><p>The color to be used for drawing a shadow behind the drawn text. For the
  22130. 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>.
  22131. </p>
  22132. <p>The default value of <var>shadowcolor</var> is &quot;black&quot;.
  22133. </p>
  22134. </dd>
  22135. <dt>&lsquo;<samp>shadowx</samp>&rsquo;</dt>
  22136. <dt>&lsquo;<samp>shadowy</samp>&rsquo;</dt>
  22137. <dd><p>The x and y offsets for the text shadow position with respect to the
  22138. position of the text. They can be either positive or negative
  22139. values. The default value for both is &quot;0&quot;.
  22140. </p>
  22141. </dd>
  22142. <dt>&lsquo;<samp>start_number</samp>&rsquo;</dt>
  22143. <dd><p>The starting frame number for the n/frame_num variable. The default value
  22144. is &quot;0&quot;.
  22145. </p>
  22146. </dd>
  22147. <dt>&lsquo;<samp>tabsize</samp>&rsquo;</dt>
  22148. <dd><p>The size in number of spaces to use for rendering the tab.
  22149. Default value is 4.
  22150. </p>
  22151. </dd>
  22152. <dt>&lsquo;<samp>timecode</samp>&rsquo;</dt>
  22153. <dd><p>Set the initial timecode representation in &quot;hh:mm:ss[:;.]ff&quot;
  22154. format. It can be used with or without text parameter. <var>timecode_rate</var>
  22155. option must be specified.
  22156. </p>
  22157. </dd>
  22158. <dt>&lsquo;<samp>timecode_rate, rate, r</samp>&rsquo;</dt>
  22159. <dd><p>Set the timecode frame rate (timecode only). Value will be rounded to nearest
  22160. integer. Minimum value is &quot;1&quot;.
  22161. Drop-frame timecode is supported for frame rates 30 &amp; 60.
  22162. </p>
  22163. </dd>
  22164. <dt>&lsquo;<samp>tc24hmax</samp>&rsquo;</dt>
  22165. <dd><p>If set to 1, the output of the timecode option will wrap around at 24 hours.
  22166. Default is 0 (disabled).
  22167. </p>
  22168. </dd>
  22169. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  22170. <dd><p>The text string to be drawn. The text must be a sequence of UTF-8
  22171. encoded characters.
  22172. This parameter is mandatory if no file is specified with the parameter
  22173. <var>textfile</var>.
  22174. </p>
  22175. </dd>
  22176. <dt>&lsquo;<samp>textfile</samp>&rsquo;</dt>
  22177. <dd><p>A text file containing text to be drawn. The text must be a sequence
  22178. of UTF-8 encoded characters.
  22179. </p>
  22180. <p>This parameter is mandatory if no text string is specified with the
  22181. parameter <var>text</var>.
  22182. </p>
  22183. <p>If both <var>text</var> and <var>textfile</var> are specified, an error is thrown.
  22184. </p>
  22185. </dd>
  22186. <dt>&lsquo;<samp>reload</samp>&rsquo;</dt>
  22187. <dd><p>If set to 1, the <var>textfile</var> will be reloaded before each frame.
  22188. Be sure to update it atomically, or it may be read partially, or even fail.
  22189. </p>
  22190. </dd>
  22191. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22192. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22193. <dd><p>The expressions which specify the offsets where text will be drawn
  22194. within the video frame. They are relative to the top/left border of the
  22195. output image.
  22196. </p>
  22197. <p>The default value of <var>x</var> and <var>y</var> is &quot;0&quot;.
  22198. </p>
  22199. <p>See below for the list of accepted constants and functions.
  22200. </p></dd>
  22201. </dl>
  22202. <p>The parameters for <var>x</var> and <var>y</var> are expressions containing the
  22203. following constants and functions:
  22204. </p>
  22205. <dl compact="compact">
  22206. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  22207. <dd><p>input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>
  22208. </p>
  22209. </dd>
  22210. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  22211. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  22212. <dd><p>horizontal and vertical chroma subsample values. For example for the
  22213. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  22214. </p>
  22215. </dd>
  22216. <dt>&lsquo;<samp>line_h, lh</samp>&rsquo;</dt>
  22217. <dd><p>the height of each text line
  22218. </p>
  22219. </dd>
  22220. <dt>&lsquo;<samp>main_h, h, H</samp>&rsquo;</dt>
  22221. <dd><p>the input height
  22222. </p>
  22223. </dd>
  22224. <dt>&lsquo;<samp>main_w, w, W</samp>&rsquo;</dt>
  22225. <dd><p>the input width
  22226. </p>
  22227. </dd>
  22228. <dt>&lsquo;<samp>max_glyph_a, ascent</samp>&rsquo;</dt>
  22229. <dd><p>the maximum distance from the baseline to the highest/upper grid
  22230. coordinate used to place a glyph outline point, for all the rendered
  22231. glyphs.
  22232. It is a positive value, due to the grid&rsquo;s orientation with the Y axis
  22233. upwards.
  22234. </p>
  22235. </dd>
  22236. <dt>&lsquo;<samp>max_glyph_d, descent</samp>&rsquo;</dt>
  22237. <dd><p>the maximum distance from the baseline to the lowest grid coordinate
  22238. used to place a glyph outline point, for all the rendered glyphs.
  22239. This is a negative value, due to the grid&rsquo;s orientation, with the Y axis
  22240. upwards.
  22241. </p>
  22242. </dd>
  22243. <dt>&lsquo;<samp>max_glyph_h</samp>&rsquo;</dt>
  22244. <dd><p>maximum glyph height, that is the maximum height for all the glyphs
  22245. contained in the rendered text, it is equivalent to <var>ascent</var> -
  22246. <var>descent</var>.
  22247. </p>
  22248. </dd>
  22249. <dt>&lsquo;<samp>max_glyph_w</samp>&rsquo;</dt>
  22250. <dd><p>maximum glyph width, that is the maximum width for all the glyphs
  22251. contained in the rendered text
  22252. </p>
  22253. </dd>
  22254. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  22255. <dd><p>the number of input frame, starting from 0
  22256. </p>
  22257. </dd>
  22258. <dt>&lsquo;<samp>rand(min, max)</samp>&rsquo;</dt>
  22259. <dd><p>return a random number included between <var>min</var> and <var>max</var>
  22260. </p>
  22261. </dd>
  22262. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  22263. <dd><p>The input sample aspect ratio.
  22264. </p>
  22265. </dd>
  22266. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  22267. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  22268. </p>
  22269. </dd>
  22270. <dt>&lsquo;<samp>text_h, th</samp>&rsquo;</dt>
  22271. <dd><p>the height of the rendered text
  22272. </p>
  22273. </dd>
  22274. <dt>&lsquo;<samp>text_w, tw</samp>&rsquo;</dt>
  22275. <dd><p>the width of the rendered text
  22276. </p>
  22277. </dd>
  22278. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  22279. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22280. <dd><p>the x and y offset coordinates where the text is drawn.
  22281. </p>
  22282. <p>These parameters allow the <var>x</var> and <var>y</var> expressions to refer
  22283. to each other, so you can for example specify <code>y=x/dar</code>.
  22284. </p>
  22285. </dd>
  22286. <dt>&lsquo;<samp>pict_type</samp>&rsquo;</dt>
  22287. <dd><p>A one character description of the current frame&rsquo;s picture type.
  22288. </p>
  22289. </dd>
  22290. <dt>&lsquo;<samp>pkt_pos</samp>&rsquo;</dt>
  22291. <dd><p>The current packet&rsquo;s position in the input file or stream
  22292. (in bytes, from the start of the input). A value of -1 indicates
  22293. this info is not available.
  22294. </p>
  22295. </dd>
  22296. <dt>&lsquo;<samp>pkt_duration</samp>&rsquo;</dt>
  22297. <dd><p>The current packet&rsquo;s duration, in seconds.
  22298. </p>
  22299. </dd>
  22300. <dt>&lsquo;<samp>pkt_size</samp>&rsquo;</dt>
  22301. <dd><p>The current packet&rsquo;s size (in bytes).
  22302. </p></dd>
  22303. </dl>
  22304. <p><a name="drawtext_005fexpansion"></a>
  22305. </p><a name="Text-expansion"></a>
  22306. <h3 class="subsection"><a href="ffprobe-all.html#toc-Text-expansion">32.60.2 Text expansion</a></h3>
  22307. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>strftime</code>,
  22308. the filter recognizes strftime() sequences in the provided text and
  22309. expands them accordingly. Check the documentation of strftime(). This
  22310. feature is deprecated.
  22311. </p>
  22312. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>none</code>, the text is printed verbatim.
  22313. </p>
  22314. <p>If &lsquo;<samp>expansion</samp>&rsquo; is set to <code>normal</code> (which is the default),
  22315. the following expansion mechanism is used.
  22316. </p>
  22317. <p>The backslash character &lsquo;<samp>\</samp>&rsquo;, followed by any character, always expands to
  22318. the second character.
  22319. </p>
  22320. <p>Sequences of the form <code>%{...}</code> are expanded. The text between the
  22321. braces is a function name, possibly followed by arguments separated by &rsquo;:&rsquo;.
  22322. If the arguments contain special characters or delimiters (&rsquo;:&rsquo; or &rsquo;}&rsquo;),
  22323. they should be escaped.
  22324. </p>
  22325. <p>Note that they probably must also be escaped as the value for the
  22326. &lsquo;<samp>text</samp>&rsquo; option in the filter argument string and as the filter
  22327. argument in the filtergraph description, and possibly also for the shell,
  22328. that makes up to four levels of escaping; using a text file avoids these
  22329. problems.
  22330. </p>
  22331. <p>The following functions are available:
  22332. </p>
  22333. <dl compact="compact">
  22334. <dt><code>expr, e</code></dt>
  22335. <dd><p>The expression evaluation result.
  22336. </p>
  22337. <p>It must take one argument specifying the expression to be evaluated,
  22338. which accepts the same constants and functions as the <var>x</var> and
  22339. <var>y</var> values. Note that not all constants should be used, for
  22340. example the text size is not known when evaluating the expression, so
  22341. the constants <var>text_w</var> and <var>text_h</var> will have an undefined
  22342. value.
  22343. </p>
  22344. </dd>
  22345. <dt><code>expr_int_format, eif</code></dt>
  22346. <dd><p>Evaluate the expression&rsquo;s value and output as formatted integer.
  22347. </p>
  22348. <p>The first argument is the expression to be evaluated, just as for the <var>expr</var> function.
  22349. The second argument specifies the output format. Allowed values are &lsquo;<samp>x</samp>&rsquo;,
  22350. &lsquo;<samp>X</samp>&rsquo;, &lsquo;<samp>d</samp>&rsquo; and &lsquo;<samp>u</samp>&rsquo;. They are treated exactly as in the
  22351. <code>printf</code> function.
  22352. The third parameter is optional and sets the number of positions taken by the output.
  22353. It can be used to add padding with zeros from the left.
  22354. </p>
  22355. </dd>
  22356. <dt><code>gmtime</code></dt>
  22357. <dd><p>The time at which the filter is running, expressed in UTC.
  22358. It can accept an argument: a strftime() format string.
  22359. </p>
  22360. </dd>
  22361. <dt><code>localtime</code></dt>
  22362. <dd><p>The time at which the filter is running, expressed in the local time zone.
  22363. It can accept an argument: a strftime() format string.
  22364. </p>
  22365. </dd>
  22366. <dt><code>metadata</code></dt>
  22367. <dd><p>Frame metadata. Takes one or two arguments.
  22368. </p>
  22369. <p>The first argument is mandatory and specifies the metadata key.
  22370. </p>
  22371. <p>The second argument is optional and specifies a default value, used when the
  22372. metadata key is not found or empty.
  22373. </p>
  22374. <p>Available metadata can be identified by inspecting entries
  22375. starting with TAG included within each frame section
  22376. printed by running <code>ffprobe -show_frames</code>.
  22377. </p>
  22378. <p>String metadata generated in filters leading to
  22379. the drawtext filter are also available.
  22380. </p>
  22381. </dd>
  22382. <dt><code>n, frame_num</code></dt>
  22383. <dd><p>The frame number, starting from 0.
  22384. </p>
  22385. </dd>
  22386. <dt><code>pict_type</code></dt>
  22387. <dd><p>A one character description of the current picture type.
  22388. </p>
  22389. </dd>
  22390. <dt><code>pts</code></dt>
  22391. <dd><p>The timestamp of the current frame.
  22392. It can take up to three arguments.
  22393. </p>
  22394. <p>The first argument is the format of the timestamp; it defaults to <code>flt</code>
  22395. for seconds as a decimal number with microsecond accuracy; <code>hms</code> stands
  22396. for a formatted <var>[-]HH:MM:SS.mmm</var> timestamp with millisecond accuracy.
  22397. <code>gmtime</code> stands for the timestamp of the frame formatted as UTC time;
  22398. <code>localtime</code> stands for the timestamp of the frame formatted as
  22399. local time zone time.
  22400. </p>
  22401. <p>The second argument is an offset added to the timestamp.
  22402. </p>
  22403. <p>If the format is set to <code>hms</code>, a third argument <code>24HH</code> may be
  22404. supplied to present the hour part of the formatted timestamp in 24h format
  22405. (00-23).
  22406. </p>
  22407. <p>If the format is set to <code>localtime</code> or <code>gmtime</code>,
  22408. a third argument may be supplied: a strftime() format string.
  22409. By default, <var>YYYY-MM-DD HH:MM:SS</var> format will be used.
  22410. </p></dd>
  22411. </dl>
  22412. <a name="Commands-40"></a>
  22413. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-40">32.60.3 Commands</a></h3>
  22414. <p>This filter supports altering parameters via commands:
  22415. </p><dl compact="compact">
  22416. <dt>&lsquo;<samp>reinit</samp>&rsquo;</dt>
  22417. <dd><p>Alter existing filter parameters.
  22418. </p>
  22419. <p>Syntax for the argument is the same as for filter invocation, e.g.
  22420. </p>
  22421. <div class="example">
  22422. <pre class="example">fontsize=56:fontcolor=green:text='Hello World'
  22423. </pre></div>
  22424. <p>Full filter invocation with sendcmd would look like this:
  22425. </p>
  22426. <div class="example">
  22427. <pre class="example">sendcmd=c='56.0 drawtext reinit fontsize=56\:fontcolor=green\:text=Hello\\ World'
  22428. </pre></div>
  22429. </dd>
  22430. </dl>
  22431. <p>If the entire argument can&rsquo;t be parsed or applied as valid values then the filter will
  22432. continue with its existing parameters.
  22433. </p>
  22434. <a name="Examples-58"></a>
  22435. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-58">32.60.4 Examples</a></h3>
  22436. <ul>
  22437. <li>
  22438. Draw &quot;Test Text&quot; with font FreeSerif, using the default values for the
  22439. optional parameters.
  22440. <div class="example">
  22441. <pre class="example">drawtext=&quot;fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'&quot;
  22442. </pre></div>
  22443. </li><li>
  22444. Draw &rsquo;Test Text&rsquo; with font FreeSerif of size 24 at position x=100
  22445. and y=50 (counting from the top-left corner of the screen), text is
  22446. yellow with a red box around it. Both the text and the box have an
  22447. opacity of 20%.
  22448. <div class="example">
  22449. <pre class="example">drawtext=&quot;fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
  22450. x=100: y=50: fontsize=24: fontcolor=yellow@0.2: box=1: boxcolor=red@0.2&quot;
  22451. </pre></div>
  22452. <p>Note that the double quotes are not necessary if spaces are not used
  22453. within the parameter list.
  22454. </p>
  22455. </li><li>
  22456. Show the text at the center of the video frame:
  22457. <div class="example">
  22458. <pre class="example">drawtext=&quot;fontsize=30:fontfile=FreeSerif.ttf:text='hello world':x=(w-text_w)/2:y=(h-text_h)/2&quot;
  22459. </pre></div>
  22460. </li><li>
  22461. Show the text at a random position, switching to a new position every 30 seconds:
  22462. <div class="example">
  22463. <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;
  22464. </pre></div>
  22465. </li><li>
  22466. Show a text line sliding from right to left in the last row of the video
  22467. frame. The file &lsquo;<tt>LONG_LINE</tt>&rsquo; is assumed to contain a single line
  22468. with no newlines.
  22469. <div class="example">
  22470. <pre class="example">drawtext=&quot;fontsize=15:fontfile=FreeSerif.ttf:text=LONG_LINE:y=h-line_h:x=-50*t&quot;
  22471. </pre></div>
  22472. </li><li>
  22473. Show the content of file &lsquo;<tt>CREDITS</tt>&rsquo; off the bottom of the frame and scroll up.
  22474. <div class="example">
  22475. <pre class="example">drawtext=&quot;fontsize=20:fontfile=FreeSerif.ttf:textfile=CREDITS:y=h-20*t&quot;
  22476. </pre></div>
  22477. </li><li>
  22478. Draw a single green letter &quot;g&quot;, at the center of the input video.
  22479. The glyph baseline is placed at half screen height.
  22480. <div class="example">
  22481. <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;
  22482. </pre></div>
  22483. </li><li>
  22484. Show text for 1 second every 3 seconds:
  22485. <div class="example">
  22486. <pre class="example">drawtext=&quot;fontfile=FreeSerif.ttf:fontcolor=white:x=100:y=x/dar:enable=lt(mod(t\,3)\,1):text='blink'&quot;
  22487. </pre></div>
  22488. </li><li>
  22489. Use fontconfig to set the font. Note that the colons need to be escaped.
  22490. <div class="example">
  22491. <pre class="example">drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
  22492. </pre></div>
  22493. </li><li>
  22494. Print the date of a real-time encoding (see strftime(3)):
  22495. <div class="example">
  22496. <pre class="example">drawtext='fontfile=FreeSans.ttf:text=%{localtime\:%a %b %d %Y}'
  22497. </pre></div>
  22498. </li><li>
  22499. Show text fading in and out (appearing/disappearing):
  22500. <div class="example">
  22501. <pre class="example">#!/bin/sh
  22502. DS=1.0 # display start
  22503. DE=10.0 # display end
  22504. FID=1.5 # fade in duration
  22505. FOD=5 # fade out duration
  22506. 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;
  22507. </pre></div>
  22508. </li><li>
  22509. Horizontally align multiple separate texts. Note that &lsquo;<samp>max_glyph_a</samp>&rsquo;
  22510. and the &lsquo;<samp>fontsize</samp>&rsquo; value are included in the &lsquo;<samp>y</samp>&rsquo; offset.
  22511. <div class="example">
  22512. <pre class="example">drawtext=fontfile=FreeSans.ttf:text=DOG:fontsize=24:x=10:y=20+24-max_glyph_a,
  22513. drawtext=fontfile=FreeSans.ttf:text=cow:fontsize=24:x=80:y=20+24-max_glyph_a
  22514. </pre></div>
  22515. </li><li>
  22516. Plot special <var>lavf.image2dec.source_basename</var> metadata onto each frame if
  22517. such metadata exists. Otherwise, plot the string &quot;NA&quot;. Note that image2 demuxer
  22518. must have option &lsquo;<samp>-export_path_metadata 1</samp>&rsquo; for the special metadata fields
  22519. to be available for filters.
  22520. <div class="example">
  22521. <pre class="example">drawtext=&quot;fontsize=20:fontcolor=white:fontfile=FreeSans.ttf:text='%{metadata\:lavf.image2dec.source_basename\:NA}':x=10:y=10&quot;
  22522. </pre></div>
  22523. </li></ul>
  22524. <p>For more information about libfreetype, check:
  22525. <a href="http://www.freetype.org/">http://www.freetype.org/</a>.
  22526. </p>
  22527. <p>For more information about fontconfig, check:
  22528. <a href="http://freedesktop.org/software/fontconfig/fontconfig-user.html">http://freedesktop.org/software/fontconfig/fontconfig-user.html</a>.
  22529. </p>
  22530. <p>For more information about libfribidi, check:
  22531. <a href="http://fribidi.org/">http://fribidi.org/</a>.
  22532. </p>
  22533. <a name="edgedetect"></a>
  22534. <h2 class="section"><a href="ffprobe-all.html#toc-edgedetect">32.61 edgedetect</a></h2>
  22535. <p>Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
  22536. </p>
  22537. <p>The filter accepts the following options:
  22538. </p>
  22539. <dl compact="compact">
  22540. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  22541. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  22542. <dd><p>Set low and high threshold values used by the Canny thresholding
  22543. algorithm.
  22544. </p>
  22545. <p>The high threshold selects the &quot;strong&quot; edge pixels, which are then
  22546. connected through 8-connectivity with the &quot;weak&quot; edge pixels selected
  22547. by the low threshold.
  22548. </p>
  22549. <p><var>low</var> and <var>high</var> threshold values must be chosen in the range
  22550. [0,1], and <var>low</var> should be lesser or equal to <var>high</var>.
  22551. </p>
  22552. <p>Default value for <var>low</var> is <code>20/255</code>, and default value for <var>high</var>
  22553. is <code>50/255</code>.
  22554. </p>
  22555. </dd>
  22556. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  22557. <dd><p>Define the drawing mode.
  22558. </p>
  22559. <dl compact="compact">
  22560. <dt>&lsquo;<samp>wires</samp>&rsquo;</dt>
  22561. <dd><p>Draw white/gray wires on black background.
  22562. </p>
  22563. </dd>
  22564. <dt>&lsquo;<samp>colormix</samp>&rsquo;</dt>
  22565. <dd><p>Mix the colors to create a paint/cartoon effect.
  22566. </p>
  22567. </dd>
  22568. <dt>&lsquo;<samp>canny</samp>&rsquo;</dt>
  22569. <dd><p>Apply Canny edge detector on all selected planes.
  22570. </p></dd>
  22571. </dl>
  22572. <p>Default value is <var>wires</var>.
  22573. </p>
  22574. </dd>
  22575. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  22576. <dd><p>Select planes for filtering. By default all available planes are filtered.
  22577. </p></dd>
  22578. </dl>
  22579. <a name="Examples-107"></a>
  22580. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-107">32.61.1 Examples</a></h3>
  22581. <ul>
  22582. <li>
  22583. Standard edge detection with custom values for the hysteresis thresholding:
  22584. <div class="example">
  22585. <pre class="example">edgedetect=low=0.1:high=0.4
  22586. </pre></div>
  22587. </li><li>
  22588. Painting effect without thresholding:
  22589. <div class="example">
  22590. <pre class="example">edgedetect=mode=colormix:high=0
  22591. </pre></div>
  22592. </li></ul>
  22593. <a name="elbg"></a>
  22594. <h2 class="section"><a href="ffprobe-all.html#toc-elbg">32.62 elbg</a></h2>
  22595. <p>Apply a posterize effect using the ELBG (Enhanced LBG) algorithm.
  22596. </p>
  22597. <p>For each input image, the filter will compute the optimal mapping from
  22598. the input to the output given the codebook length, that is the number
  22599. of distinct output colors.
  22600. </p>
  22601. <p>This filter accepts the following options.
  22602. </p>
  22603. <dl compact="compact">
  22604. <dt>&lsquo;<samp>codebook_length, l</samp>&rsquo;</dt>
  22605. <dd><p>Set codebook length. The value must be a positive integer, and
  22606. represents the number of distinct output colors. Default value is 256.
  22607. </p>
  22608. </dd>
  22609. <dt>&lsquo;<samp>nb_steps, n</samp>&rsquo;</dt>
  22610. <dd><p>Set the maximum number of iterations to apply for computing the optimal
  22611. mapping. The higher the value the better the result and the higher the
  22612. computation time. Default value is 1.
  22613. </p>
  22614. </dd>
  22615. <dt>&lsquo;<samp>seed, s</samp>&rsquo;</dt>
  22616. <dd><p>Set a random seed, must be an integer included between 0 and
  22617. UINT32_MAX. If not specified, or if explicitly set to -1, the filter
  22618. will try to use a good random seed on a best effort basis.
  22619. </p>
  22620. </dd>
  22621. <dt>&lsquo;<samp>pal8</samp>&rsquo;</dt>
  22622. <dd><p>Set pal8 output pixel format. This option does not work with codebook
  22623. length greater than 256.
  22624. </p></dd>
  22625. </dl>
  22626. <a name="entropy"></a>
  22627. <h2 class="section"><a href="ffprobe-all.html#toc-entropy">32.63 entropy</a></h2>
  22628. <p>Measure graylevel entropy in histogram of color channels of video frames.
  22629. </p>
  22630. <p>It accepts the following parameters:
  22631. </p>
  22632. <dl compact="compact">
  22633. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  22634. <dd><p>Can be either <var>normal</var> or <var>diff</var>. Default is <var>normal</var>.
  22635. </p>
  22636. <p><var>diff</var> mode measures entropy of histogram delta values, absolute differences
  22637. between neighbour histogram values.
  22638. </p></dd>
  22639. </dl>
  22640. <a name="eq"></a>
  22641. <h2 class="section"><a href="ffprobe-all.html#toc-eq">32.64 eq</a></h2>
  22642. <p>Set brightness, contrast, saturation and approximate gamma adjustment.
  22643. </p>
  22644. <p>The filter accepts the following options:
  22645. </p>
  22646. <dl compact="compact">
  22647. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  22648. <dd><p>Set the contrast expression. The value must be a float value in range
  22649. <code>-1000.0</code> to <code>1000.0</code>. The default value is &quot;1&quot;.
  22650. </p>
  22651. </dd>
  22652. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  22653. <dd><p>Set the brightness expression. The value must be a float value in
  22654. range <code>-1.0</code> to <code>1.0</code>. The default value is &quot;0&quot;.
  22655. </p>
  22656. </dd>
  22657. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  22658. <dd><p>Set the saturation expression. The value must be a float in
  22659. range <code>0.0</code> to <code>3.0</code>. The default value is &quot;1&quot;.
  22660. </p>
  22661. </dd>
  22662. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  22663. <dd><p>Set the gamma expression. The value must be a float in range
  22664. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22665. </p>
  22666. </dd>
  22667. <dt>&lsquo;<samp>gamma_r</samp>&rsquo;</dt>
  22668. <dd><p>Set the gamma expression for red. The value must be a float in
  22669. range <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22670. </p>
  22671. </dd>
  22672. <dt>&lsquo;<samp>gamma_g</samp>&rsquo;</dt>
  22673. <dd><p>Set the gamma expression for green. The value must be a float in range
  22674. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22675. </p>
  22676. </dd>
  22677. <dt>&lsquo;<samp>gamma_b</samp>&rsquo;</dt>
  22678. <dd><p>Set the gamma expression for blue. The value must be a float in range
  22679. <code>0.1</code> to <code>10.0</code>. The default value is &quot;1&quot;.
  22680. </p>
  22681. </dd>
  22682. <dt>&lsquo;<samp>gamma_weight</samp>&rsquo;</dt>
  22683. <dd><p>Set the gamma weight expression. It can be used to reduce the effect
  22684. of a high gamma value on bright image areas, e.g. keep them from
  22685. getting overamplified and just plain white. The value must be a float
  22686. in range <code>0.0</code> to <code>1.0</code>. A value of <code>0.0</code> turns the
  22687. gamma correction all the way down while <code>1.0</code> leaves it at its
  22688. full strength. Default is &quot;1&quot;.
  22689. </p>
  22690. </dd>
  22691. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  22692. <dd><p>Set when the expressions for brightness, contrast, saturation and
  22693. gamma expressions are evaluated.
  22694. </p>
  22695. <p>It accepts the following values:
  22696. </p><dl compact="compact">
  22697. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  22698. <dd><p>only evaluate expressions once during the filter initialization or
  22699. when a command is processed
  22700. </p>
  22701. </dd>
  22702. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  22703. <dd><p>evaluate expressions for each incoming frame
  22704. </p></dd>
  22705. </dl>
  22706. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  22707. </p></dd>
  22708. </dl>
  22709. <p>The expressions accept the following parameters:
  22710. </p><dl compact="compact">
  22711. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  22712. <dd><p>frame count of the input frame starting from 0
  22713. </p>
  22714. </dd>
  22715. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  22716. <dd><p>byte position of the corresponding packet in the input file, NAN if
  22717. unspecified
  22718. </p>
  22719. </dd>
  22720. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  22721. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  22722. </p>
  22723. </dd>
  22724. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  22725. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  22726. </p></dd>
  22727. </dl>
  22728. <a name="Commands-14"></a>
  22729. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-14">32.64.1 Commands</a></h3>
  22730. <p>The filter supports the following commands:
  22731. </p>
  22732. <dl compact="compact">
  22733. <dt>&lsquo;<samp>contrast</samp>&rsquo;</dt>
  22734. <dd><p>Set the contrast expression.
  22735. </p>
  22736. </dd>
  22737. <dt>&lsquo;<samp>brightness</samp>&rsquo;</dt>
  22738. <dd><p>Set the brightness expression.
  22739. </p>
  22740. </dd>
  22741. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  22742. <dd><p>Set the saturation expression.
  22743. </p>
  22744. </dd>
  22745. <dt>&lsquo;<samp>gamma</samp>&rsquo;</dt>
  22746. <dd><p>Set the gamma expression.
  22747. </p>
  22748. </dd>
  22749. <dt>&lsquo;<samp>gamma_r</samp>&rsquo;</dt>
  22750. <dd><p>Set the gamma_r expression.
  22751. </p>
  22752. </dd>
  22753. <dt>&lsquo;<samp>gamma_g</samp>&rsquo;</dt>
  22754. <dd><p>Set gamma_g expression.
  22755. </p>
  22756. </dd>
  22757. <dt>&lsquo;<samp>gamma_b</samp>&rsquo;</dt>
  22758. <dd><p>Set gamma_b expression.
  22759. </p>
  22760. </dd>
  22761. <dt>&lsquo;<samp>gamma_weight</samp>&rsquo;</dt>
  22762. <dd><p>Set gamma_weight expression.
  22763. </p>
  22764. <p>The command accepts the same syntax of the corresponding option.
  22765. </p>
  22766. <p>If the specified expression is not valid, it is kept at its current
  22767. value.
  22768. </p>
  22769. </dd>
  22770. </dl>
  22771. <a name="erosion"></a>
  22772. <h2 class="section"><a href="ffprobe-all.html#toc-erosion">32.65 erosion</a></h2>
  22773. <p>Apply erosion effect to the video.
  22774. </p>
  22775. <p>This filter replaces the pixel by the local(3x3) minimum.
  22776. </p>
  22777. <p>It accepts the following options:
  22778. </p>
  22779. <dl compact="compact">
  22780. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  22781. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  22782. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  22783. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  22784. <dd><p>Limit the maximum change for each plane, default is 65535.
  22785. If 0, plane will remain unchanged.
  22786. </p>
  22787. </dd>
  22788. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  22789. <dd><p>Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
  22790. pixels are used.
  22791. </p>
  22792. <p>Flags to local 3x3 coordinates maps like this:
  22793. </p>
  22794. <p> 1 2 3
  22795. 4 5
  22796. 6 7 8
  22797. </p></dd>
  22798. </dl>
  22799. <a name="Commands-61"></a>
  22800. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-61">32.65.1 Commands</a></h3>
  22801. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  22802. </p>
  22803. <a name="extractplanes"></a>
  22804. <h2 class="section"><a href="ffprobe-all.html#toc-extractplanes">32.66 extractplanes</a></h2>
  22805. <p>Extract color channel components from input video stream into
  22806. separate grayscale video streams.
  22807. </p>
  22808. <p>The filter accepts the following option:
  22809. </p>
  22810. <dl compact="compact">
  22811. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  22812. <dd><p>Set plane(s) to extract.
  22813. </p>
  22814. <p>Available values for planes are:
  22815. </p><dl compact="compact">
  22816. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  22817. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  22818. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  22819. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  22820. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  22821. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  22822. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  22823. </dl>
  22824. <p>Choosing planes not available in the input will result in an error.
  22825. That means you cannot select <code>r</code>, <code>g</code>, <code>b</code> planes
  22826. with <code>y</code>, <code>u</code>, <code>v</code> planes at same time.
  22827. </p></dd>
  22828. </dl>
  22829. <a name="Examples-90"></a>
  22830. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-90">32.66.1 Examples</a></h3>
  22831. <ul>
  22832. <li>
  22833. Extract luma, u and v color channel component from input video frame
  22834. into 3 grayscale outputs:
  22835. <div class="example">
  22836. <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
  22837. </pre></div>
  22838. </li></ul>
  22839. <a name="fade"></a>
  22840. <h2 class="section"><a href="ffprobe-all.html#toc-fade">32.67 fade</a></h2>
  22841. <p>Apply a fade-in/out effect to the input video.
  22842. </p>
  22843. <p>It accepts the following parameters:
  22844. </p>
  22845. <dl compact="compact">
  22846. <dt>&lsquo;<samp>type, t</samp>&rsquo;</dt>
  22847. <dd><p>The effect type can be either &quot;in&quot; for a fade-in, or &quot;out&quot; for a fade-out
  22848. effect.
  22849. Default is <code>in</code>.
  22850. </p>
  22851. </dd>
  22852. <dt>&lsquo;<samp>start_frame, s</samp>&rsquo;</dt>
  22853. <dd><p>Specify the number of the frame to start applying the fade
  22854. effect at. Default is 0.
  22855. </p>
  22856. </dd>
  22857. <dt>&lsquo;<samp>nb_frames, n</samp>&rsquo;</dt>
  22858. <dd><p>The number of frames that the fade effect lasts. At the end of the
  22859. fade-in effect, the output video will have the same intensity as the input video.
  22860. At the end of the fade-out transition, the output video will be filled with the
  22861. selected &lsquo;<samp>color</samp>&rsquo;.
  22862. Default is 25.
  22863. </p>
  22864. </dd>
  22865. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  22866. <dd><p>If set to 1, fade only alpha channel, if one exists on the input.
  22867. Default value is 0.
  22868. </p>
  22869. </dd>
  22870. <dt>&lsquo;<samp>start_time, st</samp>&rsquo;</dt>
  22871. <dd><p>Specify the timestamp (in seconds) of the frame to start to apply the fade
  22872. effect. If both start_frame and start_time are specified, the fade will start at
  22873. whichever comes last. Default is 0.
  22874. </p>
  22875. </dd>
  22876. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  22877. <dd><p>The number of seconds for which the fade effect has to last. At the end of the
  22878. fade-in effect the output video will have the same intensity as the input video,
  22879. at the end of the fade-out transition the output video will be filled with the
  22880. selected &lsquo;<samp>color</samp>&rsquo;.
  22881. If both duration and nb_frames are specified, duration is used. Default is 0
  22882. (nb_frames is used by default).
  22883. </p>
  22884. </dd>
  22885. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  22886. <dd><p>Specify the color of the fade. Default is &quot;black&quot;.
  22887. </p></dd>
  22888. </dl>
  22889. <a name="Examples-17"></a>
  22890. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-17">32.67.1 Examples</a></h3>
  22891. <ul>
  22892. <li>
  22893. Fade in the first 30 frames of video:
  22894. <div class="example">
  22895. <pre class="example">fade=in:0:30
  22896. </pre></div>
  22897. <p>The command above is equivalent to:
  22898. </p><div class="example">
  22899. <pre class="example">fade=t=in:s=0:n=30
  22900. </pre></div>
  22901. </li><li>
  22902. Fade out the last 45 frames of a 200-frame video:
  22903. <div class="example">
  22904. <pre class="example">fade=out:155:45
  22905. fade=type=out:start_frame=155:nb_frames=45
  22906. </pre></div>
  22907. </li><li>
  22908. Fade in the first 25 frames and fade out the last 25 frames of a 1000-frame video:
  22909. <div class="example">
  22910. <pre class="example">fade=in:0:25, fade=out:975:25
  22911. </pre></div>
  22912. </li><li>
  22913. Make the first 5 frames yellow, then fade in from frame 5-24:
  22914. <div class="example">
  22915. <pre class="example">fade=in:5:20:color=yellow
  22916. </pre></div>
  22917. </li><li>
  22918. Fade in alpha over first 25 frames of video:
  22919. <div class="example">
  22920. <pre class="example">fade=in:0:25:alpha=1
  22921. </pre></div>
  22922. </li><li>
  22923. Make the first 5.5 seconds black, then fade in for 0.5 seconds:
  22924. <div class="example">
  22925. <pre class="example">fade=t=in:st=5.5:d=0.5
  22926. </pre></div>
  22927. </li></ul>
  22928. <a name="fftdnoiz"></a>
  22929. <h2 class="section"><a href="ffprobe-all.html#toc-fftdnoiz">32.68 fftdnoiz</a></h2>
  22930. <p>Denoise frames using 3D FFT (frequency domain filtering).
  22931. </p>
  22932. <p>The filter accepts the following options:
  22933. </p>
  22934. <dl compact="compact">
  22935. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  22936. <dd><p>Set the noise sigma constant. This sets denoising strength.
  22937. Default value is 1. Allowed range is from 0 to 30.
  22938. Using very high sigma with low overlap may give blocking artifacts.
  22939. </p>
  22940. </dd>
  22941. <dt>&lsquo;<samp>amount</samp>&rsquo;</dt>
  22942. <dd><p>Set amount of denoising. By default all detected noise is reduced.
  22943. Default value is 1. Allowed range is from 0 to 1.
  22944. </p>
  22945. </dd>
  22946. <dt>&lsquo;<samp>block</samp>&rsquo;</dt>
  22947. <dd><p>Set size of block, Default is 4, can be 3, 4, 5 or 6.
  22948. Actual size of block in pixels is 2 to power of <var>block</var>, so by default
  22949. block size in pixels is 2^4 which is 16.
  22950. </p>
  22951. </dd>
  22952. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  22953. <dd><p>Set block overlap. Default is 0.5. Allowed range is from 0.2 to 0.8.
  22954. </p>
  22955. </dd>
  22956. <dt>&lsquo;<samp>prev</samp>&rsquo;</dt>
  22957. <dd><p>Set number of previous frames to use for denoising. By default is set to 0.
  22958. </p>
  22959. </dd>
  22960. <dt>&lsquo;<samp>next</samp>&rsquo;</dt>
  22961. <dd><p>Set number of next frames to to use for denoising. By default is set to 0.
  22962. </p>
  22963. </dd>
  22964. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  22965. <dd><p>Set planes which will be filtered, by default are all available filtered
  22966. except alpha.
  22967. </p></dd>
  22968. </dl>
  22969. <a name="fftfilt"></a>
  22970. <h2 class="section"><a href="ffprobe-all.html#toc-fftfilt">32.69 fftfilt</a></h2>
  22971. <p>Apply arbitrary expressions to samples in frequency domain
  22972. </p>
  22973. <dl compact="compact">
  22974. <dt>&lsquo;<samp>dc_Y</samp>&rsquo;</dt>
  22975. <dd><p>Adjust the dc value (gain) of the luma plane of the image. The filter
  22976. accepts an integer value in range <code>0</code> to <code>1000</code>. The default
  22977. value is set to <code>0</code>.
  22978. </p>
  22979. </dd>
  22980. <dt>&lsquo;<samp>dc_U</samp>&rsquo;</dt>
  22981. <dd><p>Adjust the dc value (gain) of the 1st chroma plane of the image. The
  22982. filter accepts an integer value in range <code>0</code> to <code>1000</code>. The
  22983. default value is set to <code>0</code>.
  22984. </p>
  22985. </dd>
  22986. <dt>&lsquo;<samp>dc_V</samp>&rsquo;</dt>
  22987. <dd><p>Adjust the dc value (gain) of the 2nd chroma plane of the image. The
  22988. filter accepts an integer value in range <code>0</code> to <code>1000</code>. The
  22989. default value is set to <code>0</code>.
  22990. </p>
  22991. </dd>
  22992. <dt>&lsquo;<samp>weight_Y</samp>&rsquo;</dt>
  22993. <dd><p>Set the frequency domain weight expression for the luma plane.
  22994. </p>
  22995. </dd>
  22996. <dt>&lsquo;<samp>weight_U</samp>&rsquo;</dt>
  22997. <dd><p>Set the frequency domain weight expression for the 1st chroma plane.
  22998. </p>
  22999. </dd>
  23000. <dt>&lsquo;<samp>weight_V</samp>&rsquo;</dt>
  23001. <dd><p>Set the frequency domain weight expression for the 2nd chroma plane.
  23002. </p>
  23003. </dd>
  23004. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  23005. <dd><p>Set when the expressions are evaluated.
  23006. </p>
  23007. <p>It accepts the following values:
  23008. </p><dl compact="compact">
  23009. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  23010. <dd><p>Only evaluate expressions once during the filter initialization.
  23011. </p>
  23012. </dd>
  23013. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  23014. <dd><p>Evaluate expressions for each incoming frame.
  23015. </p></dd>
  23016. </dl>
  23017. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  23018. </p>
  23019. <p>The filter accepts the following variables:
  23020. </p></dd>
  23021. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  23022. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  23023. <dd><p>The coordinates of the current sample.
  23024. </p>
  23025. </dd>
  23026. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  23027. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  23028. <dd><p>The width and height of the image.
  23029. </p>
  23030. </dd>
  23031. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  23032. <dd><p>The number of input frame, starting from 0.
  23033. </p></dd>
  23034. </dl>
  23035. <a name="Examples-83"></a>
  23036. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-83">32.69.1 Examples</a></h3>
  23037. <ul>
  23038. <li>
  23039. High-pass:
  23040. <div class="example">
  23041. <pre class="example">fftfilt=dc_Y=128:weight_Y='squish(1-(Y+X)/100)'
  23042. </pre></div>
  23043. </li><li>
  23044. Low-pass:
  23045. <div class="example">
  23046. <pre class="example">fftfilt=dc_Y=0:weight_Y='squish((Y+X)/100-1)'
  23047. </pre></div>
  23048. </li><li>
  23049. Sharpen:
  23050. <div class="example">
  23051. <pre class="example">fftfilt=dc_Y=0:weight_Y='1+squish(1-(Y+X)/100)'
  23052. </pre></div>
  23053. </li><li>
  23054. Blur:
  23055. <div class="example">
  23056. <pre class="example">fftfilt=dc_Y=0:weight_Y='exp(-4 * ((Y+X)/(W+H)))'
  23057. </pre></div>
  23058. </li></ul>
  23059. <a name="field"></a>
  23060. <h2 class="section"><a href="ffprobe-all.html#toc-field">32.70 field</a></h2>
  23061. <p>Extract a single field from an interlaced image using stride
  23062. arithmetic to avoid wasting CPU time. The output frames are marked as
  23063. non-interlaced.
  23064. </p>
  23065. <p>The filter accepts the following options:
  23066. </p>
  23067. <dl compact="compact">
  23068. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  23069. <dd><p>Specify whether to extract the top (if the value is <code>0</code> or
  23070. <code>top</code>) or the bottom field (if the value is <code>1</code> or
  23071. <code>bottom</code>).
  23072. </p></dd>
  23073. </dl>
  23074. <a name="fieldhint"></a>
  23075. <h2 class="section"><a href="ffprobe-all.html#toc-fieldhint">32.71 fieldhint</a></h2>
  23076. <p>Create new frames by copying the top and bottom fields from surrounding frames
  23077. supplied as numbers by the hint file.
  23078. </p>
  23079. <dl compact="compact">
  23080. <dt>&lsquo;<samp>hint</samp>&rsquo;</dt>
  23081. <dd><p>Set file containing hints: absolute/relative frame numbers.
  23082. </p>
  23083. <p>There must be one line for each frame in a clip. Each line must contain two
  23084. numbers separated by the comma, optionally followed by <code>-</code> or <code>+</code>.
  23085. Numbers supplied on each line of file can not be out of [N-1,N+1] where N
  23086. is current frame number for <code>absolute</code> mode or out of [-1, 1] range
  23087. for <code>relative</code> mode. First number tells from which frame to pick up top
  23088. field and second number tells from which frame to pick up bottom field.
  23089. </p>
  23090. <p>If optionally followed by <code>+</code> output frame will be marked as interlaced,
  23091. else if followed by <code>-</code> output frame will be marked as progressive, else
  23092. it will be marked same as input frame.
  23093. If optionally followed by <code>t</code> output frame will use only top field, or in
  23094. case of <code>b</code> it will use only bottom field.
  23095. If line starts with <code>#</code> or <code>;</code> that line is skipped.
  23096. </p>
  23097. </dd>
  23098. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23099. <dd><p>Can be item <code>absolute</code> or <code>relative</code>. Default is <code>absolute</code>.
  23100. </p></dd>
  23101. </dl>
  23102. <p>Example of first several lines of <code>hint</code> file for <code>relative</code> mode:
  23103. </p><div class="example">
  23104. <pre class="example">0,0 - # first frame
  23105. 1,0 - # second frame, use third's frame top field and second's frame bottom field
  23106. 1,0 - # third frame, use fourth's frame top field and third's frame bottom field
  23107. 1,0 -
  23108. 0,0 -
  23109. 0,0 -
  23110. 1,0 -
  23111. 1,0 -
  23112. 1,0 -
  23113. 0,0 -
  23114. 0,0 -
  23115. 1,0 -
  23116. 1,0 -
  23117. 1,0 -
  23118. 0,0 -
  23119. </pre></div>
  23120. <a name="fieldmatch"></a>
  23121. <h2 class="section"><a href="ffprobe-all.html#toc-fieldmatch">32.72 fieldmatch</a></h2>
  23122. <p>Field matching filter for inverse telecine. It is meant to reconstruct the
  23123. progressive frames from a telecined stream. The filter does not drop duplicated
  23124. frames, so to achieve a complete inverse telecine <code>fieldmatch</code> needs to be
  23125. followed by a decimation filter such as <a href="#decimate">decimate</a> in the filtergraph.
  23126. </p>
  23127. <p>The separation of the field matching and the decimation is notably motivated by
  23128. the possibility of inserting a de-interlacing filter fallback between the two.
  23129. If the source has mixed telecined and real interlaced content,
  23130. <code>fieldmatch</code> will not be able to match fields for the interlaced parts.
  23131. But these remaining combed frames will be marked as interlaced, and thus can be
  23132. de-interlaced by a later filter such as <a href="#yadif">yadif</a> before decimation.
  23133. </p>
  23134. <p>In addition to the various configuration options, <code>fieldmatch</code> can take an
  23135. optional second stream, activated through the &lsquo;<samp>ppsrc</samp>&rsquo; option. If
  23136. enabled, the frames reconstruction will be based on the fields and frames from
  23137. this second stream. This allows the first input to be pre-processed in order to
  23138. help the various algorithms of the filter, while keeping the output lossless
  23139. (assuming the fields are matched properly). Typically, a field-aware denoiser,
  23140. or brightness/contrast adjustments can help.
  23141. </p>
  23142. <p>Note that this filter uses the same algorithms as TIVTC/TFM (AviSynth project)
  23143. and VIVTC/VFM (VapourSynth project). The later is a light clone of TFM from
  23144. which <code>fieldmatch</code> is based on. While the semantic and usage are very
  23145. close, some behaviour and options names can differ.
  23146. </p>
  23147. <p>The <a href="#decimate">decimate</a> filter currently only works for constant frame rate input.
  23148. If your input has mixed telecined (30fps) and progressive content with a lower
  23149. framerate like 24fps use the following filterchain to produce the necessary cfr
  23150. stream: <code>dejudder,fps=30000/1001,fieldmatch,decimate</code>.
  23151. </p>
  23152. <p>The filter accepts the following options:
  23153. </p>
  23154. <dl compact="compact">
  23155. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  23156. <dd><p>Specify the assumed field order of the input stream. Available values are:
  23157. </p>
  23158. <dl compact="compact">
  23159. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  23160. <dd><p>Auto detect parity (use FFmpeg&rsquo;s internal parity value).
  23161. </p></dd>
  23162. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  23163. <dd><p>Assume bottom field first.
  23164. </p></dd>
  23165. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  23166. <dd><p>Assume top field first.
  23167. </p></dd>
  23168. </dl>
  23169. <p>Note that it is sometimes recommended not to trust the parity announced by the
  23170. stream.
  23171. </p>
  23172. <p>Default value is <var>auto</var>.
  23173. </p>
  23174. </dd>
  23175. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23176. <dd><p>Set the matching mode or strategy to use. &lsquo;<samp>pc</samp>&rsquo; mode is the safest in the
  23177. sense that it won&rsquo;t risk creating jerkiness due to duplicate frames when
  23178. possible, but if there are bad edits or blended fields it will end up
  23179. outputting combed frames when a good match might actually exist. On the other
  23180. hand, &lsquo;<samp>pcn_ub</samp>&rsquo; mode is the most risky in terms of creating jerkiness,
  23181. but will almost always find a good frame if there is one. The other values are
  23182. all somewhere in between &lsquo;<samp>pc</samp>&rsquo; and &lsquo;<samp>pcn_ub</samp>&rsquo; in terms of risking
  23183. jerkiness and creating duplicate frames versus finding good matches in sections
  23184. with bad edits, orphaned fields, blended fields, etc.
  23185. </p>
  23186. <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.
  23187. </p>
  23188. <p>Available values are:
  23189. </p>
  23190. <dl compact="compact">
  23191. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  23192. <dd><p>2-way matching (p/c)
  23193. </p></dd>
  23194. <dt>&lsquo;<samp>pc_n</samp>&rsquo;</dt>
  23195. <dd><p>2-way matching, and trying 3rd match if still combed (p/c + n)
  23196. </p></dd>
  23197. <dt>&lsquo;<samp>pc_u</samp>&rsquo;</dt>
  23198. <dd><p>2-way matching, and trying 3rd match (same order) if still combed (p/c + u)
  23199. </p></dd>
  23200. <dt>&lsquo;<samp>pc_n_ub</samp>&rsquo;</dt>
  23201. <dd><p>2-way matching, trying 3rd match if still combed, and trying 4th/5th matches if
  23202. still combed (p/c + n + u/b)
  23203. </p></dd>
  23204. <dt>&lsquo;<samp>pcn</samp>&rsquo;</dt>
  23205. <dd><p>3-way matching (p/c/n)
  23206. </p></dd>
  23207. <dt>&lsquo;<samp>pcn_ub</samp>&rsquo;</dt>
  23208. <dd><p>3-way matching, and trying 4th/5th matches if all 3 of the original matches are
  23209. detected as combed (p/c/n + u/b)
  23210. </p></dd>
  23211. </dl>
  23212. <p>The parenthesis at the end indicate the matches that would be used for that
  23213. mode assuming &lsquo;<samp>order</samp>&rsquo;=<var>tff</var> (and &lsquo;<samp>field</samp>&rsquo; on <var>auto</var> or
  23214. <var>top</var>).
  23215. </p>
  23216. <p>In terms of speed &lsquo;<samp>pc</samp>&rsquo; mode is by far the fastest and &lsquo;<samp>pcn_ub</samp>&rsquo; is
  23217. the slowest.
  23218. </p>
  23219. <p>Default value is <var>pc_n</var>.
  23220. </p>
  23221. </dd>
  23222. <dt>&lsquo;<samp>ppsrc</samp>&rsquo;</dt>
  23223. <dd><p>Mark the main input stream as a pre-processed input, and enable the secondary
  23224. input stream as the clean source to pick the fields from. See the filter
  23225. introduction for more details. It is similar to the &lsquo;<samp>clip2</samp>&rsquo; feature from
  23226. VFM/TFM.
  23227. </p>
  23228. <p>Default value is <code>0</code> (disabled).
  23229. </p>
  23230. </dd>
  23231. <dt>&lsquo;<samp>field</samp>&rsquo;</dt>
  23232. <dd><p>Set the field to match from. It is recommended to set this to the same value as
  23233. &lsquo;<samp>order</samp>&rsquo; unless you experience matching failures with that setting. In
  23234. certain circumstances changing the field that is used to match from can have a
  23235. large impact on matching performance. Available values are:
  23236. </p>
  23237. <dl compact="compact">
  23238. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  23239. <dd><p>Automatic (same value as &lsquo;<samp>order</samp>&rsquo;).
  23240. </p></dd>
  23241. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  23242. <dd><p>Match from the bottom field.
  23243. </p></dd>
  23244. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  23245. <dd><p>Match from the top field.
  23246. </p></dd>
  23247. </dl>
  23248. <p>Default value is <var>auto</var>.
  23249. </p>
  23250. </dd>
  23251. <dt>&lsquo;<samp>mchroma</samp>&rsquo;</dt>
  23252. <dd><p>Set whether or not chroma is included during the match comparisons. In most
  23253. cases it is recommended to leave this enabled. You should set this to <code>0</code>
  23254. only if your clip has bad chroma problems such as heavy rainbowing or other
  23255. artifacts. Setting this to <code>0</code> could also be used to speed things up at
  23256. the cost of some accuracy.
  23257. </p>
  23258. <p>Default value is <code>1</code>.
  23259. </p>
  23260. </dd>
  23261. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  23262. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  23263. <dd><p>These define an exclusion band which excludes the lines between &lsquo;<samp>y0</samp>&rsquo; and
  23264. &lsquo;<samp>y1</samp>&rsquo; from being included in the field matching decision. An exclusion
  23265. band can be used to ignore subtitles, a logo, or other things that may
  23266. interfere with the matching. &lsquo;<samp>y0</samp>&rsquo; sets the starting scan line and
  23267. &lsquo;<samp>y1</samp>&rsquo; sets the ending line; all lines in between &lsquo;<samp>y0</samp>&rsquo; and
  23268. &lsquo;<samp>y1</samp>&rsquo; (including &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo;) will be ignored. Setting
  23269. &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo; to the same value will disable the feature.
  23270. &lsquo;<samp>y0</samp>&rsquo; and &lsquo;<samp>y1</samp>&rsquo; defaults to <code>0</code>.
  23271. </p>
  23272. </dd>
  23273. <dt>&lsquo;<samp>scthresh</samp>&rsquo;</dt>
  23274. <dd><p>Set the scene change detection threshold as a percentage of maximum change on
  23275. the luma plane. Good values are in the <code>[8.0, 14.0]</code> range. Scene change
  23276. detection is only relevant in case &lsquo;<samp>combmatch</samp>&rsquo;=<var>sc</var>. The range for
  23277. &lsquo;<samp>scthresh</samp>&rsquo; is <code>[0.0, 100.0]</code>.
  23278. </p>
  23279. <p>Default value is <code>12.0</code>.
  23280. </p>
  23281. </dd>
  23282. <dt>&lsquo;<samp>combmatch</samp>&rsquo;</dt>
  23283. <dd><p>When &lsquo;<samp>combatch</samp>&rsquo; is not <var>none</var>, <code>fieldmatch</code> will take into
  23284. account the combed scores of matches when deciding what match to use as the
  23285. final match. Available values are:
  23286. </p>
  23287. <dl compact="compact">
  23288. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  23289. <dd><p>No final matching based on combed scores.
  23290. </p></dd>
  23291. <dt>&lsquo;<samp>sc</samp>&rsquo;</dt>
  23292. <dd><p>Combed scores are only used when a scene change is detected.
  23293. </p></dd>
  23294. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  23295. <dd><p>Use combed scores all the time.
  23296. </p></dd>
  23297. </dl>
  23298. <p>Default is <var>sc</var>.
  23299. </p>
  23300. </dd>
  23301. <dt>&lsquo;<samp>combdbg</samp>&rsquo;</dt>
  23302. <dd><p>Force <code>fieldmatch</code> to calculate the combed metrics for certain matches and
  23303. print them. This setting is known as &lsquo;<samp>micout</samp>&rsquo; in TFM/VFM vocabulary.
  23304. Available values are:
  23305. </p>
  23306. <dl compact="compact">
  23307. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  23308. <dd><p>No forced calculation.
  23309. </p></dd>
  23310. <dt>&lsquo;<samp>pcn</samp>&rsquo;</dt>
  23311. <dd><p>Force p/c/n calculations.
  23312. </p></dd>
  23313. <dt>&lsquo;<samp>pcnub</samp>&rsquo;</dt>
  23314. <dd><p>Force p/c/n/u/b calculations.
  23315. </p></dd>
  23316. </dl>
  23317. <p>Default value is <var>none</var>.
  23318. </p>
  23319. </dd>
  23320. <dt>&lsquo;<samp>cthresh</samp>&rsquo;</dt>
  23321. <dd><p>This is the area combing threshold used for combed frame detection. This
  23322. essentially controls how &quot;strong&quot; or &quot;visible&quot; combing must be to be detected.
  23323. Larger values mean combing must be more visible and smaller values mean combing
  23324. can be less visible or strong and still be detected. Valid settings are from
  23325. <code>-1</code> (every pixel will be detected as combed) to <code>255</code> (no pixel will
  23326. be detected as combed). This is basically a pixel difference value. A good
  23327. range is <code>[8, 12]</code>.
  23328. </p>
  23329. <p>Default value is <code>9</code>.
  23330. </p>
  23331. </dd>
  23332. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  23333. <dd><p>Sets whether or not chroma is considered in the combed frame decision. Only
  23334. disable this if your source has chroma problems (rainbowing, etc.) that are
  23335. causing problems for the combed frame detection with chroma enabled. Actually,
  23336. using &lsquo;<samp>chroma</samp>&rsquo;=<var>0</var> is usually more reliable, except for the case
  23337. where there is chroma only combing in the source.
  23338. </p>
  23339. <p>Default value is <code>0</code>.
  23340. </p>
  23341. </dd>
  23342. <dt>&lsquo;<samp>blockx</samp>&rsquo;</dt>
  23343. <dt>&lsquo;<samp>blocky</samp>&rsquo;</dt>
  23344. <dd><p>Respectively set the x-axis and y-axis size of the window used during combed
  23345. frame detection. This has to do with the size of the area in which
  23346. &lsquo;<samp>combpel</samp>&rsquo; pixels are required to be detected as combed for a frame to be
  23347. declared combed. See the &lsquo;<samp>combpel</samp>&rsquo; parameter description for more info.
  23348. Possible values are any number that is a power of 2 starting at 4 and going up
  23349. to 512.
  23350. </p>
  23351. <p>Default value is <code>16</code>.
  23352. </p>
  23353. </dd>
  23354. <dt>&lsquo;<samp>combpel</samp>&rsquo;</dt>
  23355. <dd><p>The number of combed pixels inside any of the &lsquo;<samp>blocky</samp>&rsquo; by
  23356. &lsquo;<samp>blockx</samp>&rsquo; size blocks on the frame for the frame to be detected as
  23357. combed. While &lsquo;<samp>cthresh</samp>&rsquo; controls how &quot;visible&quot; the combing must be, this
  23358. setting controls &quot;how much&quot; combing there must be in any localized area (a
  23359. window defined by the &lsquo;<samp>blockx</samp>&rsquo; and &lsquo;<samp>blocky</samp>&rsquo; settings) on the
  23360. frame. Minimum value is <code>0</code> and maximum is <code>blocky x blockx</code> (at
  23361. which point no frames will ever be detected as combed). This setting is known
  23362. as &lsquo;<samp>MI</samp>&rsquo; in TFM/VFM vocabulary.
  23363. </p>
  23364. <p>Default value is <code>80</code>.
  23365. </p></dd>
  23366. </dl>
  23367. <p><a name="p_002fc_002fn_002fu_002fb-meaning"></a>
  23368. </p><a name="p_002fc_002fn_002fu_002fb-meaning-1"></a>
  23369. <h3 class="subsection"><a href="ffprobe-all.html#toc-p_002fc_002fn_002fu_002fb-meaning-1">32.72.1 p/c/n/u/b meaning</a></h3>
  23370. <a name="p_002fc_002fn"></a>
  23371. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-p_002fc_002fn">32.72.1.1 p/c/n</a></h4>
  23372. <p>We assume the following telecined stream:
  23373. </p>
  23374. <div class="example">
  23375. <pre class="example">Top fields: 1 2 2 3 4
  23376. Bottom fields: 1 2 3 4 4
  23377. </pre></div>
  23378. <p>The numbers correspond to the progressive frame the fields relate to. Here, the
  23379. first two frames are progressive, the 3rd and 4th are combed, and so on.
  23380. </p>
  23381. <p>When <code>fieldmatch</code> is configured to run a matching from bottom
  23382. (&lsquo;<samp>field</samp>&rsquo;=<var>bottom</var>) this is how this input stream get transformed:
  23383. </p>
  23384. <div class="example">
  23385. <pre class="example">Input stream:
  23386. T 1 2 2 3 4
  23387. B 1 2 3 4 4 &lt;-- matching reference
  23388. Matches: c c n n c
  23389. Output stream:
  23390. T 1 2 3 4 4
  23391. B 1 2 3 4 4
  23392. </pre></div>
  23393. <p>As a result of the field matching, we can see that some frames get duplicated.
  23394. To perform a complete inverse telecine, you need to rely on a decimation filter
  23395. after this operation. See for instance the <a href="#decimate">decimate</a> filter.
  23396. </p>
  23397. <p>The same operation now matching from top fields (&lsquo;<samp>field</samp>&rsquo;=<var>top</var>)
  23398. looks like this:
  23399. </p>
  23400. <div class="example">
  23401. <pre class="example">Input stream:
  23402. T 1 2 2 3 4 &lt;-- matching reference
  23403. B 1 2 3 4 4
  23404. Matches: c c p p c
  23405. Output stream:
  23406. T 1 2 2 3 4
  23407. B 1 2 2 3 4
  23408. </pre></div>
  23409. <p>In these examples, we can see what <var>p</var>, <var>c</var> and <var>n</var> mean;
  23410. basically, they refer to the frame and field of the opposite parity:
  23411. </p>
  23412. <ul>
  23413. <li> <var>p</var> matches the field of the opposite parity in the previous frame
  23414. </li><li> <var>c</var> matches the field of the opposite parity in the current frame
  23415. </li><li> <var>n</var> matches the field of the opposite parity in the next frame
  23416. </li></ul>
  23417. <a name="u_002fb"></a>
  23418. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-u_002fb">32.72.1.2 u/b</a></h4>
  23419. <p>The <var>u</var> and <var>b</var> matching are a bit special in the sense that they match
  23420. from the opposite parity flag. In the following examples, we assume that we are
  23421. currently matching the 2nd frame (Top:2, bottom:2). According to the match, a
  23422. &rsquo;x&rsquo; is placed above and below each matched fields.
  23423. </p>
  23424. <p>With bottom matching (&lsquo;<samp>field</samp>&rsquo;=<var>bottom</var>):
  23425. </p><div class="example">
  23426. <pre class="example">Match: c p n b u
  23427. x x x x x
  23428. Top 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2
  23429. Bottom 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
  23430. x x x x x
  23431. Output frames:
  23432. 2 1 2 2 2
  23433. 2 2 2 1 3
  23434. </pre></div>
  23435. <p>With top matching (&lsquo;<samp>field</samp>&rsquo;=<var>top</var>):
  23436. </p><div class="example">
  23437. <pre class="example">Match: c p n b u
  23438. x x x x x
  23439. Top 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2
  23440. Bottom 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
  23441. x x x x x
  23442. Output frames:
  23443. 2 2 2 1 2
  23444. 2 1 3 2 2
  23445. </pre></div>
  23446. <a name="Examples-11"></a>
  23447. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-11">32.72.2 Examples</a></h3>
  23448. <p>Simple IVTC of a top field first telecined stream:
  23449. </p><div class="example">
  23450. <pre class="example">fieldmatch=order=tff:combmatch=none, decimate
  23451. </pre></div>
  23452. <p>Advanced IVTC, with fallback on <a href="#yadif">yadif</a> for still combed frames:
  23453. </p><div class="example">
  23454. <pre class="example">fieldmatch=order=tff:combmatch=full, yadif=deint=interlaced, decimate
  23455. </pre></div>
  23456. <a name="fieldorder"></a>
  23457. <h2 class="section"><a href="ffprobe-all.html#toc-fieldorder">32.73 fieldorder</a></h2>
  23458. <p>Transform the field order of the input video.
  23459. </p>
  23460. <p>It accepts the following parameters:
  23461. </p>
  23462. <dl compact="compact">
  23463. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  23464. <dd><p>The output field order. Valid values are <var>tff</var> for top field first or <var>bff</var>
  23465. for bottom field first.
  23466. </p></dd>
  23467. </dl>
  23468. <p>The default value is &lsquo;<samp>tff</samp>&rsquo;.
  23469. </p>
  23470. <p>The transformation is done by shifting the picture content up or down
  23471. by one line, and filling the remaining line with appropriate picture content.
  23472. This method is consistent with most broadcast field order converters.
  23473. </p>
  23474. <p>If the input video is not flagged as being interlaced, or it is already
  23475. flagged as being of the required output field order, then this filter does
  23476. not alter the incoming video.
  23477. </p>
  23478. <p>It is very useful when converting to or from PAL DV material,
  23479. which is bottom field first.
  23480. </p>
  23481. <p>For example:
  23482. </p><div class="example">
  23483. <pre class="example">ffmpeg -i in.vob -vf &quot;fieldorder=bff&quot; out.dv
  23484. </pre></div>
  23485. <a name="fifo_002c-afifo"></a>
  23486. <h2 class="section"><a href="ffprobe-all.html#toc-fifo_002c-afifo">32.74 fifo, afifo</a></h2>
  23487. <p>Buffer input images and send them when they are requested.
  23488. </p>
  23489. <p>It is mainly useful when auto-inserted by the libavfilter
  23490. framework.
  23491. </p>
  23492. <p>It does not take parameters.
  23493. </p>
  23494. <a name="fillborders"></a>
  23495. <h2 class="section"><a href="ffprobe-all.html#toc-fillborders">32.75 fillborders</a></h2>
  23496. <p>Fill borders of the input video, without changing video stream dimensions.
  23497. Sometimes video can have garbage at the four edges and you may not want to
  23498. crop video input to keep size multiple of some number.
  23499. </p>
  23500. <p>This filter accepts the following options:
  23501. </p>
  23502. <dl compact="compact">
  23503. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  23504. <dd><p>Number of pixels to fill from left border.
  23505. </p>
  23506. </dd>
  23507. <dt>&lsquo;<samp>right</samp>&rsquo;</dt>
  23508. <dd><p>Number of pixels to fill from right border.
  23509. </p>
  23510. </dd>
  23511. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  23512. <dd><p>Number of pixels to fill from top border.
  23513. </p>
  23514. </dd>
  23515. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  23516. <dd><p>Number of pixels to fill from bottom border.
  23517. </p>
  23518. </dd>
  23519. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  23520. <dd><p>Set fill mode.
  23521. </p>
  23522. <p>It accepts the following values:
  23523. </p><dl compact="compact">
  23524. <dt>&lsquo;<samp>smear</samp>&rsquo;</dt>
  23525. <dd><p>fill pixels using outermost pixels
  23526. </p>
  23527. </dd>
  23528. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  23529. <dd><p>fill pixels using mirroring
  23530. </p>
  23531. </dd>
  23532. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  23533. <dd><p>fill pixels with constant value
  23534. </p></dd>
  23535. </dl>
  23536. <p>Default is <var>smear</var>.
  23537. </p>
  23538. </dd>
  23539. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  23540. <dd><p>Set color for pixels in fixed mode. Default is <var>black</var>.
  23541. </p></dd>
  23542. </dl>
  23543. <a name="Commands-62"></a>
  23544. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-62">32.75.1 Commands</a></h3>
  23545. <p>This filter supports same <a href="#commands">commands</a> as options.
  23546. The command accepts the same syntax of the corresponding option.
  23547. </p>
  23548. <p>If the specified expression is not valid, it is kept at its current
  23549. value.
  23550. </p>
  23551. <a name="find_005frect"></a>
  23552. <h2 class="section"><a href="ffprobe-all.html#toc-find_005frect">32.76 find_rect</a></h2>
  23553. <p>Find a rectangular object
  23554. </p>
  23555. <p>It accepts the following options:
  23556. </p>
  23557. <dl compact="compact">
  23558. <dt>&lsquo;<samp>object</samp>&rsquo;</dt>
  23559. <dd><p>Filepath of the object image, needs to be in gray8.
  23560. </p>
  23561. </dd>
  23562. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  23563. <dd><p>Detection threshold, default is 0.5.
  23564. </p>
  23565. </dd>
  23566. <dt>&lsquo;<samp>mipmaps</samp>&rsquo;</dt>
  23567. <dd><p>Number of mipmaps, default is 3.
  23568. </p>
  23569. </dd>
  23570. <dt>&lsquo;<samp>xmin, ymin, xmax, ymax</samp>&rsquo;</dt>
  23571. <dd><p>Specifies the rectangle in which to search.
  23572. </p></dd>
  23573. </dl>
  23574. <a name="Examples-154"></a>
  23575. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-154">32.76.1 Examples</a></h3>
  23576. <ul>
  23577. <li>
  23578. Cover a rectangular object by the supplied image of a given video using <code>ffmpeg</code>:
  23579. <div class="example">
  23580. <pre class="example">ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
  23581. </pre></div>
  23582. </li></ul>
  23583. <a name="floodfill"></a>
  23584. <h2 class="section"><a href="ffprobe-all.html#toc-floodfill">32.77 floodfill</a></h2>
  23585. <p>Flood area with values of same pixel components with another values.
  23586. </p>
  23587. <p>It accepts the following options:
  23588. </p><dl compact="compact">
  23589. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  23590. <dd><p>Set pixel x coordinate.
  23591. </p>
  23592. </dd>
  23593. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  23594. <dd><p>Set pixel y coordinate.
  23595. </p>
  23596. </dd>
  23597. <dt>&lsquo;<samp>s0</samp>&rsquo;</dt>
  23598. <dd><p>Set source #0 component value.
  23599. </p>
  23600. </dd>
  23601. <dt>&lsquo;<samp>s1</samp>&rsquo;</dt>
  23602. <dd><p>Set source #1 component value.
  23603. </p>
  23604. </dd>
  23605. <dt>&lsquo;<samp>s2</samp>&rsquo;</dt>
  23606. <dd><p>Set source #2 component value.
  23607. </p>
  23608. </dd>
  23609. <dt>&lsquo;<samp>s3</samp>&rsquo;</dt>
  23610. <dd><p>Set source #3 component value.
  23611. </p>
  23612. </dd>
  23613. <dt>&lsquo;<samp>d0</samp>&rsquo;</dt>
  23614. <dd><p>Set destination #0 component value.
  23615. </p>
  23616. </dd>
  23617. <dt>&lsquo;<samp>d1</samp>&rsquo;</dt>
  23618. <dd><p>Set destination #1 component value.
  23619. </p>
  23620. </dd>
  23621. <dt>&lsquo;<samp>d2</samp>&rsquo;</dt>
  23622. <dd><p>Set destination #2 component value.
  23623. </p>
  23624. </dd>
  23625. <dt>&lsquo;<samp>d3</samp>&rsquo;</dt>
  23626. <dd><p>Set destination #3 component value.
  23627. </p></dd>
  23628. </dl>
  23629. <p><a name="format"></a>
  23630. </p><a name="format-1"></a>
  23631. <h2 class="section"><a href="ffprobe-all.html#toc-format-1">32.78 format</a></h2>
  23632. <p>Convert the input video to one of the specified pixel formats.
  23633. Libavfilter will try to pick one that is suitable as input to
  23634. the next filter.
  23635. </p>
  23636. <p>It accepts the following parameters:
  23637. </p><dl compact="compact">
  23638. <dt>&lsquo;<samp>pix_fmts</samp>&rsquo;</dt>
  23639. <dd><p>A &rsquo;|&rsquo;-separated list of pixel format names, such as
  23640. &quot;pix_fmts=yuv420p|monow|rgb24&quot;.
  23641. </p>
  23642. </dd>
  23643. </dl>
  23644. <a name="Examples-149"></a>
  23645. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-149">32.78.1 Examples</a></h3>
  23646. <ul>
  23647. <li>
  23648. Convert the input video to the <var>yuv420p</var> format
  23649. <div class="example">
  23650. <pre class="example">format=pix_fmts=yuv420p
  23651. </pre></div>
  23652. <p>Convert the input video to any of the formats in the list
  23653. </p><div class="example">
  23654. <pre class="example">format=pix_fmts=yuv420p|yuv444p|yuv410p
  23655. </pre></div>
  23656. </li></ul>
  23657. <p><a name="fps"></a>
  23658. </p><a name="fps-1"></a>
  23659. <h2 class="section"><a href="ffprobe-all.html#toc-fps-1">32.79 fps</a></h2>
  23660. <p>Convert the video to specified constant frame rate by duplicating or dropping
  23661. frames as necessary.
  23662. </p>
  23663. <p>It accepts the following parameters:
  23664. </p><dl compact="compact">
  23665. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  23666. <dd><p>The desired output frame rate. The default is <code>25</code>.
  23667. </p>
  23668. </dd>
  23669. <dt>&lsquo;<samp>start_time</samp>&rsquo;</dt>
  23670. <dd><p>Assume the first PTS should be the given value, in seconds. This allows for
  23671. padding/trimming at the start of stream. By default, no assumption is made
  23672. about the first frame&rsquo;s expected PTS, so no padding or trimming is done.
  23673. For example, this could be set to 0 to pad the beginning with duplicates of
  23674. the first frame if a video stream starts after the audio stream or to trim any
  23675. frames with a negative PTS.
  23676. </p>
  23677. </dd>
  23678. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  23679. <dd><p>Timestamp (PTS) rounding method.
  23680. </p>
  23681. <p>Possible values are:
  23682. </p><dl compact="compact">
  23683. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  23684. <dd><p>round towards 0
  23685. </p></dd>
  23686. <dt>&lsquo;<samp>inf</samp>&rsquo;</dt>
  23687. <dd><p>round away from 0
  23688. </p></dd>
  23689. <dt>&lsquo;<samp>down</samp>&rsquo;</dt>
  23690. <dd><p>round towards -infinity
  23691. </p></dd>
  23692. <dt>&lsquo;<samp>up</samp>&rsquo;</dt>
  23693. <dd><p>round towards +infinity
  23694. </p></dd>
  23695. <dt>&lsquo;<samp>near</samp>&rsquo;</dt>
  23696. <dd><p>round to nearest
  23697. </p></dd>
  23698. </dl>
  23699. <p>The default is <code>near</code>.
  23700. </p>
  23701. </dd>
  23702. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  23703. <dd><p>Action performed when reading the last frame.
  23704. </p>
  23705. <p>Possible values are:
  23706. </p><dl compact="compact">
  23707. <dt>&lsquo;<samp>round</samp>&rsquo;</dt>
  23708. <dd><p>Use same timestamp rounding method as used for other frames.
  23709. </p></dd>
  23710. <dt>&lsquo;<samp>pass</samp>&rsquo;</dt>
  23711. <dd><p>Pass through last frame if input duration has not been reached yet.
  23712. </p></dd>
  23713. </dl>
  23714. <p>The default is <code>round</code>.
  23715. </p>
  23716. </dd>
  23717. </dl>
  23718. <p>Alternatively, the options can be specified as a flat string:
  23719. <var>fps</var>[:<var>start_time</var>[:<var>round</var>]].
  23720. </p>
  23721. <p>See also the <a href="#setpts">setpts</a> filter.
  23722. </p>
  23723. <a name="Examples-63"></a>
  23724. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-63">32.79.1 Examples</a></h3>
  23725. <ul>
  23726. <li>
  23727. A typical usage in order to set the fps to 25:
  23728. <div class="example">
  23729. <pre class="example">fps=fps=25
  23730. </pre></div>
  23731. </li><li>
  23732. Sets the fps to 24, using abbreviation and rounding method to round to nearest:
  23733. <div class="example">
  23734. <pre class="example">fps=fps=film:round=near
  23735. </pre></div>
  23736. </li></ul>
  23737. <a name="framepack"></a>
  23738. <h2 class="section"><a href="ffprobe-all.html#toc-framepack">32.80 framepack</a></h2>
  23739. <p>Pack two different video streams into a stereoscopic video, setting proper
  23740. metadata on supported codecs. The two views should have the same size and
  23741. framerate and processing will stop when the shorter video ends. Please note
  23742. that you may conveniently adjust view properties with the <a href="#scale">scale</a> and
  23743. <a href="#fps">fps</a> filters.
  23744. </p>
  23745. <p>It accepts the following parameters:
  23746. </p><dl compact="compact">
  23747. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  23748. <dd><p>The desired packing format. Supported values are:
  23749. </p>
  23750. <dl compact="compact">
  23751. <dt>&lsquo;<samp>sbs</samp>&rsquo;</dt>
  23752. <dd><p>The views are next to each other (default).
  23753. </p>
  23754. </dd>
  23755. <dt>&lsquo;<samp>tab</samp>&rsquo;</dt>
  23756. <dd><p>The views are on top of each other.
  23757. </p>
  23758. </dd>
  23759. <dt>&lsquo;<samp>lines</samp>&rsquo;</dt>
  23760. <dd><p>The views are packed by line.
  23761. </p>
  23762. </dd>
  23763. <dt>&lsquo;<samp>columns</samp>&rsquo;</dt>
  23764. <dd><p>The views are packed by column.
  23765. </p>
  23766. </dd>
  23767. <dt>&lsquo;<samp>frameseq</samp>&rsquo;</dt>
  23768. <dd><p>The views are temporally interleaved.
  23769. </p>
  23770. </dd>
  23771. </dl>
  23772. </dd>
  23773. </dl>
  23774. <p>Some examples:
  23775. </p>
  23776. <div class="example">
  23777. <pre class="example"># Convert left and right views into a frame-sequential video
  23778. ffmpeg -i LEFT -i RIGHT -filter_complex framepack=frameseq OUTPUT
  23779. # Convert views into a side-by-side video with the same output resolution as the input
  23780. 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
  23781. </pre></div>
  23782. <a name="framerate"></a>
  23783. <h2 class="section"><a href="ffprobe-all.html#toc-framerate">32.81 framerate</a></h2>
  23784. <p>Change the frame rate by interpolating new video output frames from the source
  23785. frames.
  23786. </p>
  23787. <p>This filter is not designed to function correctly with interlaced media. If
  23788. you wish to change the frame rate of interlaced media then you are required
  23789. to deinterlace before this filter and re-interlace after this filter.
  23790. </p>
  23791. <p>A description of the accepted options follows.
  23792. </p>
  23793. <dl compact="compact">
  23794. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  23795. <dd><p>Specify the output frames per second. This option can also be specified
  23796. as a value alone. The default is <code>50</code>.
  23797. </p>
  23798. </dd>
  23799. <dt>&lsquo;<samp>interp_start</samp>&rsquo;</dt>
  23800. <dd><p>Specify the start of a range where the output frame will be created as a
  23801. linear interpolation of two frames. The range is [<code>0</code>-<code>255</code>],
  23802. the default is <code>15</code>.
  23803. </p>
  23804. </dd>
  23805. <dt>&lsquo;<samp>interp_end</samp>&rsquo;</dt>
  23806. <dd><p>Specify the end of a range where the output frame will be created as a
  23807. linear interpolation of two frames. The range is [<code>0</code>-<code>255</code>],
  23808. the default is <code>240</code>.
  23809. </p>
  23810. </dd>
  23811. <dt>&lsquo;<samp>scene</samp>&rsquo;</dt>
  23812. <dd><p>Specify the level at which a scene change is detected as a value between
  23813. 0 and 100 to indicate a new scene; a low value reflects a low
  23814. probability for the current frame to introduce a new scene, while a higher
  23815. value means the current frame is more likely to be one.
  23816. The default is <code>8.2</code>.
  23817. </p>
  23818. </dd>
  23819. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  23820. <dd><p>Specify flags influencing the filter process.
  23821. </p>
  23822. <p>Available value for <var>flags</var> is:
  23823. </p>
  23824. <dl compact="compact">
  23825. <dt>&lsquo;<samp>scene_change_detect, scd</samp>&rsquo;</dt>
  23826. <dd><p>Enable scene change detection using the value of the option <var>scene</var>.
  23827. This flag is enabled by default.
  23828. </p></dd>
  23829. </dl>
  23830. </dd>
  23831. </dl>
  23832. <a name="framestep"></a>
  23833. <h2 class="section"><a href="ffprobe-all.html#toc-framestep">32.82 framestep</a></h2>
  23834. <p>Select one frame every N-th frame.
  23835. </p>
  23836. <p>This filter accepts the following option:
  23837. </p><dl compact="compact">
  23838. <dt>&lsquo;<samp>step</samp>&rsquo;</dt>
  23839. <dd><p>Select frame after every <code>step</code> frames.
  23840. Allowed values are positive integers higher than 0. Default value is <code>1</code>.
  23841. </p></dd>
  23842. </dl>
  23843. <a name="freezedetect"></a>
  23844. <h2 class="section"><a href="ffprobe-all.html#toc-freezedetect">32.83 freezedetect</a></h2>
  23845. <p>Detect frozen video.
  23846. </p>
  23847. <p>This filter logs a message and sets frame metadata when it detects that the
  23848. input video has no significant change in content during a specified duration.
  23849. Video freeze detection calculates the mean average absolute difference of all
  23850. the components of video frames and compares it to a noise floor.
  23851. </p>
  23852. <p>The printed times and duration are expressed in seconds. The
  23853. <code>lavfi.freezedetect.freeze_start</code> metadata key is set on the first frame
  23854. whose timestamp equals or exceeds the detection duration and it contains the
  23855. timestamp of the first frame of the freeze. The
  23856. <code>lavfi.freezedetect.freeze_duration</code> and
  23857. <code>lavfi.freezedetect.freeze_end</code> metadata keys are set on the first frame
  23858. after the freeze.
  23859. </p>
  23860. <p>The filter accepts the following options:
  23861. </p>
  23862. <dl compact="compact">
  23863. <dt>&lsquo;<samp>noise, n</samp>&rsquo;</dt>
  23864. <dd><p>Set noise tolerance. Can be specified in dB (in case &quot;dB&quot; is appended to the
  23865. specified value) or as a difference ratio between 0 and 1. Default is -60dB, or
  23866. 0.001.
  23867. </p>
  23868. </dd>
  23869. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  23870. <dd><p>Set freeze duration until notification (default is 2 seconds).
  23871. </p></dd>
  23872. </dl>
  23873. <a name="freezeframes"></a>
  23874. <h2 class="section"><a href="ffprobe-all.html#toc-freezeframes">32.84 freezeframes</a></h2>
  23875. <p>Freeze video frames.
  23876. </p>
  23877. <p>This filter freezes video frames using frame from 2nd input.
  23878. </p>
  23879. <p>The filter accepts the following options:
  23880. </p>
  23881. <dl compact="compact">
  23882. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  23883. <dd><p>Set number of first frame from which to start freeze.
  23884. </p>
  23885. </dd>
  23886. <dt>&lsquo;<samp>last</samp>&rsquo;</dt>
  23887. <dd><p>Set number of last frame from which to end freeze.
  23888. </p>
  23889. </dd>
  23890. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  23891. <dd><p>Set number of frame from 2nd input which will be used instead of replaced frames.
  23892. </p></dd>
  23893. </dl>
  23894. <p><a name="frei0r"></a>
  23895. </p><a name="frei0r-1"></a>
  23896. <h2 class="section"><a href="ffprobe-all.html#toc-frei0r-1">32.85 frei0r</a></h2>
  23897. <p>Apply a frei0r effect to the input video.
  23898. </p>
  23899. <p>To enable the compilation of this filter, you need to install the frei0r
  23900. header and configure FFmpeg with <code>--enable-frei0r</code>.
  23901. </p>
  23902. <p>It accepts the following parameters:
  23903. </p>
  23904. <dl compact="compact">
  23905. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  23906. <dd><p>The name of the frei0r effect to load. If the environment variable
  23907. <code>FREI0R_PATH</code> is defined, the frei0r effect is searched for in each of the
  23908. directories specified by the colon-separated list in <code>FREI0R_PATH</code>.
  23909. Otherwise, the standard frei0r paths are searched, in this order:
  23910. &lsquo;<tt>HOME/.frei0r-1/lib/</tt>&rsquo;, &lsquo;<tt>/usr/local/lib/frei0r-1/</tt>&rsquo;,
  23911. &lsquo;<tt>/usr/lib/frei0r-1/</tt>&rsquo;.
  23912. </p>
  23913. </dd>
  23914. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  23915. <dd><p>A &rsquo;|&rsquo;-separated list of parameters to pass to the frei0r effect.
  23916. </p>
  23917. </dd>
  23918. </dl>
  23919. <p>A frei0r effect parameter can be a boolean (its value is either
  23920. &quot;y&quot; or &quot;n&quot;), a double, a color (specified as
  23921. <var>R</var>/<var>G</var>/<var>B</var>, where <var>R</var>, <var>G</var>, and <var>B</var> are floating point
  23922. numbers between 0.0 and 1.0, inclusive) or a color description as specified in the
  23923. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>,
  23924. a position (specified as <var>X</var>/<var>Y</var>, where
  23925. <var>X</var> and <var>Y</var> are floating point numbers) and/or a string.
  23926. </p>
  23927. <p>The number and types of parameters depend on the loaded effect. If an
  23928. effect parameter is not specified, the default value is set.
  23929. </p>
  23930. <a name="Examples-30"></a>
  23931. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-30">32.85.1 Examples</a></h3>
  23932. <ul>
  23933. <li>
  23934. Apply the distort0r effect, setting the first two double parameters:
  23935. <div class="example">
  23936. <pre class="example">frei0r=filter_name=distort0r:filter_params=0.5|0.01
  23937. </pre></div>
  23938. </li><li>
  23939. Apply the colordistance effect, taking a color as the first parameter:
  23940. <div class="example">
  23941. <pre class="example">frei0r=colordistance:0.2/0.3/0.4
  23942. frei0r=colordistance:violet
  23943. frei0r=colordistance:0x112233
  23944. </pre></div>
  23945. </li><li>
  23946. Apply the perspective effect, specifying the top left and top right image
  23947. positions:
  23948. <div class="example">
  23949. <pre class="example">frei0r=perspective:0.2/0.2|0.8/0.2
  23950. </pre></div>
  23951. </li></ul>
  23952. <p>For more information, see
  23953. <a href="http://frei0r.dyne.org">http://frei0r.dyne.org</a>
  23954. </p>
  23955. <a name="fspp"></a>
  23956. <h2 class="section"><a href="ffprobe-all.html#toc-fspp">32.86 fspp</a></h2>
  23957. <p>Apply fast and simple postprocessing. It is a faster version of <a href="#spp">spp</a>.
  23958. </p>
  23959. <p>It splits (I)DCT into horizontal/vertical passes. Unlike the simple post-
  23960. processing filter, one of them is performed once per block, not per pixel.
  23961. This allows for much higher speed.
  23962. </p>
  23963. <p>The filter accepts the following options:
  23964. </p>
  23965. <dl compact="compact">
  23966. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  23967. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  23968. an integer in the range 4-5. Default value is <code>4</code>.
  23969. </p>
  23970. </dd>
  23971. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  23972. <dd><p>Force a constant quantization parameter. It accepts an integer in range 0-63.
  23973. If not set, the filter will use the QP from the video stream (if available).
  23974. </p>
  23975. </dd>
  23976. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  23977. <dd><p>Set filter strength. It accepts an integer in range -15 to 32. Lower values mean
  23978. more details but also more artifacts, while higher values make the image smoother
  23979. but also blurrier. Default value is <code>0</code> − PSNR optimal.
  23980. </p>
  23981. </dd>
  23982. <dt>&lsquo;<samp>use_bframe_qp</samp>&rsquo;</dt>
  23983. <dd><p>Enable the use of the QP from the B-Frames if set to <code>1</code>. Using this
  23984. option may cause flicker since the B-Frames have often larger QP. Default is
  23985. <code>0</code> (not enabled).
  23986. </p>
  23987. </dd>
  23988. </dl>
  23989. <a name="gblur"></a>
  23990. <h2 class="section"><a href="ffprobe-all.html#toc-gblur">32.87 gblur</a></h2>
  23991. <p>Apply Gaussian blur filter.
  23992. </p>
  23993. <p>The filter accepts the following options:
  23994. </p>
  23995. <dl compact="compact">
  23996. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  23997. <dd><p>Set horizontal sigma, standard deviation of Gaussian blur. Default is <code>0.5</code>.
  23998. </p>
  23999. </dd>
  24000. <dt>&lsquo;<samp>steps</samp>&rsquo;</dt>
  24001. <dd><p>Set number of steps for Gaussian approximation. Default is <code>1</code>.
  24002. </p>
  24003. </dd>
  24004. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  24005. <dd><p>Set which planes to filter. By default all planes are filtered.
  24006. </p>
  24007. </dd>
  24008. <dt>&lsquo;<samp>sigmaV</samp>&rsquo;</dt>
  24009. <dd><p>Set vertical sigma, if negative it will be same as <code>sigma</code>.
  24010. Default is <code>-1</code>.
  24011. </p></dd>
  24012. </dl>
  24013. <a name="Commands-24"></a>
  24014. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-24">32.87.1 Commands</a></h3>
  24015. <p>This filter supports same commands as options.
  24016. The command accepts the same syntax of the corresponding option.
  24017. </p>
  24018. <p>If the specified expression is not valid, it is kept at its current
  24019. value.
  24020. </p>
  24021. <a name="geq"></a>
  24022. <h2 class="section"><a href="ffprobe-all.html#toc-geq">32.88 geq</a></h2>
  24023. <p>Apply generic equation to each pixel.
  24024. </p>
  24025. <p>The filter accepts the following options:
  24026. </p>
  24027. <dl compact="compact">
  24028. <dt>&lsquo;<samp>lum_expr, lum</samp>&rsquo;</dt>
  24029. <dd><p>Set the luminance expression.
  24030. </p></dd>
  24031. <dt>&lsquo;<samp>cb_expr, cb</samp>&rsquo;</dt>
  24032. <dd><p>Set the chrominance blue expression.
  24033. </p></dd>
  24034. <dt>&lsquo;<samp>cr_expr, cr</samp>&rsquo;</dt>
  24035. <dd><p>Set the chrominance red expression.
  24036. </p></dd>
  24037. <dt>&lsquo;<samp>alpha_expr, a</samp>&rsquo;</dt>
  24038. <dd><p>Set the alpha expression.
  24039. </p></dd>
  24040. <dt>&lsquo;<samp>red_expr, r</samp>&rsquo;</dt>
  24041. <dd><p>Set the red expression.
  24042. </p></dd>
  24043. <dt>&lsquo;<samp>green_expr, g</samp>&rsquo;</dt>
  24044. <dd><p>Set the green expression.
  24045. </p></dd>
  24046. <dt>&lsquo;<samp>blue_expr, b</samp>&rsquo;</dt>
  24047. <dd><p>Set the blue expression.
  24048. </p></dd>
  24049. </dl>
  24050. <p>The colorspace is selected according to the specified options. If one
  24051. of the &lsquo;<samp>lum_expr</samp>&rsquo;, &lsquo;<samp>cb_expr</samp>&rsquo;, or &lsquo;<samp>cr_expr</samp>&rsquo;
  24052. options is specified, the filter will automatically select a YCbCr
  24053. colorspace. If one of the &lsquo;<samp>red_expr</samp>&rsquo;, &lsquo;<samp>green_expr</samp>&rsquo;, or
  24054. &lsquo;<samp>blue_expr</samp>&rsquo; options is specified, it will select an RGB
  24055. colorspace.
  24056. </p>
  24057. <p>If one of the chrominance expression is not defined, it falls back on the other
  24058. one. If no alpha expression is specified it will evaluate to opaque value.
  24059. If none of chrominance expressions are specified, they will evaluate
  24060. to the luminance expression.
  24061. </p>
  24062. <p>The expressions can use the following variables and functions:
  24063. </p>
  24064. <dl compact="compact">
  24065. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  24066. <dd><p>The sequential number of the filtered frame, starting from <code>0</code>.
  24067. </p>
  24068. </dd>
  24069. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  24070. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  24071. <dd><p>The coordinates of the current sample.
  24072. </p>
  24073. </dd>
  24074. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  24075. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  24076. <dd><p>The width and height of the image.
  24077. </p>
  24078. </dd>
  24079. <dt>&lsquo;<samp>SW</samp>&rsquo;</dt>
  24080. <dt>&lsquo;<samp>SH</samp>&rsquo;</dt>
  24081. <dd><p>Width and height scale depending on the currently filtered plane. It is the
  24082. ratio between the corresponding luma plane number of pixels and the current
  24083. plane ones. E.g. for YUV4:2:0 the values are <code>1,1</code> for the luma plane, and
  24084. <code>0.5,0.5</code> for chroma planes.
  24085. </p>
  24086. </dd>
  24087. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  24088. <dd><p>Time of the current frame, expressed in seconds.
  24089. </p>
  24090. </dd>
  24091. <dt>&lsquo;<samp>p(x, y)</samp>&rsquo;</dt>
  24092. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the current
  24093. plane.
  24094. </p>
  24095. </dd>
  24096. <dt>&lsquo;<samp>lum(x, y)</samp>&rsquo;</dt>
  24097. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the luminance
  24098. plane.
  24099. </p>
  24100. </dd>
  24101. <dt>&lsquo;<samp>cb(x, y)</samp>&rsquo;</dt>
  24102. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24103. blue-difference chroma plane. Return 0 if there is no such plane.
  24104. </p>
  24105. </dd>
  24106. <dt>&lsquo;<samp>cr(x, y)</samp>&rsquo;</dt>
  24107. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24108. red-difference chroma plane. Return 0 if there is no such plane.
  24109. </p>
  24110. </dd>
  24111. <dt>&lsquo;<samp>r(x, y)</samp>&rsquo;</dt>
  24112. <dt>&lsquo;<samp>g(x, y)</samp>&rsquo;</dt>
  24113. <dt>&lsquo;<samp>b(x, y)</samp>&rsquo;</dt>
  24114. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  24115. red/green/blue component. Return 0 if there is no such component.
  24116. </p>
  24117. </dd>
  24118. <dt>&lsquo;<samp>alpha(x, y)</samp>&rsquo;</dt>
  24119. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the alpha
  24120. plane. Return 0 if there is no such plane.
  24121. </p>
  24122. </dd>
  24123. <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>
  24124. <dd><p>Sum of sample values in the rectangle from (0,0) to (x,y), this allows obtaining
  24125. sums of samples within a rectangle. See the functions without the sum postfix.
  24126. </p>
  24127. </dd>
  24128. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  24129. <dd><p>Set one of interpolation methods:
  24130. </p><dl compact="compact">
  24131. <dt>&lsquo;<samp>nearest, n</samp>&rsquo;</dt>
  24132. <dt>&lsquo;<samp>bilinear, b</samp>&rsquo;</dt>
  24133. </dl>
  24134. <p>Default is bilinear.
  24135. </p></dd>
  24136. </dl>
  24137. <p>For functions, if <var>x</var> and <var>y</var> are outside the area, the value will be
  24138. automatically clipped to the closer edge.
  24139. </p>
  24140. <p>Please note that this filter can use multiple threads in which case each slice
  24141. will have its own expression state. If you want to use only a single expression
  24142. state because your expressions depend on previous state then you should limit
  24143. the number of filter threads to 1.
  24144. </p>
  24145. <a name="Examples-48"></a>
  24146. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-48">32.88.1 Examples</a></h3>
  24147. <ul>
  24148. <li>
  24149. Flip the image horizontally:
  24150. <div class="example">
  24151. <pre class="example">geq=p(W-X\,Y)
  24152. </pre></div>
  24153. </li><li>
  24154. Generate a bidimensional sine wave, with angle <code>PI/3</code> and a
  24155. wavelength of 100 pixels:
  24156. <div class="example">
  24157. <pre class="example">geq=128 + 100*sin(2*(PI/100)*(cos(PI/3)*(X-50*T) + sin(PI/3)*Y)):128:128
  24158. </pre></div>
  24159. </li><li>
  24160. Generate a fancy enigmatic moving light:
  24161. <div class="example">
  24162. <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
  24163. </pre></div>
  24164. </li><li>
  24165. Generate a quick emboss effect:
  24166. <div class="example">
  24167. <pre class="example">format=gray,geq=lum_expr='(p(X,Y)+(256-p(X-4,Y-4)))/2'
  24168. </pre></div>
  24169. </li><li>
  24170. Modify RGB components depending on pixel position:
  24171. <div class="example">
  24172. <pre class="example">geq=r='X/W*r(X,Y)':g='(1-X/W)*g(X,Y)':b='(H-Y)/H*b(X,Y)'
  24173. </pre></div>
  24174. </li><li>
  24175. Create a radial gradient that is the same size as the input (also see
  24176. the <a href="#vignette">vignette</a> filter):
  24177. <div class="example">
  24178. <pre class="example">geq=lum=255*gauss((X/W-0.5)*3)*gauss((Y/H-0.5)*3)/gauss(0)/gauss(0),format=gray
  24179. </pre></div>
  24180. </li></ul>
  24181. <a name="gradfun"></a>
  24182. <h2 class="section"><a href="ffprobe-all.html#toc-gradfun">32.89 gradfun</a></h2>
  24183. <p>Fix the banding artifacts that are sometimes introduced into nearly flat
  24184. regions by truncation to 8-bit color depth.
  24185. Interpolate the gradients that should go where the bands are, and
  24186. dither them.
  24187. </p>
  24188. <p>It is designed for playback only. Do not use it prior to
  24189. lossy compression, because compression tends to lose the dither and
  24190. bring back the bands.
  24191. </p>
  24192. <p>It accepts the following parameters:
  24193. </p>
  24194. <dl compact="compact">
  24195. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  24196. <dd><p>The maximum amount by which the filter will change any one pixel. This is also
  24197. the threshold for detecting nearly flat regions. Acceptable values range from
  24198. .51 to 64; the default value is 1.2. Out-of-range values will be clipped to the
  24199. valid range.
  24200. </p>
  24201. </dd>
  24202. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  24203. <dd><p>The neighborhood to fit the gradient to. A larger radius makes for smoother
  24204. gradients, but also prevents the filter from modifying the pixels near detailed
  24205. regions. Acceptable values are 8-32; the default value is 16. Out-of-range
  24206. values will be clipped to the valid range.
  24207. </p>
  24208. </dd>
  24209. </dl>
  24210. <p>Alternatively, the options can be specified as a flat string:
  24211. <var>strength</var>[:<var>radius</var>]
  24212. </p>
  24213. <a name="Examples-146"></a>
  24214. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-146">32.89.1 Examples</a></h3>
  24215. <ul>
  24216. <li>
  24217. Apply the filter with a <code>3.5</code> strength and radius of <code>8</code>:
  24218. <div class="example">
  24219. <pre class="example">gradfun=3.5:8
  24220. </pre></div>
  24221. </li><li>
  24222. Specify radius, omitting the strength (which will fall-back to the default
  24223. value):
  24224. <div class="example">
  24225. <pre class="example">gradfun=radius=8
  24226. </pre></div>
  24227. </li></ul>
  24228. <p><a name="graphmonitor"></a>
  24229. </p><a name="graphmonitor-1"></a>
  24230. <h2 class="section"><a href="ffprobe-all.html#toc-graphmonitor-1">32.90 graphmonitor</a></h2>
  24231. <p>Show various filtergraph stats.
  24232. </p>
  24233. <p>With this filter one can debug complete filtergraph.
  24234. Especially issues with links filling with queued frames.
  24235. </p>
  24236. <p>The filter accepts the following options:
  24237. </p>
  24238. <dl compact="compact">
  24239. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  24240. <dd><p>Set video output size. Default is <var>hd720</var>.
  24241. </p>
  24242. </dd>
  24243. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  24244. <dd><p>Set video opacity. Default is <var>0.9</var>. Allowed range is from <var>0</var> to <var>1</var>.
  24245. </p>
  24246. </dd>
  24247. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  24248. <dd><p>Set output mode, can be <var>fulll</var> or <var>compact</var>.
  24249. In <var>compact</var> mode only filters with some queued frames have displayed stats.
  24250. </p>
  24251. </dd>
  24252. <dt>&lsquo;<samp>flags, f</samp>&rsquo;</dt>
  24253. <dd><p>Set flags which enable which stats are shown in video.
  24254. </p>
  24255. <p>Available values for flags are:
  24256. </p><dl compact="compact">
  24257. <dt>&lsquo;<samp>queue</samp>&rsquo;</dt>
  24258. <dd><p>Display number of queued frames in each link.
  24259. </p>
  24260. </dd>
  24261. <dt>&lsquo;<samp>frame_count_in</samp>&rsquo;</dt>
  24262. <dd><p>Display number of frames taken from filter.
  24263. </p>
  24264. </dd>
  24265. <dt>&lsquo;<samp>frame_count_out</samp>&rsquo;</dt>
  24266. <dd><p>Display number of frames given out from filter.
  24267. </p>
  24268. </dd>
  24269. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  24270. <dd><p>Display current filtered frame pts.
  24271. </p>
  24272. </dd>
  24273. <dt>&lsquo;<samp>time</samp>&rsquo;</dt>
  24274. <dd><p>Display current filtered frame time.
  24275. </p>
  24276. </dd>
  24277. <dt>&lsquo;<samp>timebase</samp>&rsquo;</dt>
  24278. <dd><p>Display time base for filter link.
  24279. </p>
  24280. </dd>
  24281. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  24282. <dd><p>Display used format for filter link.
  24283. </p>
  24284. </dd>
  24285. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  24286. <dd><p>Display video size or number of audio channels in case of audio used by filter link.
  24287. </p>
  24288. </dd>
  24289. <dt>&lsquo;<samp>rate</samp>&rsquo;</dt>
  24290. <dd><p>Display video frame rate or sample rate in case of audio used by filter link.
  24291. </p></dd>
  24292. </dl>
  24293. </dd>
  24294. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  24295. <dd><p>Set upper limit for video rate of output stream, Default value is <var>25</var>.
  24296. This guarantee that output video frame rate will not be higher than this value.
  24297. </p></dd>
  24298. </dl>
  24299. <a name="greyedge"></a>
  24300. <h2 class="section"><a href="ffprobe-all.html#toc-greyedge">32.91 greyedge</a></h2>
  24301. <p>A color constancy variation filter which estimates scene illumination via grey edge algorithm
  24302. and corrects the scene colors accordingly.
  24303. </p>
  24304. <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>
  24305. </p>
  24306. <p>The filter accepts the following options:
  24307. </p>
  24308. <dl compact="compact">
  24309. <dt>&lsquo;<samp>difford</samp>&rsquo;</dt>
  24310. <dd><p>The order of differentiation to be applied on the scene. Must be chosen in the range
  24311. [0,2] and default value is 1.
  24312. </p>
  24313. </dd>
  24314. <dt>&lsquo;<samp>minknorm</samp>&rsquo;</dt>
  24315. <dd><p>The Minkowski parameter to be used for calculating the Minkowski distance. Must
  24316. be chosen in the range [0,20] and default value is 1. Set to 0 for getting
  24317. max value instead of calculating Minkowski distance.
  24318. </p>
  24319. </dd>
  24320. <dt>&lsquo;<samp>sigma</samp>&rsquo;</dt>
  24321. <dd><p>The standard deviation of Gaussian blur to be applied on the scene. Must be
  24322. chosen in the range [0,1024.0] and default value = 1. floor( <var>sigma</var> * break_off_sigma(3) )
  24323. can&rsquo;t be equal to 0 if <var>difford</var> is greater than 0.
  24324. </p></dd>
  24325. </dl>
  24326. <a name="Examples-94"></a>
  24327. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-94">32.91.1 Examples</a></h3>
  24328. <ul>
  24329. <li>
  24330. Grey Edge:
  24331. <div class="example">
  24332. <pre class="example">greyedge=difford=1:minknorm=5:sigma=2
  24333. </pre></div>
  24334. </li><li>
  24335. Max Edge:
  24336. <div class="example">
  24337. <pre class="example">greyedge=difford=1:minknorm=0:sigma=2
  24338. </pre></div>
  24339. </li></ul>
  24340. <p><a name="haldclut"></a>
  24341. </p><a name="haldclut-1"></a>
  24342. <h2 class="section"><a href="ffprobe-all.html#toc-haldclut-1">32.92 haldclut</a></h2>
  24343. <p>Apply a Hald CLUT to a video stream.
  24344. </p>
  24345. <p>First input is the video stream to process, and second one is the Hald CLUT.
  24346. The Hald CLUT input can be a simple picture or a complete video stream.
  24347. </p>
  24348. <p>The filter accepts the following options:
  24349. </p>
  24350. <dl compact="compact">
  24351. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  24352. <dd><p>Force termination when the shortest input terminates. Default is <code>0</code>.
  24353. </p></dd>
  24354. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  24355. <dd><p>Continue applying the last CLUT after the end of the stream. A value of
  24356. <code>0</code> disable the filter after the last frame of the CLUT is reached.
  24357. Default is <code>1</code>.
  24358. </p></dd>
  24359. </dl>
  24360. <p><code>haldclut</code> also has the same interpolation options as <a href="#lut3d">lut3d</a> (both
  24361. filters share the same internals).
  24362. </p>
  24363. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  24364. </p>
  24365. <p>More information about the Hald CLUT can be found on Eskil Steenberg&rsquo;s website
  24366. (Hald CLUT author) at <a href="http://www.quelsolaar.com/technology/clut.html">http://www.quelsolaar.com/technology/clut.html</a>.
  24367. </p>
  24368. <a name="Workflow-examples"></a>
  24369. <h3 class="subsection"><a href="ffprobe-all.html#toc-Workflow-examples">32.92.1 Workflow examples</a></h3>
  24370. <a name="Hald-CLUT-video-stream"></a>
  24371. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-Hald-CLUT-video-stream">32.92.1.1 Hald CLUT video stream</a></h4>
  24372. <p>Generate an identity Hald CLUT stream altered with various effects:
  24373. </p><div class="example">
  24374. <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
  24375. </pre></div>
  24376. <p>Note: make sure you use a lossless codec.
  24377. </p>
  24378. <p>Then use it with <code>haldclut</code> to apply it on some random stream:
  24379. </p><div class="example">
  24380. <pre class="example">ffmpeg -f lavfi -i mandelbrot -i clut.nut -filter_complex '[0][1] haldclut' -t 20 mandelclut.mkv
  24381. </pre></div>
  24382. <p>The Hald CLUT will be applied to the 10 first seconds (duration of
  24383. &lsquo;<tt>clut.nut</tt>&rsquo;), then the latest picture of that CLUT stream will be applied
  24384. to the remaining frames of the <code>mandelbrot</code> stream.
  24385. </p>
  24386. <a name="Hald-CLUT-with-preview"></a>
  24387. <h4 class="subsubsection"><a href="ffprobe-all.html#toc-Hald-CLUT-with-preview">32.92.1.2 Hald CLUT with preview</a></h4>
  24388. <p>A Hald CLUT is supposed to be a squared image of <code>Level*Level*Level</code> by
  24389. <code>Level*Level*Level</code> pixels. For a given Hald CLUT, FFmpeg will select the
  24390. biggest possible square starting at the top left of the picture. The remaining
  24391. padding pixels (bottom or right) will be ignored. This area can be used to add
  24392. a preview of the Hald CLUT.
  24393. </p>
  24394. <p>Typically, the following generated Hald CLUT will be supported by the
  24395. <code>haldclut</code> filter:
  24396. </p>
  24397. <div class="example">
  24398. <pre class="example">ffmpeg -f lavfi -i <a href="#haldclutsrc">haldclutsrc</a>=8 -vf &quot;
  24399. pad=iw+320 [padded_clut];
  24400. smptebars=s=320x256, split [a][b];
  24401. [padded_clut][a] overlay=W-320:h, curves=color_negative [main];
  24402. [main][b] overlay=W-320&quot; -frames:v 1 clut.png
  24403. </pre></div>
  24404. <p>It contains the original and a preview of the effect of the CLUT: SMPTE color
  24405. bars are displayed on the right-top, and below the same color bars processed by
  24406. the color changes.
  24407. </p>
  24408. <p>Then, the effect of this Hald CLUT can be visualized with:
  24409. </p><div class="example">
  24410. <pre class="example">ffplay input.mkv -vf &quot;movie=clut.png, [in] haldclut&quot;
  24411. </pre></div>
  24412. <a name="hflip"></a>
  24413. <h2 class="section"><a href="ffprobe-all.html#toc-hflip">32.93 hflip</a></h2>
  24414. <p>Flip the input video horizontally.
  24415. </p>
  24416. <p>For example, to horizontally flip the input video with <code>ffmpeg</code>:
  24417. </p><div class="example">
  24418. <pre class="example">ffmpeg -i in.avi -vf &quot;hflip&quot; out.avi
  24419. </pre></div>
  24420. <a name="histeq"></a>
  24421. <h2 class="section"><a href="ffprobe-all.html#toc-histeq">32.94 histeq</a></h2>
  24422. <p>This filter applies a global color histogram equalization on a
  24423. per-frame basis.
  24424. </p>
  24425. <p>It can be used to correct video that has a compressed range of pixel
  24426. intensities. The filter redistributes the pixel intensities to
  24427. equalize their distribution across the intensity range. It may be
  24428. viewed as an &quot;automatically adjusting contrast filter&quot;. This filter is
  24429. useful only for correcting degraded or poorly captured source
  24430. video.
  24431. </p>
  24432. <p>The filter accepts the following options:
  24433. </p>
  24434. <dl compact="compact">
  24435. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  24436. <dd><p>Determine the amount of equalization to be applied. As the strength
  24437. is reduced, the distribution of pixel intensities more-and-more
  24438. approaches that of the input frame. The value must be a float number
  24439. in the range [0,1] and defaults to 0.200.
  24440. </p>
  24441. </dd>
  24442. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  24443. <dd><p>Set the maximum intensity that can generated and scale the output
  24444. values appropriately. The strength should be set as desired and then
  24445. the intensity can be limited if needed to avoid washing-out. The value
  24446. must be a float number in the range [0,1] and defaults to 0.210.
  24447. </p>
  24448. </dd>
  24449. <dt>&lsquo;<samp>antibanding</samp>&rsquo;</dt>
  24450. <dd><p>Set the antibanding level. If enabled the filter will randomly vary
  24451. the luminance of output pixels by a small amount to avoid banding of
  24452. the histogram. Possible values are <code>none</code>, <code>weak</code> or
  24453. <code>strong</code>. It defaults to <code>none</code>.
  24454. </p></dd>
  24455. </dl>
  24456. <p><a name="histogram"></a>
  24457. </p><a name="histogram-1"></a>
  24458. <h2 class="section"><a href="ffprobe-all.html#toc-histogram-1">32.95 histogram</a></h2>
  24459. <p>Compute and draw a color distribution histogram for the input video.
  24460. </p>
  24461. <p>The computed histogram is a representation of the color component
  24462. distribution in an image.
  24463. </p>
  24464. <p>Standard histogram displays the color components distribution in an image.
  24465. Displays color graph for each color component. Shows distribution of
  24466. the Y, U, V, A or R, G, B components, depending on input format, in the
  24467. current frame. Below each graph a color component scale meter is shown.
  24468. </p>
  24469. <p>The filter accepts the following options:
  24470. </p>
  24471. <dl compact="compact">
  24472. <dt>&lsquo;<samp>level_height</samp>&rsquo;</dt>
  24473. <dd><p>Set height of level. Default value is <code>200</code>.
  24474. Allowed range is [50, 2048].
  24475. </p>
  24476. </dd>
  24477. <dt>&lsquo;<samp>scale_height</samp>&rsquo;</dt>
  24478. <dd><p>Set height of color scale. Default value is <code>12</code>.
  24479. Allowed range is [0, 40].
  24480. </p>
  24481. </dd>
  24482. <dt>&lsquo;<samp>display_mode</samp>&rsquo;</dt>
  24483. <dd><p>Set display mode.
  24484. It accepts the following values:
  24485. </p><dl compact="compact">
  24486. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  24487. <dd><p>Per color component graphs are placed below each other.
  24488. </p>
  24489. </dd>
  24490. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  24491. <dd><p>Per color component graphs are placed side by side.
  24492. </p>
  24493. </dd>
  24494. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  24495. <dd><p>Presents information identical to that in the <code>parade</code>, except
  24496. that the graphs representing color components are superimposed directly
  24497. over one another.
  24498. </p></dd>
  24499. </dl>
  24500. <p>Default is <code>stack</code>.
  24501. </p>
  24502. </dd>
  24503. <dt>&lsquo;<samp>levels_mode</samp>&rsquo;</dt>
  24504. <dd><p>Set mode. Can be either <code>linear</code>, or <code>logarithmic</code>.
  24505. Default is <code>linear</code>.
  24506. </p>
  24507. </dd>
  24508. <dt>&lsquo;<samp>components</samp>&rsquo;</dt>
  24509. <dd><p>Set what color components to display.
  24510. Default is <code>7</code>.
  24511. </p>
  24512. </dd>
  24513. <dt>&lsquo;<samp>fgopacity</samp>&rsquo;</dt>
  24514. <dd><p>Set foreground opacity. Default is <code>0.7</code>.
  24515. </p>
  24516. </dd>
  24517. <dt>&lsquo;<samp>bgopacity</samp>&rsquo;</dt>
  24518. <dd><p>Set background opacity. Default is <code>0.5</code>.
  24519. </p></dd>
  24520. </dl>
  24521. <a name="Examples-161"></a>
  24522. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-161">32.95.1 Examples</a></h3>
  24523. <ul>
  24524. <li>
  24525. Calculate and draw histogram:
  24526. <div class="example">
  24527. <pre class="example">ffplay -i input -vf histogram
  24528. </pre></div>
  24529. </li></ul>
  24530. <p><a name="hqdn3d"></a>
  24531. </p><a name="hqdn3d-1"></a>
  24532. <h2 class="section"><a href="ffprobe-all.html#toc-hqdn3d-1">32.96 hqdn3d</a></h2>
  24533. <p>This is a high precision/quality 3d denoise filter. It aims to reduce
  24534. image noise, producing smooth images and making still images really
  24535. still. It should enhance compressibility.
  24536. </p>
  24537. <p>It accepts the following optional parameters:
  24538. </p>
  24539. <dl compact="compact">
  24540. <dt>&lsquo;<samp>luma_spatial</samp>&rsquo;</dt>
  24541. <dd><p>A non-negative floating point number which specifies spatial luma strength.
  24542. It defaults to 4.0.
  24543. </p>
  24544. </dd>
  24545. <dt>&lsquo;<samp>chroma_spatial</samp>&rsquo;</dt>
  24546. <dd><p>A non-negative floating point number which specifies spatial chroma strength.
  24547. It defaults to 3.0*<var>luma_spatial</var>/4.0.
  24548. </p>
  24549. </dd>
  24550. <dt>&lsquo;<samp>luma_tmp</samp>&rsquo;</dt>
  24551. <dd><p>A floating point number which specifies luma temporal strength. It defaults to
  24552. 6.0*<var>luma_spatial</var>/4.0.
  24553. </p>
  24554. </dd>
  24555. <dt>&lsquo;<samp>chroma_tmp</samp>&rsquo;</dt>
  24556. <dd><p>A floating point number which specifies chroma temporal strength. It defaults to
  24557. <var>luma_tmp</var>*<var>chroma_spatial</var>/<var>luma_spatial</var>.
  24558. </p></dd>
  24559. </dl>
  24560. <a name="Commands-38"></a>
  24561. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-38">32.96.1 Commands</a></h3>
  24562. <p>This filter supports same <a href="#commands">commands</a> as options.
  24563. The command accepts the same syntax of the corresponding option.
  24564. </p>
  24565. <p>If the specified expression is not valid, it is kept at its current
  24566. value.
  24567. </p>
  24568. <p><a name="hwdownload"></a>
  24569. </p><a name="hwdownload-1"></a>
  24570. <h2 class="section"><a href="ffprobe-all.html#toc-hwdownload-1">32.97 hwdownload</a></h2>
  24571. <p>Download hardware frames to system memory.
  24572. </p>
  24573. <p>The input must be in hardware frames, and the output a non-hardware format.
  24574. Not all formats will be supported on the output - it may be necessary to insert
  24575. an additional &lsquo;<samp>format</samp>&rsquo; filter immediately following in the graph to get
  24576. the output in a supported format.
  24577. </p>
  24578. <a name="hwmap"></a>
  24579. <h2 class="section"><a href="ffprobe-all.html#toc-hwmap">32.98 hwmap</a></h2>
  24580. <p>Map hardware frames to system memory or to another device.
  24581. </p>
  24582. <p>This filter has several different modes of operation; which one is used depends
  24583. on the input and output formats:
  24584. </p><ul>
  24585. <li>
  24586. Hardware frame input, normal frame output
  24587. <p>Map the input frames to system memory and pass them to the output. If the
  24588. original hardware frame is later required (for example, after overlaying
  24589. something else on part of it), the &lsquo;<samp>hwmap</samp>&rsquo; filter can be used again
  24590. in the next mode to retrieve it.
  24591. </p></li><li>
  24592. Normal frame input, hardware frame output
  24593. <p>If the input is actually a software-mapped hardware frame, then unmap it -
  24594. that is, return the original hardware frame.
  24595. </p>
  24596. <p>Otherwise, a device must be provided. Create new hardware surfaces on that
  24597. device for the output, then map them back to the software format at the input
  24598. and give those frames to the preceding filter. This will then act like the
  24599. &lsquo;<samp>hwupload</samp>&rsquo; filter, but may be able to avoid an additional copy when
  24600. the input is already in a compatible format.
  24601. </p></li><li>
  24602. Hardware frame input and output
  24603. <p>A device must be supplied for the output, either directly or with the
  24604. &lsquo;<samp>derive_device</samp>&rsquo; option. The input and output devices must be of
  24605. different types and compatible - the exact meaning of this is
  24606. system-dependent, but typically it means that they must refer to the same
  24607. underlying hardware context (for example, refer to the same graphics card).
  24608. </p>
  24609. <p>If the input frames were originally created on the output device, then unmap
  24610. to retrieve the original frames.
  24611. </p>
  24612. <p>Otherwise, map the frames to the output device - create new hardware frames
  24613. on the output corresponding to the frames on the input.
  24614. </p></li></ul>
  24615. <p>The following additional parameters are accepted:
  24616. </p>
  24617. <dl compact="compact">
  24618. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  24619. <dd><p>Set the frame mapping mode. Some combination of:
  24620. </p><dl compact="compact">
  24621. <dt><var>read</var></dt>
  24622. <dd><p>The mapped frame should be readable.
  24623. </p></dd>
  24624. <dt><var>write</var></dt>
  24625. <dd><p>The mapped frame should be writeable.
  24626. </p></dd>
  24627. <dt><var>overwrite</var></dt>
  24628. <dd><p>The mapping will always overwrite the entire frame.
  24629. </p>
  24630. <p>This may improve performance in some cases, as the original contents of the
  24631. frame need not be loaded.
  24632. </p></dd>
  24633. <dt><var>direct</var></dt>
  24634. <dd><p>The mapping must not involve any copying.
  24635. </p>
  24636. <p>Indirect mappings to copies of frames are created in some cases where either
  24637. direct mapping is not possible or it would have unexpected properties.
  24638. Setting this flag ensures that the mapping is direct and will fail if that is
  24639. not possible.
  24640. </p></dd>
  24641. </dl>
  24642. <p>Defaults to <var>read+write</var> if not specified.
  24643. </p>
  24644. </dd>
  24645. <dt>&lsquo;<samp>derive_device <var>type</var></samp>&rsquo;</dt>
  24646. <dd><p>Rather than using the device supplied at initialisation, instead derive a new
  24647. device of type <var>type</var> from the device the input frames exist on.
  24648. </p>
  24649. </dd>
  24650. <dt>&lsquo;<samp>reverse</samp>&rsquo;</dt>
  24651. <dd><p>In a hardware to hardware mapping, map in reverse - create frames in the sink
  24652. and map them back to the source. This may be necessary in some cases where
  24653. a mapping in one direction is required but only the opposite direction is
  24654. supported by the devices being used.
  24655. </p>
  24656. <p>This option is dangerous - it may break the preceding filter in undefined
  24657. ways if there are any additional constraints on that filter&rsquo;s output.
  24658. Do not use it without fully understanding the implications of its use.
  24659. </p></dd>
  24660. </dl>
  24661. <p><a name="hwupload"></a>
  24662. </p><a name="hwupload-1"></a>
  24663. <h2 class="section"><a href="ffprobe-all.html#toc-hwupload-1">32.99 hwupload</a></h2>
  24664. <p>Upload system memory frames to hardware surfaces.
  24665. </p>
  24666. <p>The device to upload to must be supplied when the filter is initialised. If
  24667. using ffmpeg, select the appropriate device with the &lsquo;<samp>-filter_hw_device</samp>&rsquo;
  24668. option or with the &lsquo;<samp>derive_device</samp>&rsquo; option. The input and output devices
  24669. must be of different types and compatible - the exact meaning of this is
  24670. system-dependent, but typically it means that they must refer to the same
  24671. underlying hardware context (for example, refer to the same graphics card).
  24672. </p>
  24673. <p>The following additional parameters are accepted:
  24674. </p>
  24675. <dl compact="compact">
  24676. <dt>&lsquo;<samp>derive_device <var>type</var></samp>&rsquo;</dt>
  24677. <dd><p>Rather than using the device supplied at initialisation, instead derive a new
  24678. device of type <var>type</var> from the device the input frames exist on.
  24679. </p></dd>
  24680. </dl>
  24681. <p><a name="hwupload_005fcuda"></a>
  24682. </p><a name="hwupload_005fcuda-1"></a>
  24683. <h2 class="section"><a href="ffprobe-all.html#toc-hwupload_005fcuda-1">32.100 hwupload_cuda</a></h2>
  24684. <p>Upload system memory frames to a CUDA device.
  24685. </p>
  24686. <p>It accepts the following optional parameters:
  24687. </p>
  24688. <dl compact="compact">
  24689. <dt>&lsquo;<samp>device</samp>&rsquo;</dt>
  24690. <dd><p>The number of the CUDA device to use
  24691. </p></dd>
  24692. </dl>
  24693. <a name="hqx"></a>
  24694. <h2 class="section"><a href="ffprobe-all.html#toc-hqx">32.101 hqx</a></h2>
  24695. <p>Apply a high-quality magnification filter designed for pixel art. This filter
  24696. was originally created by Maxim Stepin.
  24697. </p>
  24698. <p>It accepts the following option:
  24699. </p>
  24700. <dl compact="compact">
  24701. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  24702. <dd><p>Set the scaling dimension: <code>2</code> for <code>hq2x</code>, <code>3</code> for
  24703. <code>hq3x</code> and <code>4</code> for <code>hq4x</code>.
  24704. Default is <code>3</code>.
  24705. </p></dd>
  24706. </dl>
  24707. <a name="hstack"></a>
  24708. <h2 class="section"><a href="ffprobe-all.html#toc-hstack">32.102 hstack</a></h2>
  24709. <p>Stack input videos horizontally.
  24710. </p>
  24711. <p>All streams must be of same pixel format and of same height.
  24712. </p>
  24713. <p>Note that this filter is faster than using <a href="#overlay">overlay</a> and <a href="#pad">pad</a> filter
  24714. to create same output.
  24715. </p>
  24716. <p>The filter accepts the following option:
  24717. </p>
  24718. <dl compact="compact">
  24719. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  24720. <dd><p>Set number of input streams. Default is 2.
  24721. </p>
  24722. </dd>
  24723. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  24724. <dd><p>If set to 1, force the output to terminate when the shortest input
  24725. terminates. Default value is 0.
  24726. </p></dd>
  24727. </dl>
  24728. <a name="hue"></a>
  24729. <h2 class="section"><a href="ffprobe-all.html#toc-hue">32.103 hue</a></h2>
  24730. <p>Modify the hue and/or the saturation of the input.
  24731. </p>
  24732. <p>It accepts the following parameters:
  24733. </p>
  24734. <dl compact="compact">
  24735. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  24736. <dd><p>Specify the hue angle as a number of degrees. It accepts an expression,
  24737. and defaults to &quot;0&quot;.
  24738. </p>
  24739. </dd>
  24740. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  24741. <dd><p>Specify the saturation in the [-10,10] range. It accepts an expression and
  24742. defaults to &quot;1&quot;.
  24743. </p>
  24744. </dd>
  24745. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  24746. <dd><p>Specify the hue angle as a number of radians. It accepts an
  24747. expression, and defaults to &quot;0&quot;.
  24748. </p>
  24749. </dd>
  24750. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  24751. <dd><p>Specify the brightness in the [-10,10] range. It accepts an expression and
  24752. defaults to &quot;0&quot;.
  24753. </p></dd>
  24754. </dl>
  24755. <p>&lsquo;<samp>h</samp>&rsquo; and &lsquo;<samp>H</samp>&rsquo; are mutually exclusive, and can&rsquo;t be
  24756. specified at the same time.
  24757. </p>
  24758. <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
  24759. expressions containing the following constants:
  24760. </p>
  24761. <dl compact="compact">
  24762. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  24763. <dd><p>frame count of the input frame starting from 0
  24764. </p>
  24765. </dd>
  24766. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  24767. <dd><p>presentation timestamp of the input frame expressed in time base units
  24768. </p>
  24769. </dd>
  24770. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  24771. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  24772. </p>
  24773. </dd>
  24774. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  24775. <dd><p>timestamp expressed in seconds, NAN if the input timestamp is unknown
  24776. </p>
  24777. </dd>
  24778. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  24779. <dd><p>time base of the input video
  24780. </p></dd>
  24781. </dl>
  24782. <a name="Examples-116"></a>
  24783. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-116">32.103.1 Examples</a></h3>
  24784. <ul>
  24785. <li>
  24786. Set the hue to 90 degrees and the saturation to 1.0:
  24787. <div class="example">
  24788. <pre class="example">hue=h=90:s=1
  24789. </pre></div>
  24790. </li><li>
  24791. Same command but expressing the hue in radians:
  24792. <div class="example">
  24793. <pre class="example">hue=H=PI/2:s=1
  24794. </pre></div>
  24795. </li><li>
  24796. Rotate hue and make the saturation swing between 0
  24797. and 2 over a period of 1 second:
  24798. <div class="example">
  24799. <pre class="example">hue=&quot;H=2*PI*t: s=sin(2*PI*t)+1&quot;
  24800. </pre></div>
  24801. </li><li>
  24802. Apply a 3 seconds saturation fade-in effect starting at 0:
  24803. <div class="example">
  24804. <pre class="example">hue=&quot;s=min(t/3\,1)&quot;
  24805. </pre></div>
  24806. <p>The general fade-in expression can be written as:
  24807. </p><div class="example">
  24808. <pre class="example">hue=&quot;s=min(0\, max((t-START)/DURATION\, 1))&quot;
  24809. </pre></div>
  24810. </li><li>
  24811. Apply a 3 seconds saturation fade-out effect starting at 5 seconds:
  24812. <div class="example">
  24813. <pre class="example">hue=&quot;s=max(0\, min(1\, (8-t)/3))&quot;
  24814. </pre></div>
  24815. <p>The general fade-out expression can be written as:
  24816. </p><div class="example">
  24817. <pre class="example">hue=&quot;s=max(0\, min(1\, (START+DURATION-t)/DURATION))&quot;
  24818. </pre></div>
  24819. </li></ul>
  24820. <a name="Commands-16"></a>
  24821. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-16">32.103.2 Commands</a></h3>
  24822. <p>This filter supports the following commands:
  24823. </p><dl compact="compact">
  24824. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  24825. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  24826. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  24827. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  24828. <dd><p>Modify the hue and/or the saturation and/or brightness of the input video.
  24829. The command accepts the same syntax of the corresponding option.
  24830. </p>
  24831. <p>If the specified expression is not valid, it is kept at its current
  24832. value.
  24833. </p></dd>
  24834. </dl>
  24835. <a name="hysteresis"></a>
  24836. <h2 class="section"><a href="ffprobe-all.html#toc-hysteresis">32.104 hysteresis</a></h2>
  24837. <p>Grow first stream into second stream by connecting components.
  24838. This makes it possible to build more robust edge masks.
  24839. </p>
  24840. <p>This filter accepts the following options:
  24841. </p>
  24842. <dl compact="compact">
  24843. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  24844. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  24845. copied from first stream.
  24846. By default value 0xf, all planes will be processed.
  24847. </p>
  24848. </dd>
  24849. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  24850. <dd><p>Set threshold which is used in filtering. If pixel component value is higher than
  24851. this value filter algorithm for connecting components is activated.
  24852. By default value is 0.
  24853. </p></dd>
  24854. </dl>
  24855. <p>The <code>hysteresis</code> filter also supports the <a href="#framesync">framesync</a> options.
  24856. </p>
  24857. <a name="idet"></a>
  24858. <h2 class="section"><a href="ffprobe-all.html#toc-idet">32.105 idet</a></h2>
  24859. <p>Detect video interlacing type.
  24860. </p>
  24861. <p>This filter tries to detect if the input frames are interlaced, progressive,
  24862. top or bottom field first. It will also try to detect fields that are
  24863. repeated between adjacent frames (a sign of telecine).
  24864. </p>
  24865. <p>Single frame detection considers only immediately adjacent frames when classifying each frame.
  24866. Multiple frame detection incorporates the classification history of previous frames.
  24867. </p>
  24868. <p>The filter will log these metadata values:
  24869. </p>
  24870. <dl compact="compact">
  24871. <dt>&lsquo;<samp>single.current_frame</samp>&rsquo;</dt>
  24872. <dd><p>Detected type of current frame using single-frame detection. One of:
  24873. &ldquo;tff&rdquo; (top field first), &ldquo;bff&rdquo; (bottom field first),
  24874. &ldquo;progressive&rdquo;, or &ldquo;undetermined&rdquo;
  24875. </p>
  24876. </dd>
  24877. <dt>&lsquo;<samp>single.tff</samp>&rsquo;</dt>
  24878. <dd><p>Cumulative number of frames detected as top field first using single-frame detection.
  24879. </p>
  24880. </dd>
  24881. <dt>&lsquo;<samp>multiple.tff</samp>&rsquo;</dt>
  24882. <dd><p>Cumulative number of frames detected as top field first using multiple-frame detection.
  24883. </p>
  24884. </dd>
  24885. <dt>&lsquo;<samp>single.bff</samp>&rsquo;</dt>
  24886. <dd><p>Cumulative number of frames detected as bottom field first using single-frame detection.
  24887. </p>
  24888. </dd>
  24889. <dt>&lsquo;<samp>multiple.current_frame</samp>&rsquo;</dt>
  24890. <dd><p>Detected type of current frame using multiple-frame detection. One of:
  24891. &ldquo;tff&rdquo; (top field first), &ldquo;bff&rdquo; (bottom field first),
  24892. &ldquo;progressive&rdquo;, or &ldquo;undetermined&rdquo;
  24893. </p>
  24894. </dd>
  24895. <dt>&lsquo;<samp>multiple.bff</samp>&rsquo;</dt>
  24896. <dd><p>Cumulative number of frames detected as bottom field first using multiple-frame detection.
  24897. </p>
  24898. </dd>
  24899. <dt>&lsquo;<samp>single.progressive</samp>&rsquo;</dt>
  24900. <dd><p>Cumulative number of frames detected as progressive using single-frame detection.
  24901. </p>
  24902. </dd>
  24903. <dt>&lsquo;<samp>multiple.progressive</samp>&rsquo;</dt>
  24904. <dd><p>Cumulative number of frames detected as progressive using multiple-frame detection.
  24905. </p>
  24906. </dd>
  24907. <dt>&lsquo;<samp>single.undetermined</samp>&rsquo;</dt>
  24908. <dd><p>Cumulative number of frames that could not be classified using single-frame detection.
  24909. </p>
  24910. </dd>
  24911. <dt>&lsquo;<samp>multiple.undetermined</samp>&rsquo;</dt>
  24912. <dd><p>Cumulative number of frames that could not be classified using multiple-frame detection.
  24913. </p>
  24914. </dd>
  24915. <dt>&lsquo;<samp>repeated.current_frame</samp>&rsquo;</dt>
  24916. <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;.
  24917. </p>
  24918. </dd>
  24919. <dt>&lsquo;<samp>repeated.neither</samp>&rsquo;</dt>
  24920. <dd><p>Cumulative number of frames with no repeated field.
  24921. </p>
  24922. </dd>
  24923. <dt>&lsquo;<samp>repeated.top</samp>&rsquo;</dt>
  24924. <dd><p>Cumulative number of frames with the top field repeated from the previous frame&rsquo;s top field.
  24925. </p>
  24926. </dd>
  24927. <dt>&lsquo;<samp>repeated.bottom</samp>&rsquo;</dt>
  24928. <dd><p>Cumulative number of frames with the bottom field repeated from the previous frame&rsquo;s bottom field.
  24929. </p></dd>
  24930. </dl>
  24931. <p>The filter accepts the following options:
  24932. </p>
  24933. <dl compact="compact">
  24934. <dt>&lsquo;<samp>intl_thres</samp>&rsquo;</dt>
  24935. <dd><p>Set interlacing threshold.
  24936. </p></dd>
  24937. <dt>&lsquo;<samp>prog_thres</samp>&rsquo;</dt>
  24938. <dd><p>Set progressive threshold.
  24939. </p></dd>
  24940. <dt>&lsquo;<samp>rep_thres</samp>&rsquo;</dt>
  24941. <dd><p>Threshold for repeated field detection.
  24942. </p></dd>
  24943. <dt>&lsquo;<samp>half_life</samp>&rsquo;</dt>
  24944. <dd><p>Number of frames after which a given frame&rsquo;s contribution to the
  24945. statistics is halved (i.e., it contributes only 0.5 to its
  24946. classification). The default of 0 means that all frames seen are given
  24947. full weight of 1.0 forever.
  24948. </p></dd>
  24949. <dt>&lsquo;<samp>analyze_interlaced_flag</samp>&rsquo;</dt>
  24950. <dd><p>When this is not 0 then idet will use the specified number of frames to determine
  24951. if the interlaced flag is accurate, it will not count undetermined frames.
  24952. If the flag is found to be accurate it will be used without any further
  24953. computations, if it is found to be inaccurate it will be cleared without any
  24954. further computations. This allows inserting the idet filter as a low computational
  24955. method to clean up the interlaced flag
  24956. </p></dd>
  24957. </dl>
  24958. <a name="il"></a>
  24959. <h2 class="section"><a href="ffprobe-all.html#toc-il">32.106 il</a></h2>
  24960. <p>Deinterleave or interleave fields.
  24961. </p>
  24962. <p>This filter allows one to process interlaced images fields without
  24963. deinterlacing them. Deinterleaving splits the input frame into 2
  24964. fields (so called half pictures). Odd lines are moved to the top
  24965. half of the output image, even lines to the bottom half.
  24966. You can process (filter) them independently and then re-interleave them.
  24967. </p>
  24968. <p>The filter accepts the following options:
  24969. </p>
  24970. <dl compact="compact">
  24971. <dt>&lsquo;<samp>luma_mode, l</samp>&rsquo;</dt>
  24972. <dt>&lsquo;<samp>chroma_mode, c</samp>&rsquo;</dt>
  24973. <dt>&lsquo;<samp>alpha_mode, a</samp>&rsquo;</dt>
  24974. <dd><p>Available values for <var>luma_mode</var>, <var>chroma_mode</var> and
  24975. <var>alpha_mode</var> are:
  24976. </p>
  24977. <dl compact="compact">
  24978. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  24979. <dd><p>Do nothing.
  24980. </p>
  24981. </dd>
  24982. <dt>&lsquo;<samp>deinterleave, d</samp>&rsquo;</dt>
  24983. <dd><p>Deinterleave fields, placing one above the other.
  24984. </p>
  24985. </dd>
  24986. <dt>&lsquo;<samp>interleave, i</samp>&rsquo;</dt>
  24987. <dd><p>Interleave fields. Reverse the effect of deinterleaving.
  24988. </p></dd>
  24989. </dl>
  24990. <p>Default value is <code>none</code>.
  24991. </p>
  24992. </dd>
  24993. <dt>&lsquo;<samp>luma_swap, ls</samp>&rsquo;</dt>
  24994. <dt>&lsquo;<samp>chroma_swap, cs</samp>&rsquo;</dt>
  24995. <dt>&lsquo;<samp>alpha_swap, as</samp>&rsquo;</dt>
  24996. <dd><p>Swap luma/chroma/alpha fields. Exchange even &amp; odd lines. Default value is <code>0</code>.
  24997. </p></dd>
  24998. </dl>
  24999. <a name="Commands-60"></a>
  25000. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-60">32.106.1 Commands</a></h3>
  25001. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  25002. </p>
  25003. <a name="inflate"></a>
  25004. <h2 class="section"><a href="ffprobe-all.html#toc-inflate">32.107 inflate</a></h2>
  25005. <p>Apply inflate effect to the video.
  25006. </p>
  25007. <p>This filter replaces the pixel by the local(3x3) average by taking into account
  25008. only values higher than the pixel.
  25009. </p>
  25010. <p>It accepts the following options:
  25011. </p>
  25012. <dl compact="compact">
  25013. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  25014. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  25015. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  25016. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  25017. <dd><p>Limit the maximum change for each plane, default is 65535.
  25018. If 0, plane will remain unchanged.
  25019. </p></dd>
  25020. </dl>
  25021. <a name="Commands-67"></a>
  25022. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-67">32.107.1 Commands</a></h3>
  25023. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  25024. </p>
  25025. <a name="interlace"></a>
  25026. <h2 class="section"><a href="ffprobe-all.html#toc-interlace">32.108 interlace</a></h2>
  25027. <p>Simple interlacing filter from progressive contents. This interleaves upper (or
  25028. lower) lines from odd frames with lower (or upper) lines from even frames,
  25029. halving the frame rate and preserving image height.
  25030. </p>
  25031. <div class="example">
  25032. <pre class="example"> Original Original New Frame
  25033. Frame 'j' Frame 'j+1' (tff)
  25034. ========== =========== ==================
  25035. Line 0 --------------------&gt; Frame 'j' Line 0
  25036. Line 1 Line 1 ----&gt; Frame 'j+1' Line 1
  25037. Line 2 ---------------------&gt; Frame 'j' Line 2
  25038. Line 3 Line 3 ----&gt; Frame 'j+1' Line 3
  25039. ... ... ...
  25040. New Frame + 1 will be generated by Frame 'j+2' and Frame 'j+3' and so on
  25041. </pre></div>
  25042. <p>It accepts the following optional parameters:
  25043. </p>
  25044. <dl compact="compact">
  25045. <dt>&lsquo;<samp>scan</samp>&rsquo;</dt>
  25046. <dd><p>This determines whether the interlaced frame is taken from the even
  25047. (tff - default) or odd (bff) lines of the progressive frame.
  25048. </p>
  25049. </dd>
  25050. <dt>&lsquo;<samp>lowpass</samp>&rsquo;</dt>
  25051. <dd><p>Vertical lowpass filter to avoid twitter interlacing and
  25052. reduce moire patterns.
  25053. </p>
  25054. <dl compact="compact">
  25055. <dt>&lsquo;<samp>0, off</samp>&rsquo;</dt>
  25056. <dd><p>Disable vertical lowpass filter
  25057. </p>
  25058. </dd>
  25059. <dt>&lsquo;<samp>1, linear</samp>&rsquo;</dt>
  25060. <dd><p>Enable linear filter (default)
  25061. </p>
  25062. </dd>
  25063. <dt>&lsquo;<samp>2, complex</samp>&rsquo;</dt>
  25064. <dd><p>Enable complex filter. This will slightly less reduce twitter and moire
  25065. but better retain detail and subjective sharpness impression.
  25066. </p>
  25067. </dd>
  25068. </dl>
  25069. </dd>
  25070. </dl>
  25071. <a name="kerndeint"></a>
  25072. <h2 class="section"><a href="ffprobe-all.html#toc-kerndeint">32.109 kerndeint</a></h2>
  25073. <p>Deinterlace input video by applying Donald Graft&rsquo;s adaptive kernel
  25074. deinterling. Work on interlaced parts of a video to produce
  25075. progressive frames.
  25076. </p>
  25077. <p>The description of the accepted parameters follows.
  25078. </p>
  25079. <dl compact="compact">
  25080. <dt>&lsquo;<samp>thresh</samp>&rsquo;</dt>
  25081. <dd><p>Set the threshold which affects the filter&rsquo;s tolerance when
  25082. determining if a pixel line must be processed. It must be an integer
  25083. in the range [0,255] and defaults to 10. A value of 0 will result in
  25084. applying the process on every pixels.
  25085. </p>
  25086. </dd>
  25087. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  25088. <dd><p>Paint pixels exceeding the threshold value to white if set to 1.
  25089. Default is 0.
  25090. </p>
  25091. </dd>
  25092. <dt>&lsquo;<samp>order</samp>&rsquo;</dt>
  25093. <dd><p>Set the fields order. Swap fields if set to 1, leave fields alone if
  25094. 0. Default is 0.
  25095. </p>
  25096. </dd>
  25097. <dt>&lsquo;<samp>sharp</samp>&rsquo;</dt>
  25098. <dd><p>Enable additional sharpening if set to 1. Default is 0.
  25099. </p>
  25100. </dd>
  25101. <dt>&lsquo;<samp>twoway</samp>&rsquo;</dt>
  25102. <dd><p>Enable twoway sharpening if set to 1. Default is 0.
  25103. </p></dd>
  25104. </dl>
  25105. <a name="Examples-34"></a>
  25106. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-34">32.109.1 Examples</a></h3>
  25107. <ul>
  25108. <li>
  25109. Apply default values:
  25110. <div class="example">
  25111. <pre class="example">kerndeint=thresh=10:map=0:order=0:sharp=0:twoway=0
  25112. </pre></div>
  25113. </li><li>
  25114. Enable additional sharpening:
  25115. <div class="example">
  25116. <pre class="example">kerndeint=sharp=1
  25117. </pre></div>
  25118. </li><li>
  25119. Paint processed pixels in white:
  25120. <div class="example">
  25121. <pre class="example">kerndeint=map=1
  25122. </pre></div>
  25123. </li></ul>
  25124. <a name="lagfun"></a>
  25125. <h2 class="section"><a href="ffprobe-all.html#toc-lagfun">32.110 lagfun</a></h2>
  25126. <p>Slowly update darker pixels.
  25127. </p>
  25128. <p>This filter makes short flashes of light appear longer.
  25129. This filter accepts the following options:
  25130. </p>
  25131. <dl compact="compact">
  25132. <dt>&lsquo;<samp>decay</samp>&rsquo;</dt>
  25133. <dd><p>Set factor for decaying. Default is .95. Allowed range is from 0 to 1.
  25134. </p>
  25135. </dd>
  25136. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25137. <dd><p>Set which planes to filter. Default is all. Allowed range is from 0 to 15.
  25138. </p></dd>
  25139. </dl>
  25140. <a name="lenscorrection"></a>
  25141. <h2 class="section"><a href="ffprobe-all.html#toc-lenscorrection">32.111 lenscorrection</a></h2>
  25142. <p>Correct radial lens distortion
  25143. </p>
  25144. <p>This filter can be used to correct for radial distortion as can result from the use
  25145. of wide angle lenses, and thereby re-rectify the image. To find the right parameters
  25146. one can use tools available for example as part of opencv or simply trial-and-error.
  25147. To use opencv use the calibration sample (under samples/cpp) from the opencv sources
  25148. and extract the k1 and k2 coefficients from the resulting matrix.
  25149. </p>
  25150. <p>Note that effectively the same filter is available in the open-source tools Krita and
  25151. Digikam from the KDE project.
  25152. </p>
  25153. <p>In contrast to the <a href="#vignette">vignette</a> filter, which can also be used to compensate lens errors,
  25154. this filter corrects the distortion of the image, whereas <a href="#vignette">vignette</a> corrects the
  25155. brightness distribution, so you may want to use both filters together in certain
  25156. cases, though you will have to take care of ordering, i.e. whether vignetting should
  25157. be applied before or after lens correction.
  25158. </p>
  25159. <a name="Options-24"></a>
  25160. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-24">32.111.1 Options</a></h3>
  25161. <p>The filter accepts the following options:
  25162. </p>
  25163. <dl compact="compact">
  25164. <dt>&lsquo;<samp>cx</samp>&rsquo;</dt>
  25165. <dd><p>Relative x-coordinate of the focal point of the image, and thereby the center of the
  25166. distortion. This value has a range [0,1] and is expressed as fractions of the image
  25167. width. Default is 0.5.
  25168. </p></dd>
  25169. <dt>&lsquo;<samp>cy</samp>&rsquo;</dt>
  25170. <dd><p>Relative y-coordinate of the focal point of the image, and thereby the center of the
  25171. distortion. This value has a range [0,1] and is expressed as fractions of the image
  25172. height. Default is 0.5.
  25173. </p></dd>
  25174. <dt>&lsquo;<samp>k1</samp>&rsquo;</dt>
  25175. <dd><p>Coefficient of the quadratic correction term. This value has a range [-1,1]. 0 means
  25176. no correction. Default is 0.
  25177. </p></dd>
  25178. <dt>&lsquo;<samp>k2</samp>&rsquo;</dt>
  25179. <dd><p>Coefficient of the double quadratic correction term. This value has a range [-1,1].
  25180. 0 means no correction. Default is 0.
  25181. </p></dd>
  25182. </dl>
  25183. <p>The formula that generates the correction is:
  25184. </p>
  25185. <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)
  25186. </p>
  25187. <p>where <var>r_0</var> is halve of the image diagonal and <var>r_src</var> and <var>r_tgt</var> are the
  25188. distances from the focal point in the source and target images, respectively.
  25189. </p>
  25190. <a name="lensfun"></a>
  25191. <h2 class="section"><a href="ffprobe-all.html#toc-lensfun">32.112 lensfun</a></h2>
  25192. <p>Apply lens correction via the lensfun library (<a href="http://lensfun.sourceforge.net/">http://lensfun.sourceforge.net/</a>).
  25193. </p>
  25194. <p>The <code>lensfun</code> filter requires the camera make, camera model, and lens model
  25195. to apply the lens correction. The filter will load the lensfun database and
  25196. query it to find the corresponding camera and lens entries in the database. As
  25197. long as these entries can be found with the given options, the filter can
  25198. perform corrections on frames. Note that incomplete strings will result in the
  25199. filter choosing the best match with the given options, and the filter will
  25200. output the chosen camera and lens models (logged with level &quot;info&quot;). You must
  25201. provide the make, camera model, and lens model as they are required.
  25202. </p>
  25203. <p>The filter accepts the following options:
  25204. </p>
  25205. <dl compact="compact">
  25206. <dt>&lsquo;<samp>make</samp>&rsquo;</dt>
  25207. <dd><p>The make of the camera (for example, &quot;Canon&quot;). This option is required.
  25208. </p>
  25209. </dd>
  25210. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  25211. <dd><p>The model of the camera (for example, &quot;Canon EOS 100D&quot;). This option is
  25212. required.
  25213. </p>
  25214. </dd>
  25215. <dt>&lsquo;<samp>lens_model</samp>&rsquo;</dt>
  25216. <dd><p>The model of the lens (for example, &quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot;). This
  25217. option is required.
  25218. </p>
  25219. </dd>
  25220. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  25221. <dd><p>The type of correction to apply. The following values are valid options:
  25222. </p>
  25223. <dl compact="compact">
  25224. <dt>&lsquo;<samp>vignetting</samp>&rsquo;</dt>
  25225. <dd><p>Enables fixing lens vignetting.
  25226. </p>
  25227. </dd>
  25228. <dt>&lsquo;<samp>geometry</samp>&rsquo;</dt>
  25229. <dd><p>Enables fixing lens geometry. This is the default.
  25230. </p>
  25231. </dd>
  25232. <dt>&lsquo;<samp>subpixel</samp>&rsquo;</dt>
  25233. <dd><p>Enables fixing chromatic aberrations.
  25234. </p>
  25235. </dd>
  25236. <dt>&lsquo;<samp>vig_geo</samp>&rsquo;</dt>
  25237. <dd><p>Enables fixing lens vignetting and lens geometry.
  25238. </p>
  25239. </dd>
  25240. <dt>&lsquo;<samp>vig_subpixel</samp>&rsquo;</dt>
  25241. <dd><p>Enables fixing lens vignetting and chromatic aberrations.
  25242. </p>
  25243. </dd>
  25244. <dt>&lsquo;<samp>distortion</samp>&rsquo;</dt>
  25245. <dd><p>Enables fixing both lens geometry and chromatic aberrations.
  25246. </p>
  25247. </dd>
  25248. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  25249. <dd><p>Enables all possible corrections.
  25250. </p>
  25251. </dd>
  25252. </dl>
  25253. </dd>
  25254. <dt>&lsquo;<samp>focal_length</samp>&rsquo;</dt>
  25255. <dd><p>The focal length of the image/video (zoom; expected constant for video). For
  25256. example, a 18&ndash;55mm lens has focal length range of [18&ndash;55], so a value in that
  25257. range should be chosen when using that lens. Default 18.
  25258. </p>
  25259. </dd>
  25260. <dt>&lsquo;<samp>aperture</samp>&rsquo;</dt>
  25261. <dd><p>The aperture of the image/video (expected constant for video). Note that
  25262. aperture is only used for vignetting correction. Default 3.5.
  25263. </p>
  25264. </dd>
  25265. <dt>&lsquo;<samp>focus_distance</samp>&rsquo;</dt>
  25266. <dd><p>The focus distance of the image/video (expected constant for video). Note that
  25267. focus distance is only used for vignetting and only slightly affects the
  25268. vignetting correction process. If unknown, leave it at the default value (which
  25269. is 1000).
  25270. </p>
  25271. </dd>
  25272. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  25273. <dd><p>The scale factor which is applied after transformation. After correction the
  25274. video is no longer necessarily rectangular. This parameter controls how much of
  25275. the resulting image is visible. The value 0 means that a value will be chosen
  25276. automatically such that there is little or no unmapped area in the output
  25277. image. 1.0 means that no additional scaling is done. Lower values may result
  25278. in more of the corrected image being visible, while higher values may avoid
  25279. unmapped areas in the output.
  25280. </p>
  25281. </dd>
  25282. <dt>&lsquo;<samp>target_geometry</samp>&rsquo;</dt>
  25283. <dd><p>The target geometry of the output image/video. The following values are valid
  25284. options:
  25285. </p>
  25286. <dl compact="compact">
  25287. <dt>&lsquo;<samp>rectilinear (default)</samp>&rsquo;</dt>
  25288. <dt>&lsquo;<samp>fisheye</samp>&rsquo;</dt>
  25289. <dt>&lsquo;<samp>panoramic</samp>&rsquo;</dt>
  25290. <dt>&lsquo;<samp>equirectangular</samp>&rsquo;</dt>
  25291. <dt>&lsquo;<samp>fisheye_orthographic</samp>&rsquo;</dt>
  25292. <dt>&lsquo;<samp>fisheye_stereographic</samp>&rsquo;</dt>
  25293. <dt>&lsquo;<samp>fisheye_equisolid</samp>&rsquo;</dt>
  25294. <dt>&lsquo;<samp>fisheye_thoby</samp>&rsquo;</dt>
  25295. </dl>
  25296. </dd>
  25297. <dt>&lsquo;<samp>reverse</samp>&rsquo;</dt>
  25298. <dd><p>Apply the reverse of image correction (instead of correcting distortion, apply
  25299. it).
  25300. </p>
  25301. </dd>
  25302. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  25303. <dd><p>The type of interpolation used when correcting distortion. The following values
  25304. are valid options:
  25305. </p>
  25306. <dl compact="compact">
  25307. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25308. <dt>&lsquo;<samp>linear (default)</samp>&rsquo;</dt>
  25309. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  25310. </dl>
  25311. </dd>
  25312. </dl>
  25313. <a name="Examples-110"></a>
  25314. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-110">32.112.1 Examples</a></h3>
  25315. <ul>
  25316. <li>
  25317. Apply lens correction with make &quot;Canon&quot;, camera model &quot;Canon EOS 100D&quot;, and lens
  25318. model &quot;Canon EF-S 18-55mm f/3.5-5.6 IS STM&quot; with focal length of &quot;18&quot; and
  25319. aperture of &quot;8.0&quot;.
  25320. <div class="example">
  25321. <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
  25322. </pre></div>
  25323. </li><li>
  25324. Apply the same as before, but only for the first 5 seconds of video.
  25325. <div class="example">
  25326. <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
  25327. </pre></div>
  25328. </li></ul>
  25329. <a name="libvmaf"></a>
  25330. <h2 class="section"><a href="ffprobe-all.html#toc-libvmaf">32.113 libvmaf</a></h2>
  25331. <p>Obtain the VMAF (Video Multi-Method Assessment Fusion)
  25332. score between two input videos.
  25333. </p>
  25334. <p>The obtained VMAF score is printed through the logging system.
  25335. </p>
  25336. <p>It requires Netflix&rsquo;s vmaf library (libvmaf) as a pre-requisite.
  25337. After installing the library it can be enabled using:
  25338. <code>./configure --enable-libvmaf --enable-version3</code>.
  25339. If no model path is specified it uses the default model: <code>vmaf_v0.6.1.pkl</code>.
  25340. </p>
  25341. <p>The filter has following options:
  25342. </p>
  25343. <dl compact="compact">
  25344. <dt>&lsquo;<samp>model_path</samp>&rsquo;</dt>
  25345. <dd><p>Set the model path which is to be used for SVM.
  25346. Default value: <code>&quot;/usr/local/share/model/vmaf_v0.6.1.pkl&quot;</code>
  25347. </p>
  25348. </dd>
  25349. <dt>&lsquo;<samp>log_path</samp>&rsquo;</dt>
  25350. <dd><p>Set the file path to be used to store logs.
  25351. </p>
  25352. </dd>
  25353. <dt>&lsquo;<samp>log_fmt</samp>&rsquo;</dt>
  25354. <dd><p>Set the format of the log file (xml or json).
  25355. </p>
  25356. </dd>
  25357. <dt>&lsquo;<samp>enable_transform</samp>&rsquo;</dt>
  25358. <dd><p>This option can enable/disable the <code>score_transform</code> applied to the final predicted VMAF score,
  25359. if you have specified score_transform option in the input parameter file passed to <code>run_vmaf_training.py</code>
  25360. Default value: <code>false</code>
  25361. </p>
  25362. </dd>
  25363. <dt>&lsquo;<samp>phone_model</samp>&rsquo;</dt>
  25364. <dd><p>Invokes the phone model which will generate VMAF scores higher than in the
  25365. regular model, which is more suitable for laptop, TV, etc. viewing conditions.
  25366. Default value: <code>false</code>
  25367. </p>
  25368. </dd>
  25369. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  25370. <dd><p>Enables computing psnr along with vmaf.
  25371. Default value: <code>false</code>
  25372. </p>
  25373. </dd>
  25374. <dt>&lsquo;<samp>ssim</samp>&rsquo;</dt>
  25375. <dd><p>Enables computing ssim along with vmaf.
  25376. Default value: <code>false</code>
  25377. </p>
  25378. </dd>
  25379. <dt>&lsquo;<samp>ms_ssim</samp>&rsquo;</dt>
  25380. <dd><p>Enables computing ms_ssim along with vmaf.
  25381. Default value: <code>false</code>
  25382. </p>
  25383. </dd>
  25384. <dt>&lsquo;<samp>pool</samp>&rsquo;</dt>
  25385. <dd><p>Set the pool method to be used for computing vmaf.
  25386. Options are <code>min</code>, <code>harmonic_mean</code> or <code>mean</code> (default).
  25387. </p>
  25388. </dd>
  25389. <dt>&lsquo;<samp>n_threads</samp>&rsquo;</dt>
  25390. <dd><p>Set number of threads to be used when computing vmaf.
  25391. Default value: <code>0</code>, which makes use of all available logical processors.
  25392. </p>
  25393. </dd>
  25394. <dt>&lsquo;<samp>n_subsample</samp>&rsquo;</dt>
  25395. <dd><p>Set interval for frame subsampling used when computing vmaf.
  25396. Default value: <code>1</code>
  25397. </p>
  25398. </dd>
  25399. <dt>&lsquo;<samp>enable_conf_interval</samp>&rsquo;</dt>
  25400. <dd><p>Enables confidence interval.
  25401. Default value: <code>false</code>
  25402. </p></dd>
  25403. </dl>
  25404. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  25405. </p>
  25406. <a name="Examples-36"></a>
  25407. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-36">32.113.1 Examples</a></h3>
  25408. <ul>
  25409. <li>
  25410. On the below examples the input file &lsquo;<tt>main.mpg</tt>&rsquo; being processed is
  25411. compared with the reference file &lsquo;<tt>ref.mpg</tt>&rsquo;.
  25412. <div class="example">
  25413. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi libvmaf -f null -
  25414. </pre></div>
  25415. </li><li>
  25416. Example with options:
  25417. <div class="example">
  25418. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi libvmaf=&quot;psnr=1:log_fmt=json&quot; -f null -
  25419. </pre></div>
  25420. </li><li>
  25421. Example with options and different containers:
  25422. <div class="example">
  25423. <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 -
  25424. </pre></div>
  25425. </li></ul>
  25426. <a name="limiter"></a>
  25427. <h2 class="section"><a href="ffprobe-all.html#toc-limiter">32.114 limiter</a></h2>
  25428. <p>Limits the pixel components values to the specified range [min, max].
  25429. </p>
  25430. <p>The filter accepts the following options:
  25431. </p>
  25432. <dl compact="compact">
  25433. <dt>&lsquo;<samp>min</samp>&rsquo;</dt>
  25434. <dd><p>Lower bound. Defaults to the lowest allowed value for the input.
  25435. </p>
  25436. </dd>
  25437. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  25438. <dd><p>Upper bound. Defaults to the highest allowed value for the input.
  25439. </p>
  25440. </dd>
  25441. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25442. <dd><p>Specify which planes will be processed. Defaults to all available.
  25443. </p></dd>
  25444. </dl>
  25445. <a name="loop"></a>
  25446. <h2 class="section"><a href="ffprobe-all.html#toc-loop">32.115 loop</a></h2>
  25447. <p>Loop video frames.
  25448. </p>
  25449. <p>The filter accepts the following options:
  25450. </p>
  25451. <dl compact="compact">
  25452. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  25453. <dd><p>Set the number of loops. Setting this value to -1 will result in infinite loops.
  25454. Default is 0.
  25455. </p>
  25456. </dd>
  25457. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  25458. <dd><p>Set maximal size in number of frames. Default is 0.
  25459. </p>
  25460. </dd>
  25461. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  25462. <dd><p>Set first frame of loop. Default is 0.
  25463. </p></dd>
  25464. </dl>
  25465. <a name="Examples-129"></a>
  25466. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-129">32.115.1 Examples</a></h3>
  25467. <ul>
  25468. <li>
  25469. Loop single first frame infinitely:
  25470. <div class="example">
  25471. <pre class="example">loop=loop=-1:size=1:start=0
  25472. </pre></div>
  25473. </li><li>
  25474. Loop single first frame 10 times:
  25475. <div class="example">
  25476. <pre class="example">loop=loop=10:size=1:start=0
  25477. </pre></div>
  25478. </li><li>
  25479. Loop 10 first frames 5 times:
  25480. <div class="example">
  25481. <pre class="example">loop=loop=5:size=10:start=0
  25482. </pre></div>
  25483. </li></ul>
  25484. <a name="lut1d"></a>
  25485. <h2 class="section"><a href="ffprobe-all.html#toc-lut1d">32.116 lut1d</a></h2>
  25486. <p>Apply a 1D LUT to an input video.
  25487. </p>
  25488. <p>The filter accepts the following options:
  25489. </p>
  25490. <dl compact="compact">
  25491. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  25492. <dd><p>Set the 1D LUT file name.
  25493. </p>
  25494. <p>Currently supported formats:
  25495. </p><dl compact="compact">
  25496. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  25497. <dd><p>Iridas
  25498. </p></dd>
  25499. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  25500. <dd><p>cineSpace
  25501. </p></dd>
  25502. </dl>
  25503. </dd>
  25504. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  25505. <dd><p>Select interpolation mode.
  25506. </p>
  25507. <p>Available values are:
  25508. </p>
  25509. <dl compact="compact">
  25510. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25511. <dd><p>Use values from the nearest defined point.
  25512. </p></dd>
  25513. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  25514. <dd><p>Interpolate values using the linear interpolation.
  25515. </p></dd>
  25516. <dt>&lsquo;<samp>cosine</samp>&rsquo;</dt>
  25517. <dd><p>Interpolate values using the cosine interpolation.
  25518. </p></dd>
  25519. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  25520. <dd><p>Interpolate values using the cubic interpolation.
  25521. </p></dd>
  25522. <dt>&lsquo;<samp>spline</samp>&rsquo;</dt>
  25523. <dd><p>Interpolate values using the spline interpolation.
  25524. </p></dd>
  25525. </dl>
  25526. </dd>
  25527. </dl>
  25528. <p><a name="lut3d"></a>
  25529. </p><a name="lut3d-1"></a>
  25530. <h2 class="section"><a href="ffprobe-all.html#toc-lut3d-1">32.117 lut3d</a></h2>
  25531. <p>Apply a 3D LUT to an input video.
  25532. </p>
  25533. <p>The filter accepts the following options:
  25534. </p>
  25535. <dl compact="compact">
  25536. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  25537. <dd><p>Set the 3D LUT file name.
  25538. </p>
  25539. <p>Currently supported formats:
  25540. </p><dl compact="compact">
  25541. <dt>&lsquo;<samp>3dl</samp>&rsquo;</dt>
  25542. <dd><p>AfterEffects
  25543. </p></dd>
  25544. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  25545. <dd><p>Iridas
  25546. </p></dd>
  25547. <dt>&lsquo;<samp>dat</samp>&rsquo;</dt>
  25548. <dd><p>DaVinci
  25549. </p></dd>
  25550. <dt>&lsquo;<samp>m3d</samp>&rsquo;</dt>
  25551. <dd><p>Pandora
  25552. </p></dd>
  25553. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  25554. <dd><p>cineSpace
  25555. </p></dd>
  25556. </dl>
  25557. </dd>
  25558. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  25559. <dd><p>Select interpolation mode.
  25560. </p>
  25561. <p>Available values are:
  25562. </p>
  25563. <dl compact="compact">
  25564. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  25565. <dd><p>Use values from the nearest defined point.
  25566. </p></dd>
  25567. <dt>&lsquo;<samp>trilinear</samp>&rsquo;</dt>
  25568. <dd><p>Interpolate values using the 8 points defining a cube.
  25569. </p></dd>
  25570. <dt>&lsquo;<samp>tetrahedral</samp>&rsquo;</dt>
  25571. <dd><p>Interpolate values using a tetrahedron.
  25572. </p></dd>
  25573. </dl>
  25574. </dd>
  25575. </dl>
  25576. <a name="lumakey"></a>
  25577. <h2 class="section"><a href="ffprobe-all.html#toc-lumakey">32.118 lumakey</a></h2>
  25578. <p>Turn certain luma values into transparency.
  25579. </p>
  25580. <p>The filter accepts the following options:
  25581. </p>
  25582. <dl compact="compact">
  25583. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  25584. <dd><p>Set the luma which will be used as base for transparency.
  25585. Default value is <code>0</code>.
  25586. </p>
  25587. </dd>
  25588. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  25589. <dd><p>Set the range of luma values to be keyed out.
  25590. Default value is <code>0.01</code>.
  25591. </p>
  25592. </dd>
  25593. <dt>&lsquo;<samp>softness</samp>&rsquo;</dt>
  25594. <dd><p>Set the range of softness. Default value is <code>0</code>.
  25595. Use this to control gradual transition from zero to full transparency.
  25596. </p></dd>
  25597. </dl>
  25598. <a name="Commands-45"></a>
  25599. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-45">32.118.1 Commands</a></h3>
  25600. <p>This filter supports same <a href="#commands">commands</a> as options.
  25601. The command accepts the same syntax of the corresponding option.
  25602. </p>
  25603. <p>If the specified expression is not valid, it is kept at its current
  25604. value.
  25605. </p>
  25606. <a name="lut_002c-lutrgb_002c-lutyuv"></a>
  25607. <h2 class="section"><a href="ffprobe-all.html#toc-lut_002c-lutrgb_002c-lutyuv">32.119 lut, lutrgb, lutyuv</a></h2>
  25608. <p>Compute a look-up table for binding each pixel component input value
  25609. to an output value, and apply it to the input video.
  25610. </p>
  25611. <p><var>lutyuv</var> applies a lookup table to a YUV input video, <var>lutrgb</var>
  25612. to an RGB input video.
  25613. </p>
  25614. <p>These filters accept the following parameters:
  25615. </p><dl compact="compact">
  25616. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  25617. <dd><p>set first pixel component expression
  25618. </p></dd>
  25619. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  25620. <dd><p>set second pixel component expression
  25621. </p></dd>
  25622. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  25623. <dd><p>set third pixel component expression
  25624. </p></dd>
  25625. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  25626. <dd><p>set fourth pixel component expression, corresponds to the alpha component
  25627. </p>
  25628. </dd>
  25629. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  25630. <dd><p>set red component expression
  25631. </p></dd>
  25632. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  25633. <dd><p>set green component expression
  25634. </p></dd>
  25635. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  25636. <dd><p>set blue component expression
  25637. </p></dd>
  25638. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  25639. <dd><p>alpha component expression
  25640. </p>
  25641. </dd>
  25642. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  25643. <dd><p>set Y/luminance component expression
  25644. </p></dd>
  25645. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  25646. <dd><p>set U/Cb component expression
  25647. </p></dd>
  25648. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  25649. <dd><p>set V/Cr component expression
  25650. </p></dd>
  25651. </dl>
  25652. <p>Each of them specifies the expression to use for computing the lookup table for
  25653. the corresponding pixel component values.
  25654. </p>
  25655. <p>The exact component associated to each of the <var>c*</var> options depends on the
  25656. format in input.
  25657. </p>
  25658. <p>The <var>lut</var> filter requires either YUV or RGB pixel formats in input,
  25659. <var>lutrgb</var> requires RGB pixel formats in input, and <var>lutyuv</var> requires YUV.
  25660. </p>
  25661. <p>The expressions can contain the following constants and functions:
  25662. </p>
  25663. <dl compact="compact">
  25664. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  25665. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  25666. <dd><p>The input width and height.
  25667. </p>
  25668. </dd>
  25669. <dt>&lsquo;<samp>val</samp>&rsquo;</dt>
  25670. <dd><p>The input value for the pixel component.
  25671. </p>
  25672. </dd>
  25673. <dt>&lsquo;<samp>clipval</samp>&rsquo;</dt>
  25674. <dd><p>The input value, clipped to the <var>minval</var>-<var>maxval</var> range.
  25675. </p>
  25676. </dd>
  25677. <dt>&lsquo;<samp>maxval</samp>&rsquo;</dt>
  25678. <dd><p>The maximum value for the pixel component.
  25679. </p>
  25680. </dd>
  25681. <dt>&lsquo;<samp>minval</samp>&rsquo;</dt>
  25682. <dd><p>The minimum value for the pixel component.
  25683. </p>
  25684. </dd>
  25685. <dt>&lsquo;<samp>negval</samp>&rsquo;</dt>
  25686. <dd><p>The negated value for the pixel component value, clipped to the
  25687. <var>minval</var>-<var>maxval</var> range; it corresponds to the expression
  25688. &quot;maxval-clipval+minval&quot;.
  25689. </p>
  25690. </dd>
  25691. <dt>&lsquo;<samp>clip(val)</samp>&rsquo;</dt>
  25692. <dd><p>The computed value in <var>val</var>, clipped to the
  25693. <var>minval</var>-<var>maxval</var> range.
  25694. </p>
  25695. </dd>
  25696. <dt>&lsquo;<samp>gammaval(gamma)</samp>&rsquo;</dt>
  25697. <dd><p>The computed gamma correction value of the pixel component value,
  25698. clipped to the <var>minval</var>-<var>maxval</var> range. It corresponds to the
  25699. expression
  25700. &quot;pow((clipval-minval)/(maxval-minval)\,<var>gamma</var>)*(maxval-minval)+minval&quot;
  25701. </p>
  25702. </dd>
  25703. </dl>
  25704. <p>All expressions default to &quot;val&quot;.
  25705. </p>
  25706. <a name="Examples-55"></a>
  25707. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-55">32.119.1 Examples</a></h3>
  25708. <ul>
  25709. <li>
  25710. Negate input video:
  25711. <div class="example">
  25712. <pre class="example">lutrgb=&quot;r=maxval+minval-val:g=maxval+minval-val:b=maxval+minval-val&quot;
  25713. lutyuv=&quot;y=maxval+minval-val:u=maxval+minval-val:v=maxval+minval-val&quot;
  25714. </pre></div>
  25715. <p>The above is the same as:
  25716. </p><div class="example">
  25717. <pre class="example">lutrgb=&quot;r=negval:g=negval:b=negval&quot;
  25718. lutyuv=&quot;y=negval:u=negval:v=negval&quot;
  25719. </pre></div>
  25720. </li><li>
  25721. Negate luminance:
  25722. <div class="example">
  25723. <pre class="example">lutyuv=y=negval
  25724. </pre></div>
  25725. </li><li>
  25726. Remove chroma components, turning the video into a graytone image:
  25727. <div class="example">
  25728. <pre class="example">lutyuv=&quot;u=128:v=128&quot;
  25729. </pre></div>
  25730. </li><li>
  25731. Apply a luma burning effect:
  25732. <div class="example">
  25733. <pre class="example">lutyuv=&quot;y=2*val&quot;
  25734. </pre></div>
  25735. </li><li>
  25736. Remove green and blue components:
  25737. <div class="example">
  25738. <pre class="example">lutrgb=&quot;g=0:b=0&quot;
  25739. </pre></div>
  25740. </li><li>
  25741. Set a constant alpha channel value on input:
  25742. <div class="example">
  25743. <pre class="example">format=rgba,lutrgb=a=&quot;maxval-minval/2&quot;
  25744. </pre></div>
  25745. </li><li>
  25746. Correct luminance gamma by a factor of 0.5:
  25747. <div class="example">
  25748. <pre class="example">lutyuv=y=gammaval(0.5)
  25749. </pre></div>
  25750. </li><li>
  25751. Discard least significant bits of luma:
  25752. <div class="example">
  25753. <pre class="example">lutyuv=y='bitand(val, 128+64+32)'
  25754. </pre></div>
  25755. </li><li>
  25756. Technicolor like effect:
  25757. <div class="example">
  25758. <pre class="example">lutyuv=u='(val-maxval/2)*2+maxval/2':v='(val-maxval/2)*2+maxval/2'
  25759. </pre></div>
  25760. </li></ul>
  25761. <a name="lut2_002c-tlut2"></a>
  25762. <h2 class="section"><a href="ffprobe-all.html#toc-lut2_002c-tlut2">32.120 lut2, tlut2</a></h2>
  25763. <p>The <code>lut2</code> filter takes two input streams and outputs one
  25764. stream.
  25765. </p>
  25766. <p>The <code>tlut2</code> (time lut2) filter takes two consecutive frames
  25767. from one single stream.
  25768. </p>
  25769. <p>This filter accepts the following parameters:
  25770. </p><dl compact="compact">
  25771. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  25772. <dd><p>set first pixel component expression
  25773. </p></dd>
  25774. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  25775. <dd><p>set second pixel component expression
  25776. </p></dd>
  25777. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  25778. <dd><p>set third pixel component expression
  25779. </p></dd>
  25780. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  25781. <dd><p>set fourth pixel component expression, corresponds to the alpha component
  25782. </p>
  25783. </dd>
  25784. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  25785. <dd><p>set output bit depth, only available for <code>lut2</code> filter. By default is 0,
  25786. which means bit depth is automatically picked from first input format.
  25787. </p></dd>
  25788. </dl>
  25789. <p>The <code>lut2</code> filter also supports the <a href="#framesync">framesync</a> options.
  25790. </p>
  25791. <p>Each of them specifies the expression to use for computing the lookup table for
  25792. the corresponding pixel component values.
  25793. </p>
  25794. <p>The exact component associated to each of the <var>c*</var> options depends on the
  25795. format in inputs.
  25796. </p>
  25797. <p>The expressions can contain the following constants:
  25798. </p>
  25799. <dl compact="compact">
  25800. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  25801. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  25802. <dd><p>The input width and height.
  25803. </p>
  25804. </dd>
  25805. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  25806. <dd><p>The first input value for the pixel component.
  25807. </p>
  25808. </dd>
  25809. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  25810. <dd><p>The second input value for the pixel component.
  25811. </p>
  25812. </dd>
  25813. <dt>&lsquo;<samp>bdx</samp>&rsquo;</dt>
  25814. <dd><p>The first input video bit depth.
  25815. </p>
  25816. </dd>
  25817. <dt>&lsquo;<samp>bdy</samp>&rsquo;</dt>
  25818. <dd><p>The second input video bit depth.
  25819. </p></dd>
  25820. </dl>
  25821. <p>All expressions default to &quot;x&quot;.
  25822. </p>
  25823. <a name="Examples-164"></a>
  25824. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-164">32.120.1 Examples</a></h3>
  25825. <ul>
  25826. <li>
  25827. Highlight differences between two RGB video streams:
  25828. <div class="example">
  25829. <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)'
  25830. </pre></div>
  25831. </li><li>
  25832. Highlight differences between two YUV video streams:
  25833. <div class="example">
  25834. <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)'
  25835. </pre></div>
  25836. </li><li>
  25837. Show max difference between two video streams:
  25838. <div class="example">
  25839. <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)))'
  25840. </pre></div>
  25841. </li></ul>
  25842. <a name="maskedclamp"></a>
  25843. <h2 class="section"><a href="ffprobe-all.html#toc-maskedclamp">32.121 maskedclamp</a></h2>
  25844. <p>Clamp the first input stream with the second input and third input stream.
  25845. </p>
  25846. <p>Returns the value of first stream to be between second input
  25847. stream - <code>undershoot</code> and third input stream + <code>overshoot</code>.
  25848. </p>
  25849. <p>This filter accepts the following options:
  25850. </p><dl compact="compact">
  25851. <dt>&lsquo;<samp>undershoot</samp>&rsquo;</dt>
  25852. <dd><p>Default value is <code>0</code>.
  25853. </p>
  25854. </dd>
  25855. <dt>&lsquo;<samp>overshoot</samp>&rsquo;</dt>
  25856. <dd><p>Default value is <code>0</code>.
  25857. </p>
  25858. </dd>
  25859. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25860. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  25861. copied from first stream.
  25862. By default value 0xf, all planes will be processed.
  25863. </p></dd>
  25864. </dl>
  25865. <a name="maskedmax"></a>
  25866. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmax">32.122 maskedmax</a></h2>
  25867. <p>Merge the second and third input stream into output stream using absolute differences
  25868. between second input stream and first input stream and absolute difference between
  25869. third input stream and first input stream. The picked value will be from second input
  25870. stream if second absolute difference is greater than first one or from third input stream
  25871. otherwise.
  25872. </p>
  25873. <p>This filter accepts the following options:
  25874. </p><dl compact="compact">
  25875. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25876. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  25877. copied from first stream.
  25878. By default value 0xf, all planes will be processed.
  25879. </p></dd>
  25880. </dl>
  25881. <a name="maskedmerge"></a>
  25882. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmerge">32.123 maskedmerge</a></h2>
  25883. <p>Merge the first input stream with the second input stream using per pixel
  25884. weights in the third input stream.
  25885. </p>
  25886. <p>A value of 0 in the third stream pixel component means that pixel component
  25887. from first stream is returned unchanged, while maximum value (eg. 255 for
  25888. 8-bit videos) means that pixel component from second stream is returned
  25889. unchanged. Intermediate values define the amount of merging between both
  25890. input stream&rsquo;s pixel components.
  25891. </p>
  25892. <p>This filter accepts the following options:
  25893. </p><dl compact="compact">
  25894. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25895. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  25896. copied from first stream.
  25897. By default value 0xf, all planes will be processed.
  25898. </p></dd>
  25899. </dl>
  25900. <a name="maskedmin"></a>
  25901. <h2 class="section"><a href="ffprobe-all.html#toc-maskedmin">32.124 maskedmin</a></h2>
  25902. <p>Merge the second and third input stream into output stream using absolute differences
  25903. between second input stream and first input stream and absolute difference between
  25904. third input stream and first input stream. The picked value will be from second input
  25905. stream if second absolute difference is less than first one or from third input stream
  25906. otherwise.
  25907. </p>
  25908. <p>This filter accepts the following options:
  25909. </p><dl compact="compact">
  25910. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25911. <dd><p>Set which planes will be processed as bitmap, unprocessed planes will be
  25912. copied from first stream.
  25913. By default value 0xf, all planes will be processed.
  25914. </p></dd>
  25915. </dl>
  25916. <a name="maskfun"></a>
  25917. <h2 class="section"><a href="ffprobe-all.html#toc-maskfun">32.125 maskfun</a></h2>
  25918. <p>Create mask from input video.
  25919. </p>
  25920. <p>For example it is useful to create motion masks after <code>tblend</code> filter.
  25921. </p>
  25922. <p>This filter accepts the following options:
  25923. </p>
  25924. <dl compact="compact">
  25925. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  25926. <dd><p>Set low threshold. Any pixel component lower or exact than this value will be set to 0.
  25927. </p>
  25928. </dd>
  25929. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  25930. <dd><p>Set high threshold. Any pixel component higher than this value will be set to max value
  25931. allowed for current pixel format.
  25932. </p>
  25933. </dd>
  25934. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  25935. <dd><p>Set planes to filter, by default all available planes are filtered.
  25936. </p>
  25937. </dd>
  25938. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  25939. <dd><p>Fill all frame pixels with this value.
  25940. </p>
  25941. </dd>
  25942. <dt>&lsquo;<samp>sum</samp>&rsquo;</dt>
  25943. <dd><p>Set max average pixel value for frame. If sum of all pixel components is higher that this
  25944. average, output frame will be completely filled with value set by <var>fill</var> option.
  25945. Typically useful for scene changes when used in combination with <code>tblend</code> filter.
  25946. </p></dd>
  25947. </dl>
  25948. <a name="mcdeint"></a>
  25949. <h2 class="section"><a href="ffprobe-all.html#toc-mcdeint">32.126 mcdeint</a></h2>
  25950. <p>Apply motion-compensation deinterlacing.
  25951. </p>
  25952. <p>It needs one field per frame as input and must thus be used together
  25953. with yadif=1/3 or equivalent.
  25954. </p>
  25955. <p>This filter accepts the following options:
  25956. </p><dl compact="compact">
  25957. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  25958. <dd><p>Set the deinterlacing mode.
  25959. </p>
  25960. <p>It accepts one of the following values:
  25961. </p><dl compact="compact">
  25962. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  25963. <dt>&lsquo;<samp>medium</samp>&rsquo;</dt>
  25964. <dt>&lsquo;<samp>slow</samp>&rsquo;</dt>
  25965. <dd><p>use iterative motion estimation
  25966. </p></dd>
  25967. <dt>&lsquo;<samp>extra_slow</samp>&rsquo;</dt>
  25968. <dd><p>like &lsquo;<samp>slow</samp>&rsquo;, but use multiple reference frames.
  25969. </p></dd>
  25970. </dl>
  25971. <p>Default value is &lsquo;<samp>fast</samp>&rsquo;.
  25972. </p>
  25973. </dd>
  25974. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  25975. <dd><p>Set the picture field parity assumed for the input video. It must be
  25976. one of the following values:
  25977. </p>
  25978. <dl compact="compact">
  25979. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  25980. <dd><p>assume top field first
  25981. </p></dd>
  25982. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  25983. <dd><p>assume bottom field first
  25984. </p></dd>
  25985. </dl>
  25986. <p>Default value is &lsquo;<samp>bff</samp>&rsquo;.
  25987. </p>
  25988. </dd>
  25989. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  25990. <dd><p>Set per-block quantization parameter (QP) used by the internal
  25991. encoder.
  25992. </p>
  25993. <p>Higher values should result in a smoother motion vector field but less
  25994. optimal individual vectors. Default value is 1.
  25995. </p></dd>
  25996. </dl>
  25997. <a name="median"></a>
  25998. <h2 class="section"><a href="ffprobe-all.html#toc-median">32.127 median</a></h2>
  25999. <p>Pick median pixel from certain rectangle defined by radius.
  26000. </p>
  26001. <p>This filter accepts the following options:
  26002. </p>
  26003. <dl compact="compact">
  26004. <dt>&lsquo;<samp>radius</samp>&rsquo;</dt>
  26005. <dd><p>Set horizontal radius size. Default value is <code>1</code>.
  26006. Allowed range is integer from 1 to 127.
  26007. </p>
  26008. </dd>
  26009. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26010. <dd><p>Set which planes to process. Default is <code>15</code>, which is all available planes.
  26011. </p>
  26012. </dd>
  26013. <dt>&lsquo;<samp>radiusV</samp>&rsquo;</dt>
  26014. <dd><p>Set vertical radius size. Default value is <code>0</code>.
  26015. Allowed range is integer from 0 to 127.
  26016. If it is 0, value will be picked from horizontal <code>radius</code> option.
  26017. </p>
  26018. </dd>
  26019. <dt>&lsquo;<samp>percentile</samp>&rsquo;</dt>
  26020. <dd><p>Set median percentile. Default value is <code>0.5</code>.
  26021. Default value of <code>0.5</code> will pick always median values, while <code>0</code> will pick
  26022. minimum values, and <code>1</code> maximum values.
  26023. </p></dd>
  26024. </dl>
  26025. <a name="Commands-15"></a>
  26026. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-15">32.127.1 Commands</a></h3>
  26027. <p>This filter supports same <a href="#commands">commands</a> as options.
  26028. The command accepts the same syntax of the corresponding option.
  26029. </p>
  26030. <p>If the specified expression is not valid, it is kept at its current
  26031. value.
  26032. </p>
  26033. <a name="mergeplanes"></a>
  26034. <h2 class="section"><a href="ffprobe-all.html#toc-mergeplanes">32.128 mergeplanes</a></h2>
  26035. <p>Merge color channel components from several video streams.
  26036. </p>
  26037. <p>The filter accepts up to 4 input streams, and merge selected input
  26038. planes to the output video.
  26039. </p>
  26040. <p>This filter accepts the following options:
  26041. </p><dl compact="compact">
  26042. <dt>&lsquo;<samp>mapping</samp>&rsquo;</dt>
  26043. <dd><p>Set input to output plane mapping. Default is <code>0</code>.
  26044. </p>
  26045. <p>The mappings is specified as a bitmap. It should be specified as a
  26046. hexadecimal number in the form 0xAa[Bb[Cc[Dd]]]. &rsquo;Aa&rsquo; describes the
  26047. mapping for the first plane of the output stream. &rsquo;A&rsquo; sets the number of
  26048. the input stream to use (from 0 to 3), and &rsquo;a&rsquo; the plane number of the
  26049. corresponding input to use (from 0 to 3). The rest of the mappings is
  26050. similar, &rsquo;Bb&rsquo; describes the mapping for the output stream second
  26051. plane, &rsquo;Cc&rsquo; describes the mapping for the output stream third plane and
  26052. &rsquo;Dd&rsquo; describes the mapping for the output stream fourth plane.
  26053. </p>
  26054. </dd>
  26055. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  26056. <dd><p>Set output pixel format. Default is <code>yuva444p</code>.
  26057. </p></dd>
  26058. </dl>
  26059. <a name="Examples-100"></a>
  26060. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-100">32.128.1 Examples</a></h3>
  26061. <ul>
  26062. <li>
  26063. Merge three gray video streams of same width and height into single video stream:
  26064. <div class="example">
  26065. <pre class="example">[a0][a1][a2]mergeplanes=0x001020:yuv444p
  26066. </pre></div>
  26067. </li><li>
  26068. Merge 1st yuv444p stream and 2nd gray video stream into yuva444p video stream:
  26069. <div class="example">
  26070. <pre class="example">[a0][a1]mergeplanes=0x00010210:yuva444p
  26071. </pre></div>
  26072. </li><li>
  26073. Swap Y and A plane in yuva444p stream:
  26074. <div class="example">
  26075. <pre class="example">format=yuva444p,mergeplanes=0x03010200:yuva444p
  26076. </pre></div>
  26077. </li><li>
  26078. Swap U and V plane in yuv420p stream:
  26079. <div class="example">
  26080. <pre class="example">format=yuv420p,mergeplanes=0x000201:yuv420p
  26081. </pre></div>
  26082. </li><li>
  26083. Cast a rgb24 clip to yuv444p:
  26084. <div class="example">
  26085. <pre class="example">format=rgb24,mergeplanes=0x000102:yuv444p
  26086. </pre></div>
  26087. </li></ul>
  26088. <a name="mestimate"></a>
  26089. <h2 class="section"><a href="ffprobe-all.html#toc-mestimate">32.129 mestimate</a></h2>
  26090. <p>Estimate and export motion vectors using block matching algorithms.
  26091. Motion vectors are stored in frame side data to be used by other filters.
  26092. </p>
  26093. <p>This filter accepts the following options:
  26094. </p><dl compact="compact">
  26095. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  26096. <dd><p>Specify the motion estimation method. Accepts one of the following values:
  26097. </p>
  26098. <dl compact="compact">
  26099. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  26100. <dd><p>Exhaustive search algorithm.
  26101. </p></dd>
  26102. <dt>&lsquo;<samp>tss</samp>&rsquo;</dt>
  26103. <dd><p>Three step search algorithm.
  26104. </p></dd>
  26105. <dt>&lsquo;<samp>tdls</samp>&rsquo;</dt>
  26106. <dd><p>Two dimensional logarithmic search algorithm.
  26107. </p></dd>
  26108. <dt>&lsquo;<samp>ntss</samp>&rsquo;</dt>
  26109. <dd><p>New three step search algorithm.
  26110. </p></dd>
  26111. <dt>&lsquo;<samp>fss</samp>&rsquo;</dt>
  26112. <dd><p>Four step search algorithm.
  26113. </p></dd>
  26114. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  26115. <dd><p>Diamond search algorithm.
  26116. </p></dd>
  26117. <dt>&lsquo;<samp>hexbs</samp>&rsquo;</dt>
  26118. <dd><p>Hexagon-based search algorithm.
  26119. </p></dd>
  26120. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  26121. <dd><p>Enhanced predictive zonal search algorithm.
  26122. </p></dd>
  26123. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  26124. <dd><p>Uneven multi-hexagon search algorithm.
  26125. </p></dd>
  26126. </dl>
  26127. <p>Default value is &lsquo;<samp>esa</samp>&rsquo;.
  26128. </p>
  26129. </dd>
  26130. <dt>&lsquo;<samp>mb_size</samp>&rsquo;</dt>
  26131. <dd><p>Macroblock size. Default <code>16</code>.
  26132. </p>
  26133. </dd>
  26134. <dt>&lsquo;<samp>search_param</samp>&rsquo;</dt>
  26135. <dd><p>Search parameter. Default <code>7</code>.
  26136. </p></dd>
  26137. </dl>
  26138. <a name="midequalizer"></a>
  26139. <h2 class="section"><a href="ffprobe-all.html#toc-midequalizer">32.130 midequalizer</a></h2>
  26140. <p>Apply Midway Image Equalization effect using two video streams.
  26141. </p>
  26142. <p>Midway Image Equalization adjusts a pair of images to have the same
  26143. histogram, while maintaining their dynamics as much as possible. It&rsquo;s
  26144. useful for e.g. matching exposures from a pair of stereo cameras.
  26145. </p>
  26146. <p>This filter has two inputs and one output, which must be of same pixel format, but
  26147. may be of different sizes. The output of filter is first input adjusted with
  26148. midway histogram of both inputs.
  26149. </p>
  26150. <p>This filter accepts the following option:
  26151. </p>
  26152. <dl compact="compact">
  26153. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26154. <dd><p>Set which planes to process. Default is <code>15</code>, which is all available planes.
  26155. </p></dd>
  26156. </dl>
  26157. <a name="minterpolate"></a>
  26158. <h2 class="section"><a href="ffprobe-all.html#toc-minterpolate">32.131 minterpolate</a></h2>
  26159. <p>Convert the video to specified frame rate using motion interpolation.
  26160. </p>
  26161. <p>This filter accepts the following options:
  26162. </p><dl compact="compact">
  26163. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  26164. <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>.
  26165. </p>
  26166. </dd>
  26167. <dt>&lsquo;<samp>mi_mode</samp>&rsquo;</dt>
  26168. <dd><p>Motion interpolation mode. Following values are accepted:
  26169. </p><dl compact="compact">
  26170. <dt>&lsquo;<samp>dup</samp>&rsquo;</dt>
  26171. <dd><p>Duplicate previous or next frame for interpolating new ones.
  26172. </p></dd>
  26173. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  26174. <dd><p>Blend source frames. Interpolated frame is mean of previous and next frames.
  26175. </p></dd>
  26176. <dt>&lsquo;<samp>mci</samp>&rsquo;</dt>
  26177. <dd><p>Motion compensated interpolation. Following options are effective when this mode is selected:
  26178. </p>
  26179. <dl compact="compact">
  26180. <dt>&lsquo;<samp>mc_mode</samp>&rsquo;</dt>
  26181. <dd><p>Motion compensation mode. Following values are accepted:
  26182. </p><dl compact="compact">
  26183. <dt>&lsquo;<samp>obmc</samp>&rsquo;</dt>
  26184. <dd><p>Overlapped block motion compensation.
  26185. </p></dd>
  26186. <dt>&lsquo;<samp>aobmc</samp>&rsquo;</dt>
  26187. <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.
  26188. </p></dd>
  26189. </dl>
  26190. <p>Default mode is &lsquo;<samp>obmc</samp>&rsquo;.
  26191. </p>
  26192. </dd>
  26193. <dt>&lsquo;<samp>me_mode</samp>&rsquo;</dt>
  26194. <dd><p>Motion estimation mode. Following values are accepted:
  26195. </p><dl compact="compact">
  26196. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  26197. <dd><p>Bidirectional motion estimation. Motion vectors are estimated for each source frame in both forward and backward directions.
  26198. </p></dd>
  26199. <dt>&lsquo;<samp>bilat</samp>&rsquo;</dt>
  26200. <dd><p>Bilateral motion estimation. Motion vectors are estimated directly for interpolated frame.
  26201. </p></dd>
  26202. </dl>
  26203. <p>Default mode is &lsquo;<samp>bilat</samp>&rsquo;.
  26204. </p>
  26205. </dd>
  26206. <dt>&lsquo;<samp>me</samp>&rsquo;</dt>
  26207. <dd><p>The algorithm to be used for motion estimation. Following values are accepted:
  26208. </p><dl compact="compact">
  26209. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  26210. <dd><p>Exhaustive search algorithm.
  26211. </p></dd>
  26212. <dt>&lsquo;<samp>tss</samp>&rsquo;</dt>
  26213. <dd><p>Three step search algorithm.
  26214. </p></dd>
  26215. <dt>&lsquo;<samp>tdls</samp>&rsquo;</dt>
  26216. <dd><p>Two dimensional logarithmic search algorithm.
  26217. </p></dd>
  26218. <dt>&lsquo;<samp>ntss</samp>&rsquo;</dt>
  26219. <dd><p>New three step search algorithm.
  26220. </p></dd>
  26221. <dt>&lsquo;<samp>fss</samp>&rsquo;</dt>
  26222. <dd><p>Four step search algorithm.
  26223. </p></dd>
  26224. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  26225. <dd><p>Diamond search algorithm.
  26226. </p></dd>
  26227. <dt>&lsquo;<samp>hexbs</samp>&rsquo;</dt>
  26228. <dd><p>Hexagon-based search algorithm.
  26229. </p></dd>
  26230. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  26231. <dd><p>Enhanced predictive zonal search algorithm.
  26232. </p></dd>
  26233. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  26234. <dd><p>Uneven multi-hexagon search algorithm.
  26235. </p></dd>
  26236. </dl>
  26237. <p>Default algorithm is &lsquo;<samp>epzs</samp>&rsquo;.
  26238. </p>
  26239. </dd>
  26240. <dt>&lsquo;<samp>mb_size</samp>&rsquo;</dt>
  26241. <dd><p>Macroblock size. Default <code>16</code>.
  26242. </p>
  26243. </dd>
  26244. <dt>&lsquo;<samp>search_param</samp>&rsquo;</dt>
  26245. <dd><p>Motion estimation search parameter. Default <code>32</code>.
  26246. </p>
  26247. </dd>
  26248. <dt>&lsquo;<samp>vsbmc</samp>&rsquo;</dt>
  26249. <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).
  26250. </p></dd>
  26251. </dl>
  26252. </dd>
  26253. </dl>
  26254. </dd>
  26255. <dt>&lsquo;<samp>scd</samp>&rsquo;</dt>
  26256. <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:
  26257. </p><dl compact="compact">
  26258. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  26259. <dd><p>Disable scene change detection.
  26260. </p></dd>
  26261. <dt>&lsquo;<samp>fdiff</samp>&rsquo;</dt>
  26262. <dd><p>Frame difference. Corresponding pixel values are compared and if it satisfies <var>scd_threshold</var> scene change is detected.
  26263. </p></dd>
  26264. </dl>
  26265. <p>Default method is &lsquo;<samp>fdiff</samp>&rsquo;.
  26266. </p>
  26267. </dd>
  26268. <dt>&lsquo;<samp>scd_threshold</samp>&rsquo;</dt>
  26269. <dd><p>Scene change detection threshold. Default is <code>5.0</code>.
  26270. </p></dd>
  26271. </dl>
  26272. <a name="mix"></a>
  26273. <h2 class="section"><a href="ffprobe-all.html#toc-mix">32.132 mix</a></h2>
  26274. <p>Mix several video input streams into one video stream.
  26275. </p>
  26276. <p>A description of the accepted options follows.
  26277. </p>
  26278. <dl compact="compact">
  26279. <dt>&lsquo;<samp>nb_inputs</samp>&rsquo;</dt>
  26280. <dd><p>The number of inputs. If unspecified, it defaults to 2.
  26281. </p>
  26282. </dd>
  26283. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  26284. <dd><p>Specify weight of each input video stream as sequence.
  26285. Each weight is separated by space. If number of weights
  26286. is smaller than number of <var>frames</var> last specified
  26287. weight will be used for all remaining unset weights.
  26288. </p>
  26289. </dd>
  26290. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  26291. <dd><p>Specify scale, if it is set it will be multiplied with sum
  26292. of each weight multiplied with pixel values to give final destination
  26293. pixel value. By default <var>scale</var> is auto scaled to sum of weights.
  26294. </p>
  26295. </dd>
  26296. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  26297. <dd><p>Specify how end of stream is determined.
  26298. </p><dl compact="compact">
  26299. <dt>&lsquo;<samp>longest</samp>&rsquo;</dt>
  26300. <dd><p>The duration of the longest input. (default)
  26301. </p>
  26302. </dd>
  26303. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  26304. <dd><p>The duration of the shortest input.
  26305. </p>
  26306. </dd>
  26307. <dt>&lsquo;<samp>first</samp>&rsquo;</dt>
  26308. <dd><p>The duration of the first input.
  26309. </p></dd>
  26310. </dl>
  26311. </dd>
  26312. </dl>
  26313. <a name="mpdecimate"></a>
  26314. <h2 class="section"><a href="ffprobe-all.html#toc-mpdecimate">32.133 mpdecimate</a></h2>
  26315. <p>Drop frames that do not differ greatly from the previous frame in
  26316. order to reduce frame rate.
  26317. </p>
  26318. <p>The main use of this filter is for very-low-bitrate encoding
  26319. (e.g. streaming over dialup modem), but it could in theory be used for
  26320. fixing movies that were inverse-telecined incorrectly.
  26321. </p>
  26322. <p>A description of the accepted options follows.
  26323. </p>
  26324. <dl compact="compact">
  26325. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  26326. <dd><p>Set the maximum number of consecutive frames which can be dropped (if
  26327. positive), or the minimum interval between dropped frames (if
  26328. negative). If the value is 0, the frame is dropped disregarding the
  26329. number of previous sequentially dropped frames.
  26330. </p>
  26331. <p>Default value is 0.
  26332. </p>
  26333. </dd>
  26334. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  26335. <dt>&lsquo;<samp>lo</samp>&rsquo;</dt>
  26336. <dt>&lsquo;<samp>frac</samp>&rsquo;</dt>
  26337. <dd><p>Set the dropping threshold values.
  26338. </p>
  26339. <p>Values for &lsquo;<samp>hi</samp>&rsquo; and &lsquo;<samp>lo</samp>&rsquo; are for 8x8 pixel blocks and
  26340. represent actual pixel value differences, so a threshold of 64
  26341. corresponds to 1 unit of difference for each pixel, or the same spread
  26342. out differently over the block.
  26343. </p>
  26344. <p>A frame is a candidate for dropping if no 8x8 blocks differ by more
  26345. than a threshold of &lsquo;<samp>hi</samp>&rsquo;, and if no more than &lsquo;<samp>frac</samp>&rsquo; blocks (1
  26346. meaning the whole image) differ by more than a threshold of &lsquo;<samp>lo</samp>&rsquo;.
  26347. </p>
  26348. <p>Default value for &lsquo;<samp>hi</samp>&rsquo; is 64*12, default value for &lsquo;<samp>lo</samp>&rsquo; is
  26349. 64*5, and default value for &lsquo;<samp>frac</samp>&rsquo; is 0.33.
  26350. </p></dd>
  26351. </dl>
  26352. <a name="negate"></a>
  26353. <h2 class="section"><a href="ffprobe-all.html#toc-negate">32.134 negate</a></h2>
  26354. <p>Negate (invert) the input video.
  26355. </p>
  26356. <p>It accepts the following option:
  26357. </p>
  26358. <dl compact="compact">
  26359. <dt>&lsquo;<samp>negate_alpha</samp>&rsquo;</dt>
  26360. <dd><p>With value 1, it negates the alpha component, if present. Default value is 0.
  26361. </p></dd>
  26362. </dl>
  26363. <p><a name="nlmeans"></a>
  26364. </p><a name="nlmeans-1"></a>
  26365. <h2 class="section"><a href="ffprobe-all.html#toc-nlmeans-1">32.135 nlmeans</a></h2>
  26366. <p>Denoise frames using Non-Local Means algorithm.
  26367. </p>
  26368. <p>Each pixel is adjusted by looking for other pixels with similar contexts. This
  26369. context similarity is defined by comparing their surrounding patches of size
  26370. &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;
  26371. around the pixel.
  26372. </p>
  26373. <p>Note that the research area defines centers for patches, which means some
  26374. patches will be made of pixels outside that research area.
  26375. </p>
  26376. <p>The filter accepts the following options.
  26377. </p>
  26378. <dl compact="compact">
  26379. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  26380. <dd><p>Set denoising strength. Default is 1.0. Must be in range [1.0, 30.0].
  26381. </p>
  26382. </dd>
  26383. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  26384. <dd><p>Set patch size. Default is 7. Must be odd number in range [0, 99].
  26385. </p>
  26386. </dd>
  26387. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  26388. <dd><p>Same as &lsquo;<samp>p</samp>&rsquo; but for chroma planes.
  26389. </p>
  26390. <p>The default value is <var>0</var> and means automatic.
  26391. </p>
  26392. </dd>
  26393. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  26394. <dd><p>Set research size. Default is 15. Must be odd number in range [0, 99].
  26395. </p>
  26396. </dd>
  26397. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  26398. <dd><p>Same as &lsquo;<samp>r</samp>&rsquo; but for chroma planes.
  26399. </p>
  26400. <p>The default value is <var>0</var> and means automatic.
  26401. </p></dd>
  26402. </dl>
  26403. <a name="nnedi"></a>
  26404. <h2 class="section"><a href="ffprobe-all.html#toc-nnedi">32.136 nnedi</a></h2>
  26405. <p>Deinterlace video using neural network edge directed interpolation.
  26406. </p>
  26407. <p>This filter accepts the following options:
  26408. </p>
  26409. <dl compact="compact">
  26410. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  26411. <dd><p>Mandatory option, without binary file filter can not work.
  26412. Currently file can be found here:
  26413. https://github.com/dubhater/vapoursynth-nnedi3/blob/master/src/nnedi3_weights.bin
  26414. </p>
  26415. </dd>
  26416. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  26417. <dd><p>Set which frames to deinterlace, by default it is <code>all</code>.
  26418. Can be <code>all</code> or <code>interlaced</code>.
  26419. </p>
  26420. </dd>
  26421. <dt>&lsquo;<samp>field</samp>&rsquo;</dt>
  26422. <dd><p>Set mode of operation.
  26423. </p>
  26424. <p>Can be one of the following:
  26425. </p>
  26426. <dl compact="compact">
  26427. <dt>&lsquo;<samp>af</samp>&rsquo;</dt>
  26428. <dd><p>Use frame flags, both fields.
  26429. </p></dd>
  26430. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26431. <dd><p>Use frame flags, single field.
  26432. </p></dd>
  26433. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  26434. <dd><p>Use top field only.
  26435. </p></dd>
  26436. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  26437. <dd><p>Use bottom field only.
  26438. </p></dd>
  26439. <dt>&lsquo;<samp>tf</samp>&rsquo;</dt>
  26440. <dd><p>Use both fields, top first.
  26441. </p></dd>
  26442. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  26443. <dd><p>Use both fields, bottom first.
  26444. </p></dd>
  26445. </dl>
  26446. </dd>
  26447. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  26448. <dd><p>Set which planes to process, by default filter process all frames.
  26449. </p>
  26450. </dd>
  26451. <dt>&lsquo;<samp>nsize</samp>&rsquo;</dt>
  26452. <dd><p>Set size of local neighborhood around each pixel, used by the predictor neural
  26453. network.
  26454. </p>
  26455. <p>Can be one of the following:
  26456. </p>
  26457. <dl compact="compact">
  26458. <dt>&lsquo;<samp>s8x6</samp>&rsquo;</dt>
  26459. <dt>&lsquo;<samp>s16x6</samp>&rsquo;</dt>
  26460. <dt>&lsquo;<samp>s32x6</samp>&rsquo;</dt>
  26461. <dt>&lsquo;<samp>s48x6</samp>&rsquo;</dt>
  26462. <dt>&lsquo;<samp>s8x4</samp>&rsquo;</dt>
  26463. <dt>&lsquo;<samp>s16x4</samp>&rsquo;</dt>
  26464. <dt>&lsquo;<samp>s32x4</samp>&rsquo;</dt>
  26465. </dl>
  26466. </dd>
  26467. <dt>&lsquo;<samp>nns</samp>&rsquo;</dt>
  26468. <dd><p>Set the number of neurons in predictor neural network.
  26469. Can be one of the following:
  26470. </p>
  26471. <dl compact="compact">
  26472. <dt>&lsquo;<samp>n16</samp>&rsquo;</dt>
  26473. <dt>&lsquo;<samp>n32</samp>&rsquo;</dt>
  26474. <dt>&lsquo;<samp>n64</samp>&rsquo;</dt>
  26475. <dt>&lsquo;<samp>n128</samp>&rsquo;</dt>
  26476. <dt>&lsquo;<samp>n256</samp>&rsquo;</dt>
  26477. </dl>
  26478. </dd>
  26479. <dt>&lsquo;<samp>qual</samp>&rsquo;</dt>
  26480. <dd><p>Controls the number of different neural network predictions that are blended
  26481. together to compute the final output value. Can be <code>fast</code>, default or
  26482. <code>slow</code>.
  26483. </p>
  26484. </dd>
  26485. <dt>&lsquo;<samp>etype</samp>&rsquo;</dt>
  26486. <dd><p>Set which set of weights to use in the predictor.
  26487. Can be one of the following:
  26488. </p>
  26489. <dl compact="compact">
  26490. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26491. <dd><p>weights trained to minimize absolute error
  26492. </p></dd>
  26493. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  26494. <dd><p>weights trained to minimize squared error
  26495. </p></dd>
  26496. </dl>
  26497. </dd>
  26498. <dt>&lsquo;<samp>pscrn</samp>&rsquo;</dt>
  26499. <dd><p>Controls whether or not the prescreener neural network is used to decide
  26500. which pixels should be processed by the predictor neural network and which
  26501. can be handled by simple cubic interpolation.
  26502. The prescreener is trained to know whether cubic interpolation will be
  26503. sufficient for a pixel or whether it should be predicted by the predictor nn.
  26504. The computational complexity of the prescreener nn is much less than that of
  26505. the predictor nn. Since most pixels can be handled by cubic interpolation,
  26506. using the prescreener generally results in much faster processing.
  26507. The prescreener is pretty accurate, so the difference between using it and not
  26508. using it is almost always unnoticeable.
  26509. </p>
  26510. <p>Can be one of the following:
  26511. </p>
  26512. <dl compact="compact">
  26513. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  26514. <dt>&lsquo;<samp>original</samp>&rsquo;</dt>
  26515. <dt>&lsquo;<samp>new</samp>&rsquo;</dt>
  26516. </dl>
  26517. <p>Default is <code>new</code>.
  26518. </p>
  26519. </dd>
  26520. <dt>&lsquo;<samp>fapprox</samp>&rsquo;</dt>
  26521. <dd><p>Set various debugging flags.
  26522. </p></dd>
  26523. </dl>
  26524. <a name="noformat"></a>
  26525. <h2 class="section"><a href="ffprobe-all.html#toc-noformat">32.137 noformat</a></h2>
  26526. <p>Force libavfilter not to use any of the specified pixel formats for the
  26527. input to the next filter.
  26528. </p>
  26529. <p>It accepts the following parameters:
  26530. </p><dl compact="compact">
  26531. <dt>&lsquo;<samp>pix_fmts</samp>&rsquo;</dt>
  26532. <dd><p>A &rsquo;|&rsquo;-separated list of pixel format names, such as
  26533. pix_fmts=yuv420p|monow|rgb24&quot;.
  26534. </p>
  26535. </dd>
  26536. </dl>
  26537. <a name="Examples-13"></a>
  26538. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-13">32.137.1 Examples</a></h3>
  26539. <ul>
  26540. <li>
  26541. Force libavfilter to use a format different from <var>yuv420p</var> for the
  26542. input to the vflip filter:
  26543. <div class="example">
  26544. <pre class="example">noformat=pix_fmts=yuv420p,vflip
  26545. </pre></div>
  26546. </li><li>
  26547. Convert the input video to any of the formats not contained in the list:
  26548. <div class="example">
  26549. <pre class="example">noformat=yuv420p|yuv444p|yuv410p
  26550. </pre></div>
  26551. </li></ul>
  26552. <a name="noise-1"></a>
  26553. <h2 class="section"><a href="ffprobe-all.html#toc-noise-1">32.138 noise</a></h2>
  26554. <p>Add noise on video input frame.
  26555. </p>
  26556. <p>The filter accepts the following options:
  26557. </p>
  26558. <dl compact="compact">
  26559. <dt>&lsquo;<samp>all_seed</samp>&rsquo;</dt>
  26560. <dt>&lsquo;<samp>c0_seed</samp>&rsquo;</dt>
  26561. <dt>&lsquo;<samp>c1_seed</samp>&rsquo;</dt>
  26562. <dt>&lsquo;<samp>c2_seed</samp>&rsquo;</dt>
  26563. <dt>&lsquo;<samp>c3_seed</samp>&rsquo;</dt>
  26564. <dd><p>Set noise seed for specific pixel component or all pixel components in case
  26565. of <var>all_seed</var>. Default value is <code>123457</code>.
  26566. </p>
  26567. </dd>
  26568. <dt>&lsquo;<samp>all_strength, alls</samp>&rsquo;</dt>
  26569. <dt>&lsquo;<samp>c0_strength, c0s</samp>&rsquo;</dt>
  26570. <dt>&lsquo;<samp>c1_strength, c1s</samp>&rsquo;</dt>
  26571. <dt>&lsquo;<samp>c2_strength, c2s</samp>&rsquo;</dt>
  26572. <dt>&lsquo;<samp>c3_strength, c3s</samp>&rsquo;</dt>
  26573. <dd><p>Set noise strength for specific pixel component or all pixel components in case
  26574. <var>all_strength</var>. Default value is <code>0</code>. Allowed range is [0, 100].
  26575. </p>
  26576. </dd>
  26577. <dt>&lsquo;<samp>all_flags, allf</samp>&rsquo;</dt>
  26578. <dt>&lsquo;<samp>c0_flags, c0f</samp>&rsquo;</dt>
  26579. <dt>&lsquo;<samp>c1_flags, c1f</samp>&rsquo;</dt>
  26580. <dt>&lsquo;<samp>c2_flags, c2f</samp>&rsquo;</dt>
  26581. <dt>&lsquo;<samp>c3_flags, c3f</samp>&rsquo;</dt>
  26582. <dd><p>Set pixel component flags or set flags for all components if <var>all_flags</var>.
  26583. Available values for component flags are:
  26584. </p><dl compact="compact">
  26585. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  26586. <dd><p>averaged temporal noise (smoother)
  26587. </p></dd>
  26588. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  26589. <dd><p>mix random noise with a (semi)regular pattern
  26590. </p></dd>
  26591. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  26592. <dd><p>temporal noise (noise pattern changes between frames)
  26593. </p></dd>
  26594. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  26595. <dd><p>uniform noise (gaussian otherwise)
  26596. </p></dd>
  26597. </dl>
  26598. </dd>
  26599. </dl>
  26600. <a name="Examples-5"></a>
  26601. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-5">32.138.1 Examples</a></h3>
  26602. <p>Add temporal and uniform noise to input video:
  26603. </p><div class="example">
  26604. <pre class="example">noise=alls=20:allf=t+u
  26605. </pre></div>
  26606. <a name="normalize"></a>
  26607. <h2 class="section"><a href="ffprobe-all.html#toc-normalize">32.139 normalize</a></h2>
  26608. <p>Normalize RGB video (aka histogram stretching, contrast stretching).
  26609. See: https://en.wikipedia.org/wiki/Normalization_(image_processing)
  26610. </p>
  26611. <p>For each channel of each frame, the filter computes the input range and maps
  26612. it linearly to the user-specified output range. The output range defaults
  26613. to the full dynamic range from pure black to pure white.
  26614. </p>
  26615. <p>Temporal smoothing can be used on the input range to reduce flickering (rapid
  26616. changes in brightness) caused when small dark or bright objects enter or leave
  26617. the scene. This is similar to the auto-exposure (automatic gain control) on a
  26618. video camera, and, like a video camera, it may cause a period of over- or
  26619. under-exposure of the video.
  26620. </p>
  26621. <p>The R,G,B channels can be normalized independently, which may cause some
  26622. color shifting, or linked together as a single channel, which prevents
  26623. color shifting. Linked normalization preserves hue. Independent normalization
  26624. does not, so it can be used to remove some color casts. Independent and linked
  26625. normalization can be combined in any ratio.
  26626. </p>
  26627. <p>The normalize filter accepts the following options:
  26628. </p>
  26629. <dl compact="compact">
  26630. <dt>&lsquo;<samp>blackpt</samp>&rsquo;</dt>
  26631. <dt>&lsquo;<samp>whitept</samp>&rsquo;</dt>
  26632. <dd><p>Colors which define the output range. The minimum input value is mapped to
  26633. the <var>blackpt</var>. The maximum input value is mapped to the <var>whitept</var>.
  26634. The defaults are black and white respectively. Specifying white for
  26635. <var>blackpt</var> and black for <var>whitept</var> will give color-inverted,
  26636. normalized video. Shades of grey can be used to reduce the dynamic range
  26637. (contrast). Specifying saturated colors here can create some interesting
  26638. effects.
  26639. </p>
  26640. </dd>
  26641. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  26642. <dd><p>The number of previous frames to use for temporal smoothing. The input range
  26643. of each channel is smoothed using a rolling average over the current frame
  26644. and the <var>smoothing</var> previous frames. The default is 0 (no temporal
  26645. smoothing).
  26646. </p>
  26647. </dd>
  26648. <dt>&lsquo;<samp>independence</samp>&rsquo;</dt>
  26649. <dd><p>Controls the ratio of independent (color shifting) channel normalization to
  26650. linked (color preserving) normalization. 0.0 is fully linked, 1.0 is fully
  26651. independent. Defaults to 1.0 (fully independent).
  26652. </p>
  26653. </dd>
  26654. <dt>&lsquo;<samp>strength</samp>&rsquo;</dt>
  26655. <dd><p>Overall strength of the filter. 1.0 is full strength. 0.0 is a rather
  26656. expensive no-op. Defaults to 1.0 (full strength).
  26657. </p>
  26658. </dd>
  26659. </dl>
  26660. <a name="Commands-25"></a>
  26661. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-25">32.139.1 Commands</a></h3>
  26662. <p>This filter supports same <a href="#commands">commands</a> as options, excluding <var>smoothing</var> option.
  26663. The command accepts the same syntax of the corresponding option.
  26664. </p>
  26665. <p>If the specified expression is not valid, it is kept at its current
  26666. value.
  26667. </p>
  26668. <a name="Examples-98"></a>
  26669. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-98">32.139.2 Examples</a></h3>
  26670. <p>Stretch video contrast to use the full dynamic range, with no temporal
  26671. smoothing; may flicker depending on the source content:
  26672. </p><div class="example">
  26673. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=0
  26674. </pre></div>
  26675. <p>As above, but with 50 frames of temporal smoothing; flicker should be
  26676. reduced, depending on the source content:
  26677. </p><div class="example">
  26678. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50
  26679. </pre></div>
  26680. <p>As above, but with hue-preserving linked channel normalization:
  26681. </p><div class="example">
  26682. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50:independence=0
  26683. </pre></div>
  26684. <p>As above, but with half strength:
  26685. </p><div class="example">
  26686. <pre class="example">normalize=blackpt=black:whitept=white:smoothing=50:independence=0:strength=0.5
  26687. </pre></div>
  26688. <p>Map the darkest input color to red, the brightest input color to cyan:
  26689. </p><div class="example">
  26690. <pre class="example">normalize=blackpt=red:whitept=cyan
  26691. </pre></div>
  26692. <a name="null-1"></a>
  26693. <h2 class="section"><a href="ffprobe-all.html#toc-null-1">32.140 null</a></h2>
  26694. <p>Pass the video source unchanged to the output.
  26695. </p>
  26696. <a name="ocr"></a>
  26697. <h2 class="section"><a href="ffprobe-all.html#toc-ocr">32.141 ocr</a></h2>
  26698. <p>Optical Character Recognition
  26699. </p>
  26700. <p>This filter uses Tesseract for optical character recognition. To enable
  26701. compilation of this filter, you need to configure FFmpeg with
  26702. <code>--enable-libtesseract</code>.
  26703. </p>
  26704. <p>It accepts the following options:
  26705. </p>
  26706. <dl compact="compact">
  26707. <dt>&lsquo;<samp>datapath</samp>&rsquo;</dt>
  26708. <dd><p>Set datapath to tesseract data. Default is to use whatever was
  26709. set at installation.
  26710. </p>
  26711. </dd>
  26712. <dt>&lsquo;<samp>language</samp>&rsquo;</dt>
  26713. <dd><p>Set language, default is &quot;eng&quot;.
  26714. </p>
  26715. </dd>
  26716. <dt>&lsquo;<samp>whitelist</samp>&rsquo;</dt>
  26717. <dd><p>Set character whitelist.
  26718. </p>
  26719. </dd>
  26720. <dt>&lsquo;<samp>blacklist</samp>&rsquo;</dt>
  26721. <dd><p>Set character blacklist.
  26722. </p></dd>
  26723. </dl>
  26724. <p>The filter exports recognized text as the frame metadata <code>lavfi.ocr.text</code>.
  26725. The filter exports confidence of recognized words as the frame metadata <code>lavfi.ocr.confidence</code>.
  26726. </p>
  26727. <a name="ocv"></a>
  26728. <h2 class="section"><a href="ffprobe-all.html#toc-ocv">32.142 ocv</a></h2>
  26729. <p>Apply a video transform using libopencv.
  26730. </p>
  26731. <p>To enable this filter, install the libopencv library and headers and
  26732. configure FFmpeg with <code>--enable-libopencv</code>.
  26733. </p>
  26734. <p>It accepts the following parameters:
  26735. </p>
  26736. <dl compact="compact">
  26737. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  26738. <dd><p>The name of the libopencv filter to apply.
  26739. </p>
  26740. </dd>
  26741. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  26742. <dd><p>The parameters to pass to the libopencv filter. If not specified, the default
  26743. values are assumed.
  26744. </p>
  26745. </dd>
  26746. </dl>
  26747. <p>Refer to the official libopencv documentation for more precise
  26748. information:
  26749. <a href="http://docs.opencv.org/master/modules/imgproc/doc/filtering.html">http://docs.opencv.org/master/modules/imgproc/doc/filtering.html</a>
  26750. </p>
  26751. <p>Several libopencv filters are supported; see the following subsections.
  26752. </p>
  26753. <p><a name="dilate"></a>
  26754. </p><a name="dilate-1"></a>
  26755. <h3 class="subsection"><a href="ffprobe-all.html#toc-dilate-1">32.142.1 dilate</a></h3>
  26756. <p>Dilate an image by using a specific structuring element.
  26757. It corresponds to the libopencv function <code>cvDilate</code>.
  26758. </p>
  26759. <p>It accepts the parameters: <var>struct_el</var>|<var>nb_iterations</var>.
  26760. </p>
  26761. <p><var>struct_el</var> represents a structuring element, and has the syntax:
  26762. <var>cols</var>x<var>rows</var>+<var>anchor_x</var>x<var>anchor_y</var>/<var>shape</var>
  26763. </p>
  26764. <p><var>cols</var> and <var>rows</var> represent the number of columns and rows of
  26765. the structuring element, <var>anchor_x</var> and <var>anchor_y</var> the anchor
  26766. point, and <var>shape</var> the shape for the structuring element. <var>shape</var>
  26767. must be &quot;rect&quot;, &quot;cross&quot;, &quot;ellipse&quot;, or &quot;custom&quot;.
  26768. </p>
  26769. <p>If the value for <var>shape</var> is &quot;custom&quot;, it must be followed by a
  26770. string of the form &quot;=<var>filename</var>&quot;. The file with name
  26771. <var>filename</var> is assumed to represent a binary image, with each
  26772. printable character corresponding to a bright pixel. When a custom
  26773. <var>shape</var> is used, <var>cols</var> and <var>rows</var> are ignored, the number
  26774. or columns and rows of the read file are assumed instead.
  26775. </p>
  26776. <p>The default value for <var>struct_el</var> is &quot;3x3+0x0/rect&quot;.
  26777. </p>
  26778. <p><var>nb_iterations</var> specifies the number of times the transform is
  26779. applied to the image, and defaults to 1.
  26780. </p>
  26781. <p>Some examples:
  26782. </p><div class="example">
  26783. <pre class="example"># Use the default values
  26784. ocv=dilate
  26785. # Dilate using a structuring element with a 5x5 cross, iterating two times
  26786. ocv=filter_name=dilate:filter_params=5x5+2x2/cross|2
  26787. # Read the shape from the file diamond.shape, iterating two times.
  26788. # The file diamond.shape may contain a pattern of characters like this
  26789. # *
  26790. # ***
  26791. # *****
  26792. # ***
  26793. # *
  26794. # The specified columns and rows are ignored
  26795. # but the anchor point coordinates are not
  26796. ocv=dilate:0x0+2x2/custom=diamond.shape|2
  26797. </pre></div>
  26798. <a name="erode"></a>
  26799. <h3 class="subsection"><a href="ffprobe-all.html#toc-erode">32.142.2 erode</a></h3>
  26800. <p>Erode an image by using a specific structuring element.
  26801. It corresponds to the libopencv function <code>cvErode</code>.
  26802. </p>
  26803. <p>It accepts the parameters: <var>struct_el</var>:<var>nb_iterations</var>,
  26804. with the same syntax and semantics as the <a href="#dilate">dilate</a> filter.
  26805. </p>
  26806. <a name="smooth"></a>
  26807. <h3 class="subsection"><a href="ffprobe-all.html#toc-smooth">32.142.3 smooth</a></h3>
  26808. <p>Smooth the input video.
  26809. </p>
  26810. <p>The filter takes the following parameters:
  26811. <var>type</var>|<var>param1</var>|<var>param2</var>|<var>param3</var>|<var>param4</var>.
  26812. </p>
  26813. <p><var>type</var> is the type of smooth filter to apply, and must be one of
  26814. the following values: &quot;blur&quot;, &quot;blur_no_scale&quot;, &quot;median&quot;, &quot;gaussian&quot;,
  26815. or &quot;bilateral&quot;. The default value is &quot;gaussian&quot;.
  26816. </p>
  26817. <p>The meaning of <var>param1</var>, <var>param2</var>, <var>param3</var>, and <var>param4</var>
  26818. depends on the smooth type. <var>param1</var> and
  26819. <var>param2</var> accept integer positive values or 0. <var>param3</var> and
  26820. <var>param4</var> accept floating point values.
  26821. </p>
  26822. <p>The default value for <var>param1</var> is 3. The default value for the
  26823. other parameters is 0.
  26824. </p>
  26825. <p>These parameters correspond to the parameters assigned to the
  26826. libopencv function <code>cvSmooth</code>.
  26827. </p>
  26828. <a name="oscilloscope"></a>
  26829. <h2 class="section"><a href="ffprobe-all.html#toc-oscilloscope">32.143 oscilloscope</a></h2>
  26830. <p>2D Video Oscilloscope.
  26831. </p>
  26832. <p>Useful to measure spatial impulse, step responses, chroma delays, etc.
  26833. </p>
  26834. <p>It accepts the following parameters:
  26835. </p>
  26836. <dl compact="compact">
  26837. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  26838. <dd><p>Set scope center x position.
  26839. </p>
  26840. </dd>
  26841. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  26842. <dd><p>Set scope center y position.
  26843. </p>
  26844. </dd>
  26845. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  26846. <dd><p>Set scope size, relative to frame diagonal.
  26847. </p>
  26848. </dd>
  26849. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  26850. <dd><p>Set scope tilt/rotation.
  26851. </p>
  26852. </dd>
  26853. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  26854. <dd><p>Set trace opacity.
  26855. </p>
  26856. </dd>
  26857. <dt>&lsquo;<samp>tx</samp>&rsquo;</dt>
  26858. <dd><p>Set trace center x position.
  26859. </p>
  26860. </dd>
  26861. <dt>&lsquo;<samp>ty</samp>&rsquo;</dt>
  26862. <dd><p>Set trace center y position.
  26863. </p>
  26864. </dd>
  26865. <dt>&lsquo;<samp>tw</samp>&rsquo;</dt>
  26866. <dd><p>Set trace width, relative to width of frame.
  26867. </p>
  26868. </dd>
  26869. <dt>&lsquo;<samp>th</samp>&rsquo;</dt>
  26870. <dd><p>Set trace height, relative to height of frame.
  26871. </p>
  26872. </dd>
  26873. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  26874. <dd><p>Set which components to trace. By default it traces first three components.
  26875. </p>
  26876. </dd>
  26877. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  26878. <dd><p>Draw trace grid. By default is enabled.
  26879. </p>
  26880. </dd>
  26881. <dt>&lsquo;<samp>st</samp>&rsquo;</dt>
  26882. <dd><p>Draw some statistics. By default is enabled.
  26883. </p>
  26884. </dd>
  26885. <dt>&lsquo;<samp>sc</samp>&rsquo;</dt>
  26886. <dd><p>Draw scope. By default is enabled.
  26887. </p></dd>
  26888. </dl>
  26889. <a name="Commands-53"></a>
  26890. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-53">32.143.1 Commands</a></h3>
  26891. <p>This filter supports same <a href="#commands">commands</a> as options.
  26892. The command accepts the same syntax of the corresponding option.
  26893. </p>
  26894. <p>If the specified expression is not valid, it is kept at its current
  26895. value.
  26896. </p>
  26897. <a name="Examples-2"></a>
  26898. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-2">32.143.2 Examples</a></h3>
  26899. <ul>
  26900. <li>
  26901. Inspect full first row of video frame.
  26902. <div class="example">
  26903. <pre class="example">oscilloscope=x=0.5:y=0:s=1
  26904. </pre></div>
  26905. </li><li>
  26906. Inspect full last row of video frame.
  26907. <div class="example">
  26908. <pre class="example">oscilloscope=x=0.5:y=1:s=1
  26909. </pre></div>
  26910. </li><li>
  26911. Inspect full 5th line of video frame of height 1080.
  26912. <div class="example">
  26913. <pre class="example">oscilloscope=x=0.5:y=5/1080:s=1
  26914. </pre></div>
  26915. </li><li>
  26916. Inspect full last column of video frame.
  26917. <div class="example">
  26918. <pre class="example">oscilloscope=x=1:y=0.5:s=1:t=1
  26919. </pre></div>
  26920. </li></ul>
  26921. <p><a name="overlay"></a>
  26922. </p><a name="overlay-1"></a>
  26923. <h2 class="section"><a href="ffprobe-all.html#toc-overlay-1">32.144 overlay</a></h2>
  26924. <p>Overlay one video on top of another.
  26925. </p>
  26926. <p>It takes two inputs and has one output. The first input is the &quot;main&quot;
  26927. video on which the second input is overlaid.
  26928. </p>
  26929. <p>It accepts the following parameters:
  26930. </p>
  26931. <p>A description of the accepted options follows.
  26932. </p>
  26933. <dl compact="compact">
  26934. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  26935. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  26936. <dd><p>Set the expression for the x and y coordinates of the overlaid video
  26937. on the main video. Default value is &quot;0&quot; for both expressions. In case
  26938. the expression is invalid, it is set to a huge value (meaning that the
  26939. overlay will not be displayed within the output visible area).
  26940. </p>
  26941. </dd>
  26942. <dt>&lsquo;<samp>eof_action</samp>&rsquo;</dt>
  26943. <dd><p>See <a href="#framesync">framesync</a>.
  26944. </p>
  26945. </dd>
  26946. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  26947. <dd><p>Set when the expressions for &lsquo;<samp>x</samp>&rsquo;, and &lsquo;<samp>y</samp>&rsquo; are evaluated.
  26948. </p>
  26949. <p>It accepts the following values:
  26950. </p><dl compact="compact">
  26951. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  26952. <dd><p>only evaluate expressions once during the filter initialization or
  26953. when a command is processed
  26954. </p>
  26955. </dd>
  26956. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  26957. <dd><p>evaluate expressions for each incoming frame
  26958. </p></dd>
  26959. </dl>
  26960. <p>Default value is &lsquo;<samp>frame</samp>&rsquo;.
  26961. </p>
  26962. </dd>
  26963. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  26964. <dd><p>See <a href="#framesync">framesync</a>.
  26965. </p>
  26966. </dd>
  26967. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  26968. <dd><p>Set the format for the output video.
  26969. </p>
  26970. <p>It accepts the following values:
  26971. </p><dl compact="compact">
  26972. <dt>&lsquo;<samp>yuv420</samp>&rsquo;</dt>
  26973. <dd><p>force YUV420 output
  26974. </p>
  26975. </dd>
  26976. <dt>&lsquo;<samp>yuv422</samp>&rsquo;</dt>
  26977. <dd><p>force YUV422 output
  26978. </p>
  26979. </dd>
  26980. <dt>&lsquo;<samp>yuv444</samp>&rsquo;</dt>
  26981. <dd><p>force YUV444 output
  26982. </p>
  26983. </dd>
  26984. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  26985. <dd><p>force packed RGB output
  26986. </p>
  26987. </dd>
  26988. <dt>&lsquo;<samp>gbrp</samp>&rsquo;</dt>
  26989. <dd><p>force planar RGB output
  26990. </p>
  26991. </dd>
  26992. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  26993. <dd><p>automatically pick format
  26994. </p></dd>
  26995. </dl>
  26996. <p>Default value is &lsquo;<samp>yuv420</samp>&rsquo;.
  26997. </p>
  26998. </dd>
  26999. <dt>&lsquo;<samp>repeatlast</samp>&rsquo;</dt>
  27000. <dd><p>See <a href="#framesync">framesync</a>.
  27001. </p>
  27002. </dd>
  27003. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  27004. <dd><p>Set format of alpha of the overlaid video, it can be <var>straight</var> or
  27005. <var>premultiplied</var>. Default is <var>straight</var>.
  27006. </p></dd>
  27007. </dl>
  27008. <p>The &lsquo;<samp>x</samp>&rsquo;, and &lsquo;<samp>y</samp>&rsquo; expressions can contain the following
  27009. parameters.
  27010. </p>
  27011. <dl compact="compact">
  27012. <dt>&lsquo;<samp>main_w, W</samp>&rsquo;</dt>
  27013. <dt>&lsquo;<samp>main_h, H</samp>&rsquo;</dt>
  27014. <dd><p>The main input width and height.
  27015. </p>
  27016. </dd>
  27017. <dt>&lsquo;<samp>overlay_w, w</samp>&rsquo;</dt>
  27018. <dt>&lsquo;<samp>overlay_h, h</samp>&rsquo;</dt>
  27019. <dd><p>The overlay input width and height.
  27020. </p>
  27021. </dd>
  27022. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27023. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27024. <dd><p>The computed values for <var>x</var> and <var>y</var>. They are evaluated for
  27025. each new frame.
  27026. </p>
  27027. </dd>
  27028. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  27029. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  27030. <dd><p>horizontal and vertical chroma subsample values of the output
  27031. format. For example for the pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and
  27032. <var>vsub</var> is 1.
  27033. </p>
  27034. </dd>
  27035. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  27036. <dd><p>the number of input frame, starting from 0
  27037. </p>
  27038. </dd>
  27039. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  27040. <dd><p>the position in the file of the input frame, NAN if unknown
  27041. </p>
  27042. </dd>
  27043. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  27044. <dd><p>The timestamp, expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  27045. </p>
  27046. </dd>
  27047. </dl>
  27048. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  27049. </p>
  27050. <p>Note that the <var>n</var>, <var>pos</var>, <var>t</var> variables are available only
  27051. when evaluation is done <em>per frame</em>, and will evaluate to NAN
  27052. when &lsquo;<samp>eval</samp>&rsquo; is set to &lsquo;<samp>init</samp>&rsquo;.
  27053. </p>
  27054. <p>Be aware that frames are taken from each input video in timestamp
  27055. order, hence, if their initial timestamps differ, it is a good idea
  27056. to pass the two inputs through a <var>setpts=PTS-STARTPTS</var> filter to
  27057. have them begin in the same zero timestamp, as the example for
  27058. the <var>movie</var> filter does.
  27059. </p>
  27060. <p>You can chain together more overlays but you should test the
  27061. efficiency of such approach.
  27062. </p>
  27063. <a name="Commands-5"></a>
  27064. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-5">32.144.1 Commands</a></h3>
  27065. <p>This filter supports the following commands:
  27066. </p><dl compact="compact">
  27067. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27068. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27069. <dd><p>Modify the x and y of the overlay input.
  27070. The command accepts the same syntax of the corresponding option.
  27071. </p>
  27072. <p>If the specified expression is not valid, it is kept at its current
  27073. value.
  27074. </p></dd>
  27075. </dl>
  27076. <a name="Examples-145"></a>
  27077. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-145">32.144.2 Examples</a></h3>
  27078. <ul>
  27079. <li>
  27080. Draw the overlay at 10 pixels from the bottom right corner of the main
  27081. video:
  27082. <div class="example">
  27083. <pre class="example">overlay=main_w-overlay_w-10:main_h-overlay_h-10
  27084. </pre></div>
  27085. <p>Using named options the example above becomes:
  27086. </p><div class="example">
  27087. <pre class="example">overlay=x=main_w-overlay_w-10:y=main_h-overlay_h-10
  27088. </pre></div>
  27089. </li><li>
  27090. Insert a transparent PNG logo in the bottom left corner of the input,
  27091. using the <code>ffmpeg</code> tool with the <code>-filter_complex</code> option:
  27092. <div class="example">
  27093. <pre class="example">ffmpeg -i input -i logo -filter_complex 'overlay=10:main_h-overlay_h-10' output
  27094. </pre></div>
  27095. </li><li>
  27096. Insert 2 different transparent PNG logos (second logo on bottom
  27097. right corner) using the <code>ffmpeg</code> tool:
  27098. <div class="example">
  27099. <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
  27100. </pre></div>
  27101. </li><li>
  27102. Add a transparent color layer on top of the main video; <code>WxH</code>
  27103. must specify the size of the main input to the overlay filter:
  27104. <div class="example">
  27105. <pre class="example">color=color=red@.3:size=WxH [over]; [in][over] overlay [out]
  27106. </pre></div>
  27107. </li><li>
  27108. Play an original video and a filtered version (here with the deshake
  27109. filter) side by side using the <code>ffplay</code> tool:
  27110. <div class="example">
  27111. <pre class="example">ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w'
  27112. </pre></div>
  27113. <p>The above command is the same as:
  27114. </p><div class="example">
  27115. <pre class="example">ffplay input.avi -vf 'split[b], pad=iw*2[src], [b]deshake, [src]overlay=w'
  27116. </pre></div>
  27117. </li><li>
  27118. Make a sliding overlay appearing from the left to the right top part of the
  27119. screen starting since time 2:
  27120. <div class="example">
  27121. <pre class="example">overlay=x='if(gte(t,2), -w+(t-2)*20, NAN)':y=0
  27122. </pre></div>
  27123. </li><li>
  27124. Compose output by putting two input videos side to side:
  27125. <div class="example">
  27126. <pre class="example">ffmpeg -i left.avi -i right.avi -filter_complex &quot;
  27127. nullsrc=size=200x100 [background];
  27128. [0:v] setpts=PTS-STARTPTS, scale=100x100 [left];
  27129. [1:v] setpts=PTS-STARTPTS, scale=100x100 [right];
  27130. [background][left] overlay=shortest=1 [background+left];
  27131. [background+left][right] overlay=shortest=1:x=100 [left+right]
  27132. &quot;
  27133. </pre></div>
  27134. </li><li>
  27135. Mask 10-20 seconds of a video by applying the delogo filter to a section
  27136. <div class="example">
  27137. <pre class="example">ffmpeg -i test.avi -codec:v:0 wmv2 -ar 11025 -b:v 9000k
  27138. -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]'
  27139. masked.avi
  27140. </pre></div>
  27141. </li><li>
  27142. Chain several overlays in cascade:
  27143. <div class="example">
  27144. <pre class="example">nullsrc=s=200x200 [bg];
  27145. testsrc=s=100x100, split=4 [in0][in1][in2][in3];
  27146. [in0] lutrgb=r=0, [bg] overlay=0:0 [mid0];
  27147. [in1] lutrgb=g=0, [mid0] overlay=100:0 [mid1];
  27148. [in2] lutrgb=b=0, [mid1] overlay=0:100 [mid2];
  27149. [in3] null, [mid2] overlay=100:100 [out0]
  27150. </pre></div>
  27151. </li></ul>
  27152. <a name="owdenoise"></a>
  27153. <h2 class="section"><a href="ffprobe-all.html#toc-owdenoise">32.145 owdenoise</a></h2>
  27154. <p>Apply Overcomplete Wavelet denoiser.
  27155. </p>
  27156. <p>The filter accepts the following options:
  27157. </p>
  27158. <dl compact="compact">
  27159. <dt>&lsquo;<samp>depth</samp>&rsquo;</dt>
  27160. <dd><p>Set depth.
  27161. </p>
  27162. <p>Larger depth values will denoise lower frequency components more, but
  27163. slow down filtering.
  27164. </p>
  27165. <p>Must be an int in the range 8-16, default is <code>8</code>.
  27166. </p>
  27167. </dd>
  27168. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  27169. <dd><p>Set luma strength.
  27170. </p>
  27171. <p>Must be a double value in the range 0-1000, default is <code>1.0</code>.
  27172. </p>
  27173. </dd>
  27174. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  27175. <dd><p>Set chroma strength.
  27176. </p>
  27177. <p>Must be a double value in the range 0-1000, default is <code>1.0</code>.
  27178. </p></dd>
  27179. </dl>
  27180. <p><a name="pad"></a>
  27181. </p><a name="pad-1"></a>
  27182. <h2 class="section"><a href="ffprobe-all.html#toc-pad-1">32.146 pad</a></h2>
  27183. <p>Add paddings to the input image, and place the original input at the
  27184. provided <var>x</var>, <var>y</var> coordinates.
  27185. </p>
  27186. <p>It accepts the following parameters:
  27187. </p>
  27188. <dl compact="compact">
  27189. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  27190. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  27191. <dd><p>Specify an expression for the size of the output image with the
  27192. paddings added. If the value for <var>width</var> or <var>height</var> is 0, the
  27193. corresponding input size is used for the output.
  27194. </p>
  27195. <p>The <var>width</var> expression can reference the value set by the
  27196. <var>height</var> expression, and vice versa.
  27197. </p>
  27198. <p>The default value of <var>width</var> and <var>height</var> is 0.
  27199. </p>
  27200. </dd>
  27201. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27202. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27203. <dd><p>Specify the offsets to place the input image at within the padded area,
  27204. with respect to the top/left border of the output image.
  27205. </p>
  27206. <p>The <var>x</var> expression can reference the value set by the <var>y</var>
  27207. expression, and vice versa.
  27208. </p>
  27209. <p>The default value of <var>x</var> and <var>y</var> is 0.
  27210. </p>
  27211. <p>If <var>x</var> or <var>y</var> evaluate to a negative number, they&rsquo;ll be changed
  27212. so the input image is centered on the padded area.
  27213. </p>
  27214. </dd>
  27215. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  27216. <dd><p>Specify the color of the padded area. For the syntax of this option,
  27217. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  27218. </p>
  27219. <p>The default value of <var>color</var> is &quot;black&quot;.
  27220. </p>
  27221. </dd>
  27222. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  27223. <dd><p>Specify when to evaluate <var>width</var>, <var>height</var>, <var>x</var> and <var>y</var> expression.
  27224. </p>
  27225. <p>It accepts the following values:
  27226. </p>
  27227. <dl compact="compact">
  27228. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  27229. <dd><p>Only evaluate expressions once during the filter initialization or when
  27230. a command is processed.
  27231. </p>
  27232. </dd>
  27233. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  27234. <dd><p>Evaluate expressions for each incoming frame.
  27235. </p>
  27236. </dd>
  27237. </dl>
  27238. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  27239. </p>
  27240. </dd>
  27241. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  27242. <dd><p>Pad to aspect instead to a resolution.
  27243. </p>
  27244. </dd>
  27245. </dl>
  27246. <p>The value for the <var>width</var>, <var>height</var>, <var>x</var>, and <var>y</var>
  27247. options are expressions containing the following constants:
  27248. </p>
  27249. <dl compact="compact">
  27250. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  27251. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  27252. <dd><p>The input video width and height.
  27253. </p>
  27254. </dd>
  27255. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  27256. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  27257. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  27258. </p>
  27259. </dd>
  27260. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  27261. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  27262. <dd><p>The output width and height (the size of the padded area), as
  27263. specified by the <var>width</var> and <var>height</var> expressions.
  27264. </p>
  27265. </dd>
  27266. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  27267. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  27268. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  27269. </p>
  27270. </dd>
  27271. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27272. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27273. <dd><p>The x and y offsets as specified by the <var>x</var> and <var>y</var>
  27274. expressions, or NAN if not yet specified.
  27275. </p>
  27276. </dd>
  27277. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  27278. <dd><p>same as <var>iw</var> / <var>ih</var>
  27279. </p>
  27280. </dd>
  27281. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  27282. <dd><p>input sample aspect ratio
  27283. </p>
  27284. </dd>
  27285. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  27286. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  27287. </p>
  27288. </dd>
  27289. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  27290. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  27291. <dd><p>The horizontal and vertical chroma subsample values. For example for the
  27292. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  27293. </p></dd>
  27294. </dl>
  27295. <a name="Examples-102"></a>
  27296. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-102">32.146.1 Examples</a></h3>
  27297. <ul>
  27298. <li>
  27299. Add paddings with the color &quot;violet&quot; to the input video. The output video
  27300. size is 640x480, and the top-left corner of the input video is placed at
  27301. column 0, row 40
  27302. <div class="example">
  27303. <pre class="example">pad=640:480:0:40:violet
  27304. </pre></div>
  27305. <p>The example above is equivalent to the following command:
  27306. </p><div class="example">
  27307. <pre class="example">pad=width=640:height=480:x=0:y=40:color=violet
  27308. </pre></div>
  27309. </li><li>
  27310. Pad the input to get an output with dimensions increased by 3/2,
  27311. and put the input video at the center of the padded area:
  27312. <div class="example">
  27313. <pre class="example">pad=&quot;3/2*iw:3/2*ih:(ow-iw)/2:(oh-ih)/2&quot;
  27314. </pre></div>
  27315. </li><li>
  27316. Pad the input to get a squared output with size equal to the maximum
  27317. value between the input width and height, and put the input video at
  27318. the center of the padded area:
  27319. <div class="example">
  27320. <pre class="example">pad=&quot;max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2&quot;
  27321. </pre></div>
  27322. </li><li>
  27323. Pad the input to get a final w/h ratio of 16:9:
  27324. <div class="example">
  27325. <pre class="example">pad=&quot;ih*16/9:ih:(ow-iw)/2:(oh-ih)/2&quot;
  27326. </pre></div>
  27327. </li><li>
  27328. In case of anamorphic video, in order to set the output display aspect
  27329. correctly, it is necessary to use <var>sar</var> in the expression,
  27330. according to the relation:
  27331. <div class="example">
  27332. <pre class="example">(ih * X / ih) * sar = output_dar
  27333. X = output_dar / sar
  27334. </pre></div>
  27335. <p>Thus the previous example needs to be modified to:
  27336. </p><div class="example">
  27337. <pre class="example">pad=&quot;ih*16/9/sar:ih:(ow-iw)/2:(oh-ih)/2&quot;
  27338. </pre></div>
  27339. </li><li>
  27340. Double the output size and put the input video in the bottom-right
  27341. corner of the output padded area:
  27342. <div class="example">
  27343. <pre class="example">pad=&quot;2*iw:2*ih:ow-iw:oh-ih&quot;
  27344. </pre></div>
  27345. </li></ul>
  27346. <p><a name="palettegen"></a>
  27347. </p><a name="palettegen-1"></a>
  27348. <h2 class="section"><a href="ffprobe-all.html#toc-palettegen-1">32.147 palettegen</a></h2>
  27349. <p>Generate one palette for a whole video stream.
  27350. </p>
  27351. <p>It accepts the following options:
  27352. </p>
  27353. <dl compact="compact">
  27354. <dt>&lsquo;<samp>max_colors</samp>&rsquo;</dt>
  27355. <dd><p>Set the maximum number of colors to quantize in the palette.
  27356. Note: the palette will still contain 256 colors; the unused palette entries
  27357. will be black.
  27358. </p>
  27359. </dd>
  27360. <dt>&lsquo;<samp>reserve_transparent</samp>&rsquo;</dt>
  27361. <dd><p>Create a palette of 255 colors maximum and reserve the last one for
  27362. transparency. Reserving the transparency color is useful for GIF optimization.
  27363. If not set, the maximum of colors in the palette will be 256. You probably want
  27364. to disable this option for a standalone image.
  27365. Set by default.
  27366. </p>
  27367. </dd>
  27368. <dt>&lsquo;<samp>transparency_color</samp>&rsquo;</dt>
  27369. <dd><p>Set the color that will be used as background for transparency.
  27370. </p>
  27371. </dd>
  27372. <dt>&lsquo;<samp>stats_mode</samp>&rsquo;</dt>
  27373. <dd><p>Set statistics mode.
  27374. </p>
  27375. <p>It accepts the following values:
  27376. </p><dl compact="compact">
  27377. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  27378. <dd><p>Compute full frame histograms.
  27379. </p></dd>
  27380. <dt>&lsquo;<samp>diff</samp>&rsquo;</dt>
  27381. <dd><p>Compute histograms only for the part that differs from previous frame. This
  27382. might be relevant to give more importance to the moving part of your input if
  27383. the background is static.
  27384. </p></dd>
  27385. <dt>&lsquo;<samp>single</samp>&rsquo;</dt>
  27386. <dd><p>Compute new histogram for each frame.
  27387. </p></dd>
  27388. </dl>
  27389. <p>Default value is <var>full</var>.
  27390. </p></dd>
  27391. </dl>
  27392. <p>The filter also exports the frame metadata <code>lavfi.color_quant_ratio</code>
  27393. (<code>nb_color_in / nb_color_out</code>) which you can use to evaluate the degree of
  27394. color quantization of the palette. This information is also visible at
  27395. <var>info</var> logging level.
  27396. </p>
  27397. <a name="Examples-26"></a>
  27398. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-26">32.147.1 Examples</a></h3>
  27399. <ul>
  27400. <li>
  27401. Generate a representative palette of a given video using <code>ffmpeg</code>:
  27402. <div class="example">
  27403. <pre class="example">ffmpeg -i input.mkv -vf palettegen palette.png
  27404. </pre></div>
  27405. </li></ul>
  27406. <a name="paletteuse"></a>
  27407. <h2 class="section"><a href="ffprobe-all.html#toc-paletteuse">32.148 paletteuse</a></h2>
  27408. <p>Use a palette to downsample an input video stream.
  27409. </p>
  27410. <p>The filter takes two inputs: one video stream and a palette. The palette must
  27411. be a 256 pixels image.
  27412. </p>
  27413. <p>It accepts the following options:
  27414. </p>
  27415. <dl compact="compact">
  27416. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  27417. <dd><p>Select dithering mode. Available algorithms are:
  27418. </p><dl compact="compact">
  27419. <dt>&lsquo;<samp>bayer</samp>&rsquo;</dt>
  27420. <dd><p>Ordered 8x8 bayer dithering (deterministic)
  27421. </p></dd>
  27422. <dt>&lsquo;<samp>heckbert</samp>&rsquo;</dt>
  27423. <dd><p>Dithering as defined by Paul Heckbert in 1982 (simple error diffusion).
  27424. Note: this dithering is sometimes considered &quot;wrong&quot; and is included as a
  27425. reference.
  27426. </p></dd>
  27427. <dt>&lsquo;<samp>floyd_steinberg</samp>&rsquo;</dt>
  27428. <dd><p>Floyd and Steingberg dithering (error diffusion)
  27429. </p></dd>
  27430. <dt>&lsquo;<samp>sierra2</samp>&rsquo;</dt>
  27431. <dd><p>Frankie Sierra dithering v2 (error diffusion)
  27432. </p></dd>
  27433. <dt>&lsquo;<samp>sierra2_4a</samp>&rsquo;</dt>
  27434. <dd><p>Frankie Sierra dithering v2 &quot;Lite&quot; (error diffusion)
  27435. </p></dd>
  27436. </dl>
  27437. <p>Default is <var>sierra2_4a</var>.
  27438. </p>
  27439. </dd>
  27440. <dt>&lsquo;<samp>bayer_scale</samp>&rsquo;</dt>
  27441. <dd><p>When <var>bayer</var> dithering is selected, this option defines the scale of the
  27442. pattern (how much the crosshatch pattern is visible). A low value means more
  27443. visible pattern for less banding, and higher value means less visible pattern
  27444. at the cost of more banding.
  27445. </p>
  27446. <p>The option must be an integer value in the range [0,5]. Default is <var>2</var>.
  27447. </p>
  27448. </dd>
  27449. <dt>&lsquo;<samp>diff_mode</samp>&rsquo;</dt>
  27450. <dd><p>If set, define the zone to process
  27451. </p>
  27452. <dl compact="compact">
  27453. <dt>&lsquo;<samp>rectangle</samp>&rsquo;</dt>
  27454. <dd><p>Only the changing rectangle will be reprocessed. This is similar to GIF
  27455. cropping/offsetting compression mechanism. This option can be useful for speed
  27456. if only a part of the image is changing, and has use cases such as limiting the
  27457. scope of the error diffusal &lsquo;<samp>dither</samp>&rsquo; to the rectangle that bounds the
  27458. moving scene (it leads to more deterministic output if the scene doesn&rsquo;t change
  27459. much, and as a result less moving noise and better GIF compression).
  27460. </p></dd>
  27461. </dl>
  27462. <p>Default is <var>none</var>.
  27463. </p>
  27464. </dd>
  27465. <dt>&lsquo;<samp>new</samp>&rsquo;</dt>
  27466. <dd><p>Take new palette for each output frame.
  27467. </p>
  27468. </dd>
  27469. <dt>&lsquo;<samp>alpha_threshold</samp>&rsquo;</dt>
  27470. <dd><p>Sets the alpha threshold for transparency. Alpha values above this threshold
  27471. will be treated as completely opaque, and values below this threshold will be
  27472. treated as completely transparent.
  27473. </p>
  27474. <p>The option must be an integer value in the range [0,255]. Default is <var>128</var>.
  27475. </p></dd>
  27476. </dl>
  27477. <a name="Examples-74"></a>
  27478. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-74">32.148.1 Examples</a></h3>
  27479. <ul>
  27480. <li>
  27481. Use a palette (generated for example with <a href="#palettegen">palettegen</a>) to encode a GIF
  27482. using <code>ffmpeg</code>:
  27483. <div class="example">
  27484. <pre class="example">ffmpeg -i input.mkv -i palette.png -lavfi paletteuse output.gif
  27485. </pre></div>
  27486. </li></ul>
  27487. <a name="perspective"></a>
  27488. <h2 class="section"><a href="ffprobe-all.html#toc-perspective">32.149 perspective</a></h2>
  27489. <p>Correct perspective of video not recorded perpendicular to the screen.
  27490. </p>
  27491. <p>A description of the accepted parameters follows.
  27492. </p>
  27493. <dl compact="compact">
  27494. <dt>&lsquo;<samp>x0</samp>&rsquo;</dt>
  27495. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  27496. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  27497. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  27498. <dt>&lsquo;<samp>x2</samp>&rsquo;</dt>
  27499. <dt>&lsquo;<samp>y2</samp>&rsquo;</dt>
  27500. <dt>&lsquo;<samp>x3</samp>&rsquo;</dt>
  27501. <dt>&lsquo;<samp>y3</samp>&rsquo;</dt>
  27502. <dd><p>Set coordinates expression for top left, top right, bottom left and bottom right corners.
  27503. Default values are <code>0:0:W:0:0:H:W:H</code> with which perspective will remain unchanged.
  27504. If the <code>sense</code> option is set to <code>source</code>, then the specified points will be sent
  27505. to the corners of the destination. If the <code>sense</code> option is set to <code>destination</code>,
  27506. then the corners of the source will be sent to the specified coordinates.
  27507. </p>
  27508. <p>The expressions can use the following variables:
  27509. </p>
  27510. <dl compact="compact">
  27511. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  27512. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  27513. <dd><p>the width and height of video frame.
  27514. </p></dd>
  27515. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  27516. <dd><p>Input frame count.
  27517. </p></dd>
  27518. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  27519. <dd><p>Output frame count.
  27520. </p></dd>
  27521. </dl>
  27522. </dd>
  27523. <dt>&lsquo;<samp>interpolation</samp>&rsquo;</dt>
  27524. <dd><p>Set interpolation for perspective correction.
  27525. </p>
  27526. <p>It accepts the following values:
  27527. </p><dl compact="compact">
  27528. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  27529. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  27530. </dl>
  27531. <p>Default value is &lsquo;<samp>linear</samp>&rsquo;.
  27532. </p>
  27533. </dd>
  27534. <dt>&lsquo;<samp>sense</samp>&rsquo;</dt>
  27535. <dd><p>Set interpretation of coordinate options.
  27536. </p>
  27537. <p>It accepts the following values:
  27538. </p><dl compact="compact">
  27539. <dt>&lsquo;<samp>0, source</samp>&rsquo;</dt>
  27540. <dd>
  27541. <p>Send point in the source specified by the given coordinates to
  27542. the corners of the destination.
  27543. </p>
  27544. </dd>
  27545. <dt>&lsquo;<samp>1, destination</samp>&rsquo;</dt>
  27546. <dd>
  27547. <p>Send the corners of the source to the point in the destination specified
  27548. by the given coordinates.
  27549. </p>
  27550. <p>Default value is &lsquo;<samp>source</samp>&rsquo;.
  27551. </p></dd>
  27552. </dl>
  27553. </dd>
  27554. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  27555. <dd><p>Set when the expressions for coordinates &lsquo;<samp>x0,y0,...x3,y3</samp>&rsquo; are evaluated.
  27556. </p>
  27557. <p>It accepts the following values:
  27558. </p><dl compact="compact">
  27559. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  27560. <dd><p>only evaluate expressions once during the filter initialization or
  27561. when a command is processed
  27562. </p>
  27563. </dd>
  27564. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  27565. <dd><p>evaluate expressions for each incoming frame
  27566. </p></dd>
  27567. </dl>
  27568. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  27569. </p></dd>
  27570. </dl>
  27571. <a name="phase"></a>
  27572. <h2 class="section"><a href="ffprobe-all.html#toc-phase">32.150 phase</a></h2>
  27573. <p>Delay interlaced video by one field time so that the field order changes.
  27574. </p>
  27575. <p>The intended use is to fix PAL movies that have been captured with the
  27576. opposite field order to the film-to-video transfer.
  27577. </p>
  27578. <p>A description of the accepted parameters follows.
  27579. </p>
  27580. <dl compact="compact">
  27581. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  27582. <dd><p>Set phase mode.
  27583. </p>
  27584. <p>It accepts the following values:
  27585. </p><dl compact="compact">
  27586. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  27587. <dd><p>Capture field order top-first, transfer bottom-first.
  27588. Filter will delay the bottom field.
  27589. </p>
  27590. </dd>
  27591. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  27592. <dd><p>Capture field order bottom-first, transfer top-first.
  27593. Filter will delay the top field.
  27594. </p>
  27595. </dd>
  27596. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  27597. <dd><p>Capture and transfer with the same field order. This mode only exists
  27598. for the documentation of the other options to refer to, but if you
  27599. actually select it, the filter will faithfully do nothing.
  27600. </p>
  27601. </dd>
  27602. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  27603. <dd><p>Capture field order determined automatically by field flags, transfer
  27604. opposite.
  27605. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>b</samp>&rsquo; modes on a frame by frame
  27606. basis using field flags. If no field information is available,
  27607. then this works just like &lsquo;<samp>u</samp>&rsquo;.
  27608. </p>
  27609. </dd>
  27610. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  27611. <dd><p>Capture unknown or varying, transfer opposite.
  27612. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>b</samp>&rsquo; on a frame by frame basis by
  27613. analyzing the images and selecting the alternative that produces best
  27614. match between the fields.
  27615. </p>
  27616. </dd>
  27617. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  27618. <dd><p>Capture top-first, transfer unknown or varying.
  27619. Filter selects among &lsquo;<samp>t</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis.
  27620. </p>
  27621. </dd>
  27622. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  27623. <dd><p>Capture bottom-first, transfer unknown or varying.
  27624. Filter selects among &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis.
  27625. </p>
  27626. </dd>
  27627. <dt>&lsquo;<samp>A</samp>&rsquo;</dt>
  27628. <dd><p>Capture determined by field flags, transfer unknown or varying.
  27629. Filter selects among &lsquo;<samp>t</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using field flags and
  27630. image analysis. If no field information is available, then this works just
  27631. like &lsquo;<samp>U</samp>&rsquo;. This is the default mode.
  27632. </p>
  27633. </dd>
  27634. <dt>&lsquo;<samp>U</samp>&rsquo;</dt>
  27635. <dd><p>Both capture and transfer unknown or varying.
  27636. Filter selects among &lsquo;<samp>t</samp>&rsquo;, &lsquo;<samp>b</samp>&rsquo; and &lsquo;<samp>p</samp>&rsquo; using image analysis only.
  27637. </p></dd>
  27638. </dl>
  27639. </dd>
  27640. </dl>
  27641. <a name="photosensitivity"></a>
  27642. <h2 class="section"><a href="ffprobe-all.html#toc-photosensitivity">32.151 photosensitivity</a></h2>
  27643. <p>Reduce various flashes in video, so to help users with epilepsy.
  27644. </p>
  27645. <p>It accepts the following options:
  27646. </p><dl compact="compact">
  27647. <dt>&lsquo;<samp>frames, f</samp>&rsquo;</dt>
  27648. <dd><p>Set how many frames to use when filtering. Default is 30.
  27649. </p>
  27650. </dd>
  27651. <dt>&lsquo;<samp>threshold, t</samp>&rsquo;</dt>
  27652. <dd><p>Set detection threshold factor. Default is 1.
  27653. Lower is stricter.
  27654. </p>
  27655. </dd>
  27656. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  27657. <dd><p>Set how many pixels to skip when sampling frames. Default is 1.
  27658. Allowed range is from 1 to 1024.
  27659. </p>
  27660. </dd>
  27661. <dt>&lsquo;<samp>bypass</samp>&rsquo;</dt>
  27662. <dd><p>Leave frames unchanged. Default is disabled.
  27663. </p></dd>
  27664. </dl>
  27665. <a name="pixdesctest"></a>
  27666. <h2 class="section"><a href="ffprobe-all.html#toc-pixdesctest">32.152 pixdesctest</a></h2>
  27667. <p>Pixel format descriptor test filter, mainly useful for internal
  27668. testing. The output video should be equal to the input video.
  27669. </p>
  27670. <p>For example:
  27671. </p><div class="example">
  27672. <pre class="example">format=monow, pixdesctest
  27673. </pre></div>
  27674. <p>can be used to test the monowhite pixel format descriptor definition.
  27675. </p>
  27676. <a name="pixscope"></a>
  27677. <h2 class="section"><a href="ffprobe-all.html#toc-pixscope">32.153 pixscope</a></h2>
  27678. <p>Display sample values of color channels. Mainly useful for checking color
  27679. and levels. Minimum supported resolution is 640x480.
  27680. </p>
  27681. <p>The filters accept the following options:
  27682. </p>
  27683. <dl compact="compact">
  27684. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  27685. <dd><p>Set scope X position, relative offset on X axis.
  27686. </p>
  27687. </dd>
  27688. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  27689. <dd><p>Set scope Y position, relative offset on Y axis.
  27690. </p>
  27691. </dd>
  27692. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  27693. <dd><p>Set scope width.
  27694. </p>
  27695. </dd>
  27696. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  27697. <dd><p>Set scope height.
  27698. </p>
  27699. </dd>
  27700. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  27701. <dd><p>Set window opacity. This window also holds statistics about pixel area.
  27702. </p>
  27703. </dd>
  27704. <dt>&lsquo;<samp>wx</samp>&rsquo;</dt>
  27705. <dd><p>Set window X position, relative offset on X axis.
  27706. </p>
  27707. </dd>
  27708. <dt>&lsquo;<samp>wy</samp>&rsquo;</dt>
  27709. <dd><p>Set window Y position, relative offset on Y axis.
  27710. </p></dd>
  27711. </dl>
  27712. <a name="pp"></a>
  27713. <h2 class="section"><a href="ffprobe-all.html#toc-pp">32.154 pp</a></h2>
  27714. <p>Enable the specified chain of postprocessing subfilters using libpostproc. This
  27715. library should be automatically selected with a GPL build (<code>--enable-gpl</code>).
  27716. Subfilters must be separated by &rsquo;/&rsquo; and can be disabled by prepending a &rsquo;-&rsquo;.
  27717. Each subfilter and some options have a short and a long name that can be used
  27718. interchangeably, i.e. dr/dering are the same.
  27719. </p>
  27720. <p>The filters accept the following options:
  27721. </p>
  27722. <dl compact="compact">
  27723. <dt>&lsquo;<samp>subfilters</samp>&rsquo;</dt>
  27724. <dd><p>Set postprocessing subfilters string.
  27725. </p></dd>
  27726. </dl>
  27727. <p>All subfilters share common options to determine their scope:
  27728. </p>
  27729. <dl compact="compact">
  27730. <dt>&lsquo;<samp>a/autoq</samp>&rsquo;</dt>
  27731. <dd><p>Honor the quality commands for this subfilter.
  27732. </p>
  27733. </dd>
  27734. <dt>&lsquo;<samp>c/chrom</samp>&rsquo;</dt>
  27735. <dd><p>Do chrominance filtering, too (default).
  27736. </p>
  27737. </dd>
  27738. <dt>&lsquo;<samp>y/nochrom</samp>&rsquo;</dt>
  27739. <dd><p>Do luminance filtering only (no chrominance).
  27740. </p>
  27741. </dd>
  27742. <dt>&lsquo;<samp>n/noluma</samp>&rsquo;</dt>
  27743. <dd><p>Do chrominance filtering only (no luminance).
  27744. </p></dd>
  27745. </dl>
  27746. <p>These options can be appended after the subfilter name, separated by a &rsquo;|&rsquo;.
  27747. </p>
  27748. <p>Available subfilters are:
  27749. </p>
  27750. <dl compact="compact">
  27751. <dt>&lsquo;<samp>hb/hdeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  27752. <dd><p>Horizontal deblocking filter
  27753. </p><dl compact="compact">
  27754. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  27755. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  27756. </p></dd>
  27757. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  27758. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  27759. </p></dd>
  27760. </dl>
  27761. </dd>
  27762. <dt>&lsquo;<samp>vb/vdeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  27763. <dd><p>Vertical deblocking filter
  27764. </p><dl compact="compact">
  27765. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  27766. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  27767. </p></dd>
  27768. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  27769. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  27770. </p></dd>
  27771. </dl>
  27772. </dd>
  27773. <dt>&lsquo;<samp>ha/hadeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  27774. <dd><p>Accurate horizontal deblocking filter
  27775. </p><dl compact="compact">
  27776. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  27777. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  27778. </p></dd>
  27779. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  27780. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  27781. </p></dd>
  27782. </dl>
  27783. </dd>
  27784. <dt>&lsquo;<samp>va/vadeblock[|difference[|flatness]]</samp>&rsquo;</dt>
  27785. <dd><p>Accurate vertical deblocking filter
  27786. </p><dl compact="compact">
  27787. <dt>&lsquo;<samp>difference</samp>&rsquo;</dt>
  27788. <dd><p>Difference factor where higher values mean more deblocking (default: <code>32</code>).
  27789. </p></dd>
  27790. <dt>&lsquo;<samp>flatness</samp>&rsquo;</dt>
  27791. <dd><p>Flatness threshold where lower values mean more deblocking (default: <code>39</code>).
  27792. </p></dd>
  27793. </dl>
  27794. </dd>
  27795. </dl>
  27796. <p>The horizontal and vertical deblocking filters share the difference and
  27797. flatness values so you cannot set different horizontal and vertical
  27798. thresholds.
  27799. </p>
  27800. <dl compact="compact">
  27801. <dt>&lsquo;<samp>h1/x1hdeblock</samp>&rsquo;</dt>
  27802. <dd><p>Experimental horizontal deblocking filter
  27803. </p>
  27804. </dd>
  27805. <dt>&lsquo;<samp>v1/x1vdeblock</samp>&rsquo;</dt>
  27806. <dd><p>Experimental vertical deblocking filter
  27807. </p>
  27808. </dd>
  27809. <dt>&lsquo;<samp>dr/dering</samp>&rsquo;</dt>
  27810. <dd><p>Deringing filter
  27811. </p>
  27812. </dd>
  27813. <dt>&lsquo;<samp>tn/tmpnoise[|threshold1[|threshold2[|threshold3]]], temporal noise reducer</samp>&rsquo;</dt>
  27814. <dd><dl compact="compact">
  27815. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  27816. <dd><p>larger -&gt; stronger filtering
  27817. </p></dd>
  27818. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  27819. <dd><p>larger -&gt; stronger filtering
  27820. </p></dd>
  27821. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  27822. <dd><p>larger -&gt; stronger filtering
  27823. </p></dd>
  27824. </dl>
  27825. </dd>
  27826. <dt>&lsquo;<samp>al/autolevels[:f/fullyrange], automatic brightness / contrast correction</samp>&rsquo;</dt>
  27827. <dd><dl compact="compact">
  27828. <dt>&lsquo;<samp>f/fullyrange</samp>&rsquo;</dt>
  27829. <dd><p>Stretch luminance to <code>0-255</code>.
  27830. </p></dd>
  27831. </dl>
  27832. </dd>
  27833. <dt>&lsquo;<samp>lb/linblenddeint</samp>&rsquo;</dt>
  27834. <dd><p>Linear blend deinterlacing filter that deinterlaces the given block by
  27835. filtering all lines with a <code>(1 2 1)</code> filter.
  27836. </p>
  27837. </dd>
  27838. <dt>&lsquo;<samp>li/linipoldeint</samp>&rsquo;</dt>
  27839. <dd><p>Linear interpolating deinterlacing filter that deinterlaces the given block by
  27840. linearly interpolating every second line.
  27841. </p>
  27842. </dd>
  27843. <dt>&lsquo;<samp>ci/cubicipoldeint</samp>&rsquo;</dt>
  27844. <dd><p>Cubic interpolating deinterlacing filter deinterlaces the given block by
  27845. cubically interpolating every second line.
  27846. </p>
  27847. </dd>
  27848. <dt>&lsquo;<samp>md/mediandeint</samp>&rsquo;</dt>
  27849. <dd><p>Median deinterlacing filter that deinterlaces the given block by applying a
  27850. median filter to every second line.
  27851. </p>
  27852. </dd>
  27853. <dt>&lsquo;<samp>fd/ffmpegdeint</samp>&rsquo;</dt>
  27854. <dd><p>FFmpeg deinterlacing filter that deinterlaces the given block by filtering every
  27855. second line with a <code>(-1 4 2 4 -1)</code> filter.
  27856. </p>
  27857. </dd>
  27858. <dt>&lsquo;<samp>l5/lowpass5</samp>&rsquo;</dt>
  27859. <dd><p>Vertically applied FIR lowpass deinterlacing filter that deinterlaces the given
  27860. block by filtering all lines with a <code>(-1 2 6 2 -1)</code> filter.
  27861. </p>
  27862. </dd>
  27863. <dt>&lsquo;<samp>fq/forceQuant[|quantizer]</samp>&rsquo;</dt>
  27864. <dd><p>Overrides the quantizer table from the input with the constant quantizer you
  27865. specify.
  27866. </p><dl compact="compact">
  27867. <dt>&lsquo;<samp>quantizer</samp>&rsquo;</dt>
  27868. <dd><p>Quantizer to use
  27869. </p></dd>
  27870. </dl>
  27871. </dd>
  27872. <dt>&lsquo;<samp>de/default</samp>&rsquo;</dt>
  27873. <dd><p>Default pp filter combination (<code>hb|a,vb|a,dr|a</code>)
  27874. </p>
  27875. </dd>
  27876. <dt>&lsquo;<samp>fa/fast</samp>&rsquo;</dt>
  27877. <dd><p>Fast pp filter combination (<code>h1|a,v1|a,dr|a</code>)
  27878. </p>
  27879. </dd>
  27880. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  27881. <dd><p>High quality pp filter combination (<code>ha|a|128|7,va|a,dr|a</code>)
  27882. </p></dd>
  27883. </dl>
  27884. <a name="Examples-56"></a>
  27885. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-56">32.154.1 Examples</a></h3>
  27886. <ul>
  27887. <li>
  27888. Apply horizontal and vertical deblocking, deringing and automatic
  27889. brightness/contrast:
  27890. <div class="example">
  27891. <pre class="example">pp=hb/vb/dr/al
  27892. </pre></div>
  27893. </li><li>
  27894. Apply default filters without brightness/contrast correction:
  27895. <div class="example">
  27896. <pre class="example">pp=de/-al
  27897. </pre></div>
  27898. </li><li>
  27899. Apply default filters and temporal denoiser:
  27900. <div class="example">
  27901. <pre class="example">pp=default/tmpnoise|1|2|3
  27902. </pre></div>
  27903. </li><li>
  27904. Apply deblocking on luminance only, and switch vertical deblocking on or off
  27905. automatically depending on available CPU time:
  27906. <div class="example">
  27907. <pre class="example">pp=hb|y/vb|a
  27908. </pre></div>
  27909. </li></ul>
  27910. <a name="pp7"></a>
  27911. <h2 class="section"><a href="ffprobe-all.html#toc-pp7">32.155 pp7</a></h2>
  27912. <p>Apply Postprocessing filter 7. It is variant of the <a href="#spp">spp</a> filter,
  27913. similar to spp = 6 with 7 point DCT, where only the center sample is
  27914. used after IDCT.
  27915. </p>
  27916. <p>The filter accepts the following options:
  27917. </p>
  27918. <dl compact="compact">
  27919. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  27920. <dd><p>Force a constant quantization parameter. It accepts an integer in range
  27921. 0 to 63. If not set, the filter will use the QP from the video stream
  27922. (if available).
  27923. </p>
  27924. </dd>
  27925. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  27926. <dd><p>Set thresholding mode. Available modes are:
  27927. </p>
  27928. <dl compact="compact">
  27929. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  27930. <dd><p>Set hard thresholding.
  27931. </p></dd>
  27932. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  27933. <dd><p>Set soft thresholding (better de-ringing effect, but likely blurrier).
  27934. </p></dd>
  27935. <dt>&lsquo;<samp>medium</samp>&rsquo;</dt>
  27936. <dd><p>Set medium thresholding (good results, default).
  27937. </p></dd>
  27938. </dl>
  27939. </dd>
  27940. </dl>
  27941. <a name="premultiply"></a>
  27942. <h2 class="section"><a href="ffprobe-all.html#toc-premultiply">32.156 premultiply</a></h2>
  27943. <p>Apply alpha premultiply effect to input video stream using first plane
  27944. of second stream as alpha.
  27945. </p>
  27946. <p>Both streams must have same dimensions and same pixel format.
  27947. </p>
  27948. <p>The filter accepts the following option:
  27949. </p>
  27950. <dl compact="compact">
  27951. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  27952. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  27953. By default value 0xf, all planes will be processed.
  27954. </p>
  27955. </dd>
  27956. <dt>&lsquo;<samp>inplace</samp>&rsquo;</dt>
  27957. <dd><p>Do not require 2nd input for processing, instead use alpha plane from input stream.
  27958. </p></dd>
  27959. </dl>
  27960. <a name="prewitt"></a>
  27961. <h2 class="section"><a href="ffprobe-all.html#toc-prewitt">32.157 prewitt</a></h2>
  27962. <p>Apply prewitt operator to input video stream.
  27963. </p>
  27964. <p>The filter accepts the following option:
  27965. </p>
  27966. <dl compact="compact">
  27967. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  27968. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  27969. By default value 0xf, all planes will be processed.
  27970. </p>
  27971. </dd>
  27972. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  27973. <dd><p>Set value which will be multiplied with filtered result.
  27974. </p>
  27975. </dd>
  27976. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  27977. <dd><p>Set value which will be added to filtered result.
  27978. </p></dd>
  27979. </dl>
  27980. <a name="pseudocolor"></a>
  27981. <h2 class="section"><a href="ffprobe-all.html#toc-pseudocolor">32.158 pseudocolor</a></h2>
  27982. <p>Alter frame colors in video with pseudocolors.
  27983. </p>
  27984. <p>This filter accepts the following options:
  27985. </p>
  27986. <dl compact="compact">
  27987. <dt>&lsquo;<samp>c0</samp>&rsquo;</dt>
  27988. <dd><p>set pixel first component expression
  27989. </p>
  27990. </dd>
  27991. <dt>&lsquo;<samp>c1</samp>&rsquo;</dt>
  27992. <dd><p>set pixel second component expression
  27993. </p>
  27994. </dd>
  27995. <dt>&lsquo;<samp>c2</samp>&rsquo;</dt>
  27996. <dd><p>set pixel third component expression
  27997. </p>
  27998. </dd>
  27999. <dt>&lsquo;<samp>c3</samp>&rsquo;</dt>
  28000. <dd><p>set pixel fourth component expression, corresponds to the alpha component
  28001. </p>
  28002. </dd>
  28003. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  28004. <dd><p>set component to use as base for altering colors
  28005. </p></dd>
  28006. </dl>
  28007. <p>Each of them specifies the expression to use for computing the lookup table for
  28008. the corresponding pixel component values.
  28009. </p>
  28010. <p>The expressions can contain the following constants and functions:
  28011. </p>
  28012. <dl compact="compact">
  28013. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  28014. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  28015. <dd><p>The input width and height.
  28016. </p>
  28017. </dd>
  28018. <dt>&lsquo;<samp>val</samp>&rsquo;</dt>
  28019. <dd><p>The input value for the pixel component.
  28020. </p>
  28021. </dd>
  28022. <dt>&lsquo;<samp>ymin, umin, vmin, amin</samp>&rsquo;</dt>
  28023. <dd><p>The minimum allowed component value.
  28024. </p>
  28025. </dd>
  28026. <dt>&lsquo;<samp>ymax, umax, vmax, amax</samp>&rsquo;</dt>
  28027. <dd><p>The maximum allowed component value.
  28028. </p></dd>
  28029. </dl>
  28030. <p>All expressions default to &quot;val&quot;.
  28031. </p>
  28032. <a name="Examples-163"></a>
  28033. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-163">32.158.1 Examples</a></h3>
  28034. <ul>
  28035. <li>
  28036. Change too high luma values to gradient:
  28037. <div class="example">
  28038. <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;
  28039. </pre></div>
  28040. </li></ul>
  28041. <a name="psnr"></a>
  28042. <h2 class="section"><a href="ffprobe-all.html#toc-psnr">32.159 psnr</a></h2>
  28043. <p>Obtain the average, maximum and minimum PSNR (Peak Signal to Noise
  28044. Ratio) between two input videos.
  28045. </p>
  28046. <p>This filter takes in input two input videos, the first input is
  28047. considered the &quot;main&quot; source and is passed unchanged to the
  28048. output. The second input is used as a &quot;reference&quot; video for computing
  28049. the PSNR.
  28050. </p>
  28051. <p>Both video inputs must have the same resolution and pixel format for
  28052. this filter to work correctly. Also it assumes that both inputs
  28053. have the same number of frames, which are compared one by one.
  28054. </p>
  28055. <p>The obtained average PSNR is printed through the logging system.
  28056. </p>
  28057. <p>The filter stores the accumulated MSE (mean squared error) of each
  28058. frame, and at the end of the processing it is averaged across all frames
  28059. equally, and the following formula is applied to obtain the PSNR:
  28060. </p>
  28061. <div class="example">
  28062. <pre class="example">PSNR = 10*log10(MAX^2/MSE)
  28063. </pre></div>
  28064. <p>Where MAX is the average of the maximum values of each component of the
  28065. image.
  28066. </p>
  28067. <p>The description of the accepted parameters follows.
  28068. </p>
  28069. <dl compact="compact">
  28070. <dt>&lsquo;<samp>stats_file, f</samp>&rsquo;</dt>
  28071. <dd><p>If specified the filter will use the named file to save the PSNR of
  28072. each individual frame. When filename equals &quot;-&quot; the data is sent to
  28073. standard output.
  28074. </p>
  28075. </dd>
  28076. <dt>&lsquo;<samp>stats_version</samp>&rsquo;</dt>
  28077. <dd><p>Specifies which version of the stats file format to use. Details of
  28078. each format are written below.
  28079. Default value is 1.
  28080. </p>
  28081. </dd>
  28082. <dt>&lsquo;<samp>stats_add_max</samp>&rsquo;</dt>
  28083. <dd><p>Determines whether the max value is output to the stats log.
  28084. Default value is 0.
  28085. Requires stats_version &gt;= 2. If this is set and stats_version &lt; 2,
  28086. the filter will return an error.
  28087. </p></dd>
  28088. </dl>
  28089. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  28090. </p>
  28091. <p>The file printed if <var>stats_file</var> is selected, contains a sequence of
  28092. key/value pairs of the form <var>key</var>:<var>value</var> for each compared
  28093. couple of frames.
  28094. </p>
  28095. <p>If a <var>stats_version</var> greater than 1 is specified, a header line precedes
  28096. the list of per-frame-pair stats, with key value pairs following the frame
  28097. format with the following parameters:
  28098. </p>
  28099. <dl compact="compact">
  28100. <dt>&lsquo;<samp>psnr_log_version</samp>&rsquo;</dt>
  28101. <dd><p>The version of the log file format. Will match <var>stats_version</var>.
  28102. </p>
  28103. </dd>
  28104. <dt>&lsquo;<samp>fields</samp>&rsquo;</dt>
  28105. <dd><p>A comma separated list of the per-frame-pair parameters included in
  28106. the log.
  28107. </p></dd>
  28108. </dl>
  28109. <p>A description of each shown per-frame-pair parameter follows:
  28110. </p>
  28111. <dl compact="compact">
  28112. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  28113. <dd><p>sequential number of the input frame, starting from 1
  28114. </p>
  28115. </dd>
  28116. <dt>&lsquo;<samp>mse_avg</samp>&rsquo;</dt>
  28117. <dd><p>Mean Square Error pixel-by-pixel average difference of the compared
  28118. frames, averaged over all the image components.
  28119. </p>
  28120. </dd>
  28121. <dt>&lsquo;<samp>mse_y, mse_u, mse_v, mse_r, mse_g, mse_b, mse_a</samp>&rsquo;</dt>
  28122. <dd><p>Mean Square Error pixel-by-pixel average difference of the compared
  28123. frames for the component specified by the suffix.
  28124. </p>
  28125. </dd>
  28126. <dt>&lsquo;<samp>psnr_y, psnr_u, psnr_v, psnr_r, psnr_g, psnr_b, psnr_a</samp>&rsquo;</dt>
  28127. <dd><p>Peak Signal to Noise ratio of the compared frames for the component
  28128. specified by the suffix.
  28129. </p>
  28130. </dd>
  28131. <dt>&lsquo;<samp>max_avg, max_y, max_u, max_v</samp>&rsquo;</dt>
  28132. <dd><p>Maximum allowed value for each channel, and average over all
  28133. channels.
  28134. </p></dd>
  28135. </dl>
  28136. <a name="Examples-43"></a>
  28137. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-43">32.159.1 Examples</a></h3>
  28138. <ul>
  28139. <li>
  28140. For example:
  28141. <div class="example">
  28142. <pre class="example">movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
  28143. [main][ref] psnr=&quot;stats_file=stats.log&quot; [out]
  28144. </pre></div>
  28145. <p>On this example the input file being processed is compared with the
  28146. reference file &lsquo;<tt>ref_movie.mpg</tt>&rsquo;. The PSNR of each individual frame
  28147. is stored in &lsquo;<tt>stats.log</tt>&rsquo;.
  28148. </p>
  28149. </li><li>
  28150. Another example with different containers:
  28151. <div class="example">
  28152. <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 -
  28153. </pre></div>
  28154. </li></ul>
  28155. <p><a name="pullup"></a>
  28156. </p><a name="pullup-1"></a>
  28157. <h2 class="section"><a href="ffprobe-all.html#toc-pullup-1">32.160 pullup</a></h2>
  28158. <p>Pulldown reversal (inverse telecine) filter, capable of handling mixed
  28159. hard-telecine, 24000/1001 fps progressive, and 30000/1001 fps progressive
  28160. content.
  28161. </p>
  28162. <p>The pullup filter is designed to take advantage of future context in making
  28163. its decisions. This filter is stateless in the sense that it does not lock
  28164. onto a pattern to follow, but it instead looks forward to the following
  28165. fields in order to identify matches and rebuild progressive frames.
  28166. </p>
  28167. <p>To produce content with an even framerate, insert the fps filter after
  28168. pullup, use <code>fps=24000/1001</code> if the input frame rate is 29.97fps,
  28169. <code>fps=24</code> for 30fps and the (rare) telecined 25fps input.
  28170. </p>
  28171. <p>The filter accepts the following options:
  28172. </p>
  28173. <dl compact="compact">
  28174. <dt>&lsquo;<samp>jl</samp>&rsquo;</dt>
  28175. <dt>&lsquo;<samp>jr</samp>&rsquo;</dt>
  28176. <dt>&lsquo;<samp>jt</samp>&rsquo;</dt>
  28177. <dt>&lsquo;<samp>jb</samp>&rsquo;</dt>
  28178. <dd><p>These options set the amount of &quot;junk&quot; to ignore at the left, right, top, and
  28179. bottom of the image, respectively. Left and right are in units of 8 pixels,
  28180. while top and bottom are in units of 2 lines.
  28181. The default is 8 pixels on each side.
  28182. </p>
  28183. </dd>
  28184. <dt>&lsquo;<samp>sb</samp>&rsquo;</dt>
  28185. <dd><p>Set the strict breaks. Setting this option to 1 will reduce the chances of
  28186. filter generating an occasional mismatched frame, but it may also cause an
  28187. excessive number of frames to be dropped during high motion sequences.
  28188. Conversely, setting it to -1 will make filter match fields more easily.
  28189. This may help processing of video where there is slight blurring between
  28190. the fields, but may also cause there to be interlaced frames in the output.
  28191. Default value is <code>0</code>.
  28192. </p>
  28193. </dd>
  28194. <dt>&lsquo;<samp>mp</samp>&rsquo;</dt>
  28195. <dd><p>Set the metric plane to use. It accepts the following values:
  28196. </p><dl compact="compact">
  28197. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  28198. <dd><p>Use luma plane.
  28199. </p>
  28200. </dd>
  28201. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  28202. <dd><p>Use chroma blue plane.
  28203. </p>
  28204. </dd>
  28205. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  28206. <dd><p>Use chroma red plane.
  28207. </p></dd>
  28208. </dl>
  28209. <p>This option may be set to use chroma plane instead of the default luma plane
  28210. for doing filter&rsquo;s computations. This may improve accuracy on very clean
  28211. source material, but more likely will decrease accuracy, especially if there
  28212. is chroma noise (rainbow effect) or any grayscale video.
  28213. The main purpose of setting &lsquo;<samp>mp</samp>&rsquo; to a chroma plane is to reduce CPU
  28214. load and make pullup usable in realtime on slow machines.
  28215. </p></dd>
  28216. </dl>
  28217. <p>For best results (without duplicated frames in the output file) it is
  28218. necessary to change the output frame rate. For example, to inverse
  28219. telecine NTSC input:
  28220. </p><div class="example">
  28221. <pre class="example">ffmpeg -i input -vf pullup -r 24000/1001 ...
  28222. </pre></div>
  28223. <a name="qp"></a>
  28224. <h2 class="section"><a href="ffprobe-all.html#toc-qp">32.161 qp</a></h2>
  28225. <p>Change video quantization parameters (QP).
  28226. </p>
  28227. <p>The filter accepts the following option:
  28228. </p>
  28229. <dl compact="compact">
  28230. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  28231. <dd><p>Set expression for quantization parameter.
  28232. </p></dd>
  28233. </dl>
  28234. <p>The expression is evaluated through the eval API and can contain, among others,
  28235. the following constants:
  28236. </p>
  28237. <dl compact="compact">
  28238. <dt><var>known</var></dt>
  28239. <dd><p>1 if index is not 129, 0 otherwise.
  28240. </p>
  28241. </dd>
  28242. <dt><var>qp</var></dt>
  28243. <dd><p>Sequential index starting from -129 to 128.
  28244. </p></dd>
  28245. </dl>
  28246. <a name="Examples-135"></a>
  28247. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-135">32.161.1 Examples</a></h3>
  28248. <ul>
  28249. <li>
  28250. Some equation like:
  28251. <div class="example">
  28252. <pre class="example">qp=2+2*sin(PI*qp)
  28253. </pre></div>
  28254. </li></ul>
  28255. <a name="random"></a>
  28256. <h2 class="section"><a href="ffprobe-all.html#toc-random">32.162 random</a></h2>
  28257. <p>Flush video frames from internal cache of frames into a random order.
  28258. No frame is discarded.
  28259. Inspired by <a href="#frei0r">frei0r</a> nervous filter.
  28260. </p>
  28261. <dl compact="compact">
  28262. <dt>&lsquo;<samp>frames</samp>&rsquo;</dt>
  28263. <dd><p>Set size in number of frames of internal cache, in range from <code>2</code> to
  28264. <code>512</code>. Default is <code>30</code>.
  28265. </p>
  28266. </dd>
  28267. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  28268. <dd><p>Set seed for random number generator, must be an integer included between
  28269. <code>0</code> and <code>UINT32_MAX</code>. If not specified, or if explicitly set to
  28270. less than <code>0</code>, the filter will try to use a good random seed on a
  28271. best effort basis.
  28272. </p></dd>
  28273. </dl>
  28274. <a name="readeia608"></a>
  28275. <h2 class="section"><a href="ffprobe-all.html#toc-readeia608">32.163 readeia608</a></h2>
  28276. <p>Read closed captioning (EIA-608) information from the top lines of a video frame.
  28277. </p>
  28278. <p>This filter adds frame metadata for <code>lavfi.readeia608.X.cc</code> and
  28279. <code>lavfi.readeia608.X.line</code>, where <code>X</code> is the number of the identified line
  28280. with EIA-608 data (starting from 0). A description of each metadata value follows:
  28281. </p>
  28282. <dl compact="compact">
  28283. <dt>&lsquo;<samp>lavfi.readeia608.X.cc</samp>&rsquo;</dt>
  28284. <dd><p>The two bytes stored as EIA-608 data (printed in hexadecimal).
  28285. </p>
  28286. </dd>
  28287. <dt>&lsquo;<samp>lavfi.readeia608.X.line</samp>&rsquo;</dt>
  28288. <dd><p>The number of the line on which the EIA-608 data was identified and read.
  28289. </p></dd>
  28290. </dl>
  28291. <p>This filter accepts the following options:
  28292. </p>
  28293. <dl compact="compact">
  28294. <dt>&lsquo;<samp>scan_min</samp>&rsquo;</dt>
  28295. <dd><p>Set the line to start scanning for EIA-608 data. Default is <code>0</code>.
  28296. </p>
  28297. </dd>
  28298. <dt>&lsquo;<samp>scan_max</samp>&rsquo;</dt>
  28299. <dd><p>Set the line to end scanning for EIA-608 data. Default is <code>29</code>.
  28300. </p>
  28301. </dd>
  28302. <dt>&lsquo;<samp>spw</samp>&rsquo;</dt>
  28303. <dd><p>Set the ratio of width reserved for sync code detection.
  28304. Default is <code>0.27</code>. Allowed range is <code>[0.1 - 0.7]</code>.
  28305. </p>
  28306. </dd>
  28307. <dt>&lsquo;<samp>chp</samp>&rsquo;</dt>
  28308. <dd><p>Enable checking the parity bit. In the event of a parity error, the filter will output
  28309. <code>0x00</code> for that character. Default is false.
  28310. </p>
  28311. </dd>
  28312. <dt>&lsquo;<samp>lp</samp>&rsquo;</dt>
  28313. <dd><p>Lowpass lines prior to further processing. Default is enabled.
  28314. </p></dd>
  28315. </dl>
  28316. <a name="Examples-69"></a>
  28317. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-69">32.163.1 Examples</a></h3>
  28318. <ul>
  28319. <li>
  28320. Output a csv with presentation time and the first two lines of identified EIA-608 captioning data.
  28321. <div class="example">
  28322. <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
  28323. </pre></div>
  28324. </li></ul>
  28325. <a name="readvitc"></a>
  28326. <h2 class="section"><a href="ffprobe-all.html#toc-readvitc">32.164 readvitc</a></h2>
  28327. <p>Read vertical interval timecode (VITC) information from the top lines of a
  28328. video frame.
  28329. </p>
  28330. <p>The filter adds frame metadata key <code>lavfi.readvitc.tc_str</code> with the
  28331. timecode value, if a valid timecode has been detected. Further metadata key
  28332. <code>lavfi.readvitc.found</code> is set to 0/1 depending on whether
  28333. timecode data has been found or not.
  28334. </p>
  28335. <p>This filter accepts the following options:
  28336. </p>
  28337. <dl compact="compact">
  28338. <dt>&lsquo;<samp>scan_max</samp>&rsquo;</dt>
  28339. <dd><p>Set the maximum number of lines to scan for VITC data. If the value is set to
  28340. <code>-1</code> the full video frame is scanned. Default is <code>45</code>.
  28341. </p>
  28342. </dd>
  28343. <dt>&lsquo;<samp>thr_b</samp>&rsquo;</dt>
  28344. <dd><p>Set the luma threshold for black. Accepts float numbers in the range [0.0,1.0],
  28345. default value is <code>0.2</code>. The value must be equal or less than <code>thr_w</code>.
  28346. </p>
  28347. </dd>
  28348. <dt>&lsquo;<samp>thr_w</samp>&rsquo;</dt>
  28349. <dd><p>Set the luma threshold for white. Accepts float numbers in the range [0.0,1.0],
  28350. default value is <code>0.6</code>. The value must be equal or greater than <code>thr_b</code>.
  28351. </p></dd>
  28352. </dl>
  28353. <a name="Examples-50"></a>
  28354. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-50">32.164.1 Examples</a></h3>
  28355. <ul>
  28356. <li>
  28357. Detect and draw VITC data onto the video frame; if no valid VITC is detected,
  28358. draw <code>--:--:--:--</code> as a placeholder:
  28359. <div class="example">
  28360. <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'
  28361. </pre></div>
  28362. </li></ul>
  28363. <a name="remap"></a>
  28364. <h2 class="section"><a href="ffprobe-all.html#toc-remap">32.165 remap</a></h2>
  28365. <p>Remap pixels using 2nd: Xmap and 3rd: Ymap input video stream.
  28366. </p>
  28367. <p>Destination pixel at position (X, Y) will be picked from source (x, y) position
  28368. where x = Xmap(X, Y) and y = Ymap(X, Y). If mapping values are out of range, zero
  28369. value for pixel will be used for destination pixel.
  28370. </p>
  28371. <p>Xmap and Ymap input video streams must be of same dimensions. Output video stream
  28372. will have Xmap/Ymap video stream dimensions.
  28373. Xmap and Ymap input video streams are 16bit depth, single channel.
  28374. </p>
  28375. <dl compact="compact">
  28376. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  28377. <dd><p>Specify pixel format of output from this filter. Can be <code>color</code> or <code>gray</code>.
  28378. Default is <code>color</code>.
  28379. </p>
  28380. </dd>
  28381. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  28382. <dd><p>Specify the color of the unmapped pixels. For the syntax of this option,
  28383. 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>.
  28384. </p></dd>
  28385. </dl>
  28386. <a name="removegrain"></a>
  28387. <h2 class="section"><a href="ffprobe-all.html#toc-removegrain">32.166 removegrain</a></h2>
  28388. <p>The removegrain filter is a spatial denoiser for progressive video.
  28389. </p>
  28390. <dl compact="compact">
  28391. <dt>&lsquo;<samp>m0</samp>&rsquo;</dt>
  28392. <dd><p>Set mode for the first plane.
  28393. </p>
  28394. </dd>
  28395. <dt>&lsquo;<samp>m1</samp>&rsquo;</dt>
  28396. <dd><p>Set mode for the second plane.
  28397. </p>
  28398. </dd>
  28399. <dt>&lsquo;<samp>m2</samp>&rsquo;</dt>
  28400. <dd><p>Set mode for the third plane.
  28401. </p>
  28402. </dd>
  28403. <dt>&lsquo;<samp>m3</samp>&rsquo;</dt>
  28404. <dd><p>Set mode for the fourth plane.
  28405. </p></dd>
  28406. </dl>
  28407. <p>Range of mode is from 0 to 24. Description of each mode follows:
  28408. </p>
  28409. <dl compact="compact">
  28410. <dt><var>0</var></dt>
  28411. <dd><p>Leave input plane unchanged. Default.
  28412. </p>
  28413. </dd>
  28414. <dt><var>1</var></dt>
  28415. <dd><p>Clips the pixel with the minimum and maximum of the 8 neighbour pixels.
  28416. </p>
  28417. </dd>
  28418. <dt><var>2</var></dt>
  28419. <dd><p>Clips the pixel with the second minimum and maximum of the 8 neighbour pixels.
  28420. </p>
  28421. </dd>
  28422. <dt><var>3</var></dt>
  28423. <dd><p>Clips the pixel with the third minimum and maximum of the 8 neighbour pixels.
  28424. </p>
  28425. </dd>
  28426. <dt><var>4</var></dt>
  28427. <dd><p>Clips the pixel with the fourth minimum and maximum of the 8 neighbour pixels.
  28428. This is equivalent to a median filter.
  28429. </p>
  28430. </dd>
  28431. <dt><var>5</var></dt>
  28432. <dd><p>Line-sensitive clipping giving the minimal change.
  28433. </p>
  28434. </dd>
  28435. <dt><var>6</var></dt>
  28436. <dd><p>Line-sensitive clipping, intermediate.
  28437. </p>
  28438. </dd>
  28439. <dt><var>7</var></dt>
  28440. <dd><p>Line-sensitive clipping, intermediate.
  28441. </p>
  28442. </dd>
  28443. <dt><var>8</var></dt>
  28444. <dd><p>Line-sensitive clipping, intermediate.
  28445. </p>
  28446. </dd>
  28447. <dt><var>9</var></dt>
  28448. <dd><p>Line-sensitive clipping on a line where the neighbours pixels are the closest.
  28449. </p>
  28450. </dd>
  28451. <dt><var>10</var></dt>
  28452. <dd><p>Replaces the target pixel with the closest neighbour.
  28453. </p>
  28454. </dd>
  28455. <dt><var>11</var></dt>
  28456. <dd><p>[1 2 1] horizontal and vertical kernel blur.
  28457. </p>
  28458. </dd>
  28459. <dt><var>12</var></dt>
  28460. <dd><p>Same as mode 11.
  28461. </p>
  28462. </dd>
  28463. <dt><var>13</var></dt>
  28464. <dd><p>Bob mode, interpolates top field from the line where the neighbours
  28465. pixels are the closest.
  28466. </p>
  28467. </dd>
  28468. <dt><var>14</var></dt>
  28469. <dd><p>Bob mode, interpolates bottom field from the line where the neighbours
  28470. pixels are the closest.
  28471. </p>
  28472. </dd>
  28473. <dt><var>15</var></dt>
  28474. <dd><p>Bob mode, interpolates top field. Same as 13 but with a more complicated
  28475. interpolation formula.
  28476. </p>
  28477. </dd>
  28478. <dt><var>16</var></dt>
  28479. <dd><p>Bob mode, interpolates bottom field. Same as 14 but with a more complicated
  28480. interpolation formula.
  28481. </p>
  28482. </dd>
  28483. <dt><var>17</var></dt>
  28484. <dd><p>Clips the pixel with the minimum and maximum of respectively the maximum and
  28485. minimum of each pair of opposite neighbour pixels.
  28486. </p>
  28487. </dd>
  28488. <dt><var>18</var></dt>
  28489. <dd><p>Line-sensitive clipping using opposite neighbours whose greatest distance from
  28490. the current pixel is minimal.
  28491. </p>
  28492. </dd>
  28493. <dt><var>19</var></dt>
  28494. <dd><p>Replaces the pixel with the average of its 8 neighbours.
  28495. </p>
  28496. </dd>
  28497. <dt><var>20</var></dt>
  28498. <dd><p>Averages the 9 pixels ([1 1 1] horizontal and vertical blur).
  28499. </p>
  28500. </dd>
  28501. <dt><var>21</var></dt>
  28502. <dd><p>Clips pixels using the averages of opposite neighbour.
  28503. </p>
  28504. </dd>
  28505. <dt><var>22</var></dt>
  28506. <dd><p>Same as mode 21 but simpler and faster.
  28507. </p>
  28508. </dd>
  28509. <dt><var>23</var></dt>
  28510. <dd><p>Small edge and halo removal, but reputed useless.
  28511. </p>
  28512. </dd>
  28513. <dt><var>24</var></dt>
  28514. <dd><p>Similar as 23.
  28515. </p></dd>
  28516. </dl>
  28517. <a name="removelogo"></a>
  28518. <h2 class="section"><a href="ffprobe-all.html#toc-removelogo">32.167 removelogo</a></h2>
  28519. <p>Suppress a TV station logo, using an image file to determine which
  28520. pixels comprise the logo. It works by filling in the pixels that
  28521. comprise the logo with neighboring pixels.
  28522. </p>
  28523. <p>The filter accepts the following options:
  28524. </p>
  28525. <dl compact="compact">
  28526. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  28527. <dd><p>Set the filter bitmap file, which can be any image format supported by
  28528. libavformat. The width and height of the image file must match those of the
  28529. video stream being processed.
  28530. </p></dd>
  28531. </dl>
  28532. <p>Pixels in the provided bitmap image with a value of zero are not
  28533. considered part of the logo, non-zero pixels are considered part of
  28534. the logo. If you use white (255) for the logo and black (0) for the
  28535. rest, you will be safe. For making the filter bitmap, it is
  28536. recommended to take a screen capture of a black frame with the logo
  28537. visible, and then using a threshold filter followed by the erode
  28538. filter once or twice.
  28539. </p>
  28540. <p>If needed, little splotches can be fixed manually. Remember that if
  28541. logo pixels are not covered, the filter quality will be much
  28542. reduced. Marking too many pixels as part of the logo does not hurt as
  28543. much, but it will increase the amount of blurring needed to cover over
  28544. the image and will destroy more information than necessary, and extra
  28545. pixels will slow things down on a large logo.
  28546. </p>
  28547. <a name="repeatfields"></a>
  28548. <h2 class="section"><a href="ffprobe-all.html#toc-repeatfields">32.168 repeatfields</a></h2>
  28549. <p>This filter uses the repeat_field flag from the Video ES headers and hard repeats
  28550. fields based on its value.
  28551. </p>
  28552. <a name="reverse"></a>
  28553. <h2 class="section"><a href="ffprobe-all.html#toc-reverse">32.169 reverse</a></h2>
  28554. <p>Reverse a video clip.
  28555. </p>
  28556. <p>Warning: This filter requires memory to buffer the entire clip, so trimming
  28557. is suggested.
  28558. </p>
  28559. <a name="Examples-160"></a>
  28560. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-160">32.169.1 Examples</a></h3>
  28561. <ul>
  28562. <li>
  28563. Take the first 5 seconds of a clip, and reverse it.
  28564. <div class="example">
  28565. <pre class="example">trim=end=5,reverse
  28566. </pre></div>
  28567. </li></ul>
  28568. <a name="rgbashift"></a>
  28569. <h2 class="section"><a href="ffprobe-all.html#toc-rgbashift">32.170 rgbashift</a></h2>
  28570. <p>Shift R/G/B/A pixels horizontally and/or vertically.
  28571. </p>
  28572. <p>The filter accepts the following options:
  28573. </p><dl compact="compact">
  28574. <dt>&lsquo;<samp>rh</samp>&rsquo;</dt>
  28575. <dd><p>Set amount to shift red horizontally.
  28576. </p></dd>
  28577. <dt>&lsquo;<samp>rv</samp>&rsquo;</dt>
  28578. <dd><p>Set amount to shift red vertically.
  28579. </p></dd>
  28580. <dt>&lsquo;<samp>gh</samp>&rsquo;</dt>
  28581. <dd><p>Set amount to shift green horizontally.
  28582. </p></dd>
  28583. <dt>&lsquo;<samp>gv</samp>&rsquo;</dt>
  28584. <dd><p>Set amount to shift green vertically.
  28585. </p></dd>
  28586. <dt>&lsquo;<samp>bh</samp>&rsquo;</dt>
  28587. <dd><p>Set amount to shift blue horizontally.
  28588. </p></dd>
  28589. <dt>&lsquo;<samp>bv</samp>&rsquo;</dt>
  28590. <dd><p>Set amount to shift blue vertically.
  28591. </p></dd>
  28592. <dt>&lsquo;<samp>ah</samp>&rsquo;</dt>
  28593. <dd><p>Set amount to shift alpha horizontally.
  28594. </p></dd>
  28595. <dt>&lsquo;<samp>av</samp>&rsquo;</dt>
  28596. <dd><p>Set amount to shift alpha vertically.
  28597. </p></dd>
  28598. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  28599. <dd><p>Set edge mode, can be <var>smear</var>, default, or <var>warp</var>.
  28600. </p></dd>
  28601. </dl>
  28602. <a name="Commands-44"></a>
  28603. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-44">32.170.1 Commands</a></h3>
  28604. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  28605. </p>
  28606. <a name="roberts"></a>
  28607. <h2 class="section"><a href="ffprobe-all.html#toc-roberts">32.171 roberts</a></h2>
  28608. <p>Apply roberts cross operator to input video stream.
  28609. </p>
  28610. <p>The filter accepts the following option:
  28611. </p>
  28612. <dl compact="compact">
  28613. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  28614. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  28615. By default value 0xf, all planes will be processed.
  28616. </p>
  28617. </dd>
  28618. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  28619. <dd><p>Set value which will be multiplied with filtered result.
  28620. </p>
  28621. </dd>
  28622. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  28623. <dd><p>Set value which will be added to filtered result.
  28624. </p></dd>
  28625. </dl>
  28626. <a name="rotate"></a>
  28627. <h2 class="section"><a href="ffprobe-all.html#toc-rotate">32.172 rotate</a></h2>
  28628. <p>Rotate video by an arbitrary angle expressed in radians.
  28629. </p>
  28630. <p>The filter accepts the following options:
  28631. </p>
  28632. <p>A description of the optional parameters follows.
  28633. </p><dl compact="compact">
  28634. <dt>&lsquo;<samp>angle, a</samp>&rsquo;</dt>
  28635. <dd><p>Set an expression for the angle by which to rotate the input video
  28636. clockwise, expressed as a number of radians. A negative value will
  28637. result in a counter-clockwise rotation. By default it is set to &quot;0&quot;.
  28638. </p>
  28639. <p>This expression is evaluated for each frame.
  28640. </p>
  28641. </dd>
  28642. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  28643. <dd><p>Set the output width expression, default value is &quot;iw&quot;.
  28644. This expression is evaluated just once during configuration.
  28645. </p>
  28646. </dd>
  28647. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  28648. <dd><p>Set the output height expression, default value is &quot;ih&quot;.
  28649. This expression is evaluated just once during configuration.
  28650. </p>
  28651. </dd>
  28652. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  28653. <dd><p>Enable bilinear interpolation if set to 1, a value of 0 disables
  28654. it. Default value is 1.
  28655. </p>
  28656. </dd>
  28657. <dt>&lsquo;<samp>fillcolor, c</samp>&rsquo;</dt>
  28658. <dd><p>Set the color used to fill the output area not covered by the rotated
  28659. image. For the general syntax of this option, check the
  28660. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  28661. If the special value &quot;none&quot; is selected then no
  28662. background is printed (useful for example if the background is never shown).
  28663. </p>
  28664. <p>Default value is &quot;black&quot;.
  28665. </p></dd>
  28666. </dl>
  28667. <p>The expressions for the angle and the output size can contain the
  28668. following constants and functions:
  28669. </p>
  28670. <dl compact="compact">
  28671. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  28672. <dd><p>sequential number of the input frame, starting from 0. It is always NAN
  28673. before the first frame is filtered.
  28674. </p>
  28675. </dd>
  28676. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  28677. <dd><p>time in seconds of the input frame, it is set to 0 when the filter is
  28678. configured. It is always NAN before the first frame is filtered.
  28679. </p>
  28680. </dd>
  28681. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  28682. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  28683. <dd><p>horizontal and vertical chroma subsample values. For example for the
  28684. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  28685. </p>
  28686. </dd>
  28687. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  28688. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  28689. <dd><p>the input video width and height
  28690. </p>
  28691. </dd>
  28692. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  28693. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  28694. <dd><p>the output width and height, that is the size of the padded area as
  28695. specified by the <var>width</var> and <var>height</var> expressions
  28696. </p>
  28697. </dd>
  28698. <dt>&lsquo;<samp>rotw(a)</samp>&rsquo;</dt>
  28699. <dt>&lsquo;<samp>roth(a)</samp>&rsquo;</dt>
  28700. <dd><p>the minimal width/height required for completely containing the input
  28701. video rotated by <var>a</var> radians.
  28702. </p>
  28703. <p>These are only available when computing the &lsquo;<samp>out_w</samp>&rsquo; and
  28704. &lsquo;<samp>out_h</samp>&rsquo; expressions.
  28705. </p></dd>
  28706. </dl>
  28707. <a name="Examples-97"></a>
  28708. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-97">32.172.1 Examples</a></h3>
  28709. <ul>
  28710. <li>
  28711. Rotate the input by PI/6 radians clockwise:
  28712. <div class="example">
  28713. <pre class="example">rotate=PI/6
  28714. </pre></div>
  28715. </li><li>
  28716. Rotate the input by PI/6 radians counter-clockwise:
  28717. <div class="example">
  28718. <pre class="example">rotate=-PI/6
  28719. </pre></div>
  28720. </li><li>
  28721. Rotate the input by 45 degrees clockwise:
  28722. <div class="example">
  28723. <pre class="example">rotate=45*PI/180
  28724. </pre></div>
  28725. </li><li>
  28726. Apply a constant rotation with period T, starting from an angle of PI/3:
  28727. <div class="example">
  28728. <pre class="example">rotate=PI/3+2*PI*t/T
  28729. </pre></div>
  28730. </li><li>
  28731. Make the input video rotation oscillating with a period of T
  28732. seconds and an amplitude of A radians:
  28733. <div class="example">
  28734. <pre class="example">rotate=A*sin(2*PI/T*t)
  28735. </pre></div>
  28736. </li><li>
  28737. Rotate the video, output size is chosen so that the whole rotating
  28738. input video is always completely contained in the output:
  28739. <div class="example">
  28740. <pre class="example">rotate='2*PI*t:ow=hypot(iw,ih):oh=ow'
  28741. </pre></div>
  28742. </li><li>
  28743. Rotate the video, reduce the output size so that no background is ever
  28744. shown:
  28745. <div class="example">
  28746. <pre class="example">rotate=2*PI*t:ow='min(iw,ih)/sqrt(2)':oh=ow:c=none
  28747. </pre></div>
  28748. </li></ul>
  28749. <a name="Commands-43"></a>
  28750. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-43">32.172.2 Commands</a></h3>
  28751. <p>The filter supports the following commands:
  28752. </p>
  28753. <dl compact="compact">
  28754. <dt>&lsquo;<samp>a, angle</samp>&rsquo;</dt>
  28755. <dd><p>Set the angle expression.
  28756. The command accepts the same syntax of the corresponding option.
  28757. </p>
  28758. <p>If the specified expression is not valid, it is kept at its current
  28759. value.
  28760. </p></dd>
  28761. </dl>
  28762. <a name="sab"></a>
  28763. <h2 class="section"><a href="ffprobe-all.html#toc-sab">32.173 sab</a></h2>
  28764. <p>Apply Shape Adaptive Blur.
  28765. </p>
  28766. <p>The filter accepts the following options:
  28767. </p>
  28768. <dl compact="compact">
  28769. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  28770. <dd><p>Set luma blur filter strength, must be a value in range 0.1-4.0, default
  28771. value is 1.0. A greater value will result in a more blurred image, and
  28772. in slower processing.
  28773. </p>
  28774. </dd>
  28775. <dt>&lsquo;<samp>luma_pre_filter_radius, lpfr</samp>&rsquo;</dt>
  28776. <dd><p>Set luma pre-filter radius, must be a value in the 0.1-2.0 range, default
  28777. value is 1.0.
  28778. </p>
  28779. </dd>
  28780. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  28781. <dd><p>Set luma maximum difference between pixels to still be considered, must
  28782. be a value in the 0.1-100.0 range, default value is 1.0.
  28783. </p>
  28784. </dd>
  28785. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  28786. <dd><p>Set chroma blur filter strength, must be a value in range -0.9-4.0. A
  28787. greater value will result in a more blurred image, and in slower
  28788. processing.
  28789. </p>
  28790. </dd>
  28791. <dt>&lsquo;<samp>chroma_pre_filter_radius, cpfr</samp>&rsquo;</dt>
  28792. <dd><p>Set chroma pre-filter radius, must be a value in the -0.9-2.0 range.
  28793. </p>
  28794. </dd>
  28795. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  28796. <dd><p>Set chroma maximum difference between pixels to still be considered,
  28797. must be a value in the -0.9-100.0 range.
  28798. </p></dd>
  28799. </dl>
  28800. <p>Each chroma option value, if not explicitly specified, is set to the
  28801. corresponding luma option value.
  28802. </p>
  28803. <p><a name="scale"></a>
  28804. </p><a name="scale-1"></a>
  28805. <h2 class="section"><a href="ffprobe-all.html#toc-scale-1">32.174 scale</a></h2>
  28806. <p>Scale (resize) the input video, using the libswscale library.
  28807. </p>
  28808. <p>The scale filter forces the output display aspect ratio to be the same
  28809. of the input, by changing the output sample aspect ratio.
  28810. </p>
  28811. <p>If the input image format is different from the format requested by
  28812. the next filter, the scale filter will convert the input to the
  28813. requested format.
  28814. </p>
  28815. <a name="Options-28"></a>
  28816. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-28">32.174.1 Options</a></h3>
  28817. <p>The filter accepts the following options, or any of the options
  28818. supported by the libswscale scaler.
  28819. </p>
  28820. <p>See <a href="ffmpeg-scaler.html#scaler_005foptions">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for
  28821. the complete list of scaler options.
  28822. </p>
  28823. <dl compact="compact">
  28824. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  28825. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  28826. <dd><p>Set the output video dimension expression. Default value is the input
  28827. dimension.
  28828. </p>
  28829. <p>If the <var>width</var> or <var>w</var> value is 0, the input width is used for
  28830. the output. If the <var>height</var> or <var>h</var> value is 0, the input height
  28831. is used for the output.
  28832. </p>
  28833. <p>If one and only one of the values is -n with n &gt;= 1, the scale filter
  28834. will use a value that maintains the aspect ratio of the input image,
  28835. calculated from the other specified dimension. After that it will,
  28836. however, make sure that the calculated dimension is divisible by n and
  28837. adjust the value if necessary.
  28838. </p>
  28839. <p>If both values are -n with n &gt;= 1, the behavior will be identical to
  28840. both values being set to 0 as previously detailed.
  28841. </p>
  28842. <p>See below for the list of accepted constants for use in the dimension
  28843. expression.
  28844. </p>
  28845. </dd>
  28846. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  28847. <dd><p>Specify when to evaluate <var>width</var> and <var>height</var> expression. It accepts the following values:
  28848. </p>
  28849. <dl compact="compact">
  28850. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  28851. <dd><p>Only evaluate expressions once during the filter initialization or when a command is processed.
  28852. </p>
  28853. </dd>
  28854. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  28855. <dd><p>Evaluate expressions for each incoming frame.
  28856. </p>
  28857. </dd>
  28858. </dl>
  28859. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  28860. </p>
  28861. </dd>
  28862. <dt>&lsquo;<samp>interl</samp>&rsquo;</dt>
  28863. <dd><p>Set the interlacing mode. It accepts the following values:
  28864. </p>
  28865. <dl compact="compact">
  28866. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  28867. <dd><p>Force interlaced aware scaling.
  28868. </p>
  28869. </dd>
  28870. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  28871. <dd><p>Do not apply interlaced scaling.
  28872. </p>
  28873. </dd>
  28874. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  28875. <dd><p>Select interlaced aware scaling depending on whether the source frames
  28876. are flagged as interlaced or not.
  28877. </p></dd>
  28878. </dl>
  28879. <p>Default value is &lsquo;<samp>0</samp>&rsquo;.
  28880. </p>
  28881. </dd>
  28882. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  28883. <dd><p>Set libswscale scaling flags. See
  28884. <a href="ffmpeg-scaler.html#sws_005fflags">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for the
  28885. complete list of values. If not explicitly specified the filter applies
  28886. the default flags.
  28887. </p>
  28888. </dd>
  28889. <dt>&lsquo;<samp>param0, param1</samp>&rsquo;</dt>
  28890. <dd><p>Set libswscale input parameters for scaling algorithms that need them. See
  28891. <a href="ffmpeg-scaler.html#sws_005fparams">(ffmpeg-scaler)the ffmpeg-scaler manual</a> for the
  28892. complete documentation. If not explicitly specified the filter applies
  28893. empty parameters.
  28894. </p>
  28895. </dd>
  28896. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  28897. <dd><p>Set the video size. For the syntax of this option, check the
  28898. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  28899. </p>
  28900. </dd>
  28901. <dt>&lsquo;<samp>in_color_matrix</samp>&rsquo;</dt>
  28902. <dt>&lsquo;<samp>out_color_matrix</samp>&rsquo;</dt>
  28903. <dd><p>Set in/output YCbCr color space type.
  28904. </p>
  28905. <p>This allows the autodetected value to be overridden as well as allows forcing
  28906. a specific value used for the output and encoder.
  28907. </p>
  28908. <p>If not specified, the color space type depends on the pixel format.
  28909. </p>
  28910. <p>Possible values:
  28911. </p>
  28912. <dl compact="compact">
  28913. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  28914. <dd><p>Choose automatically.
  28915. </p>
  28916. </dd>
  28917. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  28918. <dd><p>Format conforming to International Telecommunication Union (ITU)
  28919. Recommendation BT.709.
  28920. </p>
  28921. </dd>
  28922. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  28923. <dd><p>Set color space conforming to the United States Federal Communications
  28924. Commission (FCC) Code of Federal Regulations (CFR) Title 47 (2003) 73.682 (a).
  28925. </p>
  28926. </dd>
  28927. <dt>&lsquo;<samp>bt601</samp>&rsquo;</dt>
  28928. <dt>&lsquo;<samp>bt470</samp>&rsquo;</dt>
  28929. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  28930. <dd><p>Set color space conforming to:
  28931. </p>
  28932. <ul>
  28933. <li>
  28934. ITU Radiocommunication Sector (ITU-R) Recommendation BT.601
  28935. </li><li>
  28936. ITU-R Rec. BT.470-6 (1998) Systems B, B1, and G
  28937. </li><li>
  28938. Society of Motion Picture and Television Engineers (SMPTE) ST 170:2004
  28939. </li></ul>
  28940. </dd>
  28941. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  28942. <dd><p>Set color space conforming to SMPTE ST 240:1999.
  28943. </p>
  28944. </dd>
  28945. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  28946. <dd><p>Set color space conforming to ITU-R BT.2020 non-constant luminance system.
  28947. </p></dd>
  28948. </dl>
  28949. </dd>
  28950. <dt>&lsquo;<samp>in_range</samp>&rsquo;</dt>
  28951. <dt>&lsquo;<samp>out_range</samp>&rsquo;</dt>
  28952. <dd><p>Set in/output YCbCr sample range.
  28953. </p>
  28954. <p>This allows the autodetected value to be overridden as well as allows forcing
  28955. a specific value used for the output and encoder. If not specified, the
  28956. range depends on the pixel format. Possible values:
  28957. </p>
  28958. <dl compact="compact">
  28959. <dt>&lsquo;<samp>auto/unknown</samp>&rsquo;</dt>
  28960. <dd><p>Choose automatically.
  28961. </p>
  28962. </dd>
  28963. <dt>&lsquo;<samp>jpeg/full/pc</samp>&rsquo;</dt>
  28964. <dd><p>Set full range (0-255 in case of 8-bit luma).
  28965. </p>
  28966. </dd>
  28967. <dt>&lsquo;<samp>mpeg/limited/tv</samp>&rsquo;</dt>
  28968. <dd><p>Set &quot;MPEG&quot; range (16-235 in case of 8-bit luma).
  28969. </p></dd>
  28970. </dl>
  28971. </dd>
  28972. <dt>&lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;</dt>
  28973. <dd><p>Enable decreasing or increasing output video width or height if necessary to
  28974. keep the original aspect ratio. Possible values:
  28975. </p>
  28976. <dl compact="compact">
  28977. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  28978. <dd><p>Scale the video as specified and disable this feature.
  28979. </p>
  28980. </dd>
  28981. <dt>&lsquo;<samp>decrease</samp>&rsquo;</dt>
  28982. <dd><p>The output video dimensions will automatically be decreased if needed.
  28983. </p>
  28984. </dd>
  28985. <dt>&lsquo;<samp>increase</samp>&rsquo;</dt>
  28986. <dd><p>The output video dimensions will automatically be increased if needed.
  28987. </p>
  28988. </dd>
  28989. </dl>
  28990. <p>One useful instance of this option is that when you know a specific device&rsquo;s
  28991. maximum allowed resolution, you can use this to limit the output video to
  28992. that, while retaining the aspect ratio. For example, device A allows
  28993. 1280x720 playback, and your video is 1920x800. Using this option (set it to
  28994. decrease) and specifying 1280x720 to the command line makes the output
  28995. 1280x533.
  28996. </p>
  28997. <p>Please note that this is a different thing than specifying -1 for &lsquo;<samp>w</samp>&rsquo;
  28998. or &lsquo;<samp>h</samp>&rsquo;, you still need to specify the output resolution for this option
  28999. to work.
  29000. </p>
  29001. </dd>
  29002. <dt>&lsquo;<samp>force_divisible_by</samp>&rsquo;</dt>
  29003. <dd><p>Ensures that both the output dimensions, width and height, are divisible by the
  29004. given integer when used together with &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;. This
  29005. works similar to using <code>-n</code> in the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options.
  29006. </p>
  29007. <p>This option respects the value set for &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;,
  29008. increasing or decreasing the resolution accordingly. The video&rsquo;s aspect ratio
  29009. may be slightly modified.
  29010. </p>
  29011. <p>This option can be handy if you need to have a video fit within or exceed
  29012. a defined resolution using &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo; but also have
  29013. encoder restrictions on width or height divisibility.
  29014. </p>
  29015. </dd>
  29016. </dl>
  29017. <p>The values of the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options are expressions
  29018. containing the following constants:
  29019. </p>
  29020. <dl compact="compact">
  29021. <dt><var>in_w</var></dt>
  29022. <dt><var>in_h</var></dt>
  29023. <dd><p>The input width and height
  29024. </p>
  29025. </dd>
  29026. <dt><var>iw</var></dt>
  29027. <dt><var>ih</var></dt>
  29028. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  29029. </p>
  29030. </dd>
  29031. <dt><var>out_w</var></dt>
  29032. <dt><var>out_h</var></dt>
  29033. <dd><p>The output (scaled) width and height
  29034. </p>
  29035. </dd>
  29036. <dt><var>ow</var></dt>
  29037. <dt><var>oh</var></dt>
  29038. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>
  29039. </p>
  29040. </dd>
  29041. <dt><var>a</var></dt>
  29042. <dd><p>The same as <var>iw</var> / <var>ih</var>
  29043. </p>
  29044. </dd>
  29045. <dt><var>sar</var></dt>
  29046. <dd><p>input sample aspect ratio
  29047. </p>
  29048. </dd>
  29049. <dt><var>dar</var></dt>
  29050. <dd><p>The input display aspect ratio. Calculated from <code>(iw / ih) * sar</code>.
  29051. </p>
  29052. </dd>
  29053. <dt><var>hsub</var></dt>
  29054. <dt><var>vsub</var></dt>
  29055. <dd><p>horizontal and vertical input chroma subsample values. For example for the
  29056. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29057. </p>
  29058. </dd>
  29059. <dt><var>ohsub</var></dt>
  29060. <dt><var>ovsub</var></dt>
  29061. <dd><p>horizontal and vertical output chroma subsample values. For example for the
  29062. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29063. </p>
  29064. </dd>
  29065. <dt><var>n</var></dt>
  29066. <dd><p>The (sequential) number of the input frame, starting from 0.
  29067. Only available with <code>eval=frame</code>.
  29068. </p>
  29069. </dd>
  29070. <dt><var>t</var></dt>
  29071. <dd><p>The presentation timestamp of the input frame, expressed as a number of
  29072. seconds. Only available with <code>eval=frame</code>.
  29073. </p>
  29074. </dd>
  29075. <dt><var>pos</var></dt>
  29076. <dd><p>The position (byte offset) of the frame in the input stream, or NaN if
  29077. this information is unavailable and/or meaningless (for example in case of synthetic video).
  29078. Only available with <code>eval=frame</code>.
  29079. </p></dd>
  29080. </dl>
  29081. <a name="Examples-133"></a>
  29082. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-133">32.174.2 Examples</a></h3>
  29083. <ul>
  29084. <li>
  29085. Scale the input video to a size of 200x100
  29086. <div class="example">
  29087. <pre class="example">scale=w=200:h=100
  29088. </pre></div>
  29089. <p>This is equivalent to:
  29090. </p><div class="example">
  29091. <pre class="example">scale=200:100
  29092. </pre></div>
  29093. <p>or:
  29094. </p><div class="example">
  29095. <pre class="example">scale=200x100
  29096. </pre></div>
  29097. </li><li>
  29098. Specify a size abbreviation for the output size:
  29099. <div class="example">
  29100. <pre class="example">scale=qcif
  29101. </pre></div>
  29102. <p>which can also be written as:
  29103. </p><div class="example">
  29104. <pre class="example">scale=size=qcif
  29105. </pre></div>
  29106. </li><li>
  29107. Scale the input to 2x:
  29108. <div class="example">
  29109. <pre class="example">scale=w=2*iw:h=2*ih
  29110. </pre></div>
  29111. </li><li>
  29112. The above is the same as:
  29113. <div class="example">
  29114. <pre class="example">scale=2*in_w:2*in_h
  29115. </pre></div>
  29116. </li><li>
  29117. Scale the input to 2x with forced interlaced scaling:
  29118. <div class="example">
  29119. <pre class="example">scale=2*iw:2*ih:interl=1
  29120. </pre></div>
  29121. </li><li>
  29122. Scale the input to half size:
  29123. <div class="example">
  29124. <pre class="example">scale=w=iw/2:h=ih/2
  29125. </pre></div>
  29126. </li><li>
  29127. Increase the width, and set the height to the same size:
  29128. <div class="example">
  29129. <pre class="example">scale=3/2*iw:ow
  29130. </pre></div>
  29131. </li><li>
  29132. Seek Greek harmony:
  29133. <div class="example">
  29134. <pre class="example">scale=iw:1/PHI*iw
  29135. scale=ih*PHI:ih
  29136. </pre></div>
  29137. </li><li>
  29138. Increase the height, and set the width to 3/2 of the height:
  29139. <div class="example">
  29140. <pre class="example">scale=w=3/2*oh:h=3/5*ih
  29141. </pre></div>
  29142. </li><li>
  29143. Increase the size, making the size a multiple of the chroma
  29144. subsample values:
  29145. <div class="example">
  29146. <pre class="example">scale=&quot;trunc(3/2*iw/hsub)*hsub:trunc(3/2*ih/vsub)*vsub&quot;
  29147. </pre></div>
  29148. </li><li>
  29149. Increase the width to a maximum of 500 pixels,
  29150. keeping the same aspect ratio as the input:
  29151. <div class="example">
  29152. <pre class="example">scale=w='min(500\, iw*3/2):h=-1'
  29153. </pre></div>
  29154. </li><li>
  29155. Make pixels square by combining scale and setsar:
  29156. <div class="example">
  29157. <pre class="example">scale='trunc(ih*dar):ih',setsar=1/1
  29158. </pre></div>
  29159. </li><li>
  29160. Make pixels square by combining scale and setsar,
  29161. making sure the resulting resolution is even (required by some codecs):
  29162. <div class="example">
  29163. <pre class="example">scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1
  29164. </pre></div>
  29165. </li></ul>
  29166. <a name="Commands-63"></a>
  29167. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-63">32.174.3 Commands</a></h3>
  29168. <p>This filter supports the following commands:
  29169. </p><dl compact="compact">
  29170. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  29171. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  29172. <dd><p>Set the output video dimension expression.
  29173. The command accepts the same syntax of the corresponding option.
  29174. </p>
  29175. <p>If the specified expression is not valid, it is kept at its current
  29176. value.
  29177. </p></dd>
  29178. </dl>
  29179. <a name="scale_005fnpp"></a>
  29180. <h2 class="section"><a href="ffprobe-all.html#toc-scale_005fnpp">32.175 scale_npp</a></h2>
  29181. <p>Use the NVIDIA Performance Primitives (libnpp) to perform scaling and/or pixel
  29182. format conversion on CUDA video frames. Setting the output width and height
  29183. works in the same way as for the <var>scale</var> filter.
  29184. </p>
  29185. <p>The following additional options are accepted:
  29186. </p><dl compact="compact">
  29187. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  29188. <dd><p>The pixel format of the output CUDA frames. If set to the string &quot;same&quot; (the
  29189. default), the input format will be kept. Note that automatic format negotiation
  29190. and conversion is not yet supported for hardware frames
  29191. </p>
  29192. </dd>
  29193. <dt>&lsquo;<samp>interp_algo</samp>&rsquo;</dt>
  29194. <dd><p>The interpolation algorithm used for resizing. One of the following:
  29195. </p><dl compact="compact">
  29196. <dt>&lsquo;<samp>nn</samp>&rsquo;</dt>
  29197. <dd><p>Nearest neighbour.
  29198. </p>
  29199. </dd>
  29200. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  29201. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  29202. <dt>&lsquo;<samp>cubic2p_bspline</samp>&rsquo;</dt>
  29203. <dd><p>2-parameter cubic (B=1, C=0)
  29204. </p>
  29205. </dd>
  29206. <dt>&lsquo;<samp>cubic2p_catmullrom</samp>&rsquo;</dt>
  29207. <dd><p>2-parameter cubic (B=0, C=1/2)
  29208. </p>
  29209. </dd>
  29210. <dt>&lsquo;<samp>cubic2p_b05c03</samp>&rsquo;</dt>
  29211. <dd><p>2-parameter cubic (B=1/2, C=3/10)
  29212. </p>
  29213. </dd>
  29214. <dt>&lsquo;<samp>super</samp>&rsquo;</dt>
  29215. <dd><p>Supersampling
  29216. </p>
  29217. </dd>
  29218. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  29219. </dl>
  29220. </dd>
  29221. <dt>&lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;</dt>
  29222. <dd><p>Enable decreasing or increasing output video width or height if necessary to
  29223. keep the original aspect ratio. Possible values:
  29224. </p>
  29225. <dl compact="compact">
  29226. <dt>&lsquo;<samp>disable</samp>&rsquo;</dt>
  29227. <dd><p>Scale the video as specified and disable this feature.
  29228. </p>
  29229. </dd>
  29230. <dt>&lsquo;<samp>decrease</samp>&rsquo;</dt>
  29231. <dd><p>The output video dimensions will automatically be decreased if needed.
  29232. </p>
  29233. </dd>
  29234. <dt>&lsquo;<samp>increase</samp>&rsquo;</dt>
  29235. <dd><p>The output video dimensions will automatically be increased if needed.
  29236. </p>
  29237. </dd>
  29238. </dl>
  29239. <p>One useful instance of this option is that when you know a specific device&rsquo;s
  29240. maximum allowed resolution, you can use this to limit the output video to
  29241. that, while retaining the aspect ratio. For example, device A allows
  29242. 1280x720 playback, and your video is 1920x800. Using this option (set it to
  29243. decrease) and specifying 1280x720 to the command line makes the output
  29244. 1280x533.
  29245. </p>
  29246. <p>Please note that this is a different thing than specifying -1 for &lsquo;<samp>w</samp>&rsquo;
  29247. or &lsquo;<samp>h</samp>&rsquo;, you still need to specify the output resolution for this option
  29248. to work.
  29249. </p>
  29250. </dd>
  29251. <dt>&lsquo;<samp>force_divisible_by</samp>&rsquo;</dt>
  29252. <dd><p>Ensures that both the output dimensions, width and height, are divisible by the
  29253. given integer when used together with &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;. This
  29254. works similar to using <code>-n</code> in the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options.
  29255. </p>
  29256. <p>This option respects the value set for &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo;,
  29257. increasing or decreasing the resolution accordingly. The video&rsquo;s aspect ratio
  29258. may be slightly modified.
  29259. </p>
  29260. <p>This option can be handy if you need to have a video fit within or exceed
  29261. a defined resolution using &lsquo;<samp>force_original_aspect_ratio</samp>&rsquo; but also have
  29262. encoder restrictions on width or height divisibility.
  29263. </p>
  29264. </dd>
  29265. </dl>
  29266. <a name="scale2ref"></a>
  29267. <h2 class="section"><a href="ffprobe-all.html#toc-scale2ref">32.176 scale2ref</a></h2>
  29268. <p>Scale (resize) the input video, based on a reference video.
  29269. </p>
  29270. <p>See the scale filter for available options, scale2ref supports the same but
  29271. uses the reference video instead of the main input as basis. scale2ref also
  29272. supports the following additional constants for the &lsquo;<samp>w</samp>&rsquo; and
  29273. &lsquo;<samp>h</samp>&rsquo; options:
  29274. </p>
  29275. <dl compact="compact">
  29276. <dt><var>main_w</var></dt>
  29277. <dt><var>main_h</var></dt>
  29278. <dd><p>The main input video&rsquo;s width and height
  29279. </p>
  29280. </dd>
  29281. <dt><var>main_a</var></dt>
  29282. <dd><p>The same as <var>main_w</var> / <var>main_h</var>
  29283. </p>
  29284. </dd>
  29285. <dt><var>main_sar</var></dt>
  29286. <dd><p>The main input video&rsquo;s sample aspect ratio
  29287. </p>
  29288. </dd>
  29289. <dt><var>main_dar, mdar</var></dt>
  29290. <dd><p>The main input video&rsquo;s display aspect ratio. Calculated from
  29291. <code>(main_w / main_h) * main_sar</code>.
  29292. </p>
  29293. </dd>
  29294. <dt><var>main_hsub</var></dt>
  29295. <dt><var>main_vsub</var></dt>
  29296. <dd><p>The main input video&rsquo;s horizontal and vertical chroma subsample values.
  29297. For example for the pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var>
  29298. is 1.
  29299. </p>
  29300. </dd>
  29301. <dt><var>main_n</var></dt>
  29302. <dd><p>The (sequential) number of the main input frame, starting from 0.
  29303. Only available with <code>eval=frame</code>.
  29304. </p>
  29305. </dd>
  29306. <dt><var>main_t</var></dt>
  29307. <dd><p>The presentation timestamp of the main input frame, expressed as a number of
  29308. seconds. Only available with <code>eval=frame</code>.
  29309. </p>
  29310. </dd>
  29311. <dt><var>main_pos</var></dt>
  29312. <dd><p>The position (byte offset) of the frame in the main input stream, or NaN if
  29313. this information is unavailable and/or meaningless (for example in case of synthetic video).
  29314. Only available with <code>eval=frame</code>.
  29315. </p></dd>
  29316. </dl>
  29317. <a name="Examples-62"></a>
  29318. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-62">32.176.1 Examples</a></h3>
  29319. <ul>
  29320. <li>
  29321. Scale a subtitle stream (b) to match the main video (a) in size before overlaying
  29322. <div class="example">
  29323. <pre class="example">'scale2ref[b][a];[a][b]overlay'
  29324. </pre></div>
  29325. </li><li>
  29326. Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio.
  29327. <div class="example">
  29328. <pre class="example">[logo-in][video-in]scale2ref=w=oh*mdar:h=ih/10[logo-out][video-out]
  29329. </pre></div>
  29330. </li></ul>
  29331. <a name="Commands-55"></a>
  29332. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-55">32.176.2 Commands</a></h3>
  29333. <p>This filter supports the following commands:
  29334. </p><dl compact="compact">
  29335. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  29336. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  29337. <dd><p>Set the output video dimension expression.
  29338. The command accepts the same syntax of the corresponding option.
  29339. </p>
  29340. <p>If the specified expression is not valid, it is kept at its current
  29341. value.
  29342. </p></dd>
  29343. </dl>
  29344. <a name="scroll"></a>
  29345. <h2 class="section"><a href="ffprobe-all.html#toc-scroll">32.177 scroll</a></h2>
  29346. <p>Scroll input video horizontally and/or vertically by constant speed.
  29347. </p>
  29348. <p>The filter accepts the following options:
  29349. </p><dl compact="compact">
  29350. <dt>&lsquo;<samp>horizontal, h</samp>&rsquo;</dt>
  29351. <dd><p>Set the horizontal scrolling speed. Default is 0. Allowed range is from -1 to 1.
  29352. Negative values changes scrolling direction.
  29353. </p>
  29354. </dd>
  29355. <dt>&lsquo;<samp>vertical, v</samp>&rsquo;</dt>
  29356. <dd><p>Set the vertical scrolling speed. Default is 0. Allowed range is from -1 to 1.
  29357. Negative values changes scrolling direction.
  29358. </p>
  29359. </dd>
  29360. <dt>&lsquo;<samp>hpos</samp>&rsquo;</dt>
  29361. <dd><p>Set the initial horizontal scrolling position. Default is 0. Allowed range is from 0 to 1.
  29362. </p>
  29363. </dd>
  29364. <dt>&lsquo;<samp>vpos</samp>&rsquo;</dt>
  29365. <dd><p>Set the initial vertical scrolling position. Default is 0. Allowed range is from 0 to 1.
  29366. </p></dd>
  29367. </dl>
  29368. <a name="Commands-9"></a>
  29369. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-9">32.177.1 Commands</a></h3>
  29370. <p>This filter supports the following <a href="#commands">commands</a>:
  29371. </p><dl compact="compact">
  29372. <dt>&lsquo;<samp>horizontal, h</samp>&rsquo;</dt>
  29373. <dd><p>Set the horizontal scrolling speed.
  29374. </p></dd>
  29375. <dt>&lsquo;<samp>vertical, v</samp>&rsquo;</dt>
  29376. <dd><p>Set the vertical scrolling speed.
  29377. </p></dd>
  29378. </dl>
  29379. <p><a name="selectivecolor"></a>
  29380. </p><a name="selectivecolor-1"></a>
  29381. <h2 class="section"><a href="ffprobe-all.html#toc-selectivecolor-1">32.178 selectivecolor</a></h2>
  29382. <p>Adjust cyan, magenta, yellow and black (CMYK) to certain ranges of colors (such
  29383. as &quot;reds&quot;, &quot;yellows&quot;, &quot;greens&quot;, &quot;cyans&quot;, ...). The adjustment range is defined
  29384. by the &quot;purity&quot; of the color (that is, how saturated it already is).
  29385. </p>
  29386. <p>This filter is similar to the Adobe Photoshop Selective Color tool.
  29387. </p>
  29388. <p>The filter accepts the following options:
  29389. </p>
  29390. <dl compact="compact">
  29391. <dt>&lsquo;<samp>correction_method</samp>&rsquo;</dt>
  29392. <dd><p>Select color correction method.
  29393. </p>
  29394. <p>Available values are:
  29395. </p><dl compact="compact">
  29396. <dt>&lsquo;<samp>absolute</samp>&rsquo;</dt>
  29397. <dd><p>Specified adjustments are applied &quot;as-is&quot; (added/subtracted to original pixel
  29398. component value).
  29399. </p></dd>
  29400. <dt>&lsquo;<samp>relative</samp>&rsquo;</dt>
  29401. <dd><p>Specified adjustments are relative to the original component value.
  29402. </p></dd>
  29403. </dl>
  29404. <p>Default is <code>absolute</code>.
  29405. </p></dd>
  29406. <dt>&lsquo;<samp>reds</samp>&rsquo;</dt>
  29407. <dd><p>Adjustments for red pixels (pixels where the red component is the maximum)
  29408. </p></dd>
  29409. <dt>&lsquo;<samp>yellows</samp>&rsquo;</dt>
  29410. <dd><p>Adjustments for yellow pixels (pixels where the blue component is the minimum)
  29411. </p></dd>
  29412. <dt>&lsquo;<samp>greens</samp>&rsquo;</dt>
  29413. <dd><p>Adjustments for green pixels (pixels where the green component is the maximum)
  29414. </p></dd>
  29415. <dt>&lsquo;<samp>cyans</samp>&rsquo;</dt>
  29416. <dd><p>Adjustments for cyan pixels (pixels where the red component is the minimum)
  29417. </p></dd>
  29418. <dt>&lsquo;<samp>blues</samp>&rsquo;</dt>
  29419. <dd><p>Adjustments for blue pixels (pixels where the blue component is the maximum)
  29420. </p></dd>
  29421. <dt>&lsquo;<samp>magentas</samp>&rsquo;</dt>
  29422. <dd><p>Adjustments for magenta pixels (pixels where the green component is the minimum)
  29423. </p></dd>
  29424. <dt>&lsquo;<samp>whites</samp>&rsquo;</dt>
  29425. <dd><p>Adjustments for white pixels (pixels where all components are greater than 128)
  29426. </p></dd>
  29427. <dt>&lsquo;<samp>neutrals</samp>&rsquo;</dt>
  29428. <dd><p>Adjustments for all pixels except pure black and pure white
  29429. </p></dd>
  29430. <dt>&lsquo;<samp>blacks</samp>&rsquo;</dt>
  29431. <dd><p>Adjustments for black pixels (pixels where all components are lesser than 128)
  29432. </p></dd>
  29433. <dt>&lsquo;<samp>psfile</samp>&rsquo;</dt>
  29434. <dd><p>Specify a Photoshop selective color file (<code>.asv</code>) to import the settings from.
  29435. </p></dd>
  29436. </dl>
  29437. <p>All the adjustment settings (&lsquo;<samp>reds</samp>&rsquo;, &lsquo;<samp>yellows</samp>&rsquo;, ...) accept up to
  29438. 4 space separated floating point adjustment values in the [-1,1] range,
  29439. respectively to adjust the amount of cyan, magenta, yellow and black for the
  29440. pixels of its range.
  29441. </p>
  29442. <a name="Examples-39"></a>
  29443. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-39">32.178.1 Examples</a></h3>
  29444. <ul>
  29445. <li>
  29446. Increase cyan by 50% and reduce yellow by 33% in every green areas, and
  29447. increase magenta by 27% in blue areas:
  29448. <div class="example">
  29449. <pre class="example">selectivecolor=greens=.5 0 -.33 0:blues=0 .27
  29450. </pre></div>
  29451. </li><li>
  29452. Use a Photoshop selective color preset:
  29453. <div class="example">
  29454. <pre class="example">selectivecolor=psfile=MySelectiveColorPresets/Misty.asv
  29455. </pre></div>
  29456. </li></ul>
  29457. <p><a name="separatefields"></a>
  29458. </p><a name="separatefields-1"></a>
  29459. <h2 class="section"><a href="ffprobe-all.html#toc-separatefields-1">32.179 separatefields</a></h2>
  29460. <p>The <code>separatefields</code> takes a frame-based video input and splits
  29461. each frame into its components fields, producing a new half height clip
  29462. with twice the frame rate and twice the frame count.
  29463. </p>
  29464. <p>This filter use field-dominance information in frame to decide which
  29465. of each pair of fields to place first in the output.
  29466. If it gets it wrong use <a href="#setfield">setfield</a> filter before <code>separatefields</code> filter.
  29467. </p>
  29468. <a name="setdar_002c-setsar"></a>
  29469. <h2 class="section"><a href="ffprobe-all.html#toc-setdar_002c-setsar">32.180 setdar, setsar</a></h2>
  29470. <p>The <code>setdar</code> filter sets the Display Aspect Ratio for the filter
  29471. output video.
  29472. </p>
  29473. <p>This is done by changing the specified Sample (aka Pixel) Aspect
  29474. Ratio, according to the following equation:
  29475. </p><div class="example">
  29476. <pre class="example"><var>DAR</var> = <var>HORIZONTAL_RESOLUTION</var> / <var>VERTICAL_RESOLUTION</var> * <var>SAR</var>
  29477. </pre></div>
  29478. <p>Keep in mind that the <code>setdar</code> filter does not modify the pixel
  29479. dimensions of the video frame. Also, the display aspect ratio set by
  29480. this filter may be changed by later filters in the filterchain,
  29481. e.g. in case of scaling or if another &quot;setdar&quot; or a &quot;setsar&quot; filter is
  29482. applied.
  29483. </p>
  29484. <p>The <code>setsar</code> filter sets the Sample (aka Pixel) Aspect Ratio for
  29485. the filter output video.
  29486. </p>
  29487. <p>Note that as a consequence of the application of this filter, the
  29488. output display aspect ratio will change according to the equation
  29489. above.
  29490. </p>
  29491. <p>Keep in mind that the sample aspect ratio set by the <code>setsar</code>
  29492. filter may be changed by later filters in the filterchain, e.g. if
  29493. another &quot;setsar&quot; or a &quot;setdar&quot; filter is applied.
  29494. </p>
  29495. <p>It accepts the following parameters:
  29496. </p>
  29497. <dl compact="compact">
  29498. <dt>&lsquo;<samp>r, ratio, dar (<code>setdar</code> only), sar (<code>setsar</code> only)</samp>&rsquo;</dt>
  29499. <dd><p>Set the aspect ratio used by the filter.
  29500. </p>
  29501. <p>The parameter can be a floating point number string, an expression, or
  29502. a string of the form <var>num</var>:<var>den</var>, where <var>num</var> and
  29503. <var>den</var> are the numerator and denominator of the aspect ratio. If
  29504. the parameter is not specified, it is assumed the value &quot;0&quot;.
  29505. In case the form &quot;<var>num</var>:<var>den</var>&quot; is used, the <code>:</code> character
  29506. should be escaped.
  29507. </p>
  29508. </dd>
  29509. <dt>&lsquo;<samp>max</samp>&rsquo;</dt>
  29510. <dd><p>Set the maximum integer value to use for expressing numerator and
  29511. denominator when reducing the expressed aspect ratio to a rational.
  29512. Default value is <code>100</code>.
  29513. </p>
  29514. </dd>
  29515. </dl>
  29516. <p>The parameter <var>sar</var> is an expression containing
  29517. the following constants:
  29518. </p>
  29519. <dl compact="compact">
  29520. <dt>&lsquo;<samp>E, PI, PHI</samp>&rsquo;</dt>
  29521. <dd><p>These are approximated values for the mathematical constants e
  29522. (Euler&rsquo;s number), pi (Greek pi), and phi (the golden ratio).
  29523. </p>
  29524. </dd>
  29525. <dt>&lsquo;<samp>w, h</samp>&rsquo;</dt>
  29526. <dd><p>The input width and height.
  29527. </p>
  29528. </dd>
  29529. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  29530. <dd><p>These are the same as <var>w</var> / <var>h</var>.
  29531. </p>
  29532. </dd>
  29533. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  29534. <dd><p>The input sample aspect ratio.
  29535. </p>
  29536. </dd>
  29537. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  29538. <dd><p>The input display aspect ratio. It is the same as
  29539. (<var>w</var> / <var>h</var>) * <var>sar</var>.
  29540. </p>
  29541. </dd>
  29542. <dt>&lsquo;<samp>hsub, vsub</samp>&rsquo;</dt>
  29543. <dd><p>Horizontal and vertical chroma subsample values. For example, for the
  29544. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  29545. </p></dd>
  29546. </dl>
  29547. <a name="Examples-78"></a>
  29548. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-78">32.180.1 Examples</a></h3>
  29549. <ul>
  29550. <li>
  29551. To change the display aspect ratio to 16:9, specify one of the following:
  29552. <div class="example">
  29553. <pre class="example">setdar=dar=1.77777
  29554. setdar=dar=16/9
  29555. </pre></div>
  29556. </li><li>
  29557. To change the sample aspect ratio to 10:11, specify:
  29558. <div class="example">
  29559. <pre class="example">setsar=sar=10/11
  29560. </pre></div>
  29561. </li><li>
  29562. To set a display aspect ratio of 16:9, and specify a maximum integer value of
  29563. 1000 in the aspect ratio reduction, use the command:
  29564. <div class="example">
  29565. <pre class="example">setdar=ratio=16/9:max=1000
  29566. </pre></div>
  29567. </li></ul>
  29568. <p><a name="setfield"></a>
  29569. </p><a name="setfield-1"></a>
  29570. <h2 class="section"><a href="ffprobe-all.html#toc-setfield-1">32.181 setfield</a></h2>
  29571. <p>Force field for the output video frame.
  29572. </p>
  29573. <p>The <code>setfield</code> filter marks the interlace type field for the
  29574. output frames. It does not change the input frame, but only sets the
  29575. corresponding property, which affects how the frame is treated by
  29576. following filters (e.g. <code>fieldorder</code> or <code>yadif</code>).
  29577. </p>
  29578. <p>The filter accepts the following options:
  29579. </p>
  29580. <dl compact="compact">
  29581. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  29582. <dd><p>Available values are:
  29583. </p>
  29584. <dl compact="compact">
  29585. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29586. <dd><p>Keep the same field property.
  29587. </p>
  29588. </dd>
  29589. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  29590. <dd><p>Mark the frame as bottom-field-first.
  29591. </p>
  29592. </dd>
  29593. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  29594. <dd><p>Mark the frame as top-field-first.
  29595. </p>
  29596. </dd>
  29597. <dt>&lsquo;<samp>prog</samp>&rsquo;</dt>
  29598. <dd><p>Mark the frame as progressive.
  29599. </p></dd>
  29600. </dl>
  29601. </dd>
  29602. </dl>
  29603. <p><a name="setparams"></a>
  29604. </p><a name="setparams-1"></a>
  29605. <h2 class="section"><a href="ffprobe-all.html#toc-setparams-1">32.182 setparams</a></h2>
  29606. <p>Force frame parameter for the output video frame.
  29607. </p>
  29608. <p>The <code>setparams</code> filter marks interlace and color range for the
  29609. output frames. It does not change the input frame, but only sets the
  29610. corresponding property, which affects how the frame is treated by
  29611. filters/encoders.
  29612. </p>
  29613. <dl compact="compact">
  29614. <dt>&lsquo;<samp>field_mode</samp>&rsquo;</dt>
  29615. <dd><p>Available values are:
  29616. </p>
  29617. <dl compact="compact">
  29618. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29619. <dd><p>Keep the same field property (default).
  29620. </p>
  29621. </dd>
  29622. <dt>&lsquo;<samp>bff</samp>&rsquo;</dt>
  29623. <dd><p>Mark the frame as bottom-field-first.
  29624. </p>
  29625. </dd>
  29626. <dt>&lsquo;<samp>tff</samp>&rsquo;</dt>
  29627. <dd><p>Mark the frame as top-field-first.
  29628. </p>
  29629. </dd>
  29630. <dt>&lsquo;<samp>prog</samp>&rsquo;</dt>
  29631. <dd><p>Mark the frame as progressive.
  29632. </p></dd>
  29633. </dl>
  29634. </dd>
  29635. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  29636. <dd><p>Available values are:
  29637. </p>
  29638. <dl compact="compact">
  29639. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29640. <dd><p>Keep the same color range property (default).
  29641. </p>
  29642. </dd>
  29643. <dt>&lsquo;<samp>unspecified, unknown</samp>&rsquo;</dt>
  29644. <dd><p>Mark the frame as unspecified color range.
  29645. </p>
  29646. </dd>
  29647. <dt>&lsquo;<samp>limited, tv, mpeg</samp>&rsquo;</dt>
  29648. <dd><p>Mark the frame as limited range.
  29649. </p>
  29650. </dd>
  29651. <dt>&lsquo;<samp>full, pc, jpeg</samp>&rsquo;</dt>
  29652. <dd><p>Mark the frame as full range.
  29653. </p></dd>
  29654. </dl>
  29655. </dd>
  29656. <dt>&lsquo;<samp>color_primaries</samp>&rsquo;</dt>
  29657. <dd><p>Set the color primaries.
  29658. Available values are:
  29659. </p>
  29660. <dl compact="compact">
  29661. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29662. <dd><p>Keep the same color primaries property (default).
  29663. </p>
  29664. </dd>
  29665. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  29666. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  29667. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  29668. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  29669. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  29670. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  29671. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  29672. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  29673. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  29674. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  29675. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  29676. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  29677. </dl>
  29678. </dd>
  29679. <dt>&lsquo;<samp>color_trc</samp>&rsquo;</dt>
  29680. <dd><p>Set the color transfer.
  29681. Available values are:
  29682. </p>
  29683. <dl compact="compact">
  29684. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29685. <dd><p>Keep the same color trc property (default).
  29686. </p>
  29687. </dd>
  29688. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  29689. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  29690. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  29691. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  29692. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  29693. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  29694. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  29695. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  29696. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  29697. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  29698. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  29699. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  29700. <dt>&lsquo;<samp>bt2020-10</samp>&rsquo;</dt>
  29701. <dt>&lsquo;<samp>bt2020-12</samp>&rsquo;</dt>
  29702. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  29703. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  29704. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  29705. </dl>
  29706. </dd>
  29707. <dt>&lsquo;<samp>colorspace</samp>&rsquo;</dt>
  29708. <dd><p>Set the colorspace.
  29709. Available values are:
  29710. </p>
  29711. <dl compact="compact">
  29712. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  29713. <dd><p>Keep the same colorspace property (default).
  29714. </p>
  29715. </dd>
  29716. <dt>&lsquo;<samp>gbr</samp>&rsquo;</dt>
  29717. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  29718. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  29719. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  29720. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  29721. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  29722. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  29723. <dt>&lsquo;<samp>ycgco</samp>&rsquo;</dt>
  29724. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  29725. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  29726. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  29727. <dt>&lsquo;<samp>chroma-derived-nc</samp>&rsquo;</dt>
  29728. <dt>&lsquo;<samp>chroma-derived-c</samp>&rsquo;</dt>
  29729. <dt>&lsquo;<samp>ictcp</samp>&rsquo;</dt>
  29730. </dl>
  29731. </dd>
  29732. </dl>
  29733. <a name="showinfo"></a>
  29734. <h2 class="section"><a href="ffprobe-all.html#toc-showinfo">32.183 showinfo</a></h2>
  29735. <p>Show a line containing various information for each input video frame.
  29736. The input video is not modified.
  29737. </p>
  29738. <p>This filter supports the following options:
  29739. </p>
  29740. <dl compact="compact">
  29741. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  29742. <dd><p>Calculate checksums of each plane. By default enabled.
  29743. </p></dd>
  29744. </dl>
  29745. <p>The shown line contains a sequence of key/value pairs of the form
  29746. <var>key</var>:<var>value</var>.
  29747. </p>
  29748. <p>The following values are shown in the output:
  29749. </p>
  29750. <dl compact="compact">
  29751. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  29752. <dd><p>The (sequential) number of the input frame, starting from 0.
  29753. </p>
  29754. </dd>
  29755. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  29756. <dd><p>The Presentation TimeStamp of the input frame, expressed as a number of
  29757. time base units. The time base unit depends on the filter input pad.
  29758. </p>
  29759. </dd>
  29760. <dt>&lsquo;<samp>pts_time</samp>&rsquo;</dt>
  29761. <dd><p>The Presentation TimeStamp of the input frame, expressed as a number of
  29762. seconds.
  29763. </p>
  29764. </dd>
  29765. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  29766. <dd><p>The position of the frame in the input stream, or -1 if this information is
  29767. unavailable and/or meaningless (for example in case of synthetic video).
  29768. </p>
  29769. </dd>
  29770. <dt>&lsquo;<samp>fmt</samp>&rsquo;</dt>
  29771. <dd><p>The pixel format name.
  29772. </p>
  29773. </dd>
  29774. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  29775. <dd><p>The sample aspect ratio of the input frame, expressed in the form
  29776. <var>num</var>/<var>den</var>.
  29777. </p>
  29778. </dd>
  29779. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  29780. <dd><p>The size of the input frame. For the syntax of this option, check the
  29781. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  29782. </p>
  29783. </dd>
  29784. <dt>&lsquo;<samp>i</samp>&rsquo;</dt>
  29785. <dd><p>The type of interlaced mode (&quot;P&quot; for &quot;progressive&quot;, &quot;T&quot; for top field first, &quot;B&quot;
  29786. for bottom field first).
  29787. </p>
  29788. </dd>
  29789. <dt>&lsquo;<samp>iskey</samp>&rsquo;</dt>
  29790. <dd><p>This is 1 if the frame is a key frame, 0 otherwise.
  29791. </p>
  29792. </dd>
  29793. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  29794. <dd><p>The picture type of the input frame (&quot;I&quot; for an I-frame, &quot;P&quot; for a
  29795. P-frame, &quot;B&quot; for a B-frame, or &quot;?&quot; for an unknown type).
  29796. Also refer to the documentation of the <code>AVPictureType</code> enum and of
  29797. the <code>av_get_picture_type_char</code> function defined in
  29798. &lsquo;<tt>libavutil/avutil.h</tt>&rsquo;.
  29799. </p>
  29800. </dd>
  29801. <dt>&lsquo;<samp>checksum</samp>&rsquo;</dt>
  29802. <dd><p>The Adler-32 checksum (printed in hexadecimal) of all the planes of the input frame.
  29803. </p>
  29804. </dd>
  29805. <dt>&lsquo;<samp>plane_checksum</samp>&rsquo;</dt>
  29806. <dd><p>The Adler-32 checksum (printed in hexadecimal) of each plane of the input frame,
  29807. expressed in the form &quot;[<var>c0</var> <var>c1</var> <var>c2</var> <var>c3</var>]&quot;.
  29808. </p>
  29809. </dd>
  29810. <dt>&lsquo;<samp>mean</samp>&rsquo;</dt>
  29811. <dd><p>The mean value of pixels in each plane of the input frame, expressed in the form
  29812. &quot;[<var>mean0</var> <var>mean1</var> <var>mean2</var> <var>mean3</var>]&quot;.
  29813. </p>
  29814. </dd>
  29815. <dt>&lsquo;<samp>stdev</samp>&rsquo;</dt>
  29816. <dd><p>The standard deviation of pixel values in each plane of the input frame, expressed
  29817. in the form &quot;[<var>stdev0</var> <var>stdev1</var> <var>stdev2</var> <var>stdev3</var>]&quot;.
  29818. </p>
  29819. </dd>
  29820. </dl>
  29821. <a name="showpalette"></a>
  29822. <h2 class="section"><a href="ffprobe-all.html#toc-showpalette">32.184 showpalette</a></h2>
  29823. <p>Displays the 256 colors palette of each frame. This filter is only relevant for
  29824. <var>pal8</var> pixel format frames.
  29825. </p>
  29826. <p>It accepts the following option:
  29827. </p>
  29828. <dl compact="compact">
  29829. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  29830. <dd><p>Set the size of the box used to represent one palette color entry. Default is
  29831. <code>30</code> (for a <code>30x30</code> pixel box).
  29832. </p></dd>
  29833. </dl>
  29834. <a name="shuffleframes"></a>
  29835. <h2 class="section"><a href="ffprobe-all.html#toc-shuffleframes">32.185 shuffleframes</a></h2>
  29836. <p>Reorder and/or duplicate and/or drop video frames.
  29837. </p>
  29838. <p>It accepts the following parameters:
  29839. </p>
  29840. <dl compact="compact">
  29841. <dt>&lsquo;<samp>mapping</samp>&rsquo;</dt>
  29842. <dd><p>Set the destination indexes of input frames.
  29843. This is space or &rsquo;|&rsquo; separated list of indexes that maps input frames to output
  29844. frames. Number of indexes also sets maximal value that each index may have.
  29845. &rsquo;-1&rsquo; index have special meaning and that is to drop frame.
  29846. </p></dd>
  29847. </dl>
  29848. <p>The first frame has the index 0. The default is to keep the input unchanged.
  29849. </p>
  29850. <a name="Examples-20"></a>
  29851. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-20">32.185.1 Examples</a></h3>
  29852. <ul>
  29853. <li>
  29854. Swap second and third frame of every three frames of the input:
  29855. <div class="example">
  29856. <pre class="example">ffmpeg -i INPUT -vf &quot;shuffleframes=0 2 1&quot; OUTPUT
  29857. </pre></div>
  29858. </li><li>
  29859. Swap 10th and 1st frame of every ten frames of the input:
  29860. <div class="example">
  29861. <pre class="example">ffmpeg -i INPUT -vf &quot;shuffleframes=9 1 2 3 4 5 6 7 8 0&quot; OUTPUT
  29862. </pre></div>
  29863. </li></ul>
  29864. <a name="shuffleplanes"></a>
  29865. <h2 class="section"><a href="ffprobe-all.html#toc-shuffleplanes">32.186 shuffleplanes</a></h2>
  29866. <p>Reorder and/or duplicate video planes.
  29867. </p>
  29868. <p>It accepts the following parameters:
  29869. </p>
  29870. <dl compact="compact">
  29871. <dt>&lsquo;<samp>map0</samp>&rsquo;</dt>
  29872. <dd><p>The index of the input plane to be used as the first output plane.
  29873. </p>
  29874. </dd>
  29875. <dt>&lsquo;<samp>map1</samp>&rsquo;</dt>
  29876. <dd><p>The index of the input plane to be used as the second output plane.
  29877. </p>
  29878. </dd>
  29879. <dt>&lsquo;<samp>map2</samp>&rsquo;</dt>
  29880. <dd><p>The index of the input plane to be used as the third output plane.
  29881. </p>
  29882. </dd>
  29883. <dt>&lsquo;<samp>map3</samp>&rsquo;</dt>
  29884. <dd><p>The index of the input plane to be used as the fourth output plane.
  29885. </p>
  29886. </dd>
  29887. </dl>
  29888. <p>The first plane has the index 0. The default is to keep the input unchanged.
  29889. </p>
  29890. <a name="Examples-28"></a>
  29891. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-28">32.186.1 Examples</a></h3>
  29892. <ul>
  29893. <li>
  29894. Swap the second and third planes of the input:
  29895. <div class="example">
  29896. <pre class="example">ffmpeg -i INPUT -vf shuffleplanes=0:2:1:3 OUTPUT
  29897. </pre></div>
  29898. </li></ul>
  29899. <p><a name="signalstats"></a>
  29900. </p><a name="signalstats-1"></a>
  29901. <h2 class="section"><a href="ffprobe-all.html#toc-signalstats-1">32.187 signalstats</a></h2>
  29902. <p>Evaluate various visual metrics that assist in determining issues associated
  29903. with the digitization of analog video media.
  29904. </p>
  29905. <p>By default the filter will log these metadata values:
  29906. </p>
  29907. <dl compact="compact">
  29908. <dt>&lsquo;<samp>YMIN</samp>&rsquo;</dt>
  29909. <dd><p>Display the minimal Y value contained within the input frame. Expressed in
  29910. range of [0-255].
  29911. </p>
  29912. </dd>
  29913. <dt>&lsquo;<samp>YLOW</samp>&rsquo;</dt>
  29914. <dd><p>Display the Y value at the 10% percentile within the input frame. Expressed in
  29915. range of [0-255].
  29916. </p>
  29917. </dd>
  29918. <dt>&lsquo;<samp>YAVG</samp>&rsquo;</dt>
  29919. <dd><p>Display the average Y value within the input frame. Expressed in range of
  29920. [0-255].
  29921. </p>
  29922. </dd>
  29923. <dt>&lsquo;<samp>YHIGH</samp>&rsquo;</dt>
  29924. <dd><p>Display the Y value at the 90% percentile within the input frame. Expressed in
  29925. range of [0-255].
  29926. </p>
  29927. </dd>
  29928. <dt>&lsquo;<samp>YMAX</samp>&rsquo;</dt>
  29929. <dd><p>Display the maximum Y value contained within the input frame. Expressed in
  29930. range of [0-255].
  29931. </p>
  29932. </dd>
  29933. <dt>&lsquo;<samp>UMIN</samp>&rsquo;</dt>
  29934. <dd><p>Display the minimal U value contained within the input frame. Expressed in
  29935. range of [0-255].
  29936. </p>
  29937. </dd>
  29938. <dt>&lsquo;<samp>ULOW</samp>&rsquo;</dt>
  29939. <dd><p>Display the U value at the 10% percentile within the input frame. Expressed in
  29940. range of [0-255].
  29941. </p>
  29942. </dd>
  29943. <dt>&lsquo;<samp>UAVG</samp>&rsquo;</dt>
  29944. <dd><p>Display the average U value within the input frame. Expressed in range of
  29945. [0-255].
  29946. </p>
  29947. </dd>
  29948. <dt>&lsquo;<samp>UHIGH</samp>&rsquo;</dt>
  29949. <dd><p>Display the U value at the 90% percentile within the input frame. Expressed in
  29950. range of [0-255].
  29951. </p>
  29952. </dd>
  29953. <dt>&lsquo;<samp>UMAX</samp>&rsquo;</dt>
  29954. <dd><p>Display the maximum U value contained within the input frame. Expressed in
  29955. range of [0-255].
  29956. </p>
  29957. </dd>
  29958. <dt>&lsquo;<samp>VMIN</samp>&rsquo;</dt>
  29959. <dd><p>Display the minimal V value contained within the input frame. Expressed in
  29960. range of [0-255].
  29961. </p>
  29962. </dd>
  29963. <dt>&lsquo;<samp>VLOW</samp>&rsquo;</dt>
  29964. <dd><p>Display the V value at the 10% percentile within the input frame. Expressed in
  29965. range of [0-255].
  29966. </p>
  29967. </dd>
  29968. <dt>&lsquo;<samp>VAVG</samp>&rsquo;</dt>
  29969. <dd><p>Display the average V value within the input frame. Expressed in range of
  29970. [0-255].
  29971. </p>
  29972. </dd>
  29973. <dt>&lsquo;<samp>VHIGH</samp>&rsquo;</dt>
  29974. <dd><p>Display the V value at the 90% percentile within the input frame. Expressed in
  29975. range of [0-255].
  29976. </p>
  29977. </dd>
  29978. <dt>&lsquo;<samp>VMAX</samp>&rsquo;</dt>
  29979. <dd><p>Display the maximum V value contained within the input frame. Expressed in
  29980. range of [0-255].
  29981. </p>
  29982. </dd>
  29983. <dt>&lsquo;<samp>SATMIN</samp>&rsquo;</dt>
  29984. <dd><p>Display the minimal saturation value contained within the input frame.
  29985. Expressed in range of [0-~181.02].
  29986. </p>
  29987. </dd>
  29988. <dt>&lsquo;<samp>SATLOW</samp>&rsquo;</dt>
  29989. <dd><p>Display the saturation value at the 10% percentile within the input frame.
  29990. Expressed in range of [0-~181.02].
  29991. </p>
  29992. </dd>
  29993. <dt>&lsquo;<samp>SATAVG</samp>&rsquo;</dt>
  29994. <dd><p>Display the average saturation value within the input frame. Expressed in range
  29995. of [0-~181.02].
  29996. </p>
  29997. </dd>
  29998. <dt>&lsquo;<samp>SATHIGH</samp>&rsquo;</dt>
  29999. <dd><p>Display the saturation value at the 90% percentile within the input frame.
  30000. Expressed in range of [0-~181.02].
  30001. </p>
  30002. </dd>
  30003. <dt>&lsquo;<samp>SATMAX</samp>&rsquo;</dt>
  30004. <dd><p>Display the maximum saturation value contained within the input frame.
  30005. Expressed in range of [0-~181.02].
  30006. </p>
  30007. </dd>
  30008. <dt>&lsquo;<samp>HUEMED</samp>&rsquo;</dt>
  30009. <dd><p>Display the median value for hue within the input frame. Expressed in range of
  30010. [0-360].
  30011. </p>
  30012. </dd>
  30013. <dt>&lsquo;<samp>HUEAVG</samp>&rsquo;</dt>
  30014. <dd><p>Display the average value for hue within the input frame. Expressed in range of
  30015. [0-360].
  30016. </p>
  30017. </dd>
  30018. <dt>&lsquo;<samp>YDIF</samp>&rsquo;</dt>
  30019. <dd><p>Display the average of sample value difference between all values of the Y
  30020. plane in the current frame and corresponding values of the previous input frame.
  30021. Expressed in range of [0-255].
  30022. </p>
  30023. </dd>
  30024. <dt>&lsquo;<samp>UDIF</samp>&rsquo;</dt>
  30025. <dd><p>Display the average of sample value difference between all values of the U
  30026. plane in the current frame and corresponding values of the previous input frame.
  30027. Expressed in range of [0-255].
  30028. </p>
  30029. </dd>
  30030. <dt>&lsquo;<samp>VDIF</samp>&rsquo;</dt>
  30031. <dd><p>Display the average of sample value difference between all values of the V
  30032. plane in the current frame and corresponding values of the previous input frame.
  30033. Expressed in range of [0-255].
  30034. </p>
  30035. </dd>
  30036. <dt>&lsquo;<samp>YBITDEPTH</samp>&rsquo;</dt>
  30037. <dd><p>Display bit depth of Y plane in current frame.
  30038. Expressed in range of [0-16].
  30039. </p>
  30040. </dd>
  30041. <dt>&lsquo;<samp>UBITDEPTH</samp>&rsquo;</dt>
  30042. <dd><p>Display bit depth of U plane in current frame.
  30043. Expressed in range of [0-16].
  30044. </p>
  30045. </dd>
  30046. <dt>&lsquo;<samp>VBITDEPTH</samp>&rsquo;</dt>
  30047. <dd><p>Display bit depth of V plane in current frame.
  30048. Expressed in range of [0-16].
  30049. </p></dd>
  30050. </dl>
  30051. <p>The filter accepts the following options:
  30052. </p>
  30053. <dl compact="compact">
  30054. <dt>&lsquo;<samp>stat</samp>&rsquo;</dt>
  30055. <dt>&lsquo;<samp>out</samp>&rsquo;</dt>
  30056. <dd>
  30057. <p>&lsquo;<samp>stat</samp>&rsquo; specify an additional form of image analysis.
  30058. &lsquo;<samp>out</samp>&rsquo; output video with the specified type of pixel highlighted.
  30059. </p>
  30060. <p>Both options accept the following values:
  30061. </p>
  30062. <dl compact="compact">
  30063. <dt>&lsquo;<samp>tout</samp>&rsquo;</dt>
  30064. <dd><p>Identify <var>temporal outliers</var> pixels. A <var>temporal outlier</var> is a pixel
  30065. unlike the neighboring pixels of the same field. Examples of temporal outliers
  30066. include the results of video dropouts, head clogs, or tape tracking issues.
  30067. </p>
  30068. </dd>
  30069. <dt>&lsquo;<samp>vrep</samp>&rsquo;</dt>
  30070. <dd><p>Identify <var>vertical line repetition</var>. Vertical line repetition includes
  30071. similar rows of pixels within a frame. In born-digital video vertical line
  30072. repetition is common, but this pattern is uncommon in video digitized from an
  30073. analog source. When it occurs in video that results from the digitization of an
  30074. analog source it can indicate concealment from a dropout compensator.
  30075. </p>
  30076. </dd>
  30077. <dt>&lsquo;<samp>brng</samp>&rsquo;</dt>
  30078. <dd><p>Identify pixels that fall outside of legal broadcast range.
  30079. </p></dd>
  30080. </dl>
  30081. </dd>
  30082. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  30083. <dd><p>Set the highlight color for the &lsquo;<samp>out</samp>&rsquo; option. The default color is
  30084. yellow.
  30085. </p></dd>
  30086. </dl>
  30087. <a name="Examples-59"></a>
  30088. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-59">32.187.1 Examples</a></h3>
  30089. <ul>
  30090. <li>
  30091. Output data of various video metrics:
  30092. <div class="example">
  30093. <pre class="example">ffprobe -f lavfi movie=example.mov,signalstats=&quot;stat=tout+vrep+brng&quot; -show_frames
  30094. </pre></div>
  30095. </li><li>
  30096. Output specific data about the minimum and maximum values of the Y plane per frame:
  30097. <div class="example">
  30098. <pre class="example">ffprobe -f lavfi movie=example.mov,signalstats -show_entries frame_tags=lavfi.signalstats.YMAX,lavfi.signalstats.YMIN
  30099. </pre></div>
  30100. </li><li>
  30101. Playback video while highlighting pixels that are outside of broadcast range in red.
  30102. <div class="example">
  30103. <pre class="example">ffplay example.mov -vf signalstats=&quot;out=brng:color=red&quot;
  30104. </pre></div>
  30105. </li><li>
  30106. Playback video with signalstats metadata drawn over the frame.
  30107. <div class="example">
  30108. <pre class="example">ffplay example.mov -vf signalstats=stat=brng+vrep+tout,drawtext=fontfile=FreeSerif.ttf:textfile=signalstat_drawtext.txt
  30109. </pre></div>
  30110. <p>The contents of signalstat_drawtext.txt used in the command are:
  30111. </p><div class="example">
  30112. <pre class="example">time %{pts:hms}
  30113. Y (%{metadata:lavfi.signalstats.YMIN}-%{metadata:lavfi.signalstats.YMAX})
  30114. U (%{metadata:lavfi.signalstats.UMIN}-%{metadata:lavfi.signalstats.UMAX})
  30115. V (%{metadata:lavfi.signalstats.VMIN}-%{metadata:lavfi.signalstats.VMAX})
  30116. saturation maximum: %{metadata:lavfi.signalstats.SATMAX}
  30117. </pre></div>
  30118. </li></ul>
  30119. <p><a name="signature"></a>
  30120. </p><a name="signature-1"></a>
  30121. <h2 class="section"><a href="ffprobe-all.html#toc-signature-1">32.188 signature</a></h2>
  30122. <p>Calculates the MPEG-7 Video Signature. The filter can handle more than one
  30123. input. In this case the matching between the inputs can be calculated additionally.
  30124. The filter always passes through the first input. The signature of each stream can
  30125. be written into a file.
  30126. </p>
  30127. <p>It accepts the following options:
  30128. </p>
  30129. <dl compact="compact">
  30130. <dt>&lsquo;<samp>detectmode</samp>&rsquo;</dt>
  30131. <dd><p>Enable or disable the matching process.
  30132. </p>
  30133. <p>Available values are:
  30134. </p>
  30135. <dl compact="compact">
  30136. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  30137. <dd><p>Disable the calculation of a matching (default).
  30138. </p></dd>
  30139. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  30140. <dd><p>Calculate the matching for the whole video and output whether the whole video
  30141. matches or only parts.
  30142. </p></dd>
  30143. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  30144. <dd><p>Calculate only until a matching is found or the video ends. Should be faster in
  30145. some cases.
  30146. </p></dd>
  30147. </dl>
  30148. </dd>
  30149. <dt>&lsquo;<samp>nb_inputs</samp>&rsquo;</dt>
  30150. <dd><p>Set the number of inputs. The option value must be a non negative integer.
  30151. Default value is 1.
  30152. </p>
  30153. </dd>
  30154. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  30155. <dd><p>Set the path to which the output is written. If there is more than one input,
  30156. the path must be a prototype, i.e. must contain %d or %0nd (where n is a positive
  30157. integer), that will be replaced with the input number. If no filename is
  30158. specified, no output will be written. This is the default.
  30159. </p>
  30160. </dd>
  30161. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  30162. <dd><p>Choose the output format.
  30163. </p>
  30164. <p>Available values are:
  30165. </p>
  30166. <dl compact="compact">
  30167. <dt>&lsquo;<samp>binary</samp>&rsquo;</dt>
  30168. <dd><p>Use the specified binary representation (default).
  30169. </p></dd>
  30170. <dt>&lsquo;<samp>xml</samp>&rsquo;</dt>
  30171. <dd><p>Use the specified xml representation.
  30172. </p></dd>
  30173. </dl>
  30174. </dd>
  30175. <dt>&lsquo;<samp>th_d</samp>&rsquo;</dt>
  30176. <dd><p>Set threshold to detect one word as similar. The option value must be an integer
  30177. greater than zero. The default value is 9000.
  30178. </p>
  30179. </dd>
  30180. <dt>&lsquo;<samp>th_dc</samp>&rsquo;</dt>
  30181. <dd><p>Set threshold to detect all words as similar. The option value must be an integer
  30182. greater than zero. The default value is 60000.
  30183. </p>
  30184. </dd>
  30185. <dt>&lsquo;<samp>th_xh</samp>&rsquo;</dt>
  30186. <dd><p>Set threshold to detect frames as similar. The option value must be an integer
  30187. greater than zero. The default value is 116.
  30188. </p>
  30189. </dd>
  30190. <dt>&lsquo;<samp>th_di</samp>&rsquo;</dt>
  30191. <dd><p>Set the minimum length of a sequence in frames to recognize it as matching
  30192. sequence. The option value must be a non negative integer value.
  30193. The default value is 0.
  30194. </p>
  30195. </dd>
  30196. <dt>&lsquo;<samp>th_it</samp>&rsquo;</dt>
  30197. <dd><p>Set the minimum relation, that matching frames to all frames must have.
  30198. The option value must be a double value between 0 and 1. The default value is 0.5.
  30199. </p></dd>
  30200. </dl>
  30201. <a name="Examples-92"></a>
  30202. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-92">32.188.1 Examples</a></h3>
  30203. <ul>
  30204. <li>
  30205. To calculate the signature of an input video and store it in signature.bin:
  30206. <div class="example">
  30207. <pre class="example">ffmpeg -i input.mkv -vf signature=filename=signature.bin -map 0:v -f null -
  30208. </pre></div>
  30209. </li><li>
  30210. To detect whether two videos match and store the signatures in XML format in
  30211. signature0.xml and signature1.xml:
  30212. <div class="example">
  30213. <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 -
  30214. </pre></div>
  30215. </li></ul>
  30216. <p><a name="smartblur"></a>
  30217. </p><a name="smartblur-1"></a>
  30218. <h2 class="section"><a href="ffprobe-all.html#toc-smartblur-1">32.189 smartblur</a></h2>
  30219. <p>Blur the input video without impacting the outlines.
  30220. </p>
  30221. <p>It accepts the following options:
  30222. </p>
  30223. <dl compact="compact">
  30224. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  30225. <dd><p>Set the luma radius. The option value must be a float number in
  30226. the range [0.1,5.0] that specifies the variance of the gaussian filter
  30227. used to blur the image (slower if larger). Default value is 1.0.
  30228. </p>
  30229. </dd>
  30230. <dt>&lsquo;<samp>luma_strength, ls</samp>&rsquo;</dt>
  30231. <dd><p>Set the luma strength. The option value must be a float number
  30232. in the range [-1.0,1.0] that configures the blurring. A value included
  30233. in [0.0,1.0] will blur the image whereas a value included in
  30234. [-1.0,0.0] will sharpen the image. Default value is 1.0.
  30235. </p>
  30236. </dd>
  30237. <dt>&lsquo;<samp>luma_threshold, lt</samp>&rsquo;</dt>
  30238. <dd><p>Set the luma threshold used as a coefficient to determine
  30239. whether a pixel should be blurred or not. The option value must be an
  30240. integer in the range [-30,30]. A value of 0 will filter all the image,
  30241. a value included in [0,30] will filter flat areas and a value included
  30242. in [-30,0] will filter edges. Default value is 0.
  30243. </p>
  30244. </dd>
  30245. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  30246. <dd><p>Set the chroma radius. The option value must be a float number in
  30247. the range [0.1,5.0] that specifies the variance of the gaussian filter
  30248. used to blur the image (slower if larger). Default value is &lsquo;<samp>luma_radius</samp>&rsquo;.
  30249. </p>
  30250. </dd>
  30251. <dt>&lsquo;<samp>chroma_strength, cs</samp>&rsquo;</dt>
  30252. <dd><p>Set the chroma strength. The option value must be a float number
  30253. in the range [-1.0,1.0] that configures the blurring. A value included
  30254. in [0.0,1.0] will blur the image whereas a value included in
  30255. [-1.0,0.0] will sharpen the image. Default value is &lsquo;<samp>luma_strength</samp>&rsquo;.
  30256. </p>
  30257. </dd>
  30258. <dt>&lsquo;<samp>chroma_threshold, ct</samp>&rsquo;</dt>
  30259. <dd><p>Set the chroma threshold used as a coefficient to determine
  30260. whether a pixel should be blurred or not. The option value must be an
  30261. integer in the range [-30,30]. A value of 0 will filter all the image,
  30262. a value included in [0,30] will filter flat areas and a value included
  30263. in [-30,0] will filter edges. Default value is &lsquo;<samp>luma_threshold</samp>&rsquo;.
  30264. </p></dd>
  30265. </dl>
  30266. <p>If a chroma option is not explicitly set, the corresponding luma value
  30267. is set.
  30268. </p>
  30269. <a name="sobel"></a>
  30270. <h2 class="section"><a href="ffprobe-all.html#toc-sobel">32.190 sobel</a></h2>
  30271. <p>Apply sobel operator to input video stream.
  30272. </p>
  30273. <p>The filter accepts the following option:
  30274. </p>
  30275. <dl compact="compact">
  30276. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  30277. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  30278. By default value 0xf, all planes will be processed.
  30279. </p>
  30280. </dd>
  30281. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  30282. <dd><p>Set value which will be multiplied with filtered result.
  30283. </p>
  30284. </dd>
  30285. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  30286. <dd><p>Set value which will be added to filtered result.
  30287. </p></dd>
  30288. </dl>
  30289. <p><a name="spp"></a>
  30290. </p><a name="spp-1"></a>
  30291. <h2 class="section"><a href="ffprobe-all.html#toc-spp-1">32.191 spp</a></h2>
  30292. <p>Apply a simple postprocessing filter that compresses and decompresses the image
  30293. at several (or - in the case of &lsquo;<samp>quality</samp>&rsquo; level <code>6</code> - all) shifts
  30294. and average the results.
  30295. </p>
  30296. <p>The filter accepts the following options:
  30297. </p>
  30298. <dl compact="compact">
  30299. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  30300. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  30301. an integer in the range 0-6. If set to <code>0</code>, the filter will have no
  30302. effect. A value of <code>6</code> means the higher quality. For each increment of
  30303. that value the speed drops by a factor of approximately 2. Default value is
  30304. <code>3</code>.
  30305. </p>
  30306. </dd>
  30307. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  30308. <dd><p>Force a constant quantization parameter. If not set, the filter will use the QP
  30309. from the video stream (if available).
  30310. </p>
  30311. </dd>
  30312. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  30313. <dd><p>Set thresholding mode. Available modes are:
  30314. </p>
  30315. <dl compact="compact">
  30316. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  30317. <dd><p>Set hard thresholding (default).
  30318. </p></dd>
  30319. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  30320. <dd><p>Set soft thresholding (better de-ringing effect, but likely blurrier).
  30321. </p></dd>
  30322. </dl>
  30323. </dd>
  30324. <dt>&lsquo;<samp>use_bframe_qp</samp>&rsquo;</dt>
  30325. <dd><p>Enable the use of the QP from the B-Frames if set to <code>1</code>. Using this
  30326. option may cause flicker since the B-Frames have often larger QP. Default is
  30327. <code>0</code> (not enabled).
  30328. </p></dd>
  30329. </dl>
  30330. <a name="Commands-46"></a>
  30331. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-46">32.191.1 Commands</a></h3>
  30332. <p>This filter supports the following commands:
  30333. </p><dl compact="compact">
  30334. <dt>&lsquo;<samp>quality, level</samp>&rsquo;</dt>
  30335. <dd><p>Set quality level. The value <code>max</code> can be used to set the maximum level,
  30336. currently <code>6</code>.
  30337. </p></dd>
  30338. </dl>
  30339. <a name="sr"></a>
  30340. <h2 class="section"><a href="ffprobe-all.html#toc-sr">32.192 sr</a></h2>
  30341. <p>Scale the input by applying one of the super-resolution methods based on
  30342. convolutional neural networks. Supported models:
  30343. </p>
  30344. <ul>
  30345. <li>
  30346. Super-Resolution Convolutional Neural Network model (SRCNN).
  30347. See <a href="https://arxiv.org/abs/1501.00092">https://arxiv.org/abs/1501.00092</a>.
  30348. </li><li>
  30349. Efficient Sub-Pixel Convolutional Neural Network model (ESPCN).
  30350. See <a href="https://arxiv.org/abs/1609.05158">https://arxiv.org/abs/1609.05158</a>.
  30351. </li></ul>
  30352. <p>Training scripts as well as scripts for model file (.pb) saving can be found at
  30353. <a href="https://github.com/XueweiMeng/sr/tree/sr_dnn_native">https://github.com/XueweiMeng/sr/tree/sr_dnn_native</a>. Original repository
  30354. is at <a href="https://github.com/HighVoltageRocknRoll/sr.git">https://github.com/HighVoltageRocknRoll/sr.git</a>.
  30355. </p>
  30356. <p>Native model files (.model) can be generated from TensorFlow model
  30357. files (.pb) by using tools/python/convert.py
  30358. </p>
  30359. <p>The filter accepts the following options:
  30360. </p>
  30361. <dl compact="compact">
  30362. <dt>&lsquo;<samp>dnn_backend</samp>&rsquo;</dt>
  30363. <dd><p>Specify which DNN backend to use for model loading and execution. This option accepts
  30364. the following values:
  30365. </p>
  30366. <dl compact="compact">
  30367. <dt>&lsquo;<samp>native</samp>&rsquo;</dt>
  30368. <dd><p>Native implementation of DNN loading and execution.
  30369. </p>
  30370. </dd>
  30371. <dt>&lsquo;<samp>tensorflow</samp>&rsquo;</dt>
  30372. <dd><p>TensorFlow backend. To enable this backend you
  30373. need to install the TensorFlow for C library (see
  30374. <a href="https://www.tensorflow.org/install/install_c">https://www.tensorflow.org/install/install_c</a>) and configure FFmpeg with
  30375. <code>--enable-libtensorflow</code>
  30376. </p></dd>
  30377. </dl>
  30378. <p>Default value is &lsquo;<samp>native</samp>&rsquo;.
  30379. </p>
  30380. </dd>
  30381. <dt>&lsquo;<samp>model</samp>&rsquo;</dt>
  30382. <dd><p>Set path to model file specifying network architecture and its parameters.
  30383. Note that different backends use different file formats. TensorFlow backend
  30384. can load files for both formats, while native backend can load files for only
  30385. its format.
  30386. </p>
  30387. </dd>
  30388. <dt>&lsquo;<samp>scale_factor</samp>&rsquo;</dt>
  30389. <dd><p>Set scale factor for SRCNN model. Allowed values are <code>2</code>, <code>3</code> and <code>4</code>.
  30390. Default value is <code>2</code>. Scale factor is necessary for SRCNN model, because it accepts
  30391. input upscaled using bicubic upscaling with proper scale factor.
  30392. </p></dd>
  30393. </dl>
  30394. <a name="ssim"></a>
  30395. <h2 class="section"><a href="ffprobe-all.html#toc-ssim">32.193 ssim</a></h2>
  30396. <p>Obtain the SSIM (Structural SImilarity Metric) between two input videos.
  30397. </p>
  30398. <p>This filter takes in input two input videos, the first input is
  30399. considered the &quot;main&quot; source and is passed unchanged to the
  30400. output. The second input is used as a &quot;reference&quot; video for computing
  30401. the SSIM.
  30402. </p>
  30403. <p>Both video inputs must have the same resolution and pixel format for
  30404. this filter to work correctly. Also it assumes that both inputs
  30405. have the same number of frames, which are compared one by one.
  30406. </p>
  30407. <p>The filter stores the calculated SSIM of each frame.
  30408. </p>
  30409. <p>The description of the accepted parameters follows.
  30410. </p>
  30411. <dl compact="compact">
  30412. <dt>&lsquo;<samp>stats_file, f</samp>&rsquo;</dt>
  30413. <dd><p>If specified the filter will use the named file to save the SSIM of
  30414. each individual frame. When filename equals &quot;-&quot; the data is sent to
  30415. standard output.
  30416. </p></dd>
  30417. </dl>
  30418. <p>The file printed if <var>stats_file</var> is selected, contains a sequence of
  30419. key/value pairs of the form <var>key</var>:<var>value</var> for each compared
  30420. couple of frames.
  30421. </p>
  30422. <p>A description of each shown parameter follows:
  30423. </p>
  30424. <dl compact="compact">
  30425. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  30426. <dd><p>sequential number of the input frame, starting from 1
  30427. </p>
  30428. </dd>
  30429. <dt>&lsquo;<samp>Y, U, V, R, G, B</samp>&rsquo;</dt>
  30430. <dd><p>SSIM of the compared frames for the component specified by the suffix.
  30431. </p>
  30432. </dd>
  30433. <dt>&lsquo;<samp>All</samp>&rsquo;</dt>
  30434. <dd><p>SSIM of the compared frames for the whole frame.
  30435. </p>
  30436. </dd>
  30437. <dt>&lsquo;<samp>dB</samp>&rsquo;</dt>
  30438. <dd><p>Same as above but in dB representation.
  30439. </p></dd>
  30440. </dl>
  30441. <p>This filter also supports the <a href="#framesync">framesync</a> options.
  30442. </p>
  30443. <a name="Examples-130"></a>
  30444. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-130">32.193.1 Examples</a></h3>
  30445. <ul>
  30446. <li>
  30447. For example:
  30448. <div class="example">
  30449. <pre class="example">movie=ref_movie.mpg, setpts=PTS-STARTPTS [main];
  30450. [main][ref] ssim=&quot;stats_file=stats.log&quot; [out]
  30451. </pre></div>
  30452. <p>On this example the input file being processed is compared with the
  30453. reference file &lsquo;<tt>ref_movie.mpg</tt>&rsquo;. The SSIM of each individual frame
  30454. is stored in &lsquo;<tt>stats.log</tt>&rsquo;.
  30455. </p>
  30456. </li><li>
  30457. Another example with both psnr and ssim at same time:
  30458. <div class="example">
  30459. <pre class="example">ffmpeg -i main.mpg -i ref.mpg -lavfi &quot;ssim;[0:v][1:v]psnr&quot; -f null -
  30460. </pre></div>
  30461. </li><li>
  30462. Another example with different containers:
  30463. <div class="example">
  30464. <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 -
  30465. </pre></div>
  30466. </li></ul>
  30467. <a name="stereo3d"></a>
  30468. <h2 class="section"><a href="ffprobe-all.html#toc-stereo3d">32.194 stereo3d</a></h2>
  30469. <p>Convert between different stereoscopic image formats.
  30470. </p>
  30471. <p>The filters accept the following options:
  30472. </p>
  30473. <dl compact="compact">
  30474. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  30475. <dd><p>Set stereoscopic image format of input.
  30476. </p>
  30477. <p>Available values for input image formats are:
  30478. </p><dl compact="compact">
  30479. <dt>&lsquo;<samp>sbsl</samp>&rsquo;</dt>
  30480. <dd><p>side by side parallel (left eye left, right eye right)
  30481. </p>
  30482. </dd>
  30483. <dt>&lsquo;<samp>sbsr</samp>&rsquo;</dt>
  30484. <dd><p>side by side crosseye (right eye left, left eye right)
  30485. </p>
  30486. </dd>
  30487. <dt>&lsquo;<samp>sbs2l</samp>&rsquo;</dt>
  30488. <dd><p>side by side parallel with half width resolution
  30489. (left eye left, right eye right)
  30490. </p>
  30491. </dd>
  30492. <dt>&lsquo;<samp>sbs2r</samp>&rsquo;</dt>
  30493. <dd><p>side by side crosseye with half width resolution
  30494. (right eye left, left eye right)
  30495. </p>
  30496. </dd>
  30497. <dt>&lsquo;<samp>abl</samp>&rsquo;</dt>
  30498. <dt>&lsquo;<samp>tbl</samp>&rsquo;</dt>
  30499. <dd><p>above-below (left eye above, right eye below)
  30500. </p>
  30501. </dd>
  30502. <dt>&lsquo;<samp>abr</samp>&rsquo;</dt>
  30503. <dt>&lsquo;<samp>tbr</samp>&rsquo;</dt>
  30504. <dd><p>above-below (right eye above, left eye below)
  30505. </p>
  30506. </dd>
  30507. <dt>&lsquo;<samp>ab2l</samp>&rsquo;</dt>
  30508. <dt>&lsquo;<samp>tb2l</samp>&rsquo;</dt>
  30509. <dd><p>above-below with half height resolution
  30510. (left eye above, right eye below)
  30511. </p>
  30512. </dd>
  30513. <dt>&lsquo;<samp>ab2r</samp>&rsquo;</dt>
  30514. <dt>&lsquo;<samp>tb2r</samp>&rsquo;</dt>
  30515. <dd><p>above-below with half height resolution
  30516. (right eye above, left eye below)
  30517. </p>
  30518. </dd>
  30519. <dt>&lsquo;<samp>al</samp>&rsquo;</dt>
  30520. <dd><p>alternating frames (left eye first, right eye second)
  30521. </p>
  30522. </dd>
  30523. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  30524. <dd><p>alternating frames (right eye first, left eye second)
  30525. </p>
  30526. </dd>
  30527. <dt>&lsquo;<samp>irl</samp>&rsquo;</dt>
  30528. <dd><p>interleaved rows (left eye has top row, right eye starts on next row)
  30529. </p>
  30530. </dd>
  30531. <dt>&lsquo;<samp>irr</samp>&rsquo;</dt>
  30532. <dd><p>interleaved rows (right eye has top row, left eye starts on next row)
  30533. </p>
  30534. </dd>
  30535. <dt>&lsquo;<samp>icl</samp>&rsquo;</dt>
  30536. <dd><p>interleaved columns, left eye first
  30537. </p>
  30538. </dd>
  30539. <dt>&lsquo;<samp>icr</samp>&rsquo;</dt>
  30540. <dd><p>interleaved columns, right eye first
  30541. </p>
  30542. <p>Default value is &lsquo;<samp>sbsl</samp>&rsquo;.
  30543. </p></dd>
  30544. </dl>
  30545. </dd>
  30546. <dt>&lsquo;<samp>out</samp>&rsquo;</dt>
  30547. <dd><p>Set stereoscopic image format of output.
  30548. </p>
  30549. <dl compact="compact">
  30550. <dt>&lsquo;<samp>sbsl</samp>&rsquo;</dt>
  30551. <dd><p>side by side parallel (left eye left, right eye right)
  30552. </p>
  30553. </dd>
  30554. <dt>&lsquo;<samp>sbsr</samp>&rsquo;</dt>
  30555. <dd><p>side by side crosseye (right eye left, left eye right)
  30556. </p>
  30557. </dd>
  30558. <dt>&lsquo;<samp>sbs2l</samp>&rsquo;</dt>
  30559. <dd><p>side by side parallel with half width resolution
  30560. (left eye left, right eye right)
  30561. </p>
  30562. </dd>
  30563. <dt>&lsquo;<samp>sbs2r</samp>&rsquo;</dt>
  30564. <dd><p>side by side crosseye with half width resolution
  30565. (right eye left, left eye right)
  30566. </p>
  30567. </dd>
  30568. <dt>&lsquo;<samp>abl</samp>&rsquo;</dt>
  30569. <dt>&lsquo;<samp>tbl</samp>&rsquo;</dt>
  30570. <dd><p>above-below (left eye above, right eye below)
  30571. </p>
  30572. </dd>
  30573. <dt>&lsquo;<samp>abr</samp>&rsquo;</dt>
  30574. <dt>&lsquo;<samp>tbr</samp>&rsquo;</dt>
  30575. <dd><p>above-below (right eye above, left eye below)
  30576. </p>
  30577. </dd>
  30578. <dt>&lsquo;<samp>ab2l</samp>&rsquo;</dt>
  30579. <dt>&lsquo;<samp>tb2l</samp>&rsquo;</dt>
  30580. <dd><p>above-below with half height resolution
  30581. (left eye above, right eye below)
  30582. </p>
  30583. </dd>
  30584. <dt>&lsquo;<samp>ab2r</samp>&rsquo;</dt>
  30585. <dt>&lsquo;<samp>tb2r</samp>&rsquo;</dt>
  30586. <dd><p>above-below with half height resolution
  30587. (right eye above, left eye below)
  30588. </p>
  30589. </dd>
  30590. <dt>&lsquo;<samp>al</samp>&rsquo;</dt>
  30591. <dd><p>alternating frames (left eye first, right eye second)
  30592. </p>
  30593. </dd>
  30594. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  30595. <dd><p>alternating frames (right eye first, left eye second)
  30596. </p>
  30597. </dd>
  30598. <dt>&lsquo;<samp>irl</samp>&rsquo;</dt>
  30599. <dd><p>interleaved rows (left eye has top row, right eye starts on next row)
  30600. </p>
  30601. </dd>
  30602. <dt>&lsquo;<samp>irr</samp>&rsquo;</dt>
  30603. <dd><p>interleaved rows (right eye has top row, left eye starts on next row)
  30604. </p>
  30605. </dd>
  30606. <dt>&lsquo;<samp>arbg</samp>&rsquo;</dt>
  30607. <dd><p>anaglyph red/blue gray
  30608. (red filter on left eye, blue filter on right eye)
  30609. </p>
  30610. </dd>
  30611. <dt>&lsquo;<samp>argg</samp>&rsquo;</dt>
  30612. <dd><p>anaglyph red/green gray
  30613. (red filter on left eye, green filter on right eye)
  30614. </p>
  30615. </dd>
  30616. <dt>&lsquo;<samp>arcg</samp>&rsquo;</dt>
  30617. <dd><p>anaglyph red/cyan gray
  30618. (red filter on left eye, cyan filter on right eye)
  30619. </p>
  30620. </dd>
  30621. <dt>&lsquo;<samp>arch</samp>&rsquo;</dt>
  30622. <dd><p>anaglyph red/cyan half colored
  30623. (red filter on left eye, cyan filter on right eye)
  30624. </p>
  30625. </dd>
  30626. <dt>&lsquo;<samp>arcc</samp>&rsquo;</dt>
  30627. <dd><p>anaglyph red/cyan color
  30628. (red filter on left eye, cyan filter on right eye)
  30629. </p>
  30630. </dd>
  30631. <dt>&lsquo;<samp>arcd</samp>&rsquo;</dt>
  30632. <dd><p>anaglyph red/cyan color optimized with the least squares projection of dubois
  30633. (red filter on left eye, cyan filter on right eye)
  30634. </p>
  30635. </dd>
  30636. <dt>&lsquo;<samp>agmg</samp>&rsquo;</dt>
  30637. <dd><p>anaglyph green/magenta gray
  30638. (green filter on left eye, magenta filter on right eye)
  30639. </p>
  30640. </dd>
  30641. <dt>&lsquo;<samp>agmh</samp>&rsquo;</dt>
  30642. <dd><p>anaglyph green/magenta half colored
  30643. (green filter on left eye, magenta filter on right eye)
  30644. </p>
  30645. </dd>
  30646. <dt>&lsquo;<samp>agmc</samp>&rsquo;</dt>
  30647. <dd><p>anaglyph green/magenta colored
  30648. (green filter on left eye, magenta filter on right eye)
  30649. </p>
  30650. </dd>
  30651. <dt>&lsquo;<samp>agmd</samp>&rsquo;</dt>
  30652. <dd><p>anaglyph green/magenta color optimized with the least squares projection of dubois
  30653. (green filter on left eye, magenta filter on right eye)
  30654. </p>
  30655. </dd>
  30656. <dt>&lsquo;<samp>aybg</samp>&rsquo;</dt>
  30657. <dd><p>anaglyph yellow/blue gray
  30658. (yellow filter on left eye, blue filter on right eye)
  30659. </p>
  30660. </dd>
  30661. <dt>&lsquo;<samp>aybh</samp>&rsquo;</dt>
  30662. <dd><p>anaglyph yellow/blue half colored
  30663. (yellow filter on left eye, blue filter on right eye)
  30664. </p>
  30665. </dd>
  30666. <dt>&lsquo;<samp>aybc</samp>&rsquo;</dt>
  30667. <dd><p>anaglyph yellow/blue colored
  30668. (yellow filter on left eye, blue filter on right eye)
  30669. </p>
  30670. </dd>
  30671. <dt>&lsquo;<samp>aybd</samp>&rsquo;</dt>
  30672. <dd><p>anaglyph yellow/blue color optimized with the least squares projection of dubois
  30673. (yellow filter on left eye, blue filter on right eye)
  30674. </p>
  30675. </dd>
  30676. <dt>&lsquo;<samp>ml</samp>&rsquo;</dt>
  30677. <dd><p>mono output (left eye only)
  30678. </p>
  30679. </dd>
  30680. <dt>&lsquo;<samp>mr</samp>&rsquo;</dt>
  30681. <dd><p>mono output (right eye only)
  30682. </p>
  30683. </dd>
  30684. <dt>&lsquo;<samp>chl</samp>&rsquo;</dt>
  30685. <dd><p>checkerboard, left eye first
  30686. </p>
  30687. </dd>
  30688. <dt>&lsquo;<samp>chr</samp>&rsquo;</dt>
  30689. <dd><p>checkerboard, right eye first
  30690. </p>
  30691. </dd>
  30692. <dt>&lsquo;<samp>icl</samp>&rsquo;</dt>
  30693. <dd><p>interleaved columns, left eye first
  30694. </p>
  30695. </dd>
  30696. <dt>&lsquo;<samp>icr</samp>&rsquo;</dt>
  30697. <dd><p>interleaved columns, right eye first
  30698. </p>
  30699. </dd>
  30700. <dt>&lsquo;<samp>hdmi</samp>&rsquo;</dt>
  30701. <dd><p>HDMI frame pack
  30702. </p></dd>
  30703. </dl>
  30704. <p>Default value is &lsquo;<samp>arcd</samp>&rsquo;.
  30705. </p></dd>
  30706. </dl>
  30707. <a name="Examples-73"></a>
  30708. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-73">32.194.1 Examples</a></h3>
  30709. <ul>
  30710. <li>
  30711. Convert input video from side by side parallel to anaglyph yellow/blue dubois:
  30712. <div class="example">
  30713. <pre class="example">stereo3d=sbsl:aybd
  30714. </pre></div>
  30715. </li><li>
  30716. Convert input video from above below (left eye above, right eye below) to side by side crosseye.
  30717. <div class="example">
  30718. <pre class="example">stereo3d=abl:sbsr
  30719. </pre></div>
  30720. </li></ul>
  30721. <a name="streamselect_002c-astreamselect"></a>
  30722. <h2 class="section"><a href="ffprobe-all.html#toc-streamselect_002c-astreamselect">32.195 streamselect, astreamselect</a></h2>
  30723. <p>Select video or audio streams.
  30724. </p>
  30725. <p>The filter accepts the following options:
  30726. </p>
  30727. <dl compact="compact">
  30728. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  30729. <dd><p>Set number of inputs. Default is 2.
  30730. </p>
  30731. </dd>
  30732. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  30733. <dd><p>Set input indexes to remap to outputs.
  30734. </p></dd>
  30735. </dl>
  30736. <a name="Commands-11"></a>
  30737. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-11">32.195.1 Commands</a></h3>
  30738. <p>The <code>streamselect</code> and <code>astreamselect</code> filter supports the following
  30739. commands:
  30740. </p>
  30741. <dl compact="compact">
  30742. <dt>&lsquo;<samp>map</samp>&rsquo;</dt>
  30743. <dd><p>Set input indexes to remap to outputs.
  30744. </p></dd>
  30745. </dl>
  30746. <a name="Examples-76"></a>
  30747. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-76">32.195.2 Examples</a></h3>
  30748. <ul>
  30749. <li>
  30750. Select first 5 seconds 1st stream and rest of time 2nd stream:
  30751. <div class="example">
  30752. <pre class="example">sendcmd='5.0 streamselect map 1',streamselect=inputs=2:map=0
  30753. </pre></div>
  30754. </li><li>
  30755. Same as above, but for audio:
  30756. <div class="example">
  30757. <pre class="example">asendcmd='5.0 astreamselect map 1',astreamselect=inputs=2:map=0
  30758. </pre></div>
  30759. </li></ul>
  30760. <p><a name="subtitles"></a>
  30761. </p><a name="subtitles-1"></a>
  30762. <h2 class="section"><a href="ffprobe-all.html#toc-subtitles-1">32.196 subtitles</a></h2>
  30763. <p>Draw subtitles on top of input video using the libass library.
  30764. </p>
  30765. <p>To enable compilation of this filter you need to configure FFmpeg with
  30766. <code>--enable-libass</code>. This filter also requires a build with libavcodec and
  30767. libavformat to convert the passed subtitles file to ASS (Advanced Substation
  30768. Alpha) subtitles format.
  30769. </p>
  30770. <p>The filter accepts the following options:
  30771. </p>
  30772. <dl compact="compact">
  30773. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  30774. <dd><p>Set the filename of the subtitle file to read. It must be specified.
  30775. </p>
  30776. </dd>
  30777. <dt>&lsquo;<samp>original_size</samp>&rsquo;</dt>
  30778. <dd><p>Specify the size of the original video, the video for which the ASS file
  30779. was composed. For the syntax of this option, check the
  30780. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  30781. Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to
  30782. correctly scale the fonts if the aspect ratio has been changed.
  30783. </p>
  30784. </dd>
  30785. <dt>&lsquo;<samp>fontsdir</samp>&rsquo;</dt>
  30786. <dd><p>Set a directory path containing fonts that can be used by the filter.
  30787. These fonts will be used in addition to whatever the font provider uses.
  30788. </p>
  30789. </dd>
  30790. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  30791. <dd><p>Process alpha channel, by default alpha channel is untouched.
  30792. </p>
  30793. </dd>
  30794. <dt>&lsquo;<samp>charenc</samp>&rsquo;</dt>
  30795. <dd><p>Set subtitles input character encoding. <code>subtitles</code> filter only. Only
  30796. useful if not UTF-8.
  30797. </p>
  30798. </dd>
  30799. <dt>&lsquo;<samp>stream_index, si</samp>&rsquo;</dt>
  30800. <dd><p>Set subtitles stream index. <code>subtitles</code> filter only.
  30801. </p>
  30802. </dd>
  30803. <dt>&lsquo;<samp>force_style</samp>&rsquo;</dt>
  30804. <dd><p>Override default style or script info parameters of the subtitles. It accepts a
  30805. string containing ASS style format <code>KEY=VALUE</code> couples separated by &quot;,&quot;.
  30806. </p></dd>
  30807. </dl>
  30808. <p>If the first key is not specified, it is assumed that the first value
  30809. specifies the &lsquo;<samp>filename</samp>&rsquo;.
  30810. </p>
  30811. <p>For example, to render the file &lsquo;<tt>sub.srt</tt>&rsquo; on top of the input
  30812. video, use the command:
  30813. </p><div class="example">
  30814. <pre class="example">subtitles=sub.srt
  30815. </pre></div>
  30816. <p>which is equivalent to:
  30817. </p><div class="example">
  30818. <pre class="example">subtitles=filename=sub.srt
  30819. </pre></div>
  30820. <p>To render the default subtitles stream from file &lsquo;<tt>video.mkv</tt>&rsquo;, use:
  30821. </p><div class="example">
  30822. <pre class="example">subtitles=video.mkv
  30823. </pre></div>
  30824. <p>To render the second subtitles stream from that file, use:
  30825. </p><div class="example">
  30826. <pre class="example">subtitles=video.mkv:si=1
  30827. </pre></div>
  30828. <p>To make the subtitles stream from &lsquo;<tt>sub.srt</tt>&rsquo; appear in 80% transparent blue
  30829. <code>DejaVu Serif</code>, use:
  30830. </p><div class="example">
  30831. <pre class="example">subtitles=sub.srt:force_style='FontName=DejaVu Serif,PrimaryColour=&amp;HCCFF0000'
  30832. </pre></div>
  30833. <a name="super2xsai"></a>
  30834. <h2 class="section"><a href="ffprobe-all.html#toc-super2xsai">32.197 super2xsai</a></h2>
  30835. <p>Scale the input by 2x and smooth using the Super2xSaI (Scale and
  30836. Interpolate) pixel art scaling algorithm.
  30837. </p>
  30838. <p>Useful for enlarging pixel art images without reducing sharpness.
  30839. </p>
  30840. <a name="swaprect"></a>
  30841. <h2 class="section"><a href="ffprobe-all.html#toc-swaprect">32.198 swaprect</a></h2>
  30842. <p>Swap two rectangular objects in video.
  30843. </p>
  30844. <p>This filter accepts the following options:
  30845. </p>
  30846. <dl compact="compact">
  30847. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  30848. <dd><p>Set object width.
  30849. </p>
  30850. </dd>
  30851. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  30852. <dd><p>Set object height.
  30853. </p>
  30854. </dd>
  30855. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  30856. <dd><p>Set 1st rect x coordinate.
  30857. </p>
  30858. </dd>
  30859. <dt>&lsquo;<samp>y1</samp>&rsquo;</dt>
  30860. <dd><p>Set 1st rect y coordinate.
  30861. </p>
  30862. </dd>
  30863. <dt>&lsquo;<samp>x2</samp>&rsquo;</dt>
  30864. <dd><p>Set 2nd rect x coordinate.
  30865. </p>
  30866. </dd>
  30867. <dt>&lsquo;<samp>y2</samp>&rsquo;</dt>
  30868. <dd><p>Set 2nd rect y coordinate.
  30869. </p>
  30870. <p>All expressions are evaluated once for each frame.
  30871. </p></dd>
  30872. </dl>
  30873. <p>The all options are expressions containing the following constants:
  30874. </p>
  30875. <dl compact="compact">
  30876. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  30877. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  30878. <dd><p>The input width and height.
  30879. </p>
  30880. </dd>
  30881. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  30882. <dd><p>same as <var>w</var> / <var>h</var>
  30883. </p>
  30884. </dd>
  30885. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  30886. <dd><p>input sample aspect ratio
  30887. </p>
  30888. </dd>
  30889. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  30890. <dd><p>input display aspect ratio, it is the same as (<var>w</var> / <var>h</var>) * <var>sar</var>
  30891. </p>
  30892. </dd>
  30893. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  30894. <dd><p>The number of the input frame, starting from 0.
  30895. </p>
  30896. </dd>
  30897. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  30898. <dd><p>The timestamp expressed in seconds. It&rsquo;s NAN if the input timestamp is unknown.
  30899. </p>
  30900. </dd>
  30901. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  30902. <dd><p>the position in the file of the input frame, NAN if unknown
  30903. </p></dd>
  30904. </dl>
  30905. <a name="swapuv"></a>
  30906. <h2 class="section"><a href="ffprobe-all.html#toc-swapuv">32.199 swapuv</a></h2>
  30907. <p>Swap U &amp; V plane.
  30908. </p>
  30909. <a name="tblend"></a>
  30910. <h2 class="section"><a href="ffprobe-all.html#toc-tblend">32.200 tblend</a></h2>
  30911. <p>Blend successive video frames.
  30912. </p>
  30913. <p>See <a href="#blend">blend</a>
  30914. </p>
  30915. <a name="telecine"></a>
  30916. <h2 class="section"><a href="ffprobe-all.html#toc-telecine">32.201 telecine</a></h2>
  30917. <p>Apply telecine process to the video.
  30918. </p>
  30919. <p>This filter accepts the following options:
  30920. </p>
  30921. <dl compact="compact">
  30922. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  30923. <dd><dl compact="compact">
  30924. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  30925. <dd><p>top field first
  30926. </p></dd>
  30927. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  30928. <dd><p>bottom field first
  30929. The default value is <code>top</code>.
  30930. </p></dd>
  30931. </dl>
  30932. </dd>
  30933. <dt>&lsquo;<samp>pattern</samp>&rsquo;</dt>
  30934. <dd><p>A string of numbers representing the pulldown pattern you wish to apply.
  30935. The default value is <code>23</code>.
  30936. </p></dd>
  30937. </dl>
  30938. <div class="example">
  30939. <pre class="example">Some typical patterns:
  30940. NTSC output (30i):
  30941. 27.5p: 32222
  30942. 24p: 23 (classic)
  30943. 24p: 2332 (preferred)
  30944. 20p: 33
  30945. 18p: 334
  30946. 16p: 3444
  30947. PAL output (25i):
  30948. 27.5p: 12222
  30949. 24p: 222222222223 (&quot;Euro pulldown&quot;)
  30950. 16.67p: 33
  30951. 16p: 33333334
  30952. </pre></div>
  30953. <a name="thistogram"></a>
  30954. <h2 class="section"><a href="ffprobe-all.html#toc-thistogram">32.202 thistogram</a></h2>
  30955. <p>Compute and draw a color distribution histogram for the input video across time.
  30956. </p>
  30957. <p>Unlike <a href="#histogram">histogram</a> video filter which only shows histogram of single input frame
  30958. at certain time, this filter shows also past histograms of number of frames defined
  30959. by <code>width</code> option.
  30960. </p>
  30961. <p>The computed histogram is a representation of the color component
  30962. distribution in an image.
  30963. </p>
  30964. <p>The filter accepts the following options:
  30965. </p>
  30966. <dl compact="compact">
  30967. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  30968. <dd><p>Set width of single color component output. Default value is <code>0</code>.
  30969. Value of <code>0</code> means width will be picked from input video.
  30970. This also set number of passed histograms to keep.
  30971. Allowed range is [0, 8192].
  30972. </p>
  30973. </dd>
  30974. <dt>&lsquo;<samp>display_mode, d</samp>&rsquo;</dt>
  30975. <dd><p>Set display mode.
  30976. It accepts the following values:
  30977. </p><dl compact="compact">
  30978. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  30979. <dd><p>Per color component graphs are placed below each other.
  30980. </p>
  30981. </dd>
  30982. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  30983. <dd><p>Per color component graphs are placed side by side.
  30984. </p>
  30985. </dd>
  30986. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  30987. <dd><p>Presents information identical to that in the <code>parade</code>, except
  30988. that the graphs representing color components are superimposed directly
  30989. over one another.
  30990. </p></dd>
  30991. </dl>
  30992. <p>Default is <code>stack</code>.
  30993. </p>
  30994. </dd>
  30995. <dt>&lsquo;<samp>levels_mode, m</samp>&rsquo;</dt>
  30996. <dd><p>Set mode. Can be either <code>linear</code>, or <code>logarithmic</code>.
  30997. Default is <code>linear</code>.
  30998. </p>
  30999. </dd>
  31000. <dt>&lsquo;<samp>components, c</samp>&rsquo;</dt>
  31001. <dd><p>Set what color components to display.
  31002. Default is <code>7</code>.
  31003. </p>
  31004. </dd>
  31005. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  31006. <dd><p>Set background opacity. Default is <code>0.9</code>.
  31007. </p>
  31008. </dd>
  31009. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  31010. <dd><p>Show envelope. Default is disabled.
  31011. </p>
  31012. </dd>
  31013. <dt>&lsquo;<samp>ecolor, ec</samp>&rsquo;</dt>
  31014. <dd><p>Set envelope color. Default is <code>gold</code>.
  31015. </p></dd>
  31016. </dl>
  31017. <a name="threshold"></a>
  31018. <h2 class="section"><a href="ffprobe-all.html#toc-threshold">32.203 threshold</a></h2>
  31019. <p>Apply threshold effect to video stream.
  31020. </p>
  31021. <p>This filter needs four video streams to perform thresholding.
  31022. First stream is stream we are filtering.
  31023. Second stream is holding threshold values, third stream is holding min values,
  31024. and last, fourth stream is holding max values.
  31025. </p>
  31026. <p>The filter accepts the following option:
  31027. </p>
  31028. <dl compact="compact">
  31029. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  31030. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  31031. By default value 0xf, all planes will be processed.
  31032. </p></dd>
  31033. </dl>
  31034. <p>For example if first stream pixel&rsquo;s component value is less then threshold value
  31035. of pixel component from 2nd threshold stream, third stream value will picked,
  31036. otherwise fourth stream pixel component value will be picked.
  31037. </p>
  31038. <p>Using color source filter one can perform various types of thresholding:
  31039. </p>
  31040. <a name="Examples-44"></a>
  31041. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-44">32.203.1 Examples</a></h3>
  31042. <ul>
  31043. <li>
  31044. Binary threshold, using gray color as threshold:
  31045. <div class="example">
  31046. <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
  31047. </pre></div>
  31048. </li><li>
  31049. Inverted binary threshold, using gray color as threshold:
  31050. <div class="example">
  31051. <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
  31052. </pre></div>
  31053. </li><li>
  31054. Truncate binary threshold, using gray color as threshold:
  31055. <div class="example">
  31056. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -i 320x240.avi -f lavfi -i color=gray -lavfi threshold output.avi
  31057. </pre></div>
  31058. </li><li>
  31059. Threshold to zero, using gray color as threshold:
  31060. <div class="example">
  31061. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -f lavfi -i color=white -i 320x240.avi -lavfi threshold output.avi
  31062. </pre></div>
  31063. </li><li>
  31064. Inverted threshold to zero, using gray color as threshold:
  31065. <div class="example">
  31066. <pre class="example">ffmpeg -i 320x240.avi -f lavfi -i color=gray -i 320x240.avi -f lavfi -i color=white -lavfi threshold output.avi
  31067. </pre></div>
  31068. </li></ul>
  31069. <a name="thumbnail"></a>
  31070. <h2 class="section"><a href="ffprobe-all.html#toc-thumbnail">32.204 thumbnail</a></h2>
  31071. <p>Select the most representative frame in a given sequence of consecutive frames.
  31072. </p>
  31073. <p>The filter accepts the following options:
  31074. </p>
  31075. <dl compact="compact">
  31076. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  31077. <dd><p>Set the frames batch size to analyze; in a set of <var>n</var> frames, the filter
  31078. will pick one of them, and then handle the next batch of <var>n</var> frames until
  31079. the end. Default is <code>100</code>.
  31080. </p></dd>
  31081. </dl>
  31082. <p>Since the filter keeps track of the whole frames sequence, a bigger <var>n</var>
  31083. value will result in a higher memory usage, so a high value is not recommended.
  31084. </p>
  31085. <a name="Examples-99"></a>
  31086. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-99">32.204.1 Examples</a></h3>
  31087. <ul>
  31088. <li>
  31089. Extract one picture each 50 frames:
  31090. <div class="example">
  31091. <pre class="example">thumbnail=50
  31092. </pre></div>
  31093. </li><li>
  31094. Complete example of a thumbnail creation with <code>ffmpeg</code>:
  31095. <div class="example">
  31096. <pre class="example">ffmpeg -i in.avi -vf thumbnail,scale=300:200 -frames:v 1 out.png
  31097. </pre></div>
  31098. </li></ul>
  31099. <a name="tile"></a>
  31100. <h2 class="section"><a href="ffprobe-all.html#toc-tile">32.205 tile</a></h2>
  31101. <p>Tile several successive frames together.
  31102. </p>
  31103. <p>The filter accepts the following options:
  31104. </p>
  31105. <dl compact="compact">
  31106. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  31107. <dd><p>Set the grid size (i.e. the number of lines and columns). For the syntax of
  31108. this option, check the
  31109. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  31110. </p>
  31111. </dd>
  31112. <dt>&lsquo;<samp>nb_frames</samp>&rsquo;</dt>
  31113. <dd><p>Set the maximum number of frames to render in the given area. It must be less
  31114. than or equal to <var>w</var>x<var>h</var>. The default value is <code>0</code>, meaning all
  31115. the area will be used.
  31116. </p>
  31117. </dd>
  31118. <dt>&lsquo;<samp>margin</samp>&rsquo;</dt>
  31119. <dd><p>Set the outer border margin in pixels.
  31120. </p>
  31121. </dd>
  31122. <dt>&lsquo;<samp>padding</samp>&rsquo;</dt>
  31123. <dd><p>Set the inner border thickness (i.e. the number of pixels between frames). For
  31124. more advanced padding options (such as having different values for the edges),
  31125. refer to the pad video filter.
  31126. </p>
  31127. </dd>
  31128. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  31129. <dd><p>Specify the color of the unused area. For the syntax of this option, check the
  31130. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  31131. The default value of <var>color</var> is &quot;black&quot;.
  31132. </p>
  31133. </dd>
  31134. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  31135. <dd><p>Set the number of frames to overlap when tiling several successive frames together.
  31136. The value must be between <code>0</code> and <var>nb_frames - 1</var>.
  31137. </p>
  31138. </dd>
  31139. <dt>&lsquo;<samp>init_padding</samp>&rsquo;</dt>
  31140. <dd><p>Set the number of frames to initially be empty before displaying first output frame.
  31141. This controls how soon will one get first output frame.
  31142. The value must be between <code>0</code> and <var>nb_frames - 1</var>.
  31143. </p></dd>
  31144. </dl>
  31145. <a name="Examples-46"></a>
  31146. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-46">32.205.1 Examples</a></h3>
  31147. <ul>
  31148. <li>
  31149. Produce 8x8 PNG tiles of all keyframes (&lsquo;<samp>-skip_frame nokey</samp>&rsquo;) in a movie:
  31150. <div class="example">
  31151. <pre class="example">ffmpeg -skip_frame nokey -i file.avi -vf 'scale=128:72,tile=8x8' -an -vsync 0 keyframes%03d.png
  31152. </pre></div>
  31153. <p>The &lsquo;<samp>-vsync 0</samp>&rsquo; is necessary to prevent <code>ffmpeg</code> from
  31154. duplicating each output frame to accommodate the originally detected frame
  31155. rate.
  31156. </p>
  31157. </li><li>
  31158. Display <code>5</code> pictures in an area of <code>3x2</code> frames,
  31159. with <code>7</code> pixels between them, and <code>2</code> pixels of initial margin, using
  31160. mixed flat and named options:
  31161. <div class="example">
  31162. <pre class="example">tile=3x2:nb_frames=5:padding=7:margin=2
  31163. </pre></div>
  31164. </li></ul>
  31165. <a name="tinterlace"></a>
  31166. <h2 class="section"><a href="ffprobe-all.html#toc-tinterlace">32.206 tinterlace</a></h2>
  31167. <p>Perform various types of temporal field interlacing.
  31168. </p>
  31169. <p>Frames are counted starting from 1, so the first input frame is
  31170. considered odd.
  31171. </p>
  31172. <p>The filter accepts the following options:
  31173. </p>
  31174. <dl compact="compact">
  31175. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  31176. <dd><p>Specify the mode of the interlacing. This option can also be specified
  31177. as a value alone. See below for a list of values for this option.
  31178. </p>
  31179. <p>Available values are:
  31180. </p>
  31181. <dl compact="compact">
  31182. <dt>&lsquo;<samp>merge, 0</samp>&rsquo;</dt>
  31183. <dd><p>Move odd frames into the upper field, even into the lower field,
  31184. generating a double height frame at half frame rate.
  31185. </p><div class="example">
  31186. <pre class="example"> ------&gt; time
  31187. Input:
  31188. Frame 1 Frame 2 Frame 3 Frame 4
  31189. 11111 22222 33333 44444
  31190. 11111 22222 33333 44444
  31191. 11111 22222 33333 44444
  31192. 11111 22222 33333 44444
  31193. Output:
  31194. 11111 33333
  31195. 22222 44444
  31196. 11111 33333
  31197. 22222 44444
  31198. 11111 33333
  31199. 22222 44444
  31200. 11111 33333
  31201. 22222 44444
  31202. </pre></div>
  31203. </dd>
  31204. <dt>&lsquo;<samp>drop_even, 1</samp>&rsquo;</dt>
  31205. <dd><p>Only output odd frames, even frames are dropped, generating a frame with
  31206. unchanged height at half frame rate.
  31207. </p>
  31208. <div class="example">
  31209. <pre class="example"> ------&gt; time
  31210. Input:
  31211. Frame 1 Frame 2 Frame 3 Frame 4
  31212. 11111 22222 33333 44444
  31213. 11111 22222 33333 44444
  31214. 11111 22222 33333 44444
  31215. 11111 22222 33333 44444
  31216. Output:
  31217. 11111 33333
  31218. 11111 33333
  31219. 11111 33333
  31220. 11111 33333
  31221. </pre></div>
  31222. </dd>
  31223. <dt>&lsquo;<samp>drop_odd, 2</samp>&rsquo;</dt>
  31224. <dd><p>Only output even frames, odd frames are dropped, generating a frame with
  31225. unchanged height at half frame rate.
  31226. </p>
  31227. <div class="example">
  31228. <pre class="example"> ------&gt; time
  31229. Input:
  31230. Frame 1 Frame 2 Frame 3 Frame 4
  31231. 11111 22222 33333 44444
  31232. 11111 22222 33333 44444
  31233. 11111 22222 33333 44444
  31234. 11111 22222 33333 44444
  31235. Output:
  31236. 22222 44444
  31237. 22222 44444
  31238. 22222 44444
  31239. 22222 44444
  31240. </pre></div>
  31241. </dd>
  31242. <dt>&lsquo;<samp>pad, 3</samp>&rsquo;</dt>
  31243. <dd><p>Expand each frame to full height, but pad alternate lines with black,
  31244. generating a frame with double height at the same input frame rate.
  31245. </p>
  31246. <div class="example">
  31247. <pre class="example"> ------&gt; time
  31248. Input:
  31249. Frame 1 Frame 2 Frame 3 Frame 4
  31250. 11111 22222 33333 44444
  31251. 11111 22222 33333 44444
  31252. 11111 22222 33333 44444
  31253. 11111 22222 33333 44444
  31254. Output:
  31255. 11111 ..... 33333 .....
  31256. ..... 22222 ..... 44444
  31257. 11111 ..... 33333 .....
  31258. ..... 22222 ..... 44444
  31259. 11111 ..... 33333 .....
  31260. ..... 22222 ..... 44444
  31261. 11111 ..... 33333 .....
  31262. ..... 22222 ..... 44444
  31263. </pre></div>
  31264. </dd>
  31265. <dt>&lsquo;<samp>interleave_top, 4</samp>&rsquo;</dt>
  31266. <dd><p>Interleave the upper field from odd frames with the lower field from
  31267. even frames, generating a frame with unchanged height at half frame rate.
  31268. </p>
  31269. <div class="example">
  31270. <pre class="example"> ------&gt; time
  31271. Input:
  31272. Frame 1 Frame 2 Frame 3 Frame 4
  31273. 11111&lt;- 22222 33333&lt;- 44444
  31274. 11111 22222&lt;- 33333 44444&lt;-
  31275. 11111&lt;- 22222 33333&lt;- 44444
  31276. 11111 22222&lt;- 33333 44444&lt;-
  31277. Output:
  31278. 11111 33333
  31279. 22222 44444
  31280. 11111 33333
  31281. 22222 44444
  31282. </pre></div>
  31283. </dd>
  31284. <dt>&lsquo;<samp>interleave_bottom, 5</samp>&rsquo;</dt>
  31285. <dd><p>Interleave the lower field from odd frames with the upper field from
  31286. even frames, generating a frame with unchanged height at half frame rate.
  31287. </p>
  31288. <div class="example">
  31289. <pre class="example"> ------&gt; time
  31290. Input:
  31291. Frame 1 Frame 2 Frame 3 Frame 4
  31292. 11111 22222&lt;- 33333 44444&lt;-
  31293. 11111&lt;- 22222 33333&lt;- 44444
  31294. 11111 22222&lt;- 33333 44444&lt;-
  31295. 11111&lt;- 22222 33333&lt;- 44444
  31296. Output:
  31297. 22222 44444
  31298. 11111 33333
  31299. 22222 44444
  31300. 11111 33333
  31301. </pre></div>
  31302. </dd>
  31303. <dt>&lsquo;<samp>interlacex2, 6</samp>&rsquo;</dt>
  31304. <dd><p>Double frame rate with unchanged height. Frames are inserted each
  31305. containing the second temporal field from the previous input frame and
  31306. the first temporal field from the next input frame. This mode relies on
  31307. the top_field_first flag. Useful for interlaced video displays with no
  31308. field synchronisation.
  31309. </p>
  31310. <div class="example">
  31311. <pre class="example"> ------&gt; time
  31312. Input:
  31313. Frame 1 Frame 2 Frame 3 Frame 4
  31314. 11111 22222 33333 44444
  31315. 11111 22222 33333 44444
  31316. 11111 22222 33333 44444
  31317. 11111 22222 33333 44444
  31318. Output:
  31319. 11111 22222 22222 33333 33333 44444 44444
  31320. 11111 11111 22222 22222 33333 33333 44444
  31321. 11111 22222 22222 33333 33333 44444 44444
  31322. 11111 11111 22222 22222 33333 33333 44444
  31323. </pre></div>
  31324. </dd>
  31325. <dt>&lsquo;<samp>mergex2, 7</samp>&rsquo;</dt>
  31326. <dd><p>Move odd frames into the upper field, even into the lower field,
  31327. generating a double height frame at same frame rate.
  31328. </p>
  31329. <div class="example">
  31330. <pre class="example"> ------&gt; time
  31331. Input:
  31332. Frame 1 Frame 2 Frame 3 Frame 4
  31333. 11111 22222 33333 44444
  31334. 11111 22222 33333 44444
  31335. 11111 22222 33333 44444
  31336. 11111 22222 33333 44444
  31337. Output:
  31338. 11111 33333 33333 55555
  31339. 22222 22222 44444 44444
  31340. 11111 33333 33333 55555
  31341. 22222 22222 44444 44444
  31342. 11111 33333 33333 55555
  31343. 22222 22222 44444 44444
  31344. 11111 33333 33333 55555
  31345. 22222 22222 44444 44444
  31346. </pre></div>
  31347. </dd>
  31348. </dl>
  31349. <p>Numeric values are deprecated but are accepted for backward
  31350. compatibility reasons.
  31351. </p>
  31352. <p>Default mode is <code>merge</code>.
  31353. </p>
  31354. </dd>
  31355. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  31356. <dd><p>Specify flags influencing the filter process.
  31357. </p>
  31358. <p>Available value for <var>flags</var> is:
  31359. </p>
  31360. <dl compact="compact">
  31361. <dt>&lsquo;<samp>low_pass_filter, vlpf</samp>&rsquo;</dt>
  31362. <dd><p>Enable linear vertical low-pass filtering in the filter.
  31363. Vertical low-pass filtering is required when creating an interlaced
  31364. destination from a progressive source which contains high-frequency
  31365. vertical detail. Filtering will reduce interlace &rsquo;twitter&rsquo; and Moire
  31366. patterning.
  31367. </p>
  31368. </dd>
  31369. <dt>&lsquo;<samp>complex_filter, cvlpf</samp>&rsquo;</dt>
  31370. <dd><p>Enable complex vertical low-pass filtering.
  31371. This will slightly less reduce interlace &rsquo;twitter&rsquo; and Moire
  31372. patterning but better retain detail and subjective sharpness impression.
  31373. </p>
  31374. </dd>
  31375. <dt>&lsquo;<samp>bypass_il</samp>&rsquo;</dt>
  31376. <dd><p>Bypass already interlaced frames, only adjust the frame rate.
  31377. </p></dd>
  31378. </dl>
  31379. <p>Vertical low-pass filtering and bypassing already interlaced frames can only be
  31380. enabled for &lsquo;<samp>mode</samp>&rsquo; <var>interleave_top</var> and <var>interleave_bottom</var>.
  31381. </p>
  31382. </dd>
  31383. </dl>
  31384. <a name="tmix"></a>
  31385. <h2 class="section"><a href="ffprobe-all.html#toc-tmix">32.207 tmix</a></h2>
  31386. <p>Mix successive video frames.
  31387. </p>
  31388. <p>A description of the accepted options follows.
  31389. </p>
  31390. <dl compact="compact">
  31391. <dt>&lsquo;<samp>frames</samp>&rsquo;</dt>
  31392. <dd><p>The number of successive frames to mix. If unspecified, it defaults to 3.
  31393. </p>
  31394. </dd>
  31395. <dt>&lsquo;<samp>weights</samp>&rsquo;</dt>
  31396. <dd><p>Specify weight of each input video frame.
  31397. Each weight is separated by space. If number of weights is smaller than
  31398. number of <var>frames</var> last specified weight will be used for all remaining
  31399. unset weights.
  31400. </p>
  31401. </dd>
  31402. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  31403. <dd><p>Specify scale, if it is set it will be multiplied with sum
  31404. of each weight multiplied with pixel values to give final destination
  31405. pixel value. By default <var>scale</var> is auto scaled to sum of weights.
  31406. </p></dd>
  31407. </dl>
  31408. <a name="Examples-157"></a>
  31409. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-157">32.207.1 Examples</a></h3>
  31410. <ul>
  31411. <li>
  31412. Average 7 successive frames:
  31413. <div class="example">
  31414. <pre class="example">tmix=frames=7:weights=&quot;1 1 1 1 1 1 1&quot;
  31415. </pre></div>
  31416. </li><li>
  31417. Apply simple temporal convolution:
  31418. <div class="example">
  31419. <pre class="example">tmix=frames=3:weights=&quot;-1 3 -1&quot;
  31420. </pre></div>
  31421. </li><li>
  31422. Similar as above but only showing temporal differences:
  31423. <div class="example">
  31424. <pre class="example">tmix=frames=3:weights=&quot;-1 2 -1&quot;:scale=1
  31425. </pre></div>
  31426. </li></ul>
  31427. <p><a name="tonemap"></a>
  31428. </p><a name="tonemap-1"></a>
  31429. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap-1">32.208 tonemap</a></h2>
  31430. <p>Tone map colors from different dynamic ranges.
  31431. </p>
  31432. <p>This filter expects data in single precision floating point, as it needs to
  31433. operate on (and can output) out-of-range values. Another filter, such as
  31434. <a href="#zscale">zscale</a>, is needed to convert the resulting frame to a usable format.
  31435. </p>
  31436. <p>The tonemapping algorithms implemented only work on linear light, so input
  31437. data should be linearized beforehand (and possibly correctly tagged).
  31438. </p>
  31439. <div class="example">
  31440. <pre class="example">ffmpeg -i INPUT -vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p OUTPUT
  31441. </pre></div>
  31442. <a name="Options-34"></a>
  31443. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-34">32.208.1 Options</a></h3>
  31444. <p>The filter accepts the following options.
  31445. </p>
  31446. <dl compact="compact">
  31447. <dt>&lsquo;<samp>tonemap</samp>&rsquo;</dt>
  31448. <dd><p>Set the tone map algorithm to use.
  31449. </p>
  31450. <p>Possible values are:
  31451. </p><dl compact="compact">
  31452. <dt><var>none</var></dt>
  31453. <dd><p>Do not apply any tone map, only desaturate overbright pixels.
  31454. </p>
  31455. </dd>
  31456. <dt><var>clip</var></dt>
  31457. <dd><p>Hard-clip any out-of-range values. Use it for perfect color accuracy for
  31458. in-range values, while distorting out-of-range values.
  31459. </p>
  31460. </dd>
  31461. <dt><var>linear</var></dt>
  31462. <dd><p>Stretch the entire reference gamut to a linear multiple of the display.
  31463. </p>
  31464. </dd>
  31465. <dt><var>gamma</var></dt>
  31466. <dd><p>Fit a logarithmic transfer between the tone curves.
  31467. </p>
  31468. </dd>
  31469. <dt><var>reinhard</var></dt>
  31470. <dd><p>Preserve overall image brightness with a simple curve, using nonlinear
  31471. contrast, which results in flattening details and degrading color accuracy.
  31472. </p>
  31473. </dd>
  31474. <dt><var>hable</var></dt>
  31475. <dd><p>Preserve both dark and bright details better than <var>reinhard</var>, at the cost
  31476. of slightly darkening everything. Use it when detail preservation is more
  31477. important than color and brightness accuracy.
  31478. </p>
  31479. </dd>
  31480. <dt><var>mobius</var></dt>
  31481. <dd><p>Smoothly map out-of-range values, while retaining contrast and colors for
  31482. in-range material as much as possible. Use it when color accuracy is more
  31483. important than detail preservation.
  31484. </p></dd>
  31485. </dl>
  31486. <p>Default is none.
  31487. </p>
  31488. </dd>
  31489. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  31490. <dd><p>Tune the tone mapping algorithm.
  31491. </p>
  31492. <p>This affects the following algorithms:
  31493. </p><dl compact="compact">
  31494. <dt><var>none</var></dt>
  31495. <dd><p>Ignored.
  31496. </p>
  31497. </dd>
  31498. <dt><var>linear</var></dt>
  31499. <dd><p>Specifies the scale factor to use while stretching.
  31500. Default to 1.0.
  31501. </p>
  31502. </dd>
  31503. <dt><var>gamma</var></dt>
  31504. <dd><p>Specifies the exponent of the function.
  31505. Default to 1.8.
  31506. </p>
  31507. </dd>
  31508. <dt><var>clip</var></dt>
  31509. <dd><p>Specify an extra linear coefficient to multiply into the signal before clipping.
  31510. Default to 1.0.
  31511. </p>
  31512. </dd>
  31513. <dt><var>reinhard</var></dt>
  31514. <dd><p>Specify the local contrast coefficient at the display peak.
  31515. Default to 0.5, which means that in-gamut values will be about half as bright
  31516. as when clipping.
  31517. </p>
  31518. </dd>
  31519. <dt><var>hable</var></dt>
  31520. <dd><p>Ignored.
  31521. </p>
  31522. </dd>
  31523. <dt><var>mobius</var></dt>
  31524. <dd><p>Specify the transition point from linear to mobius transform. Every value
  31525. below this point is guaranteed to be mapped 1:1. The higher the value, the
  31526. more accurate the result will be, at the cost of losing bright details.
  31527. Default to 0.3, which due to the steep initial slope still preserves in-range
  31528. colors fairly accurately.
  31529. </p></dd>
  31530. </dl>
  31531. </dd>
  31532. <dt>&lsquo;<samp>desat</samp>&rsquo;</dt>
  31533. <dd><p>Apply desaturation for highlights that exceed this level of brightness. The
  31534. higher the parameter, the more color information will be preserved. This
  31535. setting helps prevent unnaturally blown-out colors for super-highlights, by
  31536. (smoothly) turning into white instead. This makes images feel more natural,
  31537. at the cost of reducing information about out-of-range colors.
  31538. </p>
  31539. <p>The default of 2.0 is somewhat conservative and will mostly just apply to
  31540. skies or directly sunlit surfaces. A setting of 0.0 disables this option.
  31541. </p>
  31542. <p>This option works only if the input frame has a supported color tag.
  31543. </p>
  31544. </dd>
  31545. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  31546. <dd><p>Override signal/nominal/reference peak with this value. Useful when the
  31547. embedded peak information in display metadata is not reliable or when tone
  31548. mapping from a lower range to a higher range.
  31549. </p></dd>
  31550. </dl>
  31551. <a name="tpad"></a>
  31552. <h2 class="section"><a href="ffprobe-all.html#toc-tpad">32.209 tpad</a></h2>
  31553. <p>Temporarily pad video frames.
  31554. </p>
  31555. <p>The filter accepts the following options:
  31556. </p>
  31557. <dl compact="compact">
  31558. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  31559. <dd><p>Specify number of delay frames before input video stream.
  31560. </p>
  31561. </dd>
  31562. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  31563. <dd><p>Specify number of padding frames after input video stream.
  31564. Set to -1 to pad indefinitely.
  31565. </p>
  31566. </dd>
  31567. <dt>&lsquo;<samp>start_mode</samp>&rsquo;</dt>
  31568. <dd><p>Set kind of frames added to beginning of stream.
  31569. Can be either <var>add</var> or <var>clone</var>.
  31570. With <var>add</var> frames of solid-color are added.
  31571. With <var>clone</var> frames are clones of first frame.
  31572. </p>
  31573. </dd>
  31574. <dt>&lsquo;<samp>stop_mode</samp>&rsquo;</dt>
  31575. <dd><p>Set kind of frames added to end of stream.
  31576. Can be either <var>add</var> or <var>clone</var>.
  31577. With <var>add</var> frames of solid-color are added.
  31578. With <var>clone</var> frames are clones of last frame.
  31579. </p>
  31580. </dd>
  31581. <dt>&lsquo;<samp>start_duration, stop_duration</samp>&rsquo;</dt>
  31582. <dd><p>Specify the duration of the start/stop delay. See
  31583. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  31584. for the accepted syntax.
  31585. These options override <var>start</var> and <var>stop</var>.
  31586. </p>
  31587. </dd>
  31588. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  31589. <dd><p>Specify the color of the padded area. For the syntax of this option,
  31590. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  31591. </p>
  31592. <p>The default value of <var>color</var> is &quot;black&quot;.
  31593. </p></dd>
  31594. </dl>
  31595. <p><a name="transpose"></a>
  31596. </p><a name="transpose-1"></a>
  31597. <h2 class="section"><a href="ffprobe-all.html#toc-transpose-1">32.210 transpose</a></h2>
  31598. <p>Transpose rows with columns in the input video and optionally flip it.
  31599. </p>
  31600. <p>It accepts the following parameters:
  31601. </p>
  31602. <dl compact="compact">
  31603. <dt>&lsquo;<samp>dir</samp>&rsquo;</dt>
  31604. <dd><p>Specify the transposition direction.
  31605. </p>
  31606. <p>Can assume the following values:
  31607. </p><dl compact="compact">
  31608. <dt>&lsquo;<samp>0, 4, cclock_flip</samp>&rsquo;</dt>
  31609. <dd><p>Rotate by 90 degrees counterclockwise and vertically flip (default), that is:
  31610. </p><div class="example">
  31611. <pre class="example">L.R L.l
  31612. . . -&gt; . .
  31613. l.r R.r
  31614. </pre></div>
  31615. </dd>
  31616. <dt>&lsquo;<samp>1, 5, clock</samp>&rsquo;</dt>
  31617. <dd><p>Rotate by 90 degrees clockwise, that is:
  31618. </p><div class="example">
  31619. <pre class="example">L.R l.L
  31620. . . -&gt; . .
  31621. l.r r.R
  31622. </pre></div>
  31623. </dd>
  31624. <dt>&lsquo;<samp>2, 6, cclock</samp>&rsquo;</dt>
  31625. <dd><p>Rotate by 90 degrees counterclockwise, that is:
  31626. </p><div class="example">
  31627. <pre class="example">L.R R.r
  31628. . . -&gt; . .
  31629. l.r L.l
  31630. </pre></div>
  31631. </dd>
  31632. <dt>&lsquo;<samp>3, 7, clock_flip</samp>&rsquo;</dt>
  31633. <dd><p>Rotate by 90 degrees clockwise and vertically flip, that is:
  31634. </p><div class="example">
  31635. <pre class="example">L.R r.R
  31636. . . -&gt; . .
  31637. l.r l.L
  31638. </pre></div>
  31639. </dd>
  31640. </dl>
  31641. <p>For values between 4-7, the transposition is only done if the input
  31642. video geometry is portrait and not landscape. These values are
  31643. deprecated, the <code>passthrough</code> option should be used instead.
  31644. </p>
  31645. <p>Numerical values are deprecated, and should be dropped in favor of
  31646. symbolic constants.
  31647. </p>
  31648. </dd>
  31649. <dt>&lsquo;<samp>passthrough</samp>&rsquo;</dt>
  31650. <dd><p>Do not apply the transposition if the input geometry matches the one
  31651. specified by the specified value. It accepts the following values:
  31652. </p><dl compact="compact">
  31653. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  31654. <dd><p>Always apply transposition.
  31655. </p></dd>
  31656. <dt>&lsquo;<samp>portrait</samp>&rsquo;</dt>
  31657. <dd><p>Preserve portrait geometry (when <var>height</var> &gt;= <var>width</var>).
  31658. </p></dd>
  31659. <dt>&lsquo;<samp>landscape</samp>&rsquo;</dt>
  31660. <dd><p>Preserve landscape geometry (when <var>width</var> &gt;= <var>height</var>).
  31661. </p></dd>
  31662. </dl>
  31663. <p>Default value is <code>none</code>.
  31664. </p></dd>
  31665. </dl>
  31666. <p>For example to rotate by 90 degrees clockwise and preserve portrait
  31667. layout:
  31668. </p><div class="example">
  31669. <pre class="example">transpose=dir=1:passthrough=portrait
  31670. </pre></div>
  31671. <p>The command above can also be specified as:
  31672. </p><div class="example">
  31673. <pre class="example">transpose=1:portrait
  31674. </pre></div>
  31675. <a name="transpose_005fnpp"></a>
  31676. <h2 class="section"><a href="ffprobe-all.html#toc-transpose_005fnpp">32.211 transpose_npp</a></h2>
  31677. <p>Transpose rows with columns in the input video and optionally flip it.
  31678. For more in depth examples see the <a href="#transpose">transpose</a> video filter, which shares mostly the same options.
  31679. </p>
  31680. <p>It accepts the following parameters:
  31681. </p>
  31682. <dl compact="compact">
  31683. <dt>&lsquo;<samp>dir</samp>&rsquo;</dt>
  31684. <dd><p>Specify the transposition direction.
  31685. </p>
  31686. <p>Can assume the following values:
  31687. </p><dl compact="compact">
  31688. <dt>&lsquo;<samp>cclock_flip</samp>&rsquo;</dt>
  31689. <dd><p>Rotate by 90 degrees counterclockwise and vertically flip. (default)
  31690. </p>
  31691. </dd>
  31692. <dt>&lsquo;<samp>clock</samp>&rsquo;</dt>
  31693. <dd><p>Rotate by 90 degrees clockwise.
  31694. </p>
  31695. </dd>
  31696. <dt>&lsquo;<samp>cclock</samp>&rsquo;</dt>
  31697. <dd><p>Rotate by 90 degrees counterclockwise.
  31698. </p>
  31699. </dd>
  31700. <dt>&lsquo;<samp>clock_flip</samp>&rsquo;</dt>
  31701. <dd><p>Rotate by 90 degrees clockwise and vertically flip.
  31702. </p></dd>
  31703. </dl>
  31704. </dd>
  31705. <dt>&lsquo;<samp>passthrough</samp>&rsquo;</dt>
  31706. <dd><p>Do not apply the transposition if the input geometry matches the one
  31707. specified by the specified value. It accepts the following values:
  31708. </p><dl compact="compact">
  31709. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  31710. <dd><p>Always apply transposition. (default)
  31711. </p></dd>
  31712. <dt>&lsquo;<samp>portrait</samp>&rsquo;</dt>
  31713. <dd><p>Preserve portrait geometry (when <var>height</var> &gt;= <var>width</var>).
  31714. </p></dd>
  31715. <dt>&lsquo;<samp>landscape</samp>&rsquo;</dt>
  31716. <dd><p>Preserve landscape geometry (when <var>width</var> &gt;= <var>height</var>).
  31717. </p></dd>
  31718. </dl>
  31719. </dd>
  31720. </dl>
  31721. <a name="trim"></a>
  31722. <h2 class="section"><a href="ffprobe-all.html#toc-trim">32.212 trim</a></h2>
  31723. <p>Trim the input so that the output contains one continuous subpart of the input.
  31724. </p>
  31725. <p>It accepts the following parameters:
  31726. </p><dl compact="compact">
  31727. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  31728. <dd><p>Specify the time of the start of the kept section, i.e. the frame with the
  31729. timestamp <var>start</var> will be the first frame in the output.
  31730. </p>
  31731. </dd>
  31732. <dt>&lsquo;<samp>end</samp>&rsquo;</dt>
  31733. <dd><p>Specify the time of the first frame that will be dropped, i.e. the frame
  31734. immediately preceding the one with the timestamp <var>end</var> will be the last
  31735. frame in the output.
  31736. </p>
  31737. </dd>
  31738. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  31739. <dd><p>This is the same as <var>start</var>, except this option sets the start timestamp
  31740. in timebase units instead of seconds.
  31741. </p>
  31742. </dd>
  31743. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  31744. <dd><p>This is the same as <var>end</var>, except this option sets the end timestamp
  31745. in timebase units instead of seconds.
  31746. </p>
  31747. </dd>
  31748. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  31749. <dd><p>The maximum duration of the output in seconds.
  31750. </p>
  31751. </dd>
  31752. <dt>&lsquo;<samp>start_frame</samp>&rsquo;</dt>
  31753. <dd><p>The number of the first frame that should be passed to the output.
  31754. </p>
  31755. </dd>
  31756. <dt>&lsquo;<samp>end_frame</samp>&rsquo;</dt>
  31757. <dd><p>The number of the first frame that should be dropped.
  31758. </p></dd>
  31759. </dl>
  31760. <p>&lsquo;<samp>start</samp>&rsquo;, &lsquo;<samp>end</samp>&rsquo;, and &lsquo;<samp>duration</samp>&rsquo; are expressed as time
  31761. duration specifications; see
  31762. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  31763. for the accepted syntax.
  31764. </p>
  31765. <p>Note that the first two sets of the start/end options and the &lsquo;<samp>duration</samp>&rsquo;
  31766. option look at the frame timestamp, while the _frame variants simply count the
  31767. frames that pass through the filter. Also note that this filter does not modify
  31768. the timestamps. If you wish for the output timestamps to start at zero, insert a
  31769. setpts filter after the trim filter.
  31770. </p>
  31771. <p>If multiple start or end options are set, this filter tries to be greedy and
  31772. keep all the frames that match at least one of the specified constraints. To keep
  31773. only the part that matches all the constraints at once, chain multiple trim
  31774. filters.
  31775. </p>
  31776. <p>The defaults are such that all the input is kept. So it is possible to set e.g.
  31777. just the end values to keep everything before the specified time.
  31778. </p>
  31779. <p>Examples:
  31780. </p><ul>
  31781. <li>
  31782. Drop everything except the second minute of input:
  31783. <div class="example">
  31784. <pre class="example">ffmpeg -i INPUT -vf trim=60:120
  31785. </pre></div>
  31786. </li><li>
  31787. Keep only the first second:
  31788. <div class="example">
  31789. <pre class="example">ffmpeg -i INPUT -vf trim=duration=1
  31790. </pre></div>
  31791. </li></ul>
  31792. <a name="unpremultiply"></a>
  31793. <h2 class="section"><a href="ffprobe-all.html#toc-unpremultiply">32.213 unpremultiply</a></h2>
  31794. <p>Apply alpha unpremultiply effect to input video stream using first plane
  31795. of second stream as alpha.
  31796. </p>
  31797. <p>Both streams must have same dimensions and same pixel format.
  31798. </p>
  31799. <p>The filter accepts the following option:
  31800. </p>
  31801. <dl compact="compact">
  31802. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  31803. <dd><p>Set which planes will be processed, unprocessed planes will be copied.
  31804. By default value 0xf, all planes will be processed.
  31805. </p>
  31806. <p>If the format has 1 or 2 components, then luma is bit 0.
  31807. If the format has 3 or 4 components:
  31808. for RGB formats bit 0 is green, bit 1 is blue and bit 2 is red;
  31809. for YUV formats bit 0 is luma, bit 1 is chroma-U and bit 2 is chroma-V.
  31810. If present, the alpha channel is always the last bit.
  31811. </p>
  31812. </dd>
  31813. <dt>&lsquo;<samp>inplace</samp>&rsquo;</dt>
  31814. <dd><p>Do not require 2nd input for processing, instead use alpha plane from input stream.
  31815. </p></dd>
  31816. </dl>
  31817. <p><a name="unsharp"></a>
  31818. </p><a name="unsharp-1"></a>
  31819. <h2 class="section"><a href="ffprobe-all.html#toc-unsharp-1">32.214 unsharp</a></h2>
  31820. <p>Sharpen or blur the input video.
  31821. </p>
  31822. <p>It accepts the following parameters:
  31823. </p>
  31824. <dl compact="compact">
  31825. <dt>&lsquo;<samp>luma_msize_x, lx</samp>&rsquo;</dt>
  31826. <dd><p>Set the luma matrix horizontal size. It must be an odd integer between
  31827. 3 and 23. The default value is 5.
  31828. </p>
  31829. </dd>
  31830. <dt>&lsquo;<samp>luma_msize_y, ly</samp>&rsquo;</dt>
  31831. <dd><p>Set the luma matrix vertical size. It must be an odd integer between 3
  31832. and 23. The default value is 5.
  31833. </p>
  31834. </dd>
  31835. <dt>&lsquo;<samp>luma_amount, la</samp>&rsquo;</dt>
  31836. <dd><p>Set the luma effect strength. It must be a floating point number, reasonable
  31837. values lay between -1.5 and 1.5.
  31838. </p>
  31839. <p>Negative values will blur the input video, while positive values will
  31840. sharpen it, a value of zero will disable the effect.
  31841. </p>
  31842. <p>Default value is 1.0.
  31843. </p>
  31844. </dd>
  31845. <dt>&lsquo;<samp>chroma_msize_x, cx</samp>&rsquo;</dt>
  31846. <dd><p>Set the chroma matrix horizontal size. It must be an odd integer
  31847. between 3 and 23. The default value is 5.
  31848. </p>
  31849. </dd>
  31850. <dt>&lsquo;<samp>chroma_msize_y, cy</samp>&rsquo;</dt>
  31851. <dd><p>Set the chroma matrix vertical size. It must be an odd integer
  31852. between 3 and 23. The default value is 5.
  31853. </p>
  31854. </dd>
  31855. <dt>&lsquo;<samp>chroma_amount, ca</samp>&rsquo;</dt>
  31856. <dd><p>Set the chroma effect strength. It must be a floating point number, reasonable
  31857. values lay between -1.5 and 1.5.
  31858. </p>
  31859. <p>Negative values will blur the input video, while positive values will
  31860. sharpen it, a value of zero will disable the effect.
  31861. </p>
  31862. <p>Default value is 0.0.
  31863. </p>
  31864. </dd>
  31865. </dl>
  31866. <p>All parameters are optional and default to the equivalent of the
  31867. string &rsquo;5:5:1.0:5:5:0.0&rsquo;.
  31868. </p>
  31869. <a name="Examples-121"></a>
  31870. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-121">32.214.1 Examples</a></h3>
  31871. <ul>
  31872. <li>
  31873. Apply strong luma sharpen effect:
  31874. <div class="example">
  31875. <pre class="example">unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5
  31876. </pre></div>
  31877. </li><li>
  31878. Apply a strong blur of both luma and chroma parameters:
  31879. <div class="example">
  31880. <pre class="example">unsharp=7:7:-2:7:7:-2
  31881. </pre></div>
  31882. </li></ul>
  31883. <a name="uspp"></a>
  31884. <h2 class="section"><a href="ffprobe-all.html#toc-uspp">32.215 uspp</a></h2>
  31885. <p>Apply ultra slow/simple postprocessing filter that compresses and decompresses
  31886. the image at several (or - in the case of &lsquo;<samp>quality</samp>&rsquo; level <code>8</code> - all)
  31887. shifts and average the results.
  31888. </p>
  31889. <p>The way this differs from the behavior of spp is that uspp actually encodes &amp;
  31890. decodes each case with libavcodec Snow, whereas spp uses a simplified intra only 8x8
  31891. DCT similar to MJPEG.
  31892. </p>
  31893. <p>The filter accepts the following options:
  31894. </p>
  31895. <dl compact="compact">
  31896. <dt>&lsquo;<samp>quality</samp>&rsquo;</dt>
  31897. <dd><p>Set quality. This option defines the number of levels for averaging. It accepts
  31898. an integer in the range 0-8. If set to <code>0</code>, the filter will have no
  31899. effect. A value of <code>8</code> means the higher quality. For each increment of
  31900. that value the speed drops by a factor of approximately 2. Default value is
  31901. <code>3</code>.
  31902. </p>
  31903. </dd>
  31904. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  31905. <dd><p>Force a constant quantization parameter. If not set, the filter will use the QP
  31906. from the video stream (if available).
  31907. </p></dd>
  31908. </dl>
  31909. <a name="v360"></a>
  31910. <h2 class="section"><a href="ffprobe-all.html#toc-v360">32.216 v360</a></h2>
  31911. <p>Convert 360 videos between various formats.
  31912. </p>
  31913. <p>The filter accepts the following options:
  31914. </p>
  31915. <dl compact="compact">
  31916. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  31917. <dt>&lsquo;<samp>output</samp>&rsquo;</dt>
  31918. <dd><p>Set format of the input/output video.
  31919. </p>
  31920. <p>Available formats:
  31921. </p>
  31922. <dl compact="compact">
  31923. <dt>&lsquo;<samp>e</samp>&rsquo;</dt>
  31924. <dt>&lsquo;<samp>equirect</samp>&rsquo;</dt>
  31925. <dd><p>Equirectangular projection.
  31926. </p>
  31927. </dd>
  31928. <dt>&lsquo;<samp>c3x2</samp>&rsquo;</dt>
  31929. <dt>&lsquo;<samp>c6x1</samp>&rsquo;</dt>
  31930. <dt>&lsquo;<samp>c1x6</samp>&rsquo;</dt>
  31931. <dd><p>Cubemap with 3x2/6x1/1x6 layout.
  31932. </p>
  31933. <p>Format specific options:
  31934. </p>
  31935. <dl compact="compact">
  31936. <dt>&lsquo;<samp>in_pad</samp>&rsquo;</dt>
  31937. <dt>&lsquo;<samp>out_pad</samp>&rsquo;</dt>
  31938. <dd><p>Set padding proportion for the input/output cubemap. Values in decimals.
  31939. </p>
  31940. <p>Example values:
  31941. </p><dl compact="compact">
  31942. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  31943. <dd><p>No padding.
  31944. </p></dd>
  31945. <dt>&lsquo;<samp>0.01</samp>&rsquo;</dt>
  31946. <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)
  31947. </p></dd>
  31948. </dl>
  31949. <p>Default value is <b>&lsquo;<samp>0</samp>&rsquo;</b>.
  31950. </p>
  31951. </dd>
  31952. <dt>&lsquo;<samp>fin_pad</samp>&rsquo;</dt>
  31953. <dt>&lsquo;<samp>fout_pad</samp>&rsquo;</dt>
  31954. <dd><p>Set fixed padding for the input/output cubemap. Values in pixels.
  31955. </p>
  31956. <p>Default value is <b>&lsquo;<samp>0</samp>&rsquo;</b>. If greater than zero it overrides other padding options.
  31957. </p>
  31958. </dd>
  31959. <dt>&lsquo;<samp>in_forder</samp>&rsquo;</dt>
  31960. <dt>&lsquo;<samp>out_forder</samp>&rsquo;</dt>
  31961. <dd><p>Set order of faces for the input/output cubemap. Choose one direction for each position.
  31962. </p>
  31963. <p>Designation of directions:
  31964. </p><dl compact="compact">
  31965. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  31966. <dd><p>right
  31967. </p></dd>
  31968. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  31969. <dd><p>left
  31970. </p></dd>
  31971. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  31972. <dd><p>up
  31973. </p></dd>
  31974. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  31975. <dd><p>down
  31976. </p></dd>
  31977. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  31978. <dd><p>forward
  31979. </p></dd>
  31980. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  31981. <dd><p>back
  31982. </p></dd>
  31983. </dl>
  31984. <p>Default value is <b>&lsquo;<samp>rludfb</samp>&rsquo;</b>.
  31985. </p>
  31986. </dd>
  31987. <dt>&lsquo;<samp>in_frot</samp>&rsquo;</dt>
  31988. <dt>&lsquo;<samp>out_frot</samp>&rsquo;</dt>
  31989. <dd><p>Set rotation of faces for the input/output cubemap. Choose one angle for each position.
  31990. </p>
  31991. <p>Designation of angles:
  31992. </p><dl compact="compact">
  31993. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  31994. <dd><p>0 degrees clockwise
  31995. </p></dd>
  31996. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  31997. <dd><p>90 degrees clockwise
  31998. </p></dd>
  31999. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  32000. <dd><p>180 degrees clockwise
  32001. </p></dd>
  32002. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  32003. <dd><p>270 degrees clockwise
  32004. </p></dd>
  32005. </dl>
  32006. <p>Default value is <b>&lsquo;<samp>000000</samp>&rsquo;</b>.
  32007. </p></dd>
  32008. </dl>
  32009. </dd>
  32010. <dt>&lsquo;<samp>eac</samp>&rsquo;</dt>
  32011. <dd><p>Equi-Angular Cubemap.
  32012. </p>
  32013. </dd>
  32014. <dt>&lsquo;<samp>flat</samp>&rsquo;</dt>
  32015. <dt>&lsquo;<samp>gnomonic</samp>&rsquo;</dt>
  32016. <dt>&lsquo;<samp>rectilinear</samp>&rsquo;</dt>
  32017. <dd><p>Regular video.
  32018. </p>
  32019. <p>Format specific options:
  32020. </p><dl compact="compact">
  32021. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32022. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32023. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32024. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32025. </p>
  32026. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32027. </p>
  32028. </dd>
  32029. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32030. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32031. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32032. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32033. </p>
  32034. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32035. </p></dd>
  32036. </dl>
  32037. </dd>
  32038. <dt>&lsquo;<samp>dfisheye</samp>&rsquo;</dt>
  32039. <dd><p>Dual fisheye.
  32040. </p>
  32041. <p>Format specific options:
  32042. </p><dl compact="compact">
  32043. <dt>&lsquo;<samp>in_pad</samp>&rsquo;</dt>
  32044. <dt>&lsquo;<samp>out_pad</samp>&rsquo;</dt>
  32045. <dd><p>Set padding proportion. Values in decimals.
  32046. </p>
  32047. <p>Example values:
  32048. </p><dl compact="compact">
  32049. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  32050. <dd><p>No padding.
  32051. </p></dd>
  32052. <dt>&lsquo;<samp>0.01</samp>&rsquo;</dt>
  32053. <dd><p>1% padding.
  32054. </p></dd>
  32055. </dl>
  32056. <p>Default value is <b>&lsquo;<samp>0</samp>&rsquo;</b>.
  32057. </p></dd>
  32058. </dl>
  32059. </dd>
  32060. <dt>&lsquo;<samp>barrel</samp>&rsquo;</dt>
  32061. <dt>&lsquo;<samp>fb</samp>&rsquo;</dt>
  32062. <dt>&lsquo;<samp>barrelsplit</samp>&rsquo;</dt>
  32063. <dd><p>Facebook&rsquo;s 360 formats.
  32064. </p>
  32065. </dd>
  32066. <dt>&lsquo;<samp>sg</samp>&rsquo;</dt>
  32067. <dd><p>Stereographic format.
  32068. </p>
  32069. <p>Format specific options:
  32070. </p><dl compact="compact">
  32071. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32072. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32073. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32074. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32075. </p>
  32076. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32077. </p>
  32078. </dd>
  32079. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32080. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32081. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32082. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32083. </p>
  32084. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32085. </p></dd>
  32086. </dl>
  32087. </dd>
  32088. <dt>&lsquo;<samp>mercator</samp>&rsquo;</dt>
  32089. <dd><p>Mercator format.
  32090. </p>
  32091. </dd>
  32092. <dt>&lsquo;<samp>ball</samp>&rsquo;</dt>
  32093. <dd><p>Ball format, gives significant distortion toward the back.
  32094. </p>
  32095. </dd>
  32096. <dt>&lsquo;<samp>hammer</samp>&rsquo;</dt>
  32097. <dd><p>Hammer-Aitoff map projection format.
  32098. </p>
  32099. </dd>
  32100. <dt>&lsquo;<samp>sinusoidal</samp>&rsquo;</dt>
  32101. <dd><p>Sinusoidal map projection format.
  32102. </p>
  32103. </dd>
  32104. <dt>&lsquo;<samp>fisheye</samp>&rsquo;</dt>
  32105. <dd><p>Fisheye projection.
  32106. </p>
  32107. <p>Format specific options:
  32108. </p><dl compact="compact">
  32109. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32110. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32111. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32112. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32113. </p>
  32114. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32115. </p>
  32116. </dd>
  32117. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32118. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32119. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32120. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32121. </p>
  32122. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32123. </p></dd>
  32124. </dl>
  32125. </dd>
  32126. <dt>&lsquo;<samp>pannini</samp>&rsquo;</dt>
  32127. <dd><p>Pannini projection. <i>(output only)</i>
  32128. </p>
  32129. <p>Format specific options:
  32130. </p><dl compact="compact">
  32131. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32132. <dd><p>Set pannini parameter.
  32133. </p></dd>
  32134. </dl>
  32135. </dd>
  32136. <dt>&lsquo;<samp>cylindrical</samp>&rsquo;</dt>
  32137. <dd><p>Cylindrical projection.
  32138. </p>
  32139. <p>Format specific options:
  32140. </p><dl compact="compact">
  32141. <dt>&lsquo;<samp>h_fov</samp>&rsquo;</dt>
  32142. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32143. <dt>&lsquo;<samp>d_fov</samp>&rsquo;</dt>
  32144. <dd><p>Set output horizontal/vertical/diagonal field of view. Values in degrees.
  32145. </p>
  32146. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32147. </p>
  32148. </dd>
  32149. <dt>&lsquo;<samp>ih_fov</samp>&rsquo;</dt>
  32150. <dt>&lsquo;<samp>iv_fov</samp>&rsquo;</dt>
  32151. <dt>&lsquo;<samp>id_fov</samp>&rsquo;</dt>
  32152. <dd><p>Set input horizontal/vertical/diagonal field of view. Values in degrees.
  32153. </p>
  32154. <p>If diagonal field of view is set it overrides horizontal and vertical field of view.
  32155. </p></dd>
  32156. </dl>
  32157. </dd>
  32158. <dt>&lsquo;<samp>perspective</samp>&rsquo;</dt>
  32159. <dd><p>Perspective projection. <i>(output only)</i>
  32160. </p>
  32161. <p>Format specific options:
  32162. </p><dl compact="compact">
  32163. <dt>&lsquo;<samp>v_fov</samp>&rsquo;</dt>
  32164. <dd><p>Set perspective parameter.
  32165. </p></dd>
  32166. </dl>
  32167. </dd>
  32168. <dt>&lsquo;<samp>tetrahedron</samp>&rsquo;</dt>
  32169. <dd><p>Tetrahedron projection.
  32170. </p>
  32171. </dd>
  32172. <dt>&lsquo;<samp>tsp</samp>&rsquo;</dt>
  32173. <dd><p>Truncated square pyramid projection.
  32174. </p>
  32175. </dd>
  32176. <dt>&lsquo;<samp>he</samp>&rsquo;</dt>
  32177. <dt>&lsquo;<samp>hequirect</samp>&rsquo;</dt>
  32178. <dd><p>Half equirectangular projection.
  32179. </p></dd>
  32180. </dl>
  32181. </dd>
  32182. <dt>&lsquo;<samp>interp</samp>&rsquo;</dt>
  32183. <dd><p>Set interpolation method.<br>
  32184. <i>Note: more complex interpolation methods require much more memory to run.</i>
  32185. </p>
  32186. <p>Available methods:
  32187. </p>
  32188. <dl compact="compact">
  32189. <dt>&lsquo;<samp>near</samp>&rsquo;</dt>
  32190. <dt>&lsquo;<samp>nearest</samp>&rsquo;</dt>
  32191. <dd><p>Nearest neighbour.
  32192. </p></dd>
  32193. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  32194. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  32195. <dd><p>Bilinear interpolation.
  32196. </p></dd>
  32197. <dt>&lsquo;<samp>cube</samp>&rsquo;</dt>
  32198. <dt>&lsquo;<samp>cubic</samp>&rsquo;</dt>
  32199. <dd><p>Bicubic interpolation.
  32200. </p></dd>
  32201. <dt>&lsquo;<samp>lanc</samp>&rsquo;</dt>
  32202. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  32203. <dd><p>Lanczos interpolation.
  32204. </p></dd>
  32205. <dt>&lsquo;<samp>sp16</samp>&rsquo;</dt>
  32206. <dt>&lsquo;<samp>spline16</samp>&rsquo;</dt>
  32207. <dd><p>Spline16 interpolation.
  32208. </p></dd>
  32209. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  32210. <dt>&lsquo;<samp>gaussian</samp>&rsquo;</dt>
  32211. <dd><p>Gaussian interpolation.
  32212. </p></dd>
  32213. </dl>
  32214. <p>Default value is <b>&lsquo;<samp>line</samp>&rsquo;</b>.
  32215. </p>
  32216. </dd>
  32217. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  32218. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  32219. <dd><p>Set the output video resolution.
  32220. </p>
  32221. <p>Default resolution depends on formats.
  32222. </p>
  32223. </dd>
  32224. <dt>&lsquo;<samp>in_stereo</samp>&rsquo;</dt>
  32225. <dt>&lsquo;<samp>out_stereo</samp>&rsquo;</dt>
  32226. <dd><p>Set the input/output stereo format.
  32227. </p>
  32228. <dl compact="compact">
  32229. <dt>&lsquo;<samp>2d</samp>&rsquo;</dt>
  32230. <dd><p>2D mono
  32231. </p></dd>
  32232. <dt>&lsquo;<samp>sbs</samp>&rsquo;</dt>
  32233. <dd><p>Side by side
  32234. </p></dd>
  32235. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  32236. <dd><p>Top bottom
  32237. </p></dd>
  32238. </dl>
  32239. <p>Default value is <b>&lsquo;<samp>2d</samp>&rsquo;</b> for input and output format.
  32240. </p>
  32241. </dd>
  32242. <dt>&lsquo;<samp>yaw</samp>&rsquo;</dt>
  32243. <dt>&lsquo;<samp>pitch</samp>&rsquo;</dt>
  32244. <dt>&lsquo;<samp>roll</samp>&rsquo;</dt>
  32245. <dd><p>Set rotation for the output video. Values in degrees.
  32246. </p>
  32247. </dd>
  32248. <dt>&lsquo;<samp>rorder</samp>&rsquo;</dt>
  32249. <dd><p>Set rotation order for the output video. Choose one item for each position.
  32250. </p>
  32251. <dl compact="compact">
  32252. <dt>&lsquo;<samp>y, Y</samp>&rsquo;</dt>
  32253. <dd><p>yaw
  32254. </p></dd>
  32255. <dt>&lsquo;<samp>p, P</samp>&rsquo;</dt>
  32256. <dd><p>pitch
  32257. </p></dd>
  32258. <dt>&lsquo;<samp>r, R</samp>&rsquo;</dt>
  32259. <dd><p>roll
  32260. </p></dd>
  32261. </dl>
  32262. <p>Default value is <b>&lsquo;<samp>ypr</samp>&rsquo;</b>.
  32263. </p>
  32264. </dd>
  32265. <dt>&lsquo;<samp>h_flip</samp>&rsquo;</dt>
  32266. <dt>&lsquo;<samp>v_flip</samp>&rsquo;</dt>
  32267. <dt>&lsquo;<samp>d_flip</samp>&rsquo;</dt>
  32268. <dd><p>Flip the output video horizontally(swaps left-right)/vertically(swaps up-down)/in-depth(swaps back-forward). Boolean values.
  32269. </p>
  32270. </dd>
  32271. <dt>&lsquo;<samp>ih_flip</samp>&rsquo;</dt>
  32272. <dt>&lsquo;<samp>iv_flip</samp>&rsquo;</dt>
  32273. <dd><p>Set if input video is flipped horizontally/vertically. Boolean values.
  32274. </p>
  32275. </dd>
  32276. <dt>&lsquo;<samp>in_trans</samp>&rsquo;</dt>
  32277. <dd><p>Set if input video is transposed. Boolean value, by default disabled.
  32278. </p>
  32279. </dd>
  32280. <dt>&lsquo;<samp>out_trans</samp>&rsquo;</dt>
  32281. <dd><p>Set if output video needs to be transposed. Boolean value, by default disabled.
  32282. </p>
  32283. </dd>
  32284. <dt>&lsquo;<samp>alpha_mask</samp>&rsquo;</dt>
  32285. <dd><p>Build mask in alpha plane for all unmapped pixels by marking them fully transparent. Boolean value, by default disabled.
  32286. </p></dd>
  32287. </dl>
  32288. <a name="Examples-96"></a>
  32289. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-96">32.216.1 Examples</a></h3>
  32290. <ul>
  32291. <li>
  32292. Convert equirectangular video to cubemap with 3x2 layout and 1% padding using bicubic interpolation:
  32293. <div class="example">
  32294. <pre class="example">ffmpeg -i input.mkv -vf v360=e:c3x2:cubic:out_pad=0.01 output.mkv
  32295. </pre></div>
  32296. </li><li>
  32297. Extract back view of Equi-Angular Cubemap:
  32298. <div class="example">
  32299. <pre class="example">ffmpeg -i input.mkv -vf v360=eac:flat:yaw=180 output.mkv
  32300. </pre></div>
  32301. </li><li>
  32302. Convert transposed and horizontally flipped Equi-Angular Cubemap in side-by-side stereo format to equirectangular top-bottom stereo format:
  32303. <div class="example">
  32304. <pre class="example">v360=eac:equirect:in_stereo=sbs:in_trans=1:ih_flip=1:out_stereo=tb
  32305. </pre></div>
  32306. </li></ul>
  32307. <a name="Commands-2"></a>
  32308. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-2">32.216.2 Commands</a></h3>
  32309. <p>This filter supports subset of above options as <a href="#commands">commands</a>.
  32310. </p>
  32311. <a name="vaguedenoiser"></a>
  32312. <h2 class="section"><a href="ffprobe-all.html#toc-vaguedenoiser">32.217 vaguedenoiser</a></h2>
  32313. <p>Apply a wavelet based denoiser.
  32314. </p>
  32315. <p>It transforms each frame from the video input into the wavelet domain,
  32316. using Cohen-Daubechies-Feauveau 9/7. Then it applies some filtering to
  32317. the obtained coefficients. It does an inverse wavelet transform after.
  32318. Due to wavelet properties, it should give a nice smoothed result, and
  32319. reduced noise, without blurring picture features.
  32320. </p>
  32321. <p>This filter accepts the following options:
  32322. </p>
  32323. <dl compact="compact">
  32324. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  32325. <dd><p>The filtering strength. The higher, the more filtered the video will be.
  32326. Hard thresholding can use a higher threshold than soft thresholding
  32327. before the video looks overfiltered. Default value is 2.
  32328. </p>
  32329. </dd>
  32330. <dt>&lsquo;<samp>method</samp>&rsquo;</dt>
  32331. <dd><p>The filtering method the filter will use.
  32332. </p>
  32333. <p>It accepts the following values:
  32334. </p><dl compact="compact">
  32335. <dt>&lsquo;<samp>hard</samp>&rsquo;</dt>
  32336. <dd><p>All values under the threshold will be zeroed.
  32337. </p>
  32338. </dd>
  32339. <dt>&lsquo;<samp>soft</samp>&rsquo;</dt>
  32340. <dd><p>All values under the threshold will be zeroed. All values above will be
  32341. reduced by the threshold.
  32342. </p>
  32343. </dd>
  32344. <dt>&lsquo;<samp>garrote</samp>&rsquo;</dt>
  32345. <dd><p>Scales or nullifies coefficients - intermediary between (more) soft and
  32346. (less) hard thresholding.
  32347. </p></dd>
  32348. </dl>
  32349. <p>Default is garrote.
  32350. </p>
  32351. </dd>
  32352. <dt>&lsquo;<samp>nsteps</samp>&rsquo;</dt>
  32353. <dd><p>Number of times, the wavelet will decompose the picture. Picture can&rsquo;t
  32354. be decomposed beyond a particular point (typically, 8 for a 640x480
  32355. frame - as 2^9 = 512 &gt; 480). Valid values are integers between 1 and 32. Default value is 6.
  32356. </p>
  32357. </dd>
  32358. <dt>&lsquo;<samp>percent</samp>&rsquo;</dt>
  32359. <dd><p>Partial of full denoising (limited coefficients shrinking), from 0 to 100. Default value is 85.
  32360. </p>
  32361. </dd>
  32362. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  32363. <dd><p>A list of the planes to process. By default all planes are processed.
  32364. </p></dd>
  32365. </dl>
  32366. <a name="vectorscope"></a>
  32367. <h2 class="section"><a href="ffprobe-all.html#toc-vectorscope">32.218 vectorscope</a></h2>
  32368. <p>Display 2 color component values in the two dimensional graph (which is called
  32369. a vectorscope).
  32370. </p>
  32371. <p>This filter accepts the following options:
  32372. </p>
  32373. <dl compact="compact">
  32374. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  32375. <dd><p>Set vectorscope mode.
  32376. </p>
  32377. <p>It accepts the following values:
  32378. </p><dl compact="compact">
  32379. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  32380. <dt>&lsquo;<samp>tint</samp>&rsquo;</dt>
  32381. <dd><p>Gray values are displayed on graph, higher brightness means more pixels have
  32382. same component color value on location in graph. This is the default mode.
  32383. </p>
  32384. </dd>
  32385. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  32386. <dd><p>Gray values are displayed on graph. Surrounding pixels values which are not
  32387. present in video frame are drawn in gradient of 2 color components which are
  32388. set by option <code>x</code> and <code>y</code>. The 3rd color component is static.
  32389. </p>
  32390. </dd>
  32391. <dt>&lsquo;<samp>color2</samp>&rsquo;</dt>
  32392. <dd><p>Actual color components values present in video frame are displayed on graph.
  32393. </p>
  32394. </dd>
  32395. <dt>&lsquo;<samp>color3</samp>&rsquo;</dt>
  32396. <dd><p>Similar as color2 but higher frequency of same values <code>x</code> and <code>y</code>
  32397. on graph increases value of another color component, which is luminance by
  32398. default values of <code>x</code> and <code>y</code>.
  32399. </p>
  32400. </dd>
  32401. <dt>&lsquo;<samp>color4</samp>&rsquo;</dt>
  32402. <dd><p>Actual colors present in video frame are displayed on graph. If two different
  32403. colors map to same position on graph then color with higher value of component
  32404. not present in graph is picked.
  32405. </p>
  32406. </dd>
  32407. <dt>&lsquo;<samp>color5</samp>&rsquo;</dt>
  32408. <dd><p>Gray values are displayed on graph. Similar to <code>color</code> but with 3rd color
  32409. component picked from radial gradient.
  32410. </p></dd>
  32411. </dl>
  32412. </dd>
  32413. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  32414. <dd><p>Set which color component will be represented on X-axis. Default is <code>1</code>.
  32415. </p>
  32416. </dd>
  32417. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  32418. <dd><p>Set which color component will be represented on Y-axis. Default is <code>2</code>.
  32419. </p>
  32420. </dd>
  32421. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  32422. <dd><p>Set intensity, used by modes: gray, color, color3 and color5 for increasing brightness
  32423. of color component which represents frequency of (X, Y) location in graph.
  32424. </p>
  32425. </dd>
  32426. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  32427. <dd><dl compact="compact">
  32428. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32429. <dd><p>No envelope, this is default.
  32430. </p>
  32431. </dd>
  32432. <dt>&lsquo;<samp>instant</samp>&rsquo;</dt>
  32433. <dd><p>Instant envelope, even darkest single pixel will be clearly highlighted.
  32434. </p>
  32435. </dd>
  32436. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  32437. <dd><p>Hold maximum and minimum values presented in graph over time. This way you
  32438. can still spot out of range values without constantly looking at vectorscope.
  32439. </p>
  32440. </dd>
  32441. <dt>&lsquo;<samp>peak+instant</samp>&rsquo;</dt>
  32442. <dd><p>Peak and instant envelope combined together.
  32443. </p></dd>
  32444. </dl>
  32445. </dd>
  32446. <dt>&lsquo;<samp>graticule, g</samp>&rsquo;</dt>
  32447. <dd><p>Set what kind of graticule to draw.
  32448. </p><dl compact="compact">
  32449. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  32450. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  32451. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  32452. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  32453. </dl>
  32454. </dd>
  32455. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  32456. <dd><p>Set graticule opacity.
  32457. </p>
  32458. </dd>
  32459. <dt>&lsquo;<samp>flags, f</samp>&rsquo;</dt>
  32460. <dd><p>Set graticule flags.
  32461. </p>
  32462. <dl compact="compact">
  32463. <dt>&lsquo;<samp>white</samp>&rsquo;</dt>
  32464. <dd><p>Draw graticule for white point.
  32465. </p>
  32466. </dd>
  32467. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  32468. <dd><p>Draw graticule for black point.
  32469. </p>
  32470. </dd>
  32471. <dt>&lsquo;<samp>name</samp>&rsquo;</dt>
  32472. <dd><p>Draw color points short names.
  32473. </p></dd>
  32474. </dl>
  32475. </dd>
  32476. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  32477. <dd><p>Set background opacity.
  32478. </p>
  32479. </dd>
  32480. <dt>&lsquo;<samp>lthreshold, l</samp>&rsquo;</dt>
  32481. <dd><p>Set low threshold for color component not represented on X or Y axis.
  32482. Values lower than this value will be ignored. Default is 0.
  32483. Note this value is multiplied with actual max possible value one pixel component
  32484. can have. So for 8-bit input and low threshold value of 0.1 actual threshold
  32485. is 0.1 * 255 = 25.
  32486. </p>
  32487. </dd>
  32488. <dt>&lsquo;<samp>hthreshold, h</samp>&rsquo;</dt>
  32489. <dd><p>Set high threshold for color component not represented on X or Y axis.
  32490. Values higher than this value will be ignored. Default is 1.
  32491. Note this value is multiplied with actual max possible value one pixel component
  32492. can have. So for 8-bit input and high threshold value of 0.9 actual threshold
  32493. is 0.9 * 255 = 230.
  32494. </p>
  32495. </dd>
  32496. <dt>&lsquo;<samp>colorspace, c</samp>&rsquo;</dt>
  32497. <dd><p>Set what kind of colorspace to use when drawing graticule.
  32498. </p><dl compact="compact">
  32499. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  32500. <dt>&lsquo;<samp>601</samp>&rsquo;</dt>
  32501. <dt>&lsquo;<samp>709</samp>&rsquo;</dt>
  32502. </dl>
  32503. <p>Default is auto.
  32504. </p>
  32505. </dd>
  32506. <dt>&lsquo;<samp>tint0, t0</samp>&rsquo;</dt>
  32507. <dt>&lsquo;<samp>tint1, t1</samp>&rsquo;</dt>
  32508. <dd><p>Set color tint for gray/tint vectorscope mode. By default both options are zero.
  32509. This means no tint, and output will remain gray.
  32510. </p></dd>
  32511. </dl>
  32512. <p><a name="vidstabdetect"></a>
  32513. </p><a name="vidstabdetect-1"></a>
  32514. <h2 class="section"><a href="ffprobe-all.html#toc-vidstabdetect-1">32.219 vidstabdetect</a></h2>
  32515. <p>Analyze video stabilization/deshaking. Perform pass 1 of 2, see
  32516. <a href="#vidstabtransform">vidstabtransform</a> for pass 2.
  32517. </p>
  32518. <p>This filter generates a file with relative translation and rotation
  32519. transform information about subsequent frames, which is then used by
  32520. the <a href="#vidstabtransform">vidstabtransform</a> filter.
  32521. </p>
  32522. <p>To enable compilation of this filter you need to configure FFmpeg with
  32523. <code>--enable-libvidstab</code>.
  32524. </p>
  32525. <p>This filter accepts the following options:
  32526. </p>
  32527. <dl compact="compact">
  32528. <dt>&lsquo;<samp>result</samp>&rsquo;</dt>
  32529. <dd><p>Set the path to the file used to write the transforms information.
  32530. Default value is &lsquo;<tt>transforms.trf</tt>&rsquo;.
  32531. </p>
  32532. </dd>
  32533. <dt>&lsquo;<samp>shakiness</samp>&rsquo;</dt>
  32534. <dd><p>Set how shaky the video is and how quick the camera is. It accepts an
  32535. integer in the range 1-10, a value of 1 means little shakiness, a
  32536. value of 10 means strong shakiness. Default value is 5.
  32537. </p>
  32538. </dd>
  32539. <dt>&lsquo;<samp>accuracy</samp>&rsquo;</dt>
  32540. <dd><p>Set the accuracy of the detection process. It must be a value in the
  32541. range 1-15. A value of 1 means low accuracy, a value of 15 means high
  32542. accuracy. Default value is 15.
  32543. </p>
  32544. </dd>
  32545. <dt>&lsquo;<samp>stepsize</samp>&rsquo;</dt>
  32546. <dd><p>Set stepsize of the search process. The region around minimum is
  32547. scanned with 1 pixel resolution. Default value is 6.
  32548. </p>
  32549. </dd>
  32550. <dt>&lsquo;<samp>mincontrast</samp>&rsquo;</dt>
  32551. <dd><p>Set minimum contrast. Below this value a local measurement field is
  32552. discarded. Must be a floating point value in the range 0-1. Default
  32553. value is 0.3.
  32554. </p>
  32555. </dd>
  32556. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  32557. <dd><p>Set reference frame number for tripod mode.
  32558. </p>
  32559. <p>If enabled, the motion of the frames is compared to a reference frame
  32560. in the filtered stream, identified by the specified number. The idea
  32561. is to compensate all movements in a more-or-less static scene and keep
  32562. the camera view absolutely still.
  32563. </p>
  32564. <p>If set to 0, it is disabled. The frames are counted starting from 1.
  32565. </p>
  32566. </dd>
  32567. <dt>&lsquo;<samp>show</samp>&rsquo;</dt>
  32568. <dd><p>Show fields and transforms in the resulting frames. It accepts an
  32569. integer in the range 0-2. Default value is 0, which disables any
  32570. visualization.
  32571. </p></dd>
  32572. </dl>
  32573. <a name="Examples-68"></a>
  32574. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-68">32.219.1 Examples</a></h3>
  32575. <ul>
  32576. <li>
  32577. Use default values:
  32578. <div class="example">
  32579. <pre class="example">vidstabdetect
  32580. </pre></div>
  32581. </li><li>
  32582. Analyze strongly shaky movie and put the results in file
  32583. &lsquo;<tt>mytransforms.trf</tt>&rsquo;:
  32584. <div class="example">
  32585. <pre class="example">vidstabdetect=shakiness=10:accuracy=15:result=&quot;mytransforms.trf&quot;
  32586. </pre></div>
  32587. </li><li>
  32588. Visualize the result of internal transformations in the resulting
  32589. video:
  32590. <div class="example">
  32591. <pre class="example">vidstabdetect=show=1
  32592. </pre></div>
  32593. </li><li>
  32594. Analyze a video with medium shakiness using <code>ffmpeg</code>:
  32595. <div class="example">
  32596. <pre class="example">ffmpeg -i input -vf vidstabdetect=shakiness=5:show=1 dummy.avi
  32597. </pre></div>
  32598. </li></ul>
  32599. <p><a name="vidstabtransform"></a>
  32600. </p><a name="vidstabtransform-1"></a>
  32601. <h2 class="section"><a href="ffprobe-all.html#toc-vidstabtransform-1">32.220 vidstabtransform</a></h2>
  32602. <p>Video stabilization/deshaking: pass 2 of 2,
  32603. see <a href="#vidstabdetect">vidstabdetect</a> for pass 1.
  32604. </p>
  32605. <p>Read a file with transform information for each frame and
  32606. apply/compensate them. Together with the <a href="#vidstabdetect">vidstabdetect</a>
  32607. filter this can be used to deshake videos. See also
  32608. <a href="http://public.hronopik.de/vid.stab">http://public.hronopik.de/vid.stab</a>. It is important to also use
  32609. the <a href="#unsharp">unsharp</a> filter, see below.
  32610. </p>
  32611. <p>To enable compilation of this filter you need to configure FFmpeg with
  32612. <code>--enable-libvidstab</code>.
  32613. </p>
  32614. <a name="Options-22"></a>
  32615. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-22">32.220.1 Options</a></h3>
  32616. <dl compact="compact">
  32617. <dt>&lsquo;<samp>input</samp>&rsquo;</dt>
  32618. <dd><p>Set path to the file used to read the transforms. Default value is
  32619. &lsquo;<tt>transforms.trf</tt>&rsquo;.
  32620. </p>
  32621. </dd>
  32622. <dt>&lsquo;<samp>smoothing</samp>&rsquo;</dt>
  32623. <dd><p>Set the number of frames (value*2 + 1) used for lowpass filtering the
  32624. camera movements. Default value is 10.
  32625. </p>
  32626. <p>For example a number of 10 means that 21 frames are used (10 in the
  32627. past and 10 in the future) to smoothen the motion in the video. A
  32628. larger value leads to a smoother video, but limits the acceleration of
  32629. the camera (pan/tilt movements). 0 is a special case where a static
  32630. camera is simulated.
  32631. </p>
  32632. </dd>
  32633. <dt>&lsquo;<samp>optalgo</samp>&rsquo;</dt>
  32634. <dd><p>Set the camera path optimization algorithm.
  32635. </p>
  32636. <p>Accepted values are:
  32637. </p><dl compact="compact">
  32638. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  32639. <dd><p>gaussian kernel low-pass filter on camera motion (default)
  32640. </p></dd>
  32641. <dt>&lsquo;<samp>avg</samp>&rsquo;</dt>
  32642. <dd><p>averaging on transformations
  32643. </p></dd>
  32644. </dl>
  32645. </dd>
  32646. <dt>&lsquo;<samp>maxshift</samp>&rsquo;</dt>
  32647. <dd><p>Set maximal number of pixels to translate frames. Default value is -1,
  32648. meaning no limit.
  32649. </p>
  32650. </dd>
  32651. <dt>&lsquo;<samp>maxangle</samp>&rsquo;</dt>
  32652. <dd><p>Set maximal angle in radians (degree*PI/180) to rotate frames. Default
  32653. value is -1, meaning no limit.
  32654. </p>
  32655. </dd>
  32656. <dt>&lsquo;<samp>crop</samp>&rsquo;</dt>
  32657. <dd><p>Specify how to deal with borders that may be visible due to movement
  32658. compensation.
  32659. </p>
  32660. <p>Available values are:
  32661. </p><dl compact="compact">
  32662. <dt>&lsquo;<samp>keep</samp>&rsquo;</dt>
  32663. <dd><p>keep image information from previous frame (default)
  32664. </p></dd>
  32665. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  32666. <dd><p>fill the border black
  32667. </p></dd>
  32668. </dl>
  32669. </dd>
  32670. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  32671. <dd><p>Invert transforms if set to 1. Default value is 0.
  32672. </p>
  32673. </dd>
  32674. <dt>&lsquo;<samp>relative</samp>&rsquo;</dt>
  32675. <dd><p>Consider transforms as relative to previous frame if set to 1,
  32676. absolute if set to 0. Default value is 0.
  32677. </p>
  32678. </dd>
  32679. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  32680. <dd><p>Set percentage to zoom. A positive value will result in a zoom-in
  32681. effect, a negative value in a zoom-out effect. Default value is 0 (no
  32682. zoom).
  32683. </p>
  32684. </dd>
  32685. <dt>&lsquo;<samp>optzoom</samp>&rsquo;</dt>
  32686. <dd><p>Set optimal zooming to avoid borders.
  32687. </p>
  32688. <p>Accepted values are:
  32689. </p><dl compact="compact">
  32690. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  32691. <dd><p>disabled
  32692. </p></dd>
  32693. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  32694. <dd><p>optimal static zoom value is determined (only very strong movements
  32695. will lead to visible borders) (default)
  32696. </p></dd>
  32697. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  32698. <dd><p>optimal adaptive zoom value is determined (no borders will be
  32699. visible), see &lsquo;<samp>zoomspeed</samp>&rsquo;
  32700. </p></dd>
  32701. </dl>
  32702. <p>Note that the value given at zoom is added to the one calculated here.
  32703. </p>
  32704. </dd>
  32705. <dt>&lsquo;<samp>zoomspeed</samp>&rsquo;</dt>
  32706. <dd><p>Set percent to zoom maximally each frame (enabled when
  32707. &lsquo;<samp>optzoom</samp>&rsquo; is set to 2). Range is from 0 to 5, default value is
  32708. 0.25.
  32709. </p>
  32710. </dd>
  32711. <dt>&lsquo;<samp>interpol</samp>&rsquo;</dt>
  32712. <dd><p>Specify type of interpolation.
  32713. </p>
  32714. <p>Available values are:
  32715. </p><dl compact="compact">
  32716. <dt>&lsquo;<samp>no</samp>&rsquo;</dt>
  32717. <dd><p>no interpolation
  32718. </p></dd>
  32719. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  32720. <dd><p>linear only horizontal
  32721. </p></dd>
  32722. <dt>&lsquo;<samp>bilinear</samp>&rsquo;</dt>
  32723. <dd><p>linear in both directions (default)
  32724. </p></dd>
  32725. <dt>&lsquo;<samp>bicubic</samp>&rsquo;</dt>
  32726. <dd><p>cubic in both directions (slow)
  32727. </p></dd>
  32728. </dl>
  32729. </dd>
  32730. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  32731. <dd><p>Enable virtual tripod mode if set to 1, which is equivalent to
  32732. <code>relative=0:smoothing=0</code>. Default value is 0.
  32733. </p>
  32734. <p>Use also <code>tripod</code> option of <a href="#vidstabdetect">vidstabdetect</a>.
  32735. </p>
  32736. </dd>
  32737. <dt>&lsquo;<samp>debug</samp>&rsquo;</dt>
  32738. <dd><p>Increase log verbosity if set to 1. Also the detected global motions
  32739. are written to the temporary file &lsquo;<tt>global_motions.trf</tt>&rsquo;. Default
  32740. value is 0.
  32741. </p></dd>
  32742. </dl>
  32743. <a name="Examples-140"></a>
  32744. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-140">32.220.2 Examples</a></h3>
  32745. <ul>
  32746. <li>
  32747. Use <code>ffmpeg</code> for a typical stabilization with default values:
  32748. <div class="example">
  32749. <pre class="example">ffmpeg -i inp.mpeg -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 inp_stabilized.mpeg
  32750. </pre></div>
  32751. <p>Note the use of the <a href="#unsharp">unsharp</a> filter which is always recommended.
  32752. </p>
  32753. </li><li>
  32754. Zoom in a bit more and load transform data from a given file:
  32755. <div class="example">
  32756. <pre class="example">vidstabtransform=zoom=5:input=&quot;mytransforms.trf&quot;
  32757. </pre></div>
  32758. </li><li>
  32759. Smoothen the video even more:
  32760. <div class="example">
  32761. <pre class="example">vidstabtransform=smoothing=30
  32762. </pre></div>
  32763. </li></ul>
  32764. <a name="vflip"></a>
  32765. <h2 class="section"><a href="ffprobe-all.html#toc-vflip">32.221 vflip</a></h2>
  32766. <p>Flip the input video vertically.
  32767. </p>
  32768. <p>For example, to vertically flip a video with <code>ffmpeg</code>:
  32769. </p><div class="example">
  32770. <pre class="example">ffmpeg -i in.avi -vf &quot;vflip&quot; out.avi
  32771. </pre></div>
  32772. <a name="vfrdet"></a>
  32773. <h2 class="section"><a href="ffprobe-all.html#toc-vfrdet">32.222 vfrdet</a></h2>
  32774. <p>Detect variable frame rate video.
  32775. </p>
  32776. <p>This filter tries to detect if the input is variable or constant frame rate.
  32777. </p>
  32778. <p>At end it will output number of frames detected as having variable delta pts,
  32779. and ones with constant delta pts.
  32780. If there was frames with variable delta, than it will also show min, max and
  32781. average delta encountered.
  32782. </p>
  32783. <a name="vibrance"></a>
  32784. <h2 class="section"><a href="ffprobe-all.html#toc-vibrance">32.223 vibrance</a></h2>
  32785. <p>Boost or alter saturation.
  32786. </p>
  32787. <p>The filter accepts the following options:
  32788. </p><dl compact="compact">
  32789. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  32790. <dd><p>Set strength of boost if positive value or strength of alter if negative value.
  32791. Default is 0. Allowed range is from -2 to 2.
  32792. </p>
  32793. </dd>
  32794. <dt>&lsquo;<samp>rbal</samp>&rsquo;</dt>
  32795. <dd><p>Set the red balance. Default is 1. Allowed range is from -10 to 10.
  32796. </p>
  32797. </dd>
  32798. <dt>&lsquo;<samp>gbal</samp>&rsquo;</dt>
  32799. <dd><p>Set the green balance. Default is 1. Allowed range is from -10 to 10.
  32800. </p>
  32801. </dd>
  32802. <dt>&lsquo;<samp>bbal</samp>&rsquo;</dt>
  32803. <dd><p>Set the blue balance. Default is 1. Allowed range is from -10 to 10.
  32804. </p>
  32805. </dd>
  32806. <dt>&lsquo;<samp>rlum</samp>&rsquo;</dt>
  32807. <dd><p>Set the red luma coefficient.
  32808. </p>
  32809. </dd>
  32810. <dt>&lsquo;<samp>glum</samp>&rsquo;</dt>
  32811. <dd><p>Set the green luma coefficient.
  32812. </p>
  32813. </dd>
  32814. <dt>&lsquo;<samp>blum</samp>&rsquo;</dt>
  32815. <dd><p>Set the blue luma coefficient.
  32816. </p>
  32817. </dd>
  32818. <dt>&lsquo;<samp>alternate</samp>&rsquo;</dt>
  32819. <dd><p>If <code>intensity</code> is negative and this is set to 1, colors will change,
  32820. otherwise colors will be less saturated, more towards gray.
  32821. </p></dd>
  32822. </dl>
  32823. <a name="Commands-48"></a>
  32824. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-48">32.223.1 Commands</a></h3>
  32825. <p>This filter supports the all above options as <a href="#commands">commands</a>.
  32826. </p>
  32827. <p><a name="vignette"></a>
  32828. </p><a name="vignette-1"></a>
  32829. <h2 class="section"><a href="ffprobe-all.html#toc-vignette-1">32.224 vignette</a></h2>
  32830. <p>Make or reverse a natural vignetting effect.
  32831. </p>
  32832. <p>The filter accepts the following options:
  32833. </p>
  32834. <dl compact="compact">
  32835. <dt>&lsquo;<samp>angle, a</samp>&rsquo;</dt>
  32836. <dd><p>Set lens angle expression as a number of radians.
  32837. </p>
  32838. <p>The value is clipped in the <code>[0,PI/2]</code> range.
  32839. </p>
  32840. <p>Default value: <code>&quot;PI/5&quot;</code>
  32841. </p>
  32842. </dd>
  32843. <dt>&lsquo;<samp>x0</samp>&rsquo;</dt>
  32844. <dt>&lsquo;<samp>y0</samp>&rsquo;</dt>
  32845. <dd><p>Set center coordinates expressions. Respectively <code>&quot;w/2&quot;</code> and <code>&quot;h/2&quot;</code>
  32846. by default.
  32847. </p>
  32848. </dd>
  32849. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  32850. <dd><p>Set forward/backward mode.
  32851. </p>
  32852. <p>Available modes are:
  32853. </p><dl compact="compact">
  32854. <dt>&lsquo;<samp>forward</samp>&rsquo;</dt>
  32855. <dd><p>The larger the distance from the central point, the darker the image becomes.
  32856. </p>
  32857. </dd>
  32858. <dt>&lsquo;<samp>backward</samp>&rsquo;</dt>
  32859. <dd><p>The larger the distance from the central point, the brighter the image becomes.
  32860. This can be used to reverse a vignette effect, though there is no automatic
  32861. detection to extract the lens &lsquo;<samp>angle</samp>&rsquo; and other settings (yet). It can
  32862. also be used to create a burning effect.
  32863. </p></dd>
  32864. </dl>
  32865. <p>Default value is &lsquo;<samp>forward</samp>&rsquo;.
  32866. </p>
  32867. </dd>
  32868. <dt>&lsquo;<samp>eval</samp>&rsquo;</dt>
  32869. <dd><p>Set evaluation mode for the expressions (&lsquo;<samp>angle</samp>&rsquo;, &lsquo;<samp>x0</samp>&rsquo;, &lsquo;<samp>y0</samp>&rsquo;).
  32870. </p>
  32871. <p>It accepts the following values:
  32872. </p><dl compact="compact">
  32873. <dt>&lsquo;<samp>init</samp>&rsquo;</dt>
  32874. <dd><p>Evaluate expressions only once during the filter initialization.
  32875. </p>
  32876. </dd>
  32877. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  32878. <dd><p>Evaluate expressions for each incoming frame. This is way slower than the
  32879. &lsquo;<samp>init</samp>&rsquo; mode since it requires all the scalers to be re-computed, but it
  32880. allows advanced dynamic expressions.
  32881. </p></dd>
  32882. </dl>
  32883. <p>Default value is &lsquo;<samp>init</samp>&rsquo;.
  32884. </p>
  32885. </dd>
  32886. <dt>&lsquo;<samp>dither</samp>&rsquo;</dt>
  32887. <dd><p>Set dithering to reduce the circular banding effects. Default is <code>1</code>
  32888. (enabled).
  32889. </p>
  32890. </dd>
  32891. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  32892. <dd><p>Set vignette aspect. This setting allows one to adjust the shape of the vignette.
  32893. Setting this value to the SAR of the input will make a rectangular vignetting
  32894. following the dimensions of the video.
  32895. </p>
  32896. <p>Default is <code>1/1</code>.
  32897. </p></dd>
  32898. </dl>
  32899. <a name="Expressions"></a>
  32900. <h3 class="subsection"><a href="ffprobe-all.html#toc-Expressions">32.224.1 Expressions</a></h3>
  32901. <p>The &lsquo;<samp>alpha</samp>&rsquo;, &lsquo;<samp>x0</samp>&rsquo; and &lsquo;<samp>y0</samp>&rsquo; expressions can contain the
  32902. following parameters.
  32903. </p>
  32904. <dl compact="compact">
  32905. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  32906. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  32907. <dd><p>input width and height
  32908. </p>
  32909. </dd>
  32910. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  32911. <dd><p>the number of input frame, starting from 0
  32912. </p>
  32913. </dd>
  32914. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  32915. <dd><p>the PTS (Presentation TimeStamp) time of the filtered video frame, expressed in
  32916. <var>TB</var> units, NAN if undefined
  32917. </p>
  32918. </dd>
  32919. <dt>&lsquo;<samp>r</samp>&rsquo;</dt>
  32920. <dd><p>frame rate of the input video, NAN if the input frame rate is unknown
  32921. </p>
  32922. </dd>
  32923. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  32924. <dd><p>the PTS (Presentation TimeStamp) of the filtered video frame,
  32925. expressed in seconds, NAN if undefined
  32926. </p>
  32927. </dd>
  32928. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  32929. <dd><p>time base of the input video
  32930. </p></dd>
  32931. </dl>
  32932. <a name="Examples-9"></a>
  32933. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-9">32.224.2 Examples</a></h3>
  32934. <ul>
  32935. <li>
  32936. Apply simple strong vignetting effect:
  32937. <div class="example">
  32938. <pre class="example">vignette=PI/4
  32939. </pre></div>
  32940. </li><li>
  32941. Make a flickering vignetting:
  32942. <div class="example">
  32943. <pre class="example">vignette='PI/4+random(1)*PI/50':eval=frame
  32944. </pre></div>
  32945. </li></ul>
  32946. <a name="vmafmotion"></a>
  32947. <h2 class="section"><a href="ffprobe-all.html#toc-vmafmotion">32.225 vmafmotion</a></h2>
  32948. <p>Obtain the average VMAF motion score of a video.
  32949. It is one of the component metrics of VMAF.
  32950. </p>
  32951. <p>The obtained average motion score is printed through the logging system.
  32952. </p>
  32953. <p>The filter accepts the following options:
  32954. </p>
  32955. <dl compact="compact">
  32956. <dt>&lsquo;<samp>stats_file</samp>&rsquo;</dt>
  32957. <dd><p>If specified, the filter will use the named file to save the motion score of
  32958. each frame with respect to the previous frame.
  32959. When filename equals &quot;-&quot; the data is sent to standard output.
  32960. </p></dd>
  32961. </dl>
  32962. <p>Example:
  32963. </p><div class="example">
  32964. <pre class="example">ffmpeg -i ref.mpg -vf vmafmotion -f null -
  32965. </pre></div>
  32966. <a name="vstack"></a>
  32967. <h2 class="section"><a href="ffprobe-all.html#toc-vstack">32.226 vstack</a></h2>
  32968. <p>Stack input videos vertically.
  32969. </p>
  32970. <p>All streams must be of same pixel format and of same width.
  32971. </p>
  32972. <p>Note that this filter is faster than using <a href="#overlay">overlay</a> and <a href="#pad">pad</a> filter
  32973. to create same output.
  32974. </p>
  32975. <p>The filter accepts the following options:
  32976. </p>
  32977. <dl compact="compact">
  32978. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  32979. <dd><p>Set number of input streams. Default is 2.
  32980. </p>
  32981. </dd>
  32982. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  32983. <dd><p>If set to 1, force the output to terminate when the shortest input
  32984. terminates. Default value is 0.
  32985. </p></dd>
  32986. </dl>
  32987. <a name="w3fdif"></a>
  32988. <h2 class="section"><a href="ffprobe-all.html#toc-w3fdif">32.227 w3fdif</a></h2>
  32989. <p>Deinterlace the input video (&quot;w3fdif&quot; stands for &quot;Weston 3 Field
  32990. Deinterlacing Filter&quot;).
  32991. </p>
  32992. <p>Based on the process described by Martin Weston for BBC R&amp;D, and
  32993. implemented based on the de-interlace algorithm written by Jim
  32994. Easterbrook for BBC R&amp;D, the Weston 3 field deinterlacing filter
  32995. uses filter coefficients calculated by BBC R&amp;D.
  32996. </p>
  32997. <p>This filter uses field-dominance information in frame to decide which
  32998. of each pair of fields to place first in the output.
  32999. If it gets it wrong use <a href="#setfield">setfield</a> filter before <code>w3fdif</code> filter.
  33000. </p>
  33001. <p>There are two sets of filter coefficients, so called &quot;simple&quot;
  33002. and &quot;complex&quot;. Which set of filter coefficients is used can
  33003. be set by passing an optional parameter:
  33004. </p>
  33005. <dl compact="compact">
  33006. <dt>&lsquo;<samp>filter</samp>&rsquo;</dt>
  33007. <dd><p>Set the interlacing filter coefficients. Accepts one of the following values:
  33008. </p>
  33009. <dl compact="compact">
  33010. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  33011. <dd><p>Simple filter coefficient set.
  33012. </p></dd>
  33013. <dt>&lsquo;<samp>complex</samp>&rsquo;</dt>
  33014. <dd><p>More-complex filter coefficient set.
  33015. </p></dd>
  33016. </dl>
  33017. <p>Default value is &lsquo;<samp>complex</samp>&rsquo;.
  33018. </p>
  33019. </dd>
  33020. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  33021. <dd><p>Specify which frames to deinterlace. Accepts one of the following values:
  33022. </p>
  33023. <dl compact="compact">
  33024. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  33025. <dd><p>Deinterlace all frames,
  33026. </p></dd>
  33027. <dt>&lsquo;<samp>interlaced</samp>&rsquo;</dt>
  33028. <dd><p>Only deinterlace frames marked as interlaced.
  33029. </p></dd>
  33030. </dl>
  33031. <p>Default value is &lsquo;<samp>all</samp>&rsquo;.
  33032. </p></dd>
  33033. </dl>
  33034. <a name="waveform"></a>
  33035. <h2 class="section"><a href="ffprobe-all.html#toc-waveform">32.228 waveform</a></h2>
  33036. <p>Video waveform monitor.
  33037. </p>
  33038. <p>The waveform monitor plots color component intensity. By default luminance
  33039. only. Each column of the waveform corresponds to a column of pixels in the
  33040. source video.
  33041. </p>
  33042. <p>It accepts the following options:
  33043. </p>
  33044. <dl compact="compact">
  33045. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  33046. <dd><p>Can be either <code>row</code>, or <code>column</code>. Default is <code>column</code>.
  33047. In row mode, the graph on the left side represents color component value 0 and
  33048. the right side represents value = 255. In column mode, the top side represents
  33049. color component value = 0 and bottom side represents value = 255.
  33050. </p>
  33051. </dd>
  33052. <dt>&lsquo;<samp>intensity, i</samp>&rsquo;</dt>
  33053. <dd><p>Set intensity. Smaller values are useful to find out how many values of the same
  33054. luminance are distributed across input rows/columns.
  33055. Default value is <code>0.04</code>. Allowed range is [0, 1].
  33056. </p>
  33057. </dd>
  33058. <dt>&lsquo;<samp>mirror, r</samp>&rsquo;</dt>
  33059. <dd><p>Set mirroring mode. <code>0</code> means unmirrored, <code>1</code> means mirrored.
  33060. In mirrored mode, higher values will be represented on the left
  33061. side for <code>row</code> mode and at the top for <code>column</code> mode. Default is
  33062. <code>1</code> (mirrored).
  33063. </p>
  33064. </dd>
  33065. <dt>&lsquo;<samp>display, d</samp>&rsquo;</dt>
  33066. <dd><p>Set display mode.
  33067. It accepts the following values:
  33068. </p><dl compact="compact">
  33069. <dt>&lsquo;<samp>overlay</samp>&rsquo;</dt>
  33070. <dd><p>Presents information identical to that in the <code>parade</code>, except
  33071. that the graphs representing color components are superimposed directly
  33072. over one another.
  33073. </p>
  33074. <p>This display mode makes it easier to spot relative differences or similarities
  33075. in overlapping areas of the color components that are supposed to be identical,
  33076. such as neutral whites, grays, or blacks.
  33077. </p>
  33078. </dd>
  33079. <dt>&lsquo;<samp>stack</samp>&rsquo;</dt>
  33080. <dd><p>Display separate graph for the color components side by side in
  33081. <code>row</code> mode or one below the other in <code>column</code> mode.
  33082. </p>
  33083. </dd>
  33084. <dt>&lsquo;<samp>parade</samp>&rsquo;</dt>
  33085. <dd><p>Display separate graph for the color components side by side in
  33086. <code>column</code> mode or one below the other in <code>row</code> mode.
  33087. </p>
  33088. <p>Using this display mode makes it easy to spot color casts in the highlights
  33089. and shadows of an image, by comparing the contours of the top and the bottom
  33090. graphs of each waveform. Since whites, grays, and blacks are characterized
  33091. by exactly equal amounts of red, green, and blue, neutral areas of the picture
  33092. should display three waveforms of roughly equal width/height. If not, the
  33093. correction is easy to perform by making level adjustments the three waveforms.
  33094. </p></dd>
  33095. </dl>
  33096. <p>Default is <code>stack</code>.
  33097. </p>
  33098. </dd>
  33099. <dt>&lsquo;<samp>components, c</samp>&rsquo;</dt>
  33100. <dd><p>Set which color components to display. Default is 1, which means only luminance
  33101. or red color component if input is in RGB colorspace. If is set for example to
  33102. 7 it will display all 3 (if) available color components.
  33103. </p>
  33104. </dd>
  33105. <dt>&lsquo;<samp>envelope, e</samp>&rsquo;</dt>
  33106. <dd><dl compact="compact">
  33107. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  33108. <dd><p>No envelope, this is default.
  33109. </p>
  33110. </dd>
  33111. <dt>&lsquo;<samp>instant</samp>&rsquo;</dt>
  33112. <dd><p>Instant envelope, minimum and maximum values presented in graph will be easily
  33113. visible even with small <code>step</code> value.
  33114. </p>
  33115. </dd>
  33116. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  33117. <dd><p>Hold minimum and maximum values presented in graph across time. This way you
  33118. can still spot out of range values without constantly looking at waveforms.
  33119. </p>
  33120. </dd>
  33121. <dt>&lsquo;<samp>peak+instant</samp>&rsquo;</dt>
  33122. <dd><p>Peak and instant envelope combined together.
  33123. </p></dd>
  33124. </dl>
  33125. </dd>
  33126. <dt>&lsquo;<samp>filter, f</samp>&rsquo;</dt>
  33127. <dd><dl compact="compact">
  33128. <dt>&lsquo;<samp>lowpass</samp>&rsquo;</dt>
  33129. <dd><p>No filtering, this is default.
  33130. </p>
  33131. </dd>
  33132. <dt>&lsquo;<samp>flat</samp>&rsquo;</dt>
  33133. <dd><p>Luma and chroma combined together.
  33134. </p>
  33135. </dd>
  33136. <dt>&lsquo;<samp>aflat</samp>&rsquo;</dt>
  33137. <dd><p>Similar as above, but shows difference between blue and red chroma.
  33138. </p>
  33139. </dd>
  33140. <dt>&lsquo;<samp>xflat</samp>&rsquo;</dt>
  33141. <dd><p>Similar as above, but use different colors.
  33142. </p>
  33143. </dd>
  33144. <dt>&lsquo;<samp>yflat</samp>&rsquo;</dt>
  33145. <dd><p>Similar as above, but again with different colors.
  33146. </p>
  33147. </dd>
  33148. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  33149. <dd><p>Displays only chroma.
  33150. </p>
  33151. </dd>
  33152. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  33153. <dd><p>Displays actual color value on waveform.
  33154. </p>
  33155. </dd>
  33156. <dt>&lsquo;<samp>acolor</samp>&rsquo;</dt>
  33157. <dd><p>Similar as above, but with luma showing frequency of chroma values.
  33158. </p></dd>
  33159. </dl>
  33160. </dd>
  33161. <dt>&lsquo;<samp>graticule, g</samp>&rsquo;</dt>
  33162. <dd><p>Set which graticule to display.
  33163. </p>
  33164. <dl compact="compact">
  33165. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  33166. <dd><p>Do not display graticule.
  33167. </p>
  33168. </dd>
  33169. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  33170. <dd><p>Display green graticule showing legal broadcast ranges.
  33171. </p>
  33172. </dd>
  33173. <dt>&lsquo;<samp>orange</samp>&rsquo;</dt>
  33174. <dd><p>Display orange graticule showing legal broadcast ranges.
  33175. </p>
  33176. </dd>
  33177. <dt>&lsquo;<samp>invert</samp>&rsquo;</dt>
  33178. <dd><p>Display invert graticule showing legal broadcast ranges.
  33179. </p></dd>
  33180. </dl>
  33181. </dd>
  33182. <dt>&lsquo;<samp>opacity, o</samp>&rsquo;</dt>
  33183. <dd><p>Set graticule opacity.
  33184. </p>
  33185. </dd>
  33186. <dt>&lsquo;<samp>flags, fl</samp>&rsquo;</dt>
  33187. <dd><p>Set graticule flags.
  33188. </p>
  33189. <dl compact="compact">
  33190. <dt>&lsquo;<samp>numbers</samp>&rsquo;</dt>
  33191. <dd><p>Draw numbers above lines. By default enabled.
  33192. </p>
  33193. </dd>
  33194. <dt>&lsquo;<samp>dots</samp>&rsquo;</dt>
  33195. <dd><p>Draw dots instead of lines.
  33196. </p></dd>
  33197. </dl>
  33198. </dd>
  33199. <dt>&lsquo;<samp>scale, s</samp>&rsquo;</dt>
  33200. <dd><p>Set scale used for displaying graticule.
  33201. </p>
  33202. <dl compact="compact">
  33203. <dt>&lsquo;<samp>digital</samp>&rsquo;</dt>
  33204. <dt>&lsquo;<samp>millivolts</samp>&rsquo;</dt>
  33205. <dt>&lsquo;<samp>ire</samp>&rsquo;</dt>
  33206. </dl>
  33207. <p>Default is digital.
  33208. </p>
  33209. </dd>
  33210. <dt>&lsquo;<samp>bgopacity, b</samp>&rsquo;</dt>
  33211. <dd><p>Set background opacity.
  33212. </p>
  33213. </dd>
  33214. <dt>&lsquo;<samp>tint0, t0</samp>&rsquo;</dt>
  33215. <dt>&lsquo;<samp>tint1, t1</samp>&rsquo;</dt>
  33216. <dd><p>Set tint for output.
  33217. Only used with lowpass filter and when display is not overlay and input
  33218. pixel formats are not RGB.
  33219. </p></dd>
  33220. </dl>
  33221. <a name="weave_002c-doubleweave"></a>
  33222. <h2 class="section"><a href="ffprobe-all.html#toc-weave_002c-doubleweave">32.229 weave, doubleweave</a></h2>
  33223. <p>The <code>weave</code> takes a field-based video input and join
  33224. each two sequential fields into single frame, producing a new double
  33225. height clip with half the frame rate and half the frame count.
  33226. </p>
  33227. <p>The <code>doubleweave</code> works same as <code>weave</code> but without
  33228. halving frame rate and frame count.
  33229. </p>
  33230. <p>It accepts the following option:
  33231. </p>
  33232. <dl compact="compact">
  33233. <dt>&lsquo;<samp>first_field</samp>&rsquo;</dt>
  33234. <dd><p>Set first field. Available values are:
  33235. </p>
  33236. <dl compact="compact">
  33237. <dt>&lsquo;<samp>top, t</samp>&rsquo;</dt>
  33238. <dd><p>Set the frame as top-field-first.
  33239. </p>
  33240. </dd>
  33241. <dt>&lsquo;<samp>bottom, b</samp>&rsquo;</dt>
  33242. <dd><p>Set the frame as bottom-field-first.
  33243. </p></dd>
  33244. </dl>
  33245. </dd>
  33246. </dl>
  33247. <a name="Examples-41"></a>
  33248. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-41">32.229.1 Examples</a></h3>
  33249. <ul>
  33250. <li>
  33251. Interlace video using <a href="#select">select</a> and <a href="#separatefields">separatefields</a> filter:
  33252. <div class="example">
  33253. <pre class="example">separatefields,select=eq(mod(n,4),0)+eq(mod(n,4),3),weave
  33254. </pre></div>
  33255. </li></ul>
  33256. <a name="xbr"></a>
  33257. <h2 class="section"><a href="ffprobe-all.html#toc-xbr">32.230 xbr</a></h2>
  33258. <p>Apply the xBR high-quality magnification filter which is designed for pixel
  33259. art. It follows a set of edge-detection rules, see
  33260. <a href="https://forums.libretro.com/t/xbr-algorithm-tutorial/123">https://forums.libretro.com/t/xbr-algorithm-tutorial/123</a>.
  33261. </p>
  33262. <p>It accepts the following option:
  33263. </p>
  33264. <dl compact="compact">
  33265. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  33266. <dd><p>Set the scaling dimension: <code>2</code> for <code>2xBR</code>, <code>3</code> for
  33267. <code>3xBR</code> and <code>4</code> for <code>4xBR</code>.
  33268. Default is <code>3</code>.
  33269. </p></dd>
  33270. </dl>
  33271. <a name="xfade"></a>
  33272. <h2 class="section"><a href="ffprobe-all.html#toc-xfade">32.231 xfade</a></h2>
  33273. <p>Apply cross fade from one input video stream to another input video stream.
  33274. The cross fade is applied for specified duration.
  33275. </p>
  33276. <p>The filter accepts the following options:
  33277. </p>
  33278. <dl compact="compact">
  33279. <dt>&lsquo;<samp>transition</samp>&rsquo;</dt>
  33280. <dd><p>Set one of available transition effects:
  33281. </p>
  33282. <dl compact="compact">
  33283. <dt>&lsquo;<samp>custom</samp>&rsquo;</dt>
  33284. <dt>&lsquo;<samp>fade</samp>&rsquo;</dt>
  33285. <dt>&lsquo;<samp>wipeleft</samp>&rsquo;</dt>
  33286. <dt>&lsquo;<samp>wiperight</samp>&rsquo;</dt>
  33287. <dt>&lsquo;<samp>wipeup</samp>&rsquo;</dt>
  33288. <dt>&lsquo;<samp>wipedown</samp>&rsquo;</dt>
  33289. <dt>&lsquo;<samp>slideleft</samp>&rsquo;</dt>
  33290. <dt>&lsquo;<samp>slideright</samp>&rsquo;</dt>
  33291. <dt>&lsquo;<samp>slideup</samp>&rsquo;</dt>
  33292. <dt>&lsquo;<samp>slidedown</samp>&rsquo;</dt>
  33293. <dt>&lsquo;<samp>circlecrop</samp>&rsquo;</dt>
  33294. <dt>&lsquo;<samp>rectcrop</samp>&rsquo;</dt>
  33295. <dt>&lsquo;<samp>distance</samp>&rsquo;</dt>
  33296. <dt>&lsquo;<samp>fadeblack</samp>&rsquo;</dt>
  33297. <dt>&lsquo;<samp>fadewhite</samp>&rsquo;</dt>
  33298. <dt>&lsquo;<samp>radial</samp>&rsquo;</dt>
  33299. <dt>&lsquo;<samp>smoothleft</samp>&rsquo;</dt>
  33300. <dt>&lsquo;<samp>smoothright</samp>&rsquo;</dt>
  33301. <dt>&lsquo;<samp>smoothup</samp>&rsquo;</dt>
  33302. <dt>&lsquo;<samp>smoothdown</samp>&rsquo;</dt>
  33303. <dt>&lsquo;<samp>circleopen</samp>&rsquo;</dt>
  33304. <dt>&lsquo;<samp>circleclose</samp>&rsquo;</dt>
  33305. <dt>&lsquo;<samp>vertopen</samp>&rsquo;</dt>
  33306. <dt>&lsquo;<samp>vertclose</samp>&rsquo;</dt>
  33307. <dt>&lsquo;<samp>horzopen</samp>&rsquo;</dt>
  33308. <dt>&lsquo;<samp>horzclose</samp>&rsquo;</dt>
  33309. <dt>&lsquo;<samp>dissolve</samp>&rsquo;</dt>
  33310. <dt>&lsquo;<samp>pixelize</samp>&rsquo;</dt>
  33311. <dt>&lsquo;<samp>diagtl</samp>&rsquo;</dt>
  33312. <dt>&lsquo;<samp>diagtr</samp>&rsquo;</dt>
  33313. <dt>&lsquo;<samp>diagbl</samp>&rsquo;</dt>
  33314. <dt>&lsquo;<samp>diagbr</samp>&rsquo;</dt>
  33315. </dl>
  33316. <p>Default transition effect is fade.
  33317. </p>
  33318. </dd>
  33319. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  33320. <dd><p>Set cross fade duration in seconds.
  33321. Default duration is 1 second.
  33322. </p>
  33323. </dd>
  33324. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  33325. <dd><p>Set cross fade start relative to first input stream in seconds.
  33326. Default offset is 0.
  33327. </p>
  33328. </dd>
  33329. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  33330. <dd><p>Set expression for custom transition effect.
  33331. </p>
  33332. <p>The expressions can use the following variables and functions:
  33333. </p>
  33334. <dl compact="compact">
  33335. <dt>&lsquo;<samp>X</samp>&rsquo;</dt>
  33336. <dt>&lsquo;<samp>Y</samp>&rsquo;</dt>
  33337. <dd><p>The coordinates of the current sample.
  33338. </p>
  33339. </dd>
  33340. <dt>&lsquo;<samp>W</samp>&rsquo;</dt>
  33341. <dt>&lsquo;<samp>H</samp>&rsquo;</dt>
  33342. <dd><p>The width and height of the image.
  33343. </p>
  33344. </dd>
  33345. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  33346. <dd><p>Progress of transition effect.
  33347. </p>
  33348. </dd>
  33349. <dt>&lsquo;<samp>PLANE</samp>&rsquo;</dt>
  33350. <dd><p>Currently processed plane.
  33351. </p>
  33352. </dd>
  33353. <dt>&lsquo;<samp>A</samp>&rsquo;</dt>
  33354. <dd><p>Return value of first input at current location and plane.
  33355. </p>
  33356. </dd>
  33357. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  33358. <dd><p>Return value of second input at current location and plane.
  33359. </p>
  33360. </dd>
  33361. <dt>&lsquo;<samp>a0(x, y)</samp>&rsquo;</dt>
  33362. <dt>&lsquo;<samp>a1(x, y)</samp>&rsquo;</dt>
  33363. <dt>&lsquo;<samp>a2(x, y)</samp>&rsquo;</dt>
  33364. <dt>&lsquo;<samp>a3(x, y)</samp>&rsquo;</dt>
  33365. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  33366. first/second/third/fourth component of first input.
  33367. </p>
  33368. </dd>
  33369. <dt>&lsquo;<samp>b0(x, y)</samp>&rsquo;</dt>
  33370. <dt>&lsquo;<samp>b1(x, y)</samp>&rsquo;</dt>
  33371. <dt>&lsquo;<samp>b2(x, y)</samp>&rsquo;</dt>
  33372. <dt>&lsquo;<samp>b3(x, y)</samp>&rsquo;</dt>
  33373. <dd><p>Return the value of the pixel at location (<var>x</var>,<var>y</var>) of the
  33374. first/second/third/fourth component of second input.
  33375. </p></dd>
  33376. </dl>
  33377. </dd>
  33378. </dl>
  33379. <a name="Examples-104"></a>
  33380. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-104">32.231.1 Examples</a></h3>
  33381. <ul>
  33382. <li>
  33383. Cross fade from one input video to another input video, with fade transition and duration of transition
  33384. of 2 seconds starting at offset of 5 seconds:
  33385. <div class="example">
  33386. <pre class="example">ffmpeg -i first.mp4 -i second.mp4 -filter_complex xfade=transition=fade:duration=2:offset=5 output.mp4
  33387. </pre></div>
  33388. </li></ul>
  33389. <a name="xmedian"></a>
  33390. <h2 class="section"><a href="ffprobe-all.html#toc-xmedian">32.232 xmedian</a></h2>
  33391. <p>Pick median pixels from several input videos.
  33392. </p>
  33393. <p>The filter accepts the following options:
  33394. </p>
  33395. <dl compact="compact">
  33396. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  33397. <dd><p>Set number of inputs.
  33398. Default is 3. Allowed range is from 3 to 255.
  33399. If number of inputs is even number, than result will be mean value between two median values.
  33400. </p>
  33401. </dd>
  33402. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  33403. <dd><p>Set which planes to filter. Default value is <code>15</code>, by which all planes are processed.
  33404. </p>
  33405. </dd>
  33406. <dt>&lsquo;<samp>percentile</samp>&rsquo;</dt>
  33407. <dd><p>Set median percentile. Default value is <code>0.5</code>.
  33408. Default value of <code>0.5</code> will pick always median values, while <code>0</code> will pick
  33409. minimum values, and <code>1</code> maximum values.
  33410. </p></dd>
  33411. </dl>
  33412. <a name="xstack"></a>
  33413. <h2 class="section"><a href="ffprobe-all.html#toc-xstack">32.233 xstack</a></h2>
  33414. <p>Stack video inputs into custom layout.
  33415. </p>
  33416. <p>All streams must be of same pixel format.
  33417. </p>
  33418. <p>The filter accepts the following options:
  33419. </p>
  33420. <dl compact="compact">
  33421. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  33422. <dd><p>Set number of input streams. Default is 2.
  33423. </p>
  33424. </dd>
  33425. <dt>&lsquo;<samp>layout</samp>&rsquo;</dt>
  33426. <dd><p>Specify layout of inputs.
  33427. This option requires the desired layout configuration to be explicitly set by the user.
  33428. This sets position of each video input in output. Each input
  33429. is separated by &rsquo;|&rsquo;.
  33430. The first number represents the column, and the second number represents the row.
  33431. Numbers start at 0 and are separated by &rsquo;_&rsquo;. Optionally one can use wX and hX,
  33432. where X is video input from which to take width or height.
  33433. Multiple values can be used when separated by &rsquo;+&rsquo;. In such
  33434. case values are summed together.
  33435. </p>
  33436. <p>Note that if inputs are of different sizes gaps may appear, as not all of
  33437. the output video frame will be filled. Similarly, videos can overlap each
  33438. other if their position doesn&rsquo;t leave enough space for the full frame of
  33439. adjoining videos.
  33440. </p>
  33441. <p>For 2 inputs, a default layout of <code>0_0|w0_0</code> is set. In all other cases,
  33442. a layout must be set by the user.
  33443. </p>
  33444. </dd>
  33445. <dt>&lsquo;<samp>shortest</samp>&rsquo;</dt>
  33446. <dd><p>If set to 1, force the output to terminate when the shortest input
  33447. terminates. Default value is 0.
  33448. </p>
  33449. </dd>
  33450. <dt>&lsquo;<samp>fill</samp>&rsquo;</dt>
  33451. <dd><p>If set to valid color, all unused pixels will be filled with that color.
  33452. By default fill is set to none, so it is disabled.
  33453. </p></dd>
  33454. </dl>
  33455. <a name="Examples-70"></a>
  33456. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-70">32.233.1 Examples</a></h3>
  33457. <ul>
  33458. <li>
  33459. Display 4 inputs into 2x2 grid.
  33460. <p>Layout:
  33461. </p><div class="example">
  33462. <pre class="example">input1(0, 0) | input3(w0, 0)
  33463. input2(0, h0) | input4(w0, h0)
  33464. </pre></div>
  33465. <div class="example">
  33466. <pre class="example">xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0
  33467. </pre></div>
  33468. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33469. </p>
  33470. </li><li>
  33471. Display 4 inputs into 1x4 grid.
  33472. <p>Layout:
  33473. </p><div class="example">
  33474. <pre class="example">input1(0, 0)
  33475. input2(0, h0)
  33476. input3(0, h0+h1)
  33477. input4(0, h0+h1+h2)
  33478. </pre></div>
  33479. <div class="example">
  33480. <pre class="example">xstack=inputs=4:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2
  33481. </pre></div>
  33482. <p>Note that if inputs are of different widths, unused space will appear.
  33483. </p>
  33484. </li><li>
  33485. Display 9 inputs into 3x3 grid.
  33486. <p>Layout:
  33487. </p><div class="example">
  33488. <pre class="example">input1(0, 0) | input4(w0, 0) | input7(w0+w3, 0)
  33489. input2(0, h0) | input5(w0, h0) | input8(w0+w3, h0)
  33490. input3(0, h0+h1) | input6(w0, h0+h1) | input9(w0+w3, h0+h1)
  33491. </pre></div>
  33492. <div class="example">
  33493. <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
  33494. </pre></div>
  33495. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33496. </p>
  33497. </li><li>
  33498. Display 16 inputs into 4x4 grid.
  33499. <p>Layout:
  33500. </p><div class="example">
  33501. <pre class="example">input1(0, 0) | input5(w0, 0) | input9 (w0+w4, 0) | input13(w0+w4+w8, 0)
  33502. input2(0, h0) | input6(w0, h0) | input10(w0+w4, h0) | input14(w0+w4+w8, h0)
  33503. input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w4, h0+h1) | input15(w0+w4+w8, h0+h1)
  33504. input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w4, h0+h1+h2)| input16(w0+w4+w8, h0+h1+h2)
  33505. </pre></div>
  33506. <div class="example">
  33507. <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|
  33508. 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
  33509. </pre></div>
  33510. <p>Note that if inputs are of different sizes, gaps or overlaps may occur.
  33511. </p>
  33512. </li></ul>
  33513. <p><a name="yadif"></a>
  33514. </p><a name="yadif-1"></a>
  33515. <h2 class="section"><a href="ffprobe-all.html#toc-yadif-1">32.234 yadif</a></h2>
  33516. <p>Deinterlace the input video (&quot;yadif&quot; means &quot;yet another deinterlacing
  33517. filter&quot;).
  33518. </p>
  33519. <p>It accepts the following parameters:
  33520. </p>
  33521. <dl compact="compact">
  33522. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  33523. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  33524. </p>
  33525. <dl compact="compact">
  33526. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  33527. <dd><p>Output one frame for each frame.
  33528. </p></dd>
  33529. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  33530. <dd><p>Output one frame for each field.
  33531. </p></dd>
  33532. <dt>&lsquo;<samp>2, send_frame_nospatial</samp>&rsquo;</dt>
  33533. <dd><p>Like <code>send_frame</code>, but it skips the spatial interlacing check.
  33534. </p></dd>
  33535. <dt>&lsquo;<samp>3, send_field_nospatial</samp>&rsquo;</dt>
  33536. <dd><p>Like <code>send_field</code>, but it skips the spatial interlacing check.
  33537. </p></dd>
  33538. </dl>
  33539. <p>The default value is <code>send_frame</code>.
  33540. </p>
  33541. </dd>
  33542. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  33543. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  33544. of the following values:
  33545. </p>
  33546. <dl compact="compact">
  33547. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  33548. <dd><p>Assume the top field is first.
  33549. </p></dd>
  33550. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  33551. <dd><p>Assume the bottom field is first.
  33552. </p></dd>
  33553. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  33554. <dd><p>Enable automatic detection of field parity.
  33555. </p></dd>
  33556. </dl>
  33557. <p>The default value is <code>auto</code>.
  33558. If the interlacing is unknown or the decoder does not export this information,
  33559. top field first will be assumed.
  33560. </p>
  33561. </dd>
  33562. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  33563. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  33564. values:
  33565. </p>
  33566. <dl compact="compact">
  33567. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  33568. <dd><p>Deinterlace all frames.
  33569. </p></dd>
  33570. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  33571. <dd><p>Only deinterlace frames marked as interlaced.
  33572. </p></dd>
  33573. </dl>
  33574. <p>The default value is <code>all</code>.
  33575. </p></dd>
  33576. </dl>
  33577. <a name="yadif_005fcuda"></a>
  33578. <h2 class="section"><a href="ffprobe-all.html#toc-yadif_005fcuda">32.235 yadif_cuda</a></h2>
  33579. <p>Deinterlace the input video using the <a href="#yadif">yadif</a> algorithm, but implemented
  33580. in CUDA so that it can work as part of a GPU accelerated pipeline with nvdec
  33581. and/or nvenc.
  33582. </p>
  33583. <p>It accepts the following parameters:
  33584. </p>
  33585. <dl compact="compact">
  33586. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  33587. <dd><p>The interlacing mode to adopt. It accepts one of the following values:
  33588. </p>
  33589. <dl compact="compact">
  33590. <dt>&lsquo;<samp>0, send_frame</samp>&rsquo;</dt>
  33591. <dd><p>Output one frame for each frame.
  33592. </p></dd>
  33593. <dt>&lsquo;<samp>1, send_field</samp>&rsquo;</dt>
  33594. <dd><p>Output one frame for each field.
  33595. </p></dd>
  33596. <dt>&lsquo;<samp>2, send_frame_nospatial</samp>&rsquo;</dt>
  33597. <dd><p>Like <code>send_frame</code>, but it skips the spatial interlacing check.
  33598. </p></dd>
  33599. <dt>&lsquo;<samp>3, send_field_nospatial</samp>&rsquo;</dt>
  33600. <dd><p>Like <code>send_field</code>, but it skips the spatial interlacing check.
  33601. </p></dd>
  33602. </dl>
  33603. <p>The default value is <code>send_frame</code>.
  33604. </p>
  33605. </dd>
  33606. <dt>&lsquo;<samp>parity</samp>&rsquo;</dt>
  33607. <dd><p>The picture field parity assumed for the input interlaced video. It accepts one
  33608. of the following values:
  33609. </p>
  33610. <dl compact="compact">
  33611. <dt>&lsquo;<samp>0, tff</samp>&rsquo;</dt>
  33612. <dd><p>Assume the top field is first.
  33613. </p></dd>
  33614. <dt>&lsquo;<samp>1, bff</samp>&rsquo;</dt>
  33615. <dd><p>Assume the bottom field is first.
  33616. </p></dd>
  33617. <dt>&lsquo;<samp>-1, auto</samp>&rsquo;</dt>
  33618. <dd><p>Enable automatic detection of field parity.
  33619. </p></dd>
  33620. </dl>
  33621. <p>The default value is <code>auto</code>.
  33622. If the interlacing is unknown or the decoder does not export this information,
  33623. top field first will be assumed.
  33624. </p>
  33625. </dd>
  33626. <dt>&lsquo;<samp>deint</samp>&rsquo;</dt>
  33627. <dd><p>Specify which frames to deinterlace. Accepts one of the following
  33628. values:
  33629. </p>
  33630. <dl compact="compact">
  33631. <dt>&lsquo;<samp>0, all</samp>&rsquo;</dt>
  33632. <dd><p>Deinterlace all frames.
  33633. </p></dd>
  33634. <dt>&lsquo;<samp>1, interlaced</samp>&rsquo;</dt>
  33635. <dd><p>Only deinterlace frames marked as interlaced.
  33636. </p></dd>
  33637. </dl>
  33638. <p>The default value is <code>all</code>.
  33639. </p></dd>
  33640. </dl>
  33641. <a name="yaepblur"></a>
  33642. <h2 class="section"><a href="ffprobe-all.html#toc-yaepblur">32.236 yaepblur</a></h2>
  33643. <p>Apply blur filter while preserving edges (&quot;yaepblur&quot; means &quot;yet another edge preserving blur filter&quot;).
  33644. The algorithm is described in
  33645. &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;
  33646. </p>
  33647. <p>It accepts the following parameters:
  33648. </p>
  33649. <dl compact="compact">
  33650. <dt>&lsquo;<samp>radius, r</samp>&rsquo;</dt>
  33651. <dd><p>Set the window radius. Default value is 3.
  33652. </p>
  33653. </dd>
  33654. <dt>&lsquo;<samp>planes, p</samp>&rsquo;</dt>
  33655. <dd><p>Set which planes to filter. Default is only the first plane.
  33656. </p>
  33657. </dd>
  33658. <dt>&lsquo;<samp>sigma, s</samp>&rsquo;</dt>
  33659. <dd><p>Set blur strength. Default value is 128.
  33660. </p></dd>
  33661. </dl>
  33662. <a name="Commands-18"></a>
  33663. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-18">32.236.1 Commands</a></h3>
  33664. <p>This filter supports same <a href="#commands">commands</a> as options.
  33665. </p>
  33666. <a name="zoompan"></a>
  33667. <h2 class="section"><a href="ffprobe-all.html#toc-zoompan">32.237 zoompan</a></h2>
  33668. <p>Apply Zoom &amp; Pan effect.
  33669. </p>
  33670. <p>This filter accepts the following options:
  33671. </p>
  33672. <dl compact="compact">
  33673. <dt>&lsquo;<samp>zoom, z</samp>&rsquo;</dt>
  33674. <dd><p>Set the zoom expression. Range is 1-10. Default is 1.
  33675. </p>
  33676. </dd>
  33677. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  33678. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  33679. <dd><p>Set the x and y expression. Default is 0.
  33680. </p>
  33681. </dd>
  33682. <dt>&lsquo;<samp>d</samp>&rsquo;</dt>
  33683. <dd><p>Set the duration expression in number of frames.
  33684. This sets for how many number of frames effect will last for
  33685. single input image.
  33686. </p>
  33687. </dd>
  33688. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  33689. <dd><p>Set the output image size, default is &rsquo;hd720&rsquo;.
  33690. </p>
  33691. </dd>
  33692. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  33693. <dd><p>Set the output frame rate, default is &rsquo;25&rsquo;.
  33694. </p></dd>
  33695. </dl>
  33696. <p>Each expression can contain the following constants:
  33697. </p>
  33698. <dl compact="compact">
  33699. <dt>&lsquo;<samp>in_w, iw</samp>&rsquo;</dt>
  33700. <dd><p>Input width.
  33701. </p>
  33702. </dd>
  33703. <dt>&lsquo;<samp>in_h, ih</samp>&rsquo;</dt>
  33704. <dd><p>Input height.
  33705. </p>
  33706. </dd>
  33707. <dt>&lsquo;<samp>out_w, ow</samp>&rsquo;</dt>
  33708. <dd><p>Output width.
  33709. </p>
  33710. </dd>
  33711. <dt>&lsquo;<samp>out_h, oh</samp>&rsquo;</dt>
  33712. <dd><p>Output height.
  33713. </p>
  33714. </dd>
  33715. <dt>&lsquo;<samp>in</samp>&rsquo;</dt>
  33716. <dd><p>Input frame count.
  33717. </p>
  33718. </dd>
  33719. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  33720. <dd><p>Output frame count.
  33721. </p>
  33722. </dd>
  33723. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  33724. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  33725. <dd><p>Last calculated &rsquo;x&rsquo; and &rsquo;y&rsquo; position from &rsquo;x&rsquo; and &rsquo;y&rsquo; expression
  33726. for current input frame.
  33727. </p>
  33728. </dd>
  33729. <dt>&lsquo;<samp>px</samp>&rsquo;</dt>
  33730. <dt>&lsquo;<samp>py</samp>&rsquo;</dt>
  33731. <dd><p>&rsquo;x&rsquo; and &rsquo;y&rsquo; of last output frame of previous input frame or 0 when there was
  33732. not yet such frame (first input frame).
  33733. </p>
  33734. </dd>
  33735. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  33736. <dd><p>Last calculated zoom from &rsquo;z&rsquo; expression for current input frame.
  33737. </p>
  33738. </dd>
  33739. <dt>&lsquo;<samp>pzoom</samp>&rsquo;</dt>
  33740. <dd><p>Last calculated zoom of last output frame of previous input frame.
  33741. </p>
  33742. </dd>
  33743. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  33744. <dd><p>Number of output frames for current input frame. Calculated from &rsquo;d&rsquo; expression
  33745. for each input frame.
  33746. </p>
  33747. </dd>
  33748. <dt>&lsquo;<samp>pduration</samp>&rsquo;</dt>
  33749. <dd><p>number of output frames created for previous input frame
  33750. </p>
  33751. </dd>
  33752. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  33753. <dd><p>Rational number: input width / input height
  33754. </p>
  33755. </dd>
  33756. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  33757. <dd><p>sample aspect ratio
  33758. </p>
  33759. </dd>
  33760. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  33761. <dd><p>display aspect ratio
  33762. </p>
  33763. </dd>
  33764. </dl>
  33765. <a name="Examples-153"></a>
  33766. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-153">32.237.1 Examples</a></h3>
  33767. <ul>
  33768. <li>
  33769. Zoom-in up to 1.5 and pan at same time to some spot near center of picture:
  33770. <div class="example">
  33771. <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
  33772. </pre></div>
  33773. </li><li>
  33774. Zoom-in up to 1.5 and pan always at center of picture:
  33775. <div class="example">
  33776. <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)'
  33777. </pre></div>
  33778. </li><li>
  33779. Same as above but without pausing:
  33780. <div class="example">
  33781. <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)'
  33782. </pre></div>
  33783. </li></ul>
  33784. <p><a name="zscale"></a>
  33785. </p><a name="zscale-1"></a>
  33786. <h2 class="section"><a href="ffprobe-all.html#toc-zscale-1">32.238 zscale</a></h2>
  33787. <p>Scale (resize) the input video, using the z.lib library:
  33788. <a href="https://github.com/sekrit-twc/zimg">https://github.com/sekrit-twc/zimg</a>. To enable compilation of this
  33789. filter, you need to configure FFmpeg with <code>--enable-libzimg</code>.
  33790. </p>
  33791. <p>The zscale filter forces the output display aspect ratio to be the same
  33792. as the input, by changing the output sample aspect ratio.
  33793. </p>
  33794. <p>If the input image format is different from the format requested by
  33795. the next filter, the zscale filter will convert the input to the
  33796. requested format.
  33797. </p>
  33798. <a name="Options-13"></a>
  33799. <h3 class="subsection"><a href="ffprobe-all.html#toc-Options-13">32.238.1 Options</a></h3>
  33800. <p>The filter accepts the following options.
  33801. </p>
  33802. <dl compact="compact">
  33803. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  33804. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  33805. <dd><p>Set the output video dimension expression. Default value is the input
  33806. dimension.
  33807. </p>
  33808. <p>If the <var>width</var> or <var>w</var> value is 0, the input width is used for
  33809. the output. If the <var>height</var> or <var>h</var> value is 0, the input height
  33810. is used for the output.
  33811. </p>
  33812. <p>If one and only one of the values is -n with n &gt;= 1, the zscale filter
  33813. will use a value that maintains the aspect ratio of the input image,
  33814. calculated from the other specified dimension. After that it will,
  33815. however, make sure that the calculated dimension is divisible by n and
  33816. adjust the value if necessary.
  33817. </p>
  33818. <p>If both values are -n with n &gt;= 1, the behavior will be identical to
  33819. both values being set to 0 as previously detailed.
  33820. </p>
  33821. <p>See below for the list of accepted constants for use in the dimension
  33822. expression.
  33823. </p>
  33824. </dd>
  33825. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  33826. <dd><p>Set the video size. For the syntax of this option, check the
  33827. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  33828. </p>
  33829. </dd>
  33830. <dt>&lsquo;<samp>dither, d</samp>&rsquo;</dt>
  33831. <dd><p>Set the dither type.
  33832. </p>
  33833. <p>Possible values are:
  33834. </p><dl compact="compact">
  33835. <dt><var>none</var></dt>
  33836. <dt><var>ordered</var></dt>
  33837. <dt><var>random</var></dt>
  33838. <dt><var>error_diffusion</var></dt>
  33839. </dl>
  33840. <p>Default is none.
  33841. </p>
  33842. </dd>
  33843. <dt>&lsquo;<samp>filter, f</samp>&rsquo;</dt>
  33844. <dd><p>Set the resize filter type.
  33845. </p>
  33846. <p>Possible values are:
  33847. </p><dl compact="compact">
  33848. <dt><var>point</var></dt>
  33849. <dt><var>bilinear</var></dt>
  33850. <dt><var>bicubic</var></dt>
  33851. <dt><var>spline16</var></dt>
  33852. <dt><var>spline36</var></dt>
  33853. <dt><var>lanczos</var></dt>
  33854. </dl>
  33855. <p>Default is bilinear.
  33856. </p>
  33857. </dd>
  33858. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  33859. <dd><p>Set the color range.
  33860. </p>
  33861. <p>Possible values are:
  33862. </p><dl compact="compact">
  33863. <dt><var>input</var></dt>
  33864. <dt><var>limited</var></dt>
  33865. <dt><var>full</var></dt>
  33866. </dl>
  33867. <p>Default is same as input.
  33868. </p>
  33869. </dd>
  33870. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  33871. <dd><p>Set the color primaries.
  33872. </p>
  33873. <p>Possible values are:
  33874. </p><dl compact="compact">
  33875. <dt><var>input</var></dt>
  33876. <dt><var>709</var></dt>
  33877. <dt><var>unspecified</var></dt>
  33878. <dt><var>170m</var></dt>
  33879. <dt><var>240m</var></dt>
  33880. <dt><var>2020</var></dt>
  33881. </dl>
  33882. <p>Default is same as input.
  33883. </p>
  33884. </dd>
  33885. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  33886. <dd><p>Set the transfer characteristics.
  33887. </p>
  33888. <p>Possible values are:
  33889. </p><dl compact="compact">
  33890. <dt><var>input</var></dt>
  33891. <dt><var>709</var></dt>
  33892. <dt><var>unspecified</var></dt>
  33893. <dt><var>601</var></dt>
  33894. <dt><var>linear</var></dt>
  33895. <dt><var>2020_10</var></dt>
  33896. <dt><var>2020_12</var></dt>
  33897. <dt><var>smpte2084</var></dt>
  33898. <dt><var>iec61966-2-1</var></dt>
  33899. <dt><var>arib-std-b67</var></dt>
  33900. </dl>
  33901. <p>Default is same as input.
  33902. </p>
  33903. </dd>
  33904. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  33905. <dd><p>Set the colorspace matrix.
  33906. </p>
  33907. <p>Possible value are:
  33908. </p><dl compact="compact">
  33909. <dt><var>input</var></dt>
  33910. <dt><var>709</var></dt>
  33911. <dt><var>unspecified</var></dt>
  33912. <dt><var>470bg</var></dt>
  33913. <dt><var>170m</var></dt>
  33914. <dt><var>2020_ncl</var></dt>
  33915. <dt><var>2020_cl</var></dt>
  33916. </dl>
  33917. <p>Default is same as input.
  33918. </p>
  33919. </dd>
  33920. <dt>&lsquo;<samp>rangein, rin</samp>&rsquo;</dt>
  33921. <dd><p>Set the input color range.
  33922. </p>
  33923. <p>Possible values are:
  33924. </p><dl compact="compact">
  33925. <dt><var>input</var></dt>
  33926. <dt><var>limited</var></dt>
  33927. <dt><var>full</var></dt>
  33928. </dl>
  33929. <p>Default is same as input.
  33930. </p>
  33931. </dd>
  33932. <dt>&lsquo;<samp>primariesin, pin</samp>&rsquo;</dt>
  33933. <dd><p>Set the input color primaries.
  33934. </p>
  33935. <p>Possible values are:
  33936. </p><dl compact="compact">
  33937. <dt><var>input</var></dt>
  33938. <dt><var>709</var></dt>
  33939. <dt><var>unspecified</var></dt>
  33940. <dt><var>170m</var></dt>
  33941. <dt><var>240m</var></dt>
  33942. <dt><var>2020</var></dt>
  33943. </dl>
  33944. <p>Default is same as input.
  33945. </p>
  33946. </dd>
  33947. <dt>&lsquo;<samp>transferin, tin</samp>&rsquo;</dt>
  33948. <dd><p>Set the input transfer characteristics.
  33949. </p>
  33950. <p>Possible values are:
  33951. </p><dl compact="compact">
  33952. <dt><var>input</var></dt>
  33953. <dt><var>709</var></dt>
  33954. <dt><var>unspecified</var></dt>
  33955. <dt><var>601</var></dt>
  33956. <dt><var>linear</var></dt>
  33957. <dt><var>2020_10</var></dt>
  33958. <dt><var>2020_12</var></dt>
  33959. </dl>
  33960. <p>Default is same as input.
  33961. </p>
  33962. </dd>
  33963. <dt>&lsquo;<samp>matrixin, min</samp>&rsquo;</dt>
  33964. <dd><p>Set the input colorspace matrix.
  33965. </p>
  33966. <p>Possible value are:
  33967. </p><dl compact="compact">
  33968. <dt><var>input</var></dt>
  33969. <dt><var>709</var></dt>
  33970. <dt><var>unspecified</var></dt>
  33971. <dt><var>470bg</var></dt>
  33972. <dt><var>170m</var></dt>
  33973. <dt><var>2020_ncl</var></dt>
  33974. <dt><var>2020_cl</var></dt>
  33975. </dl>
  33976. </dd>
  33977. <dt>&lsquo;<samp>chromal, c</samp>&rsquo;</dt>
  33978. <dd><p>Set the output chroma location.
  33979. </p>
  33980. <p>Possible values are:
  33981. </p><dl compact="compact">
  33982. <dt><var>input</var></dt>
  33983. <dt><var>left</var></dt>
  33984. <dt><var>center</var></dt>
  33985. <dt><var>topleft</var></dt>
  33986. <dt><var>top</var></dt>
  33987. <dt><var>bottomleft</var></dt>
  33988. <dt><var>bottom</var></dt>
  33989. </dl>
  33990. </dd>
  33991. <dt>&lsquo;<samp>chromalin, cin</samp>&rsquo;</dt>
  33992. <dd><p>Set the input chroma location.
  33993. </p>
  33994. <p>Possible values are:
  33995. </p><dl compact="compact">
  33996. <dt><var>input</var></dt>
  33997. <dt><var>left</var></dt>
  33998. <dt><var>center</var></dt>
  33999. <dt><var>topleft</var></dt>
  34000. <dt><var>top</var></dt>
  34001. <dt><var>bottomleft</var></dt>
  34002. <dt><var>bottom</var></dt>
  34003. </dl>
  34004. </dd>
  34005. <dt>&lsquo;<samp>npl</samp>&rsquo;</dt>
  34006. <dd><p>Set the nominal peak luminance.
  34007. </p></dd>
  34008. </dl>
  34009. <p>The values of the &lsquo;<samp>w</samp>&rsquo; and &lsquo;<samp>h</samp>&rsquo; options are expressions
  34010. containing the following constants:
  34011. </p>
  34012. <dl compact="compact">
  34013. <dt><var>in_w</var></dt>
  34014. <dt><var>in_h</var></dt>
  34015. <dd><p>The input width and height
  34016. </p>
  34017. </dd>
  34018. <dt><var>iw</var></dt>
  34019. <dt><var>ih</var></dt>
  34020. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  34021. </p>
  34022. </dd>
  34023. <dt><var>out_w</var></dt>
  34024. <dt><var>out_h</var></dt>
  34025. <dd><p>The output (scaled) width and height
  34026. </p>
  34027. </dd>
  34028. <dt><var>ow</var></dt>
  34029. <dt><var>oh</var></dt>
  34030. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>
  34031. </p>
  34032. </dd>
  34033. <dt><var>a</var></dt>
  34034. <dd><p>The same as <var>iw</var> / <var>ih</var>
  34035. </p>
  34036. </dd>
  34037. <dt><var>sar</var></dt>
  34038. <dd><p>input sample aspect ratio
  34039. </p>
  34040. </dd>
  34041. <dt><var>dar</var></dt>
  34042. <dd><p>The input display aspect ratio. Calculated from <code>(iw / ih) * sar</code>.
  34043. </p>
  34044. </dd>
  34045. <dt><var>hsub</var></dt>
  34046. <dt><var>vsub</var></dt>
  34047. <dd><p>horizontal and vertical input chroma subsample values. For example for the
  34048. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34049. </p>
  34050. </dd>
  34051. <dt><var>ohsub</var></dt>
  34052. <dt><var>ovsub</var></dt>
  34053. <dd><p>horizontal and vertical output chroma subsample values. For example for the
  34054. pixel format &quot;yuv422p&quot; <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34055. </p></dd>
  34056. </dl>
  34057. <a name="Commands-17"></a>
  34058. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-17">32.238.2 Commands</a></h3>
  34059. <p>This filter supports the following commands:
  34060. </p><dl compact="compact">
  34061. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  34062. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  34063. <dd><p>Set the output video dimension expression.
  34064. The command accepts the same syntax of the corresponding option.
  34065. </p>
  34066. <p>If the specified expression is not valid, it is kept at its current
  34067. value.
  34068. </p></dd>
  34069. </dl>
  34070. <a name="OpenCL-Video-Filters"></a>
  34071. <h1 class="chapter"><a href="ffprobe-all.html#toc-OpenCL-Video-Filters">33 OpenCL Video Filters</a></h1>
  34072. <p>Below is a description of the currently available OpenCL video filters.
  34073. </p>
  34074. <p>To enable compilation of these filters you need to configure FFmpeg with
  34075. <code>--enable-opencl</code>.
  34076. </p>
  34077. <p>Running OpenCL filters requires you to initialize a hardware device and to pass that device to all filters in any filter graph.
  34078. </p><dl compact="compact">
  34079. <dt>&lsquo;<samp>-init_hw_device opencl[=<var>name</var>][:<var>device</var>[,<var>key=value</var>...]]</samp>&rsquo;</dt>
  34080. <dd><p>Initialise a new hardware device of type <var>opencl</var> called <var>name</var>, using the
  34081. given device parameters.
  34082. </p>
  34083. </dd>
  34084. <dt>&lsquo;<samp>-filter_hw_device <var>name</var></samp>&rsquo;</dt>
  34085. <dd><p>Pass the hardware device called <var>name</var> to all filters in any filter graph.
  34086. </p>
  34087. </dd>
  34088. </dl>
  34089. <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>
  34090. </p>
  34091. <ul>
  34092. <li>
  34093. Example of choosing the first device on the second platform and running avgblur_opencl filter with default parameters on it.
  34094. <div class="example">
  34095. <pre class="example">-init_hw_device opencl=gpu:1.0 -filter_hw_device gpu -i INPUT -vf &quot;hwupload, avgblur_opencl, hwdownload&quot; OUTPUT
  34096. </pre></div>
  34097. </li></ul>
  34098. <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.
  34099. </p>
  34100. <a name="avgblur_005fopencl"></a>
  34101. <h2 class="section"><a href="ffprobe-all.html#toc-avgblur_005fopencl">33.1 avgblur_opencl</a></h2>
  34102. <p>Apply average blur filter.
  34103. </p>
  34104. <p>The filter accepts the following options:
  34105. </p>
  34106. <dl compact="compact">
  34107. <dt>&lsquo;<samp>sizeX</samp>&rsquo;</dt>
  34108. <dd><p>Set horizontal radius size.
  34109. Range is <code>[1, 1024]</code> and default value is <code>1</code>.
  34110. </p>
  34111. </dd>
  34112. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  34113. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  34114. </p>
  34115. </dd>
  34116. <dt>&lsquo;<samp>sizeY</samp>&rsquo;</dt>
  34117. <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.
  34118. </p></dd>
  34119. </dl>
  34120. <a name="Example-3"></a>
  34121. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-3">33.1.1 Example</a></h3>
  34122. <ul>
  34123. <li>
  34124. 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.
  34125. <div class="example">
  34126. <pre class="example">-i INPUT -vf &quot;hwupload, avgblur_opencl=3, hwdownload&quot; OUTPUT
  34127. </pre></div>
  34128. </li></ul>
  34129. <a name="boxblur_005fopencl"></a>
  34130. <h2 class="section"><a href="ffprobe-all.html#toc-boxblur_005fopencl">33.2 boxblur_opencl</a></h2>
  34131. <p>Apply a boxblur algorithm to the input video.
  34132. </p>
  34133. <p>It accepts the following parameters:
  34134. </p>
  34135. <dl compact="compact">
  34136. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  34137. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  34138. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  34139. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  34140. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  34141. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  34142. </dl>
  34143. <p>A description of the accepted options follows.
  34144. </p>
  34145. <dl compact="compact">
  34146. <dt>&lsquo;<samp>luma_radius, lr</samp>&rsquo;</dt>
  34147. <dt>&lsquo;<samp>chroma_radius, cr</samp>&rsquo;</dt>
  34148. <dt>&lsquo;<samp>alpha_radius, ar</samp>&rsquo;</dt>
  34149. <dd><p>Set an expression for the box radius in pixels used for blurring the
  34150. corresponding input plane.
  34151. </p>
  34152. <p>The radius value must be a non-negative number, and must not be
  34153. greater than the value of the expression <code>min(w,h)/2</code> for the
  34154. luma and alpha planes, and of <code>min(cw,ch)/2</code> for the chroma
  34155. planes.
  34156. </p>
  34157. <p>Default value for &lsquo;<samp>luma_radius</samp>&rsquo; is &quot;2&quot;. If not specified,
  34158. &lsquo;<samp>chroma_radius</samp>&rsquo; and &lsquo;<samp>alpha_radius</samp>&rsquo; default to the
  34159. corresponding value set for &lsquo;<samp>luma_radius</samp>&rsquo;.
  34160. </p>
  34161. <p>The expressions can contain the following constants:
  34162. </p><dl compact="compact">
  34163. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  34164. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  34165. <dd><p>The input width and height in pixels.
  34166. </p>
  34167. </dd>
  34168. <dt>&lsquo;<samp>cw</samp>&rsquo;</dt>
  34169. <dt>&lsquo;<samp>ch</samp>&rsquo;</dt>
  34170. <dd><p>The input chroma image width and height in pixels.
  34171. </p>
  34172. </dd>
  34173. <dt>&lsquo;<samp>hsub</samp>&rsquo;</dt>
  34174. <dt>&lsquo;<samp>vsub</samp>&rsquo;</dt>
  34175. <dd><p>The horizontal and vertical chroma subsample values. For example, for the
  34176. pixel format &quot;yuv422p&quot;, <var>hsub</var> is 2 and <var>vsub</var> is 1.
  34177. </p></dd>
  34178. </dl>
  34179. </dd>
  34180. <dt>&lsquo;<samp>luma_power, lp</samp>&rsquo;</dt>
  34181. <dt>&lsquo;<samp>chroma_power, cp</samp>&rsquo;</dt>
  34182. <dt>&lsquo;<samp>alpha_power, ap</samp>&rsquo;</dt>
  34183. <dd><p>Specify how many times the boxblur filter is applied to the
  34184. corresponding plane.
  34185. </p>
  34186. <p>Default value for &lsquo;<samp>luma_power</samp>&rsquo; is 2. If not specified,
  34187. &lsquo;<samp>chroma_power</samp>&rsquo; and &lsquo;<samp>alpha_power</samp>&rsquo; default to the
  34188. corresponding value set for &lsquo;<samp>luma_power</samp>&rsquo;.
  34189. </p>
  34190. <p>A value of 0 will disable the effect.
  34191. </p></dd>
  34192. </dl>
  34193. <a name="Examples-128"></a>
  34194. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-128">33.2.1 Examples</a></h3>
  34195. <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.
  34196. </p>
  34197. <ul>
  34198. <li>
  34199. Apply a boxblur filter with the luma, chroma, and alpha radius
  34200. 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.
  34201. <div class="example">
  34202. <pre class="example">-i INPUT -vf &quot;hwupload, boxblur_opencl=luma_radius=2:luma_power=3, hwdownload&quot; OUTPUT
  34203. -i INPUT -vf &quot;hwupload, boxblur_opencl=2:3, hwdownload&quot; OUTPUT
  34204. </pre></div>
  34205. </li><li>
  34206. 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.
  34207. <p>For the luma plane, a 2x2 box radius will be run once.
  34208. </p>
  34209. <p>For the chroma plane, a 4x4 box radius will be run 5 times.
  34210. </p>
  34211. <p>For the alpha plane, a 3x3 box radius will be run 7 times.
  34212. </p><div class="example">
  34213. <pre class="example">-i INPUT -vf &quot;hwupload, boxblur_opencl=2:1:4:5:3:7, hwdownload&quot; OUTPUT
  34214. </pre></div>
  34215. </li></ul>
  34216. <a name="colorkey_005fopencl"></a>
  34217. <h2 class="section"><a href="ffprobe-all.html#toc-colorkey_005fopencl">33.3 colorkey_opencl</a></h2>
  34218. <p>RGB colorspace color keying.
  34219. </p>
  34220. <p>The filter accepts the following options:
  34221. </p>
  34222. <dl compact="compact">
  34223. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  34224. <dd><p>The color which will be replaced with transparency.
  34225. </p>
  34226. </dd>
  34227. <dt>&lsquo;<samp>similarity</samp>&rsquo;</dt>
  34228. <dd><p>Similarity percentage with the key color.
  34229. </p>
  34230. <p>0.01 matches only the exact key color, while 1.0 matches everything.
  34231. </p>
  34232. </dd>
  34233. <dt>&lsquo;<samp>blend</samp>&rsquo;</dt>
  34234. <dd><p>Blend percentage.
  34235. </p>
  34236. <p>0.0 makes pixels either fully transparent, or not transparent at all.
  34237. </p>
  34238. <p>Higher values result in semi-transparent pixels, with a higher transparency
  34239. the more similar the pixels color is to the key color.
  34240. </p></dd>
  34241. </dl>
  34242. <a name="Examples-127"></a>
  34243. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-127">33.3.1 Examples</a></h3>
  34244. <ul>
  34245. <li>
  34246. Make every semi-green pixel in the input transparent with some slight blending:
  34247. <div class="example">
  34248. <pre class="example">-i INPUT -vf &quot;hwupload, colorkey_opencl=green:0.3:0.1, hwdownload&quot; OUTPUT
  34249. </pre></div>
  34250. </li></ul>
  34251. <a name="convolution_005fopencl"></a>
  34252. <h2 class="section"><a href="ffprobe-all.html#toc-convolution_005fopencl">33.4 convolution_opencl</a></h2>
  34253. <p>Apply convolution of 3x3, 5x5, 7x7 matrix.
  34254. </p>
  34255. <p>The filter accepts the following options:
  34256. </p>
  34257. <dl compact="compact">
  34258. <dt>&lsquo;<samp>0m</samp>&rsquo;</dt>
  34259. <dt>&lsquo;<samp>1m</samp>&rsquo;</dt>
  34260. <dt>&lsquo;<samp>2m</samp>&rsquo;</dt>
  34261. <dt>&lsquo;<samp>3m</samp>&rsquo;</dt>
  34262. <dd><p>Set matrix for each plane.
  34263. Matrix is sequence of 9, 25 or 49 signed numbers.
  34264. Default value for each plane is <code>0 0 0 0 1 0 0 0 0</code>.
  34265. </p>
  34266. </dd>
  34267. <dt>&lsquo;<samp>0rdiv</samp>&rsquo;</dt>
  34268. <dt>&lsquo;<samp>1rdiv</samp>&rsquo;</dt>
  34269. <dt>&lsquo;<samp>2rdiv</samp>&rsquo;</dt>
  34270. <dt>&lsquo;<samp>3rdiv</samp>&rsquo;</dt>
  34271. <dd><p>Set multiplier for calculated value for each plane.
  34272. If unset or 0, it will be sum of all matrix elements.
  34273. The option value must be a float number greater or equal to <code>0.0</code>. Default value is <code>1.0</code>.
  34274. </p>
  34275. </dd>
  34276. <dt>&lsquo;<samp>0bias</samp>&rsquo;</dt>
  34277. <dt>&lsquo;<samp>1bias</samp>&rsquo;</dt>
  34278. <dt>&lsquo;<samp>2bias</samp>&rsquo;</dt>
  34279. <dt>&lsquo;<samp>3bias</samp>&rsquo;</dt>
  34280. <dd><p>Set bias for each plane. This value is added to the result of the multiplication.
  34281. Useful for making the overall image brighter or darker.
  34282. The option value must be a float number greater or equal to <code>0.0</code>. Default value is <code>0.0</code>.
  34283. </p>
  34284. </dd>
  34285. </dl>
  34286. <a name="Examples-79"></a>
  34287. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-79">33.4.1 Examples</a></h3>
  34288. <ul>
  34289. <li>
  34290. Apply sharpen:
  34291. <div class="example">
  34292. <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
  34293. </pre></div>
  34294. </li><li>
  34295. Apply blur:
  34296. <div class="example">
  34297. <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
  34298. </pre></div>
  34299. </li><li>
  34300. Apply edge enhance:
  34301. <div class="example">
  34302. <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
  34303. </pre></div>
  34304. </li><li>
  34305. Apply edge detect:
  34306. <div class="example">
  34307. <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
  34308. </pre></div>
  34309. </li><li>
  34310. Apply laplacian edge detector which includes diagonals:
  34311. <div class="example">
  34312. <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
  34313. </pre></div>
  34314. </li><li>
  34315. Apply emboss:
  34316. <div class="example">
  34317. <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
  34318. </pre></div>
  34319. </li></ul>
  34320. <a name="erosion_005fopencl"></a>
  34321. <h2 class="section"><a href="ffprobe-all.html#toc-erosion_005fopencl">33.5 erosion_opencl</a></h2>
  34322. <p>Apply erosion effect to the video.
  34323. </p>
  34324. <p>This filter replaces the pixel by the local(3x3) minimum.
  34325. </p>
  34326. <p>It accepts the following options:
  34327. </p>
  34328. <dl compact="compact">
  34329. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  34330. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  34331. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  34332. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  34333. <dd><p>Limit the maximum change for each plane. Range is <code>[0, 65535]</code> and default value is <code>65535</code>.
  34334. If <code>0</code>, plane will remain unchanged.
  34335. </p>
  34336. </dd>
  34337. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  34338. <dd><p>Flag which specifies the pixel to refer to.
  34339. Range is <code>[0, 255]</code> and default value is <code>255</code>, i.e. all eight pixels are used.
  34340. </p>
  34341. <p>Flags to local 3x3 coordinates region centered on <code>x</code>:
  34342. </p>
  34343. <p> 1 2 3
  34344. </p>
  34345. <p> 4 x 5
  34346. </p>
  34347. <p> 6 7 8
  34348. </p></dd>
  34349. </dl>
  34350. <a name="Example"></a>
  34351. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example">33.5.1 Example</a></h3>
  34352. <ul>
  34353. <li>
  34354. 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.
  34355. <div class="example">
  34356. <pre class="example">-i INPUT -vf &quot;hwupload, erosion_opencl=30:40:50:coordinates=231, hwdownload&quot; OUTPUT
  34357. </pre></div>
  34358. </li></ul>
  34359. <a name="deshake_005fopencl"></a>
  34360. <h2 class="section"><a href="ffprobe-all.html#toc-deshake_005fopencl">33.6 deshake_opencl</a></h2>
  34361. <p>Feature-point based video stabilization filter.
  34362. </p>
  34363. <p>The filter accepts the following options:
  34364. </p>
  34365. <dl compact="compact">
  34366. <dt>&lsquo;<samp>tripod</samp>&rsquo;</dt>
  34367. <dd><p>Simulates a tripod by preventing any camera movement whatsoever from the original frame. Defaults to <code>0</code>.
  34368. </p>
  34369. </dd>
  34370. <dt>&lsquo;<samp>debug</samp>&rsquo;</dt>
  34371. <dd><p>Whether or not additional debug info should be displayed, both in the processed output and in the console.
  34372. </p>
  34373. <p>Note that in order to see console debug output you will also need to pass <code>-v verbose</code> to ffmpeg.
  34374. </p>
  34375. <p>Viewing point matches in the output video is only supported for RGB input.
  34376. </p>
  34377. <p>Defaults to <code>0</code>.
  34378. </p>
  34379. </dd>
  34380. <dt>&lsquo;<samp>adaptive_crop</samp>&rsquo;</dt>
  34381. <dd><p>Whether or not to do a tiny bit of cropping at the borders to cut down on the amount of mirrored pixels.
  34382. </p>
  34383. <p>Defaults to <code>1</code>.
  34384. </p>
  34385. </dd>
  34386. <dt>&lsquo;<samp>refine_features</samp>&rsquo;</dt>
  34387. <dd><p>Whether or not feature points should be refined at a sub-pixel level.
  34388. </p>
  34389. <p>This can be turned off for a slight performance gain at the cost of precision.
  34390. </p>
  34391. <p>Defaults to <code>1</code>.
  34392. </p>
  34393. </dd>
  34394. <dt>&lsquo;<samp>smooth_strength</samp>&rsquo;</dt>
  34395. <dd><p>The strength of the smoothing applied to the camera path from <code>0.0</code> to <code>1.0</code>.
  34396. </p>
  34397. <p><code>1.0</code> is the maximum smoothing strength while values less than that result in less smoothing.
  34398. </p>
  34399. <p><code>0.0</code> causes the filter to adaptively choose a smoothing strength on a per-frame basis.
  34400. </p>
  34401. <p>Defaults to <code>0.0</code>.
  34402. </p>
  34403. </dd>
  34404. <dt>&lsquo;<samp>smooth_window_multiplier</samp>&rsquo;</dt>
  34405. <dd><p>Controls the size of the smoothing window (the number of frames buffered to determine motion information from).
  34406. </p>
  34407. <p>The size of the smoothing window is determined by multiplying the framerate of the video by this number.
  34408. </p>
  34409. <p>Acceptable values range from <code>0.1</code> to <code>10.0</code>.
  34410. </p>
  34411. <p>Larger values increase the amount of motion data available for determining how to smooth the camera path,
  34412. potentially improving smoothness, but also increase latency and memory usage.
  34413. </p>
  34414. <p>Defaults to <code>2.0</code>.
  34415. </p>
  34416. </dd>
  34417. </dl>
  34418. <a name="Examples-66"></a>
  34419. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-66">33.6.1 Examples</a></h3>
  34420. <ul>
  34421. <li>
  34422. Stabilize a video with a fixed, medium smoothing strength:
  34423. <div class="example">
  34424. <pre class="example">-i INPUT -vf &quot;hwupload, deshake_opencl=smooth_strength=0.5, hwdownload&quot; OUTPUT
  34425. </pre></div>
  34426. </li><li>
  34427. Stabilize a video with debugging (both in console and in rendered video):
  34428. <div class="example">
  34429. <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
  34430. </pre></div>
  34431. </li></ul>
  34432. <a name="dilation_005fopencl"></a>
  34433. <h2 class="section"><a href="ffprobe-all.html#toc-dilation_005fopencl">33.7 dilation_opencl</a></h2>
  34434. <p>Apply dilation effect to the video.
  34435. </p>
  34436. <p>This filter replaces the pixel by the local(3x3) maximum.
  34437. </p>
  34438. <p>It accepts the following options:
  34439. </p>
  34440. <dl compact="compact">
  34441. <dt>&lsquo;<samp>threshold0</samp>&rsquo;</dt>
  34442. <dt>&lsquo;<samp>threshold1</samp>&rsquo;</dt>
  34443. <dt>&lsquo;<samp>threshold2</samp>&rsquo;</dt>
  34444. <dt>&lsquo;<samp>threshold3</samp>&rsquo;</dt>
  34445. <dd><p>Limit the maximum change for each plane. Range is <code>[0, 65535]</code> and default value is <code>65535</code>.
  34446. If <code>0</code>, plane will remain unchanged.
  34447. </p>
  34448. </dd>
  34449. <dt>&lsquo;<samp>coordinates</samp>&rsquo;</dt>
  34450. <dd><p>Flag which specifies the pixel to refer to.
  34451. Range is <code>[0, 255]</code> and default value is <code>255</code>, i.e. all eight pixels are used.
  34452. </p>
  34453. <p>Flags to local 3x3 coordinates region centered on <code>x</code>:
  34454. </p>
  34455. <p> 1 2 3
  34456. </p>
  34457. <p> 4 x 5
  34458. </p>
  34459. <p> 6 7 8
  34460. </p></dd>
  34461. </dl>
  34462. <a name="Example-1"></a>
  34463. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-1">33.7.1 Example</a></h3>
  34464. <ul>
  34465. <li>
  34466. 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.
  34467. <div class="example">
  34468. <pre class="example">-i INPUT -vf &quot;hwupload, dilation_opencl=30:40:50:coordinates=231, hwdownload&quot; OUTPUT
  34469. </pre></div>
  34470. </li></ul>
  34471. <a name="nlmeans_005fopencl"></a>
  34472. <h2 class="section"><a href="ffprobe-all.html#toc-nlmeans_005fopencl">33.8 nlmeans_opencl</a></h2>
  34473. <p>Non-local Means denoise filter through OpenCL, this filter accepts same options as <a href="#nlmeans">nlmeans</a>.
  34474. </p>
  34475. <a name="overlay_005fopencl"></a>
  34476. <h2 class="section"><a href="ffprobe-all.html#toc-overlay_005fopencl">33.9 overlay_opencl</a></h2>
  34477. <p>Overlay one video on top of another.
  34478. </p>
  34479. <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.
  34480. This filter requires same memory layout for all the inputs. So, format conversion may be needed.
  34481. </p>
  34482. <p>The filter accepts the following options:
  34483. </p>
  34484. <dl compact="compact">
  34485. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34486. <dd><p>Set the x coordinate of the overlaid video on the main video.
  34487. Default value is <code>0</code>.
  34488. </p>
  34489. </dd>
  34490. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34491. <dd><p>Set the y coordinate of the overlaid video on the main video.
  34492. Default value is <code>0</code>.
  34493. </p>
  34494. </dd>
  34495. </dl>
  34496. <a name="Examples-118"></a>
  34497. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-118">33.9.1 Examples</a></h3>
  34498. <ul>
  34499. <li>
  34500. Overlay an image LOGO at the top-left corner of the INPUT video. Both inputs are yuv420p format.
  34501. <div class="example">
  34502. <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
  34503. </pre></div>
  34504. </li><li>
  34505. The inputs have same memory layout for color channels , the overlay has additional alpha plane, like INPUT is yuv420p, and the LOGO is yuva420p.
  34506. <div class="example">
  34507. <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
  34508. </pre></div>
  34509. </li></ul>
  34510. <a name="pad_005fopencl"></a>
  34511. <h2 class="section"><a href="ffprobe-all.html#toc-pad_005fopencl">33.10 pad_opencl</a></h2>
  34512. <p>Add paddings to the input image, and place the original input at the
  34513. provided <var>x</var>, <var>y</var> coordinates.
  34514. </p>
  34515. <p>It accepts the following options:
  34516. </p>
  34517. <dl compact="compact">
  34518. <dt>&lsquo;<samp>width, w</samp>&rsquo;</dt>
  34519. <dt>&lsquo;<samp>height, h</samp>&rsquo;</dt>
  34520. <dd><p>Specify an expression for the size of the output image with the
  34521. paddings added. If the value for <var>width</var> or <var>height</var> is 0, the
  34522. corresponding input size is used for the output.
  34523. </p>
  34524. <p>The <var>width</var> expression can reference the value set by the
  34525. <var>height</var> expression, and vice versa.
  34526. </p>
  34527. <p>The default value of <var>width</var> and <var>height</var> is 0.
  34528. </p>
  34529. </dd>
  34530. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34531. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34532. <dd><p>Specify the offsets to place the input image at within the padded area,
  34533. with respect to the top/left border of the output image.
  34534. </p>
  34535. <p>The <var>x</var> expression can reference the value set by the <var>y</var>
  34536. expression, and vice versa.
  34537. </p>
  34538. <p>The default value of <var>x</var> and <var>y</var> is 0.
  34539. </p>
  34540. <p>If <var>x</var> or <var>y</var> evaluate to a negative number, they&rsquo;ll be changed
  34541. so the input image is centered on the padded area.
  34542. </p>
  34543. </dd>
  34544. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  34545. <dd><p>Specify the color of the padded area. For the syntax of this option,
  34546. check the <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  34547. </p>
  34548. </dd>
  34549. <dt>&lsquo;<samp>aspect</samp>&rsquo;</dt>
  34550. <dd><p>Pad to an aspect instead to a resolution.
  34551. </p></dd>
  34552. </dl>
  34553. <p>The value for the <var>width</var>, <var>height</var>, <var>x</var>, and <var>y</var>
  34554. options are expressions containing the following constants:
  34555. </p>
  34556. <dl compact="compact">
  34557. <dt>&lsquo;<samp>in_w</samp>&rsquo;</dt>
  34558. <dt>&lsquo;<samp>in_h</samp>&rsquo;</dt>
  34559. <dd><p>The input video width and height.
  34560. </p>
  34561. </dd>
  34562. <dt>&lsquo;<samp>iw</samp>&rsquo;</dt>
  34563. <dt>&lsquo;<samp>ih</samp>&rsquo;</dt>
  34564. <dd><p>These are the same as <var>in_w</var> and <var>in_h</var>.
  34565. </p>
  34566. </dd>
  34567. <dt>&lsquo;<samp>out_w</samp>&rsquo;</dt>
  34568. <dt>&lsquo;<samp>out_h</samp>&rsquo;</dt>
  34569. <dd><p>The output width and height (the size of the padded area), as
  34570. specified by the <var>width</var> and <var>height</var> expressions.
  34571. </p>
  34572. </dd>
  34573. <dt>&lsquo;<samp>ow</samp>&rsquo;</dt>
  34574. <dt>&lsquo;<samp>oh</samp>&rsquo;</dt>
  34575. <dd><p>These are the same as <var>out_w</var> and <var>out_h</var>.
  34576. </p>
  34577. </dd>
  34578. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  34579. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  34580. <dd><p>The x and y offsets as specified by the <var>x</var> and <var>y</var>
  34581. expressions, or NAN if not yet specified.
  34582. </p>
  34583. </dd>
  34584. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  34585. <dd><p>same as <var>iw</var> / <var>ih</var>
  34586. </p>
  34587. </dd>
  34588. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  34589. <dd><p>input sample aspect ratio
  34590. </p>
  34591. </dd>
  34592. <dt>&lsquo;<samp>dar</samp>&rsquo;</dt>
  34593. <dd><p>input display aspect ratio, it is the same as (<var>iw</var> / <var>ih</var>) * <var>sar</var>
  34594. </p></dd>
  34595. </dl>
  34596. <a name="prewitt_005fopencl"></a>
  34597. <h2 class="section"><a href="ffprobe-all.html#toc-prewitt_005fopencl">33.11 prewitt_opencl</a></h2>
  34598. <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.
  34599. </p>
  34600. <p>The filter accepts the following option:
  34601. </p>
  34602. <dl compact="compact">
  34603. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  34604. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  34605. </p>
  34606. </dd>
  34607. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  34608. <dd><p>Set value which will be multiplied with filtered result.
  34609. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  34610. </p>
  34611. </dd>
  34612. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  34613. <dd><p>Set value which will be added to filtered result.
  34614. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  34615. </p></dd>
  34616. </dl>
  34617. <a name="Example-2"></a>
  34618. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-2">33.11.1 Example</a></h3>
  34619. <ul>
  34620. <li>
  34621. Apply the Prewitt operator with scale set to 2 and delta set to 10.
  34622. <div class="example">
  34623. <pre class="example">-i INPUT -vf &quot;hwupload, prewitt_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  34624. </pre></div>
  34625. </li></ul>
  34626. <p><a name="program_005fopencl"></a>
  34627. </p><a name="program_005fopencl-1"></a>
  34628. <h2 class="section"><a href="ffprobe-all.html#toc-program_005fopencl-1">33.12 program_opencl</a></h2>
  34629. <p>Filter video using an OpenCL program.
  34630. </p>
  34631. <dl compact="compact">
  34632. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  34633. <dd><p>OpenCL program source file.
  34634. </p>
  34635. </dd>
  34636. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  34637. <dd><p>Kernel name in program.
  34638. </p>
  34639. </dd>
  34640. <dt>&lsquo;<samp>inputs</samp>&rsquo;</dt>
  34641. <dd><p>Number of inputs to the filter. Defaults to 1.
  34642. </p>
  34643. </dd>
  34644. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  34645. <dd><p>Size of output frames. Defaults to the same as the first input.
  34646. </p>
  34647. </dd>
  34648. </dl>
  34649. <p>The <code>program_opencl</code> filter also supports the <a href="#framesync">framesync</a> options.
  34650. </p>
  34651. <p>The program source file must contain a kernel function with the given name,
  34652. which will be run once for each plane of the output. Each run on a plane
  34653. gets enqueued as a separate 2D global NDRange with one work-item for each
  34654. pixel to be generated. The global ID offset for each work-item is therefore
  34655. the coordinates of a pixel in the destination image.
  34656. </p>
  34657. <p>The kernel function needs to take the following arguments:
  34658. </p><ul>
  34659. <li>
  34660. Destination image, <var>__write_only image2d_t</var>.
  34661. <p>This image will become the output; the kernel should write all of it.
  34662. </p></li><li>
  34663. Frame index, <var>unsigned int</var>.
  34664. <p>This is a counter starting from zero and increasing by one for each frame.
  34665. </p></li><li>
  34666. Source images, <var>__read_only image2d_t</var>.
  34667. <p>These are the most recent images on each input. The kernel may read from
  34668. them to generate the output, but they can&rsquo;t be written to.
  34669. </p></li></ul>
  34670. <p>Example programs:
  34671. </p>
  34672. <ul>
  34673. <li>
  34674. Copy the input to the output (output must be the same size as the input).
  34675. <pre class="verbatim">__kernel void copy(__write_only image2d_t destination,
  34676. unsigned int index,
  34677. __read_only image2d_t source)
  34678. {
  34679. const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE;
  34680. int2 location = (int2)(get_global_id(0), get_global_id(1));
  34681. float4 value = read_imagef(source, sampler, location);
  34682. write_imagef(destination, location, value);
  34683. }
  34684. </pre>
  34685. </li><li>
  34686. Apply a simple transformation, rotating the input by an amount increasing
  34687. with the index counter. Pixel values are linearly interpolated by the
  34688. sampler, and the output need not have the same dimensions as the input.
  34689. <pre class="verbatim">__kernel void rotate_image(__write_only image2d_t dst,
  34690. unsigned int index,
  34691. __read_only image2d_t src)
  34692. {
  34693. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  34694. CLK_FILTER_LINEAR);
  34695. float angle = (float)index / 100.0f;
  34696. float2 dst_dim = convert_float2(get_image_dim(dst));
  34697. float2 src_dim = convert_float2(get_image_dim(src));
  34698. float2 dst_cen = dst_dim / 2.0f;
  34699. float2 src_cen = src_dim / 2.0f;
  34700. int2 dst_loc = (int2)(get_global_id(0), get_global_id(1));
  34701. float2 dst_pos = convert_float2(dst_loc) - dst_cen;
  34702. float2 src_pos = {
  34703. cos(angle) * dst_pos.x - sin(angle) * dst_pos.y,
  34704. sin(angle) * dst_pos.x + cos(angle) * dst_pos.y
  34705. };
  34706. src_pos = src_pos * src_dim / dst_dim;
  34707. float2 src_loc = src_pos + src_cen;
  34708. if (src_loc.x &lt; 0.0f || src_loc.y &lt; 0.0f ||
  34709. src_loc.x &gt; src_dim.x || src_loc.y &gt; src_dim.y)
  34710. write_imagef(dst, dst_loc, 0.5f);
  34711. else
  34712. write_imagef(dst, dst_loc, read_imagef(src, sampler, src_loc));
  34713. }
  34714. </pre>
  34715. </li><li>
  34716. Blend two inputs together, with the amount of each input used varying
  34717. with the index counter.
  34718. <pre class="verbatim">__kernel void blend_images(__write_only image2d_t dst,
  34719. unsigned int index,
  34720. __read_only image2d_t src1,
  34721. __read_only image2d_t src2)
  34722. {
  34723. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  34724. CLK_FILTER_LINEAR);
  34725. float blend = (cos((float)index / 50.0f) + 1.0f) / 2.0f;
  34726. int2 dst_loc = (int2)(get_global_id(0), get_global_id(1));
  34727. int2 src1_loc = dst_loc * get_image_dim(src1) / get_image_dim(dst);
  34728. int2 src2_loc = dst_loc * get_image_dim(src2) / get_image_dim(dst);
  34729. float4 val1 = read_imagef(src1, sampler, src1_loc);
  34730. float4 val2 = read_imagef(src2, sampler, src2_loc);
  34731. write_imagef(dst, dst_loc, val1 * blend + val2 * (1.0f - blend));
  34732. }
  34733. </pre>
  34734. </li></ul>
  34735. <a name="roberts_005fopencl"></a>
  34736. <h2 class="section"><a href="ffprobe-all.html#toc-roberts_005fopencl">33.13 roberts_opencl</a></h2>
  34737. <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.
  34738. </p>
  34739. <p>The filter accepts the following option:
  34740. </p>
  34741. <dl compact="compact">
  34742. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  34743. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  34744. </p>
  34745. </dd>
  34746. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  34747. <dd><p>Set value which will be multiplied with filtered result.
  34748. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  34749. </p>
  34750. </dd>
  34751. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  34752. <dd><p>Set value which will be added to filtered result.
  34753. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  34754. </p></dd>
  34755. </dl>
  34756. <a name="Example-4"></a>
  34757. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-4">33.13.1 Example</a></h3>
  34758. <ul>
  34759. <li>
  34760. Apply the Roberts cross operator with scale set to 2 and delta set to 10
  34761. <div class="example">
  34762. <pre class="example">-i INPUT -vf &quot;hwupload, roberts_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  34763. </pre></div>
  34764. </li></ul>
  34765. <a name="sobel_005fopencl"></a>
  34766. <h2 class="section"><a href="ffprobe-all.html#toc-sobel_005fopencl">33.14 sobel_opencl</a></h2>
  34767. <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.
  34768. </p>
  34769. <p>The filter accepts the following option:
  34770. </p>
  34771. <dl compact="compact">
  34772. <dt>&lsquo;<samp>planes</samp>&rsquo;</dt>
  34773. <dd><p>Set which planes to filter. Default value is <code>0xf</code>, by which all planes are processed.
  34774. </p>
  34775. </dd>
  34776. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  34777. <dd><p>Set value which will be multiplied with filtered result.
  34778. Range is <code>[0.0, 65535]</code> and default value is <code>1.0</code>.
  34779. </p>
  34780. </dd>
  34781. <dt>&lsquo;<samp>delta</samp>&rsquo;</dt>
  34782. <dd><p>Set value which will be added to filtered result.
  34783. Range is <code>[-65535, 65535]</code> and default value is <code>0.0</code>.
  34784. </p></dd>
  34785. </dl>
  34786. <a name="Example-5"></a>
  34787. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-5">33.14.1 Example</a></h3>
  34788. <ul>
  34789. <li>
  34790. Apply sobel operator with scale set to 2 and delta set to 10
  34791. <div class="example">
  34792. <pre class="example">-i INPUT -vf &quot;hwupload, sobel_opencl=scale=2:delta=10, hwdownload&quot; OUTPUT
  34793. </pre></div>
  34794. </li></ul>
  34795. <a name="tonemap_005fopencl"></a>
  34796. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap_005fopencl">33.15 tonemap_opencl</a></h2>
  34797. <p>Perform HDR(PQ/HLG) to SDR conversion with tone-mapping.
  34798. </p>
  34799. <p>It accepts the following parameters:
  34800. </p>
  34801. <dl compact="compact">
  34802. <dt>&lsquo;<samp>tonemap</samp>&rsquo;</dt>
  34803. <dd><p>Specify the tone-mapping operator to be used. Same as tonemap option in <a href="#tonemap">tonemap</a>.
  34804. </p>
  34805. </dd>
  34806. <dt>&lsquo;<samp>param</samp>&rsquo;</dt>
  34807. <dd><p>Tune the tone mapping algorithm. same as param option in <a href="#tonemap">tonemap</a>.
  34808. </p>
  34809. </dd>
  34810. <dt>&lsquo;<samp>desat</samp>&rsquo;</dt>
  34811. <dd><p>Apply desaturation for highlights that exceed this level of brightness. The
  34812. higher the parameter, the more color information will be preserved. This
  34813. setting helps prevent unnaturally blown-out colors for super-highlights, by
  34814. (smoothly) turning into white instead. This makes images feel more natural,
  34815. at the cost of reducing information about out-of-range colors.
  34816. </p>
  34817. <p>The default value is 0.5, and the algorithm here is a little different from
  34818. the cpu version tonemap currently. A setting of 0.0 disables this option.
  34819. </p>
  34820. </dd>
  34821. <dt>&lsquo;<samp>threshold</samp>&rsquo;</dt>
  34822. <dd><p>The tonemapping algorithm parameters is fine-tuned per each scene. And a threshold
  34823. is used to detect whether the scene has changed or not. If the distance between
  34824. the current frame average brightness and the current running average exceeds
  34825. a threshold value, we would re-calculate scene average and peak brightness.
  34826. The default value is 0.2.
  34827. </p>
  34828. </dd>
  34829. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  34830. <dd><p>Specify the output pixel format.
  34831. </p>
  34832. <p>Currently supported formats are:
  34833. </p><dl compact="compact">
  34834. <dt><var>p010</var></dt>
  34835. <dt><var>nv12</var></dt>
  34836. </dl>
  34837. </dd>
  34838. <dt>&lsquo;<samp>range, r</samp>&rsquo;</dt>
  34839. <dd><p>Set the output color range.
  34840. </p>
  34841. <p>Possible values are:
  34842. </p><dl compact="compact">
  34843. <dt><var>tv/mpeg</var></dt>
  34844. <dt><var>pc/jpeg</var></dt>
  34845. </dl>
  34846. <p>Default is same as input.
  34847. </p>
  34848. </dd>
  34849. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  34850. <dd><p>Set the output color primaries.
  34851. </p>
  34852. <p>Possible values are:
  34853. </p><dl compact="compact">
  34854. <dt><var>bt709</var></dt>
  34855. <dt><var>bt2020</var></dt>
  34856. </dl>
  34857. <p>Default is same as input.
  34858. </p>
  34859. </dd>
  34860. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  34861. <dd><p>Set the output transfer characteristics.
  34862. </p>
  34863. <p>Possible values are:
  34864. </p><dl compact="compact">
  34865. <dt><var>bt709</var></dt>
  34866. <dt><var>bt2020</var></dt>
  34867. </dl>
  34868. <p>Default is bt709.
  34869. </p>
  34870. </dd>
  34871. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  34872. <dd><p>Set the output colorspace matrix.
  34873. </p>
  34874. <p>Possible value are:
  34875. </p><dl compact="compact">
  34876. <dt><var>bt709</var></dt>
  34877. <dt><var>bt2020</var></dt>
  34878. </dl>
  34879. <p>Default is same as input.
  34880. </p>
  34881. </dd>
  34882. </dl>
  34883. <a name="Example-6"></a>
  34884. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-6">33.15.1 Example</a></h3>
  34885. <ul>
  34886. <li>
  34887. Convert HDR(PQ/HLG) video to bt2020-transfer-characteristic p010 format using linear operator.
  34888. <div class="example">
  34889. <pre class="example">-i INPUT -vf &quot;format=p010,hwupload,tonemap_opencl=t=bt2020:tonemap=linear:format=p010,hwdownload,format=p010&quot; OUTPUT
  34890. </pre></div>
  34891. </li></ul>
  34892. <a name="unsharp_005fopencl"></a>
  34893. <h2 class="section"><a href="ffprobe-all.html#toc-unsharp_005fopencl">33.16 unsharp_opencl</a></h2>
  34894. <p>Sharpen or blur the input video.
  34895. </p>
  34896. <p>It accepts the following parameters:
  34897. </p>
  34898. <dl compact="compact">
  34899. <dt>&lsquo;<samp>luma_msize_x, lx</samp>&rsquo;</dt>
  34900. <dd><p>Set the luma matrix horizontal size.
  34901. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  34902. </p>
  34903. </dd>
  34904. <dt>&lsquo;<samp>luma_msize_y, ly</samp>&rsquo;</dt>
  34905. <dd><p>Set the luma matrix vertical size.
  34906. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  34907. </p>
  34908. </dd>
  34909. <dt>&lsquo;<samp>luma_amount, la</samp>&rsquo;</dt>
  34910. <dd><p>Set the luma effect strength.
  34911. Range is <code>[-10, 10]</code> and default value is <code>1.0</code>.
  34912. </p>
  34913. <p>Negative values will blur the input video, while positive values will
  34914. sharpen it, a value of zero will disable the effect.
  34915. </p>
  34916. </dd>
  34917. <dt>&lsquo;<samp>chroma_msize_x, cx</samp>&rsquo;</dt>
  34918. <dd><p>Set the chroma matrix horizontal size.
  34919. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  34920. </p>
  34921. </dd>
  34922. <dt>&lsquo;<samp>chroma_msize_y, cy</samp>&rsquo;</dt>
  34923. <dd><p>Set the chroma matrix vertical size.
  34924. Range is <code>[1, 23]</code> and default value is <code>5</code>.
  34925. </p>
  34926. </dd>
  34927. <dt>&lsquo;<samp>chroma_amount, ca</samp>&rsquo;</dt>
  34928. <dd><p>Set the chroma effect strength.
  34929. Range is <code>[-10, 10]</code> and default value is <code>0.0</code>.
  34930. </p>
  34931. <p>Negative values will blur the input video, while positive values will
  34932. sharpen it, a value of zero will disable the effect.
  34933. </p>
  34934. </dd>
  34935. </dl>
  34936. <p>All parameters are optional and default to the equivalent of the
  34937. string &rsquo;5:5:1.0:5:5:0.0&rsquo;.
  34938. </p>
  34939. <a name="Examples-1"></a>
  34940. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-1">33.16.1 Examples</a></h3>
  34941. <ul>
  34942. <li>
  34943. Apply strong luma sharpen effect:
  34944. <div class="example">
  34945. <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
  34946. </pre></div>
  34947. </li><li>
  34948. Apply a strong blur of both luma and chroma parameters:
  34949. <div class="example">
  34950. <pre class="example">-i INPUT -vf &quot;hwupload, unsharp_opencl=7:7:-2:7:7:-2, hwdownload&quot; OUTPUT
  34951. </pre></div>
  34952. </li></ul>
  34953. <a name="xfade_005fopencl"></a>
  34954. <h2 class="section"><a href="ffprobe-all.html#toc-xfade_005fopencl">33.17 xfade_opencl</a></h2>
  34955. <p>Cross fade two videos with custom transition effect by using OpenCL.
  34956. </p>
  34957. <p>It accepts the following options:
  34958. </p>
  34959. <dl compact="compact">
  34960. <dt>&lsquo;<samp>transition</samp>&rsquo;</dt>
  34961. <dd><p>Set one of possible transition effects.
  34962. </p>
  34963. <dl compact="compact">
  34964. <dt>&lsquo;<samp>custom</samp>&rsquo;</dt>
  34965. <dd><p>Select custom transition effect, the actual transition description
  34966. will be picked from source and kernel options.
  34967. </p>
  34968. </dd>
  34969. <dt>&lsquo;<samp>fade</samp>&rsquo;</dt>
  34970. <dt>&lsquo;<samp>wipeleft</samp>&rsquo;</dt>
  34971. <dt>&lsquo;<samp>wiperight</samp>&rsquo;</dt>
  34972. <dt>&lsquo;<samp>wipeup</samp>&rsquo;</dt>
  34973. <dt>&lsquo;<samp>wipedown</samp>&rsquo;</dt>
  34974. <dt>&lsquo;<samp>slideleft</samp>&rsquo;</dt>
  34975. <dt>&lsquo;<samp>slideright</samp>&rsquo;</dt>
  34976. <dt>&lsquo;<samp>slideup</samp>&rsquo;</dt>
  34977. <dt>&lsquo;<samp>slidedown</samp>&rsquo;</dt>
  34978. <dd>
  34979. <p>Default transition is fade.
  34980. </p></dd>
  34981. </dl>
  34982. </dd>
  34983. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  34984. <dd><p>OpenCL program source file for custom transition.
  34985. </p>
  34986. </dd>
  34987. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  34988. <dd><p>Set name of kernel to use for custom transition from program source file.
  34989. </p>
  34990. </dd>
  34991. <dt>&lsquo;<samp>duration</samp>&rsquo;</dt>
  34992. <dd><p>Set duration of video transition.
  34993. </p>
  34994. </dd>
  34995. <dt>&lsquo;<samp>offset</samp>&rsquo;</dt>
  34996. <dd><p>Set time of start of transition relative to first video.
  34997. </p></dd>
  34998. </dl>
  34999. <p>The program source file must contain a kernel function with the given name,
  35000. which will be run once for each plane of the output. Each run on a plane
  35001. gets enqueued as a separate 2D global NDRange with one work-item for each
  35002. pixel to be generated. The global ID offset for each work-item is therefore
  35003. the coordinates of a pixel in the destination image.
  35004. </p>
  35005. <p>The kernel function needs to take the following arguments:
  35006. </p><ul>
  35007. <li>
  35008. Destination image, <var>__write_only image2d_t</var>.
  35009. <p>This image will become the output; the kernel should write all of it.
  35010. </p>
  35011. </li><li>
  35012. First Source image, <var>__read_only image2d_t</var>.
  35013. Second Source image, <var>__read_only image2d_t</var>.
  35014. <p>These are the most recent images on each input. The kernel may read from
  35015. them to generate the output, but they can&rsquo;t be written to.
  35016. </p>
  35017. </li><li>
  35018. Transition progress, <var>float</var>. This value is always between 0 and 1 inclusive.
  35019. </li></ul>
  35020. <p>Example programs:
  35021. </p>
  35022. <ul>
  35023. <li>
  35024. Apply dots curtain transition effect:
  35025. <pre class="verbatim">__kernel void blend_images(__write_only image2d_t dst,
  35026. __read_only image2d_t src1,
  35027. __read_only image2d_t src2,
  35028. float progress)
  35029. {
  35030. const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
  35031. CLK_FILTER_LINEAR);
  35032. int2 p = (int2)(get_global_id(0), get_global_id(1));
  35033. float2 rp = (float2)(get_global_id(0), get_global_id(1));
  35034. float2 dim = (float2)(get_image_dim(src1).x, get_image_dim(src1).y);
  35035. rp = rp / dim;
  35036. float2 dots = (float2)(20.0, 20.0);
  35037. float2 center = (float2)(0,0);
  35038. float2 unused;
  35039. float4 val1 = read_imagef(src1, sampler, p);
  35040. float4 val2 = read_imagef(src2, sampler, p);
  35041. bool next = distance(fract(rp * dots, &amp;unused), (float2)(0.5, 0.5)) &lt; (progress / distance(rp, center));
  35042. write_imagef(dst, p, next ? val1 : val2);
  35043. }
  35044. </pre>
  35045. </li></ul>
  35046. <a name="VAAPI-Video-Filters"></a>
  35047. <h1 class="chapter"><a href="ffprobe-all.html#toc-VAAPI-Video-Filters">34 VAAPI Video Filters</a></h1>
  35048. <p>VAAPI Video filters are usually used with VAAPI decoder and VAAPI encoder. Below is a description of VAAPI video filters.
  35049. </p>
  35050. <p>To enable compilation of these filters you need to configure FFmpeg with
  35051. <code>--enable-vaapi</code>.
  35052. </p>
  35053. <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>
  35054. </p>
  35055. <a name="tonemap_005fvaapi"></a>
  35056. <h2 class="section"><a href="ffprobe-all.html#toc-tonemap_005fvaapi">34.1 tonemap_vaapi</a></h2>
  35057. <p>Perform HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping.
  35058. It maps the dynamic range of HDR10 content to the SDR content.
  35059. It currently only accepts HDR10 as input.
  35060. </p>
  35061. <p>It accepts the following parameters:
  35062. </p>
  35063. <dl compact="compact">
  35064. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  35065. <dd><p>Specify the output pixel format.
  35066. </p>
  35067. <p>Currently supported formats are:
  35068. </p><dl compact="compact">
  35069. <dt><var>p010</var></dt>
  35070. <dt><var>nv12</var></dt>
  35071. </dl>
  35072. <p>Default is nv12.
  35073. </p>
  35074. </dd>
  35075. <dt>&lsquo;<samp>primaries, p</samp>&rsquo;</dt>
  35076. <dd><p>Set the output color primaries.
  35077. </p>
  35078. <p>Default is same as input.
  35079. </p>
  35080. </dd>
  35081. <dt>&lsquo;<samp>transfer, t</samp>&rsquo;</dt>
  35082. <dd><p>Set the output transfer characteristics.
  35083. </p>
  35084. <p>Default is bt709.
  35085. </p>
  35086. </dd>
  35087. <dt>&lsquo;<samp>matrix, m</samp>&rsquo;</dt>
  35088. <dd><p>Set the output colorspace matrix.
  35089. </p>
  35090. <p>Default is same as input.
  35091. </p>
  35092. </dd>
  35093. </dl>
  35094. <a name="Example-7"></a>
  35095. <h3 class="subsection"><a href="ffprobe-all.html#toc-Example-7">34.1.1 Example</a></h3>
  35096. <ul>
  35097. <li>
  35098. Convert HDR(HDR10) video to bt2020-transfer-characteristic p010 format
  35099. <div class="example">
  35100. <pre class="example">tonemap_vaapi=format=p010:t=bt2020-10
  35101. </pre></div>
  35102. </li></ul>
  35103. <a name="Video-Sources"></a>
  35104. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Sources">35 Video Sources</a></h1>
  35105. <p>Below is a description of the currently available video sources.
  35106. </p>
  35107. <a name="buffer"></a>
  35108. <h2 class="section"><a href="ffprobe-all.html#toc-buffer">35.1 buffer</a></h2>
  35109. <p>Buffer video frames, and make them available to the filter chain.
  35110. </p>
  35111. <p>This source is mainly intended for a programmatic use, in particular
  35112. through the interface defined in &lsquo;<tt>libavfilter/vsrc_buffer.h</tt>&rsquo;.
  35113. </p>
  35114. <p>It accepts the following parameters:
  35115. </p>
  35116. <dl compact="compact">
  35117. <dt>&lsquo;<samp>video_size</samp>&rsquo;</dt>
  35118. <dd><p>Specify the size (width and height) of the buffered video frames. For the
  35119. syntax of this option, check the
  35120. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35121. </p>
  35122. </dd>
  35123. <dt>&lsquo;<samp>width</samp>&rsquo;</dt>
  35124. <dd><p>The input video width.
  35125. </p>
  35126. </dd>
  35127. <dt>&lsquo;<samp>height</samp>&rsquo;</dt>
  35128. <dd><p>The input video height.
  35129. </p>
  35130. </dd>
  35131. <dt>&lsquo;<samp>pix_fmt</samp>&rsquo;</dt>
  35132. <dd><p>A string representing the pixel format of the buffered video frames.
  35133. It may be a number corresponding to a pixel format, or a pixel format
  35134. name.
  35135. </p>
  35136. </dd>
  35137. <dt>&lsquo;<samp>time_base</samp>&rsquo;</dt>
  35138. <dd><p>Specify the timebase assumed by the timestamps of the buffered frames.
  35139. </p>
  35140. </dd>
  35141. <dt>&lsquo;<samp>frame_rate</samp>&rsquo;</dt>
  35142. <dd><p>Specify the frame rate expected for the video stream.
  35143. </p>
  35144. </dd>
  35145. <dt>&lsquo;<samp>pixel_aspect, sar</samp>&rsquo;</dt>
  35146. <dd><p>The sample (pixel) aspect ratio of the input video.
  35147. </p>
  35148. </dd>
  35149. <dt>&lsquo;<samp>sws_param</samp>&rsquo;</dt>
  35150. <dd><p>This option is deprecated and ignored. Prepend <code>sws_flags=<var>flags</var>;</code>
  35151. to the filtergraph description to specify swscale flags for automatically
  35152. inserted scalers. See <a href="#Filtergraph-syntax">Filtergraph syntax</a>.
  35153. </p>
  35154. </dd>
  35155. <dt>&lsquo;<samp>hw_frames_ctx</samp>&rsquo;</dt>
  35156. <dd><p>When using a hardware pixel format, this should be a reference to an
  35157. AVHWFramesContext describing input frames.
  35158. </p></dd>
  35159. </dl>
  35160. <p>For example:
  35161. </p><div class="example">
  35162. <pre class="example">buffer=width=320:height=240:pix_fmt=yuv410p:time_base=1/24:sar=1
  35163. </pre></div>
  35164. <p>will instruct the source to accept video frames with size 320x240 and
  35165. with format &quot;yuv410p&quot;, assuming 1/24 as the timestamps timebase and
  35166. square pixels (1:1 sample aspect ratio).
  35167. Since the pixel format with name &quot;yuv410p&quot; corresponds to the number 6
  35168. (check the enum AVPixelFormat definition in &lsquo;<tt>libavutil/pixfmt.h</tt>&rsquo;),
  35169. this example corresponds to:
  35170. </p><div class="example">
  35171. <pre class="example">buffer=size=320x240:pixfmt=6:time_base=1/24:pixel_aspect=1/1
  35172. </pre></div>
  35173. <p>Alternatively, the options can be specified as a flat string, but this
  35174. syntax is deprecated:
  35175. </p>
  35176. <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>
  35177. </p>
  35178. <a name="cellauto"></a>
  35179. <h2 class="section"><a href="ffprobe-all.html#toc-cellauto">35.2 cellauto</a></h2>
  35180. <p>Create a pattern generated by an elementary cellular automaton.
  35181. </p>
  35182. <p>The initial state of the cellular automaton can be defined through the
  35183. &lsquo;<samp>filename</samp>&rsquo; and &lsquo;<samp>pattern</samp>&rsquo; options. If such options are
  35184. not specified an initial state is created randomly.
  35185. </p>
  35186. <p>At each new frame a new row in the video is filled with the result of
  35187. the cellular automaton next generation. The behavior when the whole
  35188. frame is filled is defined by the &lsquo;<samp>scroll</samp>&rsquo; option.
  35189. </p>
  35190. <p>This source accepts the following options:
  35191. </p>
  35192. <dl compact="compact">
  35193. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  35194. <dd><p>Read the initial cellular automaton state, i.e. the starting row, from
  35195. the specified file.
  35196. In the file, each non-whitespace character is considered an alive
  35197. cell, a newline will terminate the row, and further characters in the
  35198. file will be ignored.
  35199. </p>
  35200. </dd>
  35201. <dt>&lsquo;<samp>pattern, p</samp>&rsquo;</dt>
  35202. <dd><p>Read the initial cellular automaton state, i.e. the starting row, from
  35203. the specified string.
  35204. </p>
  35205. <p>Each non-whitespace character in the string is considered an alive
  35206. cell, a newline will terminate the row, and further characters in the
  35207. string will be ignored.
  35208. </p>
  35209. </dd>
  35210. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35211. <dd><p>Set the video rate, that is the number of frames generated per second.
  35212. Default is 25.
  35213. </p>
  35214. </dd>
  35215. <dt>&lsquo;<samp>random_fill_ratio, ratio</samp>&rsquo;</dt>
  35216. <dd><p>Set the random fill ratio for the initial cellular automaton row. It
  35217. is a floating point number value ranging from 0 to 1, defaults to
  35218. 1/PHI.
  35219. </p>
  35220. <p>This option is ignored when a file or a pattern is specified.
  35221. </p>
  35222. </dd>
  35223. <dt>&lsquo;<samp>random_seed, seed</samp>&rsquo;</dt>
  35224. <dd><p>Set the seed for filling randomly the initial row, must be an integer
  35225. included between 0 and UINT32_MAX. If not specified, or if explicitly
  35226. set to -1, the filter will try to use a good random seed on a best
  35227. effort basis.
  35228. </p>
  35229. </dd>
  35230. <dt>&lsquo;<samp>rule</samp>&rsquo;</dt>
  35231. <dd><p>Set the cellular automaton rule, it is a number ranging from 0 to 255.
  35232. Default value is 110.
  35233. </p>
  35234. </dd>
  35235. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35236. <dd><p>Set the size of the output video. For the syntax of this option, check the
  35237. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35238. </p>
  35239. <p>If &lsquo;<samp>filename</samp>&rsquo; or &lsquo;<samp>pattern</samp>&rsquo; is specified, the size is set
  35240. by default to the width of the specified initial state row, and the
  35241. height is set to <var>width</var> * PHI.
  35242. </p>
  35243. <p>If &lsquo;<samp>size</samp>&rsquo; is set, it must contain the width of the specified
  35244. pattern string, and the specified pattern will be centered in the
  35245. larger row.
  35246. </p>
  35247. <p>If a filename or a pattern string is not specified, the size value
  35248. defaults to &quot;320x518&quot; (used for a randomly generated initial state).
  35249. </p>
  35250. </dd>
  35251. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  35252. <dd><p>If set to 1, scroll the output upward when all the rows in the output
  35253. have been already filled. If set to 0, the new generated row will be
  35254. written over the top row just after the bottom row is filled.
  35255. Defaults to 1.
  35256. </p>
  35257. </dd>
  35258. <dt>&lsquo;<samp>start_full, full</samp>&rsquo;</dt>
  35259. <dd><p>If set to 1, completely fill the output with generated rows before
  35260. outputting the first frame.
  35261. This is the default behavior, for disabling set the value to 0.
  35262. </p>
  35263. </dd>
  35264. <dt>&lsquo;<samp>stitch</samp>&rsquo;</dt>
  35265. <dd><p>If set to 1, stitch the left and right row edges together.
  35266. This is the default behavior, for disabling set the value to 0.
  35267. </p></dd>
  35268. </dl>
  35269. <a name="Examples-125"></a>
  35270. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-125">35.2.1 Examples</a></h3>
  35271. <ul>
  35272. <li>
  35273. Read the initial state from &lsquo;<tt>pattern</tt>&rsquo;, and specify an output of
  35274. size 200x400.
  35275. <div class="example">
  35276. <pre class="example">cellauto=f=pattern:s=200x400
  35277. </pre></div>
  35278. </li><li>
  35279. Generate a random initial row with a width of 200 cells, with a fill
  35280. ratio of 2/3:
  35281. <div class="example">
  35282. <pre class="example">cellauto=ratio=2/3:s=200x200
  35283. </pre></div>
  35284. </li><li>
  35285. Create a pattern generated by rule 18 starting by a single alive cell
  35286. centered on an initial row with width 100:
  35287. <div class="example">
  35288. <pre class="example">cellauto=p=@:s=100x400:full=0:rule=18
  35289. </pre></div>
  35290. </li><li>
  35291. Specify a more elaborated initial pattern:
  35292. <div class="example">
  35293. <pre class="example">cellauto=p='@@ @ @@':s=100x400:full=0:rule=18
  35294. </pre></div>
  35295. </li></ul>
  35296. <p><a name="coreimagesrc"></a>
  35297. </p><a name="coreimagesrc-1"></a>
  35298. <h2 class="section"><a href="ffprobe-all.html#toc-coreimagesrc-1">35.3 coreimagesrc</a></h2>
  35299. <p>Video source generated on GPU using Apple&rsquo;s CoreImage API on OSX.
  35300. </p>
  35301. <p>This video source is a specialized version of the <a href="#coreimage">coreimage</a> video filter.
  35302. Use a core image generator at the beginning of the applied filterchain to
  35303. generate the content.
  35304. </p>
  35305. <p>The coreimagesrc video source accepts the following options:
  35306. </p><dl compact="compact">
  35307. <dt>&lsquo;<samp>list_generators</samp>&rsquo;</dt>
  35308. <dd><p>List all available generators along with all their respective options as well as
  35309. possible minimum and maximum values along with the default values.
  35310. </p><div class="example">
  35311. <pre class="example">list_generators=true
  35312. </pre></div>
  35313. </dd>
  35314. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35315. <dd><p>Specify the size of the sourced video. For the syntax of this option, check the
  35316. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35317. The default value is <code>320x240</code>.
  35318. </p>
  35319. </dd>
  35320. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35321. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  35322. generated per second. It has to be a string in the format
  35323. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  35324. number or a valid video frame rate abbreviation. The default value is
  35325. &quot;25&quot;.
  35326. </p>
  35327. </dd>
  35328. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  35329. <dd><p>Set the sample aspect ratio of the sourced video.
  35330. </p>
  35331. </dd>
  35332. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  35333. <dd><p>Set the duration of the sourced video. See
  35334. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  35335. for the accepted syntax.
  35336. </p>
  35337. <p>If not specified, or the expressed duration is negative, the video is
  35338. supposed to be generated forever.
  35339. </p></dd>
  35340. </dl>
  35341. <p>Additionally, all options of the <a href="#coreimage">coreimage</a> video filter are accepted.
  35342. A complete filterchain can be used for further processing of the
  35343. generated input without CPU-HOST transfer. See <a href="#coreimage">coreimage</a> documentation
  35344. and examples for details.
  35345. </p>
  35346. <a name="Examples-120"></a>
  35347. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-120">35.3.1 Examples</a></h3>
  35348. <ul>
  35349. <li>
  35350. Use CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
  35351. given as complete and escaped command-line for Apple&rsquo;s standard bash shell:
  35352. <div class="example">
  35353. <pre class="example">ffmpeg -f lavfi -i coreimagesrc=s=100x100:filter=CIQRCodeGenerator@inputMessage=https\\\\\://FFmpeg.org/@inputCorrectionLevel=H -frames:v 1 QRCode.png
  35354. </pre></div>
  35355. <p>This example is equivalent to the QRCode example of <a href="#coreimage">coreimage</a> without the
  35356. need for a nullsrc video source.
  35357. </p></li></ul>
  35358. <a name="mandelbrot"></a>
  35359. <h2 class="section"><a href="ffprobe-all.html#toc-mandelbrot">35.4 mandelbrot</a></h2>
  35360. <p>Generate a Mandelbrot set fractal, and progressively zoom towards the
  35361. point specified with <var>start_x</var> and <var>start_y</var>.
  35362. </p>
  35363. <p>This source accepts the following options:
  35364. </p>
  35365. <dl compact="compact">
  35366. <dt>&lsquo;<samp>end_pts</samp>&rsquo;</dt>
  35367. <dd><p>Set the terminal pts value. Default value is 400.
  35368. </p>
  35369. </dd>
  35370. <dt>&lsquo;<samp>end_scale</samp>&rsquo;</dt>
  35371. <dd><p>Set the terminal scale value.
  35372. Must be a floating point value. Default value is 0.3.
  35373. </p>
  35374. </dd>
  35375. <dt>&lsquo;<samp>inner</samp>&rsquo;</dt>
  35376. <dd><p>Set the inner coloring mode, that is the algorithm used to draw the
  35377. Mandelbrot fractal internal region.
  35378. </p>
  35379. <p>It shall assume one of the following values:
  35380. </p><dl compact="compact">
  35381. <dt>&lsquo;<samp>black</samp>&rsquo;</dt>
  35382. <dd><p>Set black mode.
  35383. </p></dd>
  35384. <dt>&lsquo;<samp>convergence</samp>&rsquo;</dt>
  35385. <dd><p>Show time until convergence.
  35386. </p></dd>
  35387. <dt>&lsquo;<samp>mincol</samp>&rsquo;</dt>
  35388. <dd><p>Set color based on point closest to the origin of the iterations.
  35389. </p></dd>
  35390. <dt>&lsquo;<samp>period</samp>&rsquo;</dt>
  35391. <dd><p>Set period mode.
  35392. </p></dd>
  35393. </dl>
  35394. <p>Default value is <var>mincol</var>.
  35395. </p>
  35396. </dd>
  35397. <dt>&lsquo;<samp>bailout</samp>&rsquo;</dt>
  35398. <dd><p>Set the bailout value. Default value is 10.0.
  35399. </p>
  35400. </dd>
  35401. <dt>&lsquo;<samp>maxiter</samp>&rsquo;</dt>
  35402. <dd><p>Set the maximum of iterations performed by the rendering
  35403. algorithm. Default value is 7189.
  35404. </p>
  35405. </dd>
  35406. <dt>&lsquo;<samp>outer</samp>&rsquo;</dt>
  35407. <dd><p>Set outer coloring mode.
  35408. It shall assume one of following values:
  35409. </p><dl compact="compact">
  35410. <dt>&lsquo;<samp>iteration_count</samp>&rsquo;</dt>
  35411. <dd><p>Set iteration count mode.
  35412. </p></dd>
  35413. <dt>&lsquo;<samp>normalized_iteration_count</samp>&rsquo;</dt>
  35414. <dd><p>set normalized iteration count mode.
  35415. </p></dd>
  35416. </dl>
  35417. <p>Default value is <var>normalized_iteration_count</var>.
  35418. </p>
  35419. </dd>
  35420. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35421. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35422. value is &quot;25&quot;.
  35423. </p>
  35424. </dd>
  35425. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35426. <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;.
  35427. </p>
  35428. </dd>
  35429. <dt>&lsquo;<samp>start_scale</samp>&rsquo;</dt>
  35430. <dd><p>Set the initial scale value. Default value is 3.0.
  35431. </p>
  35432. </dd>
  35433. <dt>&lsquo;<samp>start_x</samp>&rsquo;</dt>
  35434. <dd><p>Set the initial x position. Must be a floating point value between
  35435. -100 and 100. Default value is -0.743643887037158704752191506114774.
  35436. </p>
  35437. </dd>
  35438. <dt>&lsquo;<samp>start_y</samp>&rsquo;</dt>
  35439. <dd><p>Set the initial y position. Must be a floating point value between
  35440. -100 and 100. Default value is -0.131825904205311970493132056385139.
  35441. </p></dd>
  35442. </dl>
  35443. <a name="mptestsrc"></a>
  35444. <h2 class="section"><a href="ffprobe-all.html#toc-mptestsrc">35.5 mptestsrc</a></h2>
  35445. <p>Generate various test patterns, as generated by the MPlayer test filter.
  35446. </p>
  35447. <p>The size of the generated video is fixed, and is 256x256.
  35448. This source is useful in particular for testing encoding features.
  35449. </p>
  35450. <p>This source accepts the following options:
  35451. </p>
  35452. <dl compact="compact">
  35453. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35454. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  35455. generated per second. It has to be a string in the format
  35456. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  35457. number or a valid video frame rate abbreviation. The default value is
  35458. &quot;25&quot;.
  35459. </p>
  35460. </dd>
  35461. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  35462. <dd><p>Set the duration of the sourced video. See
  35463. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  35464. for the accepted syntax.
  35465. </p>
  35466. <p>If not specified, or the expressed duration is negative, the video is
  35467. supposed to be generated forever.
  35468. </p>
  35469. </dd>
  35470. <dt>&lsquo;<samp>test, t</samp>&rsquo;</dt>
  35471. <dd>
  35472. <p>Set the number or the name of the test to perform. Supported tests are:
  35473. </p><dl compact="compact">
  35474. <dt>&lsquo;<samp>dc_luma</samp>&rsquo;</dt>
  35475. <dt>&lsquo;<samp>dc_chroma</samp>&rsquo;</dt>
  35476. <dt>&lsquo;<samp>freq_luma</samp>&rsquo;</dt>
  35477. <dt>&lsquo;<samp>freq_chroma</samp>&rsquo;</dt>
  35478. <dt>&lsquo;<samp>amp_luma</samp>&rsquo;</dt>
  35479. <dt>&lsquo;<samp>amp_chroma</samp>&rsquo;</dt>
  35480. <dt>&lsquo;<samp>cbp</samp>&rsquo;</dt>
  35481. <dt>&lsquo;<samp>mv</samp>&rsquo;</dt>
  35482. <dt>&lsquo;<samp>ring1</samp>&rsquo;</dt>
  35483. <dt>&lsquo;<samp>ring2</samp>&rsquo;</dt>
  35484. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  35485. <dt>&lsquo;<samp>max_frames, m</samp>&rsquo;</dt>
  35486. <dd><p>Set the maximum number of frames generated for each test, default value is 30.
  35487. </p>
  35488. </dd>
  35489. </dl>
  35490. <p>Default value is &quot;all&quot;, which will cycle through the list of all tests.
  35491. </p></dd>
  35492. </dl>
  35493. <p>Some examples:
  35494. </p><div class="example">
  35495. <pre class="example">mptestsrc=t=dc_luma
  35496. </pre></div>
  35497. <p>will generate a &quot;dc_luma&quot; test pattern.
  35498. </p>
  35499. <a name="frei0r_005fsrc"></a>
  35500. <h2 class="section"><a href="ffprobe-all.html#toc-frei0r_005fsrc">35.6 frei0r_src</a></h2>
  35501. <p>Provide a frei0r source.
  35502. </p>
  35503. <p>To enable compilation of this filter you need to install the frei0r
  35504. header and configure FFmpeg with <code>--enable-frei0r</code>.
  35505. </p>
  35506. <p>This source accepts the following parameters:
  35507. </p>
  35508. <dl compact="compact">
  35509. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  35510. <dd><p>The size of the video to generate. For the syntax of this option, check the
  35511. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35512. </p>
  35513. </dd>
  35514. <dt>&lsquo;<samp>framerate</samp>&rsquo;</dt>
  35515. <dd><p>The framerate of the generated video. It may be a string of the form
  35516. <var>num</var>/<var>den</var> or a frame rate abbreviation.
  35517. </p>
  35518. </dd>
  35519. <dt>&lsquo;<samp>filter_name</samp>&rsquo;</dt>
  35520. <dd><p>The name to the frei0r source to load. For more information regarding frei0r and
  35521. how to set the parameters, read the <a href="#frei0r">frei0r</a> section in the video filters
  35522. documentation.
  35523. </p>
  35524. </dd>
  35525. <dt>&lsquo;<samp>filter_params</samp>&rsquo;</dt>
  35526. <dd><p>A &rsquo;|&rsquo;-separated list of parameters to pass to the frei0r source.
  35527. </p>
  35528. </dd>
  35529. </dl>
  35530. <p>For example, to generate a frei0r partik0l source with size 200x200
  35531. and frame rate 10 which is overlaid on the overlay filter main input:
  35532. </p><div class="example">
  35533. <pre class="example">frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234 [overlay]; [in][overlay] overlay
  35534. </pre></div>
  35535. <a name="life"></a>
  35536. <h2 class="section"><a href="ffprobe-all.html#toc-life">35.7 life</a></h2>
  35537. <p>Generate a life pattern.
  35538. </p>
  35539. <p>This source is based on a generalization of John Conway&rsquo;s life game.
  35540. </p>
  35541. <p>The sourced input represents a life grid, each pixel represents a cell
  35542. which can be in one of two possible states, alive or dead. Every cell
  35543. interacts with its eight neighbours, which are the cells that are
  35544. horizontally, vertically, or diagonally adjacent.
  35545. </p>
  35546. <p>At each interaction the grid evolves according to the adopted rule,
  35547. which specifies the number of neighbor alive cells which will make a
  35548. cell stay alive or born. The &lsquo;<samp>rule</samp>&rsquo; option allows one to specify
  35549. the rule to adopt.
  35550. </p>
  35551. <p>This source accepts the following options:
  35552. </p>
  35553. <dl compact="compact">
  35554. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  35555. <dd><p>Set the file from which to read the initial grid state. In the file,
  35556. each non-whitespace character is considered an alive cell, and newline
  35557. is used to delimit the end of each row.
  35558. </p>
  35559. <p>If this option is not specified, the initial grid is generated
  35560. randomly.
  35561. </p>
  35562. </dd>
  35563. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35564. <dd><p>Set the video rate, that is the number of frames generated per second.
  35565. Default is 25.
  35566. </p>
  35567. </dd>
  35568. <dt>&lsquo;<samp>random_fill_ratio, ratio</samp>&rsquo;</dt>
  35569. <dd><p>Set the random fill ratio for the initial random grid. It is a
  35570. floating point number value ranging from 0 to 1, defaults to 1/PHI.
  35571. It is ignored when a file is specified.
  35572. </p>
  35573. </dd>
  35574. <dt>&lsquo;<samp>random_seed, seed</samp>&rsquo;</dt>
  35575. <dd><p>Set the seed for filling the initial random grid, must be an integer
  35576. included between 0 and UINT32_MAX. If not specified, or if explicitly
  35577. set to -1, the filter will try to use a good random seed on a best
  35578. effort basis.
  35579. </p>
  35580. </dd>
  35581. <dt>&lsquo;<samp>rule</samp>&rsquo;</dt>
  35582. <dd><p>Set the life rule.
  35583. </p>
  35584. <p>A rule can be specified with a code of the kind &quot;S<var>NS</var>/B<var>NB</var>&quot;,
  35585. where <var>NS</var> and <var>NB</var> are sequences of numbers in the range 0-8,
  35586. <var>NS</var> specifies the number of alive neighbor cells which make a
  35587. live cell stay alive, and <var>NB</var> the number of alive neighbor cells
  35588. which make a dead cell to become alive (i.e. to &quot;born&quot;).
  35589. &quot;s&quot; and &quot;b&quot; can be used in place of &quot;S&quot; and &quot;B&quot;, respectively.
  35590. </p>
  35591. <p>Alternatively a rule can be specified by an 18-bits integer. The 9
  35592. high order bits are used to encode the next cell state if it is alive
  35593. for each number of neighbor alive cells, the low order bits specify
  35594. the rule for &quot;borning&quot; new cells. Higher order bits encode for an
  35595. higher number of neighbor cells.
  35596. For example the number 6153 = <code>(12&lt;&lt;9)+9</code> specifies a stay alive
  35597. rule of 12 and a born rule of 9, which corresponds to &quot;S23/B03&quot;.
  35598. </p>
  35599. <p>Default value is &quot;S23/B3&quot;, which is the original Conway&rsquo;s game of life
  35600. rule, and will keep a cell alive if it has 2 or 3 neighbor alive
  35601. cells, and will born a new cell if there are three alive cells around
  35602. a dead cell.
  35603. </p>
  35604. </dd>
  35605. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35606. <dd><p>Set the size of the output video. For the syntax of this option, check the
  35607. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35608. </p>
  35609. <p>If &lsquo;<samp>filename</samp>&rsquo; is specified, the size is set by default to the
  35610. same size of the input file. If &lsquo;<samp>size</samp>&rsquo; is set, it must contain
  35611. the size specified in the input file, and the initial grid defined in
  35612. that file is centered in the larger resulting area.
  35613. </p>
  35614. <p>If a filename is not specified, the size value defaults to &quot;320x240&quot;
  35615. (used for a randomly generated initial grid).
  35616. </p>
  35617. </dd>
  35618. <dt>&lsquo;<samp>stitch</samp>&rsquo;</dt>
  35619. <dd><p>If set to 1, stitch the left and right grid edges together, and the
  35620. top and bottom edges also. Defaults to 1.
  35621. </p>
  35622. </dd>
  35623. <dt>&lsquo;<samp>mold</samp>&rsquo;</dt>
  35624. <dd><p>Set cell mold speed. If set, a dead cell will go from &lsquo;<samp>death_color</samp>&rsquo; to
  35625. &lsquo;<samp>mold_color</samp>&rsquo; with a step of &lsquo;<samp>mold</samp>&rsquo;. &lsquo;<samp>mold</samp>&rsquo; can have a
  35626. value from 0 to 255.
  35627. </p>
  35628. </dd>
  35629. <dt>&lsquo;<samp>life_color</samp>&rsquo;</dt>
  35630. <dd><p>Set the color of living (or new born) cells.
  35631. </p>
  35632. </dd>
  35633. <dt>&lsquo;<samp>death_color</samp>&rsquo;</dt>
  35634. <dd><p>Set the color of dead cells. If &lsquo;<samp>mold</samp>&rsquo; is set, this is the first color
  35635. used to represent a dead cell.
  35636. </p>
  35637. </dd>
  35638. <dt>&lsquo;<samp>mold_color</samp>&rsquo;</dt>
  35639. <dd><p>Set mold color, for definitely dead and moldy cells.
  35640. </p>
  35641. <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>.
  35642. </p></dd>
  35643. </dl>
  35644. <a name="Examples-91"></a>
  35645. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-91">35.7.1 Examples</a></h3>
  35646. <ul>
  35647. <li>
  35648. Read a grid from &lsquo;<tt>pattern</tt>&rsquo;, and center it on a grid of size
  35649. 300x300 pixels:
  35650. <div class="example">
  35651. <pre class="example">life=f=pattern:s=300x300
  35652. </pre></div>
  35653. </li><li>
  35654. Generate a random grid of size 200x200, with a fill ratio of 2/3:
  35655. <div class="example">
  35656. <pre class="example">life=ratio=2/3:s=200x200
  35657. </pre></div>
  35658. </li><li>
  35659. Specify a custom rule for evolving a randomly generated grid:
  35660. <div class="example">
  35661. <pre class="example">life=rule=S14/B34
  35662. </pre></div>
  35663. </li><li>
  35664. Full example with slow death effect (mold) using <code>ffplay</code>:
  35665. <div class="example">
  35666. <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
  35667. </pre></div>
  35668. </li></ul>
  35669. <p><a name="allrgb"></a>
  35670. <a name="allyuv"></a>
  35671. <a name="color"></a>
  35672. <a name="haldclutsrc"></a>
  35673. <a name="nullsrc"></a>
  35674. <a name="pal75bars"></a>
  35675. <a name="pal100bars"></a>
  35676. <a name="rgbtestsrc"></a>
  35677. <a name="smptebars"></a>
  35678. <a name="smptehdbars"></a>
  35679. <a name="testsrc"></a>
  35680. <a name="testsrc2"></a>
  35681. <a name="yuvtestsrc"></a>
  35682. </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>
  35683. <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.8 allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc</a></h2>
  35684. <p>The <code>allrgb</code> source returns frames of size 4096x4096 of all rgb colors.
  35685. </p>
  35686. <p>The <code>allyuv</code> source returns frames of size 4096x4096 of all yuv colors.
  35687. </p>
  35688. <p>The <code>color</code> source provides an uniformly colored input.
  35689. </p>
  35690. <p>The <code>haldclutsrc</code> source provides an identity Hald CLUT. See also
  35691. <a href="#haldclut">haldclut</a> filter.
  35692. </p>
  35693. <p>The <code>nullsrc</code> source returns unprocessed video frames. It is
  35694. mainly useful to be employed in analysis / debugging tools, or as the
  35695. source for filters which ignore the input data.
  35696. </p>
  35697. <p>The <code>pal75bars</code> source generates a color bars pattern, based on
  35698. EBU PAL recommendations with 75% color levels.
  35699. </p>
  35700. <p>The <code>pal100bars</code> source generates a color bars pattern, based on
  35701. EBU PAL recommendations with 100% color levels.
  35702. </p>
  35703. <p>The <code>rgbtestsrc</code> source generates an RGB test pattern useful for
  35704. detecting RGB vs BGR issues. You should see a red, green and blue
  35705. stripe from top to bottom.
  35706. </p>
  35707. <p>The <code>smptebars</code> source generates a color bars pattern, based on
  35708. the SMPTE Engineering Guideline EG 1-1990.
  35709. </p>
  35710. <p>The <code>smptehdbars</code> source generates a color bars pattern, based on
  35711. the SMPTE RP 219-2002.
  35712. </p>
  35713. <p>The <code>testsrc</code> source generates a test video pattern, showing a
  35714. color pattern, a scrolling gradient and a timestamp. This is mainly
  35715. intended for testing purposes.
  35716. </p>
  35717. <p>The <code>testsrc2</code> source is similar to testsrc, but supports more
  35718. pixel formats instead of just <code>rgb24</code>. This allows using it as an
  35719. input for other tests without requiring a format conversion.
  35720. </p>
  35721. <p>The <code>yuvtestsrc</code> source generates an YUV test pattern. You should
  35722. see a y, cb and cr stripe from top to bottom.
  35723. </p>
  35724. <p>The sources accept the following parameters:
  35725. </p>
  35726. <dl compact="compact">
  35727. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  35728. <dd><p>Specify the level of the Hald CLUT, only available in the <code>haldclutsrc</code>
  35729. source. A level of <code>N</code> generates a picture of <code>N*N*N</code> by <code>N*N*N</code>
  35730. pixels to be used as identity matrix for 3D lookup tables. Each component is
  35731. coded on a <code>1/(N*N)</code> scale.
  35732. </p>
  35733. </dd>
  35734. <dt>&lsquo;<samp>color, c</samp>&rsquo;</dt>
  35735. <dd><p>Specify the color of the source, only available in the <code>color</code>
  35736. source. For the syntax of this option, check the
  35737. <a href="ffmpeg-utils.html#color-syntax">(ffmpeg-utils)&quot;Color&quot; section in the ffmpeg-utils manual</a>.
  35738. </p>
  35739. </dd>
  35740. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35741. <dd><p>Specify the size of the sourced video. For the syntax of this option, check the
  35742. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35743. The default value is <code>320x240</code>.
  35744. </p>
  35745. <p>This option is not available with the <code>allrgb</code>, <code>allyuv</code>, and
  35746. <code>haldclutsrc</code> filters.
  35747. </p>
  35748. </dd>
  35749. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35750. <dd><p>Specify the frame rate of the sourced video, as the number of frames
  35751. generated per second. It has to be a string in the format
  35752. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a floating point
  35753. number or a valid video frame rate abbreviation. The default value is
  35754. &quot;25&quot;.
  35755. </p>
  35756. </dd>
  35757. <dt>&lsquo;<samp>duration, d</samp>&rsquo;</dt>
  35758. <dd><p>Set the duration of the sourced video. See
  35759. <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>
  35760. for the accepted syntax.
  35761. </p>
  35762. <p>If not specified, or the expressed duration is negative, the video is
  35763. supposed to be generated forever.
  35764. </p>
  35765. </dd>
  35766. <dt>&lsquo;<samp>sar</samp>&rsquo;</dt>
  35767. <dd><p>Set the sample aspect ratio of the sourced video.
  35768. </p>
  35769. </dd>
  35770. <dt>&lsquo;<samp>alpha</samp>&rsquo;</dt>
  35771. <dd><p>Specify the alpha (opacity) of the background, only available in the
  35772. <code>testsrc2</code> source. The value must be between 0 (fully transparent) and
  35773. 255 (fully opaque, the default).
  35774. </p>
  35775. </dd>
  35776. <dt>&lsquo;<samp>decimals, n</samp>&rsquo;</dt>
  35777. <dd><p>Set the number of decimals to show in the timestamp, only available in the
  35778. <code>testsrc</code> source.
  35779. </p>
  35780. <p>The displayed timestamp value will correspond to the original
  35781. timestamp value multiplied by the power of 10 of the specified
  35782. value. Default value is 0.
  35783. </p></dd>
  35784. </dl>
  35785. <a name="Examples-81"></a>
  35786. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-81">35.8.1 Examples</a></h3>
  35787. <ul>
  35788. <li>
  35789. Generate a video with a duration of 5.3 seconds, with size
  35790. 176x144 and a frame rate of 10 frames per second:
  35791. <div class="example">
  35792. <pre class="example">testsrc=duration=5.3:size=qcif:rate=10
  35793. </pre></div>
  35794. </li><li>
  35795. The following graph description will generate a red source
  35796. with an opacity of 0.2, with size &quot;qcif&quot; and a frame rate of 10
  35797. frames per second:
  35798. <div class="example">
  35799. <pre class="example">color=c=red@0.2:s=qcif:r=10
  35800. </pre></div>
  35801. </li><li>
  35802. If the input content is to be ignored, <code>nullsrc</code> can be used. The
  35803. following command generates noise in the luminance plane by employing
  35804. the <code>geq</code> filter:
  35805. <div class="example">
  35806. <pre class="example">nullsrc=s=256x256, geq=random(1)*255:128:128
  35807. </pre></div>
  35808. </li></ul>
  35809. <a name="Commands-19"></a>
  35810. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-19">35.8.2 Commands</a></h3>
  35811. <p>The <code>color</code> source supports the following commands:
  35812. </p>
  35813. <dl compact="compact">
  35814. <dt>&lsquo;<samp>c, color</samp>&rsquo;</dt>
  35815. <dd><p>Set the color of the created image. Accepts the same syntax of the
  35816. corresponding &lsquo;<samp>color</samp>&rsquo; option.
  35817. </p></dd>
  35818. </dl>
  35819. <a name="openclsrc"></a>
  35820. <h2 class="section"><a href="ffprobe-all.html#toc-openclsrc">35.9 openclsrc</a></h2>
  35821. <p>Generate video using an OpenCL program.
  35822. </p>
  35823. <dl compact="compact">
  35824. <dt>&lsquo;<samp>source</samp>&rsquo;</dt>
  35825. <dd><p>OpenCL program source file.
  35826. </p>
  35827. </dd>
  35828. <dt>&lsquo;<samp>kernel</samp>&rsquo;</dt>
  35829. <dd><p>Kernel name in program.
  35830. </p>
  35831. </dd>
  35832. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35833. <dd><p>Size of frames to generate. This must be set.
  35834. </p>
  35835. </dd>
  35836. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  35837. <dd><p>Pixel format to use for the generated frames. This must be set.
  35838. </p>
  35839. </dd>
  35840. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35841. <dd><p>Number of frames generated every second. Default value is &rsquo;25&rsquo;.
  35842. </p>
  35843. </dd>
  35844. </dl>
  35845. <p>For details of how the program loading works, see the <a href="#program_005fopencl">program_opencl</a>
  35846. filter.
  35847. </p>
  35848. <p>Example programs:
  35849. </p>
  35850. <ul>
  35851. <li>
  35852. Generate a colour ramp by setting pixel values from the position of the pixel
  35853. in the output image. (Note that this will work with all pixel formats, but
  35854. the generated output will not be the same.)
  35855. <pre class="verbatim">__kernel void ramp(__write_only image2d_t dst,
  35856. unsigned int index)
  35857. {
  35858. int2 loc = (int2)(get_global_id(0), get_global_id(1));
  35859. float4 val;
  35860. val.xy = val.zw = convert_float2(loc) / convert_float2(get_image_dim(dst));
  35861. write_imagef(dst, loc, val);
  35862. }
  35863. </pre>
  35864. </li><li>
  35865. Generate a Sierpinski carpet pattern, panning by a single pixel each frame.
  35866. <pre class="verbatim">__kernel void sierpinski_carpet(__write_only image2d_t dst,
  35867. unsigned int index)
  35868. {
  35869. int2 loc = (int2)(get_global_id(0), get_global_id(1));
  35870. float4 value = 0.0f;
  35871. int x = loc.x + index;
  35872. int y = loc.y + index;
  35873. while (x &gt; 0 || y &gt; 0) {
  35874. if (x % 3 == 1 &amp;&amp; y % 3 == 1) {
  35875. value = 1.0f;
  35876. break;
  35877. }
  35878. x /= 3;
  35879. y /= 3;
  35880. }
  35881. write_imagef(dst, loc, value);
  35882. }
  35883. </pre>
  35884. </li></ul>
  35885. <a name="sierpinski"></a>
  35886. <h2 class="section"><a href="ffprobe-all.html#toc-sierpinski">35.10 sierpinski</a></h2>
  35887. <p>Generate a Sierpinski carpet/triangle fractal, and randomly pan around.
  35888. </p>
  35889. <p>This source accepts the following options:
  35890. </p>
  35891. <dl compact="compact">
  35892. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35893. <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;.
  35894. </p>
  35895. </dd>
  35896. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35897. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35898. value is &quot;25&quot;.
  35899. </p>
  35900. </dd>
  35901. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  35902. <dd><p>Set seed which is used for random panning.
  35903. </p>
  35904. </dd>
  35905. <dt>&lsquo;<samp>jump</samp>&rsquo;</dt>
  35906. <dd><p>Set max jump for single pan destination. Allowed range is from 1 to 10000.
  35907. </p>
  35908. </dd>
  35909. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  35910. <dd><p>Set fractal type, can be default <code>carpet</code> or <code>triangle</code>.
  35911. </p></dd>
  35912. </dl>
  35913. <a name="Video-Sinks"></a>
  35914. <h1 class="chapter"><a href="ffprobe-all.html#toc-Video-Sinks">36 Video Sinks</a></h1>
  35915. <p>Below is a description of the currently available video sinks.
  35916. </p>
  35917. <a name="buffersink"></a>
  35918. <h2 class="section"><a href="ffprobe-all.html#toc-buffersink">36.1 buffersink</a></h2>
  35919. <p>Buffer video frames, and make them available to the end of the filter
  35920. graph.
  35921. </p>
  35922. <p>This sink is mainly intended for programmatic use, in particular
  35923. through the interface defined in &lsquo;<tt>libavfilter/buffersink.h</tt>&rsquo;
  35924. or the options system.
  35925. </p>
  35926. <p>It accepts a pointer to an AVBufferSinkContext structure, which
  35927. defines the incoming buffers&rsquo; formats, to be passed as the opaque
  35928. parameter to <code>avfilter_init_filter</code> for initialization.
  35929. </p>
  35930. <a name="nullsink"></a>
  35931. <h2 class="section"><a href="ffprobe-all.html#toc-nullsink">36.2 nullsink</a></h2>
  35932. <p>Null video sink: do absolutely nothing with the input video. It is
  35933. mainly useful as a template and for use in analysis / debugging
  35934. tools.
  35935. </p>
  35936. <a name="Multimedia-Filters"></a>
  35937. <h1 class="chapter"><a href="ffprobe-all.html#toc-Multimedia-Filters">37 Multimedia Filters</a></h1>
  35938. <p>Below is a description of the currently available multimedia filters.
  35939. </p>
  35940. <a name="abitscope"></a>
  35941. <h2 class="section"><a href="ffprobe-all.html#toc-abitscope">37.1 abitscope</a></h2>
  35942. <p>Convert input audio to a video output, displaying the audio bit scope.
  35943. </p>
  35944. <p>The filter accepts the following options:
  35945. </p>
  35946. <dl compact="compact">
  35947. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35948. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35949. value is &quot;25&quot;.
  35950. </p>
  35951. </dd>
  35952. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  35953. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  35954. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  35955. Default value is <code>1024x256</code>.
  35956. </p>
  35957. </dd>
  35958. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  35959. <dd><p>Specify list of colors separated by space or by &rsquo;|&rsquo; which will be used to
  35960. draw channels. Unrecognized or missing colors will be replaced
  35961. by white color.
  35962. </p></dd>
  35963. </dl>
  35964. <a name="adrawgraph"></a>
  35965. <h2 class="section"><a href="ffprobe-all.html#toc-adrawgraph">37.2 adrawgraph</a></h2>
  35966. <p>Draw a graph using input audio metadata.
  35967. </p>
  35968. <p>See <a href="#drawgraph">drawgraph</a>
  35969. </p>
  35970. <a name="agraphmonitor"></a>
  35971. <h2 class="section"><a href="ffprobe-all.html#toc-agraphmonitor">37.3 agraphmonitor</a></h2>
  35972. <p>See <a href="#graphmonitor">graphmonitor</a>.
  35973. </p>
  35974. <a name="ahistogram"></a>
  35975. <h2 class="section"><a href="ffprobe-all.html#toc-ahistogram">37.4 ahistogram</a></h2>
  35976. <p>Convert input audio to a video output, displaying the volume histogram.
  35977. </p>
  35978. <p>The filter accepts the following options:
  35979. </p>
  35980. <dl compact="compact">
  35981. <dt>&lsquo;<samp>dmode</samp>&rsquo;</dt>
  35982. <dd><p>Specify how histogram is calculated.
  35983. </p>
  35984. <p>It accepts the following values:
  35985. </p><dl compact="compact">
  35986. <dt>&lsquo;<samp>single</samp>&rsquo;</dt>
  35987. <dd><p>Use single histogram for all channels.
  35988. </p></dd>
  35989. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  35990. <dd><p>Use separate histogram for each channel.
  35991. </p></dd>
  35992. </dl>
  35993. <p>Default is <code>single</code>.
  35994. </p>
  35995. </dd>
  35996. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  35997. <dd><p>Set frame rate, expressed as number of frames per second. Default
  35998. value is &quot;25&quot;.
  35999. </p>
  36000. </dd>
  36001. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36002. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  36003. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36004. Default value is <code>hd720</code>.
  36005. </p>
  36006. </dd>
  36007. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36008. <dd><p>Set display scale.
  36009. </p>
  36010. <p>It accepts the following values:
  36011. </p><dl compact="compact">
  36012. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36013. <dd><p>logarithmic
  36014. </p></dd>
  36015. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  36016. <dd><p>square root
  36017. </p></dd>
  36018. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  36019. <dd><p>cubic root
  36020. </p></dd>
  36021. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36022. <dd><p>linear
  36023. </p></dd>
  36024. <dt>&lsquo;<samp>rlog</samp>&rsquo;</dt>
  36025. <dd><p>reverse logarithmic
  36026. </p></dd>
  36027. </dl>
  36028. <p>Default is <code>log</code>.
  36029. </p>
  36030. </dd>
  36031. <dt>&lsquo;<samp>ascale</samp>&rsquo;</dt>
  36032. <dd><p>Set amplitude scale.
  36033. </p>
  36034. <p>It accepts the following values:
  36035. </p><dl compact="compact">
  36036. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36037. <dd><p>logarithmic
  36038. </p></dd>
  36039. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36040. <dd><p>linear
  36041. </p></dd>
  36042. </dl>
  36043. <p>Default is <code>log</code>.
  36044. </p>
  36045. </dd>
  36046. <dt>&lsquo;<samp>acount</samp>&rsquo;</dt>
  36047. <dd><p>Set how much frames to accumulate in histogram.
  36048. Default is 1. Setting this to -1 accumulates all frames.
  36049. </p>
  36050. </dd>
  36051. <dt>&lsquo;<samp>rheight</samp>&rsquo;</dt>
  36052. <dd><p>Set histogram ratio of window height.
  36053. </p>
  36054. </dd>
  36055. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  36056. <dd><p>Set sonogram sliding.
  36057. </p>
  36058. <p>It accepts the following values:
  36059. </p><dl compact="compact">
  36060. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  36061. <dd><p>replace old rows with new ones.
  36062. </p></dd>
  36063. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  36064. <dd><p>scroll from top to bottom.
  36065. </p></dd>
  36066. </dl>
  36067. <p>Default is <code>replace</code>.
  36068. </p></dd>
  36069. </dl>
  36070. <a name="aphasemeter"></a>
  36071. <h2 class="section"><a href="ffprobe-all.html#toc-aphasemeter">37.5 aphasemeter</a></h2>
  36072. <p>Measures phase of input audio, which is exported as metadata <code>lavfi.aphasemeter.phase</code>,
  36073. representing mean phase of current audio frame. A video output can also be produced and is
  36074. enabled by default. The audio is passed through as first output.
  36075. </p>
  36076. <p>Audio will be rematrixed to stereo if it has a different channel layout. Phase value is in
  36077. range <code>[-1, 1]</code> where <code>-1</code> means left and right channels are completely out of phase
  36078. and <code>1</code> means channels are in phase.
  36079. </p>
  36080. <p>The filter accepts the following options, all related to its video output:
  36081. </p>
  36082. <dl compact="compact">
  36083. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36084. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  36085. </p>
  36086. </dd>
  36087. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36088. <dd><p>Set the video size for the output. For the syntax of this option, check the
  36089. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36090. Default value is <code>800x400</code>.
  36091. </p>
  36092. </dd>
  36093. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  36094. <dt>&lsquo;<samp>gc</samp>&rsquo;</dt>
  36095. <dt>&lsquo;<samp>bc</samp>&rsquo;</dt>
  36096. <dd><p>Specify the red, green, blue contrast. Default values are <code>2</code>,
  36097. <code>7</code> and <code>1</code>.
  36098. Allowed range is <code>[0, 255]</code>.
  36099. </p>
  36100. </dd>
  36101. <dt>&lsquo;<samp>mpc</samp>&rsquo;</dt>
  36102. <dd><p>Set color which will be used for drawing median phase. If color is
  36103. <code>none</code> which is default, no median phase value will be drawn.
  36104. </p>
  36105. </dd>
  36106. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  36107. <dd><p>Enable video output. Default is enabled.
  36108. </p></dd>
  36109. </dl>
  36110. <a name="avectorscope"></a>
  36111. <h2 class="section"><a href="ffprobe-all.html#toc-avectorscope">37.6 avectorscope</a></h2>
  36112. <p>Convert input audio to a video output, representing the audio vector
  36113. scope.
  36114. </p>
  36115. <p>The filter is used to measure the difference between channels of stereo
  36116. audio stream. A monaural signal, consisting of identical left and right
  36117. signal, results in straight vertical line. Any stereo separation is visible
  36118. as a deviation from this line, creating a Lissajous figure.
  36119. If the straight (or deviation from it) but horizontal line appears this
  36120. indicates that the left and right channels are out of phase.
  36121. </p>
  36122. <p>The filter accepts the following options:
  36123. </p>
  36124. <dl compact="compact">
  36125. <dt>&lsquo;<samp>mode, m</samp>&rsquo;</dt>
  36126. <dd><p>Set the vectorscope mode.
  36127. </p>
  36128. <p>Available values are:
  36129. </p><dl compact="compact">
  36130. <dt>&lsquo;<samp>lissajous</samp>&rsquo;</dt>
  36131. <dd><p>Lissajous rotated by 45 degrees.
  36132. </p>
  36133. </dd>
  36134. <dt>&lsquo;<samp>lissajous_xy</samp>&rsquo;</dt>
  36135. <dd><p>Same as above but not rotated.
  36136. </p>
  36137. </dd>
  36138. <dt>&lsquo;<samp>polar</samp>&rsquo;</dt>
  36139. <dd><p>Shape resembling half of circle.
  36140. </p></dd>
  36141. </dl>
  36142. <p>Default value is &lsquo;<samp>lissajous</samp>&rsquo;.
  36143. </p>
  36144. </dd>
  36145. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  36146. <dd><p>Set the video size for the output. For the syntax of this option, check the
  36147. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36148. Default value is <code>400x400</code>.
  36149. </p>
  36150. </dd>
  36151. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  36152. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  36153. </p>
  36154. </dd>
  36155. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  36156. <dt>&lsquo;<samp>gc</samp>&rsquo;</dt>
  36157. <dt>&lsquo;<samp>bc</samp>&rsquo;</dt>
  36158. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  36159. <dd><p>Specify the red, green, blue and alpha contrast. Default values are <code>40</code>,
  36160. <code>160</code>, <code>80</code> and <code>255</code>.
  36161. Allowed range is <code>[0, 255]</code>.
  36162. </p>
  36163. </dd>
  36164. <dt>&lsquo;<samp>rf</samp>&rsquo;</dt>
  36165. <dt>&lsquo;<samp>gf</samp>&rsquo;</dt>
  36166. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  36167. <dt>&lsquo;<samp>af</samp>&rsquo;</dt>
  36168. <dd><p>Specify the red, green, blue and alpha fade. Default values are <code>15</code>,
  36169. <code>10</code>, <code>5</code> and <code>5</code>.
  36170. Allowed range is <code>[0, 255]</code>.
  36171. </p>
  36172. </dd>
  36173. <dt>&lsquo;<samp>zoom</samp>&rsquo;</dt>
  36174. <dd><p>Set the zoom factor. Default value is <code>1</code>. Allowed range is <code>[0, 10]</code>.
  36175. Values lower than <var>1</var> will auto adjust zoom factor to maximal possible value.
  36176. </p>
  36177. </dd>
  36178. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  36179. <dd><p>Set the vectorscope drawing mode.
  36180. </p>
  36181. <p>Available values are:
  36182. </p><dl compact="compact">
  36183. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  36184. <dd><p>Draw dot for each sample.
  36185. </p>
  36186. </dd>
  36187. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  36188. <dd><p>Draw line between previous and current sample.
  36189. </p></dd>
  36190. </dl>
  36191. <p>Default value is &lsquo;<samp>dot</samp>&rsquo;.
  36192. </p>
  36193. </dd>
  36194. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36195. <dd><p>Specify amplitude scale of audio samples.
  36196. </p>
  36197. <p>Available values are:
  36198. </p><dl compact="compact">
  36199. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  36200. <dd><p>Linear.
  36201. </p>
  36202. </dd>
  36203. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  36204. <dd><p>Square root.
  36205. </p>
  36206. </dd>
  36207. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  36208. <dd><p>Cubic root.
  36209. </p>
  36210. </dd>
  36211. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  36212. <dd><p>Logarithmic.
  36213. </p></dd>
  36214. </dl>
  36215. </dd>
  36216. <dt>&lsquo;<samp>swap</samp>&rsquo;</dt>
  36217. <dd><p>Swap left channel axis with right channel axis.
  36218. </p>
  36219. </dd>
  36220. <dt>&lsquo;<samp>mirror</samp>&rsquo;</dt>
  36221. <dd><p>Mirror axis.
  36222. </p>
  36223. <dl compact="compact">
  36224. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  36225. <dd><p>No mirror.
  36226. </p>
  36227. </dd>
  36228. <dt>&lsquo;<samp>x</samp>&rsquo;</dt>
  36229. <dd><p>Mirror only x axis.
  36230. </p>
  36231. </dd>
  36232. <dt>&lsquo;<samp>y</samp>&rsquo;</dt>
  36233. <dd><p>Mirror only y axis.
  36234. </p>
  36235. </dd>
  36236. <dt>&lsquo;<samp>xy</samp>&rsquo;</dt>
  36237. <dd><p>Mirror both axis.
  36238. </p></dd>
  36239. </dl>
  36240. </dd>
  36241. </dl>
  36242. <a name="Examples-67"></a>
  36243. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-67">37.6.1 Examples</a></h3>
  36244. <ul>
  36245. <li>
  36246. Complete example using <code>ffplay</code>:
  36247. <div class="example">
  36248. <pre class="example">ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
  36249. [a] avectorscope=zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7 [out0]'
  36250. </pre></div>
  36251. </li></ul>
  36252. <a name="bench_002c-abench"></a>
  36253. <h2 class="section"><a href="ffprobe-all.html#toc-bench_002c-abench">37.7 bench, abench</a></h2>
  36254. <p>Benchmark part of a filtergraph.
  36255. </p>
  36256. <p>The filter accepts the following options:
  36257. </p>
  36258. <dl compact="compact">
  36259. <dt>&lsquo;<samp>action</samp>&rsquo;</dt>
  36260. <dd><p>Start or stop a timer.
  36261. </p>
  36262. <p>Available values are:
  36263. </p><dl compact="compact">
  36264. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  36265. <dd><p>Get the current time, set it as frame metadata (using the key
  36266. <code>lavfi.bench.start_time</code>), and forward the frame to the next filter.
  36267. </p>
  36268. </dd>
  36269. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  36270. <dd><p>Get the current time and fetch the <code>lavfi.bench.start_time</code> metadata from
  36271. the input frame metadata to get the time difference. Time difference, average,
  36272. maximum and minimum time (respectively <code>t</code>, <code>avg</code>, <code>max</code> and
  36273. <code>min</code>) are then printed. The timestamps are expressed in seconds.
  36274. </p></dd>
  36275. </dl>
  36276. </dd>
  36277. </dl>
  36278. <a name="Examples-12"></a>
  36279. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-12">37.7.1 Examples</a></h3>
  36280. <ul>
  36281. <li>
  36282. Benchmark <a href="#selectivecolor">selectivecolor</a> filter:
  36283. <div class="example">
  36284. <pre class="example">bench=start,selectivecolor=reds=-.2 .12 -.49,bench=stop
  36285. </pre></div>
  36286. </li></ul>
  36287. <a name="concat-2"></a>
  36288. <h2 class="section"><a href="ffprobe-all.html#toc-concat-2">37.8 concat</a></h2>
  36289. <p>Concatenate audio and video streams, joining them together one after the
  36290. other.
  36291. </p>
  36292. <p>The filter works on segments of synchronized video and audio streams. All
  36293. segments must have the same number of streams of each type, and that will
  36294. also be the number of streams at output.
  36295. </p>
  36296. <p>The filter accepts the following options:
  36297. </p>
  36298. <dl compact="compact">
  36299. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  36300. <dd><p>Set the number of segments. Default is 2.
  36301. </p>
  36302. </dd>
  36303. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  36304. <dd><p>Set the number of output video streams, that is also the number of video
  36305. streams in each segment. Default is 1.
  36306. </p>
  36307. </dd>
  36308. <dt>&lsquo;<samp>a</samp>&rsquo;</dt>
  36309. <dd><p>Set the number of output audio streams, that is also the number of audio
  36310. streams in each segment. Default is 0.
  36311. </p>
  36312. </dd>
  36313. <dt>&lsquo;<samp>unsafe</samp>&rsquo;</dt>
  36314. <dd><p>Activate unsafe mode: do not fail if segments have a different format.
  36315. </p>
  36316. </dd>
  36317. </dl>
  36318. <p>The filter has <var>v</var>+<var>a</var> outputs: first <var>v</var> video outputs, then
  36319. <var>a</var> audio outputs.
  36320. </p>
  36321. <p>There are <var>n</var>x(<var>v</var>+<var>a</var>) inputs: first the inputs for the first
  36322. segment, in the same order as the outputs, then the inputs for the second
  36323. segment, etc.
  36324. </p>
  36325. <p>Related streams do not always have exactly the same duration, for various
  36326. reasons including codec frame size or sloppy authoring. For that reason,
  36327. related synchronized streams (e.g. a video and its audio track) should be
  36328. concatenated at once. The concat filter will use the duration of the longest
  36329. stream in each segment (except the last one), and if necessary pad shorter
  36330. audio streams with silence.
  36331. </p>
  36332. <p>For this filter to work correctly, all segments must start at timestamp 0.
  36333. </p>
  36334. <p>All corresponding streams must have the same parameters in all segments; the
  36335. filtering system will automatically select a common pixel format for video
  36336. streams, and a common sample format, sample rate and channel layout for
  36337. audio streams, but other settings, such as resolution, must be converted
  36338. explicitly by the user.
  36339. </p>
  36340. <p>Different frame rates are acceptable but will result in variable frame rate
  36341. at output; be sure to configure the output file to handle it.
  36342. </p>
  36343. <a name="Examples-31"></a>
  36344. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-31">37.8.1 Examples</a></h3>
  36345. <ul>
  36346. <li>
  36347. Concatenate an opening, an episode and an ending, all in bilingual version
  36348. (video in stream 0, audio in streams 1 and 2):
  36349. <div class="example">
  36350. <pre class="example">ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv -filter_complex \
  36351. '[0:0] [0:1] [0:2] [1:0] [1:1] [1:2] [2:0] [2:1] [2:2]
  36352. concat=n=3:v=1:a=2 [v] [a1] [a2]' \
  36353. -map '[v]' -map '[a1]' -map '[a2]' output.mkv
  36354. </pre></div>
  36355. </li><li>
  36356. Concatenate two parts, handling audio and video separately, using the
  36357. (a)movie sources, and adjusting the resolution:
  36358. <div class="example">
  36359. <pre class="example">movie=part1.mp4, scale=512:288 [v1] ; amovie=part1.mp4 [a1] ;
  36360. movie=part2.mp4, scale=512:288 [v2] ; amovie=part2.mp4 [a2] ;
  36361. [v1] [v2] concat [outv] ; [a1] [a2] concat=v=0:a=1 [outa]
  36362. </pre></div>
  36363. <p>Note that a desync will happen at the stitch if the audio and video streams
  36364. do not have exactly the same duration in the first file.
  36365. </p>
  36366. </li></ul>
  36367. <a name="Commands-33"></a>
  36368. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-33">37.8.2 Commands</a></h3>
  36369. <p>This filter supports the following commands:
  36370. </p><dl compact="compact">
  36371. <dt>&lsquo;<samp>next</samp>&rsquo;</dt>
  36372. <dd><p>Close the current segment and step to the next one
  36373. </p></dd>
  36374. </dl>
  36375. <p><a name="ebur128"></a>
  36376. </p><a name="ebur128-1"></a>
  36377. <h2 class="section"><a href="ffprobe-all.html#toc-ebur128-1">37.9 ebur128</a></h2>
  36378. <p>EBU R128 scanner filter. This filter takes an audio stream and analyzes its loudness
  36379. level. By default, it logs a message at a frequency of 10Hz with the
  36380. Momentary loudness (identified by <code>M</code>), Short-term loudness (<code>S</code>),
  36381. Integrated loudness (<code>I</code>) and Loudness Range (<code>LRA</code>).
  36382. </p>
  36383. <p>The filter can only analyze streams which have a sampling rate of 48000 Hz and whose
  36384. sample format is double-precision floating point. The input stream will be converted to
  36385. this specification, if needed. Users may need to insert aformat and/or aresample filters
  36386. after this filter to obtain the original parameters.
  36387. </p>
  36388. <p>The filter also has a video output (see the <var>video</var> option) with a real
  36389. time graph to observe the loudness evolution. The graphic contains the logged
  36390. message mentioned above, so it is not printed anymore when this option is set,
  36391. unless the verbose logging is set. The main graphing area contains the
  36392. short-term loudness (3 seconds of analysis), and the gauge on the right is for
  36393. the momentary loudness (400 milliseconds), but can optionally be configured
  36394. to instead display short-term loudness (see <var>gauge</var>).
  36395. </p>
  36396. <p>The green area marks a +/- 1LU target range around the target loudness
  36397. (-23LUFS by default, unless modified through <var>target</var>).
  36398. </p>
  36399. <p>More information about the Loudness Recommendation EBU R128 on
  36400. <a href="http://tech.ebu.ch/loudness">http://tech.ebu.ch/loudness</a>.
  36401. </p>
  36402. <p>The filter accepts the following options:
  36403. </p>
  36404. <dl compact="compact">
  36405. <dt>&lsquo;<samp>video</samp>&rsquo;</dt>
  36406. <dd><p>Activate the video output. The audio stream is passed unchanged whether this
  36407. option is set or no. The video stream will be the first output stream if
  36408. activated. Default is <code>0</code>.
  36409. </p>
  36410. </dd>
  36411. <dt>&lsquo;<samp>size</samp>&rsquo;</dt>
  36412. <dd><p>Set the video size. This option is for video only. For the syntax of this
  36413. option, check the
  36414. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  36415. Default and minimum resolution is <code>640x480</code>.
  36416. </p>
  36417. </dd>
  36418. <dt>&lsquo;<samp>meter</samp>&rsquo;</dt>
  36419. <dd><p>Set the EBU scale meter. Default is <code>9</code>. Common values are <code>9</code> and
  36420. <code>18</code>, respectively for EBU scale meter +9 and EBU scale meter +18. Any
  36421. other integer value between this range is allowed.
  36422. </p>
  36423. </dd>
  36424. <dt>&lsquo;<samp>metadata</samp>&rsquo;</dt>
  36425. <dd><p>Set metadata injection. If set to <code>1</code>, the audio input will be segmented
  36426. into 100ms output frames, each of them containing various loudness information
  36427. in metadata. All the metadata keys are prefixed with <code>lavfi.r128.</code>.
  36428. </p>
  36429. <p>Default is <code>0</code>.
  36430. </p>
  36431. </dd>
  36432. <dt>&lsquo;<samp>framelog</samp>&rsquo;</dt>
  36433. <dd><p>Force the frame logging level.
  36434. </p>
  36435. <p>Available values are:
  36436. </p><dl compact="compact">
  36437. <dt>&lsquo;<samp>info</samp>&rsquo;</dt>
  36438. <dd><p>information logging level
  36439. </p></dd>
  36440. <dt>&lsquo;<samp>verbose</samp>&rsquo;</dt>
  36441. <dd><p>verbose logging level
  36442. </p></dd>
  36443. </dl>
  36444. <p>By default, the logging level is set to <var>info</var>. If the &lsquo;<samp>video</samp>&rsquo; or
  36445. the &lsquo;<samp>metadata</samp>&rsquo; options are set, it switches to <var>verbose</var>.
  36446. </p>
  36447. </dd>
  36448. <dt>&lsquo;<samp>peak</samp>&rsquo;</dt>
  36449. <dd><p>Set peak mode(s).
  36450. </p>
  36451. <p>Available modes can be cumulated (the option is a <code>flag</code> type). Possible
  36452. values are:
  36453. </p><dl compact="compact">
  36454. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  36455. <dd><p>Disable any peak mode (default).
  36456. </p></dd>
  36457. <dt>&lsquo;<samp>sample</samp>&rsquo;</dt>
  36458. <dd><p>Enable sample-peak mode.
  36459. </p>
  36460. <p>Simple peak mode looking for the higher sample value. It logs a message
  36461. for sample-peak (identified by <code>SPK</code>).
  36462. </p></dd>
  36463. <dt>&lsquo;<samp>true</samp>&rsquo;</dt>
  36464. <dd><p>Enable true-peak mode.
  36465. </p>
  36466. <p>If enabled, the peak lookup is done on an over-sampled version of the input
  36467. stream for better peak accuracy. It logs a message for true-peak.
  36468. (identified by <code>TPK</code>) and true-peak per frame (identified by <code>FTPK</code>).
  36469. This mode requires a build with <code>libswresample</code>.
  36470. </p></dd>
  36471. </dl>
  36472. </dd>
  36473. <dt>&lsquo;<samp>dualmono</samp>&rsquo;</dt>
  36474. <dd><p>Treat mono input files as &quot;dual mono&quot;. If a mono file is intended for playback
  36475. on a stereo system, its EBU R128 measurement will be perceptually incorrect.
  36476. If set to <code>true</code>, this option will compensate for this effect.
  36477. Multi-channel input files are not affected by this option.
  36478. </p>
  36479. </dd>
  36480. <dt>&lsquo;<samp>panlaw</samp>&rsquo;</dt>
  36481. <dd><p>Set a specific pan law to be used for the measurement of dual mono files.
  36482. This parameter is optional, and has a default value of -3.01dB.
  36483. </p>
  36484. </dd>
  36485. <dt>&lsquo;<samp>target</samp>&rsquo;</dt>
  36486. <dd><p>Set a specific target level (in LUFS) used as relative zero in the visualization.
  36487. This parameter is optional and has a default value of -23LUFS as specified
  36488. by EBU R128. However, material published online may prefer a level of -16LUFS
  36489. (e.g. for use with podcasts or video platforms).
  36490. </p>
  36491. </dd>
  36492. <dt>&lsquo;<samp>gauge</samp>&rsquo;</dt>
  36493. <dd><p>Set the value displayed by the gauge. Valid values are <code>momentary</code> and s
  36494. <code>shortterm</code>. By default the momentary value will be used, but in certain
  36495. scenarios it may be more useful to observe the short term value instead (e.g.
  36496. live mixing).
  36497. </p>
  36498. </dd>
  36499. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  36500. <dd><p>Sets the display scale for the loudness. Valid parameters are <code>absolute</code>
  36501. (in LUFS) or <code>relative</code> (LU) relative to the target. This only affects the
  36502. video output, not the summary or continuous log output.
  36503. </p></dd>
  36504. </dl>
  36505. <a name="Examples-27"></a>
  36506. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-27">37.9.1 Examples</a></h3>
  36507. <ul>
  36508. <li>
  36509. Real-time graph using <code>ffplay</code>, with a EBU scale meter +18:
  36510. <div class="example">
  36511. <pre class="example">ffplay -f lavfi -i &quot;amovie=input.mp3,ebur128=video=1:meter=18 [out0][out1]&quot;
  36512. </pre></div>
  36513. </li><li>
  36514. Run an analysis with <code>ffmpeg</code>:
  36515. <div class="example">
  36516. <pre class="example">ffmpeg -nostats -i input.mp3 -filter_complex ebur128 -f null -
  36517. </pre></div>
  36518. </li></ul>
  36519. <a name="interleave_002c-ainterleave"></a>
  36520. <h2 class="section"><a href="ffprobe-all.html#toc-interleave_002c-ainterleave">37.10 interleave, ainterleave</a></h2>
  36521. <p>Temporally interleave frames from several inputs.
  36522. </p>
  36523. <p><code>interleave</code> works with video inputs, <code>ainterleave</code> with audio.
  36524. </p>
  36525. <p>These filters read frames from several inputs and send the oldest
  36526. queued frame to the output.
  36527. </p>
  36528. <p>Input streams must have well defined, monotonically increasing frame
  36529. timestamp values.
  36530. </p>
  36531. <p>In order to submit one frame to output, these filters need to enqueue
  36532. at least one frame for each input, so they cannot work in case one
  36533. input is not yet terminated and will not receive incoming frames.
  36534. </p>
  36535. <p>For example consider the case when one input is a <code>select</code> filter
  36536. which always drops input frames. The <code>interleave</code> filter will keep
  36537. reading from that input, but it will never be able to send new frames
  36538. to output until the input sends an end-of-stream signal.
  36539. </p>
  36540. <p>Also, depending on inputs synchronization, the filters will drop
  36541. frames in case one input receives more frames than the other ones, and
  36542. the queue is already filled.
  36543. </p>
  36544. <p>These filters accept the following options:
  36545. </p>
  36546. <dl compact="compact">
  36547. <dt>&lsquo;<samp>nb_inputs, n</samp>&rsquo;</dt>
  36548. <dd><p>Set the number of different inputs, it is 2 by default.
  36549. </p></dd>
  36550. </dl>
  36551. <a name="Examples-4"></a>
  36552. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-4">37.10.1 Examples</a></h3>
  36553. <ul>
  36554. <li>
  36555. Interleave frames belonging to different streams using <code>ffmpeg</code>:
  36556. <div class="example">
  36557. <pre class="example">ffmpeg -i bambi.avi -i pr0n.mkv -filter_complex &quot;[0:v][1:v] interleave&quot; out.avi
  36558. </pre></div>
  36559. </li><li>
  36560. Add flickering blur effect:
  36561. <div class="example">
  36562. <pre class="example">select='if(gt(random(0), 0.2), 1, 2)':n=2 [tmp], boxblur=2:2, [tmp] interleave
  36563. </pre></div>
  36564. </li></ul>
  36565. <a name="metadata_002c-ametadata"></a>
  36566. <h2 class="section"><a href="ffprobe-all.html#toc-metadata_002c-ametadata">37.11 metadata, ametadata</a></h2>
  36567. <p>Manipulate frame metadata.
  36568. </p>
  36569. <p>This filter accepts the following options:
  36570. </p>
  36571. <dl compact="compact">
  36572. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  36573. <dd><p>Set mode of operation of the filter.
  36574. </p>
  36575. <p>Can be one of the following:
  36576. </p>
  36577. <dl compact="compact">
  36578. <dt>&lsquo;<samp>select</samp>&rsquo;</dt>
  36579. <dd><p>If both <code>value</code> and <code>key</code> is set, select frames
  36580. which have such metadata. If only <code>key</code> is set, select
  36581. every frame that has such key in metadata.
  36582. </p>
  36583. </dd>
  36584. <dt>&lsquo;<samp>add</samp>&rsquo;</dt>
  36585. <dd><p>Add new metadata <code>key</code> and <code>value</code>. If key is already available
  36586. do nothing.
  36587. </p>
  36588. </dd>
  36589. <dt>&lsquo;<samp>modify</samp>&rsquo;</dt>
  36590. <dd><p>Modify value of already present key.
  36591. </p>
  36592. </dd>
  36593. <dt>&lsquo;<samp>delete</samp>&rsquo;</dt>
  36594. <dd><p>If <code>value</code> is set, delete only keys that have such value.
  36595. Otherwise, delete key. If <code>key</code> is not set, delete all metadata values in
  36596. the frame.
  36597. </p>
  36598. </dd>
  36599. <dt>&lsquo;<samp>print</samp>&rsquo;</dt>
  36600. <dd><p>Print key and its value if metadata was found. If <code>key</code> is not set print all
  36601. metadata values available in frame.
  36602. </p></dd>
  36603. </dl>
  36604. </dd>
  36605. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  36606. <dd><p>Set key used with all modes. Must be set for all modes except <code>print</code> and <code>delete</code>.
  36607. </p>
  36608. </dd>
  36609. <dt>&lsquo;<samp>value</samp>&rsquo;</dt>
  36610. <dd><p>Set metadata value which will be used. This option is mandatory for
  36611. <code>modify</code> and <code>add</code> mode.
  36612. </p>
  36613. </dd>
  36614. <dt>&lsquo;<samp>function</samp>&rsquo;</dt>
  36615. <dd><p>Which function to use when comparing metadata value and <code>value</code>.
  36616. </p>
  36617. <p>Can be one of following:
  36618. </p>
  36619. <dl compact="compact">
  36620. <dt>&lsquo;<samp>same_str</samp>&rsquo;</dt>
  36621. <dd><p>Values are interpreted as strings, returns true if metadata value is same as <code>value</code>.
  36622. </p>
  36623. </dd>
  36624. <dt>&lsquo;<samp>starts_with</samp>&rsquo;</dt>
  36625. <dd><p>Values are interpreted as strings, returns true if metadata value starts with
  36626. the <code>value</code> option string.
  36627. </p>
  36628. </dd>
  36629. <dt>&lsquo;<samp>less</samp>&rsquo;</dt>
  36630. <dd><p>Values are interpreted as floats, returns true if metadata value is less than <code>value</code>.
  36631. </p>
  36632. </dd>
  36633. <dt>&lsquo;<samp>equal</samp>&rsquo;</dt>
  36634. <dd><p>Values are interpreted as floats, returns true if <code>value</code> is equal with metadata value.
  36635. </p>
  36636. </dd>
  36637. <dt>&lsquo;<samp>greater</samp>&rsquo;</dt>
  36638. <dd><p>Values are interpreted as floats, returns true if metadata value is greater than <code>value</code>.
  36639. </p>
  36640. </dd>
  36641. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  36642. <dd><p>Values are interpreted as floats, returns true if expression from option <code>expr</code>
  36643. evaluates to true.
  36644. </p>
  36645. </dd>
  36646. <dt>&lsquo;<samp>ends_with</samp>&rsquo;</dt>
  36647. <dd><p>Values are interpreted as strings, returns true if metadata value ends with
  36648. the <code>value</code> option string.
  36649. </p></dd>
  36650. </dl>
  36651. </dd>
  36652. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  36653. <dd><p>Set expression which is used when <code>function</code> is set to <code>expr</code>.
  36654. The expression is evaluated through the eval API and can contain the following
  36655. constants:
  36656. </p>
  36657. <dl compact="compact">
  36658. <dt>&lsquo;<samp>VALUE1</samp>&rsquo;</dt>
  36659. <dd><p>Float representation of <code>value</code> from metadata key.
  36660. </p>
  36661. </dd>
  36662. <dt>&lsquo;<samp>VALUE2</samp>&rsquo;</dt>
  36663. <dd><p>Float representation of <code>value</code> as supplied by user in <code>value</code> option.
  36664. </p></dd>
  36665. </dl>
  36666. </dd>
  36667. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  36668. <dd><p>If specified in <code>print</code> mode, output is written to the named file. Instead of
  36669. plain filename any writable url can be specified. Filename &ldquo;-&rdquo; is a shorthand
  36670. for standard output. If <code>file</code> option is not set, output is written to the log
  36671. with AV_LOG_INFO loglevel.
  36672. </p>
  36673. </dd>
  36674. <dt>&lsquo;<samp>direct</samp>&rsquo;</dt>
  36675. <dd><p>Reduces buffering in print mode when output is written to a URL set using <var>file</var>.
  36676. </p>
  36677. </dd>
  36678. </dl>
  36679. <a name="Examples-155"></a>
  36680. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-155">37.11.1 Examples</a></h3>
  36681. <ul>
  36682. <li>
  36683. Print all metadata values for frames with key <code>lavfi.signalstats.YDIF</code> with values
  36684. between 0 and 1.
  36685. <div class="example">
  36686. <pre class="example">signalstats,metadata=print:key=lavfi.signalstats.YDIF:value=0:function=expr:expr='between(VALUE1,0,1)'
  36687. </pre></div>
  36688. </li><li>
  36689. Print silencedetect output to file &lsquo;<tt>metadata.txt</tt>&rsquo;.
  36690. <div class="example">
  36691. <pre class="example">silencedetect,ametadata=mode=print:file=metadata.txt
  36692. </pre></div>
  36693. </li><li>
  36694. Direct all metadata to a pipe with file descriptor 4.
  36695. <div class="example">
  36696. <pre class="example">metadata=mode=print:file='pipe\:4'
  36697. </pre></div>
  36698. </li></ul>
  36699. <a name="perms_002c-aperms"></a>
  36700. <h2 class="section"><a href="ffprobe-all.html#toc-perms_002c-aperms">37.12 perms, aperms</a></h2>
  36701. <p>Set read/write permissions for the output frames.
  36702. </p>
  36703. <p>These filters are mainly aimed at developers to test direct path in the
  36704. following filter in the filtergraph.
  36705. </p>
  36706. <p>The filters accept the following options:
  36707. </p>
  36708. <dl compact="compact">
  36709. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  36710. <dd><p>Select the permissions mode.
  36711. </p>
  36712. <p>It accepts the following values:
  36713. </p><dl compact="compact">
  36714. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  36715. <dd><p>Do nothing. This is the default.
  36716. </p></dd>
  36717. <dt>&lsquo;<samp>ro</samp>&rsquo;</dt>
  36718. <dd><p>Set all the output frames read-only.
  36719. </p></dd>
  36720. <dt>&lsquo;<samp>rw</samp>&rsquo;</dt>
  36721. <dd><p>Set all the output frames directly writable.
  36722. </p></dd>
  36723. <dt>&lsquo;<samp>toggle</samp>&rsquo;</dt>
  36724. <dd><p>Make the frame read-only if writable, and writable if read-only.
  36725. </p></dd>
  36726. <dt>&lsquo;<samp>random</samp>&rsquo;</dt>
  36727. <dd><p>Set each output frame read-only or writable randomly.
  36728. </p></dd>
  36729. </dl>
  36730. </dd>
  36731. <dt>&lsquo;<samp>seed</samp>&rsquo;</dt>
  36732. <dd><p>Set the seed for the <var>random</var> mode, must be an integer included between
  36733. <code>0</code> and <code>UINT32_MAX</code>. If not specified, or if explicitly set to
  36734. <code>-1</code>, the filter will try to use a good random seed on a best effort
  36735. basis.
  36736. </p></dd>
  36737. </dl>
  36738. <p>Note: in case of auto-inserted filter between the permission filter and the
  36739. following one, the permission might not be received as expected in that
  36740. following filter. Inserting a <a href="#format">format</a> or <a href="#aformat">aformat</a> filter before the
  36741. perms/aperms filter can avoid this problem.
  36742. </p>
  36743. <a name="realtime_002c-arealtime"></a>
  36744. <h2 class="section"><a href="ffprobe-all.html#toc-realtime_002c-arealtime">37.13 realtime, arealtime</a></h2>
  36745. <p>Slow down filtering to match real time approximately.
  36746. </p>
  36747. <p>These filters will pause the filtering for a variable amount of time to
  36748. match the output rate with the input timestamps.
  36749. They are similar to the &lsquo;<samp>re</samp>&rsquo; option to <code>ffmpeg</code>.
  36750. </p>
  36751. <p>They accept the following options:
  36752. </p>
  36753. <dl compact="compact">
  36754. <dt>&lsquo;<samp>limit</samp>&rsquo;</dt>
  36755. <dd><p>Time limit for the pauses. Any pause longer than that will be considered
  36756. a timestamp discontinuity and reset the timer. Default is 2 seconds.
  36757. </p></dd>
  36758. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  36759. <dd><p>Speed factor for processing. The value must be a float larger than zero.
  36760. Values larger than 1.0 will result in faster than realtime processing,
  36761. smaller will slow processing down. The <var>limit</var> is automatically adapted
  36762. accordingly. Default is 1.0.
  36763. </p>
  36764. <p>A processing speed faster than what is possible without these filters cannot
  36765. be achieved.
  36766. </p></dd>
  36767. </dl>
  36768. <p><a name="select"></a>
  36769. </p><a name="select_002c-aselect"></a>
  36770. <h2 class="section"><a href="ffprobe-all.html#toc-select_002c-aselect">37.14 select, aselect</a></h2>
  36771. <p>Select frames to pass in output.
  36772. </p>
  36773. <p>This filter accepts the following options:
  36774. </p>
  36775. <dl compact="compact">
  36776. <dt>&lsquo;<samp>expr, e</samp>&rsquo;</dt>
  36777. <dd><p>Set expression, which is evaluated for each input frame.
  36778. </p>
  36779. <p>If the expression is evaluated to zero, the frame is discarded.
  36780. </p>
  36781. <p>If the evaluation result is negative or NaN, the frame is sent to the
  36782. first output; otherwise it is sent to the output with index
  36783. <code>ceil(val)-1</code>, assuming that the input index starts from 0.
  36784. </p>
  36785. <p>For example a value of <code>1.2</code> corresponds to the output with index
  36786. <code>ceil(1.2)-1 = 2-1 = 1</code>, that is the second output.
  36787. </p>
  36788. </dd>
  36789. <dt>&lsquo;<samp>outputs, n</samp>&rsquo;</dt>
  36790. <dd><p>Set the number of outputs. The output to which to send the selected
  36791. frame is based on the result of the evaluation. Default value is 1.
  36792. </p></dd>
  36793. </dl>
  36794. <p>The expression can contain the following constants:
  36795. </p>
  36796. <dl compact="compact">
  36797. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  36798. <dd><p>The (sequential) number of the filtered frame, starting from 0.
  36799. </p>
  36800. </dd>
  36801. <dt>&lsquo;<samp>selected_n</samp>&rsquo;</dt>
  36802. <dd><p>The (sequential) number of the selected frame, starting from 0.
  36803. </p>
  36804. </dd>
  36805. <dt>&lsquo;<samp>prev_selected_n</samp>&rsquo;</dt>
  36806. <dd><p>The sequential number of the last selected frame. It&rsquo;s NAN if undefined.
  36807. </p>
  36808. </dd>
  36809. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  36810. <dd><p>The timebase of the input timestamps.
  36811. </p>
  36812. </dd>
  36813. <dt>&lsquo;<samp>pts</samp>&rsquo;</dt>
  36814. <dd><p>The PTS (Presentation TimeStamp) of the filtered video frame,
  36815. expressed in <var>TB</var> units. It&rsquo;s NAN if undefined.
  36816. </p>
  36817. </dd>
  36818. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  36819. <dd><p>The PTS of the filtered video frame,
  36820. expressed in seconds. It&rsquo;s NAN if undefined.
  36821. </p>
  36822. </dd>
  36823. <dt>&lsquo;<samp>prev_pts</samp>&rsquo;</dt>
  36824. <dd><p>The PTS of the previously filtered video frame. It&rsquo;s NAN if undefined.
  36825. </p>
  36826. </dd>
  36827. <dt>&lsquo;<samp>prev_selected_pts</samp>&rsquo;</dt>
  36828. <dd><p>The PTS of the last previously filtered video frame. It&rsquo;s NAN if undefined.
  36829. </p>
  36830. </dd>
  36831. <dt>&lsquo;<samp>prev_selected_t</samp>&rsquo;</dt>
  36832. <dd><p>The PTS of the last previously selected video frame, expressed in seconds. It&rsquo;s NAN if undefined.
  36833. </p>
  36834. </dd>
  36835. <dt>&lsquo;<samp>start_pts</samp>&rsquo;</dt>
  36836. <dd><p>The PTS of the first video frame in the video. It&rsquo;s NAN if undefined.
  36837. </p>
  36838. </dd>
  36839. <dt>&lsquo;<samp>start_t</samp>&rsquo;</dt>
  36840. <dd><p>The time of the first video frame in the video. It&rsquo;s NAN if undefined.
  36841. </p>
  36842. </dd>
  36843. <dt>&lsquo;<samp>pict_type <em>(video only)</em></samp>&rsquo;</dt>
  36844. <dd><p>The type of the filtered frame. It can assume one of the following
  36845. values:
  36846. </p><dl compact="compact">
  36847. <dt>&lsquo;<samp>I</samp>&rsquo;</dt>
  36848. <dt>&lsquo;<samp>P</samp>&rsquo;</dt>
  36849. <dt>&lsquo;<samp>B</samp>&rsquo;</dt>
  36850. <dt>&lsquo;<samp>S</samp>&rsquo;</dt>
  36851. <dt>&lsquo;<samp>SI</samp>&rsquo;</dt>
  36852. <dt>&lsquo;<samp>SP</samp>&rsquo;</dt>
  36853. <dt>&lsquo;<samp>BI</samp>&rsquo;</dt>
  36854. </dl>
  36855. </dd>
  36856. <dt>&lsquo;<samp>interlace_type <em>(video only)</em></samp>&rsquo;</dt>
  36857. <dd><p>The frame interlace type. It can assume one of the following values:
  36858. </p><dl compact="compact">
  36859. <dt>&lsquo;<samp>PROGRESSIVE</samp>&rsquo;</dt>
  36860. <dd><p>The frame is progressive (not interlaced).
  36861. </p></dd>
  36862. <dt>&lsquo;<samp>TOPFIRST</samp>&rsquo;</dt>
  36863. <dd><p>The frame is top-field-first.
  36864. </p></dd>
  36865. <dt>&lsquo;<samp>BOTTOMFIRST</samp>&rsquo;</dt>
  36866. <dd><p>The frame is bottom-field-first.
  36867. </p></dd>
  36868. </dl>
  36869. </dd>
  36870. <dt>&lsquo;<samp>consumed_sample_n <em>(audio only)</em></samp>&rsquo;</dt>
  36871. <dd><p>the number of selected samples before the current frame
  36872. </p>
  36873. </dd>
  36874. <dt>&lsquo;<samp>samples_n <em>(audio only)</em></samp>&rsquo;</dt>
  36875. <dd><p>the number of samples in the current frame
  36876. </p>
  36877. </dd>
  36878. <dt>&lsquo;<samp>sample_rate <em>(audio only)</em></samp>&rsquo;</dt>
  36879. <dd><p>the input sample rate
  36880. </p>
  36881. </dd>
  36882. <dt>&lsquo;<samp>key</samp>&rsquo;</dt>
  36883. <dd><p>This is 1 if the filtered frame is a key-frame, 0 otherwise.
  36884. </p>
  36885. </dd>
  36886. <dt>&lsquo;<samp>pos</samp>&rsquo;</dt>
  36887. <dd><p>the position in the file of the filtered frame, -1 if the information
  36888. is not available (e.g. for synthetic video)
  36889. </p>
  36890. </dd>
  36891. <dt>&lsquo;<samp>scene <em>(video only)</em></samp>&rsquo;</dt>
  36892. <dd><p>value between 0 and 1 to indicate a new scene; a low value reflects a low
  36893. probability for the current frame to introduce a new scene, while a higher
  36894. value means the current frame is more likely to be one (see the example below)
  36895. </p>
  36896. </dd>
  36897. <dt>&lsquo;<samp>concatdec_select</samp>&rsquo;</dt>
  36898. <dd><p>The concat demuxer can select only part of a concat input file by setting an
  36899. inpoint and an outpoint, but the output packets may not be entirely contained
  36900. in the selected interval. By using this variable, it is possible to skip frames
  36901. generated by the concat demuxer which are not exactly contained in the selected
  36902. interval.
  36903. </p>
  36904. <p>This works by comparing the frame pts against the <var>lavf.concat.start_time</var>
  36905. and the <var>lavf.concat.duration</var> packet metadata values which are also
  36906. present in the decoded frames.
  36907. </p>
  36908. <p>The <var>concatdec_select</var> variable is -1 if the frame pts is at least
  36909. start_time and either the duration metadata is missing or the frame pts is less
  36910. than start_time + duration, 0 otherwise, and NaN if the start_time metadata is
  36911. missing.
  36912. </p>
  36913. <p>That basically means that an input frame is selected if its pts is within the
  36914. interval set by the concat demuxer.
  36915. </p>
  36916. </dd>
  36917. </dl>
  36918. <p>The default value of the select expression is &quot;1&quot;.
  36919. </p>
  36920. <a name="Examples-136"></a>
  36921. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-136">37.14.1 Examples</a></h3>
  36922. <ul>
  36923. <li>
  36924. Select all frames in input:
  36925. <div class="example">
  36926. <pre class="example">select
  36927. </pre></div>
  36928. <p>The example above is the same as:
  36929. </p><div class="example">
  36930. <pre class="example">select=1
  36931. </pre></div>
  36932. </li><li>
  36933. Skip all frames:
  36934. <div class="example">
  36935. <pre class="example">select=0
  36936. </pre></div>
  36937. </li><li>
  36938. Select only I-frames:
  36939. <div class="example">
  36940. <pre class="example">select='eq(pict_type\,I)'
  36941. </pre></div>
  36942. </li><li>
  36943. Select one frame every 100:
  36944. <div class="example">
  36945. <pre class="example">select='not(mod(n\,100))'
  36946. </pre></div>
  36947. </li><li>
  36948. Select only frames contained in the 10-20 time interval:
  36949. <div class="example">
  36950. <pre class="example">select=between(t\,10\,20)
  36951. </pre></div>
  36952. </li><li>
  36953. Select only I-frames contained in the 10-20 time interval:
  36954. <div class="example">
  36955. <pre class="example">select=between(t\,10\,20)*eq(pict_type\,I)
  36956. </pre></div>
  36957. </li><li>
  36958. Select frames with a minimum distance of 10 seconds:
  36959. <div class="example">
  36960. <pre class="example">select='isnan(prev_selected_t)+gte(t-prev_selected_t\,10)'
  36961. </pre></div>
  36962. </li><li>
  36963. Use aselect to select only audio frames with samples number &gt; 100:
  36964. <div class="example">
  36965. <pre class="example">aselect='gt(samples_n\,100)'
  36966. </pre></div>
  36967. </li><li>
  36968. Create a mosaic of the first scenes:
  36969. <div class="example">
  36970. <pre class="example">ffmpeg -i video.avi -vf select='gt(scene\,0.4)',scale=160:120,tile -frames:v 1 preview.png
  36971. </pre></div>
  36972. <p>Comparing <var>scene</var> against a value between 0.3 and 0.5 is generally a sane
  36973. choice.
  36974. </p>
  36975. </li><li>
  36976. Send even and odd frames to separate outputs, and compose them:
  36977. <div class="example">
  36978. <pre class="example">select=n=2:e='mod(n, 2)+1' [odd][even]; [odd] pad=h=2*ih [tmp]; [tmp][even] overlay=y=h
  36979. </pre></div>
  36980. </li><li>
  36981. Select useful frames from an ffconcat file which is using inpoints and
  36982. outpoints but where the source files are not intra frame only.
  36983. <div class="example">
  36984. <pre class="example">ffmpeg -copyts -vsync 0 -segment_time_metadata 1 -i input.ffconcat -vf select=concatdec_select -af aselect=concatdec_select output.avi
  36985. </pre></div>
  36986. </li></ul>
  36987. <a name="sendcmd_002c-asendcmd"></a>
  36988. <h2 class="section"><a href="ffprobe-all.html#toc-sendcmd_002c-asendcmd">37.15 sendcmd, asendcmd</a></h2>
  36989. <p>Send commands to filters in the filtergraph.
  36990. </p>
  36991. <p>These filters read commands to be sent to other filters in the
  36992. filtergraph.
  36993. </p>
  36994. <p><code>sendcmd</code> must be inserted between two video filters,
  36995. <code>asendcmd</code> must be inserted between two audio filters, but apart
  36996. from that they act the same way.
  36997. </p>
  36998. <p>The specification of commands can be provided in the filter arguments
  36999. with the <var>commands</var> option, or in a file specified by the
  37000. <var>filename</var> option.
  37001. </p>
  37002. <p>These filters accept the following options:
  37003. </p><dl compact="compact">
  37004. <dt>&lsquo;<samp>commands, c</samp>&rsquo;</dt>
  37005. <dd><p>Set the commands to be read and sent to the other filters.
  37006. </p></dd>
  37007. <dt>&lsquo;<samp>filename, f</samp>&rsquo;</dt>
  37008. <dd><p>Set the filename of the commands to be read and sent to the other
  37009. filters.
  37010. </p></dd>
  37011. </dl>
  37012. <a name="Commands-syntax"></a>
  37013. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-syntax">37.15.1 Commands syntax</a></h3>
  37014. <p>A commands description consists of a sequence of interval
  37015. specifications, comprising a list of commands to be executed when a
  37016. particular event related to that interval occurs. The occurring event
  37017. is typically the current frame time entering or leaving a given time
  37018. interval.
  37019. </p>
  37020. <p>An interval is specified by the following syntax:
  37021. </p><div class="example">
  37022. <pre class="example"><var>START</var>[-<var>END</var>] <var>COMMANDS</var>;
  37023. </pre></div>
  37024. <p>The time interval is specified by the <var>START</var> and <var>END</var> times.
  37025. <var>END</var> is optional and defaults to the maximum time.
  37026. </p>
  37027. <p>The current frame time is considered within the specified interval if
  37028. it is included in the interval [<var>START</var>, <var>END</var>), that is when
  37029. the time is greater or equal to <var>START</var> and is lesser than
  37030. <var>END</var>.
  37031. </p>
  37032. <p><var>COMMANDS</var> consists of a sequence of one or more command
  37033. specifications, separated by &quot;,&quot;, relating to that interval. The
  37034. syntax of a command specification is given by:
  37035. </p><div class="example">
  37036. <pre class="example">[<var>FLAGS</var>] <var>TARGET</var> <var>COMMAND</var> <var>ARG</var>
  37037. </pre></div>
  37038. <p><var>FLAGS</var> is optional and specifies the type of events relating to
  37039. the time interval which enable sending the specified command, and must
  37040. be a non-null sequence of identifier flags separated by &quot;+&quot; or &quot;|&quot; and
  37041. enclosed between &quot;[&quot; and &quot;]&quot;.
  37042. </p>
  37043. <p>The following flags are recognized:
  37044. </p><dl compact="compact">
  37045. <dt>&lsquo;<samp>enter</samp>&rsquo;</dt>
  37046. <dd><p>The command is sent when the current frame timestamp enters the
  37047. specified interval. In other words, the command is sent when the
  37048. previous frame timestamp was not in the given interval, and the
  37049. current is.
  37050. </p>
  37051. </dd>
  37052. <dt>&lsquo;<samp>leave</samp>&rsquo;</dt>
  37053. <dd><p>The command is sent when the current frame timestamp leaves the
  37054. specified interval. In other words, the command is sent when the
  37055. previous frame timestamp was in the given interval, and the
  37056. current is not.
  37057. </p>
  37058. </dd>
  37059. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37060. <dd><p>The command <var>ARG</var> is interpreted as expression and result of
  37061. expression is passed as <var>ARG</var>.
  37062. </p>
  37063. <p>The expression is evaluated through the eval API and can contain the following
  37064. constants:
  37065. </p>
  37066. <dl compact="compact">
  37067. <dt>&lsquo;<samp>POS</samp>&rsquo;</dt>
  37068. <dd><p>Original position in the file of the frame, or undefined if undefined
  37069. for the current frame.
  37070. </p>
  37071. </dd>
  37072. <dt>&lsquo;<samp>PTS</samp>&rsquo;</dt>
  37073. <dd><p>The presentation timestamp in input.
  37074. </p>
  37075. </dd>
  37076. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  37077. <dd><p>The count of the input frame for video or audio, starting from 0.
  37078. </p>
  37079. </dd>
  37080. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  37081. <dd><p>The time in seconds of the current frame.
  37082. </p></dd>
  37083. </dl>
  37084. </dd>
  37085. </dl>
  37086. <p>If <var>FLAGS</var> is not specified, a default value of <code>[enter]</code> is
  37087. assumed.
  37088. </p>
  37089. <p><var>TARGET</var> specifies the target of the command, usually the name of
  37090. the filter class or a specific filter instance name.
  37091. </p>
  37092. <p><var>COMMAND</var> specifies the name of the command for the target filter.
  37093. </p>
  37094. <p><var>ARG</var> is optional and specifies the optional list of argument for
  37095. the given <var>COMMAND</var>.
  37096. </p>
  37097. <p>Between one interval specification and another, whitespaces, or
  37098. sequences of characters starting with <code>#</code> until the end of line,
  37099. are ignored and can be used to annotate comments.
  37100. </p>
  37101. <p>A simplified BNF description of the commands specification syntax
  37102. follows:
  37103. </p><div class="example">
  37104. <pre class="example"><var>COMMAND_FLAG</var> ::= &quot;enter&quot; | &quot;leave&quot;
  37105. <var>COMMAND_FLAGS</var> ::= <var>COMMAND_FLAG</var> [(+|&quot;|&quot;)<var>COMMAND_FLAG</var>]
  37106. <var>COMMAND</var> ::= [&quot;[&quot; <var>COMMAND_FLAGS</var> &quot;]&quot;] <var>TARGET</var> <var>COMMAND</var> [<var>ARG</var>]
  37107. <var>COMMANDS</var> ::= <var>COMMAND</var> [,<var>COMMANDS</var>]
  37108. <var>INTERVAL</var> ::= <var>START</var>[-<var>END</var>] <var>COMMANDS</var>
  37109. <var>INTERVALS</var> ::= <var>INTERVAL</var>[;<var>INTERVALS</var>]
  37110. </pre></div>
  37111. <a name="Examples-24"></a>
  37112. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-24">37.15.2 Examples</a></h3>
  37113. <ul>
  37114. <li>
  37115. Specify audio tempo change at second 4:
  37116. <div class="example">
  37117. <pre class="example">asendcmd=c='4.0 atempo tempo 1.5',atempo
  37118. </pre></div>
  37119. </li><li>
  37120. Target a specific filter instance:
  37121. <div class="example">
  37122. <pre class="example">asendcmd=c='4.0 atempo@my tempo 1.5',atempo@my
  37123. </pre></div>
  37124. </li><li>
  37125. Specify a list of drawtext and hue commands in a file.
  37126. <div class="example">
  37127. <pre class="example"># show text in the interval 5-10
  37128. 5.0-10.0 [enter] drawtext reinit 'fontfile=FreeSerif.ttf:text=hello world',
  37129. [leave] drawtext reinit 'fontfile=FreeSerif.ttf:text=';
  37130. # desaturate the image in the interval 15-20
  37131. 15.0-20.0 [enter] hue s 0,
  37132. [enter] drawtext reinit 'fontfile=FreeSerif.ttf:text=nocolor',
  37133. [leave] hue s 1,
  37134. [leave] drawtext reinit 'fontfile=FreeSerif.ttf:text=color';
  37135. # apply an exponential saturation fade-out effect, starting from time 25
  37136. 25 [enter] hue s exp(25-t)
  37137. </pre></div>
  37138. <p>A filtergraph allowing to read and process the above command list
  37139. stored in a file &lsquo;<tt>test.cmd</tt>&rsquo;, can be specified with:
  37140. </p><div class="example">
  37141. <pre class="example">sendcmd=f=test.cmd,drawtext=fontfile=FreeSerif.ttf:text='',hue
  37142. </pre></div>
  37143. </li></ul>
  37144. <p><a name="setpts"></a>
  37145. </p><a name="setpts_002c-asetpts"></a>
  37146. <h2 class="section"><a href="ffprobe-all.html#toc-setpts_002c-asetpts">37.16 setpts, asetpts</a></h2>
  37147. <p>Change the PTS (presentation timestamp) of the input frames.
  37148. </p>
  37149. <p><code>setpts</code> works on video frames, <code>asetpts</code> on audio frames.
  37150. </p>
  37151. <p>This filter accepts the following options:
  37152. </p>
  37153. <dl compact="compact">
  37154. <dt>&lsquo;<samp>expr</samp>&rsquo;</dt>
  37155. <dd><p>The expression which is evaluated for each frame to construct its timestamp.
  37156. </p>
  37157. </dd>
  37158. </dl>
  37159. <p>The expression is evaluated through the eval API and can contain the following
  37160. constants:
  37161. </p>
  37162. <dl compact="compact">
  37163. <dt>&lsquo;<samp>FRAME_RATE, FR</samp>&rsquo;</dt>
  37164. <dd><p>frame rate, only defined for constant frame-rate video
  37165. </p>
  37166. </dd>
  37167. <dt>&lsquo;<samp>PTS</samp>&rsquo;</dt>
  37168. <dd><p>The presentation timestamp in input
  37169. </p>
  37170. </dd>
  37171. <dt>&lsquo;<samp>N</samp>&rsquo;</dt>
  37172. <dd><p>The count of the input frame for video or the number of consumed samples,
  37173. not including the current frame for audio, starting from 0.
  37174. </p>
  37175. </dd>
  37176. <dt>&lsquo;<samp>NB_CONSUMED_SAMPLES</samp>&rsquo;</dt>
  37177. <dd><p>The number of consumed samples, not including the current frame (only
  37178. audio)
  37179. </p>
  37180. </dd>
  37181. <dt>&lsquo;<samp>NB_SAMPLES, S</samp>&rsquo;</dt>
  37182. <dd><p>The number of samples in the current frame (only audio)
  37183. </p>
  37184. </dd>
  37185. <dt>&lsquo;<samp>SAMPLE_RATE, SR</samp>&rsquo;</dt>
  37186. <dd><p>The audio sample rate.
  37187. </p>
  37188. </dd>
  37189. <dt>&lsquo;<samp>STARTPTS</samp>&rsquo;</dt>
  37190. <dd><p>The PTS of the first frame.
  37191. </p>
  37192. </dd>
  37193. <dt>&lsquo;<samp>STARTT</samp>&rsquo;</dt>
  37194. <dd><p>the time in seconds of the first frame
  37195. </p>
  37196. </dd>
  37197. <dt>&lsquo;<samp>INTERLACED</samp>&rsquo;</dt>
  37198. <dd><p>State whether the current frame is interlaced.
  37199. </p>
  37200. </dd>
  37201. <dt>&lsquo;<samp>T</samp>&rsquo;</dt>
  37202. <dd><p>the time in seconds of the current frame
  37203. </p>
  37204. </dd>
  37205. <dt>&lsquo;<samp>POS</samp>&rsquo;</dt>
  37206. <dd><p>original position in the file of the frame, or undefined if undefined
  37207. for the current frame
  37208. </p>
  37209. </dd>
  37210. <dt>&lsquo;<samp>PREV_INPTS</samp>&rsquo;</dt>
  37211. <dd><p>The previous input PTS.
  37212. </p>
  37213. </dd>
  37214. <dt>&lsquo;<samp>PREV_INT</samp>&rsquo;</dt>
  37215. <dd><p>previous input time in seconds
  37216. </p>
  37217. </dd>
  37218. <dt>&lsquo;<samp>PREV_OUTPTS</samp>&rsquo;</dt>
  37219. <dd><p>The previous output PTS.
  37220. </p>
  37221. </dd>
  37222. <dt>&lsquo;<samp>PREV_OUTT</samp>&rsquo;</dt>
  37223. <dd><p>previous output time in seconds
  37224. </p>
  37225. </dd>
  37226. <dt>&lsquo;<samp>RTCTIME</samp>&rsquo;</dt>
  37227. <dd><p>The wallclock (RTC) time in microseconds. This is deprecated, use time(0)
  37228. instead.
  37229. </p>
  37230. </dd>
  37231. <dt>&lsquo;<samp>RTCSTART</samp>&rsquo;</dt>
  37232. <dd><p>The wallclock (RTC) time at the start of the movie in microseconds.
  37233. </p>
  37234. </dd>
  37235. <dt>&lsquo;<samp>TB</samp>&rsquo;</dt>
  37236. <dd><p>The timebase of the input timestamps.
  37237. </p>
  37238. </dd>
  37239. </dl>
  37240. <a name="Examples-126"></a>
  37241. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-126">37.16.1 Examples</a></h3>
  37242. <ul>
  37243. <li>
  37244. Start counting PTS from zero
  37245. <div class="example">
  37246. <pre class="example">setpts=PTS-STARTPTS
  37247. </pre></div>
  37248. </li><li>
  37249. Apply fast motion effect:
  37250. <div class="example">
  37251. <pre class="example">setpts=0.5*PTS
  37252. </pre></div>
  37253. </li><li>
  37254. Apply slow motion effect:
  37255. <div class="example">
  37256. <pre class="example">setpts=2.0*PTS
  37257. </pre></div>
  37258. </li><li>
  37259. Set fixed rate of 25 frames per second:
  37260. <div class="example">
  37261. <pre class="example">setpts=N/(25*TB)
  37262. </pre></div>
  37263. </li><li>
  37264. Set fixed rate 25 fps with some jitter:
  37265. <div class="example">
  37266. <pre class="example">setpts='1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))'
  37267. </pre></div>
  37268. </li><li>
  37269. Apply an offset of 10 seconds to the input PTS:
  37270. <div class="example">
  37271. <pre class="example">setpts=PTS+10/TB
  37272. </pre></div>
  37273. </li><li>
  37274. Generate timestamps from a &quot;live source&quot; and rebase onto the current timebase:
  37275. <div class="example">
  37276. <pre class="example">setpts='(RTCTIME - RTCSTART) / (TB * 1000000)'
  37277. </pre></div>
  37278. </li><li>
  37279. Generate timestamps by counting samples:
  37280. <div class="example">
  37281. <pre class="example">asetpts=N/SR/TB
  37282. </pre></div>
  37283. </li></ul>
  37284. <a name="setrange"></a>
  37285. <h2 class="section"><a href="ffprobe-all.html#toc-setrange">37.17 setrange</a></h2>
  37286. <p>Force color range for the output video frame.
  37287. </p>
  37288. <p>The <code>setrange</code> filter marks the color range property for the
  37289. output frames. It does not change the input frame, but only sets the
  37290. corresponding property, which affects how the frame is treated by
  37291. following filters.
  37292. </p>
  37293. <p>The filter accepts the following options:
  37294. </p>
  37295. <dl compact="compact">
  37296. <dt>&lsquo;<samp>range</samp>&rsquo;</dt>
  37297. <dd><p>Available values are:
  37298. </p>
  37299. <dl compact="compact">
  37300. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  37301. <dd><p>Keep the same color range property.
  37302. </p>
  37303. </dd>
  37304. <dt>&lsquo;<samp>unspecified, unknown</samp>&rsquo;</dt>
  37305. <dd><p>Set the color range as unspecified.
  37306. </p>
  37307. </dd>
  37308. <dt>&lsquo;<samp>limited, tv, mpeg</samp>&rsquo;</dt>
  37309. <dd><p>Set the color range as limited.
  37310. </p>
  37311. </dd>
  37312. <dt>&lsquo;<samp>full, pc, jpeg</samp>&rsquo;</dt>
  37313. <dd><p>Set the color range as full.
  37314. </p></dd>
  37315. </dl>
  37316. </dd>
  37317. </dl>
  37318. <a name="settb_002c-asettb"></a>
  37319. <h2 class="section"><a href="ffprobe-all.html#toc-settb_002c-asettb">37.18 settb, asettb</a></h2>
  37320. <p>Set the timebase to use for the output frames timestamps.
  37321. It is mainly useful for testing timebase configuration.
  37322. </p>
  37323. <p>It accepts the following parameters:
  37324. </p>
  37325. <dl compact="compact">
  37326. <dt>&lsquo;<samp>expr, tb</samp>&rsquo;</dt>
  37327. <dd><p>The expression which is evaluated into the output timebase.
  37328. </p>
  37329. </dd>
  37330. </dl>
  37331. <p>The value for &lsquo;<samp>tb</samp>&rsquo; is an arithmetic expression representing a
  37332. rational. The expression can contain the constants &quot;AVTB&quot; (the default
  37333. timebase), &quot;intb&quot; (the input timebase) and &quot;sr&quot; (the sample rate,
  37334. audio only). Default value is &quot;intb&quot;.
  37335. </p>
  37336. <a name="Examples-3"></a>
  37337. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-3">37.18.1 Examples</a></h3>
  37338. <ul>
  37339. <li>
  37340. Set the timebase to 1/25:
  37341. <div class="example">
  37342. <pre class="example">settb=expr=1/25
  37343. </pre></div>
  37344. </li><li>
  37345. Set the timebase to 1/10:
  37346. <div class="example">
  37347. <pre class="example">settb=expr=0.1
  37348. </pre></div>
  37349. </li><li>
  37350. Set the timebase to 1001/1000:
  37351. <div class="example">
  37352. <pre class="example">settb=1+0.001
  37353. </pre></div>
  37354. </li><li>
  37355. Set the timebase to 2*intb:
  37356. <div class="example">
  37357. <pre class="example">settb=2*intb
  37358. </pre></div>
  37359. </li><li>
  37360. Set the default timebase value:
  37361. <div class="example">
  37362. <pre class="example">settb=AVTB
  37363. </pre></div>
  37364. </li></ul>
  37365. <a name="showcqt"></a>
  37366. <h2 class="section"><a href="ffprobe-all.html#toc-showcqt">37.19 showcqt</a></h2>
  37367. <p>Convert input audio to a video output representing frequency spectrum
  37368. logarithmically using Brown-Puckette constant Q transform algorithm with
  37369. direct frequency domain coefficient calculation (but the transform itself
  37370. is not really constant Q, instead the Q factor is actually variable/clamped),
  37371. with musical tone scale, from E0 to D#10.
  37372. </p>
  37373. <p>The filter accepts the following options:
  37374. </p>
  37375. <dl compact="compact">
  37376. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  37377. <dd><p>Specify the video size for the output. It must be even. For the syntax of this option,
  37378. check the <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  37379. Default value is <code>1920x1080</code>.
  37380. </p>
  37381. </dd>
  37382. <dt>&lsquo;<samp>fps, rate, r</samp>&rsquo;</dt>
  37383. <dd><p>Set the output frame rate. Default value is <code>25</code>.
  37384. </p>
  37385. </dd>
  37386. <dt>&lsquo;<samp>bar_h</samp>&rsquo;</dt>
  37387. <dd><p>Set the bargraph height. It must be even. Default value is <code>-1</code> which
  37388. computes the bargraph height automatically.
  37389. </p>
  37390. </dd>
  37391. <dt>&lsquo;<samp>axis_h</samp>&rsquo;</dt>
  37392. <dd><p>Set the axis height. It must be even. Default value is <code>-1</code> which computes
  37393. the axis height automatically.
  37394. </p>
  37395. </dd>
  37396. <dt>&lsquo;<samp>sono_h</samp>&rsquo;</dt>
  37397. <dd><p>Set the sonogram height. It must be even. Default value is <code>-1</code> which
  37398. computes the sonogram height automatically.
  37399. </p>
  37400. </dd>
  37401. <dt>&lsquo;<samp>fullhd</samp>&rsquo;</dt>
  37402. <dd><p>Set the fullhd resolution. This option is deprecated, use <var>size</var>, <var>s</var>
  37403. instead. Default value is <code>1</code>.
  37404. </p>
  37405. </dd>
  37406. <dt>&lsquo;<samp>sono_v, volume</samp>&rsquo;</dt>
  37407. <dd><p>Specify the sonogram volume expression. It can contain variables:
  37408. </p><dl compact="compact">
  37409. <dt>&lsquo;<samp>bar_v</samp>&rsquo;</dt>
  37410. <dd><p>the <var>bar_v</var> evaluated expression
  37411. </p></dd>
  37412. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37413. <dd><p>the frequency where it is evaluated
  37414. </p></dd>
  37415. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37416. <dd><p>the value of <var>timeclamp</var> option
  37417. </p></dd>
  37418. </dl>
  37419. <p>and functions:
  37420. </p><dl compact="compact">
  37421. <dt>&lsquo;<samp>a_weighting(f)</samp>&rsquo;</dt>
  37422. <dd><p>A-weighting of equal loudness
  37423. </p></dd>
  37424. <dt>&lsquo;<samp>b_weighting(f)</samp>&rsquo;</dt>
  37425. <dd><p>B-weighting of equal loudness
  37426. </p></dd>
  37427. <dt>&lsquo;<samp>c_weighting(f)</samp>&rsquo;</dt>
  37428. <dd><p>C-weighting of equal loudness.
  37429. </p></dd>
  37430. </dl>
  37431. <p>Default value is <code>16</code>.
  37432. </p>
  37433. </dd>
  37434. <dt>&lsquo;<samp>bar_v, volume2</samp>&rsquo;</dt>
  37435. <dd><p>Specify the bargraph volume expression. It can contain variables:
  37436. </p><dl compact="compact">
  37437. <dt>&lsquo;<samp>sono_v</samp>&rsquo;</dt>
  37438. <dd><p>the <var>sono_v</var> evaluated expression
  37439. </p></dd>
  37440. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37441. <dd><p>the frequency where it is evaluated
  37442. </p></dd>
  37443. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37444. <dd><p>the value of <var>timeclamp</var> option
  37445. </p></dd>
  37446. </dl>
  37447. <p>and functions:
  37448. </p><dl compact="compact">
  37449. <dt>&lsquo;<samp>a_weighting(f)</samp>&rsquo;</dt>
  37450. <dd><p>A-weighting of equal loudness
  37451. </p></dd>
  37452. <dt>&lsquo;<samp>b_weighting(f)</samp>&rsquo;</dt>
  37453. <dd><p>B-weighting of equal loudness
  37454. </p></dd>
  37455. <dt>&lsquo;<samp>c_weighting(f)</samp>&rsquo;</dt>
  37456. <dd><p>C-weighting of equal loudness.
  37457. </p></dd>
  37458. </dl>
  37459. <p>Default value is <code>sono_v</code>.
  37460. </p>
  37461. </dd>
  37462. <dt>&lsquo;<samp>sono_g, gamma</samp>&rsquo;</dt>
  37463. <dd><p>Specify the sonogram gamma. Lower gamma makes the spectrum more contrast,
  37464. higher gamma makes the spectrum having more range. Default value is <code>3</code>.
  37465. Acceptable range is <code>[1, 7]</code>.
  37466. </p>
  37467. </dd>
  37468. <dt>&lsquo;<samp>bar_g, gamma2</samp>&rsquo;</dt>
  37469. <dd><p>Specify the bargraph gamma. Default value is <code>1</code>. Acceptable range is
  37470. <code>[1, 7]</code>.
  37471. </p>
  37472. </dd>
  37473. <dt>&lsquo;<samp>bar_t</samp>&rsquo;</dt>
  37474. <dd><p>Specify the bargraph transparency level. Lower value makes the bargraph sharper.
  37475. Default value is <code>1</code>. Acceptable range is <code>[0, 1]</code>.
  37476. </p>
  37477. </dd>
  37478. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37479. <dd><p>Specify the transform timeclamp. At low frequency, there is trade-off between
  37480. accuracy in time domain and frequency domain. If timeclamp is lower,
  37481. event in time domain is represented more accurately (such as fast bass drum),
  37482. otherwise event in frequency domain is represented more accurately
  37483. (such as bass guitar). Acceptable range is <code>[0.002, 1]</code>. Default value is <code>0.17</code>.
  37484. </p>
  37485. </dd>
  37486. <dt>&lsquo;<samp>attack</samp>&rsquo;</dt>
  37487. <dd><p>Set attack time in seconds. The default is <code>0</code> (disabled). Otherwise, it
  37488. limits future samples by applying asymmetric windowing in time domain, useful
  37489. when low latency is required. Accepted range is <code>[0, 1]</code>.
  37490. </p>
  37491. </dd>
  37492. <dt>&lsquo;<samp>basefreq</samp>&rsquo;</dt>
  37493. <dd><p>Specify the transform base frequency. Default value is <code>20.01523126408007475</code>,
  37494. which is frequency 50 cents below E0. Acceptable range is <code>[10, 100000]</code>.
  37495. </p>
  37496. </dd>
  37497. <dt>&lsquo;<samp>endfreq</samp>&rsquo;</dt>
  37498. <dd><p>Specify the transform end frequency. Default value is <code>20495.59681441799654</code>,
  37499. which is frequency 50 cents above D#10. Acceptable range is <code>[10, 100000]</code>.
  37500. </p>
  37501. </dd>
  37502. <dt>&lsquo;<samp>coeffclamp</samp>&rsquo;</dt>
  37503. <dd><p>This option is deprecated and ignored.
  37504. </p>
  37505. </dd>
  37506. <dt>&lsquo;<samp>tlength</samp>&rsquo;</dt>
  37507. <dd><p>Specify the transform length in time domain. Use this option to control accuracy
  37508. trade-off between time domain and frequency domain at every frequency sample.
  37509. It can contain variables:
  37510. </p><dl compact="compact">
  37511. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37512. <dd><p>the frequency where it is evaluated
  37513. </p></dd>
  37514. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37515. <dd><p>the value of <var>timeclamp</var> option.
  37516. </p></dd>
  37517. </dl>
  37518. <p>Default value is <code>384*tc/(384+tc*f)</code>.
  37519. </p>
  37520. </dd>
  37521. <dt>&lsquo;<samp>count</samp>&rsquo;</dt>
  37522. <dd><p>Specify the transform count for every video frame. Default value is <code>6</code>.
  37523. Acceptable range is <code>[1, 30]</code>.
  37524. </p>
  37525. </dd>
  37526. <dt>&lsquo;<samp>fcount</samp>&rsquo;</dt>
  37527. <dd><p>Specify the transform count for every single pixel. Default value is <code>0</code>,
  37528. which makes it computed automatically. Acceptable range is <code>[0, 10]</code>.
  37529. </p>
  37530. </dd>
  37531. <dt>&lsquo;<samp>fontfile</samp>&rsquo;</dt>
  37532. <dd><p>Specify font file for use with freetype to draw the axis. If not specified,
  37533. use embedded font. Note that drawing with font file or embedded font is not
  37534. implemented with custom <var>basefreq</var> and <var>endfreq</var>, use <var>axisfile</var>
  37535. option instead.
  37536. </p>
  37537. </dd>
  37538. <dt>&lsquo;<samp>font</samp>&rsquo;</dt>
  37539. <dd><p>Specify fontconfig pattern. This has lower priority than <var>fontfile</var>. The
  37540. <code>:</code> in the pattern may be replaced by <code>|</code> to avoid unnecessary
  37541. escaping.
  37542. </p>
  37543. </dd>
  37544. <dt>&lsquo;<samp>fontcolor</samp>&rsquo;</dt>
  37545. <dd><p>Specify font color expression. This is arithmetic expression that should return
  37546. integer value 0xRRGGBB. It can contain variables:
  37547. </p><dl compact="compact">
  37548. <dt>&lsquo;<samp>frequency, freq, f</samp>&rsquo;</dt>
  37549. <dd><p>the frequency where it is evaluated
  37550. </p></dd>
  37551. <dt>&lsquo;<samp>timeclamp, tc</samp>&rsquo;</dt>
  37552. <dd><p>the value of <var>timeclamp</var> option
  37553. </p></dd>
  37554. </dl>
  37555. <p>and functions:
  37556. </p><dl compact="compact">
  37557. <dt>&lsquo;<samp>midi(f)</samp>&rsquo;</dt>
  37558. <dd><p>midi number of frequency f, some midi numbers: E0(16), C1(24), C2(36), A4(69)
  37559. </p></dd>
  37560. <dt>&lsquo;<samp>r(x), g(x), b(x)</samp>&rsquo;</dt>
  37561. <dd><p>red, green, and blue value of intensity x.
  37562. </p></dd>
  37563. </dl>
  37564. <p>Default value is <code>st(0, (midi(f)-59.5)/12);
  37565. st(1, if(between(ld(0),0,1), 0.5-0.5*cos(2*PI*ld(0)), 0));
  37566. r(1-ld(1)) + b(ld(1))</code>.
  37567. </p>
  37568. </dd>
  37569. <dt>&lsquo;<samp>axisfile</samp>&rsquo;</dt>
  37570. <dd><p>Specify image file to draw the axis. This option override <var>fontfile</var> and
  37571. <var>fontcolor</var> option.
  37572. </p>
  37573. </dd>
  37574. <dt>&lsquo;<samp>axis, text</samp>&rsquo;</dt>
  37575. <dd><p>Enable/disable drawing text to the axis. If it is set to <code>0</code>, drawing to
  37576. the axis is disabled, ignoring <var>fontfile</var> and <var>axisfile</var> option.
  37577. Default value is <code>1</code>.
  37578. </p>
  37579. </dd>
  37580. <dt>&lsquo;<samp>csp</samp>&rsquo;</dt>
  37581. <dd><p>Set colorspace. The accepted values are:
  37582. </p><dl compact="compact">
  37583. <dt>&lsquo;<samp>unspecified</samp>&rsquo;</dt>
  37584. <dd><p>Unspecified (default)
  37585. </p>
  37586. </dd>
  37587. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  37588. <dd><p>BT.709
  37589. </p>
  37590. </dd>
  37591. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  37592. <dd><p>FCC
  37593. </p>
  37594. </dd>
  37595. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  37596. <dd><p>BT.470BG or BT.601-6 625
  37597. </p>
  37598. </dd>
  37599. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  37600. <dd><p>SMPTE-170M or BT.601-6 525
  37601. </p>
  37602. </dd>
  37603. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  37604. <dd><p>SMPTE-240M
  37605. </p>
  37606. </dd>
  37607. <dt>&lsquo;<samp>bt2020ncl</samp>&rsquo;</dt>
  37608. <dd><p>BT.2020 with non-constant luminance
  37609. </p>
  37610. </dd>
  37611. </dl>
  37612. </dd>
  37613. <dt>&lsquo;<samp>cscheme</samp>&rsquo;</dt>
  37614. <dd><p>Set spectrogram color scheme. This is list of floating point values with format
  37615. <code>left_r|left_g|left_b|right_r|right_g|right_b</code>.
  37616. The default is <code>1|0.5|0|0|0.5|1</code>.
  37617. </p>
  37618. </dd>
  37619. </dl>
  37620. <a name="Examples-101"></a>
  37621. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-101">37.19.1 Examples</a></h3>
  37622. <ul>
  37623. <li>
  37624. Playing audio while showing the spectrum:
  37625. <div class="example">
  37626. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt [out0]'
  37627. </pre></div>
  37628. </li><li>
  37629. Same as above, but with frame rate 30 fps:
  37630. <div class="example">
  37631. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt=fps=30:count=5 [out0]'
  37632. </pre></div>
  37633. </li><li>
  37634. Playing at 1280x720:
  37635. <div class="example">
  37636. <pre class="example">ffplay -f lavfi 'amovie=a.mp3, asplit [a][out1]; [a] showcqt=s=1280x720:count=4 [out0]'
  37637. </pre></div>
  37638. </li><li>
  37639. Disable sonogram display:
  37640. <div class="example">
  37641. <pre class="example">sono_h=0
  37642. </pre></div>
  37643. </li><li>
  37644. A1 and its harmonics: A1, A2, (near)E3, A3:
  37645. <div class="example">
  37646. <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),
  37647. asplit[a][out1]; [a] showcqt [out0]'
  37648. </pre></div>
  37649. </li><li>
  37650. Same as above, but with more accuracy in frequency domain:
  37651. <div class="example">
  37652. <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),
  37653. asplit[a][out1]; [a] showcqt=timeclamp=0.5 [out0]'
  37654. </pre></div>
  37655. </li><li>
  37656. Custom volume:
  37657. <div class="example">
  37658. <pre class="example">bar_v=10:sono_v=bar_v*a_weighting(f)
  37659. </pre></div>
  37660. </li><li>
  37661. Custom gamma, now spectrum is linear to the amplitude.
  37662. <div class="example">
  37663. <pre class="example">bar_g=2:sono_g=2
  37664. </pre></div>
  37665. </li><li>
  37666. Custom tlength equation:
  37667. <div class="example">
  37668. <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)))'
  37669. </pre></div>
  37670. </li><li>
  37671. Custom fontcolor and fontfile, C-note is colored green, others are colored blue:
  37672. <div class="example">
  37673. <pre class="example">fontcolor='if(mod(floor(midi(f)+0.5),12), 0x0000FF, g(1))':fontfile=myfont.ttf
  37674. </pre></div>
  37675. </li><li>
  37676. Custom font using fontconfig:
  37677. <div class="example">
  37678. <pre class="example">font='Courier New,Monospace,mono|bold'
  37679. </pre></div>
  37680. </li><li>
  37681. Custom frequency range with custom axis using image file:
  37682. <div class="example">
  37683. <pre class="example">axisfile=myaxis.png:basefreq=40:endfreq=10000
  37684. </pre></div>
  37685. </li></ul>
  37686. <a name="showfreqs"></a>
  37687. <h2 class="section"><a href="ffprobe-all.html#toc-showfreqs">37.20 showfreqs</a></h2>
  37688. <p>Convert input audio to video output representing the audio power spectrum.
  37689. Audio amplitude is on Y-axis while frequency is on X-axis.
  37690. </p>
  37691. <p>The filter accepts the following options:
  37692. </p>
  37693. <dl compact="compact">
  37694. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  37695. <dd><p>Specify size of video. For the syntax of this option, check the
  37696. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  37697. Default is <code>1024x512</code>.
  37698. </p>
  37699. </dd>
  37700. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  37701. <dd><p>Set display mode.
  37702. This set how each frequency bin will be represented.
  37703. </p>
  37704. <p>It accepts the following values:
  37705. </p><dl compact="compact">
  37706. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  37707. <dt>&lsquo;<samp>bar</samp>&rsquo;</dt>
  37708. <dt>&lsquo;<samp>dot</samp>&rsquo;</dt>
  37709. </dl>
  37710. <p>Default is <code>bar</code>.
  37711. </p>
  37712. </dd>
  37713. <dt>&lsquo;<samp>ascale</samp>&rsquo;</dt>
  37714. <dd><p>Set amplitude scale.
  37715. </p>
  37716. <p>It accepts the following values:
  37717. </p><dl compact="compact">
  37718. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  37719. <dd><p>Linear scale.
  37720. </p>
  37721. </dd>
  37722. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  37723. <dd><p>Square root scale.
  37724. </p>
  37725. </dd>
  37726. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  37727. <dd><p>Cubic root scale.
  37728. </p>
  37729. </dd>
  37730. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  37731. <dd><p>Logarithmic scale.
  37732. </p></dd>
  37733. </dl>
  37734. <p>Default is <code>log</code>.
  37735. </p>
  37736. </dd>
  37737. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  37738. <dd><p>Set frequency scale.
  37739. </p>
  37740. <p>It accepts the following values:
  37741. </p><dl compact="compact">
  37742. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  37743. <dd><p>Linear scale.
  37744. </p>
  37745. </dd>
  37746. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  37747. <dd><p>Logarithmic scale.
  37748. </p>
  37749. </dd>
  37750. <dt>&lsquo;<samp>rlog</samp>&rsquo;</dt>
  37751. <dd><p>Reverse logarithmic scale.
  37752. </p></dd>
  37753. </dl>
  37754. <p>Default is <code>lin</code>.
  37755. </p>
  37756. </dd>
  37757. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  37758. <dd><p>Set window size. Allowed range is from 16 to 65536.
  37759. </p>
  37760. <p>Default is <code>2048</code>
  37761. </p>
  37762. </dd>
  37763. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  37764. <dd><p>Set windowing function.
  37765. </p>
  37766. <p>It accepts the following values:
  37767. </p><dl compact="compact">
  37768. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  37769. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  37770. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  37771. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  37772. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  37773. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  37774. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  37775. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  37776. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  37777. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  37778. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  37779. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  37780. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  37781. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  37782. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  37783. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  37784. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  37785. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  37786. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  37787. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  37788. </dl>
  37789. <p>Default is <code>hanning</code>.
  37790. </p>
  37791. </dd>
  37792. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  37793. <dd><p>Set window overlap. In range <code>[0, 1]</code>. Default is <code>1</code>,
  37794. which means optimal overlap for selected window function will be picked.
  37795. </p>
  37796. </dd>
  37797. <dt>&lsquo;<samp>averaging</samp>&rsquo;</dt>
  37798. <dd><p>Set time averaging. Setting this to 0 will display current maximal peaks.
  37799. Default is <code>1</code>, which means time averaging is disabled.
  37800. </p>
  37801. </dd>
  37802. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  37803. <dd><p>Specify list of colors separated by space or by &rsquo;|&rsquo; which will be used to
  37804. draw channel frequencies. Unrecognized or missing colors will be replaced
  37805. by white color.
  37806. </p>
  37807. </dd>
  37808. <dt>&lsquo;<samp>cmode</samp>&rsquo;</dt>
  37809. <dd><p>Set channel display mode.
  37810. </p>
  37811. <p>It accepts the following values:
  37812. </p><dl compact="compact">
  37813. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  37814. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  37815. </dl>
  37816. <p>Default is <code>combined</code>.
  37817. </p>
  37818. </dd>
  37819. <dt>&lsquo;<samp>minamp</samp>&rsquo;</dt>
  37820. <dd><p>Set minimum amplitude used in <code>log</code> amplitude scaler.
  37821. </p>
  37822. </dd>
  37823. </dl>
  37824. <a name="showspatial"></a>
  37825. <h2 class="section"><a href="ffprobe-all.html#toc-showspatial">37.21 showspatial</a></h2>
  37826. <p>Convert stereo input audio to a video output, representing the spatial relationship
  37827. between two channels.
  37828. </p>
  37829. <p>The filter accepts the following options:
  37830. </p>
  37831. <dl compact="compact">
  37832. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  37833. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  37834. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  37835. Default value is <code>512x512</code>.
  37836. </p>
  37837. </dd>
  37838. <dt>&lsquo;<samp>win_size</samp>&rsquo;</dt>
  37839. <dd><p>Set window size. Allowed range is from <var>1024</var> to <var>65536</var>. Default size is <var>4096</var>.
  37840. </p>
  37841. </dd>
  37842. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  37843. <dd><p>Set window function.
  37844. </p>
  37845. <p>It accepts the following values:
  37846. </p><dl compact="compact">
  37847. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  37848. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  37849. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  37850. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  37851. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  37852. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  37853. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  37854. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  37855. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  37856. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  37857. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  37858. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  37859. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  37860. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  37861. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  37862. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  37863. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  37864. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  37865. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  37866. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  37867. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  37868. </dl>
  37869. <p>Default value is <code>hann</code>.
  37870. </p>
  37871. </dd>
  37872. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  37873. <dd><p>Set ratio of overlap window. Default value is <code>0.5</code>.
  37874. When value is <code>1</code> overlap is set to recommended size for specific
  37875. window function currently used.
  37876. </p></dd>
  37877. </dl>
  37878. <p><a name="showspectrum"></a>
  37879. </p><a name="showspectrum-1"></a>
  37880. <h2 class="section"><a href="ffprobe-all.html#toc-showspectrum-1">37.22 showspectrum</a></h2>
  37881. <p>Convert input audio to a video output, representing the audio frequency
  37882. spectrum.
  37883. </p>
  37884. <p>The filter accepts the following options:
  37885. </p>
  37886. <dl compact="compact">
  37887. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  37888. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  37889. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  37890. Default value is <code>640x512</code>.
  37891. </p>
  37892. </dd>
  37893. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  37894. <dd><p>Specify how the spectrum should slide along the window.
  37895. </p>
  37896. <p>It accepts the following values:
  37897. </p><dl compact="compact">
  37898. <dt>&lsquo;<samp>replace</samp>&rsquo;</dt>
  37899. <dd><p>the samples start again on the left when they reach the right
  37900. </p></dd>
  37901. <dt>&lsquo;<samp>scroll</samp>&rsquo;</dt>
  37902. <dd><p>the samples scroll from right to left
  37903. </p></dd>
  37904. <dt>&lsquo;<samp>fullframe</samp>&rsquo;</dt>
  37905. <dd><p>frames are only produced when the samples reach the right
  37906. </p></dd>
  37907. <dt>&lsquo;<samp>rscroll</samp>&rsquo;</dt>
  37908. <dd><p>the samples scroll from left to right
  37909. </p></dd>
  37910. </dl>
  37911. <p>Default value is <code>replace</code>.
  37912. </p>
  37913. </dd>
  37914. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  37915. <dd><p>Specify display mode.
  37916. </p>
  37917. <p>It accepts the following values:
  37918. </p><dl compact="compact">
  37919. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  37920. <dd><p>all channels are displayed in the same row
  37921. </p></dd>
  37922. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  37923. <dd><p>all channels are displayed in separate rows
  37924. </p></dd>
  37925. </dl>
  37926. <p>Default value is &lsquo;<samp>combined</samp>&rsquo;.
  37927. </p>
  37928. </dd>
  37929. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  37930. <dd><p>Specify display color mode.
  37931. </p>
  37932. <p>It accepts the following values:
  37933. </p><dl compact="compact">
  37934. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  37935. <dd><p>each channel is displayed in a separate color
  37936. </p></dd>
  37937. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  37938. <dd><p>each channel is displayed using the same color scheme
  37939. </p></dd>
  37940. <dt>&lsquo;<samp>rainbow</samp>&rsquo;</dt>
  37941. <dd><p>each channel is displayed using the rainbow color scheme
  37942. </p></dd>
  37943. <dt>&lsquo;<samp>moreland</samp>&rsquo;</dt>
  37944. <dd><p>each channel is displayed using the moreland color scheme
  37945. </p></dd>
  37946. <dt>&lsquo;<samp>nebulae</samp>&rsquo;</dt>
  37947. <dd><p>each channel is displayed using the nebulae color scheme
  37948. </p></dd>
  37949. <dt>&lsquo;<samp>fire</samp>&rsquo;</dt>
  37950. <dd><p>each channel is displayed using the fire color scheme
  37951. </p></dd>
  37952. <dt>&lsquo;<samp>fiery</samp>&rsquo;</dt>
  37953. <dd><p>each channel is displayed using the fiery color scheme
  37954. </p></dd>
  37955. <dt>&lsquo;<samp>fruit</samp>&rsquo;</dt>
  37956. <dd><p>each channel is displayed using the fruit color scheme
  37957. </p></dd>
  37958. <dt>&lsquo;<samp>cool</samp>&rsquo;</dt>
  37959. <dd><p>each channel is displayed using the cool color scheme
  37960. </p></dd>
  37961. <dt>&lsquo;<samp>magma</samp>&rsquo;</dt>
  37962. <dd><p>each channel is displayed using the magma color scheme
  37963. </p></dd>
  37964. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  37965. <dd><p>each channel is displayed using the green color scheme
  37966. </p></dd>
  37967. <dt>&lsquo;<samp>viridis</samp>&rsquo;</dt>
  37968. <dd><p>each channel is displayed using the viridis color scheme
  37969. </p></dd>
  37970. <dt>&lsquo;<samp>plasma</samp>&rsquo;</dt>
  37971. <dd><p>each channel is displayed using the plasma color scheme
  37972. </p></dd>
  37973. <dt>&lsquo;<samp>cividis</samp>&rsquo;</dt>
  37974. <dd><p>each channel is displayed using the cividis color scheme
  37975. </p></dd>
  37976. <dt>&lsquo;<samp>terrain</samp>&rsquo;</dt>
  37977. <dd><p>each channel is displayed using the terrain color scheme
  37978. </p></dd>
  37979. </dl>
  37980. <p>Default value is &lsquo;<samp>channel</samp>&rsquo;.
  37981. </p>
  37982. </dd>
  37983. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  37984. <dd><p>Specify scale used for calculating intensity color values.
  37985. </p>
  37986. <p>It accepts the following values:
  37987. </p><dl compact="compact">
  37988. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  37989. <dd><p>linear
  37990. </p></dd>
  37991. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  37992. <dd><p>square root, default
  37993. </p></dd>
  37994. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  37995. <dd><p>cubic root
  37996. </p></dd>
  37997. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  37998. <dd><p>logarithmic
  37999. </p></dd>
  38000. <dt>&lsquo;<samp>4thrt</samp>&rsquo;</dt>
  38001. <dd><p>4th root
  38002. </p></dd>
  38003. <dt>&lsquo;<samp>5thrt</samp>&rsquo;</dt>
  38004. <dd><p>5th root
  38005. </p></dd>
  38006. </dl>
  38007. <p>Default value is &lsquo;<samp>sqrt</samp>&rsquo;.
  38008. </p>
  38009. </dd>
  38010. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  38011. <dd><p>Specify frequency scale.
  38012. </p>
  38013. <p>It accepts the following values:
  38014. </p><dl compact="compact">
  38015. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38016. <dd><p>linear
  38017. </p></dd>
  38018. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38019. <dd><p>logarithmic
  38020. </p></dd>
  38021. </dl>
  38022. <p>Default value is &lsquo;<samp>lin</samp>&rsquo;.
  38023. </p>
  38024. </dd>
  38025. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  38026. <dd><p>Set saturation modifier for displayed colors. Negative values provide
  38027. alternative color scheme. <code>0</code> is no saturation at all.
  38028. Saturation must be in [-10.0, 10.0] range.
  38029. Default value is <code>1</code>.
  38030. </p>
  38031. </dd>
  38032. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38033. <dd><p>Set window function.
  38034. </p>
  38035. <p>It accepts the following values:
  38036. </p><dl compact="compact">
  38037. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38038. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38039. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  38040. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38041. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38042. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38043. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38044. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38045. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38046. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38047. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38048. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38049. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38050. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38051. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38052. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38053. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38054. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38055. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38056. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38057. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38058. </dl>
  38059. <p>Default value is <code>hann</code>.
  38060. </p>
  38061. </dd>
  38062. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  38063. <dd><p>Set orientation of time vs frequency axis. Can be <code>vertical</code> or
  38064. <code>horizontal</code>. Default is <code>vertical</code>.
  38065. </p>
  38066. </dd>
  38067. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  38068. <dd><p>Set ratio of overlap window. Default value is <code>0</code>.
  38069. When value is <code>1</code> overlap is set to recommended size for specific
  38070. window function currently used.
  38071. </p>
  38072. </dd>
  38073. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  38074. <dd><p>Set scale gain for calculating intensity color values.
  38075. Default value is <code>1</code>.
  38076. </p>
  38077. </dd>
  38078. <dt>&lsquo;<samp>data</samp>&rsquo;</dt>
  38079. <dd><p>Set which data to display. Can be <code>magnitude</code>, default or <code>phase</code>.
  38080. </p>
  38081. </dd>
  38082. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  38083. <dd><p>Set color rotation, must be in [-1.0, 1.0] range.
  38084. Default value is <code>0</code>.
  38085. </p>
  38086. </dd>
  38087. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  38088. <dd><p>Set start frequency from which to display spectrogram. Default is <code>0</code>.
  38089. </p>
  38090. </dd>
  38091. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  38092. <dd><p>Set stop frequency to which to display spectrogram. Default is <code>0</code>.
  38093. </p>
  38094. </dd>
  38095. <dt>&lsquo;<samp>fps</samp>&rsquo;</dt>
  38096. <dd><p>Set upper frame rate limit. Default is <code>auto</code>, unlimited.
  38097. </p>
  38098. </dd>
  38099. <dt>&lsquo;<samp>legend</samp>&rsquo;</dt>
  38100. <dd><p>Draw time and frequency axes and legends. Default is disabled.
  38101. </p></dd>
  38102. </dl>
  38103. <p>The usage is very similar to the showwaves filter; see the examples in that
  38104. section.
  38105. </p>
  38106. <a name="Examples-32"></a>
  38107. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-32">37.22.1 Examples</a></h3>
  38108. <ul>
  38109. <li>
  38110. Large window with logarithmic color scaling:
  38111. <div class="example">
  38112. <pre class="example">showspectrum=s=1280x480:scale=log
  38113. </pre></div>
  38114. </li><li>
  38115. Complete example for a colored and sliding spectrum per channel using <code>ffplay</code>:
  38116. <div class="example">
  38117. <pre class="example">ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
  38118. [a] showspectrum=mode=separate:color=intensity:slide=1:scale=cbrt [out0]'
  38119. </pre></div>
  38120. </li></ul>
  38121. <a name="showspectrumpic"></a>
  38122. <h2 class="section"><a href="ffprobe-all.html#toc-showspectrumpic">37.23 showspectrumpic</a></h2>
  38123. <p>Convert input audio to a single video frame, representing the audio frequency
  38124. spectrum.
  38125. </p>
  38126. <p>The filter accepts the following options:
  38127. </p>
  38128. <dl compact="compact">
  38129. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38130. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38131. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38132. Default value is <code>4096x2048</code>.
  38133. </p>
  38134. </dd>
  38135. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38136. <dd><p>Specify display mode.
  38137. </p>
  38138. <p>It accepts the following values:
  38139. </p><dl compact="compact">
  38140. <dt>&lsquo;<samp>combined</samp>&rsquo;</dt>
  38141. <dd><p>all channels are displayed in the same row
  38142. </p></dd>
  38143. <dt>&lsquo;<samp>separate</samp>&rsquo;</dt>
  38144. <dd><p>all channels are displayed in separate rows
  38145. </p></dd>
  38146. </dl>
  38147. <p>Default value is &lsquo;<samp>combined</samp>&rsquo;.
  38148. </p>
  38149. </dd>
  38150. <dt>&lsquo;<samp>color</samp>&rsquo;</dt>
  38151. <dd><p>Specify display color mode.
  38152. </p>
  38153. <p>It accepts the following values:
  38154. </p><dl compact="compact">
  38155. <dt>&lsquo;<samp>channel</samp>&rsquo;</dt>
  38156. <dd><p>each channel is displayed in a separate color
  38157. </p></dd>
  38158. <dt>&lsquo;<samp>intensity</samp>&rsquo;</dt>
  38159. <dd><p>each channel is displayed using the same color scheme
  38160. </p></dd>
  38161. <dt>&lsquo;<samp>rainbow</samp>&rsquo;</dt>
  38162. <dd><p>each channel is displayed using the rainbow color scheme
  38163. </p></dd>
  38164. <dt>&lsquo;<samp>moreland</samp>&rsquo;</dt>
  38165. <dd><p>each channel is displayed using the moreland color scheme
  38166. </p></dd>
  38167. <dt>&lsquo;<samp>nebulae</samp>&rsquo;</dt>
  38168. <dd><p>each channel is displayed using the nebulae color scheme
  38169. </p></dd>
  38170. <dt>&lsquo;<samp>fire</samp>&rsquo;</dt>
  38171. <dd><p>each channel is displayed using the fire color scheme
  38172. </p></dd>
  38173. <dt>&lsquo;<samp>fiery</samp>&rsquo;</dt>
  38174. <dd><p>each channel is displayed using the fiery color scheme
  38175. </p></dd>
  38176. <dt>&lsquo;<samp>fruit</samp>&rsquo;</dt>
  38177. <dd><p>each channel is displayed using the fruit color scheme
  38178. </p></dd>
  38179. <dt>&lsquo;<samp>cool</samp>&rsquo;</dt>
  38180. <dd><p>each channel is displayed using the cool color scheme
  38181. </p></dd>
  38182. <dt>&lsquo;<samp>magma</samp>&rsquo;</dt>
  38183. <dd><p>each channel is displayed using the magma color scheme
  38184. </p></dd>
  38185. <dt>&lsquo;<samp>green</samp>&rsquo;</dt>
  38186. <dd><p>each channel is displayed using the green color scheme
  38187. </p></dd>
  38188. <dt>&lsquo;<samp>viridis</samp>&rsquo;</dt>
  38189. <dd><p>each channel is displayed using the viridis color scheme
  38190. </p></dd>
  38191. <dt>&lsquo;<samp>plasma</samp>&rsquo;</dt>
  38192. <dd><p>each channel is displayed using the plasma color scheme
  38193. </p></dd>
  38194. <dt>&lsquo;<samp>cividis</samp>&rsquo;</dt>
  38195. <dd><p>each channel is displayed using the cividis color scheme
  38196. </p></dd>
  38197. <dt>&lsquo;<samp>terrain</samp>&rsquo;</dt>
  38198. <dd><p>each channel is displayed using the terrain color scheme
  38199. </p></dd>
  38200. </dl>
  38201. <p>Default value is &lsquo;<samp>intensity</samp>&rsquo;.
  38202. </p>
  38203. </dd>
  38204. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38205. <dd><p>Specify scale used for calculating intensity color values.
  38206. </p>
  38207. <p>It accepts the following values:
  38208. </p><dl compact="compact">
  38209. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38210. <dd><p>linear
  38211. </p></dd>
  38212. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38213. <dd><p>square root, default
  38214. </p></dd>
  38215. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38216. <dd><p>cubic root
  38217. </p></dd>
  38218. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38219. <dd><p>logarithmic
  38220. </p></dd>
  38221. <dt>&lsquo;<samp>4thrt</samp>&rsquo;</dt>
  38222. <dd><p>4th root
  38223. </p></dd>
  38224. <dt>&lsquo;<samp>5thrt</samp>&rsquo;</dt>
  38225. <dd><p>5th root
  38226. </p></dd>
  38227. </dl>
  38228. <p>Default value is &lsquo;<samp>log</samp>&rsquo;.
  38229. </p>
  38230. </dd>
  38231. <dt>&lsquo;<samp>fscale</samp>&rsquo;</dt>
  38232. <dd><p>Specify frequency scale.
  38233. </p>
  38234. <p>It accepts the following values:
  38235. </p><dl compact="compact">
  38236. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38237. <dd><p>linear
  38238. </p></dd>
  38239. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38240. <dd><p>logarithmic
  38241. </p></dd>
  38242. </dl>
  38243. <p>Default value is &lsquo;<samp>lin</samp>&rsquo;.
  38244. </p>
  38245. </dd>
  38246. <dt>&lsquo;<samp>saturation</samp>&rsquo;</dt>
  38247. <dd><p>Set saturation modifier for displayed colors. Negative values provide
  38248. alternative color scheme. <code>0</code> is no saturation at all.
  38249. Saturation must be in [-10.0, 10.0] range.
  38250. Default value is <code>1</code>.
  38251. </p>
  38252. </dd>
  38253. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38254. <dd><p>Set window function.
  38255. </p>
  38256. <p>It accepts the following values:
  38257. </p><dl compact="compact">
  38258. <dt>&lsquo;<samp>rect</samp>&rsquo;</dt>
  38259. <dt>&lsquo;<samp>bartlett</samp>&rsquo;</dt>
  38260. <dt>&lsquo;<samp>hann</samp>&rsquo;</dt>
  38261. <dt>&lsquo;<samp>hanning</samp>&rsquo;</dt>
  38262. <dt>&lsquo;<samp>hamming</samp>&rsquo;</dt>
  38263. <dt>&lsquo;<samp>blackman</samp>&rsquo;</dt>
  38264. <dt>&lsquo;<samp>welch</samp>&rsquo;</dt>
  38265. <dt>&lsquo;<samp>flattop</samp>&rsquo;</dt>
  38266. <dt>&lsquo;<samp>bharris</samp>&rsquo;</dt>
  38267. <dt>&lsquo;<samp>bnuttall</samp>&rsquo;</dt>
  38268. <dt>&lsquo;<samp>bhann</samp>&rsquo;</dt>
  38269. <dt>&lsquo;<samp>sine</samp>&rsquo;</dt>
  38270. <dt>&lsquo;<samp>nuttall</samp>&rsquo;</dt>
  38271. <dt>&lsquo;<samp>lanczos</samp>&rsquo;</dt>
  38272. <dt>&lsquo;<samp>gauss</samp>&rsquo;</dt>
  38273. <dt>&lsquo;<samp>tukey</samp>&rsquo;</dt>
  38274. <dt>&lsquo;<samp>dolph</samp>&rsquo;</dt>
  38275. <dt>&lsquo;<samp>cauchy</samp>&rsquo;</dt>
  38276. <dt>&lsquo;<samp>parzen</samp>&rsquo;</dt>
  38277. <dt>&lsquo;<samp>poisson</samp>&rsquo;</dt>
  38278. <dt>&lsquo;<samp>bohman</samp>&rsquo;</dt>
  38279. </dl>
  38280. <p>Default value is <code>hann</code>.
  38281. </p>
  38282. </dd>
  38283. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  38284. <dd><p>Set orientation of time vs frequency axis. Can be <code>vertical</code> or
  38285. <code>horizontal</code>. Default is <code>vertical</code>.
  38286. </p>
  38287. </dd>
  38288. <dt>&lsquo;<samp>gain</samp>&rsquo;</dt>
  38289. <dd><p>Set scale gain for calculating intensity color values.
  38290. Default value is <code>1</code>.
  38291. </p>
  38292. </dd>
  38293. <dt>&lsquo;<samp>legend</samp>&rsquo;</dt>
  38294. <dd><p>Draw time and frequency axes and legends. Default is enabled.
  38295. </p>
  38296. </dd>
  38297. <dt>&lsquo;<samp>rotation</samp>&rsquo;</dt>
  38298. <dd><p>Set color rotation, must be in [-1.0, 1.0] range.
  38299. Default value is <code>0</code>.
  38300. </p>
  38301. </dd>
  38302. <dt>&lsquo;<samp>start</samp>&rsquo;</dt>
  38303. <dd><p>Set start frequency from which to display spectrogram. Default is <code>0</code>.
  38304. </p>
  38305. </dd>
  38306. <dt>&lsquo;<samp>stop</samp>&rsquo;</dt>
  38307. <dd><p>Set stop frequency to which to display spectrogram. Default is <code>0</code>.
  38308. </p></dd>
  38309. </dl>
  38310. <a name="Examples-52"></a>
  38311. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-52">37.23.1 Examples</a></h3>
  38312. <ul>
  38313. <li>
  38314. Extract an audio spectrogram of a whole audio track
  38315. in a 1024x1024 picture using <code>ffmpeg</code>:
  38316. <div class="example">
  38317. <pre class="example">ffmpeg -i audio.flac -lavfi showspectrumpic=s=1024x1024 spectrogram.png
  38318. </pre></div>
  38319. </li></ul>
  38320. <a name="showvolume"></a>
  38321. <h2 class="section"><a href="ffprobe-all.html#toc-showvolume">37.24 showvolume</a></h2>
  38322. <p>Convert input audio volume to a video output.
  38323. </p>
  38324. <p>The filter accepts the following options:
  38325. </p>
  38326. <dl compact="compact">
  38327. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  38328. <dd><p>Set video rate.
  38329. </p>
  38330. </dd>
  38331. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  38332. <dd><p>Set border width, allowed range is [0, 5]. Default is 1.
  38333. </p>
  38334. </dd>
  38335. <dt>&lsquo;<samp>w</samp>&rsquo;</dt>
  38336. <dd><p>Set channel width, allowed range is [80, 8192]. Default is 400.
  38337. </p>
  38338. </dd>
  38339. <dt>&lsquo;<samp>h</samp>&rsquo;</dt>
  38340. <dd><p>Set channel height, allowed range is [1, 900]. Default is 20.
  38341. </p>
  38342. </dd>
  38343. <dt>&lsquo;<samp>f</samp>&rsquo;</dt>
  38344. <dd><p>Set fade, allowed range is [0, 1]. Default is 0.95.
  38345. </p>
  38346. </dd>
  38347. <dt>&lsquo;<samp>c</samp>&rsquo;</dt>
  38348. <dd><p>Set volume color expression.
  38349. </p>
  38350. <p>The expression can use the following variables:
  38351. </p>
  38352. <dl compact="compact">
  38353. <dt>&lsquo;<samp>VOLUME</samp>&rsquo;</dt>
  38354. <dd><p>Current max volume of channel in dB.
  38355. </p>
  38356. </dd>
  38357. <dt>&lsquo;<samp>PEAK</samp>&rsquo;</dt>
  38358. <dd><p>Current peak.
  38359. </p>
  38360. </dd>
  38361. <dt>&lsquo;<samp>CHANNEL</samp>&rsquo;</dt>
  38362. <dd><p>Current channel number, starting from 0.
  38363. </p></dd>
  38364. </dl>
  38365. </dd>
  38366. <dt>&lsquo;<samp>t</samp>&rsquo;</dt>
  38367. <dd><p>If set, displays channel names. Default is enabled.
  38368. </p>
  38369. </dd>
  38370. <dt>&lsquo;<samp>v</samp>&rsquo;</dt>
  38371. <dd><p>If set, displays volume values. Default is enabled.
  38372. </p>
  38373. </dd>
  38374. <dt>&lsquo;<samp>o</samp>&rsquo;</dt>
  38375. <dd><p>Set orientation, can be horizontal: <code>h</code> or vertical: <code>v</code>,
  38376. default is <code>h</code>.
  38377. </p>
  38378. </dd>
  38379. <dt>&lsquo;<samp>s</samp>&rsquo;</dt>
  38380. <dd><p>Set step size, allowed range is [0, 5]. Default is 0, which means
  38381. step is disabled.
  38382. </p>
  38383. </dd>
  38384. <dt>&lsquo;<samp>p</samp>&rsquo;</dt>
  38385. <dd><p>Set background opacity, allowed range is [0, 1]. Default is 0.
  38386. </p>
  38387. </dd>
  38388. <dt>&lsquo;<samp>m</samp>&rsquo;</dt>
  38389. <dd><p>Set metering mode, can be peak: <code>p</code> or rms: <code>r</code>,
  38390. default is <code>p</code>.
  38391. </p>
  38392. </dd>
  38393. <dt>&lsquo;<samp>ds</samp>&rsquo;</dt>
  38394. <dd><p>Set display scale, can be linear: <code>lin</code> or log: <code>log</code>,
  38395. default is <code>lin</code>.
  38396. </p>
  38397. </dd>
  38398. <dt>&lsquo;<samp>dm</samp>&rsquo;</dt>
  38399. <dd><p>In second.
  38400. If set to &gt; 0., display a line for the max level
  38401. in the previous seconds.
  38402. default is disabled: <code>0.</code>
  38403. </p>
  38404. </dd>
  38405. <dt>&lsquo;<samp>dmc</samp>&rsquo;</dt>
  38406. <dd><p>The color of the max line. Use when <code>dm</code> option is set to &gt; 0.
  38407. default is: <code>orange</code>
  38408. </p></dd>
  38409. </dl>
  38410. <a name="showwaves"></a>
  38411. <h2 class="section"><a href="ffprobe-all.html#toc-showwaves">37.25 showwaves</a></h2>
  38412. <p>Convert input audio to a video output, representing the samples waves.
  38413. </p>
  38414. <p>The filter accepts the following options:
  38415. </p>
  38416. <dl compact="compact">
  38417. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38418. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38419. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38420. Default value is <code>600x240</code>.
  38421. </p>
  38422. </dd>
  38423. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38424. <dd><p>Set display mode.
  38425. </p>
  38426. <p>Available values are:
  38427. </p><dl compact="compact">
  38428. <dt>&lsquo;<samp>point</samp>&rsquo;</dt>
  38429. <dd><p>Draw a point for each sample.
  38430. </p>
  38431. </dd>
  38432. <dt>&lsquo;<samp>line</samp>&rsquo;</dt>
  38433. <dd><p>Draw a vertical line for each sample.
  38434. </p>
  38435. </dd>
  38436. <dt>&lsquo;<samp>p2p</samp>&rsquo;</dt>
  38437. <dd><p>Draw a point for each sample and a line between them.
  38438. </p>
  38439. </dd>
  38440. <dt>&lsquo;<samp>cline</samp>&rsquo;</dt>
  38441. <dd><p>Draw a centered vertical line for each sample.
  38442. </p></dd>
  38443. </dl>
  38444. <p>Default value is <code>point</code>.
  38445. </p>
  38446. </dd>
  38447. <dt>&lsquo;<samp>n</samp>&rsquo;</dt>
  38448. <dd><p>Set the number of samples which are printed on the same column. A
  38449. larger value will decrease the frame rate. Must be a positive
  38450. integer. This option can be set only if the value for <var>rate</var>
  38451. is not explicitly specified.
  38452. </p>
  38453. </dd>
  38454. <dt>&lsquo;<samp>rate, r</samp>&rsquo;</dt>
  38455. <dd><p>Set the (approximate) output frame rate. This is done by setting the
  38456. option <var>n</var>. Default value is &quot;25&quot;.
  38457. </p>
  38458. </dd>
  38459. <dt>&lsquo;<samp>split_channels</samp>&rsquo;</dt>
  38460. <dd><p>Set if channels should be drawn separately or overlap. Default value is 0.
  38461. </p>
  38462. </dd>
  38463. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  38464. <dd><p>Set colors separated by &rsquo;|&rsquo; which are going to be used for drawing of each channel.
  38465. </p>
  38466. </dd>
  38467. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38468. <dd><p>Set amplitude scale.
  38469. </p>
  38470. <p>Available values are:
  38471. </p><dl compact="compact">
  38472. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38473. <dd><p>Linear.
  38474. </p>
  38475. </dd>
  38476. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38477. <dd><p>Logarithmic.
  38478. </p>
  38479. </dd>
  38480. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38481. <dd><p>Square root.
  38482. </p>
  38483. </dd>
  38484. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38485. <dd><p>Cubic root.
  38486. </p></dd>
  38487. </dl>
  38488. <p>Default is linear.
  38489. </p>
  38490. </dd>
  38491. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  38492. <dd><p>Set the draw mode. This is mostly useful to set for high <var>n</var>.
  38493. </p>
  38494. <p>Available values are:
  38495. </p><dl compact="compact">
  38496. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38497. <dd><p>Scale pixel values for each drawn sample.
  38498. </p>
  38499. </dd>
  38500. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  38501. <dd><p>Draw every sample directly.
  38502. </p></dd>
  38503. </dl>
  38504. <p>Default value is <code>scale</code>.
  38505. </p></dd>
  38506. </dl>
  38507. <a name="Examples-42"></a>
  38508. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-42">37.25.1 Examples</a></h3>
  38509. <ul>
  38510. <li>
  38511. Output the input file audio and the corresponding video representation
  38512. at the same time:
  38513. <div class="example">
  38514. <pre class="example">amovie=a.mp3,asplit[out0],showwaves[out1]
  38515. </pre></div>
  38516. </li><li>
  38517. Create a synthetic signal and show it with showwaves, forcing a
  38518. frame rate of 30 frames per second:
  38519. <div class="example">
  38520. <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]
  38521. </pre></div>
  38522. </li></ul>
  38523. <a name="showwavespic"></a>
  38524. <h2 class="section"><a href="ffprobe-all.html#toc-showwavespic">37.26 showwavespic</a></h2>
  38525. <p>Convert input audio to a single video frame, representing the samples waves.
  38526. </p>
  38527. <p>The filter accepts the following options:
  38528. </p>
  38529. <dl compact="compact">
  38530. <dt>&lsquo;<samp>size, s</samp>&rsquo;</dt>
  38531. <dd><p>Specify the video size for the output. For the syntax of this option, check the
  38532. <a href="ffmpeg-utils.html#video-size-syntax">(ffmpeg-utils)&quot;Video size&quot; section in the ffmpeg-utils manual</a>.
  38533. Default value is <code>600x240</code>.
  38534. </p>
  38535. </dd>
  38536. <dt>&lsquo;<samp>split_channels</samp>&rsquo;</dt>
  38537. <dd><p>Set if channels should be drawn separately or overlap. Default value is 0.
  38538. </p>
  38539. </dd>
  38540. <dt>&lsquo;<samp>colors</samp>&rsquo;</dt>
  38541. <dd><p>Set colors separated by &rsquo;|&rsquo; which are going to be used for drawing of each channel.
  38542. </p>
  38543. </dd>
  38544. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38545. <dd><p>Set amplitude scale.
  38546. </p>
  38547. <p>Available values are:
  38548. </p><dl compact="compact">
  38549. <dt>&lsquo;<samp>lin</samp>&rsquo;</dt>
  38550. <dd><p>Linear.
  38551. </p>
  38552. </dd>
  38553. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  38554. <dd><p>Logarithmic.
  38555. </p>
  38556. </dd>
  38557. <dt>&lsquo;<samp>sqrt</samp>&rsquo;</dt>
  38558. <dd><p>Square root.
  38559. </p>
  38560. </dd>
  38561. <dt>&lsquo;<samp>cbrt</samp>&rsquo;</dt>
  38562. <dd><p>Cubic root.
  38563. </p></dd>
  38564. </dl>
  38565. <p>Default is linear.
  38566. </p>
  38567. </dd>
  38568. <dt>&lsquo;<samp>draw</samp>&rsquo;</dt>
  38569. <dd><p>Set the draw mode.
  38570. </p>
  38571. <p>Available values are:
  38572. </p><dl compact="compact">
  38573. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38574. <dd><p>Scale pixel values for each drawn sample.
  38575. </p>
  38576. </dd>
  38577. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  38578. <dd><p>Draw every sample directly.
  38579. </p></dd>
  38580. </dl>
  38581. <p>Default value is <code>scale</code>.
  38582. </p></dd>
  38583. </dl>
  38584. <a name="Examples-8"></a>
  38585. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-8">37.26.1 Examples</a></h3>
  38586. <ul>
  38587. <li>
  38588. Extract a channel split representation of the wave form of a whole audio track
  38589. in a 1024x800 picture using <code>ffmpeg</code>:
  38590. <div class="example">
  38591. <pre class="example">ffmpeg -i audio.flac -lavfi showwavespic=split_channels=1:s=1024x800 waveform.png
  38592. </pre></div>
  38593. </li></ul>
  38594. <a name="sidedata_002c-asidedata"></a>
  38595. <h2 class="section"><a href="ffprobe-all.html#toc-sidedata_002c-asidedata">37.27 sidedata, asidedata</a></h2>
  38596. <p>Delete frame side data, or select frames based on it.
  38597. </p>
  38598. <p>This filter accepts the following options:
  38599. </p>
  38600. <dl compact="compact">
  38601. <dt>&lsquo;<samp>mode</samp>&rsquo;</dt>
  38602. <dd><p>Set mode of operation of the filter.
  38603. </p>
  38604. <p>Can be one of the following:
  38605. </p>
  38606. <dl compact="compact">
  38607. <dt>&lsquo;<samp>select</samp>&rsquo;</dt>
  38608. <dd><p>Select every frame with side data of <code>type</code>.
  38609. </p>
  38610. </dd>
  38611. <dt>&lsquo;<samp>delete</samp>&rsquo;</dt>
  38612. <dd><p>Delete side data of <code>type</code>. If <code>type</code> is not set, delete all side
  38613. data in the frame.
  38614. </p>
  38615. </dd>
  38616. </dl>
  38617. </dd>
  38618. <dt>&lsquo;<samp>type</samp>&rsquo;</dt>
  38619. <dd><p>Set side data type used with all modes. Must be set for <code>select</code> mode. For
  38620. the list of frame side data types, refer to the <code>AVFrameSideDataType</code> enum
  38621. in &lsquo;<tt>libavutil/frame.h</tt>&rsquo;. For example, to choose
  38622. <code>AV_FRAME_DATA_PANSCAN</code> side data, you must specify <code>PANSCAN</code>.
  38623. </p>
  38624. </dd>
  38625. </dl>
  38626. <a name="spectrumsynth"></a>
  38627. <h2 class="section"><a href="ffprobe-all.html#toc-spectrumsynth">37.28 spectrumsynth</a></h2>
  38628. <p>Synthesize audio from 2 input video spectrums, first input stream represents
  38629. magnitude across time and second represents phase across time.
  38630. The filter will transform from frequency domain as displayed in videos back
  38631. to time domain as presented in audio output.
  38632. </p>
  38633. <p>This filter is primarily created for reversing processed <a href="#showspectrum">showspectrum</a>
  38634. filter outputs, but can synthesize sound from other spectrograms too.
  38635. But in such case results are going to be poor if the phase data is not
  38636. available, because in such cases phase data need to be recreated, usually
  38637. it&rsquo;s just recreated from random noise.
  38638. For best results use gray only output (<code>channel</code> color mode in
  38639. <a href="#showspectrum">showspectrum</a> filter) and <code>log</code> scale for magnitude video and
  38640. <code>lin</code> scale for phase video. To produce phase, for 2nd video, use
  38641. <code>data</code> option. Inputs videos should generally use <code>fullframe</code>
  38642. slide mode as that saves resources needed for decoding video.
  38643. </p>
  38644. <p>The filter accepts the following options:
  38645. </p>
  38646. <dl compact="compact">
  38647. <dt>&lsquo;<samp>sample_rate</samp>&rsquo;</dt>
  38648. <dd><p>Specify sample rate of output audio, the sample rate of audio from which
  38649. spectrum was generated may differ.
  38650. </p>
  38651. </dd>
  38652. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  38653. <dd><p>Set number of channels represented in input video spectrums.
  38654. </p>
  38655. </dd>
  38656. <dt>&lsquo;<samp>scale</samp>&rsquo;</dt>
  38657. <dd><p>Set scale which was used when generating magnitude input spectrum.
  38658. Can be <code>lin</code> or <code>log</code>. Default is <code>log</code>.
  38659. </p>
  38660. </dd>
  38661. <dt>&lsquo;<samp>slide</samp>&rsquo;</dt>
  38662. <dd><p>Set slide which was used when generating inputs spectrums.
  38663. Can be <code>replace</code>, <code>scroll</code>, <code>fullframe</code> or <code>rscroll</code>.
  38664. Default is <code>fullframe</code>.
  38665. </p>
  38666. </dd>
  38667. <dt>&lsquo;<samp>win_func</samp>&rsquo;</dt>
  38668. <dd><p>Set window function used for resynthesis.
  38669. </p>
  38670. </dd>
  38671. <dt>&lsquo;<samp>overlap</samp>&rsquo;</dt>
  38672. <dd><p>Set window overlap. In range <code>[0, 1]</code>. Default is <code>1</code>,
  38673. which means optimal overlap for selected window function will be picked.
  38674. </p>
  38675. </dd>
  38676. <dt>&lsquo;<samp>orientation</samp>&rsquo;</dt>
  38677. <dd><p>Set orientation of input videos. Can be <code>vertical</code> or <code>horizontal</code>.
  38678. Default is <code>vertical</code>.
  38679. </p></dd>
  38680. </dl>
  38681. <a name="Examples-10"></a>
  38682. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-10">37.28.1 Examples</a></h3>
  38683. <ul>
  38684. <li>
  38685. First create magnitude and phase videos from audio, assuming audio is stereo with 44100 sample rate,
  38686. then resynthesize videos back to audio with spectrumsynth:
  38687. <div class="example">
  38688. <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
  38689. 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
  38690. ffmpeg -i magnitude.nut -i phase.nut -lavfi spectrumsynth=channels=2:sample_rate=44100:win_func=hann:overlap=0.875:slide=fullframe output.flac
  38691. </pre></div>
  38692. </li></ul>
  38693. <a name="split_002c-asplit"></a>
  38694. <h2 class="section"><a href="ffprobe-all.html#toc-split_002c-asplit">37.29 split, asplit</a></h2>
  38695. <p>Split input into several identical outputs.
  38696. </p>
  38697. <p><code>asplit</code> works with audio input, <code>split</code> with video.
  38698. </p>
  38699. <p>The filter accepts a single parameter which specifies the number of outputs. If
  38700. unspecified, it defaults to 2.
  38701. </p>
  38702. <a name="Examples-93"></a>
  38703. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-93">37.29.1 Examples</a></h3>
  38704. <ul>
  38705. <li>
  38706. Create two separate outputs from the same input:
  38707. <div class="example">
  38708. <pre class="example">[in] split [out0][out1]
  38709. </pre></div>
  38710. </li><li>
  38711. To create 3 or more outputs, you need to specify the number of
  38712. outputs, like in:
  38713. <div class="example">
  38714. <pre class="example">[in] asplit=3 [out0][out1][out2]
  38715. </pre></div>
  38716. </li><li>
  38717. Create two separate outputs from the same input, one cropped and
  38718. one padded:
  38719. <div class="example">
  38720. <pre class="example">[in] split [splitout1][splitout2];
  38721. [splitout1] crop=100:100:0:0 [cropout];
  38722. [splitout2] pad=200:200:100:100 [padout];
  38723. </pre></div>
  38724. </li><li>
  38725. Create 5 copies of the input audio with <code>ffmpeg</code>:
  38726. <div class="example">
  38727. <pre class="example">ffmpeg -i INPUT -filter_complex asplit=5 OUTPUT
  38728. </pre></div>
  38729. </li></ul>
  38730. <a name="zmq_002c-azmq"></a>
  38731. <h2 class="section"><a href="ffprobe-all.html#toc-zmq_002c-azmq">37.30 zmq, azmq</a></h2>
  38732. <p>Receive commands sent through a libzmq client, and forward them to
  38733. filters in the filtergraph.
  38734. </p>
  38735. <p><code>zmq</code> and <code>azmq</code> work as a pass-through filters. <code>zmq</code>
  38736. must be inserted between two video filters, <code>azmq</code> between two
  38737. audio filters. Both are capable to send messages to any filter type.
  38738. </p>
  38739. <p>To enable these filters you need to install the libzmq library and
  38740. headers and configure FFmpeg with <code>--enable-libzmq</code>.
  38741. </p>
  38742. <p>For more information about libzmq see:
  38743. <a href="http://www.zeromq.org/">http://www.zeromq.org/</a>
  38744. </p>
  38745. <p>The <code>zmq</code> and <code>azmq</code> filters work as a libzmq server, which
  38746. receives messages sent through a network interface defined by the
  38747. &lsquo;<samp>bind_address</samp>&rsquo; (or the abbreviation &quot;&lsquo;<samp>b</samp>&rsquo;&quot;) option.
  38748. Default value of this option is &lsquo;<tt>tcp://localhost:5555</tt>&rsquo;. You may
  38749. want to alter this value to your needs, but do not forget to escape any
  38750. &rsquo;:&rsquo; signs (see <a href="#filtergraph-escaping">filtergraph escaping</a>).
  38751. </p>
  38752. <p>The received message must be in the form:
  38753. </p><div class="example">
  38754. <pre class="example"><var>TARGET</var> <var>COMMAND</var> [<var>ARG</var>]
  38755. </pre></div>
  38756. <p><var>TARGET</var> specifies the target of the command, usually the name of
  38757. the filter class or a specific filter instance name. The default
  38758. filter instance name uses the pattern &lsquo;<samp>Parsed_&lt;filter_name&gt;_&lt;index&gt;</samp>&rsquo;,
  38759. but you can override this by using the &lsquo;<samp>filter_name@id</samp>&rsquo; syntax
  38760. (see <a href="#Filtergraph-syntax">Filtergraph syntax</a>).
  38761. </p>
  38762. <p><var>COMMAND</var> specifies the name of the command for the target filter.
  38763. </p>
  38764. <p><var>ARG</var> is optional and specifies the optional argument list for the
  38765. given <var>COMMAND</var>.
  38766. </p>
  38767. <p>Upon reception, the message is processed and the corresponding command
  38768. is injected into the filtergraph. Depending on the result, the filter
  38769. will send a reply to the client, adopting the format:
  38770. </p><div class="example">
  38771. <pre class="example"><var>ERROR_CODE</var> <var>ERROR_REASON</var>
  38772. <var>MESSAGE</var>
  38773. </pre></div>
  38774. <p><var>MESSAGE</var> is optional.
  38775. </p>
  38776. <a name="Examples-82"></a>
  38777. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-82">37.30.1 Examples</a></h3>
  38778. <p>Look at &lsquo;<tt>tools/zmqsend</tt>&rsquo; for an example of a zmq client which can
  38779. be used to send commands processed by these filters.
  38780. </p>
  38781. <p>Consider the following filtergraph generated by <code>ffplay</code>.
  38782. In this example the last overlay filter has an instance name. All other
  38783. filters will have default instance names.
  38784. </p>
  38785. <div class="example">
  38786. <pre class="example">ffplay -dumpgraph 1 -f lavfi &quot;
  38787. color=s=100x100:c=red [l];
  38788. color=s=100x100:c=blue [r];
  38789. nullsrc=s=200x100, zmq [bg];
  38790. [bg][l] overlay [bg+l];
  38791. [bg+l][r] overlay@my=x=100 &quot;
  38792. </pre></div>
  38793. <p>To change the color of the left side of the video, the following
  38794. command can be used:
  38795. </p><div class="example">
  38796. <pre class="example">echo Parsed_color_0 c yellow | tools/zmqsend
  38797. </pre></div>
  38798. <p>To change the right side:
  38799. </p><div class="example">
  38800. <pre class="example">echo Parsed_color_1 c pink | tools/zmqsend
  38801. </pre></div>
  38802. <p>To change the position of the right side:
  38803. </p><div class="example">
  38804. <pre class="example">echo overlay@my x 150 | tools/zmqsend
  38805. </pre></div>
  38806. <a name="Multimedia-Sources"></a>
  38807. <h1 class="chapter"><a href="ffprobe-all.html#toc-Multimedia-Sources">38 Multimedia Sources</a></h1>
  38808. <p>Below is a description of the currently available multimedia sources.
  38809. </p>
  38810. <a name="amovie"></a>
  38811. <h2 class="section"><a href="ffprobe-all.html#toc-amovie">38.1 amovie</a></h2>
  38812. <p>This is the same as <a href="#movie">movie</a> source, except it selects an audio
  38813. stream by default.
  38814. </p>
  38815. <p><a name="movie"></a>
  38816. </p><a name="movie-1"></a>
  38817. <h2 class="section"><a href="ffprobe-all.html#toc-movie-1">38.2 movie</a></h2>
  38818. <p>Read audio and/or video stream(s) from a movie container.
  38819. </p>
  38820. <p>It accepts the following parameters:
  38821. </p>
  38822. <dl compact="compact">
  38823. <dt>&lsquo;<samp>filename</samp>&rsquo;</dt>
  38824. <dd><p>The name of the resource to read (not necessarily a file; it can also be a
  38825. device or a stream accessed through some protocol).
  38826. </p>
  38827. </dd>
  38828. <dt>&lsquo;<samp>format_name, f</samp>&rsquo;</dt>
  38829. <dd><p>Specifies the format assumed for the movie to read, and can be either
  38830. the name of a container or an input device. If not specified, the
  38831. format is guessed from <var>movie_name</var> or by probing.
  38832. </p>
  38833. </dd>
  38834. <dt>&lsquo;<samp>seek_point, sp</samp>&rsquo;</dt>
  38835. <dd><p>Specifies the seek point in seconds. The frames will be output
  38836. starting from this seek point. The parameter is evaluated with
  38837. <code>av_strtod</code>, so the numerical value may be suffixed by an IS
  38838. postfix. The default value is &quot;0&quot;.
  38839. </p>
  38840. </dd>
  38841. <dt>&lsquo;<samp>streams, s</samp>&rsquo;</dt>
  38842. <dd><p>Specifies the streams to read. Several streams can be specified,
  38843. separated by &quot;+&quot;. The source will then have as many outputs, in the
  38844. 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
  38845. respectively the default (best suited) video and audio stream. Default
  38846. is &quot;dv&quot;, or &quot;da&quot; if the filter is called as &quot;amovie&quot;.
  38847. </p>
  38848. </dd>
  38849. <dt>&lsquo;<samp>stream_index, si</samp>&rsquo;</dt>
  38850. <dd><p>Specifies the index of the video stream to read. If the value is -1,
  38851. the most suitable video stream will be automatically selected. The default
  38852. value is &quot;-1&quot;. Deprecated. If the filter is called &quot;amovie&quot;, it will select
  38853. audio instead of video.
  38854. </p>
  38855. </dd>
  38856. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  38857. <dd><p>Specifies how many times to read the stream in sequence.
  38858. If the value is 0, the stream will be looped infinitely.
  38859. Default value is &quot;1&quot;.
  38860. </p>
  38861. <p>Note that when the movie is looped the source timestamps are not
  38862. changed, so it will generate non monotonically increasing timestamps.
  38863. </p>
  38864. </dd>
  38865. <dt>&lsquo;<samp>discontinuity</samp>&rsquo;</dt>
  38866. <dd><p>Specifies the time difference between frames above which the point is
  38867. considered a timestamp discontinuity which is removed by adjusting the later
  38868. timestamps.
  38869. </p></dd>
  38870. </dl>
  38871. <p>It allows overlaying a second video on top of the main input of
  38872. a filtergraph, as shown in this graph:
  38873. </p><div class="example">
  38874. <pre class="example">input -----------&gt; deltapts0 --&gt; overlay --&gt; output
  38875. ^
  38876. |
  38877. movie --&gt; scale--&gt; deltapts1 -------+
  38878. </pre></div>
  38879. <a name="Examples-71"></a>
  38880. <h3 class="subsection"><a href="ffprobe-all.html#toc-Examples-71">38.2.1 Examples</a></h3>
  38881. <ul>
  38882. <li>
  38883. Skip 3.2 seconds from the start of the AVI file in.avi, and overlay it
  38884. on top of the input labelled &quot;in&quot;:
  38885. <div class="example">
  38886. <pre class="example">movie=in.avi:seek_point=3.2, scale=180:-1, setpts=PTS-STARTPTS [over];
  38887. [in] setpts=PTS-STARTPTS [main];
  38888. [main][over] overlay=16:16 [out]
  38889. </pre></div>
  38890. </li><li>
  38891. Read from a video4linux2 device, and overlay it on top of the input
  38892. labelled &quot;in&quot;:
  38893. <div class="example">
  38894. <pre class="example">movie=/dev/video0:f=video4linux2, scale=180:-1, setpts=PTS-STARTPTS [over];
  38895. [in] setpts=PTS-STARTPTS [main];
  38896. [main][over] overlay=16:16 [out]
  38897. </pre></div>
  38898. </li><li>
  38899. Read the first video stream and the audio stream with id 0x81 from
  38900. dvd.vob; the video is connected to the pad named &quot;video&quot; and the audio is
  38901. connected to the pad named &quot;audio&quot;:
  38902. <div class="example">
  38903. <pre class="example">movie=dvd.vob:s=v:0+#0x81 [video] [audio]
  38904. </pre></div>
  38905. </li></ul>
  38906. <a name="Commands-52"></a>
  38907. <h3 class="subsection"><a href="ffprobe-all.html#toc-Commands-52">38.2.2 Commands</a></h3>
  38908. <p>Both movie and amovie support the following commands:
  38909. </p><dl compact="compact">
  38910. <dt>&lsquo;<samp>seek</samp>&rsquo;</dt>
  38911. <dd><p>Perform seek using &quot;av_seek_frame&quot;.
  38912. The syntax is: seek <var>stream_index</var>|<var>timestamp</var>|<var>flags</var>
  38913. </p><ul>
  38914. <li>
  38915. <var>stream_index</var>: If stream_index is -1, a default
  38916. stream is selected, and <var>timestamp</var> is automatically converted
  38917. from AV_TIME_BASE units to the stream specific time_base.
  38918. </li><li>
  38919. <var>timestamp</var>: Timestamp in AVStream.time_base units
  38920. or, if no stream is specified, in AV_TIME_BASE units.
  38921. </li><li>
  38922. <var>flags</var>: Flags which select direction and seeking mode.
  38923. </li></ul>
  38924. </dd>
  38925. <dt>&lsquo;<samp>get_duration</samp>&rsquo;</dt>
  38926. <dd><p>Get movie duration in AV_TIME_BASE units.
  38927. </p>
  38928. </dd>
  38929. </dl>
  38930. <a name="See-Also"></a>
  38931. <h1 class="chapter"><a href="ffprobe-all.html#toc-See-Also">39 See Also</a></h1>
  38932. <p><a href="ffprobe.html">ffprobe</a>,
  38933. <a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>,
  38934. <a href="ffmpeg-utils.html">ffmpeg-utils</a>,
  38935. <a href="ffmpeg-scaler.html">ffmpeg-scaler</a>,
  38936. <a href="ffmpeg-resampler.html">ffmpeg-resampler</a>,
  38937. <a href="ffmpeg-codecs.html">ffmpeg-codecs</a>,
  38938. <a href="ffmpeg-bitstream-filters.html">ffmpeg-bitstream-filters</a>,
  38939. <a href="ffmpeg-formats.html">ffmpeg-formats</a>,
  38940. <a href="ffmpeg-devices.html">ffmpeg-devices</a>,
  38941. <a href="ffmpeg-protocols.html">ffmpeg-protocols</a>,
  38942. <a href="ffmpeg-filters.html">ffmpeg-filters</a>
  38943. </p>
  38944. <a name="Authors"></a>
  38945. <h1 class="chapter"><a href="ffprobe-all.html#toc-Authors">40 Authors</a></h1>
  38946. <p>The FFmpeg developers.
  38947. </p>
  38948. <p>For details about the authorship, see the Git history of the project
  38949. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  38950. <code>git log</code> in the FFmpeg source directory, or browsing the
  38951. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  38952. </p>
  38953. <p>Maintainers for the specific components are listed in the file
  38954. &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
  38955. </p>
  38956. </div>
  38957. </body>
  38958. </html>