ffmpeg-codecs.html 313 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by , GNU Texinfo 7.1 -->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. FFmpeg Codecs Documentation
  8. </title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  10. <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  11. <link rel="stylesheet" type="text/css" href="style.min.css">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <h1>
  16. FFmpeg Codecs Documentation
  17. </h1>
  18. <div class="top-level-extent" id="SEC_Top">
  19. <div class="element-contents" id="SEC_Contents">
  20. <h2 class="contents-heading">Table of Contents</h2>
  21. <div class="contents">
  22. <ul class="toc-numbered-mark">
  23. <li><a id="toc-Description" href="#Description">1 Description</a></li>
  24. <li><a id="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
  25. <li><a id="toc-Decoders" href="#Decoders">3 Decoders</a></li>
  26. <li><a id="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
  27. <ul class="toc-numbered-mark">
  28. <li><a id="toc-av1" href="#av1">4.1 av1</a>
  29. <ul class="toc-numbered-mark">
  30. <li><a id="toc-Options" href="#Options">4.1.1 Options</a></li>
  31. </ul></li>
  32. <li><a id="toc-rawvideo" href="#rawvideo">4.2 rawvideo</a>
  33. <ul class="toc-numbered-mark">
  34. <li><a id="toc-Options-1" href="#Options-1">4.2.1 Options</a></li>
  35. </ul></li>
  36. <li><a id="toc-libdav1d" href="#libdav1d">4.3 libdav1d</a>
  37. <ul class="toc-numbered-mark">
  38. <li><a id="toc-Options-2" href="#Options-2">4.3.1 Options</a></li>
  39. </ul></li>
  40. <li><a id="toc-libdavs2" href="#libdavs2">4.4 libdavs2</a></li>
  41. <li><a id="toc-libuavs3d" href="#libuavs3d">4.5 libuavs3d</a>
  42. <ul class="toc-numbered-mark">
  43. <li><a id="toc-Options-3" href="#Options-3">4.5.1 Options</a></li>
  44. </ul></li>
  45. <li><a id="toc-libxevd" href="#libxevd">4.6 libxevd</a>
  46. <ul class="toc-numbered-mark">
  47. <li><a id="toc-Options-4" href="#Options-4">4.6.1 Options</a></li>
  48. </ul></li>
  49. <li><a id="toc-QSV-Decoders" href="#QSV-Decoders">4.7 QSV Decoders</a>
  50. <ul class="toc-numbered-mark">
  51. <li><a id="toc-Common-Options" href="#Common-Options">4.7.1 Common Options</a></li>
  52. <li><a id="toc-HEVC-Options" href="#HEVC-Options">4.7.2 HEVC Options</a></li>
  53. </ul></li>
  54. <li><a id="toc-v210" href="#v210">4.8 v210</a>
  55. <ul class="toc-numbered-mark">
  56. <li><a id="toc-Options-5" href="#Options-5">4.8.1 Options</a></li>
  57. </ul></li>
  58. </ul></li>
  59. <li><a id="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
  60. <ul class="toc-numbered-mark">
  61. <li><a id="toc-ac3" href="#ac3">5.1 ac3</a>
  62. <ul class="toc-numbered-mark">
  63. <li><a id="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
  64. </ul></li>
  65. <li><a id="toc-flac-1" href="#flac-1">5.2 flac</a>
  66. <ul class="toc-numbered-mark">
  67. <li><a id="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
  68. </ul></li>
  69. <li><a id="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
  70. <li><a id="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
  71. <li><a id="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
  72. <li><a id="toc-libilbc" href="#libilbc">5.6 libilbc</a>
  73. <ul class="toc-numbered-mark">
  74. <li><a id="toc-Options-6" href="#Options-6">5.6.1 Options</a></li>
  75. </ul></li>
  76. <li><a id="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.7 libopencore-amrnb</a></li>
  77. <li><a id="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.8 libopencore-amrwb</a></li>
  78. <li><a id="toc-libopus" href="#libopus">5.9 libopus</a></li>
  79. </ul></li>
  80. <li><a id="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
  81. <ul class="toc-numbered-mark">
  82. <li><a id="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
  83. <ul class="toc-numbered-mark">
  84. <li><a id="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
  85. </ul></li>
  86. <li><a id="toc-libaribcaption" href="#libaribcaption">6.2 libaribcaption</a>
  87. <ul class="toc-numbered-mark">
  88. <li><a id="toc-libaribcaption-Decoder-Options" href="#libaribcaption-Decoder-Options">6.2.1 libaribcaption Decoder Options</a></li>
  89. <li><a id="toc-libaribcaption-decoder-usage-examples" href="#libaribcaption-decoder-usage-examples">6.2.2 libaribcaption decoder usage examples</a></li>
  90. </ul></li>
  91. <li><a id="toc-dvbsub" href="#dvbsub">6.3 dvbsub</a>
  92. <ul class="toc-numbered-mark">
  93. <li><a id="toc-Options-7" href="#Options-7">6.3.1 Options</a></li>
  94. </ul></li>
  95. <li><a id="toc-dvdsub" href="#dvdsub">6.4 dvdsub</a>
  96. <ul class="toc-numbered-mark">
  97. <li><a id="toc-Options-8" href="#Options-8">6.4.1 Options</a></li>
  98. </ul></li>
  99. <li><a id="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.5 libzvbi-teletext</a>
  100. <ul class="toc-numbered-mark">
  101. <li><a id="toc-Options-9" href="#Options-9">6.5.1 Options</a></li>
  102. </ul></li>
  103. </ul></li>
  104. <li><a id="toc-Encoders" href="#Encoders">7 Encoders</a></li>
  105. <li><a id="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
  106. <ul class="toc-numbered-mark">
  107. <li><a id="toc-aac" href="#aac">8.1 aac</a>
  108. <ul class="toc-numbered-mark">
  109. <li><a id="toc-Options-10" href="#Options-10">8.1.1 Options</a></li>
  110. </ul></li>
  111. <li><a id="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
  112. <ul class="toc-numbered-mark">
  113. <li><a id="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
  114. <ul class="toc-numbered-mark">
  115. <li><a id="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
  116. <li><a id="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
  117. <li><a id="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
  118. <li><a id="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
  119. </ul></li>
  120. <li><a id="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
  121. <ul class="toc-numbered-mark">
  122. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-1" href="#Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></li>
  123. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-2" href="#Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></li>
  124. </ul></li>
  125. <li><a id="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
  126. <li><a id="toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></li>
  127. </ul></li>
  128. <li><a id="toc-flac-2" href="#flac-2">8.3 flac</a>
  129. <ul class="toc-numbered-mark">
  130. <li><a id="toc-Options-11" href="#Options-11">8.3.1 Options</a></li>
  131. </ul></li>
  132. <li><a id="toc-opus" href="#opus">8.4 opus</a>
  133. <ul class="toc-numbered-mark">
  134. <li><a id="toc-Options-12" href="#Options-12">8.4.1 Options</a></li>
  135. </ul></li>
  136. <li><a id="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
  137. <ul class="toc-numbered-mark">
  138. <li><a id="toc-Options-13" href="#Options-13">8.5.1 Options</a></li>
  139. <li><a id="toc-Examples" href="#Examples">8.5.2 Examples</a></li>
  140. </ul></li>
  141. <li><a id="toc-libmp3lame-1" href="#libmp3lame-1">8.6 libmp3lame</a>
  142. <ul class="toc-numbered-mark">
  143. <li><a id="toc-Options-14" href="#Options-14">8.6.1 Options</a></li>
  144. </ul></li>
  145. <li><a id="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.7 libopencore-amrnb</a>
  146. <ul class="toc-numbered-mark">
  147. <li><a id="toc-Options-15" href="#Options-15">8.7.1 Options</a></li>
  148. </ul></li>
  149. <li><a id="toc-libopus-1" href="#libopus-1">8.8 libopus</a>
  150. <ul class="toc-numbered-mark">
  151. <li><a id="toc-Option-Mapping" href="#Option-Mapping">8.8.1 Option Mapping</a></li>
  152. </ul></li>
  153. <li><a id="toc-libshine-1" href="#libshine-1">8.9 libshine</a>
  154. <ul class="toc-numbered-mark">
  155. <li><a id="toc-Options-16" href="#Options-16">8.9.1 Options</a></li>
  156. </ul></li>
  157. <li><a id="toc-libtwolame" href="#libtwolame">8.10 libtwolame</a>
  158. <ul class="toc-numbered-mark">
  159. <li><a id="toc-Options-17" href="#Options-17">8.10.1 Options</a></li>
  160. </ul></li>
  161. <li><a id="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.11 libvo-amrwbenc</a>
  162. <ul class="toc-numbered-mark">
  163. <li><a id="toc-Options-18" href="#Options-18">8.11.1 Options</a></li>
  164. </ul></li>
  165. <li><a id="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
  166. <ul class="toc-numbered-mark">
  167. <li><a id="toc-Options-19" href="#Options-19">8.12.1 Options</a></li>
  168. </ul></li>
  169. <li><a id="toc-mjpeg" href="#mjpeg">8.13 mjpeg</a>
  170. <ul class="toc-numbered-mark">
  171. <li><a id="toc-Options-20" href="#Options-20">8.13.1 Options</a></li>
  172. </ul></li>
  173. <li><a id="toc-wavpack" href="#wavpack">8.14 wavpack</a>
  174. <ul class="toc-numbered-mark">
  175. <li><a id="toc-Options-21" href="#Options-21">8.14.1 Options</a>
  176. <ul class="toc-numbered-mark">
  177. <li><a id="toc-Shared-options" href="#Shared-options">8.14.1.1 Shared options</a></li>
  178. <li><a id="toc-Private-options" href="#Private-options">8.14.1.2 Private options</a></li>
  179. </ul></li>
  180. </ul></li>
  181. </ul></li>
  182. <li><a id="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
  183. <ul class="toc-numbered-mark">
  184. <li><a id="toc-a64_005fmulti_002c-a64_005fmulti5" href="#a64_005fmulti_002c-a64_005fmulti5">9.1 a64_multi, a64_multi5</a></li>
  185. <li><a id="toc-Cinepak" href="#Cinepak">9.2 Cinepak</a>
  186. <ul class="toc-numbered-mark">
  187. <li><a id="toc-Options-22" href="#Options-22">9.2.1 Options</a></li>
  188. </ul></li>
  189. <li><a id="toc-GIF" href="#GIF">9.3 GIF</a>
  190. <ul class="toc-numbered-mark">
  191. <li><a id="toc-Options-23" href="#Options-23">9.3.1 Options</a></li>
  192. </ul></li>
  193. <li><a id="toc-Hap" href="#Hap">9.4 Hap</a>
  194. <ul class="toc-numbered-mark">
  195. <li><a id="toc-Options-24" href="#Options-24">9.4.1 Options</a></li>
  196. </ul></li>
  197. <li><a id="toc-jpeg2000" href="#jpeg2000">9.5 jpeg2000</a>
  198. <ul class="toc-numbered-mark">
  199. <li><a id="toc-Options-25" href="#Options-25">9.5.1 Options</a></li>
  200. </ul></li>
  201. <li><a id="toc-librav1e" href="#librav1e">9.6 librav1e</a>
  202. <ul class="toc-numbered-mark">
  203. <li><a id="toc-Options-26" href="#Options-26">9.6.1 Options</a></li>
  204. </ul></li>
  205. <li><a id="toc-libaom_002dav1" href="#libaom_002dav1">9.7 libaom-av1</a>
  206. <ul class="toc-numbered-mark">
  207. <li><a id="toc-Options-27" href="#Options-27">9.7.1 Options</a></li>
  208. </ul></li>
  209. <li><a id="toc-libsvtav1" href="#libsvtav1">9.8 libsvtav1</a>
  210. <ul class="toc-numbered-mark">
  211. <li><a id="toc-Options-28" href="#Options-28">9.8.1 Options</a></li>
  212. </ul></li>
  213. <li><a id="toc-libjxl" href="#libjxl">9.9 libjxl</a>
  214. <ul class="toc-numbered-mark">
  215. <li><a id="toc-Options-29" href="#Options-29">9.9.1 Options</a></li>
  216. </ul></li>
  217. <li><a id="toc-libkvazaar" href="#libkvazaar">9.10 libkvazaar</a>
  218. <ul class="toc-numbered-mark">
  219. <li><a id="toc-Options-30" href="#Options-30">9.10.1 Options</a></li>
  220. </ul></li>
  221. <li><a id="toc-libopenh264" href="#libopenh264">9.11 libopenh264</a>
  222. <ul class="toc-numbered-mark">
  223. <li><a id="toc-Options-31" href="#Options-31">9.11.1 Options</a></li>
  224. </ul></li>
  225. <li><a id="toc-libtheora" href="#libtheora">9.12 libtheora</a>
  226. <ul class="toc-numbered-mark">
  227. <li><a id="toc-Options-32" href="#Options-32">9.12.1 Options</a></li>
  228. <li><a id="toc-Examples-1" href="#Examples-1">9.12.2 Examples</a></li>
  229. </ul></li>
  230. <li><a id="toc-libvpx" href="#libvpx">9.13 libvpx</a>
  231. <ul class="toc-numbered-mark">
  232. <li><a id="toc-Options-33" href="#Options-33">9.13.1 Options</a></li>
  233. </ul></li>
  234. <li><a id="toc-libwebp" href="#libwebp">9.14 libwebp</a>
  235. <ul class="toc-numbered-mark">
  236. <li><a id="toc-Pixel-Format" href="#Pixel-Format">9.14.1 Pixel Format</a></li>
  237. <li><a id="toc-Options-34" href="#Options-34">9.14.2 Options</a></li>
  238. </ul></li>
  239. <li><a id="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.15 libx264, libx264rgb</a>
  240. <ul class="toc-numbered-mark">
  241. <li><a id="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.15.1 Supported Pixel Formats</a></li>
  242. <li><a id="toc-Options-35" href="#Options-35">9.15.2 Options</a></li>
  243. </ul></li>
  244. <li><a id="toc-libx265" href="#libx265">9.16 libx265</a>
  245. <ul class="toc-numbered-mark">
  246. <li><a id="toc-Options-36" href="#Options-36">9.16.1 Options</a></li>
  247. </ul></li>
  248. <li><a id="toc-libxavs2" href="#libxavs2">9.17 libxavs2</a>
  249. <ul class="toc-numbered-mark">
  250. <li><a id="toc-Options-37" href="#Options-37">9.17.1 Options</a></li>
  251. </ul></li>
  252. <li><a id="toc-libxeve" href="#libxeve">9.18 libxeve</a>
  253. <ul class="toc-numbered-mark">
  254. <li><a id="toc-Options-38" href="#Options-38">9.18.1 Options</a></li>
  255. </ul></li>
  256. <li><a id="toc-libxvid" href="#libxvid">9.19 libxvid</a>
  257. <ul class="toc-numbered-mark">
  258. <li><a id="toc-Options-39" href="#Options-39">9.19.1 Options</a></li>
  259. </ul></li>
  260. <li><a id="toc-MediaFoundation" href="#MediaFoundation">9.20 MediaFoundation</a></li>
  261. <li><a id="toc-Microsoft-RLE" href="#Microsoft-RLE">9.21 Microsoft RLE</a>
  262. <ul class="toc-numbered-mark">
  263. <li><a id="toc-Options-40" href="#Options-40">9.21.1 Options</a></li>
  264. </ul></li>
  265. <li><a id="toc-mpeg2" href="#mpeg2">9.22 mpeg2</a>
  266. <ul class="toc-numbered-mark">
  267. <li><a id="toc-Options-41" href="#Options-41">9.22.1 Options</a></li>
  268. </ul></li>
  269. <li><a id="toc-png" href="#png">9.23 png</a>
  270. <ul class="toc-numbered-mark">
  271. <li><a id="toc-Private-options-1" href="#Private-options-1">9.23.1 Private options</a></li>
  272. </ul></li>
  273. <li><a id="toc-ProRes" href="#ProRes">9.24 ProRes</a>
  274. <ul class="toc-numbered-mark">
  275. <li><a id="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.24.1 Private Options for prores-ks</a></li>
  276. <li><a id="toc-Speed-considerations" href="#Speed-considerations">9.24.2 Speed considerations</a></li>
  277. </ul></li>
  278. <li><a id="toc-QSV-Encoders" href="#QSV-Encoders">9.25 QSV Encoders</a>
  279. <ul class="toc-numbered-mark">
  280. <li><a id="toc-Ratecontrol-Method" href="#Ratecontrol-Method">9.25.1 Ratecontrol Method</a></li>
  281. <li><a id="toc-Global-Options-_002d_003e-MSDK-Options" href="#Global-Options-_002d_003e-MSDK-Options">9.25.2 Global Options -&gt; MSDK Options</a></li>
  282. <li><a id="toc-Common-Options-1" href="#Common-Options-1">9.25.3 Common Options</a></li>
  283. <li><a id="toc-Runtime-Options" href="#Runtime-Options">9.25.4 Runtime Options</a></li>
  284. <li><a id="toc-H264-options" href="#H264-options">9.25.5 H264 options</a></li>
  285. <li><a id="toc-HEVC-Options-1" href="#HEVC-Options-1">9.25.6 HEVC Options</a></li>
  286. <li><a id="toc-MPEG2-Options" href="#MPEG2-Options">9.25.7 MPEG2 Options</a></li>
  287. <li><a id="toc-VP9-Options" href="#VP9-Options">9.25.8 VP9 Options</a></li>
  288. <li><a id="toc-AV1-Options" href="#AV1-Options">9.25.9 AV1 Options</a></li>
  289. </ul></li>
  290. <li><a id="toc-snow" href="#snow">9.26 snow</a>
  291. <ul class="toc-numbered-mark">
  292. <li><a id="toc-Options-42" href="#Options-42">9.26.1 Options</a></li>
  293. </ul></li>
  294. <li><a id="toc-VAAPI-encoders" href="#VAAPI-encoders">9.27 VAAPI encoders</a></li>
  295. <li><a id="toc-vbn" href="#vbn">9.28 vbn</a>
  296. <ul class="toc-numbered-mark">
  297. <li><a id="toc-Options-43" href="#Options-43">9.28.1 Options</a></li>
  298. </ul></li>
  299. <li><a id="toc-vc2" href="#vc2">9.29 vc2</a>
  300. <ul class="toc-numbered-mark">
  301. <li><a id="toc-Options-44" href="#Options-44">9.29.1 Options</a></li>
  302. </ul></li>
  303. </ul></li>
  304. <li><a id="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
  305. <ul class="toc-numbered-mark">
  306. <li><a id="toc-dvdsub-1" href="#dvdsub-1">10.1 dvdsub</a>
  307. <ul class="toc-numbered-mark">
  308. <li><a id="toc-Options-45" href="#Options-45">10.1.1 Options</a></li>
  309. </ul></li>
  310. </ul></li>
  311. <li><a id="toc-See-Also" href="#See-Also">11 See Also</a></li>
  312. <li><a id="toc-Authors" href="#Authors">12 Authors</a></li>
  313. </ul>
  314. </div>
  315. </div>
  316. <ul class="mini-toc">
  317. <li><a href="#Description" accesskey="1">Description</a></li>
  318. <li><a href="#Codec-Options" accesskey="2">Codec Options</a></li>
  319. <li><a href="#Decoders" accesskey="3">Decoders</a></li>
  320. <li><a href="#Video-Decoders" accesskey="4">Video Decoders</a></li>
  321. <li><a href="#Audio-Decoders" accesskey="5">Audio Decoders</a></li>
  322. <li><a href="#Subtitles-Decoders" accesskey="6">Subtitles Decoders</a></li>
  323. <li><a href="#Encoders" accesskey="7">Encoders</a></li>
  324. <li><a href="#Audio-Encoders" accesskey="8">Audio Encoders</a></li>
  325. <li><a href="#Video-Encoders" accesskey="9">Video Encoders</a></li>
  326. <li><a href="#Subtitles-Encoders">Subtitles Encoders</a></li>
  327. <li><a href="#See-Also">See Also</a></li>
  328. <li><a href="#Authors">Authors</a></li>
  329. </ul>
  330. <div class="chapter-level-extent" id="Description">
  331. <h2 class="chapter"><span>1 Description<a class="copiable-link" href="#Description"> &para;</a></span></h2>
  332. <p>This document describes the codecs (decoders and encoders) provided by
  333. the libavcodec library.
  334. </p>
  335. <a class="anchor" id="codec_002doptions"></a></div>
  336. <div class="chapter-level-extent" id="Codec-Options">
  337. <h2 class="chapter"><span>2 Codec Options<a class="copiable-link" href="#Codec-Options"> &para;</a></span></h2>
  338. <p>libavcodec provides some generic global options, which can be set on
  339. all the encoders and decoders. In addition, each codec may support
  340. so-called private options, which are specific for a given codec.
  341. </p>
  342. <p>Sometimes, a global option may only affect a specific kind of codec,
  343. and may be nonsensical or ignored by another, so you need to be aware
  344. of the meaning of the specified options. Also some options are
  345. meant only for decoding or encoding.
  346. </p>
  347. <p>Options may be set by specifying -<var class="var">option</var> <var class="var">value</var> in the
  348. FFmpeg tools, or by setting the value explicitly in the
  349. <code class="code">AVCodecContext</code> options or using the <samp class="file">libavutil/opt.h</samp> API
  350. for programmatic use.
  351. </p>
  352. <p>The list of supported options follow:
  353. </p>
  354. <dl class="table">
  355. <dt><samp class="option">b <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  356. <dd><p>Set bitrate in bits/s. Default value is 200K.
  357. </p>
  358. </dd>
  359. <dt><samp class="option">ab <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  360. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  361. </p>
  362. </dd>
  363. <dt><samp class="option">bt <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  364. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  365. tolerance specifies how far ratecontrol is willing to deviate from the
  366. target average bitrate value. This is not related to min/max
  367. bitrate. Lowering tolerance too much has an adverse effect on quality.
  368. </p>
  369. </dd>
  370. <dt><samp class="option">flags <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  371. <dd><p>Set generic flags.
  372. </p>
  373. <p>Possible values:
  374. </p><dl class="table">
  375. <dt>&lsquo;<samp class="samp">mv4</samp>&rsquo;</dt>
  376. <dd><p>Use four motion vector by macroblock (mpeg4).
  377. </p></dd>
  378. <dt>&lsquo;<samp class="samp">qpel</samp>&rsquo;</dt>
  379. <dd><p>Use 1/4 pel motion compensation.
  380. </p></dd>
  381. <dt>&lsquo;<samp class="samp">loop</samp>&rsquo;</dt>
  382. <dd><p>Use loop filter.
  383. </p></dd>
  384. <dt>&lsquo;<samp class="samp">qscale</samp>&rsquo;</dt>
  385. <dd><p>Use fixed qscale.
  386. </p></dd>
  387. <dt>&lsquo;<samp class="samp">pass1</samp>&rsquo;</dt>
  388. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  389. </p></dd>
  390. <dt>&lsquo;<samp class="samp">pass2</samp>&rsquo;</dt>
  391. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  392. </p></dd>
  393. <dt>&lsquo;<samp class="samp">gray</samp>&rsquo;</dt>
  394. <dd><p>Only decode/encode grayscale.
  395. </p></dd>
  396. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  397. <dd><p>Set error[?] variables during encoding.
  398. </p></dd>
  399. <dt>&lsquo;<samp class="samp">truncated</samp>&rsquo;</dt>
  400. <dd><p>Input bitstream might be randomly truncated.
  401. </p></dd>
  402. <dt>&lsquo;<samp class="samp">drop_changed</samp>&rsquo;</dt>
  403. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  404. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  405. </p>
  406. </dd>
  407. <dt>&lsquo;<samp class="samp">ildct</samp>&rsquo;</dt>
  408. <dd><p>Use interlaced DCT.
  409. </p></dd>
  410. <dt>&lsquo;<samp class="samp">low_delay</samp>&rsquo;</dt>
  411. <dd><p>Force low delay.
  412. </p></dd>
  413. <dt>&lsquo;<samp class="samp">global_header</samp>&rsquo;</dt>
  414. <dd><p>Place global headers in extradata instead of every keyframe.
  415. </p></dd>
  416. <dt>&lsquo;<samp class="samp">bitexact</samp>&rsquo;</dt>
  417. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  418. This ensures that file and data checksums are reproducible and match between
  419. platforms. Its primary use is for regression testing.
  420. </p></dd>
  421. <dt>&lsquo;<samp class="samp">aic</samp>&rsquo;</dt>
  422. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  423. </p></dd>
  424. <dt>&lsquo;<samp class="samp">ilme</samp>&rsquo;</dt>
  425. <dd><p>Apply interlaced motion estimation.
  426. </p></dd>
  427. <dt>&lsquo;<samp class="samp">cgop</samp>&rsquo;</dt>
  428. <dd><p>Use closed gop.
  429. </p></dd>
  430. <dt>&lsquo;<samp class="samp">output_corrupt</samp>&rsquo;</dt>
  431. <dd><p>Output even potentially corrupted frames.
  432. </p></dd>
  433. </dl>
  434. </dd>
  435. <dt><samp class="option">time_base <var class="var">rational number</var></samp></dt>
  436. <dd><p>Set codec time base.
  437. </p>
  438. <p>It is the fundamental unit of time (in seconds) in terms of which
  439. frame timestamps are represented. For fixed-fps content, timebase
  440. should be <code class="code">1 / frame_rate</code> and timestamp increments should be
  441. identically 1.
  442. </p>
  443. </dd>
  444. <dt><samp class="option">g <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  445. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  446. </p>
  447. </dd>
  448. <dt><samp class="option">ar <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  449. <dd><p>Set audio sampling rate (in Hz).
  450. </p>
  451. </dd>
  452. <dt><samp class="option">ac <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  453. <dd><p>Set number of audio channels.
  454. </p>
  455. </dd>
  456. <dt><samp class="option">cutoff <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  457. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  458. their respective documentation sections.)
  459. </p>
  460. </dd>
  461. <dt><samp class="option">frame_size <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  462. <dd><p>Set audio frame size.
  463. </p>
  464. <p>Each submitted frame except the last must contain exactly frame_size
  465. samples per channel. May be 0 when the codec has
  466. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  467. restricted. It is set by some decoders to indicate constant frame
  468. size.
  469. </p>
  470. </dd>
  471. <dt><samp class="option">frame_number <var class="var">integer</var></samp></dt>
  472. <dd><p>Set the frame number.
  473. </p>
  474. </dd>
  475. <dt><samp class="option">delay <var class="var">integer</var></samp></dt>
  476. <dt><samp class="option">qcomp <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  477. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  478. in the ratecontrol equation. Recommended range for default rc_eq:
  479. 0.0-1.0.
  480. </p>
  481. </dd>
  482. <dt><samp class="option">qblur <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  483. <dd><p>Set video quantizer scale blur (VBR).
  484. </p>
  485. </dd>
  486. <dt><samp class="option">qmin <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  487. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  488. 69, default value is 2.
  489. </p>
  490. </dd>
  491. <dt><samp class="option">qmax <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  492. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  493. 1024, default value is 31.
  494. </p>
  495. </dd>
  496. <dt><samp class="option">qdiff <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  497. <dd><p>Set max difference between the quantizer scale (VBR).
  498. </p>
  499. </dd>
  500. <dt><samp class="option">bf <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  501. <dd><p>Set max number of B frames between non-B-frames.
  502. </p>
  503. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  504. disabled. If a value of -1 is used, it will choose an automatic value
  505. depending on the encoder.
  506. </p>
  507. <p>Default value is 0.
  508. </p>
  509. </dd>
  510. <dt><samp class="option">b_qfactor <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  511. <dd><p>Set qp factor between P and B frames.
  512. </p>
  513. </dd>
  514. <dt><samp class="option">codec_tag <var class="var">integer</var></samp></dt>
  515. <dt><samp class="option">bug <var class="var">flags</var> (<em class="emph">decoding,video</em>)</samp></dt>
  516. <dd><p>Workaround not auto detected encoder bugs.
  517. </p>
  518. <p>Possible values:
  519. </p><dl class="table">
  520. <dt>&lsquo;<samp class="samp">autodetect</samp>&rsquo;</dt>
  521. <dt>&lsquo;<samp class="samp">xvid_ilace</samp>&rsquo;</dt>
  522. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  523. </p></dd>
  524. <dt>&lsquo;<samp class="samp">ump4</samp>&rsquo;</dt>
  525. <dd><p>(autodetected if fourcc==UMP4)
  526. </p></dd>
  527. <dt>&lsquo;<samp class="samp">no_padding</samp>&rsquo;</dt>
  528. <dd><p>padding bug (autodetected)
  529. </p></dd>
  530. <dt>&lsquo;<samp class="samp">amv</samp>&rsquo;</dt>
  531. <dt>&lsquo;<samp class="samp">qpel_chroma</samp>&rsquo;</dt>
  532. <dt>&lsquo;<samp class="samp">std_qpel</samp>&rsquo;</dt>
  533. <dd><p>old standard qpel (autodetected per fourcc/version)
  534. </p></dd>
  535. <dt>&lsquo;<samp class="samp">qpel_chroma2</samp>&rsquo;</dt>
  536. <dt>&lsquo;<samp class="samp">direct_blocksize</samp>&rsquo;</dt>
  537. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  538. </p></dd>
  539. <dt>&lsquo;<samp class="samp">edge</samp>&rsquo;</dt>
  540. <dd><p>edge padding bug (autodetected per fourcc/version)
  541. </p></dd>
  542. <dt>&lsquo;<samp class="samp">hpel_chroma</samp>&rsquo;</dt>
  543. <dt>&lsquo;<samp class="samp">dc_clip</samp>&rsquo;</dt>
  544. <dt>&lsquo;<samp class="samp">ms</samp>&rsquo;</dt>
  545. <dd><p>Workaround various bugs in microsoft broken decoders.
  546. </p></dd>
  547. <dt>&lsquo;<samp class="samp">trunc</samp>&rsquo;</dt>
  548. <dd><p>trancated frames
  549. </p></dd>
  550. </dl>
  551. </dd>
  552. <dt><samp class="option">strict <var class="var">integer</var> (<em class="emph">decoding/encoding,audio,video</em>)</samp></dt>
  553. <dd><p>Specify how strictly to follow the standards.
  554. </p>
  555. <p>Possible values:
  556. </p><dl class="table">
  557. <dt>&lsquo;<samp class="samp">very</samp>&rsquo;</dt>
  558. <dd><p>strictly conform to an older more strict version of the spec or reference software
  559. </p></dd>
  560. <dt>&lsquo;<samp class="samp">strict</samp>&rsquo;</dt>
  561. <dd><p>strictly conform to all the things in the spec no matter what consequences
  562. </p></dd>
  563. <dt>&lsquo;<samp class="samp">normal</samp>&rsquo;</dt>
  564. <dt>&lsquo;<samp class="samp">unofficial</samp>&rsquo;</dt>
  565. <dd><p>allow unofficial extensions
  566. </p></dd>
  567. <dt>&lsquo;<samp class="samp">experimental</samp>&rsquo;</dt>
  568. <dd><p>allow non standardized experimental things, experimental
  569. (unfinished/work in progress/not well tested) decoders and encoders.
  570. Note: experimental decoders can pose a security risk, do not use this for
  571. decoding untrusted input.
  572. </p></dd>
  573. </dl>
  574. </dd>
  575. <dt><samp class="option">b_qoffset <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  576. <dd><p>Set QP offset between P and B frames.
  577. </p>
  578. </dd>
  579. <dt><samp class="option">err_detect <var class="var">flags</var> (<em class="emph">decoding,audio,video</em>)</samp></dt>
  580. <dd><p>Set error detection flags.
  581. </p>
  582. <p>Possible values:
  583. </p><dl class="table">
  584. <dt>&lsquo;<samp class="samp">crccheck</samp>&rsquo;</dt>
  585. <dd><p>verify embedded CRCs
  586. </p></dd>
  587. <dt>&lsquo;<samp class="samp">bitstream</samp>&rsquo;</dt>
  588. <dd><p>detect bitstream specification deviations
  589. </p></dd>
  590. <dt>&lsquo;<samp class="samp">buffer</samp>&rsquo;</dt>
  591. <dd><p>detect improper bitstream length
  592. </p></dd>
  593. <dt>&lsquo;<samp class="samp">explode</samp>&rsquo;</dt>
  594. <dd><p>abort decoding on minor error detection
  595. </p></dd>
  596. <dt>&lsquo;<samp class="samp">ignore_err</samp>&rsquo;</dt>
  597. <dd><p>ignore decoding errors, and continue decoding.
  598. This is useful if you want to analyze the content of a video and thus want
  599. everything to be decoded no matter what. This option will not result in a video
  600. that is pleasing to watch in case of errors.
  601. </p></dd>
  602. <dt>&lsquo;<samp class="samp">careful</samp>&rsquo;</dt>
  603. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  604. </p></dd>
  605. <dt>&lsquo;<samp class="samp">compliant</samp>&rsquo;</dt>
  606. <dd><p>consider all spec non compliancies as errors
  607. </p></dd>
  608. <dt>&lsquo;<samp class="samp">aggressive</samp>&rsquo;</dt>
  609. <dd><p>consider things that a sane encoder should not do as an error
  610. </p></dd>
  611. </dl>
  612. </dd>
  613. <dt><samp class="option">has_b_frames <var class="var">integer</var></samp></dt>
  614. <dt><samp class="option">block_align <var class="var">integer</var></samp></dt>
  615. <dt><samp class="option">rc_override_count <var class="var">integer</var></samp></dt>
  616. <dt><samp class="option">maxrate <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  617. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  618. </p>
  619. </dd>
  620. <dt><samp class="option">minrate <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  621. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  622. encode. It is of little use elsewise.
  623. </p>
  624. </dd>
  625. <dt><samp class="option">bufsize <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  626. <dd><p>Set ratecontrol buffer size (in bits).
  627. </p>
  628. </dd>
  629. <dt><samp class="option">i_qfactor <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  630. <dd><p>Set QP factor between P and I frames.
  631. </p>
  632. </dd>
  633. <dt><samp class="option">i_qoffset <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  634. <dd><p>Set QP offset between P and I frames.
  635. </p>
  636. </dd>
  637. <dt><samp class="option">dct <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  638. <dd><p>Set DCT algorithm.
  639. </p>
  640. <p>Possible values:
  641. </p><dl class="table">
  642. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  643. <dd><p>autoselect a good one (default)
  644. </p></dd>
  645. <dt>&lsquo;<samp class="samp">fastint</samp>&rsquo;</dt>
  646. <dd><p>fast integer
  647. </p></dd>
  648. <dt>&lsquo;<samp class="samp">int</samp>&rsquo;</dt>
  649. <dd><p>accurate integer
  650. </p></dd>
  651. <dt>&lsquo;<samp class="samp">mmx</samp>&rsquo;</dt>
  652. <dt>&lsquo;<samp class="samp">altivec</samp>&rsquo;</dt>
  653. <dt>&lsquo;<samp class="samp">faan</samp>&rsquo;</dt>
  654. <dd><p>floating point AAN DCT
  655. </p></dd>
  656. </dl>
  657. </dd>
  658. <dt><samp class="option">lumi_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  659. <dd><p>Compress bright areas stronger than medium ones.
  660. </p>
  661. </dd>
  662. <dt><samp class="option">tcplx_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  663. <dd><p>Set temporal complexity masking.
  664. </p>
  665. </dd>
  666. <dt><samp class="option">scplx_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  667. <dd><p>Set spatial complexity masking.
  668. </p>
  669. </dd>
  670. <dt><samp class="option">p_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  671. <dd><p>Set inter masking.
  672. </p>
  673. </dd>
  674. <dt><samp class="option">dark_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  675. <dd><p>Compress dark areas stronger than medium ones.
  676. </p>
  677. </dd>
  678. <dt><samp class="option">idct <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  679. <dd><p>Select IDCT implementation.
  680. </p>
  681. <p>Possible values:
  682. </p><dl class="table">
  683. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  684. <dt>&lsquo;<samp class="samp">int</samp>&rsquo;</dt>
  685. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  686. <dt>&lsquo;<samp class="samp">simplemmx</samp>&rsquo;</dt>
  687. <dt>&lsquo;<samp class="samp">simpleauto</samp>&rsquo;</dt>
  688. <dd><p>Automatically pick a IDCT compatible with the simple one
  689. </p>
  690. </dd>
  691. <dt>&lsquo;<samp class="samp">arm</samp>&rsquo;</dt>
  692. <dt>&lsquo;<samp class="samp">altivec</samp>&rsquo;</dt>
  693. <dt>&lsquo;<samp class="samp">sh4</samp>&rsquo;</dt>
  694. <dt>&lsquo;<samp class="samp">simplearm</samp>&rsquo;</dt>
  695. <dt>&lsquo;<samp class="samp">simplearmv5te</samp>&rsquo;</dt>
  696. <dt>&lsquo;<samp class="samp">simplearmv6</samp>&rsquo;</dt>
  697. <dt>&lsquo;<samp class="samp">simpleneon</samp>&rsquo;</dt>
  698. <dt>&lsquo;<samp class="samp">xvid</samp>&rsquo;</dt>
  699. <dt>&lsquo;<samp class="samp">faani</samp>&rsquo;</dt>
  700. <dd><p>floating point AAN IDCT
  701. </p></dd>
  702. </dl>
  703. </dd>
  704. <dt><samp class="option">slice_count <var class="var">integer</var></samp></dt>
  705. <dt><samp class="option">ec <var class="var">flags</var> (<em class="emph">decoding,video</em>)</samp></dt>
  706. <dd><p>Set error concealment strategy.
  707. </p>
  708. <p>Possible values:
  709. </p><dl class="table">
  710. <dt>&lsquo;<samp class="samp">guess_mvs</samp>&rsquo;</dt>
  711. <dd><p>iterative motion vector (MV) search (slow)
  712. </p></dd>
  713. <dt>&lsquo;<samp class="samp">deblock</samp>&rsquo;</dt>
  714. <dd><p>use strong deblock filter for damaged MBs
  715. </p></dd>
  716. <dt>&lsquo;<samp class="samp">favor_inter</samp>&rsquo;</dt>
  717. <dd><p>favor predicting from the previous frame instead of the current
  718. </p></dd>
  719. </dl>
  720. </dd>
  721. <dt><samp class="option">bits_per_coded_sample <var class="var">integer</var></samp></dt>
  722. <dt><samp class="option">aspect <var class="var">rational number</var> (<em class="emph">encoding,video</em>)</samp></dt>
  723. <dd><p>Set sample aspect ratio.
  724. </p>
  725. </dd>
  726. <dt><samp class="option">sar <var class="var">rational number</var> (<em class="emph">encoding,video</em>)</samp></dt>
  727. <dd><p>Set sample aspect ratio. Alias to <var class="var">aspect</var>.
  728. </p>
  729. </dd>
  730. <dt><samp class="option">debug <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  731. <dd><p>Print specific debug info.
  732. </p>
  733. <p>Possible values:
  734. </p><dl class="table">
  735. <dt>&lsquo;<samp class="samp">pict</samp>&rsquo;</dt>
  736. <dd><p>picture info
  737. </p></dd>
  738. <dt>&lsquo;<samp class="samp">rc</samp>&rsquo;</dt>
  739. <dd><p>rate control
  740. </p></dd>
  741. <dt>&lsquo;<samp class="samp">bitstream</samp>&rsquo;</dt>
  742. <dt>&lsquo;<samp class="samp">mb_type</samp>&rsquo;</dt>
  743. <dd><p>macroblock (MB) type
  744. </p></dd>
  745. <dt>&lsquo;<samp class="samp">qp</samp>&rsquo;</dt>
  746. <dd><p>per-block quantization parameter (QP)
  747. </p></dd>
  748. <dt>&lsquo;<samp class="samp">dct_coeff</samp>&rsquo;</dt>
  749. <dt>&lsquo;<samp class="samp">green_metadata</samp>&rsquo;</dt>
  750. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  751. </p>
  752. </dd>
  753. <dt>&lsquo;<samp class="samp">skip</samp>&rsquo;</dt>
  754. <dt>&lsquo;<samp class="samp">startcode</samp>&rsquo;</dt>
  755. <dt>&lsquo;<samp class="samp">er</samp>&rsquo;</dt>
  756. <dd><p>error recognition
  757. </p></dd>
  758. <dt>&lsquo;<samp class="samp">mmco</samp>&rsquo;</dt>
  759. <dd><p>memory management control operations (H.264)
  760. </p></dd>
  761. <dt>&lsquo;<samp class="samp">bugs</samp>&rsquo;</dt>
  762. <dt>&lsquo;<samp class="samp">buffers</samp>&rsquo;</dt>
  763. <dd><p>picture buffer allocations
  764. </p></dd>
  765. <dt>&lsquo;<samp class="samp">thread_ops</samp>&rsquo;</dt>
  766. <dd><p>threading operations
  767. </p></dd>
  768. <dt>&lsquo;<samp class="samp">nomc</samp>&rsquo;</dt>
  769. <dd><p>skip motion compensation
  770. </p></dd>
  771. </dl>
  772. </dd>
  773. <dt><samp class="option">cmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  774. <dd><p>Set full pel me compare function.
  775. </p>
  776. <p>Possible values:
  777. </p><dl class="table">
  778. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  779. <dd><p>sum of absolute differences, fast (default)
  780. </p></dd>
  781. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  782. <dd><p>sum of squared errors
  783. </p></dd>
  784. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  785. <dd><p>sum of absolute Hadamard transformed differences
  786. </p></dd>
  787. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  788. <dd><p>sum of absolute DCT transformed differences
  789. </p></dd>
  790. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  791. <dd><p>sum of squared quantization errors (avoid, low quality)
  792. </p></dd>
  793. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  794. <dd><p>number of bits needed for the block
  795. </p></dd>
  796. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  797. <dd><p>rate distortion optimal, slow
  798. </p></dd>
  799. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  800. <dd><p>0
  801. </p></dd>
  802. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  803. <dd><p>sum of absolute vertical differences
  804. </p></dd>
  805. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  806. <dd><p>sum of squared vertical differences
  807. </p></dd>
  808. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  809. <dd><p>noise preserving sum of squared differences
  810. </p></dd>
  811. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  812. <dd><p>5/3 wavelet, only used in snow
  813. </p></dd>
  814. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  815. <dd><p>9/7 wavelet, only used in snow
  816. </p></dd>
  817. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  818. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  819. </dl>
  820. </dd>
  821. <dt><samp class="option">subcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  822. <dd><p>Set sub pel me compare function.
  823. </p>
  824. <p>Possible values:
  825. </p><dl class="table">
  826. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  827. <dd><p>sum of absolute differences, fast (default)
  828. </p></dd>
  829. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  830. <dd><p>sum of squared errors
  831. </p></dd>
  832. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  833. <dd><p>sum of absolute Hadamard transformed differences
  834. </p></dd>
  835. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  836. <dd><p>sum of absolute DCT transformed differences
  837. </p></dd>
  838. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  839. <dd><p>sum of squared quantization errors (avoid, low quality)
  840. </p></dd>
  841. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  842. <dd><p>number of bits needed for the block
  843. </p></dd>
  844. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  845. <dd><p>rate distortion optimal, slow
  846. </p></dd>
  847. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  848. <dd><p>0
  849. </p></dd>
  850. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  851. <dd><p>sum of absolute vertical differences
  852. </p></dd>
  853. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  854. <dd><p>sum of squared vertical differences
  855. </p></dd>
  856. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  857. <dd><p>noise preserving sum of squared differences
  858. </p></dd>
  859. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  860. <dd><p>5/3 wavelet, only used in snow
  861. </p></dd>
  862. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  863. <dd><p>9/7 wavelet, only used in snow
  864. </p></dd>
  865. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  866. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  867. </dl>
  868. </dd>
  869. <dt><samp class="option">mbcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  870. <dd><p>Set macroblock compare function.
  871. </p>
  872. <p>Possible values:
  873. </p><dl class="table">
  874. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  875. <dd><p>sum of absolute differences, fast (default)
  876. </p></dd>
  877. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  878. <dd><p>sum of squared errors
  879. </p></dd>
  880. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  881. <dd><p>sum of absolute Hadamard transformed differences
  882. </p></dd>
  883. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  884. <dd><p>sum of absolute DCT transformed differences
  885. </p></dd>
  886. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  887. <dd><p>sum of squared quantization errors (avoid, low quality)
  888. </p></dd>
  889. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  890. <dd><p>number of bits needed for the block
  891. </p></dd>
  892. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  893. <dd><p>rate distortion optimal, slow
  894. </p></dd>
  895. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  896. <dd><p>0
  897. </p></dd>
  898. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  899. <dd><p>sum of absolute vertical differences
  900. </p></dd>
  901. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  902. <dd><p>sum of squared vertical differences
  903. </p></dd>
  904. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  905. <dd><p>noise preserving sum of squared differences
  906. </p></dd>
  907. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  908. <dd><p>5/3 wavelet, only used in snow
  909. </p></dd>
  910. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  911. <dd><p>9/7 wavelet, only used in snow
  912. </p></dd>
  913. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  914. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  915. </dl>
  916. </dd>
  917. <dt><samp class="option">ildctcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  918. <dd><p>Set interlaced dct compare function.
  919. </p>
  920. <p>Possible values:
  921. </p><dl class="table">
  922. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  923. <dd><p>sum of absolute differences, fast (default)
  924. </p></dd>
  925. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  926. <dd><p>sum of squared errors
  927. </p></dd>
  928. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  929. <dd><p>sum of absolute Hadamard transformed differences
  930. </p></dd>
  931. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  932. <dd><p>sum of absolute DCT transformed differences
  933. </p></dd>
  934. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  935. <dd><p>sum of squared quantization errors (avoid, low quality)
  936. </p></dd>
  937. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  938. <dd><p>number of bits needed for the block
  939. </p></dd>
  940. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  941. <dd><p>rate distortion optimal, slow
  942. </p></dd>
  943. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  944. <dd><p>0
  945. </p></dd>
  946. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  947. <dd><p>sum of absolute vertical differences
  948. </p></dd>
  949. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  950. <dd><p>sum of squared vertical differences
  951. </p></dd>
  952. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  953. <dd><p>noise preserving sum of squared differences
  954. </p></dd>
  955. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  956. <dd><p>5/3 wavelet, only used in snow
  957. </p></dd>
  958. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  959. <dd><p>9/7 wavelet, only used in snow
  960. </p></dd>
  961. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  962. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  963. </dl>
  964. </dd>
  965. <dt><samp class="option">dia_size <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  966. <dd><p>Set diamond type &amp; size for motion estimation.
  967. </p><dl class="table">
  968. <dt>&lsquo;<samp class="samp">(1024, INT_MAX)</samp>&rsquo;</dt>
  969. <dd><p>full motion estimation(slowest)
  970. </p></dd>
  971. <dt>&lsquo;<samp class="samp">(768, 1024]</samp>&rsquo;</dt>
  972. <dd><p>umh motion estimation
  973. </p></dd>
  974. <dt>&lsquo;<samp class="samp">(512, 768]</samp>&rsquo;</dt>
  975. <dd><p>hex motion estimation
  976. </p></dd>
  977. <dt>&lsquo;<samp class="samp">(256, 512]</samp>&rsquo;</dt>
  978. <dd><p>l2s diamond motion estimation
  979. </p></dd>
  980. <dt>&lsquo;<samp class="samp">[2,256]</samp>&rsquo;</dt>
  981. <dd><p>var diamond motion estimation
  982. </p></dd>
  983. <dt>&lsquo;<samp class="samp">(-1, 2)</samp>&rsquo;</dt>
  984. <dd><p>small diamond motion estimation
  985. </p></dd>
  986. <dt>&lsquo;<samp class="samp">-1</samp>&rsquo;</dt>
  987. <dd><p>funny diamond motion estimation
  988. </p></dd>
  989. <dt>&lsquo;<samp class="samp">(INT_MIN, -1)</samp>&rsquo;</dt>
  990. <dd><p>sab diamond motion estimation
  991. </p></dd>
  992. </dl>
  993. </dd>
  994. <dt><samp class="option">last_pred <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  995. <dd><p>Set amount of motion predictors from the previous frame.
  996. </p>
  997. </dd>
  998. <dt><samp class="option">precmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  999. <dd><p>Set pre motion estimation compare function.
  1000. </p>
  1001. <p>Possible values:
  1002. </p><dl class="table">
  1003. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  1004. <dd><p>sum of absolute differences, fast (default)
  1005. </p></dd>
  1006. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  1007. <dd><p>sum of squared errors
  1008. </p></dd>
  1009. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  1010. <dd><p>sum of absolute Hadamard transformed differences
  1011. </p></dd>
  1012. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  1013. <dd><p>sum of absolute DCT transformed differences
  1014. </p></dd>
  1015. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  1016. <dd><p>sum of squared quantization errors (avoid, low quality)
  1017. </p></dd>
  1018. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  1019. <dd><p>number of bits needed for the block
  1020. </p></dd>
  1021. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  1022. <dd><p>rate distortion optimal, slow
  1023. </p></dd>
  1024. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  1025. <dd><p>0
  1026. </p></dd>
  1027. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  1028. <dd><p>sum of absolute vertical differences
  1029. </p></dd>
  1030. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  1031. <dd><p>sum of squared vertical differences
  1032. </p></dd>
  1033. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  1034. <dd><p>noise preserving sum of squared differences
  1035. </p></dd>
  1036. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  1037. <dd><p>5/3 wavelet, only used in snow
  1038. </p></dd>
  1039. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  1040. <dd><p>9/7 wavelet, only used in snow
  1041. </p></dd>
  1042. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  1043. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  1044. </dl>
  1045. </dd>
  1046. <dt><samp class="option">pre_dia_size <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1047. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  1048. </p>
  1049. </dd>
  1050. <dt><samp class="option">subq <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1051. <dd><p>Set sub pel motion estimation quality.
  1052. </p>
  1053. </dd>
  1054. <dt><samp class="option">me_range <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1055. <dd><p>Set limit motion vectors range (1023 for DivX player).
  1056. </p>
  1057. </dd>
  1058. <dt><samp class="option">global_quality <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1059. <dt><samp class="option">slice_flags <var class="var">integer</var></samp></dt>
  1060. <dt><samp class="option">mbd <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1061. <dd><p>Set macroblock decision algorithm (high quality mode).
  1062. </p>
  1063. <p>Possible values:
  1064. </p><dl class="table">
  1065. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  1066. <dd><p>use mbcmp (default)
  1067. </p></dd>
  1068. <dt>&lsquo;<samp class="samp">bits</samp>&rsquo;</dt>
  1069. <dd><p>use fewest bits
  1070. </p></dd>
  1071. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  1072. <dd><p>use best rate distortion
  1073. </p></dd>
  1074. </dl>
  1075. </dd>
  1076. <dt><samp class="option">rc_init_occupancy <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1077. <dd><p>Set number of bits which should be loaded into the rc buffer before
  1078. decoding starts.
  1079. </p>
  1080. </dd>
  1081. <dt><samp class="option">flags2 <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1082. <dd>
  1083. <p>Possible values:
  1084. </p><dl class="table">
  1085. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  1086. <dd><p>Allow non spec compliant speedup tricks.
  1087. </p></dd>
  1088. <dt>&lsquo;<samp class="samp">noout</samp>&rsquo;</dt>
  1089. <dd><p>Skip bitstream encoding.
  1090. </p></dd>
  1091. <dt>&lsquo;<samp class="samp">ignorecrop</samp>&rsquo;</dt>
  1092. <dd><p>Ignore cropping information from sps.
  1093. </p></dd>
  1094. <dt>&lsquo;<samp class="samp">local_header</samp>&rsquo;</dt>
  1095. <dd><p>Place global headers at every keyframe instead of in extradata.
  1096. </p></dd>
  1097. <dt>&lsquo;<samp class="samp">chunks</samp>&rsquo;</dt>
  1098. <dd><p>Frame data might be split into multiple chunks.
  1099. </p></dd>
  1100. <dt>&lsquo;<samp class="samp">showall</samp>&rsquo;</dt>
  1101. <dd><p>Show all frames before the first keyframe.
  1102. </p></dd>
  1103. <dt>&lsquo;<samp class="samp">export_mvs</samp>&rsquo;</dt>
  1104. <dd><p>Export motion vectors into frame side-data (see <code class="code">AV_FRAME_DATA_MOTION_VECTORS</code>)
  1105. for codecs that support it. See also <samp class="file">doc/examples/export_mvs.c</samp>.
  1106. </p></dd>
  1107. <dt>&lsquo;<samp class="samp">skip_manual</samp>&rsquo;</dt>
  1108. <dd><p>Do not skip samples and export skip information as frame side data.
  1109. </p></dd>
  1110. <dt>&lsquo;<samp class="samp">ass_ro_flush_noop</samp>&rsquo;</dt>
  1111. <dd><p>Do not reset ASS ReadOrder field on flush.
  1112. </p></dd>
  1113. <dt>&lsquo;<samp class="samp">icc_profiles</samp>&rsquo;</dt>
  1114. <dd><p>Generate/parse embedded ICC profiles from/to colorimetry tags.
  1115. </p></dd>
  1116. </dl>
  1117. </dd>
  1118. <dt><samp class="option">export_side_data <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1119. <dd>
  1120. <p>Possible values:
  1121. </p><dl class="table">
  1122. <dt>&lsquo;<samp class="samp">mvs</samp>&rsquo;</dt>
  1123. <dd><p>Export motion vectors into frame side-data (see <code class="code">AV_FRAME_DATA_MOTION_VECTORS</code>)
  1124. for codecs that support it. See also <samp class="file">doc/examples/export_mvs.c</samp>.
  1125. </p></dd>
  1126. <dt>&lsquo;<samp class="samp">prft</samp>&rsquo;</dt>
  1127. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code class="code">AV_PKT_DATA_PRFT</code>)
  1128. for codecs that support it.
  1129. </p></dd>
  1130. <dt>&lsquo;<samp class="samp">venc_params</samp>&rsquo;</dt>
  1131. <dd><p>Export video encoding parameters through frame side data (see <code class="code">AV_FRAME_DATA_VIDEO_ENC_PARAMS</code>)
  1132. for codecs that support it. At present, those are H.264 and VP9.
  1133. </p></dd>
  1134. <dt>&lsquo;<samp class="samp">film_grain</samp>&rsquo;</dt>
  1135. <dd><p>Export film grain parameters through frame side data (see <code class="code">AV_FRAME_DATA_FILM_GRAIN_PARAMS</code>).
  1136. Supported at present by AV1 decoders.
  1137. </p></dd>
  1138. </dl>
  1139. </dd>
  1140. <dt><samp class="option">threads <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1141. <dd><p>Set the number of threads to be used, in case the selected codec
  1142. implementation supports multi-threading.
  1143. </p>
  1144. <p>Possible values:
  1145. </p><dl class="table">
  1146. <dt>&lsquo;<samp class="samp">auto, 0</samp>&rsquo;</dt>
  1147. <dd><p>automatically select the number of threads to set
  1148. </p></dd>
  1149. </dl>
  1150. <p>Default value is &lsquo;<samp class="samp">auto</samp>&rsquo;.
  1151. </p>
  1152. </dd>
  1153. <dt><samp class="option">dc <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1154. <dd><p>Set intra_dc_precision.
  1155. </p>
  1156. </dd>
  1157. <dt><samp class="option">nssew <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1158. <dd><p>Set nsse weight.
  1159. </p>
  1160. </dd>
  1161. <dt><samp class="option">skip_top <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1162. <dd><p>Set number of macroblock rows at the top which are skipped.
  1163. </p>
  1164. </dd>
  1165. <dt><samp class="option">skip_bottom <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1166. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  1167. </p>
  1168. </dd>
  1169. <dt><samp class="option">profile <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1170. <dd>
  1171. <p>Set encoder codec profile. Default value is &lsquo;<samp class="samp">unknown</samp>&rsquo;. Encoder specific
  1172. profiles are documented in the relevant encoder documentation.
  1173. </p>
  1174. </dd>
  1175. <dt><samp class="option">level <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1176. <dd>
  1177. <p>Set the encoder level. This level depends on the specific codec, and
  1178. might correspond to the profile level. It is set by default to
  1179. &lsquo;<samp class="samp">unknown</samp>&rsquo;.
  1180. </p>
  1181. <p>Possible values:
  1182. </p><dl class="table">
  1183. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  1184. </dl>
  1185. </dd>
  1186. <dt><samp class="option">lowres <var class="var">integer</var> (<em class="emph">decoding,audio,video</em>)</samp></dt>
  1187. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1188. </p>
  1189. </dd>
  1190. <dt><samp class="option">mblmin <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1191. <dd><p>Set min macroblock lagrange factor (VBR).
  1192. </p>
  1193. </dd>
  1194. <dt><samp class="option">mblmax <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1195. <dd><p>Set max macroblock lagrange factor (VBR).
  1196. </p>
  1197. </dd>
  1198. <dt><samp class="option">skip_loop_filter <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1199. <dt><samp class="option">skip_idct <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1200. <dt><samp class="option">skip_frame <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1201. <dd>
  1202. <p>Make decoder discard processing depending on the frame type selected
  1203. by the option value.
  1204. </p>
  1205. <p><samp class="option">skip_loop_filter</samp> skips frame loop filtering, <samp class="option">skip_idct</samp>
  1206. skips frame IDCT/dequantization, <samp class="option">skip_frame</samp> skips decoding.
  1207. </p>
  1208. <p>Possible values:
  1209. </p><dl class="table">
  1210. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  1211. <dd><p>Discard no frame.
  1212. </p>
  1213. </dd>
  1214. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  1215. <dd><p>Discard useless frames like 0-sized frames.
  1216. </p>
  1217. </dd>
  1218. <dt>&lsquo;<samp class="samp">noref</samp>&rsquo;</dt>
  1219. <dd><p>Discard all non-reference frames.
  1220. </p>
  1221. </dd>
  1222. <dt>&lsquo;<samp class="samp">bidir</samp>&rsquo;</dt>
  1223. <dd><p>Discard all bidirectional frames.
  1224. </p>
  1225. </dd>
  1226. <dt>&lsquo;<samp class="samp">nokey</samp>&rsquo;</dt>
  1227. <dd><p>Discard all frames excepts keyframes.
  1228. </p>
  1229. </dd>
  1230. <dt>&lsquo;<samp class="samp">nointra</samp>&rsquo;</dt>
  1231. <dd><p>Discard all frames except I frames.
  1232. </p>
  1233. </dd>
  1234. <dt>&lsquo;<samp class="samp">all</samp>&rsquo;</dt>
  1235. <dd><p>Discard all frames.
  1236. </p></dd>
  1237. </dl>
  1238. <p>Default value is &lsquo;<samp class="samp">default</samp>&rsquo;.
  1239. </p>
  1240. </dd>
  1241. <dt><samp class="option">bidir_refine <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1242. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  1243. </p>
  1244. </dd>
  1245. <dt><samp class="option">keyint_min <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1246. <dd><p>Set minimum interval between IDR-frames.
  1247. </p>
  1248. </dd>
  1249. <dt><samp class="option">refs <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1250. <dd><p>Set reference frames to consider for motion compensation.
  1251. </p>
  1252. </dd>
  1253. <dt><samp class="option">trellis <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1254. <dd><p>Set rate-distortion optimal quantization.
  1255. </p>
  1256. </dd>
  1257. <dt><samp class="option">mv0_threshold <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1258. <dt><samp class="option">compression_level <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1259. <dt><samp class="option">bits_per_raw_sample <var class="var">integer</var></samp></dt>
  1260. <dt><samp class="option">channel_layout <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  1261. <dd><p>See <a data-manual="ffmpeg-utils" href="ffmpeg-utils.html#channel-layout-syntax">the Channel Layout section in the ffmpeg-utils(1) manual</a>
  1262. for the required syntax.
  1263. </p>
  1264. </dd>
  1265. <dt><samp class="option">rc_max_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1266. <dt><samp class="option">rc_min_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1267. <dt><samp class="option">color_primaries <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1268. <dd><p>Possible values:
  1269. </p><dl class="table">
  1270. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1271. <dd><p>BT.709
  1272. </p></dd>
  1273. <dt>&lsquo;<samp class="samp">bt470m</samp>&rsquo;</dt>
  1274. <dd><p>BT.470 M
  1275. </p></dd>
  1276. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1277. <dd><p>BT.470 BG
  1278. </p></dd>
  1279. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1280. <dd><p>SMPTE 170 M
  1281. </p></dd>
  1282. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1283. <dd><p>SMPTE 240 M
  1284. </p></dd>
  1285. <dt>&lsquo;<samp class="samp">film</samp>&rsquo;</dt>
  1286. <dd><p>Film
  1287. </p></dd>
  1288. <dt>&lsquo;<samp class="samp">bt2020</samp>&rsquo;</dt>
  1289. <dd><p>BT.2020
  1290. </p></dd>
  1291. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1292. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1293. <dd><p>SMPTE ST 428-1
  1294. </p></dd>
  1295. <dt>&lsquo;<samp class="samp">smpte431</samp>&rsquo;</dt>
  1296. <dd><p>SMPTE 431-2
  1297. </p></dd>
  1298. <dt>&lsquo;<samp class="samp">smpte432</samp>&rsquo;</dt>
  1299. <dd><p>SMPTE 432-1
  1300. </p></dd>
  1301. <dt>&lsquo;<samp class="samp">jedec-p22</samp>&rsquo;</dt>
  1302. <dd><p>JEDEC P22
  1303. </p></dd>
  1304. </dl>
  1305. </dd>
  1306. <dt><samp class="option">color_trc <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1307. <dd><p>Possible values:
  1308. </p><dl class="table">
  1309. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1310. <dd><p>BT.709
  1311. </p></dd>
  1312. <dt>&lsquo;<samp class="samp">gamma22</samp>&rsquo;</dt>
  1313. <dd><p>BT.470 M
  1314. </p></dd>
  1315. <dt>&lsquo;<samp class="samp">gamma28</samp>&rsquo;</dt>
  1316. <dd><p>BT.470 BG
  1317. </p></dd>
  1318. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1319. <dd><p>SMPTE 170 M
  1320. </p></dd>
  1321. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1322. <dd><p>SMPTE 240 M
  1323. </p></dd>
  1324. <dt>&lsquo;<samp class="samp">linear</samp>&rsquo;</dt>
  1325. <dd><p>Linear
  1326. </p></dd>
  1327. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  1328. <dt>&lsquo;<samp class="samp">log100</samp>&rsquo;</dt>
  1329. <dd><p>Log
  1330. </p></dd>
  1331. <dt>&lsquo;<samp class="samp">log_sqrt</samp>&rsquo;</dt>
  1332. <dt>&lsquo;<samp class="samp">log316</samp>&rsquo;</dt>
  1333. <dd><p>Log square root
  1334. </p></dd>
  1335. <dt>&lsquo;<samp class="samp">iec61966_2_4</samp>&rsquo;</dt>
  1336. <dt>&lsquo;<samp class="samp">iec61966-2-4</samp>&rsquo;</dt>
  1337. <dd><p>IEC 61966-2-4
  1338. </p></dd>
  1339. <dt>&lsquo;<samp class="samp">bt1361</samp>&rsquo;</dt>
  1340. <dt>&lsquo;<samp class="samp">bt1361e</samp>&rsquo;</dt>
  1341. <dd><p>BT.1361
  1342. </p></dd>
  1343. <dt>&lsquo;<samp class="samp">iec61966_2_1</samp>&rsquo;</dt>
  1344. <dt>&lsquo;<samp class="samp">iec61966-2-1</samp>&rsquo;</dt>
  1345. <dd><p>IEC 61966-2-1
  1346. </p></dd>
  1347. <dt>&lsquo;<samp class="samp">bt2020_10</samp>&rsquo;</dt>
  1348. <dt>&lsquo;<samp class="samp">bt2020_10bit</samp>&rsquo;</dt>
  1349. <dd><p>BT.2020 - 10 bit
  1350. </p></dd>
  1351. <dt>&lsquo;<samp class="samp">bt2020_12</samp>&rsquo;</dt>
  1352. <dt>&lsquo;<samp class="samp">bt2020_12bit</samp>&rsquo;</dt>
  1353. <dd><p>BT.2020 - 12 bit
  1354. </p></dd>
  1355. <dt>&lsquo;<samp class="samp">smpte2084</samp>&rsquo;</dt>
  1356. <dd><p>SMPTE ST 2084
  1357. </p></dd>
  1358. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1359. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1360. <dd><p>SMPTE ST 428-1
  1361. </p></dd>
  1362. <dt>&lsquo;<samp class="samp">arib-std-b67</samp>&rsquo;</dt>
  1363. <dd><p>ARIB STD-B67
  1364. </p></dd>
  1365. </dl>
  1366. </dd>
  1367. <dt><samp class="option">colorspace <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1368. <dd><p>Possible values:
  1369. </p><dl class="table">
  1370. <dt>&lsquo;<samp class="samp">rgb</samp>&rsquo;</dt>
  1371. <dd><p>RGB
  1372. </p></dd>
  1373. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1374. <dd><p>BT.709
  1375. </p></dd>
  1376. <dt>&lsquo;<samp class="samp">fcc</samp>&rsquo;</dt>
  1377. <dd><p>FCC
  1378. </p></dd>
  1379. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1380. <dd><p>BT.470 BG
  1381. </p></dd>
  1382. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1383. <dd><p>SMPTE 170 M
  1384. </p></dd>
  1385. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1386. <dd><p>SMPTE 240 M
  1387. </p></dd>
  1388. <dt>&lsquo;<samp class="samp">ycocg</samp>&rsquo;</dt>
  1389. <dd><p>YCOCG
  1390. </p></dd>
  1391. <dt>&lsquo;<samp class="samp">bt2020nc</samp>&rsquo;</dt>
  1392. <dt>&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo;</dt>
  1393. <dd><p>BT.2020 NCL
  1394. </p></dd>
  1395. <dt>&lsquo;<samp class="samp">bt2020c</samp>&rsquo;</dt>
  1396. <dt>&lsquo;<samp class="samp">bt2020_cl</samp>&rsquo;</dt>
  1397. <dd><p>BT.2020 CL
  1398. </p></dd>
  1399. <dt>&lsquo;<samp class="samp">smpte2085</samp>&rsquo;</dt>
  1400. <dd><p>SMPTE 2085
  1401. </p></dd>
  1402. <dt>&lsquo;<samp class="samp">chroma-derived-nc</samp>&rsquo;</dt>
  1403. <dd><p>Chroma-derived NCL
  1404. </p></dd>
  1405. <dt>&lsquo;<samp class="samp">chroma-derived-c</samp>&rsquo;</dt>
  1406. <dd><p>Chroma-derived CL
  1407. </p></dd>
  1408. <dt>&lsquo;<samp class="samp">ictcp</samp>&rsquo;</dt>
  1409. <dd><p>ICtCp
  1410. </p></dd>
  1411. </dl>
  1412. </dd>
  1413. <dt><samp class="option">color_range <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1414. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1415. color_range the input has.
  1416. Possible values:
  1417. </p><dl class="table">
  1418. <dt>&lsquo;<samp class="samp">tv</samp>&rsquo;</dt>
  1419. <dt>&lsquo;<samp class="samp">mpeg</samp>&rsquo;</dt>
  1420. <dt>&lsquo;<samp class="samp">limited</samp>&rsquo;</dt>
  1421. <dd><p>MPEG (219*2^(n-8))
  1422. </p></dd>
  1423. <dt>&lsquo;<samp class="samp">pc</samp>&rsquo;</dt>
  1424. <dt>&lsquo;<samp class="samp">jpeg</samp>&rsquo;</dt>
  1425. <dt>&lsquo;<samp class="samp">full</samp>&rsquo;</dt>
  1426. <dd><p>JPEG (2^n-1)
  1427. </p></dd>
  1428. </dl>
  1429. </dd>
  1430. <dt><samp class="option">chroma_sample_location <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1431. <dd><p>Possible values:
  1432. </p><dl class="table">
  1433. <dt>&lsquo;<samp class="samp">left</samp>&rsquo;</dt>
  1434. <dt>&lsquo;<samp class="samp">center</samp>&rsquo;</dt>
  1435. <dt>&lsquo;<samp class="samp">topleft</samp>&rsquo;</dt>
  1436. <dt>&lsquo;<samp class="samp">top</samp>&rsquo;</dt>
  1437. <dt>&lsquo;<samp class="samp">bottomleft</samp>&rsquo;</dt>
  1438. <dt>&lsquo;<samp class="samp">bottom</samp>&rsquo;</dt>
  1439. </dl>
  1440. </dd>
  1441. <dt><samp class="option">log_level_offset <var class="var">integer</var></samp></dt>
  1442. <dd><p>Set the log level offset.
  1443. </p>
  1444. </dd>
  1445. <dt><samp class="option">slices <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1446. <dd><p>Number of slices, used in parallelized encoding.
  1447. </p>
  1448. </dd>
  1449. <dt><samp class="option">thread_type <var class="var">flags</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1450. <dd><p>Select which multithreading methods to use.
  1451. </p>
  1452. <p>Use of &lsquo;<samp class="samp">frame</samp>&rsquo; will increase decoding delay by one frame per
  1453. thread, so clients which cannot provide future frames should not use
  1454. it.
  1455. </p>
  1456. <p>Possible values:
  1457. </p><dl class="table">
  1458. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  1459. <dd><p>Decode more than one part of a single frame at once.
  1460. </p>
  1461. <p>Multithreading using slices works only when the video was encoded with
  1462. slices.
  1463. </p>
  1464. </dd>
  1465. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  1466. <dd><p>Decode more than one frame at once.
  1467. </p></dd>
  1468. </dl>
  1469. <p>Default value is &lsquo;<samp class="samp">slice+frame</samp>&rsquo;.
  1470. </p>
  1471. </dd>
  1472. <dt><samp class="option">audio_service_type <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  1473. <dd><p>Set audio service type.
  1474. </p>
  1475. <p>Possible values:
  1476. </p><dl class="table">
  1477. <dt>&lsquo;<samp class="samp">ma</samp>&rsquo;</dt>
  1478. <dd><p>Main Audio Service
  1479. </p></dd>
  1480. <dt>&lsquo;<samp class="samp">ef</samp>&rsquo;</dt>
  1481. <dd><p>Effects
  1482. </p></dd>
  1483. <dt>&lsquo;<samp class="samp">vi</samp>&rsquo;</dt>
  1484. <dd><p>Visually Impaired
  1485. </p></dd>
  1486. <dt>&lsquo;<samp class="samp">hi</samp>&rsquo;</dt>
  1487. <dd><p>Hearing Impaired
  1488. </p></dd>
  1489. <dt>&lsquo;<samp class="samp">di</samp>&rsquo;</dt>
  1490. <dd><p>Dialogue
  1491. </p></dd>
  1492. <dt>&lsquo;<samp class="samp">co</samp>&rsquo;</dt>
  1493. <dd><p>Commentary
  1494. </p></dd>
  1495. <dt>&lsquo;<samp class="samp">em</samp>&rsquo;</dt>
  1496. <dd><p>Emergency
  1497. </p></dd>
  1498. <dt>&lsquo;<samp class="samp">vo</samp>&rsquo;</dt>
  1499. <dd><p>Voice Over
  1500. </p></dd>
  1501. <dt>&lsquo;<samp class="samp">ka</samp>&rsquo;</dt>
  1502. <dd><p>Karaoke
  1503. </p></dd>
  1504. </dl>
  1505. </dd>
  1506. <dt><samp class="option">request_sample_fmt <var class="var">sample_fmt</var> (<em class="emph">decoding,audio</em>)</samp></dt>
  1507. <dd><p>Set sample format audio decoders should prefer. Default value is
  1508. <code class="code">none</code>.
  1509. </p>
  1510. </dd>
  1511. <dt><samp class="option">pkt_timebase <var class="var">rational number</var></samp></dt>
  1512. <dt><samp class="option">sub_charenc <var class="var">encoding</var> (<em class="emph">decoding,subtitles</em>)</samp></dt>
  1513. <dd><p>Set the input subtitles character encoding.
  1514. </p>
  1515. </dd>
  1516. <dt><samp class="option">field_order <var class="var">field_order</var> (<em class="emph">video</em>)</samp></dt>
  1517. <dd><p>Set/override the field order of the video.
  1518. Possible values:
  1519. </p><dl class="table">
  1520. <dt>&lsquo;<samp class="samp">progressive</samp>&rsquo;</dt>
  1521. <dd><p>Progressive video
  1522. </p></dd>
  1523. <dt>&lsquo;<samp class="samp">tt</samp>&rsquo;</dt>
  1524. <dd><p>Interlaced video, top field coded and displayed first
  1525. </p></dd>
  1526. <dt>&lsquo;<samp class="samp">bb</samp>&rsquo;</dt>
  1527. <dd><p>Interlaced video, bottom field coded and displayed first
  1528. </p></dd>
  1529. <dt>&lsquo;<samp class="samp">tb</samp>&rsquo;</dt>
  1530. <dd><p>Interlaced video, top coded first, bottom displayed first
  1531. </p></dd>
  1532. <dt>&lsquo;<samp class="samp">bt</samp>&rsquo;</dt>
  1533. <dd><p>Interlaced video, bottom coded first, top displayed first
  1534. </p></dd>
  1535. </dl>
  1536. </dd>
  1537. <dt><samp class="option">skip_alpha <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1538. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1539. &lsquo;<samp class="samp">gray</samp>&rsquo; flag in the <samp class="option">flags</samp> option which skips chroma information
  1540. instead of alpha. Default is 0.
  1541. </p>
  1542. </dd>
  1543. <dt><samp class="option">codec_whitelist <var class="var">list</var> (<em class="emph">input</em>)</samp></dt>
  1544. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1545. </p>
  1546. </dd>
  1547. <dt><samp class="option">dump_separator <var class="var">string</var> (<em class="emph">input</em>)</samp></dt>
  1548. <dd><p>Separator used to separate the fields printed on the command line about the
  1549. Stream parameters.
  1550. For example, to separate the fields with newlines and indentation:
  1551. </p><div class="example">
  1552. <pre class="example-preformatted">ffprobe -dump_separator &quot;
  1553. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1554. </pre></div>
  1555. </dd>
  1556. <dt><samp class="option">max_pixels <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1557. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1558. memory failures due to large images.
  1559. </p>
  1560. </dd>
  1561. <dt><samp class="option">apply_cropping <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1562. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1563. alignment for the left and top parameters. If the alignment is not met the
  1564. cropping will be partially applied to maintain alignment.
  1565. Default is 1 (enabled).
  1566. Note: The required alignment depends on if <code class="code">AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1567. CPU. <code class="code">AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1568. decoders will not apply left/top Cropping.
  1569. </p>
  1570. </dd>
  1571. </dl>
  1572. </div>
  1573. <div class="chapter-level-extent" id="Decoders">
  1574. <h2 class="chapter"><span>3 Decoders<a class="copiable-link" href="#Decoders"> &para;</a></span></h2>
  1575. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1576. multimedia streams.
  1577. </p>
  1578. <p>When you configure your FFmpeg build, all the supported native decoders
  1579. are enabled by default. Decoders requiring an external library must be enabled
  1580. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  1581. available decoders using the configure option <code class="code">--list-decoders</code>.
  1582. </p>
  1583. <p>You can disable all the decoders with the configure option
  1584. <code class="code">--disable-decoders</code> and selectively enable / disable single decoders
  1585. with the options <code class="code">--enable-decoder=<var class="var">DECODER</var></code> /
  1586. <code class="code">--disable-decoder=<var class="var">DECODER</var></code>.
  1587. </p>
  1588. <p>The option <code class="code">-decoders</code> of the ff* tools will display the list of
  1589. enabled decoders.
  1590. </p>
  1591. </div>
  1592. <div class="chapter-level-extent" id="Video-Decoders">
  1593. <h2 class="chapter"><span>4 Video Decoders<a class="copiable-link" href="#Video-Decoders"> &para;</a></span></h2>
  1594. <p>A description of some of the currently available video decoders
  1595. follows.
  1596. </p>
  1597. <ul class="mini-toc">
  1598. <li><a href="#av1" accesskey="1">av1</a></li>
  1599. <li><a href="#rawvideo" accesskey="2">rawvideo</a></li>
  1600. <li><a href="#libdav1d" accesskey="3">libdav1d</a></li>
  1601. <li><a href="#libdavs2" accesskey="4">libdavs2</a></li>
  1602. <li><a href="#libuavs3d" accesskey="5">libuavs3d</a></li>
  1603. <li><a href="#libxevd" accesskey="6">libxevd</a></li>
  1604. <li><a href="#QSV-Decoders" accesskey="7">QSV Decoders</a></li>
  1605. <li><a href="#v210" accesskey="8">v210</a></li>
  1606. </ul>
  1607. <div class="section-level-extent" id="av1">
  1608. <h3 class="section"><span>4.1 av1<a class="copiable-link" href="#av1"> &para;</a></span></h3>
  1609. <p>AOMedia Video 1 (AV1) decoder.
  1610. </p>
  1611. <ul class="mini-toc">
  1612. <li><a href="#Options" accesskey="1">Options</a></li>
  1613. </ul>
  1614. <div class="subsection-level-extent" id="Options">
  1615. <h4 class="subsection"><span>4.1.1 Options<a class="copiable-link" href="#Options"> &para;</a></span></h4>
  1616. <dl class="table">
  1617. <dt><samp class="option">operating_point</samp></dt>
  1618. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
  1619. </p>
  1620. </dd>
  1621. </dl>
  1622. </div>
  1623. </div>
  1624. <div class="section-level-extent" id="rawvideo">
  1625. <h3 class="section"><span>4.2 rawvideo<a class="copiable-link" href="#rawvideo"> &para;</a></span></h3>
  1626. <p>Raw video decoder.
  1627. </p>
  1628. <p>This decoder decodes rawvideo streams.
  1629. </p>
  1630. <ul class="mini-toc">
  1631. <li><a href="#Options-1" accesskey="1">Options</a></li>
  1632. </ul>
  1633. <div class="subsection-level-extent" id="Options-1">
  1634. <h4 class="subsection"><span>4.2.1 Options<a class="copiable-link" href="#Options-1"> &para;</a></span></h4>
  1635. <dl class="table">
  1636. <dt><samp class="option">top <var class="var">top_field_first</var></samp></dt>
  1637. <dd><p>Specify the assumed field type of the input video.
  1638. </p><dl class="table">
  1639. <dt><samp class="option">-1</samp></dt>
  1640. <dd><p>the video is assumed to be progressive (default)
  1641. </p></dd>
  1642. <dt><samp class="option">0</samp></dt>
  1643. <dd><p>bottom-field-first is assumed
  1644. </p></dd>
  1645. <dt><samp class="option">1</samp></dt>
  1646. <dd><p>top-field-first is assumed
  1647. </p></dd>
  1648. </dl>
  1649. </dd>
  1650. </dl>
  1651. </div>
  1652. </div>
  1653. <div class="section-level-extent" id="libdav1d">
  1654. <h3 class="section"><span>4.3 libdav1d<a class="copiable-link" href="#libdav1d"> &para;</a></span></h3>
  1655. <p>dav1d AV1 decoder.
  1656. </p>
  1657. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1658. Requires the presence of the libdav1d headers and library during configuration.
  1659. You need to explicitly configure the build with <code class="code">--enable-libdav1d</code>.
  1660. </p>
  1661. <ul class="mini-toc">
  1662. <li><a href="#Options-2" accesskey="1">Options</a></li>
  1663. </ul>
  1664. <div class="subsection-level-extent" id="Options-2">
  1665. <h4 class="subsection"><span>4.3.1 Options<a class="copiable-link" href="#Options-2"> &para;</a></span></h4>
  1666. <p>The following options are supported by the libdav1d wrapper.
  1667. </p>
  1668. <dl class="table">
  1669. <dt><samp class="option">framethreads</samp></dt>
  1670. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1671. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1672. option <code class="code">max_frame_delay</code> and the global option <code class="code">threads</code> instead.
  1673. </p>
  1674. </dd>
  1675. <dt><samp class="option">tilethreads</samp></dt>
  1676. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  1677. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1678. global option <code class="code">threads</code> instead.
  1679. </p>
  1680. </dd>
  1681. <dt><samp class="option">max_frame_delay</samp></dt>
  1682. <dd><p>Set max amount of frames the decoder may buffer internally. The default value is 0
  1683. (autodetect).
  1684. </p>
  1685. </dd>
  1686. <dt><samp class="option">filmgrain</samp></dt>
  1687. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1688. internal default of the library.
  1689. This option is deprecated and will be removed in the future. See the global option
  1690. <code class="code">export_side_data</code> to export Film Grain parameters instead of applying it.
  1691. </p>
  1692. </dd>
  1693. <dt><samp class="option">oppoint</samp></dt>
  1694. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  1695. internal default of the library.
  1696. </p>
  1697. </dd>
  1698. <dt><samp class="option">alllayers</samp></dt>
  1699. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  1700. </p>
  1701. </dd>
  1702. </dl>
  1703. </div>
  1704. </div>
  1705. <div class="section-level-extent" id="libdavs2">
  1706. <h3 class="section"><span>4.4 libdavs2<a class="copiable-link" href="#libdavs2"> &para;</a></span></h3>
  1707. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  1708. </p>
  1709. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  1710. </p>
  1711. </div>
  1712. <div class="section-level-extent" id="libuavs3d">
  1713. <h3 class="section"><span>4.5 libuavs3d<a class="copiable-link" href="#libuavs3d"> &para;</a></span></h3>
  1714. <p>AVS3-P2/IEEE1857.10 video decoder.
  1715. </p>
  1716. <p>libuavs3d allows libavcodec to decode AVS3 streams.
  1717. Requires the presence of the libuavs3d headers and library during configuration.
  1718. You need to explicitly configure the build with <code class="code">--enable-libuavs3d</code>.
  1719. </p>
  1720. <ul class="mini-toc">
  1721. <li><a href="#Options-3" accesskey="1">Options</a></li>
  1722. </ul>
  1723. <div class="subsection-level-extent" id="Options-3">
  1724. <h4 class="subsection"><span>4.5.1 Options<a class="copiable-link" href="#Options-3"> &para;</a></span></h4>
  1725. <p>The following option is supported by the libuavs3d wrapper.
  1726. </p>
  1727. <dl class="table">
  1728. <dt><samp class="option">frame_threads</samp></dt>
  1729. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1730. </p>
  1731. </dd>
  1732. </dl>
  1733. </div>
  1734. </div>
  1735. <div class="section-level-extent" id="libxevd">
  1736. <h3 class="section"><span>4.6 libxevd<a class="copiable-link" href="#libxevd"> &para;</a></span></h3>
  1737. <p>eXtra-fast Essential Video Decoder (XEVD) MPEG-5 EVC decoder wrapper.
  1738. </p>
  1739. <p>This decoder requires the presence of the libxevd headers and library
  1740. during configuration. You need to explicitly configure the build with
  1741. <samp class="option">--enable-libxevd</samp>.
  1742. </p>
  1743. <p>The xevd project website is at <a class="url" href="https://github.com/mpeg5/xevd">https://github.com/mpeg5/xevd</a>.
  1744. </p>
  1745. <ul class="mini-toc">
  1746. <li><a href="#Options-4" accesskey="1">Options</a></li>
  1747. </ul>
  1748. <div class="subsection-level-extent" id="Options-4">
  1749. <h4 class="subsection"><span>4.6.1 Options<a class="copiable-link" href="#Options-4"> &para;</a></span></h4>
  1750. <p>The following options are supported by the libxevd wrapper.
  1751. The xevd-equivalent options or values are listed in parentheses for easy migration.
  1752. </p>
  1753. <p>To get a more accurate and extensive documentation of the libxevd options,
  1754. invoke the command <code class="code">xevd_app --help</code> or consult the libxevd documentation.
  1755. </p>
  1756. <dl class="table">
  1757. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  1758. <dd><p>Force to use a specific number of threads
  1759. </p>
  1760. </dd>
  1761. </dl>
  1762. </div>
  1763. </div>
  1764. <div class="section-level-extent" id="QSV-Decoders">
  1765. <h3 class="section"><span>4.7 QSV Decoders<a class="copiable-link" href="#QSV-Decoders"> &para;</a></span></h3>
  1766. <p>The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC,
  1767. JPEG/MJPEG, VP8, VP9, AV1).
  1768. </p>
  1769. <ul class="mini-toc">
  1770. <li><a href="#Common-Options" accesskey="1">Common Options</a></li>
  1771. <li><a href="#HEVC-Options" accesskey="2">HEVC Options</a></li>
  1772. </ul>
  1773. <div class="subsection-level-extent" id="Common-Options">
  1774. <h4 class="subsection"><span>4.7.1 Common Options<a class="copiable-link" href="#Common-Options"> &para;</a></span></h4>
  1775. <p>The following options are supported by all qsv decoders.
  1776. </p>
  1777. <dl class="table">
  1778. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  1779. <dd><p>Internal parallelization depth, the higher the value the higher the latency.
  1780. </p>
  1781. </dd>
  1782. <dt><samp class="option"><var class="var">gpu_copy</var></samp></dt>
  1783. <dd><p>A GPU-accelerated copy between video and system memory
  1784. </p><dl class="table">
  1785. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  1786. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  1787. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  1788. </dl>
  1789. </dd>
  1790. </dl>
  1791. </div>
  1792. <div class="subsection-level-extent" id="HEVC-Options">
  1793. <h4 class="subsection"><span>4.7.2 HEVC Options<a class="copiable-link" href="#HEVC-Options"> &para;</a></span></h4>
  1794. <p>Extra options for hevc_qsv.
  1795. </p>
  1796. <dl class="table">
  1797. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  1798. <dd><p>A user plugin to load in an internal session
  1799. </p><dl class="table">
  1800. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  1801. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  1802. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  1803. </dl>
  1804. </dd>
  1805. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  1806. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in an internal session
  1807. </p>
  1808. </dd>
  1809. </dl>
  1810. </div>
  1811. </div>
  1812. <div class="section-level-extent" id="v210">
  1813. <h3 class="section"><span>4.8 v210<a class="copiable-link" href="#v210"> &para;</a></span></h3>
  1814. <p>Uncompressed 4:2:2 10-bit decoder.
  1815. </p>
  1816. <ul class="mini-toc">
  1817. <li><a href="#Options-5" accesskey="1">Options</a></li>
  1818. </ul>
  1819. <div class="subsection-level-extent" id="Options-5">
  1820. <h4 class="subsection"><span>4.8.1 Options<a class="copiable-link" href="#Options-5"> &para;</a></span></h4>
  1821. <dl class="table">
  1822. <dt><samp class="option">custom_stride</samp></dt>
  1823. <dd><p>Set the line size of the v210 data in bytes. The default value is 0
  1824. (autodetect). You can use the special -1 value for a strideless v210 as seen in
  1825. BOXX files.
  1826. </p>
  1827. </dd>
  1828. </dl>
  1829. </div>
  1830. </div>
  1831. </div>
  1832. <div class="chapter-level-extent" id="Audio-Decoders">
  1833. <h2 class="chapter"><span>5 Audio Decoders<a class="copiable-link" href="#Audio-Decoders"> &para;</a></span></h2>
  1834. <p>A description of some of the currently available audio decoders
  1835. follows.
  1836. </p>
  1837. <ul class="mini-toc">
  1838. <li><a href="#ac3" accesskey="1">ac3</a></li>
  1839. <li><a href="#flac-1" accesskey="2">flac</a></li>
  1840. <li><a href="#ffwavesynth" accesskey="3">ffwavesynth</a></li>
  1841. <li><a href="#libcelt" accesskey="4">libcelt</a></li>
  1842. <li><a href="#libgsm" accesskey="5">libgsm</a></li>
  1843. <li><a href="#libilbc" accesskey="6">libilbc</a></li>
  1844. <li><a href="#libopencore_002damrnb" accesskey="7">libopencore-amrnb</a></li>
  1845. <li><a href="#libopencore_002damrwb" accesskey="8">libopencore-amrwb</a></li>
  1846. <li><a href="#libopus" accesskey="9">libopus</a></li>
  1847. </ul>
  1848. <div class="section-level-extent" id="ac3">
  1849. <h3 class="section"><span>5.1 ac3<a class="copiable-link" href="#ac3"> &para;</a></span></h3>
  1850. <p>AC-3 audio decoder.
  1851. </p>
  1852. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1853. the undocumented RealAudio 3 (a.k.a. dnet).
  1854. </p>
  1855. <ul class="mini-toc">
  1856. <li><a href="#AC_002d3-Decoder-Options" accesskey="1">AC-3 Decoder Options</a></li>
  1857. </ul>
  1858. <div class="subsection-level-extent" id="AC_002d3-Decoder-Options">
  1859. <h4 class="subsection"><span>5.1.1 AC-3 Decoder Options<a class="copiable-link" href="#AC_002d3-Decoder-Options"> &para;</a></span></h4>
  1860. <dl class="table">
  1861. <dt><samp class="option">-drc_scale <var class="var">value</var></samp></dt>
  1862. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1863. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  1864. There are 3 notable scale factor ranges:
  1865. </p><dl class="table">
  1866. <dt><samp class="option">drc_scale == 0</samp></dt>
  1867. <dd><p>DRC disabled. Produces full range audio.
  1868. </p></dd>
  1869. <dt><samp class="option">0 &lt; drc_scale &lt;= 1</samp></dt>
  1870. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1871. Audio reproduction is between full range and full compression.
  1872. </p></dd>
  1873. <dt><samp class="option">drc_scale &gt; 1</samp></dt>
  1874. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1875. Loud sounds are fully compressed. Soft sounds are enhanced.
  1876. </p></dd>
  1877. </dl>
  1878. </dd>
  1879. </dl>
  1880. </div>
  1881. </div>
  1882. <div class="section-level-extent" id="flac-1">
  1883. <h3 class="section"><span>5.2 flac<a class="copiable-link" href="#flac-1"> &para;</a></span></h3>
  1884. <p>FLAC audio decoder.
  1885. </p>
  1886. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1887. </p>
  1888. <ul class="mini-toc">
  1889. <li><a href="#FLAC-Decoder-options" accesskey="1">FLAC Decoder options</a></li>
  1890. </ul>
  1891. <div class="subsection-level-extent" id="FLAC-Decoder-options">
  1892. <h4 class="subsection"><span>5.2.1 FLAC Decoder options<a class="copiable-link" href="#FLAC-Decoder-options"> &para;</a></span></h4>
  1893. <dl class="table">
  1894. <dt><samp class="option">-use_buggy_lpc</samp></dt>
  1895. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1896. (like the default value). This option makes it possible to decode such streams
  1897. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1898. </p>
  1899. </dd>
  1900. </dl>
  1901. </div>
  1902. </div>
  1903. <div class="section-level-extent" id="ffwavesynth">
  1904. <h3 class="section"><span>5.3 ffwavesynth<a class="copiable-link" href="#ffwavesynth"> &para;</a></span></h3>
  1905. <p>Internal wave synthesizer.
  1906. </p>
  1907. <p>This decoder generates wave patterns according to predefined sequences. Its
  1908. use is purely internal and the format of the data it accepts is not publicly
  1909. documented.
  1910. </p>
  1911. </div>
  1912. <div class="section-level-extent" id="libcelt">
  1913. <h3 class="section"><span>5.4 libcelt<a class="copiable-link" href="#libcelt"> &para;</a></span></h3>
  1914. <p>libcelt decoder wrapper.
  1915. </p>
  1916. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1917. Requires the presence of the libcelt headers and library during configuration.
  1918. You need to explicitly configure the build with <code class="code">--enable-libcelt</code>.
  1919. </p>
  1920. </div>
  1921. <div class="section-level-extent" id="libgsm">
  1922. <h3 class="section"><span>5.5 libgsm<a class="copiable-link" href="#libgsm"> &para;</a></span></h3>
  1923. <p>libgsm decoder wrapper.
  1924. </p>
  1925. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1926. the presence of the libgsm headers and library during configuration. You need
  1927. to explicitly configure the build with <code class="code">--enable-libgsm</code>.
  1928. </p>
  1929. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1930. </p>
  1931. </div>
  1932. <div class="section-level-extent" id="libilbc">
  1933. <h3 class="section"><span>5.6 libilbc<a class="copiable-link" href="#libilbc"> &para;</a></span></h3>
  1934. <p>libilbc decoder wrapper.
  1935. </p>
  1936. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1937. audio codec. Requires the presence of the libilbc headers and library during
  1938. configuration. You need to explicitly configure the build with
  1939. <code class="code">--enable-libilbc</code>.
  1940. </p>
  1941. <ul class="mini-toc">
  1942. <li><a href="#Options-6" accesskey="1">Options</a></li>
  1943. </ul>
  1944. <div class="subsection-level-extent" id="Options-6">
  1945. <h4 class="subsection"><span>5.6.1 Options<a class="copiable-link" href="#Options-6"> &para;</a></span></h4>
  1946. <p>The following option is supported by the libilbc wrapper.
  1947. </p>
  1948. <dl class="table">
  1949. <dt><samp class="option">enhance</samp></dt>
  1950. <dd>
  1951. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1952. value is 0 (disabled).
  1953. </p>
  1954. </dd>
  1955. </dl>
  1956. </div>
  1957. </div>
  1958. <div class="section-level-extent" id="libopencore_002damrnb">
  1959. <h3 class="section"><span>5.7 libopencore-amrnb<a class="copiable-link" href="#libopencore_002damrnb"> &para;</a></span></h3>
  1960. <p>libopencore-amrnb decoder wrapper.
  1961. </p>
  1962. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1963. Narrowband audio codec. Using it requires the presence of the
  1964. libopencore-amrnb headers and library during configuration. You need to
  1965. explicitly configure the build with <code class="code">--enable-libopencore-amrnb</code>.
  1966. </p>
  1967. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1968. without this library.
  1969. </p>
  1970. </div>
  1971. <div class="section-level-extent" id="libopencore_002damrwb">
  1972. <h3 class="section"><span>5.8 libopencore-amrwb<a class="copiable-link" href="#libopencore_002damrwb"> &para;</a></span></h3>
  1973. <p>libopencore-amrwb decoder wrapper.
  1974. </p>
  1975. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1976. Wideband audio codec. Using it requires the presence of the
  1977. libopencore-amrwb headers and library during configuration. You need to
  1978. explicitly configure the build with <code class="code">--enable-libopencore-amrwb</code>.
  1979. </p>
  1980. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1981. without this library.
  1982. </p>
  1983. </div>
  1984. <div class="section-level-extent" id="libopus">
  1985. <h3 class="section"><span>5.9 libopus<a class="copiable-link" href="#libopus"> &para;</a></span></h3>
  1986. <p>libopus decoder wrapper.
  1987. </p>
  1988. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1989. Requires the presence of the libopus headers and library during
  1990. configuration. You need to explicitly configure the build with
  1991. <code class="code">--enable-libopus</code>.
  1992. </p>
  1993. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  1994. without this library.
  1995. </p>
  1996. </div>
  1997. </div>
  1998. <div class="chapter-level-extent" id="Subtitles-Decoders">
  1999. <h2 class="chapter"><span>6 Subtitles Decoders<a class="copiable-link" href="#Subtitles-Decoders"> &para;</a></span></h2>
  2000. <ul class="mini-toc">
  2001. <li><a href="#libaribb24" accesskey="1">libaribb24</a></li>
  2002. <li><a href="#libaribcaption" accesskey="2">libaribcaption</a></li>
  2003. <li><a href="#dvbsub" accesskey="3">dvbsub</a></li>
  2004. <li><a href="#dvdsub" accesskey="4">dvdsub</a></li>
  2005. <li><a href="#libzvbi_002dteletext" accesskey="5">libzvbi-teletext</a></li>
  2006. </ul>
  2007. <div class="section-level-extent" id="libaribb24">
  2008. <h3 class="section"><span>6.1 libaribb24<a class="copiable-link" href="#libaribb24"> &para;</a></span></h3>
  2009. <p>ARIB STD-B24 caption decoder.
  2010. </p>
  2011. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  2012. </p>
  2013. <ul class="mini-toc">
  2014. <li><a href="#libaribb24-Decoder-Options" accesskey="1">libaribb24 Decoder Options</a></li>
  2015. </ul>
  2016. <div class="subsection-level-extent" id="libaribb24-Decoder-Options">
  2017. <h4 class="subsection"><span>6.1.1 libaribb24 Decoder Options<a class="copiable-link" href="#libaribb24-Decoder-Options"> &para;</a></span></h4>
  2018. <dl class="table">
  2019. <dt><samp class="option">-aribb24-base-path <var class="var">path</var></samp></dt>
  2020. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  2021. configuration files (for custom unicode conversions), and for dumping of
  2022. non-text symbols as images under that location.
  2023. </p>
  2024. <p>Unset by default.
  2025. </p>
  2026. </dd>
  2027. <dt><samp class="option">-aribb24-skip-ruby-text <var class="var">boolean</var></samp></dt>
  2028. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  2029. text.
  2030. </p>
  2031. <p>Enabled by default.
  2032. </p>
  2033. </dd>
  2034. </dl>
  2035. </div>
  2036. </div>
  2037. <div class="section-level-extent" id="libaribcaption">
  2038. <h3 class="section"><span>6.2 libaribcaption<a class="copiable-link" href="#libaribcaption"> &para;</a></span></h3>
  2039. <p>Yet another ARIB STD-B24 caption decoder using external <em class="dfn">libaribcaption</em>
  2040. library.
  2041. </p>
  2042. <p>Implements profiles A and C of the Japanse ARIB STD-B24 standard,
  2043. Brazilian ABNT NBR 15606-1, and Philippines version of ISDB-T.
  2044. </p>
  2045. <p>Requires the presence of the libaribcaption headers and library
  2046. (<a class="url" href="https://github.com/xqq/libaribcaption">https://github.com/xqq/libaribcaption</a>) during configuration.
  2047. You need to explicitly configure the build with <code class="code">--enable-libaribcaption</code>.
  2048. If both <em class="dfn">libaribb24</em> and <em class="dfn">libaribcaption</em> are enabled, <em class="dfn">libaribcaption</em>
  2049. decoder precedes.
  2050. </p>
  2051. <ul class="mini-toc">
  2052. <li><a href="#libaribcaption-Decoder-Options" accesskey="1">libaribcaption Decoder Options</a></li>
  2053. <li><a href="#libaribcaption-decoder-usage-examples" accesskey="2">libaribcaption decoder usage examples</a></li>
  2054. </ul>
  2055. <div class="subsection-level-extent" id="libaribcaption-Decoder-Options">
  2056. <h4 class="subsection"><span>6.2.1 libaribcaption Decoder Options<a class="copiable-link" href="#libaribcaption-Decoder-Options"> &para;</a></span></h4>
  2057. <dl class="table">
  2058. <dt><samp class="option">-sub_type <var class="var">subtitle_type</var></samp></dt>
  2059. <dd><p>Specifies the format of the decoded subtitles.
  2060. </p>
  2061. <dl class="table">
  2062. <dt>&lsquo;<samp class="samp">bitmap</samp>&rsquo;</dt>
  2063. <dd><p>Graphical image.
  2064. </p></dd>
  2065. <dt>&lsquo;<samp class="samp">ass</samp>&rsquo;</dt>
  2066. <dd><p>ASS formatted text.
  2067. </p></dd>
  2068. <dt>&lsquo;<samp class="samp">text</samp>&rsquo;</dt>
  2069. <dd><p>Simple text based output without formatting.
  2070. </p></dd>
  2071. </dl>
  2072. <p>The default is <em class="dfn">ass</em> as same as <em class="dfn">libaribb24</em> decoder.
  2073. Some present players (e.g., <em class="dfn">mpv</em>) expect ASS format for ARIB caption.
  2074. </p>
  2075. </dd>
  2076. <dt><samp class="option">-caption_encoding <var class="var">encoding_scheme</var></samp></dt>
  2077. <dd><p>Specifies the encoding scheme of input subtitle text.
  2078. </p>
  2079. <dl class="table">
  2080. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  2081. <dd><p>Automatically detect text encoding (default).
  2082. </p></dd>
  2083. <dt>&lsquo;<samp class="samp">jis</samp>&rsquo;</dt>
  2084. <dd><p>8bit-char JIS encoding defined in ARIB STD B24.
  2085. This encoding used in Japan for ISDB captions.
  2086. </p></dd>
  2087. <dt>&lsquo;<samp class="samp">utf8</samp>&rsquo;</dt>
  2088. <dd><p>UTF-8 encoding defined in ARIB STD B24.
  2089. This encoding is used in Philippines for ISDB-T captions.
  2090. </p></dd>
  2091. <dt>&lsquo;<samp class="samp">latin</samp>&rsquo;</dt>
  2092. <dd><p>Latin character encoding defined in ABNT NBR 15606-1.
  2093. This encoding is used in South America for SBTVD / ISDB-Tb captions.
  2094. </p></dd>
  2095. </dl>
  2096. </dd>
  2097. <dt><samp class="option">-font <var class="var">font_name[,font_name2,...]</var></samp></dt>
  2098. <dd><p>Specify comma-separated list of font family names to be used for <em class="dfn">bitmap</em>
  2099. or <em class="dfn">ass</em> type subtitle rendering.
  2100. Only first font name is used for <em class="dfn">ass</em> type subtitle.
  2101. </p>
  2102. <p>If not specified, use internaly defined default font family.
  2103. </p>
  2104. </dd>
  2105. <dt><samp class="option">-ass_single_rect <var class="var">boolean</var></samp></dt>
  2106. <dd><p>ARIB STD-B24 specifies that some captions may be displayed at different
  2107. positions at a time (multi-rectangle subtitle).
  2108. Since some players (e.g., old <em class="dfn">mpv</em>) can&rsquo;t handle multiple ASS rectangles
  2109. in a single AVSubtitle, or multiple ASS rectangles of indeterminate duration
  2110. with the same start timestamp, this option can change the behavior so that
  2111. all the texts are displayed in a single ASS rectangle.
  2112. </p>
  2113. <p>The default is <var class="var">false</var>.
  2114. </p>
  2115. <p>If your player cannot handle AVSubtitles with multiple ASS rectangles properly,
  2116. set this option to <var class="var">true</var> or define <code class="env">ASS_SINGLE_RECT=1</code> to change
  2117. default behavior at compilation.
  2118. </p>
  2119. </dd>
  2120. <dt><samp class="option">-force_outline_text <var class="var">boolean</var></samp></dt>
  2121. <dd><p>Specify whether always render outline text for all characters regardless of
  2122. the indication by charactor style.
  2123. </p>
  2124. <p>The default is <var class="var">false</var>.
  2125. </p>
  2126. </dd>
  2127. <dt><samp class="option">-outline_width <var class="var">number</var> (0.0 - 3.0)</samp></dt>
  2128. <dd><p>Specify width for outline text, in dots (relative).
  2129. </p>
  2130. <p>The default is <var class="var">1.5</var>.
  2131. </p>
  2132. </dd>
  2133. <dt><samp class="option">-ignore_background <var class="var">boolean</var></samp></dt>
  2134. <dd><p>Specify whether to ignore background color rendering.
  2135. </p>
  2136. <p>The default is <var class="var">false</var>.
  2137. </p>
  2138. </dd>
  2139. <dt><samp class="option">-ignore_ruby <var class="var">boolean</var></samp></dt>
  2140. <dd><p>Specify whether to ignore rendering for ruby-like (furigana) characters.
  2141. </p>
  2142. <p>The default is <var class="var">false</var>.
  2143. </p>
  2144. </dd>
  2145. <dt><samp class="option">-replace_drcs <var class="var">boolean</var></samp></dt>
  2146. <dd><p>Specify whether to render replaced DRCS characters as Unicode characters.
  2147. </p>
  2148. <p>The default is <var class="var">true</var>.
  2149. </p>
  2150. </dd>
  2151. <dt><samp class="option">-replace_msz_ascii <var class="var">boolean</var></samp></dt>
  2152. <dd><p>Specify whether to replace MSZ (Middle Size; half width) fullwidth
  2153. alphanumerics with halfwidth alphanumerics.
  2154. </p>
  2155. <p>The default is <var class="var">true</var>.
  2156. </p>
  2157. </dd>
  2158. <dt><samp class="option">-replace_msz_japanese <var class="var">boolean</var></samp></dt>
  2159. <dd><p>Specify whether to replace some MSZ (Middle Size; half width) fullwidth
  2160. japanese special characters with halfwidth ones.
  2161. </p>
  2162. <p>The default is <var class="var">true</var>.
  2163. </p>
  2164. </dd>
  2165. <dt><samp class="option">-replace_msz_glyph <var class="var">boolean</var></samp></dt>
  2166. <dd><p>Specify whether to replace MSZ (Middle Size; half width) characters
  2167. with halfwidth glyphs if the fonts supports it.
  2168. This option works under FreeType or DirectWrite renderer
  2169. with Adobe-Japan1 compliant fonts.
  2170. e.g., IBM Plex Sans JP, Morisawa BIZ UDGothic, Morisawa BIZ UDMincho,
  2171. Yu Gothic, Yu Mincho, and Meiryo.
  2172. </p>
  2173. <p>The default is <var class="var">true</var>.
  2174. </p>
  2175. </dd>
  2176. <dt><samp class="option">-canvas_size <var class="var">image_size</var></samp></dt>
  2177. <dd><p>Specify the resolution of the canvas to render subtitles to; usually, this
  2178. should be frame size of input video.
  2179. This only applies when <code class="code">-subtitle_type</code> is set to <var class="var">bitmap</var>.
  2180. </p>
  2181. <p>The libaribcaption decoder assumes input frame size for bitmap rendering as below:
  2182. </p><ol class="enumerate">
  2183. <li> PROFILE_A : 1440 x 1080 with SAR (PAR) 4:3
  2184. </li><li> PROFILE_C : 320 x 180 with SAR (PAR) 1:1
  2185. </li></ol>
  2186. <p>If actual frame size of input video does not match above assumption,
  2187. the rendered captions may be distorted.
  2188. To make the captions undistorted, add <code class="code">-canvas_size</code> option to specify
  2189. actual input video size.
  2190. </p>
  2191. <p>Note that the <code class="code">-canvas_size</code> option is not required for video with
  2192. different size but same aspect ratio.
  2193. In such cases, the caption will be stretched or shrunk to actual video size
  2194. if <code class="code">-canvas_size</code> option is not specified.
  2195. If <code class="code">-canvas_size</code> option is specified with different size,
  2196. the caption will be stretched or shrunk as specified size with calculated SAR.
  2197. </p>
  2198. </dd>
  2199. </dl>
  2200. </div>
  2201. <div class="subsection-level-extent" id="libaribcaption-decoder-usage-examples">
  2202. <h4 class="subsection"><span>6.2.2 libaribcaption decoder usage examples<a class="copiable-link" href="#libaribcaption-decoder-usage-examples"> &para;</a></span></h4>
  2203. <p>Display MPEG-TS file with ARIB subtitle by <code class="code">ffplay</code> tool:
  2204. </p><div class="example">
  2205. <pre class="example-preformatted">ffplay -sub_type bitmap MPEG.TS
  2206. </pre></div>
  2207. <p>Display MPEG-TS file with input frame size 1920x1080 by <code class="code">ffplay</code> tool:
  2208. </p><div class="example">
  2209. <pre class="example-preformatted">ffplay -sub_type bitmap -canvas_size 1920x1080 MPEG.TS
  2210. </pre></div>
  2211. <p>Embed ARIB subtitle in transcoded video:
  2212. </p><div class="example">
  2213. <pre class="example-preformatted">ffmpeg -sub_type bitmap -i src.m2t -filter_complex &quot;[0:v][0:s]overlay&quot; -vcodec h264 dest.mp4
  2214. </pre></div>
  2215. </div>
  2216. </div>
  2217. <div class="section-level-extent" id="dvbsub">
  2218. <h3 class="section"><span>6.3 dvbsub<a class="copiable-link" href="#dvbsub"> &para;</a></span></h3>
  2219. <ul class="mini-toc">
  2220. <li><a href="#Options-7" accesskey="1">Options</a></li>
  2221. </ul>
  2222. <div class="subsection-level-extent" id="Options-7">
  2223. <h4 class="subsection"><span>6.3.1 Options<a class="copiable-link" href="#Options-7"> &para;</a></span></h4>
  2224. <dl class="table">
  2225. <dt><samp class="option">compute_clut</samp></dt>
  2226. <dd><dl class="table">
  2227. <dt><samp class="option">-2</samp></dt>
  2228. <dd><p>Compute clut once if no matching CLUT is in the stream.
  2229. </p></dd>
  2230. <dt><samp class="option">-1</samp></dt>
  2231. <dd><p>Compute clut if no matching CLUT is in the stream.
  2232. </p></dd>
  2233. <dt><samp class="option">0</samp></dt>
  2234. <dd><p>Never compute CLUT
  2235. </p></dd>
  2236. <dt><samp class="option">1</samp></dt>
  2237. <dd><p>Always compute CLUT and override the one provided in the stream.
  2238. </p></dd>
  2239. </dl>
  2240. </dd>
  2241. <dt><samp class="option">dvb_substream</samp></dt>
  2242. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  2243. </p>
  2244. </dd>
  2245. </dl>
  2246. </div>
  2247. </div>
  2248. <div class="section-level-extent" id="dvdsub">
  2249. <h3 class="section"><span>6.4 dvdsub<a class="copiable-link" href="#dvdsub"> &para;</a></span></h3>
  2250. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  2251. also be found in VobSub file pairs and in some Matroska files.
  2252. </p>
  2253. <ul class="mini-toc">
  2254. <li><a href="#Options-8" accesskey="1">Options</a></li>
  2255. </ul>
  2256. <div class="subsection-level-extent" id="Options-8">
  2257. <h4 class="subsection"><span>6.4.1 Options<a class="copiable-link" href="#Options-8"> &para;</a></span></h4>
  2258. <dl class="table">
  2259. <dt><samp class="option">palette</samp></dt>
  2260. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  2261. palette is normally specified in the index file; in Matroska, the palette is
  2262. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  2263. palette is stored in the IFO file, and therefore not available when reading
  2264. from dumped VOB files.
  2265. </p>
  2266. <p>The format for this option is a string containing 16 24-bits hexadecimal
  2267. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  2268. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  2269. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  2270. </p>
  2271. </dd>
  2272. <dt><samp class="option">ifo_palette</samp></dt>
  2273. <dd><p>Specify the IFO file from which the global palette is obtained.
  2274. (experimental)
  2275. </p>
  2276. </dd>
  2277. <dt><samp class="option">forced_subs_only</samp></dt>
  2278. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  2279. and non-forced subtitles in the same track. Setting this flag to <code class="code">1</code>
  2280. will only keep the forced subtitles. Default value is <code class="code">0</code>.
  2281. </p></dd>
  2282. </dl>
  2283. </div>
  2284. </div>
  2285. <div class="section-level-extent" id="libzvbi_002dteletext">
  2286. <h3 class="section"><span>6.5 libzvbi-teletext<a class="copiable-link" href="#libzvbi_002dteletext"> &para;</a></span></h3>
  2287. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  2288. subtitles. Requires the presence of the libzvbi headers and library during
  2289. configuration. You need to explicitly configure the build with
  2290. <code class="code">--enable-libzvbi</code>.
  2291. </p>
  2292. <ul class="mini-toc">
  2293. <li><a href="#Options-9" accesskey="1">Options</a></li>
  2294. </ul>
  2295. <div class="subsection-level-extent" id="Options-9">
  2296. <h4 class="subsection"><span>6.5.1 Options<a class="copiable-link" href="#Options-9"> &para;</a></span></h4>
  2297. <dl class="table">
  2298. <dt><samp class="option">txt_page</samp></dt>
  2299. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  2300. list are dropped. You may use the special <code class="code">*</code> string to match all pages,
  2301. or <code class="code">subtitle</code> to match all subtitle pages.
  2302. Default value is *.
  2303. </p></dd>
  2304. <dt><samp class="option">txt_default_region</samp></dt>
  2305. <dd><p>Set default character set used for decoding, a value between 0 and 87 (see
  2306. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  2307. override the libzvbi default. This option is needed for some legacy level 1.0
  2308. transmissions which cannot signal the proper charset.
  2309. </p></dd>
  2310. <dt><samp class="option">txt_chop_top</samp></dt>
  2311. <dd><p>Discards the top teletext line. Default value is 1.
  2312. </p></dd>
  2313. <dt><samp class="option">txt_format</samp></dt>
  2314. <dd><p>Specifies the format of the decoded subtitles.
  2315. </p><dl class="table">
  2316. <dt><samp class="option">bitmap</samp></dt>
  2317. <dd><p>The default format, you should use this for teletext pages, because certain
  2318. graphics and colors cannot be expressed in simple text or even ASS.
  2319. </p></dd>
  2320. <dt><samp class="option">text</samp></dt>
  2321. <dd><p>Simple text based output without formatting.
  2322. </p></dd>
  2323. <dt><samp class="option">ass</samp></dt>
  2324. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  2325. different styles, subtitle pages are stripped down to text, but an effort is
  2326. made to keep the text alignment and the formatting.
  2327. </p></dd>
  2328. </dl>
  2329. </dd>
  2330. <dt><samp class="option">txt_left</samp></dt>
  2331. <dd><p>X offset of generated bitmaps, default is 0.
  2332. </p></dd>
  2333. <dt><samp class="option">txt_top</samp></dt>
  2334. <dd><p>Y offset of generated bitmaps, default is 0.
  2335. </p></dd>
  2336. <dt><samp class="option">txt_chop_spaces</samp></dt>
  2337. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  2338. text. This option is useful for teletext based subtitles where empty spaces may
  2339. be present at the start or at the end of the lines or empty lines may be
  2340. present between the subtitle lines because of double-sized teletext characters.
  2341. Default value is 1.
  2342. </p></dd>
  2343. <dt><samp class="option">txt_duration</samp></dt>
  2344. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2345. milliseconds. Default value is -1 which means infinity or until the next
  2346. subtitle event comes.
  2347. </p></dd>
  2348. <dt><samp class="option">txt_transparent</samp></dt>
  2349. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2350. is 0 which means an opaque background.
  2351. </p></dd>
  2352. <dt><samp class="option">txt_opacity</samp></dt>
  2353. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2354. <samp class="option">txt_transparent</samp> is not set, it only affects characters between a start
  2355. box and an end box, typically subtitles. Default value is 0 if
  2356. <samp class="option">txt_transparent</samp> is set, 255 otherwise.
  2357. </p>
  2358. </dd>
  2359. </dl>
  2360. </div>
  2361. </div>
  2362. </div>
  2363. <div class="chapter-level-extent" id="Encoders">
  2364. <h2 class="chapter"><span>7 Encoders<a class="copiable-link" href="#Encoders"> &para;</a></span></h2>
  2365. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2366. multimedia streams.
  2367. </p>
  2368. <p>When you configure your FFmpeg build, all the supported native encoders
  2369. are enabled by default. Encoders requiring an external library must be enabled
  2370. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  2371. available encoders using the configure option <code class="code">--list-encoders</code>.
  2372. </p>
  2373. <p>You can disable all the encoders with the configure option
  2374. <code class="code">--disable-encoders</code> and selectively enable / disable single encoders
  2375. with the options <code class="code">--enable-encoder=<var class="var">ENCODER</var></code> /
  2376. <code class="code">--disable-encoder=<var class="var">ENCODER</var></code>.
  2377. </p>
  2378. <p>The option <code class="code">-encoders</code> of the ff* tools will display the list of
  2379. enabled encoders.
  2380. </p>
  2381. </div>
  2382. <div class="chapter-level-extent" id="Audio-Encoders">
  2383. <h2 class="chapter"><span>8 Audio Encoders<a class="copiable-link" href="#Audio-Encoders"> &para;</a></span></h2>
  2384. <p>A description of some of the currently available audio encoders
  2385. follows.
  2386. </p>
  2387. <a class="anchor" id="aacenc"></a><ul class="mini-toc">
  2388. <li><a href="#aac" accesskey="1">aac</a></li>
  2389. <li><a href="#ac3-and-ac3_005ffixed" accesskey="2">ac3 and ac3_fixed</a></li>
  2390. <li><a href="#flac-2" accesskey="3">flac</a></li>
  2391. <li><a href="#opus" accesskey="4">opus</a></li>
  2392. <li><a href="#libfdk_005faac" accesskey="5">libfdk_aac</a></li>
  2393. <li><a href="#libmp3lame-1" accesskey="6">libmp3lame</a></li>
  2394. <li><a href="#libopencore_002damrnb-1" accesskey="7">libopencore-amrnb</a></li>
  2395. <li><a href="#libopus-1" accesskey="8">libopus</a></li>
  2396. <li><a href="#libshine-1" accesskey="9">libshine</a></li>
  2397. <li><a href="#libtwolame">libtwolame</a></li>
  2398. <li><a href="#libvo_002damrwbenc">libvo-amrwbenc</a></li>
  2399. <li><a href="#libvorbis">libvorbis</a></li>
  2400. <li><a href="#mjpeg">mjpeg</a></li>
  2401. <li><a href="#wavpack">wavpack</a></li>
  2402. </ul>
  2403. <div class="section-level-extent" id="aac">
  2404. <h3 class="section"><span>8.1 aac<a class="copiable-link" href="#aac"> &para;</a></span></h3>
  2405. <p>Advanced Audio Coding (AAC) encoder.
  2406. </p>
  2407. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
  2408. </p>
  2409. <ul class="mini-toc">
  2410. <li><a href="#Options-10" accesskey="1">Options</a></li>
  2411. </ul>
  2412. <div class="subsection-level-extent" id="Options-10">
  2413. <h4 class="subsection"><span>8.1.1 Options<a class="copiable-link" href="#Options-10"> &para;</a></span></h4>
  2414. <dl class="table">
  2415. <dt><samp class="option">b</samp></dt>
  2416. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2417. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2418. </p>
  2419. </dd>
  2420. <dt><samp class="option">q</samp></dt>
  2421. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2422. the <code class="command">ffmpeg</code> command-line tool. For library interface users, use
  2423. <samp class="option">global_quality</samp>.
  2424. </p>
  2425. </dd>
  2426. <dt><samp class="option">cutoff</samp></dt>
  2427. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2428. adjust the cutoff to improve clarity on low bitrates.
  2429. </p>
  2430. </dd>
  2431. <dt><samp class="option">aac_coder</samp></dt>
  2432. <dd><p>Set AAC encoder coding method. Possible values:
  2433. </p>
  2434. <dl class="table">
  2435. <dt>&lsquo;<samp class="samp">twoloop</samp>&rsquo;</dt>
  2436. <dd><p>Two loop searching (TLS) method. This is the default method.
  2437. </p>
  2438. <p>This method first sets quantizers depending on band thresholds and then tries
  2439. to find an optimal combination by adding or subtracting a specific value from
  2440. all quantizers and adjusting some individual quantizer a little. Will tune
  2441. itself based on whether <samp class="option">aac_is</samp>, <samp class="option">aac_ms</samp> and <samp class="option">aac_pns</samp>
  2442. are enabled.
  2443. </p>
  2444. </dd>
  2445. <dt>&lsquo;<samp class="samp">anmr</samp>&rsquo;</dt>
  2446. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2447. </p>
  2448. <p>This is an experimental coder which currently produces a lower quality, is more
  2449. unstable and is slower than the default twoloop coder but has potential.
  2450. Currently has no support for the <samp class="option">aac_is</samp> or <samp class="option">aac_pns</samp> options.
  2451. Not currently recommended.
  2452. </p>
  2453. </dd>
  2454. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  2455. <dd><p>Constant quantizer method.
  2456. </p>
  2457. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2458. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2459. and much faster at higher bitrates.
  2460. </p>
  2461. </dd>
  2462. </dl>
  2463. </dd>
  2464. <dt><samp class="option">aac_ms</samp></dt>
  2465. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2466. M/S with bands which will benefit from such coding. Can be forced for all bands
  2467. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2468. &quot;disable&quot;.
  2469. </p>
  2470. </dd>
  2471. <dt><samp class="option">aac_is</samp></dt>
  2472. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2473. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2474. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2475. </p>
  2476. </dd>
  2477. <dt><samp class="option">aac_pns</samp></dt>
  2478. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2479. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2480. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2481. </p>
  2482. </dd>
  2483. <dt><samp class="option">aac_tns</samp></dt>
  2484. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2485. bands to hide quantization noise during the encoding process and is reverted
  2486. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2487. this also reduces the entropy in the high bands and allows for more bits to
  2488. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2489. debugging by setting the option to &quot;disable&quot;.
  2490. </p>
  2491. </dd>
  2492. <dt><samp class="option">aac_ltp</samp></dt>
  2493. <dd><p>Enables the use of the long term prediction extension which increases coding
  2494. efficiency in very low bandwidth situations such as encoding of voice or
  2495. solo piano music by extending constant harmonic peaks in bands throughout
  2496. frames. This option is implied by profile:a aac_low and is incompatible with
  2497. aac_pred. Use in conjunction with <samp class="option">-ar</samp> to decrease the samplerate.
  2498. </p>
  2499. </dd>
  2500. <dt><samp class="option">aac_pred</samp></dt>
  2501. <dd><p>Enables the use of a more traditional style of prediction where the spectral
  2502. coefficients transmitted are replaced by the difference of the current
  2503. coefficients minus the previous &quot;predicted&quot; coefficients. In theory and sometimes
  2504. in practice this can improve quality for low to mid bitrate audio.
  2505. This option implies the aac_main profile and is incompatible with aac_ltp.
  2506. </p>
  2507. </dd>
  2508. <dt><samp class="option">profile</samp></dt>
  2509. <dd><p>Sets the encoding profile, possible values:
  2510. </p>
  2511. <dl class="table">
  2512. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  2513. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2514. decent quality.
  2515. </p>
  2516. </dd>
  2517. <dt>&lsquo;<samp class="samp">mpeg2_aac_low</samp>&rsquo;</dt>
  2518. <dd><p>Equivalent to <code class="code">-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2519. MPEG4 specifications.
  2520. </p>
  2521. </dd>
  2522. <dt>&lsquo;<samp class="samp">aac_ltp</samp>&rsquo;</dt>
  2523. <dd><p>Long term prediction profile, is enabled by and will enable the <samp class="option">aac_ltp</samp>
  2524. option. Introduced in MPEG4.
  2525. </p>
  2526. </dd>
  2527. <dt>&lsquo;<samp class="samp">aac_main</samp>&rsquo;</dt>
  2528. <dd><p>Main-type prediction profile, is enabled by and will enable the <samp class="option">aac_pred</samp>
  2529. option. Introduced in MPEG2.
  2530. </p>
  2531. </dd>
  2532. </dl>
  2533. <p>If this option is unspecified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  2534. </p></dd>
  2535. </dl>
  2536. </div>
  2537. </div>
  2538. <div class="section-level-extent" id="ac3-and-ac3_005ffixed">
  2539. <h3 class="section"><span>8.2 ac3 and ac3_fixed<a class="copiable-link" href="#ac3-and-ac3_005ffixed"> &para;</a></span></h3>
  2540. <p>AC-3 audio encoders.
  2541. </p>
  2542. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  2543. the undocumented RealAudio 3 (a.k.a. dnet).
  2544. </p>
  2545. <p>The <var class="var">ac3</var> encoder uses floating-point math, while the <var class="var">ac3_fixed</var>
  2546. encoder only uses fixed-point integer math. This does not mean that one is
  2547. always faster, just that one or the other may be better suited to a
  2548. particular system. The <var class="var">ac3_fixed</var> encoder is not the default codec for
  2549. any of the output formats, so it must be specified explicitly using the option
  2550. <code class="code">-acodec ac3_fixed</code> in order to use it.
  2551. </p>
  2552. <ul class="mini-toc">
  2553. <li><a href="#AC_002d3-Metadata" accesskey="1">AC-3 Metadata</a></li>
  2554. <li><a href="#Extended-Bitstream-Information" accesskey="2">Extended Bitstream Information</a></li>
  2555. <li><a href="#Other-AC_002d3-Encoding-Options" accesskey="3">Other AC-3 Encoding Options</a></li>
  2556. <li><a href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" accesskey="4">Floating-Point-Only AC-3 Encoding Options</a></li>
  2557. </ul>
  2558. <div class="subsection-level-extent" id="AC_002d3-Metadata">
  2559. <h4 class="subsection"><span>8.2.1 AC-3 Metadata<a class="copiable-link" href="#AC_002d3-Metadata"> &para;</a></span></h4>
  2560. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2561. but in most cases do not affect the audio encoding itself. Some of the options
  2562. do directly affect or influence the decoding and playback of the resulting
  2563. bitstream, while others are just for informational purposes. A few of the
  2564. options will add bits to the output stream that could otherwise be used for
  2565. audio data, and will thus affect the quality of the output. Those will be
  2566. indicated accordingly with a note in the option list below.
  2567. </p>
  2568. <p>These parameters are described in detail in several publicly-available
  2569. documents.
  2570. </p><ul class="itemize mark-bullet">
  2571. <li><a class="uref" href="http://www.atsc.org/cms/standards/a_52-2010.pdf">A/52:2010 - Digital Audio Compression (AC-3) (E-AC-3) Standard</a>
  2572. </li><li><a class="uref" href="http://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf">A/54 - Guide to the Use of the ATSC Digital Television Standard</a>
  2573. </li><li><a class="uref" href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
  2574. </li><li><a class="uref" href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
  2575. </li></ul>
  2576. <ul class="mini-toc">
  2577. <li><a href="#Metadata-Control-Options" accesskey="1">Metadata Control Options</a></li>
  2578. <li><a href="#Downmix-Levels" accesskey="2">Downmix Levels</a></li>
  2579. <li><a href="#Audio-Production-Information" accesskey="3">Audio Production Information</a></li>
  2580. <li><a href="#Other-Metadata-Options" accesskey="4">Other Metadata Options</a></li>
  2581. </ul>
  2582. <div class="subsubsection-level-extent" id="Metadata-Control-Options">
  2583. <h4 class="subsubsection"><span>8.2.1.1 Metadata Control Options<a class="copiable-link" href="#Metadata-Control-Options"> &para;</a></span></h4>
  2584. <dl class="table">
  2585. <dt><samp class="option">-per_frame_metadata <var class="var">boolean</var></samp></dt>
  2586. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2587. metadata for each frame.
  2588. </p><dl class="table">
  2589. <dt><samp class="option">0</samp></dt>
  2590. <dd><p>The metadata values set at initialization will be used for every frame in the
  2591. stream. (default)
  2592. </p></dd>
  2593. <dt><samp class="option">1</samp></dt>
  2594. <dd><p>Metadata values can be changed before encoding each frame.
  2595. </p></dd>
  2596. </dl>
  2597. </dd>
  2598. </dl>
  2599. </div>
  2600. <div class="subsubsection-level-extent" id="Downmix-Levels">
  2601. <h4 class="subsubsection"><span>8.2.1.2 Downmix Levels<a class="copiable-link" href="#Downmix-Levels"> &para;</a></span></h4>
  2602. <dl class="table">
  2603. <dt><samp class="option">-center_mixlev <var class="var">level</var></samp></dt>
  2604. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2605. channel when downmixing to stereo. This field will only be written to the
  2606. bitstream if a center channel is present. The value is specified as a scale
  2607. factor. There are 3 valid values:
  2608. </p><dl class="table">
  2609. <dt><samp class="option">0.707</samp></dt>
  2610. <dd><p>Apply -3dB gain
  2611. </p></dd>
  2612. <dt><samp class="option">0.595</samp></dt>
  2613. <dd><p>Apply -4.5dB gain (default)
  2614. </p></dd>
  2615. <dt><samp class="option">0.500</samp></dt>
  2616. <dd><p>Apply -6dB gain
  2617. </p></dd>
  2618. </dl>
  2619. </dd>
  2620. <dt><samp class="option">-surround_mixlev <var class="var">level</var></samp></dt>
  2621. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2622. channel(s) when downmixing to stereo. This field will only be written to the
  2623. bitstream if one or more surround channels are present. The value is specified
  2624. as a scale factor. There are 3 valid values:
  2625. </p><dl class="table">
  2626. <dt><samp class="option">0.707</samp></dt>
  2627. <dd><p>Apply -3dB gain
  2628. </p></dd>
  2629. <dt><samp class="option">0.500</samp></dt>
  2630. <dd><p>Apply -6dB gain (default)
  2631. </p></dd>
  2632. <dt><samp class="option">0.000</samp></dt>
  2633. <dd><p>Silence Surround Channel(s)
  2634. </p></dd>
  2635. </dl>
  2636. </dd>
  2637. </dl>
  2638. </div>
  2639. <div class="subsubsection-level-extent" id="Audio-Production-Information">
  2640. <h4 class="subsubsection"><span>8.2.1.3 Audio Production Information<a class="copiable-link" href="#Audio-Production-Information"> &para;</a></span></h4>
  2641. <p>Audio Production Information is optional information describing the mixing
  2642. environment. Either none or both of the fields are written to the bitstream.
  2643. </p>
  2644. <dl class="table">
  2645. <dt><samp class="option">-mixing_level <var class="var">number</var></samp></dt>
  2646. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2647. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2648. unknown or not indicated. The default value is -1, but that value cannot be
  2649. used if the Audio Production Information is written to the bitstream. Therefore,
  2650. if the <code class="code">room_type</code> option is not the default value, the <code class="code">mixing_level</code>
  2651. option must not be -1.
  2652. </p>
  2653. </dd>
  2654. <dt><samp class="option">-room_type <var class="var">type</var></samp></dt>
  2655. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2656. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2657. industry standard X-curve equalization; a small room has flat equalization.
  2658. This field will not be written to the bitstream if both the <code class="code">mixing_level</code>
  2659. option and the <code class="code">room_type</code> option have the default values.
  2660. </p><dl class="table">
  2661. <dt><samp class="option">0</samp></dt>
  2662. <dt><samp class="option">notindicated</samp></dt>
  2663. <dd><p>Not Indicated (default)
  2664. </p></dd>
  2665. <dt><samp class="option">1</samp></dt>
  2666. <dt><samp class="option">large</samp></dt>
  2667. <dd><p>Large Room
  2668. </p></dd>
  2669. <dt><samp class="option">2</samp></dt>
  2670. <dt><samp class="option">small</samp></dt>
  2671. <dd><p>Small Room
  2672. </p></dd>
  2673. </dl>
  2674. </dd>
  2675. </dl>
  2676. </div>
  2677. <div class="subsubsection-level-extent" id="Other-Metadata-Options">
  2678. <h4 class="subsubsection"><span>8.2.1.4 Other Metadata Options<a class="copiable-link" href="#Other-Metadata-Options"> &para;</a></span></h4>
  2679. <dl class="table">
  2680. <dt><samp class="option">-copyright <var class="var">boolean</var></samp></dt>
  2681. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2682. </p><dl class="table">
  2683. <dt><samp class="option">0</samp></dt>
  2684. <dt><samp class="option">off</samp></dt>
  2685. <dd><p>No Copyright Exists (default)
  2686. </p></dd>
  2687. <dt><samp class="option">1</samp></dt>
  2688. <dt><samp class="option">on</samp></dt>
  2689. <dd><p>Copyright Exists
  2690. </p></dd>
  2691. </dl>
  2692. </dd>
  2693. <dt><samp class="option">-dialnorm <var class="var">value</var></samp></dt>
  2694. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2695. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2696. level shift during audio reproduction that sets the average volume of the
  2697. dialogue to a preset level. The goal is to match volume level between program
  2698. sources. A value of -31dB will result in no volume level change, relative to
  2699. the source volume, during audio reproduction. Valid values are whole numbers in
  2700. the range -31 to -1, with -31 being the default.
  2701. </p>
  2702. </dd>
  2703. <dt><samp class="option">-dsur_mode <var class="var">mode</var></samp></dt>
  2704. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2705. (Pro Logic). This field will only be written to the bitstream if the audio
  2706. stream is stereo. Using this option does <b class="b">NOT</b> mean the encoder will actually
  2707. apply Dolby Surround processing.
  2708. </p><dl class="table">
  2709. <dt><samp class="option">0</samp></dt>
  2710. <dt><samp class="option">notindicated</samp></dt>
  2711. <dd><p>Not Indicated (default)
  2712. </p></dd>
  2713. <dt><samp class="option">1</samp></dt>
  2714. <dt><samp class="option">off</samp></dt>
  2715. <dd><p>Not Dolby Surround Encoded
  2716. </p></dd>
  2717. <dt><samp class="option">2</samp></dt>
  2718. <dt><samp class="option">on</samp></dt>
  2719. <dd><p>Dolby Surround Encoded
  2720. </p></dd>
  2721. </dl>
  2722. </dd>
  2723. <dt><samp class="option">-original <var class="var">boolean</var></samp></dt>
  2724. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2725. original source and not a copy.
  2726. </p><dl class="table">
  2727. <dt><samp class="option">0</samp></dt>
  2728. <dt><samp class="option">off</samp></dt>
  2729. <dd><p>Not Original Source
  2730. </p></dd>
  2731. <dt><samp class="option">1</samp></dt>
  2732. <dt><samp class="option">on</samp></dt>
  2733. <dd><p>Original Source (default)
  2734. </p></dd>
  2735. </dl>
  2736. </dd>
  2737. </dl>
  2738. </div>
  2739. </div>
  2740. <div class="subsection-level-extent" id="Extended-Bitstream-Information">
  2741. <h4 class="subsection"><span>8.2.2 Extended Bitstream Information<a class="copiable-link" href="#Extended-Bitstream-Information"> &para;</a></span></h4>
  2742. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2743. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2744. If any one parameter in a group is specified, all values in that group will be
  2745. written to the bitstream. Default values are used for those that are written
  2746. but have not been specified. If the mixing levels are written, the decoder
  2747. will use these values instead of the ones specified in the <code class="code">center_mixlev</code>
  2748. and <code class="code">surround_mixlev</code> options if it supports the Alternate Bit Stream
  2749. Syntax.
  2750. </p>
  2751. <ul class="mini-toc">
  2752. <li><a href="#Extended-Bitstream-Information-_002d-Part-1" accesskey="1">Extended Bitstream Information - Part 1</a></li>
  2753. <li><a href="#Extended-Bitstream-Information-_002d-Part-2" accesskey="2">Extended Bitstream Information - Part 2</a></li>
  2754. </ul>
  2755. <div class="subsubsection-level-extent" id="Extended-Bitstream-Information-_002d-Part-1">
  2756. <h4 class="subsubsection"><span>8.2.2.1 Extended Bitstream Information - Part 1<a class="copiable-link" href="#Extended-Bitstream-Information-_002d-Part-1"> &para;</a></span></h4>
  2757. <dl class="table">
  2758. <dt><samp class="option">-dmix_mode <var class="var">mode</var></samp></dt>
  2759. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2760. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2761. </p><dl class="table">
  2762. <dt><samp class="option">0</samp></dt>
  2763. <dt><samp class="option">notindicated</samp></dt>
  2764. <dd><p>Not Indicated (default)
  2765. </p></dd>
  2766. <dt><samp class="option">1</samp></dt>
  2767. <dt><samp class="option">ltrt</samp></dt>
  2768. <dd><p>Lt/Rt Downmix Preferred
  2769. </p></dd>
  2770. <dt><samp class="option">2</samp></dt>
  2771. <dt><samp class="option">loro</samp></dt>
  2772. <dd><p>Lo/Ro Downmix Preferred
  2773. </p></dd>
  2774. </dl>
  2775. </dd>
  2776. <dt><samp class="option">-ltrt_cmixlev <var class="var">level</var></samp></dt>
  2777. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2778. center channel when downmixing to stereo in Lt/Rt mode.
  2779. </p><dl class="table">
  2780. <dt><samp class="option">1.414</samp></dt>
  2781. <dd><p>Apply +3dB gain
  2782. </p></dd>
  2783. <dt><samp class="option">1.189</samp></dt>
  2784. <dd><p>Apply +1.5dB gain
  2785. </p></dd>
  2786. <dt><samp class="option">1.000</samp></dt>
  2787. <dd><p>Apply 0dB gain
  2788. </p></dd>
  2789. <dt><samp class="option">0.841</samp></dt>
  2790. <dd><p>Apply -1.5dB gain
  2791. </p></dd>
  2792. <dt><samp class="option">0.707</samp></dt>
  2793. <dd><p>Apply -3.0dB gain
  2794. </p></dd>
  2795. <dt><samp class="option">0.595</samp></dt>
  2796. <dd><p>Apply -4.5dB gain (default)
  2797. </p></dd>
  2798. <dt><samp class="option">0.500</samp></dt>
  2799. <dd><p>Apply -6.0dB gain
  2800. </p></dd>
  2801. <dt><samp class="option">0.000</samp></dt>
  2802. <dd><p>Silence Center Channel
  2803. </p></dd>
  2804. </dl>
  2805. </dd>
  2806. <dt><samp class="option">-ltrt_surmixlev <var class="var">level</var></samp></dt>
  2807. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2808. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2809. </p><dl class="table">
  2810. <dt><samp class="option">0.841</samp></dt>
  2811. <dd><p>Apply -1.5dB gain
  2812. </p></dd>
  2813. <dt><samp class="option">0.707</samp></dt>
  2814. <dd><p>Apply -3.0dB gain
  2815. </p></dd>
  2816. <dt><samp class="option">0.595</samp></dt>
  2817. <dd><p>Apply -4.5dB gain
  2818. </p></dd>
  2819. <dt><samp class="option">0.500</samp></dt>
  2820. <dd><p>Apply -6.0dB gain (default)
  2821. </p></dd>
  2822. <dt><samp class="option">0.000</samp></dt>
  2823. <dd><p>Silence Surround Channel(s)
  2824. </p></dd>
  2825. </dl>
  2826. </dd>
  2827. <dt><samp class="option">-loro_cmixlev <var class="var">level</var></samp></dt>
  2828. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2829. center channel when downmixing to stereo in Lo/Ro mode.
  2830. </p><dl class="table">
  2831. <dt><samp class="option">1.414</samp></dt>
  2832. <dd><p>Apply +3dB gain
  2833. </p></dd>
  2834. <dt><samp class="option">1.189</samp></dt>
  2835. <dd><p>Apply +1.5dB gain
  2836. </p></dd>
  2837. <dt><samp class="option">1.000</samp></dt>
  2838. <dd><p>Apply 0dB gain
  2839. </p></dd>
  2840. <dt><samp class="option">0.841</samp></dt>
  2841. <dd><p>Apply -1.5dB gain
  2842. </p></dd>
  2843. <dt><samp class="option">0.707</samp></dt>
  2844. <dd><p>Apply -3.0dB gain
  2845. </p></dd>
  2846. <dt><samp class="option">0.595</samp></dt>
  2847. <dd><p>Apply -4.5dB gain (default)
  2848. </p></dd>
  2849. <dt><samp class="option">0.500</samp></dt>
  2850. <dd><p>Apply -6.0dB gain
  2851. </p></dd>
  2852. <dt><samp class="option">0.000</samp></dt>
  2853. <dd><p>Silence Center Channel
  2854. </p></dd>
  2855. </dl>
  2856. </dd>
  2857. <dt><samp class="option">-loro_surmixlev <var class="var">level</var></samp></dt>
  2858. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2859. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2860. </p><dl class="table">
  2861. <dt><samp class="option">0.841</samp></dt>
  2862. <dd><p>Apply -1.5dB gain
  2863. </p></dd>
  2864. <dt><samp class="option">0.707</samp></dt>
  2865. <dd><p>Apply -3.0dB gain
  2866. </p></dd>
  2867. <dt><samp class="option">0.595</samp></dt>
  2868. <dd><p>Apply -4.5dB gain
  2869. </p></dd>
  2870. <dt><samp class="option">0.500</samp></dt>
  2871. <dd><p>Apply -6.0dB gain (default)
  2872. </p></dd>
  2873. <dt><samp class="option">0.000</samp></dt>
  2874. <dd><p>Silence Surround Channel(s)
  2875. </p></dd>
  2876. </dl>
  2877. </dd>
  2878. </dl>
  2879. </div>
  2880. <div class="subsubsection-level-extent" id="Extended-Bitstream-Information-_002d-Part-2">
  2881. <h4 class="subsubsection"><span>8.2.2.2 Extended Bitstream Information - Part 2<a class="copiable-link" href="#Extended-Bitstream-Information-_002d-Part-2"> &para;</a></span></h4>
  2882. <dl class="table">
  2883. <dt><samp class="option">-dsurex_mode <var class="var">mode</var></samp></dt>
  2884. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2885. (7.1 matrixed to 5.1). Using this option does <b class="b">NOT</b> mean the encoder will actually
  2886. apply Dolby Surround EX processing.
  2887. </p><dl class="table">
  2888. <dt><samp class="option">0</samp></dt>
  2889. <dt><samp class="option">notindicated</samp></dt>
  2890. <dd><p>Not Indicated (default)
  2891. </p></dd>
  2892. <dt><samp class="option">1</samp></dt>
  2893. <dt><samp class="option">on</samp></dt>
  2894. <dd><p>Dolby Surround EX Off
  2895. </p></dd>
  2896. <dt><samp class="option">2</samp></dt>
  2897. <dt><samp class="option">off</samp></dt>
  2898. <dd><p>Dolby Surround EX On
  2899. </p></dd>
  2900. </dl>
  2901. </dd>
  2902. <dt><samp class="option">-dheadphone_mode <var class="var">mode</var></samp></dt>
  2903. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2904. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2905. option does <b class="b">NOT</b> mean the encoder will actually apply Dolby Headphone
  2906. processing.
  2907. </p><dl class="table">
  2908. <dt><samp class="option">0</samp></dt>
  2909. <dt><samp class="option">notindicated</samp></dt>
  2910. <dd><p>Not Indicated (default)
  2911. </p></dd>
  2912. <dt><samp class="option">1</samp></dt>
  2913. <dt><samp class="option">on</samp></dt>
  2914. <dd><p>Dolby Headphone Off
  2915. </p></dd>
  2916. <dt><samp class="option">2</samp></dt>
  2917. <dt><samp class="option">off</samp></dt>
  2918. <dd><p>Dolby Headphone On
  2919. </p></dd>
  2920. </dl>
  2921. </dd>
  2922. <dt><samp class="option">-ad_conv_type <var class="var">type</var></samp></dt>
  2923. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2924. conversion.
  2925. </p><dl class="table">
  2926. <dt><samp class="option">0</samp></dt>
  2927. <dt><samp class="option">standard</samp></dt>
  2928. <dd><p>Standard A/D Converter (default)
  2929. </p></dd>
  2930. <dt><samp class="option">1</samp></dt>
  2931. <dt><samp class="option">hdcd</samp></dt>
  2932. <dd><p>HDCD A/D Converter
  2933. </p></dd>
  2934. </dl>
  2935. </dd>
  2936. </dl>
  2937. </div>
  2938. </div>
  2939. <div class="subsection-level-extent" id="Other-AC_002d3-Encoding-Options">
  2940. <h4 class="subsection"><span>8.2.3 Other AC-3 Encoding Options<a class="copiable-link" href="#Other-AC_002d3-Encoding-Options"> &para;</a></span></h4>
  2941. <dl class="table">
  2942. <dt><samp class="option">-stereo_rematrixing <var class="var">boolean</var></samp></dt>
  2943. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2944. is an optional AC-3 feature that increases quality by selectively encoding
  2945. the left/right channels as mid/side. This option is enabled by default, and it
  2946. is highly recommended that it be left as enabled except for testing purposes.
  2947. </p>
  2948. </dd>
  2949. <dt><samp class="option">cutoff <var class="var">frequency</var></samp></dt>
  2950. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2951. determined by various other encoding parameters.
  2952. </p>
  2953. </dd>
  2954. </dl>
  2955. </div>
  2956. <div class="subsection-level-extent" id="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">
  2957. <h4 class="subsection"><span>8.2.4 Floating-Point-Only AC-3 Encoding Options<a class="copiable-link" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"> &para;</a></span></h4>
  2958. <p>These options are only valid for the floating-point encoder and do not exist
  2959. for the fixed-point encoder due to the corresponding features not being
  2960. implemented in fixed-point.
  2961. </p>
  2962. <dl class="table">
  2963. <dt><samp class="option">-channel_coupling <var class="var">boolean</var></samp></dt>
  2964. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2965. that increases quality by combining high frequency information from multiple
  2966. channels into a single channel. The per-channel high frequency information is
  2967. sent with less accuracy in both the frequency and time domains. This allows
  2968. more bits to be used for lower frequencies while preserving enough information
  2969. to reconstruct the high frequencies. This option is enabled by default for the
  2970. floating-point encoder and should generally be left as enabled except for
  2971. testing purposes or to increase encoding speed.
  2972. </p><dl class="table">
  2973. <dt><samp class="option">-1</samp></dt>
  2974. <dt><samp class="option">auto</samp></dt>
  2975. <dd><p>Selected by Encoder (default)
  2976. </p></dd>
  2977. <dt><samp class="option">0</samp></dt>
  2978. <dt><samp class="option">off</samp></dt>
  2979. <dd><p>Disable Channel Coupling
  2980. </p></dd>
  2981. <dt><samp class="option">1</samp></dt>
  2982. <dt><samp class="option">on</samp></dt>
  2983. <dd><p>Enable Channel Coupling
  2984. </p></dd>
  2985. </dl>
  2986. </dd>
  2987. <dt><samp class="option">-cpl_start_band <var class="var">number</var></samp></dt>
  2988. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2989. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2990. coupling end band. If <var class="var">auto</var> is used, the start band will be determined by
  2991. the encoder based on the bit rate, sample rate, and channel layout. This option
  2992. has no effect if channel coupling is disabled.
  2993. </p><dl class="table">
  2994. <dt><samp class="option">-1</samp></dt>
  2995. <dt><samp class="option">auto</samp></dt>
  2996. <dd><p>Selected by Encoder (default)
  2997. </p></dd>
  2998. </dl>
  2999. </dd>
  3000. </dl>
  3001. <a class="anchor" id="flac"></a></div>
  3002. </div>
  3003. <div class="section-level-extent" id="flac-2">
  3004. <h3 class="section"><span>8.3 flac<a class="copiable-link" href="#flac-2"> &para;</a></span></h3>
  3005. <p>FLAC (Free Lossless Audio Codec) Encoder
  3006. </p>
  3007. <ul class="mini-toc">
  3008. <li><a href="#Options-11" accesskey="1">Options</a></li>
  3009. </ul>
  3010. <div class="subsection-level-extent" id="Options-11">
  3011. <h4 class="subsection"><span>8.3.1 Options<a class="copiable-link" href="#Options-11"> &para;</a></span></h4>
  3012. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  3013. </p>
  3014. <dl class="table">
  3015. <dt><samp class="option">compression_level</samp></dt>
  3016. <dd><p>Sets the compression level, which chooses defaults for many other options
  3017. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  3018. default.
  3019. </p>
  3020. </dd>
  3021. <dt><samp class="option">frame_size</samp></dt>
  3022. <dd><p>Sets the size of the frames in samples per channel.
  3023. </p>
  3024. </dd>
  3025. <dt><samp class="option">lpc_coeff_precision</samp></dt>
  3026. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  3027. default.
  3028. </p>
  3029. </dd>
  3030. <dt><samp class="option">lpc_type</samp></dt>
  3031. <dd><p>Sets the first stage LPC algorithm
  3032. </p><dl class="table">
  3033. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  3034. <dd><p>LPC is not used
  3035. </p>
  3036. </dd>
  3037. <dt>&lsquo;<samp class="samp">fixed</samp>&rsquo;</dt>
  3038. <dd><p>fixed LPC coefficients
  3039. </p>
  3040. </dd>
  3041. <dt>&lsquo;<samp class="samp">levinson</samp>&rsquo;</dt>
  3042. <dt>&lsquo;<samp class="samp">cholesky</samp>&rsquo;</dt>
  3043. </dl>
  3044. </dd>
  3045. <dt><samp class="option">lpc_passes</samp></dt>
  3046. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  3047. </p>
  3048. </dd>
  3049. <dt><samp class="option">min_partition_order</samp></dt>
  3050. <dd><p>The minimum partition order
  3051. </p>
  3052. </dd>
  3053. <dt><samp class="option">max_partition_order</samp></dt>
  3054. <dd><p>The maximum partition order
  3055. </p>
  3056. </dd>
  3057. <dt><samp class="option">prediction_order_method</samp></dt>
  3058. <dd><dl class="table">
  3059. <dt>&lsquo;<samp class="samp">estimation</samp>&rsquo;</dt>
  3060. <dt>&lsquo;<samp class="samp">2level</samp>&rsquo;</dt>
  3061. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  3062. <dt>&lsquo;<samp class="samp">8level</samp>&rsquo;</dt>
  3063. <dt>&lsquo;<samp class="samp">search</samp>&rsquo;</dt>
  3064. <dd><p>Bruteforce search
  3065. </p></dd>
  3066. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  3067. </dl>
  3068. </dd>
  3069. <dt><samp class="option">ch_mode</samp></dt>
  3070. <dd><p>Channel mode
  3071. </p><dl class="table">
  3072. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3073. <dd><p>The mode is chosen automatically for each frame
  3074. </p></dd>
  3075. <dt>&lsquo;<samp class="samp">indep</samp>&rsquo;</dt>
  3076. <dd><p>Channels are independently coded
  3077. </p></dd>
  3078. <dt>&lsquo;<samp class="samp">left_side</samp>&rsquo;</dt>
  3079. <dt>&lsquo;<samp class="samp">right_side</samp>&rsquo;</dt>
  3080. <dt>&lsquo;<samp class="samp">mid_side</samp>&rsquo;</dt>
  3081. </dl>
  3082. </dd>
  3083. <dt><samp class="option">exact_rice_parameters</samp></dt>
  3084. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  3085. if set to 1 then they are chosen exactly, which slows the code down slightly and
  3086. improves compression slightly.
  3087. </p>
  3088. </dd>
  3089. <dt><samp class="option">multi_dim_quant</samp></dt>
  3090. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  3091. applied after the first stage to finetune the coefficients. This is quite slow
  3092. and slightly improves compression.
  3093. </p>
  3094. </dd>
  3095. </dl>
  3096. <a class="anchor" id="opusenc"></a></div>
  3097. </div>
  3098. <div class="section-level-extent" id="opus">
  3099. <h3 class="section"><span>8.4 opus<a class="copiable-link" href="#opus"> &para;</a></span></h3>
  3100. <p>Opus encoder.
  3101. </p>
  3102. <p>This is a native FFmpeg encoder for the Opus format. Currently, it&rsquo;s in development and
  3103. only implements the CELT part of the codec. Its quality is usually worse and at best
  3104. is equal to the libopus encoder.
  3105. </p>
  3106. <ul class="mini-toc">
  3107. <li><a href="#Options-12" accesskey="1">Options</a></li>
  3108. </ul>
  3109. <div class="subsection-level-extent" id="Options-12">
  3110. <h4 class="subsection"><span>8.4.1 Options<a class="copiable-link" href="#Options-12"> &para;</a></span></h4>
  3111. <dl class="table">
  3112. <dt><samp class="option">b</samp></dt>
  3113. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  3114. to make a good guess.
  3115. </p>
  3116. </dd>
  3117. <dt><samp class="option">opus_delay</samp></dt>
  3118. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  3119. decrease quality.
  3120. </p></dd>
  3121. </dl>
  3122. <a class="anchor" id="libfdk_002daac_002denc"></a></div>
  3123. </div>
  3124. <div class="section-level-extent" id="libfdk_005faac">
  3125. <h3 class="section"><span>8.5 libfdk_aac<a class="copiable-link" href="#libfdk_005faac"> &para;</a></span></h3>
  3126. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  3127. </p>
  3128. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  3129. the Android project.
  3130. </p>
  3131. <p>Requires the presence of the libfdk-aac headers and library during
  3132. configuration. You need to explicitly configure the build with
  3133. <code class="code">--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  3134. so if you allow the use of GPL, you should configure with
  3135. <code class="code">--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  3136. </p>
  3137. <p>This encoder has support for the AAC-HE profiles.
  3138. </p>
  3139. <p>VBR encoding, enabled through the <samp class="option">vbr</samp> or <samp class="option">flags
  3140. +qscale</samp> options, is experimental and only works with some
  3141. combinations of parameters.
  3142. </p>
  3143. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  3144. higher.
  3145. </p>
  3146. <p>For more information see the fdk-aac project at
  3147. <a class="url" href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  3148. </p>
  3149. <ul class="mini-toc">
  3150. <li><a href="#Options-13" accesskey="1">Options</a></li>
  3151. <li><a href="#Examples" accesskey="2">Examples</a></li>
  3152. </ul>
  3153. <div class="subsection-level-extent" id="Options-13">
  3154. <h4 class="subsection"><span>8.5.1 Options<a class="copiable-link" href="#Options-13"> &para;</a></span></h4>
  3155. <p>The following options are mapped on the shared FFmpeg codec options.
  3156. </p>
  3157. <dl class="table">
  3158. <dt><samp class="option">b</samp></dt>
  3159. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  3160. is automatically set to a suitable value depending on the selected
  3161. profile.
  3162. </p>
  3163. <p>In case VBR mode is enabled the option is ignored.
  3164. </p>
  3165. </dd>
  3166. <dt><samp class="option">ar</samp></dt>
  3167. <dd><p>Set audio sampling rate (in Hz).
  3168. </p>
  3169. </dd>
  3170. <dt><samp class="option">channels</samp></dt>
  3171. <dd><p>Set the number of audio channels.
  3172. </p>
  3173. </dd>
  3174. <dt><samp class="option">flags +qscale</samp></dt>
  3175. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  3176. Note that VBR is implicitly enabled when the <samp class="option">vbr</samp> value is
  3177. positive.
  3178. </p>
  3179. </dd>
  3180. <dt><samp class="option">cutoff</samp></dt>
  3181. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  3182. will use a value automatically computed by the library. Default value
  3183. is 0.
  3184. </p>
  3185. </dd>
  3186. <dt><samp class="option">profile</samp></dt>
  3187. <dd><p>Set audio profile.
  3188. </p>
  3189. <p>The following profiles are recognized:
  3190. </p><dl class="table">
  3191. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  3192. <dd><p>Low Complexity AAC (LC)
  3193. </p>
  3194. </dd>
  3195. <dt>&lsquo;<samp class="samp">aac_he</samp>&rsquo;</dt>
  3196. <dd><p>High Efficiency AAC (HE-AAC)
  3197. </p>
  3198. </dd>
  3199. <dt>&lsquo;<samp class="samp">aac_he_v2</samp>&rsquo;</dt>
  3200. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  3201. </p>
  3202. </dd>
  3203. <dt>&lsquo;<samp class="samp">aac_ld</samp>&rsquo;</dt>
  3204. <dd><p>Low Delay AAC (LD)
  3205. </p>
  3206. </dd>
  3207. <dt>&lsquo;<samp class="samp">aac_eld</samp>&rsquo;</dt>
  3208. <dd><p>Enhanced Low Delay AAC (ELD)
  3209. </p></dd>
  3210. </dl>
  3211. <p>If not specified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  3212. </p></dd>
  3213. </dl>
  3214. <p>The following are private options of the libfdk_aac encoder.
  3215. </p>
  3216. <dl class="table">
  3217. <dt><samp class="option">afterburner</samp></dt>
  3218. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  3219. improves the quality but also the required processing power.
  3220. </p>
  3221. <p>Default value is 1.
  3222. </p>
  3223. </dd>
  3224. <dt><samp class="option">eld_sbr</samp></dt>
  3225. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  3226. if set to 0.
  3227. </p>
  3228. <p>Default value is 0.
  3229. </p>
  3230. </dd>
  3231. <dt><samp class="option">eld_v2</samp></dt>
  3232. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  3233. disabled if set to 0.
  3234. </p>
  3235. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  3236. </p>
  3237. <p>Default value is 0.
  3238. </p>
  3239. </dd>
  3240. <dt><samp class="option">signaling</samp></dt>
  3241. <dd><p>Set SBR/PS signaling style.
  3242. </p>
  3243. <p>It can assume one of the following values:
  3244. </p><dl class="table">
  3245. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3246. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  3247. implicit if global header is disabled)
  3248. </p>
  3249. </dd>
  3250. <dt>&lsquo;<samp class="samp">implicit</samp>&rsquo;</dt>
  3251. <dd><p>implicit backwards compatible signaling
  3252. </p>
  3253. </dd>
  3254. <dt>&lsquo;<samp class="samp">explicit_sbr</samp>&rsquo;</dt>
  3255. <dd><p>explicit SBR, implicit PS signaling
  3256. </p>
  3257. </dd>
  3258. <dt>&lsquo;<samp class="samp">explicit_hierarchical</samp>&rsquo;</dt>
  3259. <dd><p>explicit hierarchical signaling
  3260. </p></dd>
  3261. </dl>
  3262. <p>Default value is &lsquo;<samp class="samp">default</samp>&rsquo;.
  3263. </p>
  3264. </dd>
  3265. <dt><samp class="option">latm</samp></dt>
  3266. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  3267. </p>
  3268. <p>Default value is 0.
  3269. </p>
  3270. </dd>
  3271. <dt><samp class="option">header_period</samp></dt>
  3272. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  3273. in-band configuration buffers within LATM/LOAS transport layer.
  3274. </p>
  3275. <p>Must be a 16-bits non-negative integer.
  3276. </p>
  3277. <p>Default value is 0.
  3278. </p>
  3279. </dd>
  3280. <dt><samp class="option">vbr</samp></dt>
  3281. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  3282. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  3283. (Constant Bit Rate) is enabled.
  3284. </p>
  3285. <p>Currently only the &lsquo;<samp class="samp">aac_low</samp>&rsquo; profile supports VBR encoding.
  3286. </p>
  3287. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  3288. </p>
  3289. <dl class="table">
  3290. <dt>&lsquo;<samp class="samp">1</samp>&rsquo;</dt>
  3291. <dd><p>32 kbps/channel
  3292. </p></dd>
  3293. <dt>&lsquo;<samp class="samp">2</samp>&rsquo;</dt>
  3294. <dd><p>40 kbps/channel
  3295. </p></dd>
  3296. <dt>&lsquo;<samp class="samp">3</samp>&rsquo;</dt>
  3297. <dd><p>48-56 kbps/channel
  3298. </p></dd>
  3299. <dt>&lsquo;<samp class="samp">4</samp>&rsquo;</dt>
  3300. <dd><p>64 kbps/channel
  3301. </p></dd>
  3302. <dt>&lsquo;<samp class="samp">5</samp>&rsquo;</dt>
  3303. <dd><p>about 80-96 kbps/channel
  3304. </p></dd>
  3305. </dl>
  3306. <p>Default value is 0.
  3307. </p>
  3308. </dd>
  3309. <dt><samp class="option">frame_length</samp></dt>
  3310. <dd><p>Set the audio frame length in samples. Default value is the internal
  3311. default of the library. Refer to the library&rsquo;s documentation for information
  3312. about supported values.
  3313. </p></dd>
  3314. </dl>
  3315. </div>
  3316. <div class="subsection-level-extent" id="Examples">
  3317. <h4 class="subsection"><span>8.5.2 Examples<a class="copiable-link" href="#Examples"> &para;</a></span></h4>
  3318. <ul class="itemize mark-bullet">
  3319. <li>Use <code class="command">ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  3320. container:
  3321. <div class="example">
  3322. <pre class="example-preformatted">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  3323. </pre></div>
  3324. </li><li>Use <code class="command">ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  3325. High-Efficiency AAC profile:
  3326. <div class="example">
  3327. <pre class="example-preformatted">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  3328. </pre></div>
  3329. </li></ul>
  3330. <a class="anchor" id="libmp3lame"></a></div>
  3331. </div>
  3332. <div class="section-level-extent" id="libmp3lame-1">
  3333. <h3 class="section"><span>8.6 libmp3lame<a class="copiable-link" href="#libmp3lame-1"> &para;</a></span></h3>
  3334. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  3335. </p>
  3336. <p>Requires the presence of the libmp3lame headers and library during
  3337. configuration. You need to explicitly configure the build with
  3338. <code class="code">--enable-libmp3lame</code>.
  3339. </p>
  3340. <p>See <a class="ref" href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  3341. lower quality.
  3342. </p>
  3343. <ul class="mini-toc">
  3344. <li><a href="#Options-14" accesskey="1">Options</a></li>
  3345. </ul>
  3346. <div class="subsection-level-extent" id="Options-14">
  3347. <h4 class="subsection"><span>8.6.1 Options<a class="copiable-link" href="#Options-14"> &para;</a></span></h4>
  3348. <p>The following options are supported by the libmp3lame wrapper. The
  3349. <code class="command">lame</code>-equivalent of the options are listed in parentheses.
  3350. </p>
  3351. <dl class="table">
  3352. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3353. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code class="code">bitrate</code> is
  3354. expressed in kilobits/s.
  3355. </p>
  3356. </dd>
  3357. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3358. <dd><p>Set constant quality setting for VBR. This option is valid only
  3359. using the <code class="command">ffmpeg</code> command-line tool. For library interface
  3360. users, use <samp class="option">global_quality</samp>.
  3361. </p>
  3362. </dd>
  3363. <dt><samp class="option">compression_level (<em class="emph">-q</em>)</samp></dt>
  3364. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  3365. with 0 meaning highest quality but slowest, and 9 meaning fastest
  3366. while producing the worst quality.
  3367. </p>
  3368. </dd>
  3369. <dt><samp class="option">cutoff (<em class="emph">--lowpass</em>)</samp></dt>
  3370. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  3371. adjusts the cutoff.
  3372. </p>
  3373. </dd>
  3374. <dt><samp class="option">reservoir</samp></dt>
  3375. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  3376. has this enabled by default, but can be overridden by use
  3377. <samp class="option">--nores</samp> option.
  3378. </p>
  3379. </dd>
  3380. <dt><samp class="option">joint_stereo (<em class="emph">-m j</em>)</samp></dt>
  3381. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  3382. stereo or mid/side stereo. Default value is 1.
  3383. </p>
  3384. </dd>
  3385. <dt><samp class="option">abr (<em class="emph">--abr</em>)</samp></dt>
  3386. <dd><p>Enable the encoder to use ABR when set to 1. The <code class="command">lame</code>
  3387. <samp class="option">--abr</samp> sets the target bitrate, while this options only
  3388. tells FFmpeg to use ABR still relies on <samp class="option">b</samp> to set bitrate.
  3389. </p>
  3390. </dd>
  3391. <dt><samp class="option">copyright (<em class="emph">-c</em>)</samp></dt>
  3392. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3393. (disabled).
  3394. </p>
  3395. </dd>
  3396. <dt><samp class="option">original (<em class="emph">-o</em>)</samp></dt>
  3397. <dd><p>Set MPEG audio original flag when set to 1. The default value is 1
  3398. (enabled).
  3399. </p></dd>
  3400. </dl>
  3401. </div>
  3402. </div>
  3403. <div class="section-level-extent" id="libopencore_002damrnb-1">
  3404. <h3 class="section"><span>8.7 libopencore-amrnb<a class="copiable-link" href="#libopencore_002damrnb-1"> &para;</a></span></h3>
  3405. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  3406. </p>
  3407. <p>Requires the presence of the libopencore-amrnb headers and library during
  3408. configuration. You need to explicitly configure the build with
  3409. <code class="code">--enable-libopencore-amrnb --enable-version3</code>.
  3410. </p>
  3411. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  3412. but you can override it by setting <samp class="option">strict</samp> to &lsquo;<samp class="samp">unofficial</samp>&rsquo; or
  3413. lower.
  3414. </p>
  3415. <ul class="mini-toc">
  3416. <li><a href="#Options-15" accesskey="1">Options</a></li>
  3417. </ul>
  3418. <div class="subsection-level-extent" id="Options-15">
  3419. <h4 class="subsection"><span>8.7.1 Options<a class="copiable-link" href="#Options-15"> &para;</a></span></h4>
  3420. <dl class="table">
  3421. <dt><samp class="option">b</samp></dt>
  3422. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  3423. otherwise libavcodec will round to the nearest valid bitrate.
  3424. </p>
  3425. <dl class="table">
  3426. <dt><samp class="option">4750</samp></dt>
  3427. <dt><samp class="option">5150</samp></dt>
  3428. <dt><samp class="option">5900</samp></dt>
  3429. <dt><samp class="option">6700</samp></dt>
  3430. <dt><samp class="option">7400</samp></dt>
  3431. <dt><samp class="option">7950</samp></dt>
  3432. <dt><samp class="option">10200</samp></dt>
  3433. <dt><samp class="option">12200</samp></dt>
  3434. </dl>
  3435. </dd>
  3436. <dt><samp class="option">dtx</samp></dt>
  3437. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3438. default value is 0 (disabled).
  3439. </p>
  3440. </dd>
  3441. </dl>
  3442. </div>
  3443. </div>
  3444. <div class="section-level-extent" id="libopus-1">
  3445. <h3 class="section"><span>8.8 libopus<a class="copiable-link" href="#libopus-1"> &para;</a></span></h3>
  3446. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3447. </p>
  3448. <p>Requires the presence of the libopus headers and library during
  3449. configuration. You need to explicitly configure the build with
  3450. <code class="code">--enable-libopus</code>.
  3451. </p>
  3452. <ul class="mini-toc">
  3453. <li><a href="#Option-Mapping" accesskey="1">Option Mapping</a></li>
  3454. </ul>
  3455. <div class="subsection-level-extent" id="Option-Mapping">
  3456. <h4 class="subsection"><span>8.8.1 Option Mapping<a class="copiable-link" href="#Option-Mapping"> &para;</a></span></h4>
  3457. <p>Most libopus options are modelled after the <code class="command">opusenc</code> utility from
  3458. opus-tools. The following is an option mapping chart describing options
  3459. supported by the libopus wrapper, and their <code class="command">opusenc</code>-equivalent
  3460. in parentheses.
  3461. </p>
  3462. <dl class="table">
  3463. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  3464. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s <samp class="option">b</samp> option is
  3465. expressed in bits/s, while <code class="command">opusenc</code>&rsquo;s <samp class="option">bitrate</samp> in
  3466. kilobits/s.
  3467. </p>
  3468. </dd>
  3469. <dt><samp class="option">vbr (<em class="emph">vbr</em>, <em class="emph">hard-cbr</em>, and <em class="emph">cvbr</em>)</samp></dt>
  3470. <dd><p>Set VBR mode. The FFmpeg <samp class="option">vbr</samp> option has the following
  3471. valid arguments, with the <code class="command">opusenc</code> equivalent options
  3472. in parentheses:
  3473. </p>
  3474. <dl class="table">
  3475. <dt>&lsquo;<samp class="samp">off (<em class="emph">hard-cbr</em>)</samp>&rsquo;</dt>
  3476. <dd><p>Use constant bit rate encoding.
  3477. </p>
  3478. </dd>
  3479. <dt>&lsquo;<samp class="samp">on (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  3480. <dd><p>Use variable bit rate encoding (the default).
  3481. </p>
  3482. </dd>
  3483. <dt>&lsquo;<samp class="samp">constrained (<em class="emph">cvbr</em>)</samp>&rsquo;</dt>
  3484. <dd><p>Use constrained variable bit rate encoding.
  3485. </p></dd>
  3486. </dl>
  3487. </dd>
  3488. <dt><samp class="option">compression_level (<em class="emph">comp</em>)</samp></dt>
  3489. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3490. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3491. gives the highest quality but slowest encoding. The default is 10.
  3492. </p>
  3493. </dd>
  3494. <dt><samp class="option">frame_duration (<em class="emph">framesize</em>)</samp></dt>
  3495. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3496. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3497. frame sizes achieve lower latency but less quality at a given bitrate.
  3498. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3499. The default is 20ms.
  3500. </p>
  3501. </dd>
  3502. <dt><samp class="option">packet_loss (<em class="emph">expect-loss</em>)</samp></dt>
  3503. <dd><p>Set expected packet loss percentage. The default is 0.
  3504. </p>
  3505. </dd>
  3506. <dt><samp class="option">fec (<em class="emph">n/a</em>)</samp></dt>
  3507. <dd><p>Enable inband forward error correction. <samp class="option">packet_loss</samp> must be non-zero
  3508. to take advantage - frequency of FEC &rsquo;side-data&rsquo; is proportional to expected packet loss.
  3509. Default is disabled.
  3510. </p>
  3511. </dd>
  3512. <dt><samp class="option">application (N.A.)</samp></dt>
  3513. <dd><p>Set intended application type. Valid options are listed below:
  3514. </p>
  3515. <dl class="table">
  3516. <dt>&lsquo;<samp class="samp">voip</samp>&rsquo;</dt>
  3517. <dd><p>Favor improved speech intelligibility.
  3518. </p></dd>
  3519. <dt>&lsquo;<samp class="samp">audio</samp>&rsquo;</dt>
  3520. <dd><p>Favor faithfulness to the input (the default).
  3521. </p></dd>
  3522. <dt>&lsquo;<samp class="samp">lowdelay</samp>&rsquo;</dt>
  3523. <dd><p>Restrict to only the lowest delay modes by disabling voice-optimized
  3524. modes.
  3525. </p></dd>
  3526. </dl>
  3527. </dd>
  3528. <dt><samp class="option">cutoff (N.A.)</samp></dt>
  3529. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3530. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3531. narrowband, mediumband, wideband, super wideband, and fullband
  3532. respectively. The default is 0 (cutoff disabled). Note that libopus
  3533. forces a wideband cutoff for bitrates &lt; 15 kbps, unless CELT-only
  3534. (<samp class="option">application</samp> set to &lsquo;<samp class="samp">lowdelay</samp>&rsquo;) mode is used.
  3535. </p>
  3536. </dd>
  3537. <dt><samp class="option">mapping_family (<em class="emph">mapping_family</em>)</samp></dt>
  3538. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3539. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3540. otherwise. The default also disables the surround masking and LFE bandwidth
  3541. optimzations in libopus, and requires that the input contains 8 channels or
  3542. fewer.
  3543. </p>
  3544. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3545. and LFE bandwidth optimizations, and 255 for independent streams with an
  3546. unspecified channel layout.
  3547. </p>
  3548. </dd>
  3549. <dt><samp class="option">apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp></dt>
  3550. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3551. improving the quality of mono downmixes, but slightly reducing normal stereo
  3552. quality. The default is 1 (phase inversion enabled).
  3553. </p>
  3554. </dd>
  3555. </dl>
  3556. <a class="anchor" id="libshine"></a></div>
  3557. </div>
  3558. <div class="section-level-extent" id="libshine-1">
  3559. <h3 class="section"><span>8.9 libshine<a class="copiable-link" href="#libshine-1"> &para;</a></span></h3>
  3560. <p>Shine Fixed-Point MP3 encoder wrapper.
  3561. </p>
  3562. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3563. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3564. However, as it is more targeted on performance than quality, it is not on par
  3565. with LAME and other production-grade encoders quality-wise. Also, according to
  3566. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3567. written a long time ago and the project was dead for at least 5 years.
  3568. </p>
  3569. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3570. </p>
  3571. <p>The original project (last updated in early 2007) is at
  3572. <a class="url" href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3573. updated fork by the Savonet/Liquidsoap project at <a class="url" href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3574. </p>
  3575. <p>Requires the presence of the libshine headers and library during
  3576. configuration. You need to explicitly configure the build with
  3577. <code class="code">--enable-libshine</code>.
  3578. </p>
  3579. <p>See also <a class="ref" href="#libmp3lame">libmp3lame</a>.
  3580. </p>
  3581. <ul class="mini-toc">
  3582. <li><a href="#Options-16" accesskey="1">Options</a></li>
  3583. </ul>
  3584. <div class="subsection-level-extent" id="Options-16">
  3585. <h4 class="subsection"><span>8.9.1 Options<a class="copiable-link" href="#Options-16"> &para;</a></span></h4>
  3586. <p>The following options are supported by the libshine wrapper. The
  3587. <code class="command">shineenc</code>-equivalent of the options are listed in parentheses.
  3588. </p>
  3589. <dl class="table">
  3590. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3591. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">shineenc</code> <samp class="option">-b</samp> option
  3592. is expressed in kilobits/s.
  3593. </p>
  3594. </dd>
  3595. </dl>
  3596. </div>
  3597. </div>
  3598. <div class="section-level-extent" id="libtwolame">
  3599. <h3 class="section"><span>8.10 libtwolame<a class="copiable-link" href="#libtwolame"> &para;</a></span></h3>
  3600. <p>TwoLAME MP2 encoder wrapper.
  3601. </p>
  3602. <p>Requires the presence of the libtwolame headers and library during
  3603. configuration. You need to explicitly configure the build with
  3604. <code class="code">--enable-libtwolame</code>.
  3605. </p>
  3606. <ul class="mini-toc">
  3607. <li><a href="#Options-17" accesskey="1">Options</a></li>
  3608. </ul>
  3609. <div class="subsection-level-extent" id="Options-17">
  3610. <h4 class="subsection"><span>8.10.1 Options<a class="copiable-link" href="#Options-17"> &para;</a></span></h4>
  3611. <p>The following options are supported by the libtwolame wrapper. The
  3612. <code class="command">twolame</code>-equivalent options follow the FFmpeg ones and are in
  3613. parentheses.
  3614. </p>
  3615. <dl class="table">
  3616. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3617. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">twolame</code> <samp class="option">b</samp>
  3618. option is expressed in kilobits/s. Default value is 128k.
  3619. </p>
  3620. </dd>
  3621. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3622. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3623. from -50 to 50, useful range is from -10 to 10. The higher the
  3624. value, the better the quality. This option is valid only using the
  3625. <code class="command">ffmpeg</code> command-line tool. For library interface users,
  3626. use <samp class="option">global_quality</samp>.
  3627. </p>
  3628. </dd>
  3629. <dt><samp class="option">mode (<em class="emph">--mode</em>)</samp></dt>
  3630. <dd><p>Set the mode of the resulting audio. Possible values:
  3631. </p>
  3632. <dl class="table">
  3633. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3634. <dd><p>Choose mode automatically based on the input. This is the default.
  3635. </p></dd>
  3636. <dt>&lsquo;<samp class="samp">stereo</samp>&rsquo;</dt>
  3637. <dd><p>Stereo
  3638. </p></dd>
  3639. <dt>&lsquo;<samp class="samp">joint_stereo</samp>&rsquo;</dt>
  3640. <dd><p>Joint stereo
  3641. </p></dd>
  3642. <dt>&lsquo;<samp class="samp">dual_channel</samp>&rsquo;</dt>
  3643. <dd><p>Dual channel
  3644. </p></dd>
  3645. <dt>&lsquo;<samp class="samp">mono</samp>&rsquo;</dt>
  3646. <dd><p>Mono
  3647. </p></dd>
  3648. </dl>
  3649. </dd>
  3650. <dt><samp class="option">psymodel (<em class="emph">--psyc-mode</em>)</samp></dt>
  3651. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3652. an integer between -1 and 4, inclusive. The higher the value, the
  3653. better the quality. The default value is 3.
  3654. </p>
  3655. </dd>
  3656. <dt><samp class="option">energy_levels (<em class="emph">--energy</em>)</samp></dt>
  3657. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3658. 0 (disabled).
  3659. </p>
  3660. </dd>
  3661. <dt><samp class="option">error_protection (<em class="emph">--protect</em>)</samp></dt>
  3662. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3663. (disabled).
  3664. </p>
  3665. </dd>
  3666. <dt><samp class="option">copyright (<em class="emph">--copyright</em>)</samp></dt>
  3667. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3668. (disabled).
  3669. </p>
  3670. </dd>
  3671. <dt><samp class="option">original (<em class="emph">--original</em>)</samp></dt>
  3672. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3673. (disabled).
  3674. </p>
  3675. </dd>
  3676. </dl>
  3677. </div>
  3678. </div>
  3679. <div class="section-level-extent" id="libvo_002damrwbenc">
  3680. <h3 class="section"><span>8.11 libvo-amrwbenc<a class="copiable-link" href="#libvo_002damrwbenc"> &para;</a></span></h3>
  3681. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3682. </p>
  3683. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3684. configuration. You need to explicitly configure the build with
  3685. <code class="code">--enable-libvo-amrwbenc --enable-version3</code>.
  3686. </p>
  3687. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3688. rate, but you can override it by setting <samp class="option">strict</samp> to
  3689. &lsquo;<samp class="samp">unofficial</samp>&rsquo; or lower.
  3690. </p>
  3691. <ul class="mini-toc">
  3692. <li><a href="#Options-18" accesskey="1">Options</a></li>
  3693. </ul>
  3694. <div class="subsection-level-extent" id="Options-18">
  3695. <h4 class="subsection"><span>8.11.1 Options<a class="copiable-link" href="#Options-18"> &para;</a></span></h4>
  3696. <dl class="table">
  3697. <dt><samp class="option">b</samp></dt>
  3698. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3699. libavcodec will round to the nearest valid bitrate.
  3700. </p>
  3701. <dl class="table">
  3702. <dt>&lsquo;<samp class="samp">6600</samp>&rsquo;</dt>
  3703. <dt>&lsquo;<samp class="samp">8850</samp>&rsquo;</dt>
  3704. <dt>&lsquo;<samp class="samp">12650</samp>&rsquo;</dt>
  3705. <dt>&lsquo;<samp class="samp">14250</samp>&rsquo;</dt>
  3706. <dt>&lsquo;<samp class="samp">15850</samp>&rsquo;</dt>
  3707. <dt>&lsquo;<samp class="samp">18250</samp>&rsquo;</dt>
  3708. <dt>&lsquo;<samp class="samp">19850</samp>&rsquo;</dt>
  3709. <dt>&lsquo;<samp class="samp">23050</samp>&rsquo;</dt>
  3710. <dt>&lsquo;<samp class="samp">23850</samp>&rsquo;</dt>
  3711. </dl>
  3712. </dd>
  3713. <dt><samp class="option">dtx</samp></dt>
  3714. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3715. default value is 0 (disabled).
  3716. </p>
  3717. </dd>
  3718. </dl>
  3719. </div>
  3720. </div>
  3721. <div class="section-level-extent" id="libvorbis">
  3722. <h3 class="section"><span>8.12 libvorbis<a class="copiable-link" href="#libvorbis"> &para;</a></span></h3>
  3723. <p>libvorbis encoder wrapper.
  3724. </p>
  3725. <p>Requires the presence of the libvorbisenc headers and library during
  3726. configuration. You need to explicitly configure the build with
  3727. <code class="code">--enable-libvorbis</code>.
  3728. </p>
  3729. <ul class="mini-toc">
  3730. <li><a href="#Options-19" accesskey="1">Options</a></li>
  3731. </ul>
  3732. <div class="subsection-level-extent" id="Options-19">
  3733. <h4 class="subsection"><span>8.12.1 Options<a class="copiable-link" href="#Options-19"> &para;</a></span></h4>
  3734. <p>The following options are supported by the libvorbis wrapper. The
  3735. <code class="command">oggenc</code>-equivalent of the options are listed in parentheses.
  3736. </p>
  3737. <p>To get a more accurate and extensive documentation of the libvorbis
  3738. options, consult the libvorbisenc&rsquo;s and <code class="command">oggenc</code>&rsquo;s documentations.
  3739. See <a class="url" href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3740. <a class="url" href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3741. </p>
  3742. <dl class="table">
  3743. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3744. <dd><p>Set bitrate expressed in bits/s for ABR. <code class="command">oggenc</code> <samp class="option">-b</samp> is
  3745. expressed in kilobits/s.
  3746. </p>
  3747. </dd>
  3748. <dt><samp class="option">q (<em class="emph">-q</em>)</samp></dt>
  3749. <dd><p>Set constant quality setting for VBR. The value should be a float
  3750. number in the range of -1.0 to 10.0. The higher the value, the better
  3751. the quality. The default value is &lsquo;<samp class="samp">3.0</samp>&rsquo;.
  3752. </p>
  3753. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line tool.
  3754. For library interface users, use <samp class="option">global_quality</samp>.
  3755. </p>
  3756. </dd>
  3757. <dt><samp class="option">cutoff (<em class="emph">--advanced-encode-option lowpass_frequency=N</em>)</samp></dt>
  3758. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code class="command">oggenc</code>&rsquo;s
  3759. related option is expressed in kHz. The default value is &lsquo;<samp class="samp">0</samp>&rsquo; (cutoff
  3760. disabled).
  3761. </p>
  3762. </dd>
  3763. <dt><samp class="option">minrate (<em class="emph">-m</em>)</samp></dt>
  3764. <dd><p>Set minimum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-m</samp> is
  3765. expressed in kilobits/s.
  3766. </p>
  3767. </dd>
  3768. <dt><samp class="option">maxrate (<em class="emph">-M</em>)</samp></dt>
  3769. <dd><p>Set maximum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-M</samp> is
  3770. expressed in kilobits/s. This only has effect on ABR mode.
  3771. </p>
  3772. </dd>
  3773. <dt><samp class="option">iblock (<em class="emph">--advanced-encode-option impulse_noisetune=N</em>)</samp></dt>
  3774. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3775. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3776. to the crispness of transients in the encoded audio. The tradeoff for better
  3777. transient response is a higher bitrate.
  3778. </p>
  3779. </dd>
  3780. </dl>
  3781. <a class="anchor" id="mjpegenc"></a></div>
  3782. </div>
  3783. <div class="section-level-extent" id="mjpeg">
  3784. <h3 class="section"><span>8.13 mjpeg<a class="copiable-link" href="#mjpeg"> &para;</a></span></h3>
  3785. <p>Motion JPEG encoder.
  3786. </p>
  3787. <ul class="mini-toc">
  3788. <li><a href="#Options-20" accesskey="1">Options</a></li>
  3789. </ul>
  3790. <div class="subsection-level-extent" id="Options-20">
  3791. <h4 class="subsection"><span>8.13.1 Options<a class="copiable-link" href="#Options-20"> &para;</a></span></h4>
  3792. <dl class="table">
  3793. <dt><samp class="option">huffman</samp></dt>
  3794. <dd><p>Set the huffman encoding strategy. Possible values:
  3795. </p>
  3796. <dl class="table">
  3797. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3798. <dd><p>Use the default huffman tables. This is the default strategy.
  3799. </p>
  3800. </dd>
  3801. <dt>&lsquo;<samp class="samp">optimal</samp>&rsquo;</dt>
  3802. <dd><p>Compute and use optimal huffman tables.
  3803. </p>
  3804. </dd>
  3805. </dl>
  3806. </dd>
  3807. </dl>
  3808. <a class="anchor" id="wavpackenc"></a></div>
  3809. </div>
  3810. <div class="section-level-extent" id="wavpack">
  3811. <h3 class="section"><span>8.14 wavpack<a class="copiable-link" href="#wavpack"> &para;</a></span></h3>
  3812. <p>WavPack lossless audio encoder.
  3813. </p>
  3814. <ul class="mini-toc">
  3815. <li><a href="#Options-21" accesskey="1">Options</a></li>
  3816. </ul>
  3817. <div class="subsection-level-extent" id="Options-21">
  3818. <h4 class="subsection"><span>8.14.1 Options<a class="copiable-link" href="#Options-21"> &para;</a></span></h4>
  3819. <p>The equivalent options for <code class="command">wavpack</code> command line utility are listed in
  3820. parentheses.
  3821. </p>
  3822. <ul class="mini-toc">
  3823. <li><a href="#Shared-options" accesskey="1">Shared options</a></li>
  3824. <li><a href="#Private-options" accesskey="2">Private options</a></li>
  3825. </ul>
  3826. <div class="subsubsection-level-extent" id="Shared-options">
  3827. <h4 class="subsubsection"><span>8.14.1.1 Shared options<a class="copiable-link" href="#Shared-options"> &para;</a></span></h4>
  3828. <p>The following shared options are effective for this encoder. Only special notes
  3829. about this particular encoder will be documented here. For the general meaning
  3830. of the options, see <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  3831. </p>
  3832. <dl class="table">
  3833. <dt><samp class="option">frame_size (<em class="emph">--blocksize</em>)</samp></dt>
  3834. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3835. is automatically decided based on sample rate and number of channel.
  3836. </p>
  3837. <p>For the complete formula of calculating default, see
  3838. <samp class="file">libavcodec/wavpackenc.c</samp>.
  3839. </p>
  3840. </dd>
  3841. <dt><samp class="option">compression_level (<em class="emph">-f</em>, <em class="emph">-h</em>, <em class="emph">-hh</em>, and <em class="emph">-x</em>)</samp></dt>
  3842. </dl>
  3843. </div>
  3844. <div class="subsubsection-level-extent" id="Private-options">
  3845. <h4 class="subsubsection"><span>8.14.1.2 Private options<a class="copiable-link" href="#Private-options"> &para;</a></span></h4>
  3846. <dl class="table">
  3847. <dt><samp class="option">joint_stereo (<em class="emph">-j</em>)</samp></dt>
  3848. <dd><p>Set whether to enable joint stereo. Valid values are:
  3849. </p>
  3850. <dl class="table">
  3851. <dt>&lsquo;<samp class="samp">on (<em class="emph">1</em>)</samp>&rsquo;</dt>
  3852. <dd><p>Force mid/side audio encoding.
  3853. </p></dd>
  3854. <dt>&lsquo;<samp class="samp">off (<em class="emph">0</em>)</samp>&rsquo;</dt>
  3855. <dd><p>Force left/right audio encoding.
  3856. </p></dd>
  3857. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3858. <dd><p>Let the encoder decide automatically.
  3859. </p></dd>
  3860. </dl>
  3861. </dd>
  3862. <dt><samp class="option">optimize_mono</samp></dt>
  3863. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3864. non-mono streams. Available values:
  3865. </p>
  3866. <dl class="table">
  3867. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  3868. <dd><p>enabled
  3869. </p></dd>
  3870. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  3871. <dd><p>disabled
  3872. </p></dd>
  3873. </dl>
  3874. </dd>
  3875. </dl>
  3876. </div>
  3877. </div>
  3878. </div>
  3879. </div>
  3880. <div class="chapter-level-extent" id="Video-Encoders">
  3881. <h2 class="chapter"><span>9 Video Encoders<a class="copiable-link" href="#Video-Encoders"> &para;</a></span></h2>
  3882. <p>A description of some of the currently available video encoders
  3883. follows.
  3884. </p>
  3885. <ul class="mini-toc">
  3886. <li><a href="#a64_005fmulti_002c-a64_005fmulti5" accesskey="1">a64_multi, a64_multi5</a></li>
  3887. <li><a href="#Cinepak" accesskey="2">Cinepak</a></li>
  3888. <li><a href="#GIF" accesskey="3">GIF</a></li>
  3889. <li><a href="#Hap" accesskey="4">Hap</a></li>
  3890. <li><a href="#jpeg2000" accesskey="5">jpeg2000</a></li>
  3891. <li><a href="#librav1e" accesskey="6">librav1e</a></li>
  3892. <li><a href="#libaom_002dav1" accesskey="7">libaom-av1</a></li>
  3893. <li><a href="#libsvtav1" accesskey="8">libsvtav1</a></li>
  3894. <li><a href="#libjxl" accesskey="9">libjxl</a></li>
  3895. <li><a href="#libkvazaar">libkvazaar</a></li>
  3896. <li><a href="#libopenh264">libopenh264</a></li>
  3897. <li><a href="#libtheora">libtheora</a></li>
  3898. <li><a href="#libvpx">libvpx</a></li>
  3899. <li><a href="#libwebp">libwebp</a></li>
  3900. <li><a href="#libx264_002c-libx264rgb">libx264, libx264rgb</a></li>
  3901. <li><a href="#libx265">libx265</a></li>
  3902. <li><a href="#libxavs2">libxavs2</a></li>
  3903. <li><a href="#libxeve">libxeve</a></li>
  3904. <li><a href="#libxvid">libxvid</a></li>
  3905. <li><a href="#MediaFoundation">MediaFoundation</a></li>
  3906. <li><a href="#Microsoft-RLE">Microsoft RLE</a></li>
  3907. <li><a href="#mpeg2">mpeg2</a></li>
  3908. <li><a href="#png">png</a></li>
  3909. <li><a href="#ProRes">ProRes</a></li>
  3910. <li><a href="#QSV-Encoders">QSV Encoders</a></li>
  3911. <li><a href="#snow">snow</a></li>
  3912. <li><a href="#VAAPI-encoders">VAAPI encoders</a></li>
  3913. <li><a href="#vbn">vbn</a></li>
  3914. <li><a href="#vc2">vc2</a></li>
  3915. </ul>
  3916. <div class="section-level-extent" id="a64_005fmulti_002c-a64_005fmulti5">
  3917. <h3 class="section"><span>9.1 a64_multi, a64_multi5<a class="copiable-link" href="#a64_005fmulti_002c-a64_005fmulti5"> &para;</a></span></h3>
  3918. <p>A64 / Commodore 64 multicolor charset encoder. <code class="code">a64_multi5</code> is extended with 5th color (colram).
  3919. </p>
  3920. </div>
  3921. <div class="section-level-extent" id="Cinepak">
  3922. <h3 class="section"><span>9.2 Cinepak<a class="copiable-link" href="#Cinepak"> &para;</a></span></h3>
  3923. <p>Cinepak aka CVID encoder.
  3924. Compatible with Windows 3.1 and vintage MacOS.
  3925. </p>
  3926. <ul class="mini-toc">
  3927. <li><a href="#Options-22" accesskey="1">Options</a></li>
  3928. </ul>
  3929. <div class="subsection-level-extent" id="Options-22">
  3930. <h4 class="subsection"><span>9.2.1 Options<a class="copiable-link" href="#Options-22"> &para;</a></span></h4>
  3931. <dl class="table">
  3932. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  3933. <dd><p>Keyframe interval.
  3934. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  3935. </p>
  3936. </dd>
  3937. <dt><samp class="option">q:v <var class="var">integer</var></samp></dt>
  3938. <dd><p>Quality factor. Lower is better. Higher gives lower bitrate.
  3939. The following table lists bitrates when encoding akiyo_cif.y4m for various values of <code class="code">-q:v</code> with <code class="code">-g 100</code>:
  3940. </p>
  3941. <dl class="table">
  3942. <dt><samp class="option"><code class="code">-q:v 1</code> 1918 kb/s</samp></dt>
  3943. <dt><samp class="option"><code class="code">-q:v 2</code> 1735 kb/s</samp></dt>
  3944. <dt><samp class="option"><code class="code">-q:v 4</code> 1500 kb/s</samp></dt>
  3945. <dt><samp class="option"><code class="code">-q:v 10</code> 1041 kb/s</samp></dt>
  3946. <dt><samp class="option"><code class="code">-q:v 20</code> 826 kb/s</samp></dt>
  3947. <dt><samp class="option"><code class="code">-q:v 40</code> 553 kb/s</samp></dt>
  3948. <dt><samp class="option"><code class="code">-q:v 100</code> 394 kb/s</samp></dt>
  3949. <dt><samp class="option"><code class="code">-q:v 200</code> 312 kb/s</samp></dt>
  3950. <dt><samp class="option"><code class="code">-q:v 400</code> 266 kb/s</samp></dt>
  3951. <dt><samp class="option"><code class="code">-q:v 1000</code> 237 kb/s</samp></dt>
  3952. </dl>
  3953. </dd>
  3954. <dt><samp class="option">max_extra_cb_iterations <var class="var">integer</var></samp></dt>
  3955. <dd><p>Max extra codebook recalculation passes, more is better and slower.
  3956. </p>
  3957. </dd>
  3958. <dt><samp class="option">skip_empty_cb <var class="var">boolean</var></samp></dt>
  3959. <dd><p>Avoid wasting bytes, ignore vintage MacOS decoder.
  3960. </p>
  3961. </dd>
  3962. <dt><samp class="option">max_strips <var class="var">integer</var></samp></dt>
  3963. <dt><samp class="option">min_strips <var class="var">integer</var></samp></dt>
  3964. <dd><p>The minimum and maximum number of strips to use.
  3965. Wider range sometimes improves quality.
  3966. More strips is generally better quality but costs more bits.
  3967. Fewer strips tend to yield more keyframes.
  3968. Vintage compatible is 1..3.
  3969. </p>
  3970. </dd>
  3971. <dt><samp class="option">strip_number_adaptivity <var class="var">integer</var></samp></dt>
  3972. <dd><p>How much number of strips is allowed to change between frames.
  3973. Higher is better but slower.
  3974. </p>
  3975. </dd>
  3976. </dl>
  3977. </div>
  3978. </div>
  3979. <div class="section-level-extent" id="GIF">
  3980. <h3 class="section"><span>9.3 GIF<a class="copiable-link" href="#GIF"> &para;</a></span></h3>
  3981. <p>GIF image/animation encoder.
  3982. </p>
  3983. <ul class="mini-toc">
  3984. <li><a href="#Options-23" accesskey="1">Options</a></li>
  3985. </ul>
  3986. <div class="subsection-level-extent" id="Options-23">
  3987. <h4 class="subsection"><span>9.3.1 Options<a class="copiable-link" href="#Options-23"> &para;</a></span></h4>
  3988. <dl class="table">
  3989. <dt><samp class="option">gifflags <var class="var">integer</var></samp></dt>
  3990. <dd><p>Sets the flags used for GIF encoding.
  3991. </p>
  3992. <dl class="table">
  3993. <dt><samp class="option">offsetting</samp></dt>
  3994. <dd><p>Enables picture offsetting.
  3995. </p>
  3996. <p>Default is enabled.
  3997. </p>
  3998. </dd>
  3999. <dt><samp class="option">transdiff</samp></dt>
  4000. <dd><p>Enables transparency detection between frames.
  4001. </p>
  4002. <p>Default is enabled.
  4003. </p>
  4004. </dd>
  4005. </dl>
  4006. </dd>
  4007. <dt><samp class="option">gifimage <var class="var">integer</var></samp></dt>
  4008. <dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
  4009. </p>
  4010. <p>Default value is <samp class="option">0</samp>.
  4011. </p>
  4012. </dd>
  4013. <dt><samp class="option">global_palette <var class="var">integer</var></samp></dt>
  4014. <dd><p>Writes a palette to the global GIF header where feasible.
  4015. </p>
  4016. <p>If disabled, every frame will always have a palette written, even if there
  4017. is a global palette supplied.
  4018. </p>
  4019. <p>Default value is <samp class="option">1</samp>.
  4020. </p>
  4021. </dd>
  4022. </dl>
  4023. </div>
  4024. </div>
  4025. <div class="section-level-extent" id="Hap">
  4026. <h3 class="section"><span>9.4 Hap<a class="copiable-link" href="#Hap"> &para;</a></span></h3>
  4027. <p>Vidvox Hap video encoder.
  4028. </p>
  4029. <ul class="mini-toc">
  4030. <li><a href="#Options-24" accesskey="1">Options</a></li>
  4031. </ul>
  4032. <div class="subsection-level-extent" id="Options-24">
  4033. <h4 class="subsection"><span>9.4.1 Options<a class="copiable-link" href="#Options-24"> &para;</a></span></h4>
  4034. <dl class="table">
  4035. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  4036. <dd><p>Specifies the Hap format to encode.
  4037. </p>
  4038. <dl class="table">
  4039. <dt><samp class="option">hap</samp></dt>
  4040. <dt><samp class="option">hap_alpha</samp></dt>
  4041. <dt><samp class="option">hap_q</samp></dt>
  4042. </dl>
  4043. <p>Default value is <samp class="option">hap</samp>.
  4044. </p>
  4045. </dd>
  4046. <dt><samp class="option">chunks <var class="var">integer</var></samp></dt>
  4047. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  4048. permits multithreaded decoding of large frames, potentially at the cost of
  4049. data-rate. The encoder may modify this value to divide frames evenly.
  4050. </p>
  4051. <p>Default value is <var class="var">1</var>.
  4052. </p>
  4053. </dd>
  4054. <dt><samp class="option">compressor <var class="var">integer</var></samp></dt>
  4055. <dd><p>Specifies the second-stage compressor to use. If set to <samp class="option">none</samp>,
  4056. <samp class="option">chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
  4057. benefit.
  4058. </p>
  4059. <dl class="table">
  4060. <dt><samp class="option">none</samp></dt>
  4061. <dt><samp class="option">snappy</samp></dt>
  4062. </dl>
  4063. <p>Default value is <samp class="option">snappy</samp>.
  4064. </p>
  4065. </dd>
  4066. </dl>
  4067. </div>
  4068. </div>
  4069. <div class="section-level-extent" id="jpeg2000">
  4070. <h3 class="section"><span>9.5 jpeg2000<a class="copiable-link" href="#jpeg2000"> &para;</a></span></h3>
  4071. <p>The native jpeg 2000 encoder is lossy by default, the <code class="code">-q:v</code>
  4072. option can be used to set the encoding quality. Lossless encoding
  4073. can be selected with <code class="code">-pred 1</code>.
  4074. </p>
  4075. <ul class="mini-toc">
  4076. <li><a href="#Options-25" accesskey="1">Options</a></li>
  4077. </ul>
  4078. <div class="subsection-level-extent" id="Options-25">
  4079. <h4 class="subsection"><span>9.5.1 Options<a class="copiable-link" href="#Options-25"> &para;</a></span></h4>
  4080. <dl class="table">
  4081. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  4082. <dd><p>Can be set to either <code class="code">j2k</code> or <code class="code">jp2</code> (the default) that
  4083. makes it possible to store non-rgb pix_fmts.
  4084. </p>
  4085. </dd>
  4086. <dt><samp class="option">tile_width <var class="var">integer</var></samp></dt>
  4087. <dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
  4088. </p>
  4089. </dd>
  4090. <dt><samp class="option">tile_height <var class="var">integer</var></samp></dt>
  4091. <dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
  4092. </p>
  4093. </dd>
  4094. <dt><samp class="option">pred <var class="var">integer</var></samp></dt>
  4095. <dd><p>Allows setting the discrete wavelet transform (DWT) type
  4096. </p><dl class="table">
  4097. <dt><samp class="option">dwt97int (Lossy)</samp></dt>
  4098. <dt><samp class="option">dwt53 (Lossless)</samp></dt>
  4099. </dl>
  4100. <p>Default is <code class="code">dwt97int</code>
  4101. </p>
  4102. </dd>
  4103. <dt><samp class="option">sop <var class="var">boolean</var></samp></dt>
  4104. <dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
  4105. </p>
  4106. </dd>
  4107. <dt><samp class="option">eph <var class="var">boolean</var></samp></dt>
  4108. <dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
  4109. </p>
  4110. </dd>
  4111. <dt><samp class="option">prog <var class="var">integer</var></samp></dt>
  4112. <dd><p>Sets the progression order to be used by the encoder.
  4113. Possible values are:
  4114. </p><dl class="table">
  4115. <dt><samp class="option">lrcp</samp></dt>
  4116. <dt><samp class="option">rlcp</samp></dt>
  4117. <dt><samp class="option">rpcl</samp></dt>
  4118. <dt><samp class="option">pcrl</samp></dt>
  4119. <dt><samp class="option">cprl</samp></dt>
  4120. </dl>
  4121. <p>Set to <code class="code">lrcp</code> by default.
  4122. </p>
  4123. </dd>
  4124. <dt><samp class="option">layer_rates <var class="var">string</var></samp></dt>
  4125. <dd><p>By default, when this option is not used, compression is done using the quality metric.
  4126. This option allows for compression using compression ratio. The compression ratio for each
  4127. level could be specified. The compression ratio of a layer <code class="code">l</code> species the what ratio of
  4128. total file size is contained in the first <code class="code">l</code> layers.
  4129. </p>
  4130. <p>Example usage:
  4131. </p>
  4132. <div class="example">
  4133. <pre class="example-preformatted">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates &quot;100,10,1&quot; output.j2k
  4134. </pre></div>
  4135. <p>This would compress the image to contain 3 layers, where the data contained in the
  4136. first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
  4137. and shall contain all data while using all 3 layers.
  4138. </p>
  4139. </dd>
  4140. </dl>
  4141. </div>
  4142. </div>
  4143. <div class="section-level-extent" id="librav1e">
  4144. <h3 class="section"><span>9.6 librav1e<a class="copiable-link" href="#librav1e"> &para;</a></span></h3>
  4145. <p>rav1e AV1 encoder wrapper.
  4146. </p>
  4147. <p>Requires the presence of the rav1e headers and library during configuration.
  4148. You need to explicitly configure the build with <code class="code">--enable-librav1e</code>.
  4149. </p>
  4150. <ul class="mini-toc">
  4151. <li><a href="#Options-26" accesskey="1">Options</a></li>
  4152. </ul>
  4153. <div class="subsection-level-extent" id="Options-26">
  4154. <h4 class="subsection"><span>9.6.1 Options<a class="copiable-link" href="#Options-26"> &para;</a></span></h4>
  4155. <dl class="table">
  4156. <dt><samp class="option">qmax</samp></dt>
  4157. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  4158. </p>
  4159. </dd>
  4160. <dt><samp class="option">qmin</samp></dt>
  4161. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  4162. </p>
  4163. </dd>
  4164. <dt><samp class="option">qp</samp></dt>
  4165. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  4166. </p>
  4167. </dd>
  4168. <dt><samp class="option">speed</samp></dt>
  4169. <dd><p>Selects the speed preset (0-10) to encode with.
  4170. </p>
  4171. </dd>
  4172. <dt><samp class="option">tiles</samp></dt>
  4173. <dd><p>Selects how many tiles to encode with.
  4174. </p>
  4175. </dd>
  4176. <dt><samp class="option">tile-rows</samp></dt>
  4177. <dd><p>Selects how many rows of tiles to encode with.
  4178. </p>
  4179. </dd>
  4180. <dt><samp class="option">tile-columns</samp></dt>
  4181. <dd><p>Selects how many columns of tiles to encode with.
  4182. </p>
  4183. </dd>
  4184. <dt><samp class="option">rav1e-params</samp></dt>
  4185. <dd><p>Set rav1e options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4186. by &quot;:&quot;. See <code class="command">rav1e --help</code> for a list of options.
  4187. </p>
  4188. <p>For example to specify librav1e encoding options with <samp class="option">-rav1e-params</samp>:
  4189. </p>
  4190. <div class="example">
  4191. <pre class="example-preformatted">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  4192. </pre></div>
  4193. </dd>
  4194. </dl>
  4195. </div>
  4196. </div>
  4197. <div class="section-level-extent" id="libaom_002dav1">
  4198. <h3 class="section"><span>9.7 libaom-av1<a class="copiable-link" href="#libaom_002dav1"> &para;</a></span></h3>
  4199. <p>libaom AV1 encoder wrapper.
  4200. </p>
  4201. <p>Requires the presence of the libaom headers and library during
  4202. configuration. You need to explicitly configure the build with
  4203. <code class="code">--enable-libaom</code>.
  4204. </p>
  4205. <ul class="mini-toc">
  4206. <li><a href="#Options-27" accesskey="1">Options</a></li>
  4207. </ul>
  4208. <div class="subsection-level-extent" id="Options-27">
  4209. <h4 class="subsection"><span>9.7.1 Options<a class="copiable-link" href="#Options-27"> &para;</a></span></h4>
  4210. <p>The wrapper supports the following standard libavcodec options:
  4211. </p>
  4212. <dl class="table">
  4213. <dt><samp class="option">b</samp></dt>
  4214. <dd><p>Set bitrate target in bits/second. By default this will use
  4215. variable-bitrate mode. If <samp class="option">maxrate</samp> and <samp class="option">minrate</samp> are
  4216. also set to the same value then it will use constant-bitrate mode,
  4217. otherwise if <samp class="option">crf</samp> is set as well then it will use
  4218. constrained-quality mode.
  4219. </p>
  4220. </dd>
  4221. <dt><samp class="option">g keyint_min</samp></dt>
  4222. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  4223. key frames; if zero the output stream will be intra-only. The minimum
  4224. distance is ignored unless it is the same as the GOP size, in which case
  4225. key frames will always appear at a fixed interval. Not set by default,
  4226. so without this option the library has completely free choice about
  4227. where to place key frames.
  4228. </p>
  4229. </dd>
  4230. <dt><samp class="option">qmin qmax</samp></dt>
  4231. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  4232. (warning: this does not match the quantiser values actually used by AV1
  4233. - divide by four to map real quantiser values to this range). Defaults
  4234. to min/max (no constraint).
  4235. </p>
  4236. </dd>
  4237. <dt><samp class="option">minrate maxrate bufsize rc_init_occupancy</samp></dt>
  4238. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  4239. to unconstrained variable bitrate.
  4240. </p>
  4241. </dd>
  4242. <dt><samp class="option">threads</samp></dt>
  4243. <dd><p>Set the number of threads to use while encoding. This may require the
  4244. <samp class="option">tiles</samp> or <samp class="option">row-mt</samp> options to also be set to actually
  4245. use the specified number of threads fully. Defaults to the number of
  4246. hardware threads supported by the host machine.
  4247. </p>
  4248. </dd>
  4249. <dt><samp class="option">profile</samp></dt>
  4250. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  4251. the bit depth and chroma subsampling of the input.
  4252. </p>
  4253. </dd>
  4254. </dl>
  4255. <p>The wrapper also has some specific options:
  4256. </p>
  4257. <dl class="table">
  4258. <dt><samp class="option">cpu-used</samp></dt>
  4259. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  4260. higher numbers indicating greater speed and lower quality. The default
  4261. value is 1, which will be slow and high quality.
  4262. </p>
  4263. </dd>
  4264. <dt><samp class="option">auto-alt-ref</samp></dt>
  4265. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  4266. default of the library.
  4267. </p>
  4268. </dd>
  4269. <dt><samp class="option">arnr-max-frames (<em class="emph">frames</em>)</samp></dt>
  4270. <dd><p>Set altref noise reduction max frame count. Default is -1.
  4271. </p>
  4272. </dd>
  4273. <dt><samp class="option">arnr-strength (<em class="emph">strength</em>)</samp></dt>
  4274. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  4275. </p>
  4276. </dd>
  4277. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  4278. <dd><p>Set adaptive quantization mode. Possible values:
  4279. </p>
  4280. <dl class="table">
  4281. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4282. <dd><p>Disabled.
  4283. </p>
  4284. </dd>
  4285. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4286. <dd><p>Variance-based.
  4287. </p>
  4288. </dd>
  4289. <dt>&lsquo;<samp class="samp">complexity (<em class="emph">2</em>)</samp>&rsquo;</dt>
  4290. <dd><p>Complexity-based.
  4291. </p>
  4292. </dd>
  4293. <dt>&lsquo;<samp class="samp">cyclic (<em class="emph">3</em>)</samp>&rsquo;</dt>
  4294. <dd><p>Cyclic refresh.
  4295. </p></dd>
  4296. </dl>
  4297. </dd>
  4298. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4299. <dd><p>Set the distortion metric the encoder is tuned with. Default is <code class="code">psnr</code>.
  4300. </p>
  4301. <dl class="table">
  4302. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4303. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4304. </dl>
  4305. </dd>
  4306. <dt><samp class="option">lag-in-frames</samp></dt>
  4307. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  4308. at any one time for lookahead purposes. Defaults to the internal
  4309. default of the library.
  4310. </p>
  4311. </dd>
  4312. <dt><samp class="option">error-resilience</samp></dt>
  4313. <dd><p>Enable error resilience features:
  4314. </p><dl class="table">
  4315. <dt><samp class="option">default</samp></dt>
  4316. <dd><p>Improve resilience against losses of whole frames.
  4317. </p></dd>
  4318. </dl>
  4319. <p>Not enabled by default.
  4320. </p>
  4321. </dd>
  4322. <dt><samp class="option">crf</samp></dt>
  4323. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  4324. and constrained-quality (with maximum bitrate target) modes. Valid
  4325. range is 0 to 63, higher numbers indicating lower quality and smaller
  4326. output size. Only used if set; by default only the bitrate target is
  4327. used.
  4328. </p>
  4329. </dd>
  4330. <dt><samp class="option">static-thresh</samp></dt>
  4331. <dd><p>Set a change threshold on blocks below which they will be skipped by
  4332. the encoder. Defined in arbitrary units as a nonnegative integer,
  4333. defaulting to zero (no blocks are skipped).
  4334. </p>
  4335. </dd>
  4336. <dt><samp class="option">drop-threshold</samp></dt>
  4337. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  4338. Defined as a percentage of the target buffer - when the rate control
  4339. buffer falls below this percentage, frames will be dropped until it
  4340. has refilled above the threshold. Defaults to zero (no frames are
  4341. dropped).
  4342. </p>
  4343. </dd>
  4344. <dt><samp class="option">denoise-noise-level (<em class="emph">level</em>)</samp></dt>
  4345. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  4346. this option is not set or set to 0.
  4347. </p>
  4348. </dd>
  4349. <dt><samp class="option">denoise-block-size (<em class="emph">pixels</em>)</samp></dt>
  4350. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  4351. uses the default value of 32.
  4352. </p>
  4353. </dd>
  4354. <dt><samp class="option">undershoot-pct (<em class="emph">pct</em>)</samp></dt>
  4355. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  4356. Default is -1.
  4357. </p>
  4358. </dd>
  4359. <dt><samp class="option">overshoot-pct (<em class="emph">pct</em>)</samp></dt>
  4360. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  4361. Default is -1.
  4362. </p>
  4363. </dd>
  4364. <dt><samp class="option">minsection-pct (<em class="emph">pct</em>)</samp></dt>
  4365. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  4366. is not set, the libaomenc wrapper computes it as follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4367. Range is -1 to 100. Default is -1 (unset).
  4368. </p>
  4369. </dd>
  4370. <dt><samp class="option">maxsection-pct (<em class="emph">pct</em>)</samp></dt>
  4371. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  4372. is not set, the libaomenc wrapper computes it as follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4373. Range is -1 to 5000. Default is -1 (unset).
  4374. </p>
  4375. </dd>
  4376. <dt><samp class="option">frame-parallel (<em class="emph">boolean</em>)</samp></dt>
  4377. <dd><p>Enable frame parallel decodability features. Default is true.
  4378. </p>
  4379. </dd>
  4380. <dt><samp class="option">tiles</samp></dt>
  4381. <dd><p>Set the number of tiles to encode the input video with, as columns x
  4382. rows. Larger numbers allow greater parallelism in both encoding and
  4383. decoding, but may decrease coding efficiency. Defaults to the minimum
  4384. number of tiles required by the size of the input video (this is 1x1
  4385. (that is, a single tile) for sizes up to and including 4K).
  4386. </p>
  4387. </dd>
  4388. <dt><samp class="option">tile-columns tile-rows</samp></dt>
  4389. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  4390. Provided for compatibility with libvpx/VP9.
  4391. </p>
  4392. </dd>
  4393. <dt><samp class="option">row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp></dt>
  4394. <dd><p>Enable row based multi-threading. Disabled by default.
  4395. </p>
  4396. </dd>
  4397. <dt><samp class="option">enable-cdef (<em class="emph">boolean</em>)</samp></dt>
  4398. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  4399. encoder enables CDEF by default.
  4400. </p>
  4401. </dd>
  4402. <dt><samp class="option">enable-restoration (<em class="emph">boolean</em>)</samp></dt>
  4403. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  4404. </p>
  4405. </dd>
  4406. <dt><samp class="option">enable-global-motion (<em class="emph">boolean</em>)</samp></dt>
  4407. <dd><p>Enable the use of global motion for block prediction. Default is true.
  4408. </p>
  4409. </dd>
  4410. <dt><samp class="option">enable-intrabc (<em class="emph">boolean</em>)</samp></dt>
  4411. <dd><p>Enable block copy mode for intra block prediction. This mode is
  4412. useful for screen content. Default is true.
  4413. </p>
  4414. </dd>
  4415. <dt><samp class="option">enable-rect-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4416. <dd><p>Enable rectangular partitions. Default is true.
  4417. </p>
  4418. </dd>
  4419. <dt><samp class="option">enable-1to4-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4420. <dd><p>Enable 1:4/4:1 partitions. Default is true.
  4421. </p>
  4422. </dd>
  4423. <dt><samp class="option">enable-ab-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4424. <dd><p>Enable AB shape partitions. Default is true.
  4425. </p>
  4426. </dd>
  4427. <dt><samp class="option">enable-angle-delta (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4428. <dd><p>Enable angle delta intra prediction. Default is true.
  4429. </p>
  4430. </dd>
  4431. <dt><samp class="option">enable-cfl-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4432. <dd><p>Enable chroma predicted from luma intra prediction. Default is true.
  4433. </p>
  4434. </dd>
  4435. <dt><samp class="option">enable-filter-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4436. <dd><p>Enable filter intra predictor. Default is true.
  4437. </p>
  4438. </dd>
  4439. <dt><samp class="option">enable-intra-edge-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4440. <dd><p>Enable intra edge filter. Default is true.
  4441. </p>
  4442. </dd>
  4443. <dt><samp class="option">enable-smooth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4444. <dd><p>Enable smooth intra prediction mode. Default is true.
  4445. </p>
  4446. </dd>
  4447. <dt><samp class="option">enable-paeth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4448. <dd><p>Enable paeth predictor in intra prediction. Default is true.
  4449. </p>
  4450. </dd>
  4451. <dt><samp class="option">enable-palette (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4452. <dd><p>Enable palette prediction mode. Default is true.
  4453. </p>
  4454. </dd>
  4455. <dt><samp class="option">enable-flip-idtx (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4456. <dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
  4457. FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
  4458. V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
  4459. </p>
  4460. </dd>
  4461. <dt><samp class="option">enable-tx64 (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4462. <dd><p>Enable 64-pt transform. Default is true.
  4463. </p>
  4464. </dd>
  4465. <dt><samp class="option">reduced-tx-type-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4466. <dd><p>Use reduced set of transform types. Default is false.
  4467. </p>
  4468. </dd>
  4469. <dt><samp class="option">use-intra-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4470. <dd><p>Use DCT only for INTRA modes. Default is false.
  4471. </p>
  4472. </dd>
  4473. <dt><samp class="option">use-inter-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4474. <dd><p>Use DCT only for INTER modes. Default is false.
  4475. </p>
  4476. </dd>
  4477. <dt><samp class="option">use-intra-default-tx-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4478. <dd><p>Use Default-transform only for INTRA modes. Default is false.
  4479. </p>
  4480. </dd>
  4481. <dt><samp class="option">enable-ref-frame-mvs (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4482. <dd><p>Enable temporal mv prediction. Default is true.
  4483. </p>
  4484. </dd>
  4485. <dt><samp class="option">enable-reduced-reference-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4486. <dd><p>Use reduced set of single and compound references. Default is false.
  4487. </p>
  4488. </dd>
  4489. <dt><samp class="option">enable-obmc (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4490. <dd><p>Enable obmc. Default is true.
  4491. </p>
  4492. </dd>
  4493. <dt><samp class="option">enable-dual-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4494. <dd><p>Enable dual filter. Default is true.
  4495. </p>
  4496. </dd>
  4497. <dt><samp class="option">enable-diff-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4498. <dd><p>Enable difference-weighted compound. Default is true.
  4499. </p>
  4500. </dd>
  4501. <dt><samp class="option">enable-dist-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4502. <dd><p>Enable distance-weighted compound. Default is true.
  4503. </p>
  4504. </dd>
  4505. <dt><samp class="option">enable-onesided-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4506. <dd><p>Enable one sided compound. Default is true.
  4507. </p>
  4508. </dd>
  4509. <dt><samp class="option">enable-interinter-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4510. <dd><p>Enable interinter wedge compound. Default is true.
  4511. </p>
  4512. </dd>
  4513. <dt><samp class="option">enable-interintra-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4514. <dd><p>Enable interintra wedge compound. Default is true.
  4515. </p>
  4516. </dd>
  4517. <dt><samp class="option">enable-masked-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4518. <dd><p>Enable masked compound. Default is true.
  4519. </p>
  4520. </dd>
  4521. <dt><samp class="option">enable-interintra-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4522. <dd><p>Enable interintra compound. Default is true.
  4523. </p>
  4524. </dd>
  4525. <dt><samp class="option">enable-smooth-interintra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4526. <dd><p>Enable smooth interintra mode. Default is true.
  4527. </p>
  4528. </dd>
  4529. <dt><samp class="option">aom-params</samp></dt>
  4530. <dd><p>Set libaom options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4531. by &quot;:&quot;. For a list of supported options, see <code class="command">aomenc --help</code> under the
  4532. section &quot;AV1 Specific Options&quot;.
  4533. </p>
  4534. <p>For example to specify libaom encoding options with <samp class="option">-aom-params</samp>:
  4535. </p>
  4536. <div class="example">
  4537. <pre class="example-preformatted">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
  4538. </pre></div>
  4539. </dd>
  4540. </dl>
  4541. </div>
  4542. </div>
  4543. <div class="section-level-extent" id="libsvtav1">
  4544. <h3 class="section"><span>9.8 libsvtav1<a class="copiable-link" href="#libsvtav1"> &para;</a></span></h3>
  4545. <p>SVT-AV1 encoder wrapper.
  4546. </p>
  4547. <p>Requires the presence of the SVT-AV1 headers and library during configuration.
  4548. You need to explicitly configure the build with <code class="code">--enable-libsvtav1</code>.
  4549. </p>
  4550. <ul class="mini-toc">
  4551. <li><a href="#Options-28" accesskey="1">Options</a></li>
  4552. </ul>
  4553. <div class="subsection-level-extent" id="Options-28">
  4554. <h4 class="subsection"><span>9.8.1 Options<a class="copiable-link" href="#Options-28"> &para;</a></span></h4>
  4555. <dl class="table">
  4556. <dt><samp class="option">profile</samp></dt>
  4557. <dd><p>Set the encoding profile.
  4558. </p><dl class="table">
  4559. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4560. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4561. <dt>&lsquo;<samp class="samp">professional</samp>&rsquo;</dt>
  4562. </dl>
  4563. </dd>
  4564. <dt><samp class="option">level</samp></dt>
  4565. <dd><p>Set the operating point level. For example: &rsquo;4.0&rsquo;
  4566. </p>
  4567. </dd>
  4568. <dt><samp class="option">hielevel</samp></dt>
  4569. <dd><p>Set the Hierarchical prediction levels.
  4570. </p><dl class="table">
  4571. <dt>&lsquo;<samp class="samp">3level</samp>&rsquo;</dt>
  4572. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  4573. <dd><p>This is the default.
  4574. </p></dd>
  4575. </dl>
  4576. </dd>
  4577. <dt><samp class="option">tier</samp></dt>
  4578. <dd><p>Set the operating point tier.
  4579. </p><dl class="table">
  4580. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4581. <dd><p>This is the default.
  4582. </p></dd>
  4583. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4584. </dl>
  4585. </dd>
  4586. <dt><samp class="option">qmax</samp></dt>
  4587. <dd><p>Set the maximum quantizer to use when using a bitrate mode.
  4588. </p>
  4589. </dd>
  4590. <dt><samp class="option">qmin</samp></dt>
  4591. <dd><p>Set the minimum quantizer to use when using a bitrate mode.
  4592. </p>
  4593. </dd>
  4594. <dt><samp class="option">crf</samp></dt>
  4595. <dd><p>Constant rate factor value used in crf rate control mode (0-63).
  4596. </p>
  4597. </dd>
  4598. <dt><samp class="option">qp</samp></dt>
  4599. <dd><p>Set the quantizer used in cqp rate control mode (0-63).
  4600. </p>
  4601. </dd>
  4602. <dt><samp class="option">sc_detection</samp></dt>
  4603. <dd><p>Enable scene change detection.
  4604. </p>
  4605. </dd>
  4606. <dt><samp class="option">la_depth</samp></dt>
  4607. <dd><p>Set number of frames to look ahead (0-120).
  4608. </p>
  4609. </dd>
  4610. <dt><samp class="option">preset</samp></dt>
  4611. <dd><p>Set the quality-speed tradeoff, in the range 0 to 13. Higher values are
  4612. faster but lower quality.
  4613. </p>
  4614. </dd>
  4615. <dt><samp class="option">tile_rows</samp></dt>
  4616. <dd><p>Set log2 of the number of rows of tiles to use (0-6).
  4617. </p>
  4618. </dd>
  4619. <dt><samp class="option">tile_columns</samp></dt>
  4620. <dd><p>Set log2 of the number of columns of tiles to use (0-4).
  4621. </p>
  4622. </dd>
  4623. <dt><samp class="option">svtav1-params</samp></dt>
  4624. <dd><p>Set SVT-AV1 options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4625. by &quot;:&quot;. See the SVT-AV1 encoder user guide for a list of accepted parameters.
  4626. </p>
  4627. </dd>
  4628. </dl>
  4629. </div>
  4630. </div>
  4631. <div class="section-level-extent" id="libjxl">
  4632. <h3 class="section"><span>9.9 libjxl<a class="copiable-link" href="#libjxl"> &para;</a></span></h3>
  4633. <p>libjxl JPEG XL encoder wrapper.
  4634. </p>
  4635. <p>Requires the presence of the libjxl headers and library during
  4636. configuration. You need to explicitly configure the build with
  4637. <code class="code">--enable-libjxl</code>.
  4638. </p>
  4639. <ul class="mini-toc">
  4640. <li><a href="#Options-29" accesskey="1">Options</a></li>
  4641. </ul>
  4642. <div class="subsection-level-extent" id="Options-29">
  4643. <h4 class="subsection"><span>9.9.1 Options<a class="copiable-link" href="#Options-29"> &para;</a></span></h4>
  4644. <p>The libjxl wrapper supports the following options:
  4645. </p>
  4646. <dl class="table">
  4647. <dt><samp class="option">distance</samp></dt>
  4648. <dd><p>Set the target Butteraugli distance. This is a quality setting: lower
  4649. distance yields higher quality, with distance=1.0 roughly comparable to
  4650. libjpeg Quality 90 for photographic content. Setting distance=0.0 yields
  4651. true lossless encoding. Valid values range between 0.0 and 15.0, and sane
  4652. values rarely exceed 5.0. Setting distance=0.1 usually attains
  4653. transparency for most input. The default is 1.0.
  4654. </p>
  4655. </dd>
  4656. <dt><samp class="option">effort</samp></dt>
  4657. <dd><p>Set the encoding effort used. Higher effort values produce more consistent
  4658. quality and usually produces a better quality/bpp curve, at the cost of
  4659. more CPU time required. Valid values range from 1 to 9, and the default is 7.
  4660. </p>
  4661. </dd>
  4662. <dt><samp class="option">modular</samp></dt>
  4663. <dd><p>Force the encoder to use Modular mode instead of choosing automatically. The
  4664. default is to use VarDCT for lossy encoding and Modular for lossless. VarDCT
  4665. is generally superior to Modular for lossy encoding but does not support
  4666. lossless encoding.
  4667. </p>
  4668. </dd>
  4669. </dl>
  4670. </div>
  4671. </div>
  4672. <div class="section-level-extent" id="libkvazaar">
  4673. <h3 class="section"><span>9.10 libkvazaar<a class="copiable-link" href="#libkvazaar"> &para;</a></span></h3>
  4674. <p>Kvazaar H.265/HEVC encoder.
  4675. </p>
  4676. <p>Requires the presence of the libkvazaar headers and library during
  4677. configuration. You need to explicitly configure the build with
  4678. <samp class="option">--enable-libkvazaar</samp>.
  4679. </p>
  4680. <ul class="mini-toc">
  4681. <li><a href="#Options-30" accesskey="1">Options</a></li>
  4682. </ul>
  4683. <div class="subsection-level-extent" id="Options-30">
  4684. <h4 class="subsection"><span>9.10.1 Options<a class="copiable-link" href="#Options-30"> &para;</a></span></h4>
  4685. <dl class="table">
  4686. <dt><samp class="option">b</samp></dt>
  4687. <dd><p>Set target video bitrate in bit/s and enable rate control.
  4688. </p>
  4689. </dd>
  4690. <dt><samp class="option">kvazaar-params</samp></dt>
  4691. <dd><p>Set kvazaar parameters as a list of <var class="var">name</var>=<var class="var">value</var> pairs separated
  4692. by commas (,). See kvazaar documentation for a list of options.
  4693. </p>
  4694. </dd>
  4695. </dl>
  4696. </div>
  4697. </div>
  4698. <div class="section-level-extent" id="libopenh264">
  4699. <h3 class="section"><span>9.11 libopenh264<a class="copiable-link" href="#libopenh264"> &para;</a></span></h3>
  4700. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  4701. </p>
  4702. <p>This encoder requires the presence of the libopenh264 headers and
  4703. library during configuration. You need to explicitly configure the
  4704. build with <code class="code">--enable-libopenh264</code>. The library is detected using
  4705. <code class="command">pkg-config</code>.
  4706. </p>
  4707. <p>For more information about the library see
  4708. <a class="url" href="http://www.openh264.org">http://www.openh264.org</a>.
  4709. </p>
  4710. <ul class="mini-toc">
  4711. <li><a href="#Options-31" accesskey="1">Options</a></li>
  4712. </ul>
  4713. <div class="subsection-level-extent" id="Options-31">
  4714. <h4 class="subsection"><span>9.11.1 Options<a class="copiable-link" href="#Options-31"> &para;</a></span></h4>
  4715. <p>The following FFmpeg global options affect the configurations of the
  4716. libopenh264 encoder.
  4717. </p>
  4718. <dl class="table">
  4719. <dt><samp class="option">b</samp></dt>
  4720. <dd><p>Set the bitrate (as a number of bits per second).
  4721. </p>
  4722. </dd>
  4723. <dt><samp class="option">g</samp></dt>
  4724. <dd><p>Set the GOP size.
  4725. </p>
  4726. </dd>
  4727. <dt><samp class="option">maxrate</samp></dt>
  4728. <dd><p>Set the max bitrate (as a number of bits per second).
  4729. </p>
  4730. </dd>
  4731. <dt><samp class="option">flags +global_header</samp></dt>
  4732. <dd><p>Set global header in the bitstream.
  4733. </p>
  4734. </dd>
  4735. <dt><samp class="option">slices</samp></dt>
  4736. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  4737. is 0. This is only used when <samp class="option">slice_mode</samp> is set to
  4738. &lsquo;<samp class="samp">fixed</samp>&rsquo;.
  4739. </p>
  4740. </dd>
  4741. <dt><samp class="option">loopfilter</samp></dt>
  4742. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4743. set a value of 0.
  4744. </p>
  4745. </dd>
  4746. <dt><samp class="option">profile</samp></dt>
  4747. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp class="samp">main</samp>&rsquo; enable
  4748. CABAC (set the <code class="code">SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4749. </p>
  4750. </dd>
  4751. <dt><samp class="option">max_nal_size</samp></dt>
  4752. <dd><p>Set maximum NAL size in bytes.
  4753. </p>
  4754. </dd>
  4755. <dt><samp class="option">allow_skip_frames</samp></dt>
  4756. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4757. </p></dd>
  4758. </dl>
  4759. </div>
  4760. </div>
  4761. <div class="section-level-extent" id="libtheora">
  4762. <h3 class="section"><span>9.12 libtheora<a class="copiable-link" href="#libtheora"> &para;</a></span></h3>
  4763. <p>libtheora Theora encoder wrapper.
  4764. </p>
  4765. <p>Requires the presence of the libtheora headers and library during
  4766. configuration. You need to explicitly configure the build with
  4767. <code class="code">--enable-libtheora</code>.
  4768. </p>
  4769. <p>For more information about the libtheora project see
  4770. <a class="url" href="http://www.theora.org/">http://www.theora.org/</a>.
  4771. </p>
  4772. <ul class="mini-toc">
  4773. <li><a href="#Options-32" accesskey="1">Options</a></li>
  4774. <li><a href="#Examples-1" accesskey="2">Examples</a></li>
  4775. </ul>
  4776. <div class="subsection-level-extent" id="Options-32">
  4777. <h4 class="subsection"><span>9.12.1 Options<a class="copiable-link" href="#Options-32"> &para;</a></span></h4>
  4778. <p>The following global options are mapped to internal libtheora options
  4779. which affect the quality and the bitrate of the encoded stream.
  4780. </p>
  4781. <dl class="table">
  4782. <dt><samp class="option">b</samp></dt>
  4783. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4784. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4785. </p>
  4786. </dd>
  4787. <dt><samp class="option">flags</samp></dt>
  4788. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4789. <samp class="option">qscale</samp> flag, and to enable the <code class="code">pass1</code> and <code class="code">pass2</code>
  4790. modes.
  4791. </p>
  4792. </dd>
  4793. <dt><samp class="option">g</samp></dt>
  4794. <dd><p>Set the GOP size.
  4795. </p>
  4796. </dd>
  4797. <dt><samp class="option">global_quality</samp></dt>
  4798. <dd><p>Set the global quality as an integer in lambda units.
  4799. </p>
  4800. <p>Only relevant when VBR mode is enabled with <code class="code">flags +qscale</code>. The
  4801. value is converted to QP units by dividing it by <code class="code">FF_QP2LAMBDA</code>,
  4802. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4803. value in the native libtheora range [0-63]. A higher value corresponds
  4804. to a higher quality.
  4805. </p>
  4806. </dd>
  4807. <dt><samp class="option">q</samp></dt>
  4808. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4809. quality value as a double floating point value in QP units.
  4810. </p>
  4811. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4812. to get a value in the native libtheora range [0-63].
  4813. </p>
  4814. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line
  4815. tool. For library interface users, use <samp class="option">global_quality</samp>.
  4816. </p></dd>
  4817. </dl>
  4818. </div>
  4819. <div class="subsection-level-extent" id="Examples-1">
  4820. <h4 class="subsection"><span>9.12.2 Examples<a class="copiable-link" href="#Examples-1"> &para;</a></span></h4>
  4821. <ul class="itemize mark-bullet">
  4822. <li>Set maximum constant quality (VBR) encoding with <code class="command">ffmpeg</code>:
  4823. <div class="example">
  4824. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4825. </pre></div>
  4826. </li><li>Use <code class="command">ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4827. <div class="example">
  4828. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4829. </pre></div>
  4830. </li></ul>
  4831. </div>
  4832. </div>
  4833. <div class="section-level-extent" id="libvpx">
  4834. <h3 class="section"><span>9.13 libvpx<a class="copiable-link" href="#libvpx"> &para;</a></span></h3>
  4835. <p>VP8/VP9 format supported through libvpx.
  4836. </p>
  4837. <p>Requires the presence of the libvpx headers and library during configuration.
  4838. You need to explicitly configure the build with <code class="code">--enable-libvpx</code>.
  4839. </p>
  4840. <ul class="mini-toc">
  4841. <li><a href="#Options-33" accesskey="1">Options</a></li>
  4842. </ul>
  4843. <div class="subsection-level-extent" id="Options-33">
  4844. <h4 class="subsection"><span>9.13.1 Options<a class="copiable-link" href="#Options-33"> &para;</a></span></h4>
  4845. <p>The following options are supported by the libvpx wrapper. The
  4846. <code class="command">vpxenc</code>-equivalent options or values are listed in parentheses
  4847. for easy migration.
  4848. </p>
  4849. <p>To reduce the duplication of documentation, only the private options
  4850. and some others requiring special attention are documented here. For
  4851. the documentation of the undocumented generic options, see
  4852. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  4853. </p>
  4854. <p>To get more documentation of the libvpx options, invoke the command
  4855. <code class="command">ffmpeg -h encoder=libvpx</code>, <code class="command">ffmpeg -h encoder=libvpx-vp9</code> or
  4856. <code class="command">vpxenc --help</code>. Further information is available in the libvpx API
  4857. documentation.
  4858. </p>
  4859. <dl class="table">
  4860. <dt><samp class="option">b (<em class="emph">target-bitrate</em>)</samp></dt>
  4861. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  4862. expressed in bits/s, while <code class="command">vpxenc</code>&rsquo;s <samp class="option">target-bitrate</samp> is in
  4863. kilobits/s.
  4864. </p>
  4865. </dd>
  4866. <dt><samp class="option">g (<em class="emph">kf-max-dist</em>)</samp></dt>
  4867. <dt><samp class="option">keyint_min (<em class="emph">kf-min-dist</em>)</samp></dt>
  4868. <dt><samp class="option">qmin (<em class="emph">min-q</em>)</samp></dt>
  4869. <dd><p>Minimum (Best Quality) Quantizer.
  4870. </p>
  4871. </dd>
  4872. <dt><samp class="option">qmax (<em class="emph">max-q</em>)</samp></dt>
  4873. <dd><p>Maximum (Worst Quality) Quantizer.
  4874. Can be changed per-frame.
  4875. </p>
  4876. </dd>
  4877. <dt><samp class="option">bufsize (<em class="emph">buf-sz</em>, <em class="emph">buf-optimal-sz</em>)</samp></dt>
  4878. <dd><p>Set ratecontrol buffer size (in bits). Note <code class="command">vpxenc</code>&rsquo;s options are
  4879. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4880. <code class="code">buf-sz = bufsize * 1000 / bitrate</code>,
  4881. <code class="code">buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4882. </p>
  4883. </dd>
  4884. <dt><samp class="option">rc_init_occupancy (<em class="emph">buf-initial-sz</em>)</samp></dt>
  4885. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4886. starts. Note <code class="command">vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4887. wrapper converts this value as follows:
  4888. <code class="code">rc_init_occupancy * 1000 / bitrate</code>.
  4889. </p>
  4890. </dd>
  4891. <dt><samp class="option">undershoot-pct</samp></dt>
  4892. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4893. </p>
  4894. </dd>
  4895. <dt><samp class="option">overshoot-pct</samp></dt>
  4896. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4897. </p>
  4898. </dd>
  4899. <dt><samp class="option">skip_threshold (<em class="emph">drop-frame</em>)</samp></dt>
  4900. <dt><samp class="option">qcomp (<em class="emph">bias-pct</em>)</samp></dt>
  4901. <dt><samp class="option">maxrate (<em class="emph">maxsection-pct</em>)</samp></dt>
  4902. <dd><p>Set GOP max bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4903. percentage of the target bitrate, the libvpx wrapper converts this value as
  4904. follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4905. </p>
  4906. </dd>
  4907. <dt><samp class="option">minrate (<em class="emph">minsection-pct</em>)</samp></dt>
  4908. <dd><p>Set GOP min bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4909. percentage of the target bitrate, the libvpx wrapper converts this value as
  4910. follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4911. </p>
  4912. </dd>
  4913. <dt><samp class="option">minrate, maxrate, b <em class="emph">end-usage=cbr</em></samp></dt>
  4914. <dd><p><code class="code">(minrate == maxrate == bitrate)</code>.
  4915. </p>
  4916. </dd>
  4917. <dt><samp class="option">crf (<em class="emph">end-usage=cq</em>, <em class="emph">cq-level</em>)</samp></dt>
  4918. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4919. <dd><dl class="table">
  4920. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">psnr</em>)</samp>&rsquo;</dt>
  4921. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">ssim</em>)</samp>&rsquo;</dt>
  4922. </dl>
  4923. </dd>
  4924. <dt><samp class="option">quality, deadline (<em class="emph">deadline</em>)</samp></dt>
  4925. <dd><dl class="table">
  4926. <dt>&lsquo;<samp class="samp">best</samp>&rsquo;</dt>
  4927. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4928. avoided as it may give worse quality output than good.
  4929. </p></dd>
  4930. <dt>&lsquo;<samp class="samp">good</samp>&rsquo;</dt>
  4931. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4932. when used with the <samp class="option">cpu-used</samp> option.
  4933. </p></dd>
  4934. <dt>&lsquo;<samp class="samp">realtime</samp>&rsquo;</dt>
  4935. <dd><p>Use realtime quality deadline.
  4936. </p></dd>
  4937. </dl>
  4938. </dd>
  4939. <dt><samp class="option">speed, cpu-used (<em class="emph">cpu-used</em>)</samp></dt>
  4940. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4941. of quality.
  4942. </p>
  4943. </dd>
  4944. <dt><samp class="option">nr (<em class="emph">noise-sensitivity</em>)</samp></dt>
  4945. <dt><samp class="option">static-thresh</samp></dt>
  4946. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4947. encoder.
  4948. </p>
  4949. </dd>
  4950. <dt><samp class="option">slices (<em class="emph">token-parts</em>)</samp></dt>
  4951. <dd><p>Note that FFmpeg&rsquo;s <samp class="option">slices</samp> option gives the total number of partitions,
  4952. while <code class="command">vpxenc</code>&rsquo;s <samp class="option">token-parts</samp> is given as
  4953. <code class="code">log2(partitions)</code>.
  4954. </p>
  4955. </dd>
  4956. <dt><samp class="option">max-intra-rate</samp></dt>
  4957. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4958. means unlimited.
  4959. </p>
  4960. </dd>
  4961. <dt><samp class="option">force_key_frames</samp></dt>
  4962. <dd><p><code class="code">VPX_EFLAG_FORCE_KF</code>
  4963. </p>
  4964. </dd>
  4965. <dt><samp class="option">Alternate reference frame related</samp></dt>
  4966. <dd><dl class="table">
  4967. <dt><samp class="option">auto-alt-ref</samp></dt>
  4968. <dd><p>Enable use of alternate reference frames (2-pass only).
  4969. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4970. </p></dd>
  4971. <dt><samp class="option">arnr-maxframes</samp></dt>
  4972. <dd><p>Set altref noise reduction max frame count.
  4973. </p></dd>
  4974. <dt><samp class="option">arnr-type</samp></dt>
  4975. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4976. </p></dd>
  4977. <dt><samp class="option">arnr-strength</samp></dt>
  4978. <dd><p>Set altref noise reduction filter strength.
  4979. </p></dd>
  4980. <dt><samp class="option">rc-lookahead, lag-in-frames (<em class="emph">lag-in-frames</em>)</samp></dt>
  4981. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4982. </p></dd>
  4983. <dt><samp class="option">min-gf-interval</samp></dt>
  4984. <dd><p>Set minimum golden/alternate reference frame interval (VP9 only).
  4985. </p></dd>
  4986. </dl>
  4987. </dd>
  4988. <dt><samp class="option">error-resilient</samp></dt>
  4989. <dd><p>Enable error resiliency features.
  4990. </p>
  4991. </dd>
  4992. <dt><samp class="option">sharpness <var class="var">integer</var></samp></dt>
  4993. <dd><p>Increase sharpness at the expense of lower PSNR.
  4994. The valid range is [0, 7].
  4995. </p>
  4996. </dd>
  4997. <dt><samp class="option">ts-parameters</samp></dt>
  4998. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  4999. key=value pairs. For example, to specify temporal scalability parameters
  5000. with <code class="code">ffmpeg</code>:
  5001. </p><div class="example">
  5002. <pre class="example-preformatted">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  5003. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  5004. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  5005. </pre></div>
  5006. <p>Below is a brief explanation of each of the parameters, please
  5007. refer to <code class="code">struct vpx_codec_enc_cfg</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  5008. details.
  5009. </p><dl class="table">
  5010. <dt><samp class="option">ts_number_layers</samp></dt>
  5011. <dd><p>Number of temporal coding layers.
  5012. </p></dd>
  5013. <dt><samp class="option">ts_target_bitrate</samp></dt>
  5014. <dd><p>Target bitrate for each temporal layer (in kbps).
  5015. (bitrate should be inclusive of the lower temporal layer).
  5016. </p></dd>
  5017. <dt><samp class="option">ts_rate_decimator</samp></dt>
  5018. <dd><p>Frame rate decimation factor for each temporal layer.
  5019. </p></dd>
  5020. <dt><samp class="option">ts_periodicity</samp></dt>
  5021. <dd><p>Length of the sequence defining frame temporal layer membership.
  5022. </p></dd>
  5023. <dt><samp class="option">ts_layer_id</samp></dt>
  5024. <dd><p>Template defining the membership of frames to temporal layers.
  5025. </p></dd>
  5026. <dt><samp class="option">ts_layering_mode</samp></dt>
  5027. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  5028. Currently supports the following options.
  5029. </p><dl class="table">
  5030. <dt><samp class="option">0</samp></dt>
  5031. <dd><p>No temporal layering flags are provided internally,
  5032. relies on flags being passed in using <code class="code">metadata</code> field in <code class="code">AVFrame</code>
  5033. with following keys.
  5034. </p><dl class="table">
  5035. <dt><samp class="option">vp8-flags</samp></dt>
  5036. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  5037. the current frame.
  5038. Refer to function <code class="code">vpx_codec_encode</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  5039. details.
  5040. </p></dd>
  5041. <dt><samp class="option">temporal_id</samp></dt>
  5042. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  5043. </p></dd>
  5044. </dl>
  5045. </dd>
  5046. <dt><samp class="option">2</samp></dt>
  5047. <dd><p>Two temporal layers. 0-1...
  5048. </p></dd>
  5049. <dt><samp class="option">3</samp></dt>
  5050. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  5051. </p></dd>
  5052. <dt><samp class="option">4</samp></dt>
  5053. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  5054. the two temporal layer 2 frames within the temporal period.
  5055. </p></dd>
  5056. </dl>
  5057. </dd>
  5058. </dl>
  5059. </dd>
  5060. <dt><samp class="option">VP8-specific options</samp></dt>
  5061. <dd><dl class="table">
  5062. <dt><samp class="option">screen-content-mode</samp></dt>
  5063. <dd><p>Screen content mode, one of: 0 (off), 1 (screen), 2 (screen with more aggressive rate control).
  5064. </p></dd>
  5065. </dl>
  5066. </dd>
  5067. <dt><samp class="option">VP9-specific options</samp></dt>
  5068. <dd><dl class="table">
  5069. <dt><samp class="option">lossless</samp></dt>
  5070. <dd><p>Enable lossless mode.
  5071. </p></dd>
  5072. <dt><samp class="option">tile-columns</samp></dt>
  5073. <dd><p>Set number of tile columns to use. Note this is given as
  5074. <code class="code">log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  5075. setting the <samp class="option">tile-columns</samp> option to 3.
  5076. </p></dd>
  5077. <dt><samp class="option">tile-rows</samp></dt>
  5078. <dd><p>Set number of tile rows to use. Note this is given as <code class="code">log2(tile_rows)</code>.
  5079. For example, 4 tile rows would be requested by setting the <samp class="option">tile-rows</samp>
  5080. option to 2.
  5081. </p></dd>
  5082. <dt><samp class="option">frame-parallel</samp></dt>
  5083. <dd><p>Enable frame parallel decodability features.
  5084. </p></dd>
  5085. <dt><samp class="option">aq-mode</samp></dt>
  5086. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  5087. cyclic refresh, 4: equator360).
  5088. </p></dd>
  5089. <dt><samp class="option">colorspace <em class="emph">color-space</em></samp></dt>
  5090. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  5091. colorspaces:
  5092. </p><dl class="table">
  5093. <dt><samp class="option">&lsquo;<samp class="samp">rgb</samp>&rsquo; <em class="emph">sRGB</em></samp></dt>
  5094. <dt><samp class="option">&lsquo;<samp class="samp">bt709</samp>&rsquo; <em class="emph">bt709</em></samp></dt>
  5095. <dt><samp class="option">&lsquo;<samp class="samp">unspecified</samp>&rsquo; <em class="emph">unknown</em></samp></dt>
  5096. <dt><samp class="option">&lsquo;<samp class="samp">bt470bg</samp>&rsquo; <em class="emph">bt601</em></samp></dt>
  5097. <dt><samp class="option">&lsquo;<samp class="samp">smpte170m</samp>&rsquo; <em class="emph">smpte170</em></samp></dt>
  5098. <dt><samp class="option">&lsquo;<samp class="samp">smpte240m</samp>&rsquo; <em class="emph">smpte240</em></samp></dt>
  5099. <dt><samp class="option">&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo; <em class="emph">bt2020</em></samp></dt>
  5100. </dl>
  5101. </dd>
  5102. <dt><samp class="option">row-mt <var class="var">boolean</var></samp></dt>
  5103. <dd><p>Enable row based multi-threading.
  5104. </p></dd>
  5105. <dt><samp class="option">tune-content</samp></dt>
  5106. <dd><p>Set content type: default (0), screen (1), film (2).
  5107. </p></dd>
  5108. <dt><samp class="option">corpus-complexity</samp></dt>
  5109. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  5110. midpoint is passed in rather than calculated for a specific clip or chunk.
  5111. </p>
  5112. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  5113. </p></dd>
  5114. <dt><samp class="option">enable-tpl <var class="var">boolean</var></samp></dt>
  5115. <dd><p>Enable temporal dependency model.
  5116. </p></dd>
  5117. <dt><samp class="option">ref-frame-config</samp></dt>
  5118. <dd><p>Using per-frame metadata, set members of the structure <code class="code">vpx_svc_ref_frame_config_t</code> in <code class="code">vpx/vp8cx.h</code> to fine-control referencing schemes and frame buffer management.
  5119. <br>Use a :-separated list of key=value pairs.
  5120. For example,
  5121. </p><div class="example">
  5122. <pre class="example-preformatted">av_dict_set(&amp;av_frame-&gt;metadata, &quot;ref-frame-config&quot;, \
  5123. &quot;rfc_update_buffer_slot=7:rfc_lst_fb_idx=0:rfc_gld_fb_idx=1:rfc_alt_fb_idx=2:rfc_reference_last=0:rfc_reference_golden=0:rfc_reference_alt_ref=0&quot;);
  5124. </pre></div>
  5125. <dl class="table">
  5126. <dt><samp class="option">rfc_update_buffer_slot</samp></dt>
  5127. <dd><p>Indicates the buffer slot number to update
  5128. </p></dd>
  5129. <dt><samp class="option">rfc_update_last</samp></dt>
  5130. <dd><p>Indicates whether to update the LAST frame
  5131. </p></dd>
  5132. <dt><samp class="option">rfc_update_golden</samp></dt>
  5133. <dd><p>Indicates whether to update GOLDEN frame
  5134. </p></dd>
  5135. <dt><samp class="option">rfc_update_alt_ref</samp></dt>
  5136. <dd><p>Indicates whether to update ALT_REF frame
  5137. </p></dd>
  5138. <dt><samp class="option">rfc_lst_fb_idx</samp></dt>
  5139. <dd><p>LAST frame buffer index
  5140. </p></dd>
  5141. <dt><samp class="option">rfc_gld_fb_idx</samp></dt>
  5142. <dd><p>GOLDEN frame buffer index
  5143. </p></dd>
  5144. <dt><samp class="option">rfc_alt_fb_idx</samp></dt>
  5145. <dd><p>ALT_REF frame buffer index
  5146. </p></dd>
  5147. <dt><samp class="option">rfc_reference_last</samp></dt>
  5148. <dd><p>Indicates whether to reference LAST frame
  5149. </p></dd>
  5150. <dt><samp class="option">rfc_reference_golden</samp></dt>
  5151. <dd><p>Indicates whether to reference GOLDEN frame
  5152. </p></dd>
  5153. <dt><samp class="option">rfc_reference_alt_ref</samp></dt>
  5154. <dd><p>Indicates whether to reference ALT_REF frame
  5155. </p></dd>
  5156. <dt><samp class="option">rfc_reference_duration</samp></dt>
  5157. <dd><p>Indicates frame duration
  5158. </p></dd>
  5159. </dl>
  5160. </dd>
  5161. </dl>
  5162. </dd>
  5163. </dl>
  5164. <p>For more information about libvpx see:
  5165. <a class="url" href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  5166. </p>
  5167. </div>
  5168. </div>
  5169. <div class="section-level-extent" id="libwebp">
  5170. <h3 class="section"><span>9.14 libwebp<a class="copiable-link" href="#libwebp"> &para;</a></span></h3>
  5171. <p>libwebp WebP Image encoder wrapper
  5172. </p>
  5173. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  5174. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  5175. frame. Lossless images are a separate codec developed by Google.
  5176. </p>
  5177. <ul class="mini-toc">
  5178. <li><a href="#Pixel-Format" accesskey="1">Pixel Format</a></li>
  5179. <li><a href="#Options-34" accesskey="2">Options</a></li>
  5180. </ul>
  5181. <div class="subsection-level-extent" id="Pixel-Format">
  5182. <h4 class="subsection"><span>9.14.1 Pixel Format<a class="copiable-link" href="#Pixel-Format"> &para;</a></span></h4>
  5183. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  5184. to limitations of the format and libwebp. Alpha is supported for either mode.
  5185. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  5186. passed in for encoding lossless, the pixel format will automatically be
  5187. converted using functions from libwebp. This is not ideal and is done only for
  5188. convenience.
  5189. </p>
  5190. </div>
  5191. <div class="subsection-level-extent" id="Options-34">
  5192. <h4 class="subsection"><span>9.14.2 Options<a class="copiable-link" href="#Options-34"> &para;</a></span></h4>
  5193. <dl class="table">
  5194. <dt><samp class="option">-lossless <var class="var">boolean</var></samp></dt>
  5195. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  5196. </p>
  5197. </dd>
  5198. <dt><samp class="option">-compression_level <var class="var">integer</var></samp></dt>
  5199. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  5200. for a given size at the cost of increased encoding time. For lossless, this is
  5201. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  5202. encoding time. More specifically, it controls the number of extra algorithms
  5203. and compression tools used, and varies the combination of these tools. This
  5204. maps to the <var class="var">method</var> option in libwebp. The valid range is 0 to 6.
  5205. Default is 4.
  5206. </p>
  5207. </dd>
  5208. <dt><samp class="option">-quality <var class="var">float</var></samp></dt>
  5209. <dd><p>For lossy encoding, this controls image quality. For lossless encoding, this
  5210. controls the effort and time spent in compression.
  5211. Range is 0 to 100. Default is 75.
  5212. </p>
  5213. </dd>
  5214. <dt><samp class="option">-preset <var class="var">type</var></samp></dt>
  5215. <dd><p>Configuration preset. This does some automatic settings based on the general
  5216. type of the image.
  5217. </p><dl class="table">
  5218. <dt><samp class="option">none</samp></dt>
  5219. <dd><p>Do not use a preset.
  5220. </p></dd>
  5221. <dt><samp class="option">default</samp></dt>
  5222. <dd><p>Use the encoder default.
  5223. </p></dd>
  5224. <dt><samp class="option">picture</samp></dt>
  5225. <dd><p>Digital picture, like portrait, inner shot
  5226. </p></dd>
  5227. <dt><samp class="option">photo</samp></dt>
  5228. <dd><p>Outdoor photograph, with natural lighting
  5229. </p></dd>
  5230. <dt><samp class="option">drawing</samp></dt>
  5231. <dd><p>Hand or line drawing, with high-contrast details
  5232. </p></dd>
  5233. <dt><samp class="option">icon</samp></dt>
  5234. <dd><p>Small-sized colorful images
  5235. </p></dd>
  5236. <dt><samp class="option">text</samp></dt>
  5237. <dd><p>Text-like
  5238. </p></dd>
  5239. </dl>
  5240. </dd>
  5241. </dl>
  5242. </div>
  5243. </div>
  5244. <div class="section-level-extent" id="libx264_002c-libx264rgb">
  5245. <h3 class="section"><span>9.15 libx264, libx264rgb<a class="copiable-link" href="#libx264_002c-libx264rgb"> &para;</a></span></h3>
  5246. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  5247. </p>
  5248. <p>This encoder requires the presence of the libx264 headers and library
  5249. during configuration. You need to explicitly configure the build with
  5250. <code class="code">--enable-libx264</code>.
  5251. </p>
  5252. <p>libx264 supports an impressive number of features, including 8x8 and
  5253. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  5254. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  5255. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  5256. </p>
  5257. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  5258. options, while unique encoder options are provided through private
  5259. options. Additionally the <samp class="option">x264opts</samp> and <samp class="option">x264-params</samp>
  5260. private options allows one to pass a list of key=value tuples as accepted
  5261. by the libx264 <code class="code">x264_param_parse</code> function.
  5262. </p>
  5263. <p>The x264 project website is at
  5264. <a class="url" href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  5265. </p>
  5266. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  5267. pixel formats as input instead of YUV.
  5268. </p>
  5269. <ul class="mini-toc">
  5270. <li><a href="#Supported-Pixel-Formats" accesskey="1">Supported Pixel Formats</a></li>
  5271. <li><a href="#Options-35" accesskey="2">Options</a></li>
  5272. </ul>
  5273. <div class="subsection-level-extent" id="Supported-Pixel-Formats">
  5274. <h4 class="subsection"><span>9.15.1 Supported Pixel Formats<a class="copiable-link" href="#Supported-Pixel-Formats"> &para;</a></span></h4>
  5275. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  5276. x264&rsquo;s configure time.
  5277. </p>
  5278. </div>
  5279. <div class="subsection-level-extent" id="Options-35">
  5280. <h4 class="subsection"><span>9.15.2 Options<a class="copiable-link" href="#Options-35"> &para;</a></span></h4>
  5281. <p>The following options are supported by the libx264 wrapper. The
  5282. <code class="command">x264</code>-equivalent options or values are listed in parentheses
  5283. for easy migration.
  5284. </p>
  5285. <p>To reduce the duplication of documentation, only the private options
  5286. and some others requiring special attention are documented here. For
  5287. the documentation of the undocumented generic options, see
  5288. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5289. </p>
  5290. <p>To get a more accurate and extensive documentation of the libx264
  5291. options, invoke the command <code class="command">x264 --fullhelp</code> or consult
  5292. the libx264 documentation.
  5293. </p>
  5294. <p>In the list below, note that the <code class="command">x264</code> option name is shown
  5295. in parentheses after the libavcodec corresponding name, in case there
  5296. is a direct mapping.
  5297. </p>
  5298. <dl class="table">
  5299. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5300. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  5301. expressed in bits/s, while <code class="command">x264</code>&rsquo;s <samp class="option">bitrate</samp> is in
  5302. kilobits/s.
  5303. </p>
  5304. </dd>
  5305. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5306. <dd><p>Number of B-frames between I and P-frames
  5307. </p>
  5308. </dd>
  5309. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5310. <dd><p>Maximum GOP size
  5311. </p>
  5312. </dd>
  5313. <dt><samp class="option">qmin (<em class="emph">qpmin</em>)</samp></dt>
  5314. <dd><p>Minimum quantizer scale
  5315. </p>
  5316. </dd>
  5317. <dt><samp class="option">qmax (<em class="emph">qpmax</em>)</samp></dt>
  5318. <dd><p>Maximum quantizer scale
  5319. </p>
  5320. </dd>
  5321. <dt><samp class="option">qdiff (<em class="emph">qpstep</em>)</samp></dt>
  5322. <dd><p>Maximum difference between quantizer scales
  5323. </p>
  5324. </dd>
  5325. <dt><samp class="option">qblur (<em class="emph">qblur</em>)</samp></dt>
  5326. <dd><p>Quantizer curve blur
  5327. </p>
  5328. </dd>
  5329. <dt><samp class="option">qcomp (<em class="emph">qcomp</em>)</samp></dt>
  5330. <dd><p>Quantizer curve compression factor
  5331. </p>
  5332. </dd>
  5333. <dt><samp class="option">refs (<em class="emph">ref</em>)</samp></dt>
  5334. <dd><p>Number of reference frames each P-frame can use. The range is <var class="var">0-16</var>.
  5335. </p>
  5336. </dd>
  5337. <dt><samp class="option">level (<em class="emph">level</em>)</samp></dt>
  5338. <dd><p>Set the <code class="code">x264_param_t.i_level_idc</code> value in case the value is
  5339. positive, it is ignored otherwise.
  5340. </p>
  5341. <p>This value can be set using the <code class="code">AVCodecContext</code> API (e.g. by
  5342. setting the <code class="code">AVCodecContext</code> value directly), and is specified as
  5343. an integer mapped on a corresponding level (e.g. the value 31 maps
  5344. to H.264 level IDC &quot;3.1&quot;, as defined in the <code class="code">x264_levels</code>
  5345. table). It is ignored when set to a non positive value.
  5346. </p>
  5347. <p>Alternatively it can be set as a private option, overriding the value
  5348. set in <code class="code">AVCodecContext</code>, and in this case must be specified as
  5349. the level IDC identifier (e.g. &quot;3.1&quot;), as defined by H.264 Annex A.
  5350. </p>
  5351. </dd>
  5352. <dt><samp class="option">sc_threshold (<em class="emph">scenecut</em>)</samp></dt>
  5353. <dd><p>Sets the threshold for the scene change detection.
  5354. </p>
  5355. </dd>
  5356. <dt><samp class="option">trellis (<em class="emph">trellis</em>)</samp></dt>
  5357. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  5358. </p>
  5359. </dd>
  5360. <dt><samp class="option">nr (<em class="emph">nr</em>)</samp></dt>
  5361. <dd><p>Noise reduction
  5362. </p>
  5363. </dd>
  5364. <dt><samp class="option">me_range (<em class="emph">merange</em>)</samp></dt>
  5365. <dd><p>Maximum range of the motion search in pixels.
  5366. </p>
  5367. </dd>
  5368. <dt><samp class="option">me_method (<em class="emph">me</em>)</samp></dt>
  5369. <dd><p>Set motion estimation method. Possible values in the decreasing order
  5370. of speed:
  5371. </p>
  5372. <dl class="table">
  5373. <dt>&lsquo;<samp class="samp">dia (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5374. <dt>&lsquo;<samp class="samp">epzs (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5375. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp class="samp">epzs</samp>&rsquo; is an alias for
  5376. &lsquo;<samp class="samp">dia</samp>&rsquo;.
  5377. </p></dd>
  5378. <dt>&lsquo;<samp class="samp">hex (<em class="emph">hex</em>)</samp>&rsquo;</dt>
  5379. <dd><p>Hexagonal search with radius 2.
  5380. </p></dd>
  5381. <dt>&lsquo;<samp class="samp">umh (<em class="emph">umh</em>)</samp>&rsquo;</dt>
  5382. <dd><p>Uneven multi-hexagon search.
  5383. </p></dd>
  5384. <dt>&lsquo;<samp class="samp">esa (<em class="emph">esa</em>)</samp>&rsquo;</dt>
  5385. <dd><p>Exhaustive search.
  5386. </p></dd>
  5387. <dt>&lsquo;<samp class="samp">tesa (<em class="emph">tesa</em>)</samp>&rsquo;</dt>
  5388. <dd><p>Hadamard exhaustive search (slowest).
  5389. </p></dd>
  5390. </dl>
  5391. </dd>
  5392. <dt><samp class="option">forced-idr</samp></dt>
  5393. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5394. of I-frame. This option forces it to choose an IDR-frame.
  5395. </p>
  5396. </dd>
  5397. <dt><samp class="option">subq (<em class="emph">subme</em>)</samp></dt>
  5398. <dd><p>Sub-pixel motion estimation method.
  5399. </p>
  5400. </dd>
  5401. <dt><samp class="option">b_strategy (<em class="emph">b-adapt</em>)</samp></dt>
  5402. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  5403. </p>
  5404. </dd>
  5405. <dt><samp class="option">keyint_min (<em class="emph">min-keyint</em>)</samp></dt>
  5406. <dd><p>Minimum GOP size.
  5407. </p>
  5408. </dd>
  5409. <dt><samp class="option">coder</samp></dt>
  5410. <dd><p>Set entropy encoder. Possible values:
  5411. </p>
  5412. <dl class="table">
  5413. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  5414. <dd><p>Enable CABAC.
  5415. </p>
  5416. </dd>
  5417. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  5418. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  5419. <code class="command">x264</code>&rsquo;s <samp class="option">--no-cabac</samp> option.
  5420. </p></dd>
  5421. </dl>
  5422. </dd>
  5423. <dt><samp class="option">cmp</samp></dt>
  5424. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  5425. </p>
  5426. <dl class="table">
  5427. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  5428. <dd><p>Enable chroma in motion estimation.
  5429. </p>
  5430. </dd>
  5431. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  5432. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  5433. <code class="command">x264</code>&rsquo;s <samp class="option">--no-chroma-me</samp> option.
  5434. </p></dd>
  5435. </dl>
  5436. </dd>
  5437. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5438. <dd><p>Number of encoding threads.
  5439. </p>
  5440. </dd>
  5441. <dt><samp class="option">thread_type</samp></dt>
  5442. <dd><p>Set multithreading technique. Possible values:
  5443. </p>
  5444. <dl class="table">
  5445. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  5446. <dd><p>Slice-based multithreading. It generates the same effect as
  5447. <code class="command">x264</code>&rsquo;s <samp class="option">--sliced-threads</samp> option.
  5448. </p></dd>
  5449. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  5450. <dd><p>Frame-based multithreading.
  5451. </p></dd>
  5452. </dl>
  5453. </dd>
  5454. <dt><samp class="option">flags</samp></dt>
  5455. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  5456. open GOP by setting it to <code class="code">-cgop</code>. The result is similar to
  5457. the behavior of <code class="command">x264</code>&rsquo;s <samp class="option">--open-gop</samp> option.
  5458. </p>
  5459. </dd>
  5460. <dt><samp class="option">rc_init_occupancy (<em class="emph">vbv-init</em>)</samp></dt>
  5461. <dd><p>Initial VBV buffer occupancy
  5462. </p>
  5463. </dd>
  5464. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5465. <dd><p>Set the encoding preset.
  5466. </p>
  5467. </dd>
  5468. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5469. <dd><p>Set tuning of the encoding params.
  5470. </p>
  5471. </dd>
  5472. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5473. <dd><p>Set profile restrictions.
  5474. </p>
  5475. </dd>
  5476. <dt><samp class="option">fastfirstpass</samp></dt>
  5477. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  5478. to 0, it has the same effect of <code class="command">x264</code>&rsquo;s
  5479. <samp class="option">--slow-firstpass</samp> option.
  5480. </p>
  5481. </dd>
  5482. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5483. <dd><p>Set the quality for constant quality mode.
  5484. </p>
  5485. </dd>
  5486. <dt><samp class="option">crf_max (<em class="emph">crf-max</em>)</samp></dt>
  5487. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  5488. </p>
  5489. </dd>
  5490. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5491. <dd><p>Set constant quantization rate control method parameter.
  5492. </p>
  5493. </dd>
  5494. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  5495. <dd><p>Set AQ method. Possible values:
  5496. </p>
  5497. <dl class="table">
  5498. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5499. <dd><p>Disabled.
  5500. </p>
  5501. </dd>
  5502. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5503. <dd><p>Variance AQ (complexity mask).
  5504. </p>
  5505. </dd>
  5506. <dt>&lsquo;<samp class="samp">autovariance (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5507. <dd><p>Auto-variance AQ (experimental).
  5508. </p></dd>
  5509. </dl>
  5510. </dd>
  5511. <dt><samp class="option">aq-strength (<em class="emph">aq-strength</em>)</samp></dt>
  5512. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  5513. </p>
  5514. </dd>
  5515. <dt><samp class="option">psy</samp></dt>
  5516. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  5517. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-psy</samp> option.
  5518. </p>
  5519. </dd>
  5520. <dt><samp class="option">psy-rd (<em class="emph">psy-rd</em>)</samp></dt>
  5521. <dd><p>Set strength of psychovisual optimization, in
  5522. <var class="var">psy-rd</var>:<var class="var">psy-trellis</var> format.
  5523. </p>
  5524. </dd>
  5525. <dt><samp class="option">rc-lookahead (<em class="emph">rc-lookahead</em>)</samp></dt>
  5526. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  5527. </p>
  5528. </dd>
  5529. <dt><samp class="option">weightb</samp></dt>
  5530. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  5531. it has the same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-weightb</samp> option.
  5532. </p>
  5533. </dd>
  5534. <dt><samp class="option">weightp (<em class="emph">weightp</em>)</samp></dt>
  5535. <dd><p>Set weighted prediction method for P-frames. Possible values:
  5536. </p>
  5537. <dl class="table">
  5538. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5539. <dd><p>Disabled
  5540. </p></dd>
  5541. <dt>&lsquo;<samp class="samp">simple (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5542. <dd><p>Enable only weighted refs
  5543. </p></dd>
  5544. <dt>&lsquo;<samp class="samp">smart (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5545. <dd><p>Enable both weighted refs and duplicates
  5546. </p></dd>
  5547. </dl>
  5548. </dd>
  5549. <dt><samp class="option">ssim (<em class="emph">ssim</em>)</samp></dt>
  5550. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  5551. </p>
  5552. </dd>
  5553. <dt><samp class="option">intra-refresh (<em class="emph">intra-refresh</em>)</samp></dt>
  5554. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  5555. to 1.
  5556. </p>
  5557. </dd>
  5558. <dt><samp class="option">avcintra-class (<em class="emph">class</em>)</samp></dt>
  5559. <dd><p>Configure the encoder to generate AVC-Intra.
  5560. Valid values are 50, 100 and 200
  5561. </p>
  5562. </dd>
  5563. <dt><samp class="option">bluray-compat (<em class="emph">bluray-compat</em>)</samp></dt>
  5564. <dd><p>Configure the encoder to be compatible with the bluray standard.
  5565. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  5566. </p>
  5567. </dd>
  5568. <dt><samp class="option">b-bias (<em class="emph">b-bias</em>)</samp></dt>
  5569. <dd><p>Set the influence on how often B-frames are used.
  5570. </p>
  5571. </dd>
  5572. <dt><samp class="option">b-pyramid (<em class="emph">b-pyramid</em>)</samp></dt>
  5573. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  5574. </p>
  5575. <dl class="table">
  5576. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5577. <dd><p>Disabled.
  5578. </p></dd>
  5579. <dt>&lsquo;<samp class="samp">strict (<em class="emph">strict</em>)</samp>&rsquo;</dt>
  5580. <dd><p>Strictly hierarchical pyramid.
  5581. </p></dd>
  5582. <dt>&lsquo;<samp class="samp">normal (<em class="emph">normal</em>)</samp>&rsquo;</dt>
  5583. <dd><p>Non-strict (not Blu-ray compatible).
  5584. </p></dd>
  5585. </dl>
  5586. </dd>
  5587. <dt><samp class="option">mixed-refs</samp></dt>
  5588. <dd><p>Enable the use of one reference per partition, as opposed to one
  5589. reference per macroblock when set to 1. When set to 0, it has the
  5590. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-mixed-refs</samp> option.
  5591. </p>
  5592. </dd>
  5593. <dt><samp class="option">8x8dct</samp></dt>
  5594. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  5595. when set to 1. When set to 0, it has the same effect as
  5596. <code class="command">x264</code>&rsquo;s <samp class="option">--no-8x8dct</samp> option.
  5597. </p>
  5598. </dd>
  5599. <dt><samp class="option">fast-pskip</samp></dt>
  5600. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  5601. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5602. <samp class="option">--no-fast-pskip</samp> option.
  5603. </p>
  5604. </dd>
  5605. <dt><samp class="option">aud (<em class="emph">aud</em>)</samp></dt>
  5606. <dd><p>Enable use of access unit delimiters when set to 1.
  5607. </p>
  5608. </dd>
  5609. <dt><samp class="option">mbtree</samp></dt>
  5610. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  5611. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5612. <samp class="option">--no-mbtree</samp> option.
  5613. </p>
  5614. </dd>
  5615. <dt><samp class="option">deblock (<em class="emph">deblock</em>)</samp></dt>
  5616. <dd><p>Set loop filter parameters, in <var class="var">alpha</var>:<var class="var">beta</var> form.
  5617. </p>
  5618. </dd>
  5619. <dt><samp class="option">cplxblur (<em class="emph">cplxblur</em>)</samp></dt>
  5620. <dd><p>Set fluctuations reduction in QP (before curve compression).
  5621. </p>
  5622. </dd>
  5623. <dt><samp class="option">partitions (<em class="emph">partitions</em>)</samp></dt>
  5624. <dd><p>Set partitions to consider as a comma-separated list of values.
  5625. Possible values in the list:
  5626. </p>
  5627. <dl class="table">
  5628. <dt>&lsquo;<samp class="samp">p8x8</samp>&rsquo;</dt>
  5629. <dd><p>8x8 P-frame partition.
  5630. </p></dd>
  5631. <dt>&lsquo;<samp class="samp">p4x4</samp>&rsquo;</dt>
  5632. <dd><p>4x4 P-frame partition.
  5633. </p></dd>
  5634. <dt>&lsquo;<samp class="samp">b8x8</samp>&rsquo;</dt>
  5635. <dd><p>4x4 B-frame partition.
  5636. </p></dd>
  5637. <dt>&lsquo;<samp class="samp">i8x8</samp>&rsquo;</dt>
  5638. <dd><p>8x8 I-frame partition.
  5639. </p></dd>
  5640. <dt>&lsquo;<samp class="samp">i4x4</samp>&rsquo;</dt>
  5641. <dd><p>4x4 I-frame partition.
  5642. (Enabling &lsquo;<samp class="samp">p4x4</samp>&rsquo; requires &lsquo;<samp class="samp">p8x8</samp>&rsquo; to be enabled. Enabling
  5643. &lsquo;<samp class="samp">i8x8</samp>&rsquo; requires adaptive spatial transform (<samp class="option">8x8dct</samp>
  5644. option) to be enabled.)
  5645. </p></dd>
  5646. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5647. <dd><p>Do not consider any partitions.
  5648. </p></dd>
  5649. <dt>&lsquo;<samp class="samp">all (<em class="emph">all</em>)</samp>&rsquo;</dt>
  5650. <dd><p>Consider every partition.
  5651. </p></dd>
  5652. </dl>
  5653. </dd>
  5654. <dt><samp class="option">direct-pred (<em class="emph">direct</em>)</samp></dt>
  5655. <dd><p>Set direct MV prediction mode. Possible values:
  5656. </p>
  5657. <dl class="table">
  5658. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5659. <dd><p>Disable MV prediction.
  5660. </p></dd>
  5661. <dt>&lsquo;<samp class="samp">spatial (<em class="emph">spatial</em>)</samp>&rsquo;</dt>
  5662. <dd><p>Enable spatial predicting.
  5663. </p></dd>
  5664. <dt>&lsquo;<samp class="samp">temporal (<em class="emph">temporal</em>)</samp>&rsquo;</dt>
  5665. <dd><p>Enable temporal predicting.
  5666. </p></dd>
  5667. <dt>&lsquo;<samp class="samp">auto (<em class="emph">auto</em>)</samp>&rsquo;</dt>
  5668. <dd><p>Automatically decided.
  5669. </p></dd>
  5670. </dl>
  5671. </dd>
  5672. <dt><samp class="option">slice-max-size (<em class="emph">slice-max-size</em>)</samp></dt>
  5673. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  5674. but RTP payload size (<samp class="option">ps</samp>) is specified, that is used.
  5675. </p>
  5676. </dd>
  5677. <dt><samp class="option">stats (<em class="emph">stats</em>)</samp></dt>
  5678. <dd><p>Set the file name for multi-pass stats.
  5679. </p>
  5680. </dd>
  5681. <dt><samp class="option">nal-hrd (<em class="emph">nal-hrd</em>)</samp></dt>
  5682. <dd><p>Set signal HRD information (requires <samp class="option">vbv-bufsize</samp> to be set).
  5683. Possible values:
  5684. </p>
  5685. <dl class="table">
  5686. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5687. <dd><p>Disable HRD information signaling.
  5688. </p></dd>
  5689. <dt>&lsquo;<samp class="samp">vbr (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  5690. <dd><p>Variable bit rate.
  5691. </p></dd>
  5692. <dt>&lsquo;<samp class="samp">cbr (<em class="emph">cbr</em>)</samp>&rsquo;</dt>
  5693. <dd><p>Constant bit rate (not allowed in MP4 container).
  5694. </p></dd>
  5695. </dl>
  5696. </dd>
  5697. <dt><samp class="option">x264opts <var class="var">opts</var></samp></dt>
  5698. <dt><samp class="option">x264-params <var class="var">opts</var></samp></dt>
  5699. <dd><p>Override the x264 configuration using a :-separated list of key=value
  5700. options.
  5701. </p>
  5702. <p>The argument for both options is a list of <var class="var">key</var>=<var class="var">value</var>
  5703. couples separated by &quot;:&quot;. With <samp class="option">x264opts</samp> the value can be
  5704. omitted, and the value <code class="code">1</code> is assumed in that case.
  5705. </p>
  5706. <p>For <var class="var">filter</var> and <var class="var">psy-rd</var> options values that use &quot;:&quot; as a
  5707. separator themselves, use &quot;,&quot; instead. They accept it as well since
  5708. long ago but this is kept undocumented for some reason.
  5709. </p>
  5710. <p>For example, the options might be provided as:
  5711. </p><div class="example">
  5712. <pre class="example-preformatted">level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0
  5713. </pre></div>
  5714. <p>For example to specify libx264 encoding options with <code class="command">ffmpeg</code>:
  5715. </p><div class="example">
  5716. <pre class="example-preformatted">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  5717. </pre></div>
  5718. <p>To get the complete list of the libx264 options, invoke the command
  5719. <code class="command">x264 --fullhelp</code> or consult the libx264 documentation.
  5720. </p>
  5721. </dd>
  5722. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  5723. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5724. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  5725. </p>
  5726. </dd>
  5727. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5728. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5729. </p>
  5730. </dd>
  5731. <dt><samp class="option">mb_info <var class="var">boolean</var></samp></dt>
  5732. <dd><p>Set mb_info data through AVFrameSideData, only useful when used from the
  5733. API. Default is 0 (off).
  5734. </p></dd>
  5735. </dl>
  5736. <p>Encoding ffpresets for common usages are provided so they can be used with the
  5737. general presets system (e.g. passing the <samp class="option">pre</samp> option).
  5738. </p>
  5739. </div>
  5740. </div>
  5741. <div class="section-level-extent" id="libx265">
  5742. <h3 class="section"><span>9.16 libx265<a class="copiable-link" href="#libx265"> &para;</a></span></h3>
  5743. <p>x265 H.265/HEVC encoder wrapper.
  5744. </p>
  5745. <p>This encoder requires the presence of the libx265 headers and library
  5746. during configuration. You need to explicitly configure the build with
  5747. <samp class="option">--enable-libx265</samp>.
  5748. </p>
  5749. <ul class="mini-toc">
  5750. <li><a href="#Options-36" accesskey="1">Options</a></li>
  5751. </ul>
  5752. <div class="subsection-level-extent" id="Options-36">
  5753. <h4 class="subsection"><span>9.16.1 Options<a class="copiable-link" href="#Options-36"> &para;</a></span></h4>
  5754. <dl class="table">
  5755. <dt><samp class="option">b</samp></dt>
  5756. <dd><p>Sets target video bitrate.
  5757. </p>
  5758. </dd>
  5759. <dt><samp class="option">bf</samp></dt>
  5760. <dt><samp class="option">g</samp></dt>
  5761. <dd><p>Set the GOP size.
  5762. </p>
  5763. </dd>
  5764. <dt><samp class="option">keyint_min</samp></dt>
  5765. <dd><p>Minimum GOP size.
  5766. </p>
  5767. </dd>
  5768. <dt><samp class="option">refs</samp></dt>
  5769. <dd><p>Number of reference frames each P-frame can use. The range is from <var class="var">1-16</var>.
  5770. </p>
  5771. </dd>
  5772. <dt><samp class="option">preset</samp></dt>
  5773. <dd><p>Set the x265 preset.
  5774. </p>
  5775. </dd>
  5776. <dt><samp class="option">tune</samp></dt>
  5777. <dd><p>Set the x265 tune parameter.
  5778. </p>
  5779. </dd>
  5780. <dt><samp class="option">profile</samp></dt>
  5781. <dd><p>Set profile restrictions.
  5782. </p>
  5783. </dd>
  5784. <dt><samp class="option">crf</samp></dt>
  5785. <dd><p>Set the quality for constant quality mode.
  5786. </p>
  5787. </dd>
  5788. <dt><samp class="option">qp</samp></dt>
  5789. <dd><p>Set constant quantization rate control method parameter.
  5790. </p>
  5791. </dd>
  5792. <dt><samp class="option">qmin</samp></dt>
  5793. <dd><p>Minimum quantizer scale.
  5794. </p>
  5795. </dd>
  5796. <dt><samp class="option">qmax</samp></dt>
  5797. <dd><p>Maximum quantizer scale.
  5798. </p>
  5799. </dd>
  5800. <dt><samp class="option">qdiff</samp></dt>
  5801. <dd><p>Maximum difference between quantizer scales.
  5802. </p>
  5803. </dd>
  5804. <dt><samp class="option">qblur</samp></dt>
  5805. <dd><p>Quantizer curve blur
  5806. </p>
  5807. </dd>
  5808. <dt><samp class="option">qcomp</samp></dt>
  5809. <dd><p>Quantizer curve compression factor
  5810. </p>
  5811. </dd>
  5812. <dt><samp class="option">i_qfactor</samp></dt>
  5813. <dt><samp class="option">b_qfactor</samp></dt>
  5814. <dt><samp class="option">forced-idr</samp></dt>
  5815. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5816. of I-frame. This option forces it to choose an IDR-frame.
  5817. </p>
  5818. </dd>
  5819. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5820. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5821. </p>
  5822. </dd>
  5823. <dt><samp class="option">x265-params</samp></dt>
  5824. <dd><p>Set x265 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5825. by &quot;:&quot;. See <code class="command">x265 --help</code> for a list of options.
  5826. </p>
  5827. <p>For example to specify libx265 encoding options with <samp class="option">-x265-params</samp>:
  5828. </p>
  5829. <div class="example">
  5830. <pre class="example-preformatted">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  5831. </pre></div>
  5832. </dd>
  5833. </dl>
  5834. </div>
  5835. </div>
  5836. <div class="section-level-extent" id="libxavs2">
  5837. <h3 class="section"><span>9.17 libxavs2<a class="copiable-link" href="#libxavs2"> &para;</a></span></h3>
  5838. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  5839. </p>
  5840. <p>This encoder requires the presence of the libxavs2 headers and library
  5841. during configuration. You need to explicitly configure the build with
  5842. <samp class="option">--enable-libxavs2</samp>.
  5843. </p>
  5844. <p>The following standard libavcodec options are used:
  5845. </p><ul class="itemize mark-bullet">
  5846. <li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  5847. </li><li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  5848. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  5849. </li></ul>
  5850. <p>The encoder also has its own specific options:
  5851. </p><ul class="mini-toc">
  5852. <li><a href="#Options-37" accesskey="1">Options</a></li>
  5853. </ul>
  5854. <div class="subsection-level-extent" id="Options-37">
  5855. <h4 class="subsection"><span>9.17.1 Options<a class="copiable-link" href="#Options-37"> &para;</a></span></h4>
  5856. <dl class="table">
  5857. <dt><samp class="option">lcu_row_threads</samp></dt>
  5858. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  5859. </p>
  5860. </dd>
  5861. <dt><samp class="option">initial_qp</samp></dt>
  5862. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5863. used to set the initial qp for the first frame.
  5864. </p>
  5865. </dd>
  5866. <dt><samp class="option">qp</samp></dt>
  5867. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5868. used to set the qp value under constant-QP mode.
  5869. </p>
  5870. </dd>
  5871. <dt><samp class="option">max_qp</samp></dt>
  5872. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5873. </p>
  5874. </dd>
  5875. <dt><samp class="option">min_qp</samp></dt>
  5876. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5877. </p>
  5878. </dd>
  5879. <dt><samp class="option">speed_level</samp></dt>
  5880. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5881. </p>
  5882. </dd>
  5883. <dt><samp class="option">log_level</samp></dt>
  5884. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5885. 1: warning, 2: info, 3: debug.
  5886. </p>
  5887. </dd>
  5888. <dt><samp class="option">xavs2-params</samp></dt>
  5889. <dd><p>Set xavs2 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5890. by &quot;:&quot;.
  5891. </p>
  5892. <p>For example to specify libxavs2 encoding options with <samp class="option">-xavs2-params</samp>:
  5893. </p>
  5894. <div class="example">
  5895. <pre class="example-preformatted">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5896. </pre></div>
  5897. </dd>
  5898. </dl>
  5899. </div>
  5900. </div>
  5901. <div class="section-level-extent" id="libxeve">
  5902. <h3 class="section"><span>9.18 libxeve<a class="copiable-link" href="#libxeve"> &para;</a></span></h3>
  5903. <p>eXtra-fast Essential Video Encoder (XEVE) MPEG-5 EVC encoder wrapper.
  5904. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5905. </p>
  5906. <p>This encoder requires the presence of the libxeve headers and library
  5907. during configuration. You need to explicitly configure the build with
  5908. <samp class="option">--enable-libxeve</samp>.
  5909. </p>
  5910. <div class="info">
  5911. <p>Many libxeve encoder options are mapped to FFmpeg global codec options,
  5912. while unique encoder options are provided through private options.
  5913. Additionally the xeve-params private options allows one to pass a list
  5914. of key=value tuples as accepted by the libxeve <code class="code">parse_xeve_params</code> function.
  5915. </p></div>
  5916. <p>The xeve project website is at <a class="url" href="https://github.com/mpeg5/xeve">https://github.com/mpeg5/xeve</a>.
  5917. </p>
  5918. <ul class="mini-toc">
  5919. <li><a href="#Options-38" accesskey="1">Options</a></li>
  5920. </ul>
  5921. <div class="subsection-level-extent" id="Options-38">
  5922. <h4 class="subsection"><span>9.18.1 Options<a class="copiable-link" href="#Options-38"> &para;</a></span></h4>
  5923. <p>The following options are supported by the libxeve wrapper.
  5924. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5925. </p>
  5926. <div class="info">
  5927. <p>To reduce the duplication of documentation, only the private options
  5928. and some others requiring special attention are documented here. For
  5929. the documentation of the undocumented generic options, see
  5930. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5931. </p></div>
  5932. <div class="info">
  5933. <p>To get a more accurate and extensive documentation of the libxeve options,
  5934. invoke the command <code class="code">xeve_app --help</code> or consult the libxeve documentation.
  5935. </p></div>
  5936. <dl class="table">
  5937. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5938. <dd><p>Set target video bitrate in bits/s.
  5939. Note that FFmpeg&rsquo;s b option is expressed in bits/s, while xeve&rsquo;s bitrate is in kilobits/s.
  5940. </p>
  5941. </dd>
  5942. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5943. <dd><p>Set the maximum number of B frames (1,3,7,15).
  5944. </p>
  5945. </dd>
  5946. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5947. <dd><p>Set the GOP size (I-picture period).
  5948. </p>
  5949. </dd>
  5950. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5951. <dd><p>Set the xeve preset.
  5952. Set the encoder preset value to determine encoding speed [fast, medium, slow, placebo]
  5953. </p>
  5954. </dd>
  5955. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5956. <dd><p>Set the encoder tune parameter [psnr, zerolatency]
  5957. </p>
  5958. </dd>
  5959. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5960. <dd><p>Set the encoder profile [0: baseline; 1: main]
  5961. </p>
  5962. </dd>
  5963. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5964. <dd><p>Set the quality for constant quality mode.
  5965. Constant rate factor &lt;10..49&gt; [default: 32]
  5966. </p>
  5967. </dd>
  5968. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5969. <dd><p>Set constant quantization rate control method parameter.
  5970. Quantization parameter qp &lt;0..51&gt; [default: 32]
  5971. </p>
  5972. </dd>
  5973. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5974. <dd><p>Force to use a specific number of threads
  5975. </p>
  5976. </dd>
  5977. </dl>
  5978. </div>
  5979. </div>
  5980. <div class="section-level-extent" id="libxvid">
  5981. <h3 class="section"><span>9.19 libxvid<a class="copiable-link" href="#libxvid"> &para;</a></span></h3>
  5982. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5983. </p>
  5984. <p>This encoder requires the presence of the libxvidcore headers and library
  5985. during configuration. You need to explicitly configure the build with
  5986. <code class="code">--enable-libxvid --enable-gpl</code>.
  5987. </p>
  5988. <p>The native <code class="code">mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5989. users can encode to this format without this library.
  5990. </p>
  5991. <ul class="mini-toc">
  5992. <li><a href="#Options-39" accesskey="1">Options</a></li>
  5993. </ul>
  5994. <div class="subsection-level-extent" id="Options-39">
  5995. <h4 class="subsection"><span>9.19.1 Options<a class="copiable-link" href="#Options-39"> &para;</a></span></h4>
  5996. <p>The following options are supported by the libxvid wrapper. Some of
  5997. the following options are listed but are not documented, and
  5998. correspond to shared codec options. See <a class="ref" href="#codec_002doptions">the Codec
  5999. Options chapter</a> for their documentation. The other shared options
  6000. which are not listed have no effect for the libxvid encoder.
  6001. </p>
  6002. <dl class="table">
  6003. <dt><samp class="option">b</samp></dt>
  6004. <dt><samp class="option">g</samp></dt>
  6005. <dt><samp class="option">qmin</samp></dt>
  6006. <dt><samp class="option">qmax</samp></dt>
  6007. <dt><samp class="option">mpeg_quant</samp></dt>
  6008. <dt><samp class="option">threads</samp></dt>
  6009. <dt><samp class="option">bf</samp></dt>
  6010. <dt><samp class="option">b_qfactor</samp></dt>
  6011. <dt><samp class="option">b_qoffset</samp></dt>
  6012. <dt><samp class="option">flags</samp></dt>
  6013. <dd><p>Set specific encoding flags. Possible values:
  6014. </p>
  6015. <dl class="table">
  6016. <dt>&lsquo;<samp class="samp">mv4</samp>&rsquo;</dt>
  6017. <dd><p>Use four motion vector by macroblock.
  6018. </p>
  6019. </dd>
  6020. <dt>&lsquo;<samp class="samp">aic</samp>&rsquo;</dt>
  6021. <dd><p>Enable high quality AC prediction.
  6022. </p>
  6023. </dd>
  6024. <dt>&lsquo;<samp class="samp">gray</samp>&rsquo;</dt>
  6025. <dd><p>Only encode grayscale.
  6026. </p>
  6027. </dd>
  6028. <dt>&lsquo;<samp class="samp">qpel</samp>&rsquo;</dt>
  6029. <dd><p>Enable quarter-pixel motion compensation.
  6030. </p>
  6031. </dd>
  6032. <dt>&lsquo;<samp class="samp">cgop</samp>&rsquo;</dt>
  6033. <dd><p>Enable closed GOP.
  6034. </p>
  6035. </dd>
  6036. <dt>&lsquo;<samp class="samp">global_header</samp>&rsquo;</dt>
  6037. <dd><p>Place global headers in extradata instead of every keyframe.
  6038. </p>
  6039. </dd>
  6040. </dl>
  6041. </dd>
  6042. <dt><samp class="option">gmc</samp></dt>
  6043. <dd><p>Enable the use of global motion compensation (GMC). Default is 0
  6044. (disabled).
  6045. </p>
  6046. </dd>
  6047. <dt><samp class="option">me_quality</samp></dt>
  6048. <dd><p>Set motion estimation quality level. Possible values in decreasing order of
  6049. speed and increasing order of quality:
  6050. </p>
  6051. <dl class="table">
  6052. <dt>&lsquo;<samp class="samp">0</samp>&rsquo;</dt>
  6053. <dd><p>Use no motion estimation (default).
  6054. </p>
  6055. </dd>
  6056. <dt>&lsquo;<samp class="samp">1, 2</samp>&rsquo;</dt>
  6057. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  6058. refinement for 16x16 blocks.
  6059. </p>
  6060. </dd>
  6061. <dt>&lsquo;<samp class="samp">3, 4</samp>&rsquo;</dt>
  6062. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  6063. search for 8x8 blocks and half-pixel refinement for 8x8 blocks, also
  6064. enable motion estimation on chroma planes for P and B-frames.
  6065. </p>
  6066. </dd>
  6067. <dt>&lsquo;<samp class="samp">5, 6</samp>&rsquo;</dt>
  6068. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  6069. blocks search.
  6070. </p></dd>
  6071. </dl>
  6072. </dd>
  6073. <dt><samp class="option">mbd</samp></dt>
  6074. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  6075. order of quality:
  6076. </p>
  6077. <dl class="table">
  6078. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6079. <dd><p>Use macroblock comparing function algorithm (default).
  6080. </p>
  6081. </dd>
  6082. <dt>&lsquo;<samp class="samp">bits</samp>&rsquo;</dt>
  6083. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  6084. 16x16 blocks.
  6085. </p>
  6086. </dd>
  6087. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  6088. <dd><p>Enable all of the things described above, plus rate distortion-based
  6089. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  6090. distortion-based search using square pattern.
  6091. </p></dd>
  6092. </dl>
  6093. </dd>
  6094. <dt><samp class="option">lumi_aq</samp></dt>
  6095. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  6096. (disabled).
  6097. </p>
  6098. </dd>
  6099. <dt><samp class="option">variance_aq</samp></dt>
  6100. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  6101. (disabled).
  6102. </p>
  6103. <p>When combined with <samp class="option">lumi_aq</samp>, the resulting quality will not
  6104. be better than any of the two specified individually. In other
  6105. words, the resulting quality will be the worse one of the two
  6106. effects.
  6107. </p>
  6108. </dd>
  6109. <dt><samp class="option">trellis</samp></dt>
  6110. <dd><p>Set rate-distortion optimal quantization.
  6111. </p>
  6112. </dd>
  6113. <dt><samp class="option">ssim</samp></dt>
  6114. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  6115. </p>
  6116. <dl class="table">
  6117. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6118. <dd><p>Disable displaying of SSIM information.
  6119. </p>
  6120. </dd>
  6121. <dt>&lsquo;<samp class="samp">avg</samp>&rsquo;</dt>
  6122. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  6123. showing the average SSIM is:
  6124. </p>
  6125. <div class="example">
  6126. <pre class="example-preformatted">Average SSIM: %f
  6127. </pre></div>
  6128. <p>For users who are not familiar with C, %f means a float number, or
  6129. a decimal (e.g. 0.939232).
  6130. </p>
  6131. </dd>
  6132. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  6133. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  6134. the end of encoding to stdout. The format of per-frame information
  6135. is:
  6136. </p>
  6137. <div class="example">
  6138. <pre class="example-preformatted"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  6139. </pre></div>
  6140. <p>For users who are not familiar with C, %1.3f means a float number
  6141. rounded to 3 digits after the dot (e.g. 0.932).
  6142. </p>
  6143. </dd>
  6144. </dl>
  6145. </dd>
  6146. <dt><samp class="option">ssim_acc</samp></dt>
  6147. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  6148. 0-4, while 0 gives the most accurate result and 4 computes the
  6149. fastest.
  6150. </p>
  6151. </dd>
  6152. </dl>
  6153. </div>
  6154. </div>
  6155. <div class="section-level-extent" id="MediaFoundation">
  6156. <h3 class="section"><span>9.20 MediaFoundation<a class="copiable-link" href="#MediaFoundation"> &para;</a></span></h3>
  6157. <p>This provides wrappers to encoders (both audio and video) in the
  6158. MediaFoundation framework. It can access both SW and HW encoders.
  6159. Video encoders can take input in either of nv12 or yuv420p form
  6160. (some encoders support both, some support only either - in practice,
  6161. nv12 is the safer choice, especially among HW encoders).
  6162. </p>
  6163. </div>
  6164. <div class="section-level-extent" id="Microsoft-RLE">
  6165. <h3 class="section"><span>9.21 Microsoft RLE<a class="copiable-link" href="#Microsoft-RLE"> &para;</a></span></h3>
  6166. <p>Microsoft RLE aka MSRLE encoder.
  6167. Only 8-bit palette mode supported.
  6168. Compatible with Windows 3.1 and Windows 95.
  6169. </p>
  6170. <ul class="mini-toc">
  6171. <li><a href="#Options-40" accesskey="1">Options</a></li>
  6172. </ul>
  6173. <div class="subsection-level-extent" id="Options-40">
  6174. <h4 class="subsection"><span>9.21.1 Options<a class="copiable-link" href="#Options-40"> &para;</a></span></h4>
  6175. <dl class="table">
  6176. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  6177. <dd><p>Keyframe interval.
  6178. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  6179. </p></dd>
  6180. </dl>
  6181. </div>
  6182. </div>
  6183. <div class="section-level-extent" id="mpeg2">
  6184. <h3 class="section"><span>9.22 mpeg2<a class="copiable-link" href="#mpeg2"> &para;</a></span></h3>
  6185. <p>MPEG-2 video encoder.
  6186. </p>
  6187. <ul class="mini-toc">
  6188. <li><a href="#Options-41" accesskey="1">Options</a></li>
  6189. </ul>
  6190. <div class="subsection-level-extent" id="Options-41">
  6191. <h4 class="subsection"><span>9.22.1 Options<a class="copiable-link" href="#Options-41"> &para;</a></span></h4>
  6192. <dl class="table">
  6193. <dt><samp class="option">profile</samp></dt>
  6194. <dd><p>Select the mpeg2 profile to encode:
  6195. </p>
  6196. <dl class="table">
  6197. <dt>&lsquo;<samp class="samp">422</samp>&rsquo;</dt>
  6198. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6199. <dt>&lsquo;<samp class="samp">ss</samp>&rsquo;</dt>
  6200. <dd><p>Spatially Scalable
  6201. </p></dd>
  6202. <dt>&lsquo;<samp class="samp">snr</samp>&rsquo;</dt>
  6203. <dd><p>SNR Scalable
  6204. </p></dd>
  6205. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6206. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6207. </dl>
  6208. </dd>
  6209. <dt><samp class="option">level</samp></dt>
  6210. <dd><p>Select the mpeg2 level to encode:
  6211. </p>
  6212. <dl class="table">
  6213. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6214. <dt>&lsquo;<samp class="samp">high1440</samp>&rsquo;</dt>
  6215. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6216. <dt>&lsquo;<samp class="samp">low</samp>&rsquo;</dt>
  6217. </dl>
  6218. </dd>
  6219. <dt><samp class="option">seq_disp_ext <var class="var">integer</var></samp></dt>
  6220. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  6221. output.
  6222. </p><dl class="table">
  6223. <dt><samp class="option">-1</samp></dt>
  6224. <dt><samp class="option">auto</samp></dt>
  6225. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  6226. the data to be written is different from the default or unspecified values.
  6227. </p></dd>
  6228. <dt><samp class="option">0</samp></dt>
  6229. <dt><samp class="option">never</samp></dt>
  6230. <dd><p>Never write it.
  6231. </p></dd>
  6232. <dt><samp class="option">1</samp></dt>
  6233. <dt><samp class="option">always</samp></dt>
  6234. <dd><p>Always write it.
  6235. </p></dd>
  6236. </dl>
  6237. </dd>
  6238. <dt><samp class="option">video_format <var class="var">integer</var></samp></dt>
  6239. <dd><p>Specifies the video_format written into the sequence display extension
  6240. indicating the source of the video pictures. The default is &lsquo;<samp class="samp">unspecified</samp>&rsquo;,
  6241. can be &lsquo;<samp class="samp">component</samp>&rsquo;, &lsquo;<samp class="samp">pal</samp>&rsquo;, &lsquo;<samp class="samp">ntsc</samp>&rsquo;, &lsquo;<samp class="samp">secam</samp>&rsquo; or &lsquo;<samp class="samp">mac</samp>&rsquo;.
  6242. For maximum compatibility, use &lsquo;<samp class="samp">component</samp>&rsquo;.
  6243. </p></dd>
  6244. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  6245. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  6246. Default is 1 (on).
  6247. </p></dd>
  6248. </dl>
  6249. </div>
  6250. </div>
  6251. <div class="section-level-extent" id="png">
  6252. <h3 class="section"><span>9.23 png<a class="copiable-link" href="#png"> &para;</a></span></h3>
  6253. <p>PNG image encoder.
  6254. </p>
  6255. <ul class="mini-toc">
  6256. <li><a href="#Private-options-1" accesskey="1">Private options</a></li>
  6257. </ul>
  6258. <div class="subsection-level-extent" id="Private-options-1">
  6259. <h4 class="subsection"><span>9.23.1 Private options<a class="copiable-link" href="#Private-options-1"> &para;</a></span></h4>
  6260. <dl class="table">
  6261. <dt><samp class="option">dpi <var class="var">integer</var></samp></dt>
  6262. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  6263. </p></dd>
  6264. <dt><samp class="option">dpm <var class="var">integer</var></samp></dt>
  6265. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  6266. </p></dd>
  6267. </dl>
  6268. </div>
  6269. </div>
  6270. <div class="section-level-extent" id="ProRes">
  6271. <h3 class="section"><span>9.24 ProRes<a class="copiable-link" href="#ProRes"> &para;</a></span></h3>
  6272. <p>Apple ProRes encoder.
  6273. </p>
  6274. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  6275. The used encoder can be chosen with the <code class="code">-vcodec</code> option.
  6276. </p>
  6277. <ul class="mini-toc">
  6278. <li><a href="#Private-Options-for-prores_002dks" accesskey="1">Private Options for prores-ks</a></li>
  6279. <li><a href="#Speed-considerations" accesskey="2">Speed considerations</a></li>
  6280. </ul>
  6281. <div class="subsection-level-extent" id="Private-Options-for-prores_002dks">
  6282. <h4 class="subsection"><span>9.24.1 Private Options for prores-ks<a class="copiable-link" href="#Private-Options-for-prores_002dks"> &para;</a></span></h4>
  6283. <dl class="table">
  6284. <dt><samp class="option">profile <var class="var">integer</var></samp></dt>
  6285. <dd><p>Select the ProRes profile to encode
  6286. </p><dl class="table">
  6287. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6288. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6289. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6290. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6291. <dt>&lsquo;<samp class="samp">4444</samp>&rsquo;</dt>
  6292. <dt>&lsquo;<samp class="samp">4444xq</samp>&rsquo;</dt>
  6293. </dl>
  6294. </dd>
  6295. <dt><samp class="option">quant_mat <var class="var">integer</var></samp></dt>
  6296. <dd><p>Select quantization matrix.
  6297. </p><dl class="table">
  6298. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6299. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  6300. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6301. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6302. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6303. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6304. </dl>
  6305. <p>If set to <var class="var">auto</var>, the matrix matching the profile will be picked.
  6306. If not set, the matrix providing the highest quality, <var class="var">default</var>, will be
  6307. picked.
  6308. </p>
  6309. </dd>
  6310. <dt><samp class="option">bits_per_mb <var class="var">integer</var></samp></dt>
  6311. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  6312. between 200 and 2400 bits per macroblock, the maximum is 8000.
  6313. </p>
  6314. </dd>
  6315. <dt><samp class="option">mbs_per_slice <var class="var">integer</var></samp></dt>
  6316. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  6317. should be good in almost all situations.
  6318. </p>
  6319. </dd>
  6320. <dt><samp class="option">vendor <var class="var">string</var></samp></dt>
  6321. <dd><p>Override the 4-byte vendor ID.
  6322. A custom vendor ID like <var class="var">apl0</var> would claim the stream was produced by
  6323. the Apple encoder.
  6324. </p>
  6325. </dd>
  6326. <dt><samp class="option">alpha_bits <var class="var">integer</var></samp></dt>
  6327. <dd><p>Specify number of bits for alpha component.
  6328. Possible values are <var class="var">0</var>, <var class="var">8</var> and <var class="var">16</var>.
  6329. Use <var class="var">0</var> to disable alpha plane coding.
  6330. </p>
  6331. </dd>
  6332. </dl>
  6333. </div>
  6334. <div class="subsection-level-extent" id="Speed-considerations">
  6335. <h4 class="subsection"><span>9.24.2 Speed considerations<a class="copiable-link" href="#Speed-considerations"> &para;</a></span></h4>
  6336. <p>In the default mode of operation the encoder has to honor frame constraints
  6337. (i.e. not produce frames with size bigger than requested) while still making
  6338. output picture as good as possible.
  6339. A frame containing a lot of small details is harder to compress and the encoder
  6340. would spend more time searching for appropriate quantizers for each slice.
  6341. </p>
  6342. <p>Setting a higher <samp class="option">bits_per_mb</samp> limit will improve the speed.
  6343. </p>
  6344. <p>For the fastest encoding speed set the <samp class="option">qscale</samp> parameter (4 is the
  6345. recommended value) and do not set a size constraint.
  6346. </p>
  6347. </div>
  6348. </div>
  6349. <div class="section-level-extent" id="QSV-Encoders">
  6350. <h3 class="section"><span>9.25 QSV Encoders<a class="copiable-link" href="#QSV-Encoders"> &para;</a></span></h3>
  6351. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG,
  6352. VP9, AV1)
  6353. </p>
  6354. <ul class="mini-toc">
  6355. <li><a href="#Ratecontrol-Method" accesskey="1">Ratecontrol Method</a></li>
  6356. <li><a href="#Global-Options-_002d_003e-MSDK-Options" accesskey="2">Global Options -&gt; MSDK Options</a></li>
  6357. <li><a href="#Common-Options-1" accesskey="3">Common Options</a></li>
  6358. <li><a href="#Runtime-Options" accesskey="4">Runtime Options</a></li>
  6359. <li><a href="#H264-options" accesskey="5">H264 options</a></li>
  6360. <li><a href="#HEVC-Options-1" accesskey="6">HEVC Options</a></li>
  6361. <li><a href="#MPEG2-Options" accesskey="7">MPEG2 Options</a></li>
  6362. <li><a href="#VP9-Options" accesskey="8">VP9 Options</a></li>
  6363. <li><a href="#AV1-Options" accesskey="9">AV1 Options</a></li>
  6364. </ul>
  6365. <div class="subsection-level-extent" id="Ratecontrol-Method">
  6366. <h4 class="subsection"><span>9.25.1 Ratecontrol Method<a class="copiable-link" href="#Ratecontrol-Method"> &para;</a></span></h4>
  6367. <p>The ratecontrol method is selected as follows:
  6368. </p><ul class="itemize mark-bullet">
  6369. <li>When <samp class="option">global_quality</samp> is specified, a quality-based mode is used.
  6370. Specifically this means either
  6371. <ul class="itemize mark-minus">
  6372. <li><var class="var">CQP</var> - constant quantizer scale, when the <samp class="option">qscale</samp> codec flag is
  6373. also set (the <samp class="option">-qscale</samp> ffmpeg option).
  6374. </li><li><var class="var">LA_ICQ</var> - intelligent constant quality with lookahead, when the
  6375. <samp class="option">look_ahead</samp> option is also set.
  6376. </li><li><var class="var">ICQ</var> &ndash; intelligent constant quality otherwise. For the ICQ modes, global
  6377. quality range is 1 to 51, with 1 being the best quality.
  6378. </li></ul>
  6379. </li><li>Otherwise when the desired average bitrate is specified with the <samp class="option">b</samp>
  6380. option, a bitrate-based mode is used.
  6381. <ul class="itemize mark-minus">
  6382. <li><var class="var">LA</var> - VBR with lookahead, when the <samp class="option">look_ahead</samp> option is specified.
  6383. </li><li><var class="var">VCM</var> - video conferencing mode, when the <samp class="option">vcm</samp> option is set.
  6384. </li><li><var class="var">CBR</var> - constant bitrate, when <samp class="option">maxrate</samp> is specified and equal to
  6385. the average bitrate.
  6386. </li><li><var class="var">VBR</var> - variable bitrate, when <samp class="option">maxrate</samp> is specified, but is higher
  6387. than the average bitrate.
  6388. </li><li><var class="var">AVBR</var> - average VBR mode, when <samp class="option">maxrate</samp> is not specified, both
  6389. <samp class="option">avbr_accuracy</samp> and <samp class="option">avbr_convergence</samp> are set to non-zero. This
  6390. mode is available for H264 and HEVC on Windows.
  6391. </li></ul>
  6392. </li><li>Otherwise the default ratecontrol method <var class="var">CQP</var> is used.
  6393. </li></ul>
  6394. <p>Note that depending on your system, a different mode than the one you specified
  6395. may be selected by the encoder. Set the verbosity level to <var class="var">verbose</var> or
  6396. higher to see the actual settings used by the QSV runtime.
  6397. </p>
  6398. </div>
  6399. <div class="subsection-level-extent" id="Global-Options-_002d_003e-MSDK-Options">
  6400. <h4 class="subsection"><span>9.25.2 Global Options -&gt; MSDK Options<a class="copiable-link" href="#Global-Options-_002d_003e-MSDK-Options"> &para;</a></span></h4>
  6401. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  6402. </p>
  6403. <ul class="itemize mark-bullet">
  6404. <li><samp class="option">g/gop_size</samp> -&gt; <samp class="option">GopPicSize</samp>
  6405. </li><li><samp class="option">bf/max_b_frames</samp>+1 -&gt; <samp class="option">GopRefDist</samp>
  6406. </li><li><samp class="option">rc_init_occupancy/rc_initial_buffer_occupancy</samp> -&gt;
  6407. <samp class="option">InitialDelayInKB</samp>
  6408. </li><li><samp class="option">slices</samp> -&gt; <samp class="option">NumSlice</samp>
  6409. </li><li><samp class="option">refs</samp> -&gt; <samp class="option">NumRefFrame</samp>
  6410. </li><li><samp class="option">b_strategy/b_frame_strategy</samp> -&gt; <samp class="option">BRefType</samp>
  6411. </li><li><samp class="option">cgop/CLOSED_GOP</samp> codec flag -&gt; <samp class="option">GopOptFlag</samp>
  6412. </li><li>For the <var class="var">CQP</var> mode, the <samp class="option">i_qfactor/i_qoffset</samp> and
  6413. <samp class="option">b_qfactor/b_qoffset</samp> set the difference between <var class="var">QPP</var> and <var class="var">QPI</var>,
  6414. and <var class="var">QPP</var> and <var class="var">QPB</var> respectively.
  6415. </li><li>Setting the <samp class="option">coder</samp> option to the value <var class="var">vlc</var> will make the H.264
  6416. encoder use CAVLC instead of CABAC.
  6417. </li></ul>
  6418. </div>
  6419. <div class="subsection-level-extent" id="Common-Options-1">
  6420. <h4 class="subsection"><span>9.25.3 Common Options<a class="copiable-link" href="#Common-Options-1"> &para;</a></span></h4>
  6421. <p>Following options are used by all qsv encoders.
  6422. </p>
  6423. <dl class="table">
  6424. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  6425. <dd><p>Specifies how many asynchronous operations an application performs
  6426. before the application explicitly synchronizes the result. If zero,
  6427. the value is not specified.
  6428. </p>
  6429. </dd>
  6430. <dt><samp class="option"><var class="var">preset</var></samp></dt>
  6431. <dd><p>This option itemizes a range of choices from veryfast (best speed) to veryslow
  6432. (best quality).
  6433. </p><dl class="table">
  6434. <dt>&lsquo;<samp class="samp">veryfast</samp>&rsquo;</dt>
  6435. <dt>&lsquo;<samp class="samp">faster</samp>&rsquo;</dt>
  6436. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  6437. <dt>&lsquo;<samp class="samp">medium</samp>&rsquo;</dt>
  6438. <dt>&lsquo;<samp class="samp">slow</samp>&rsquo;</dt>
  6439. <dt>&lsquo;<samp class="samp">slower</samp>&rsquo;</dt>
  6440. <dt>&lsquo;<samp class="samp">veryslow</samp>&rsquo;</dt>
  6441. </dl>
  6442. </dd>
  6443. <dt><samp class="option"><var class="var">forced_idr</var></samp></dt>
  6444. <dd><p>Forcing I frames as IDR frames.
  6445. </p>
  6446. </dd>
  6447. <dt><samp class="option"><var class="var">low_power</var></samp></dt>
  6448. <dd><p>For encoders set this flag to ON to reduce power consumption and GPU usage.
  6449. </p></dd>
  6450. </dl>
  6451. </div>
  6452. <div class="subsection-level-extent" id="Runtime-Options">
  6453. <h4 class="subsection"><span>9.25.4 Runtime Options<a class="copiable-link" href="#Runtime-Options"> &para;</a></span></h4>
  6454. <p>Following options can be used durning qsv encoding.
  6455. </p>
  6456. <dl class="table">
  6457. <dt><samp class="option"><var class="var">global_quality</var></samp></dt>
  6458. <dt><samp class="option"><var class="var">i_quant_factor</var></samp></dt>
  6459. <dt><samp class="option"><var class="var">i_quant_offset</var></samp></dt>
  6460. <dt><samp class="option"><var class="var">b_quant_factor</var></samp></dt>
  6461. <dt><samp class="option"><var class="var">b_quant_offset</var></samp></dt>
  6462. <dd><p>Supported in h264_qsv and hevc_qsv.
  6463. Change these value to reset qsv codec&rsquo;s qp configuration.
  6464. </p>
  6465. </dd>
  6466. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6467. <dd><p>Supported in h264_qsv and hevc_qsv.
  6468. Change this value to reset qsv codec&rsquo;s MaxFrameSize configuration.
  6469. </p>
  6470. </dd>
  6471. <dt><samp class="option"><var class="var">gop_size</var></samp></dt>
  6472. <dd><p>Change this value to reset qsv codec&rsquo;s gop configuration.
  6473. </p>
  6474. </dd>
  6475. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6476. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6477. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6478. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6479. <dd><p>Supported in h264_qsv and hevc_qsv.
  6480. Change these value to reset qsv codec&rsquo;s Intra Refresh configuration.
  6481. </p>
  6482. </dd>
  6483. <dt><samp class="option"><var class="var">qmax</var></samp></dt>
  6484. <dt><samp class="option"><var class="var">qmin</var></samp></dt>
  6485. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6486. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6487. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6488. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6489. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6490. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6491. <dd><p>Supported in h264_qsv.
  6492. Change these value to reset qsv codec&rsquo;s max/min qp configuration.
  6493. </p>
  6494. </dd>
  6495. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6496. <dd><p>Supported in h264_qsv, hevc_qsv and av1_qsv.
  6497. Change this value to reset qsv codec&rsquo;s low_delay_brc configuration.
  6498. </p>
  6499. </dd>
  6500. <dt><samp class="option"><var class="var">framerate</var></samp></dt>
  6501. <dd><p>Change this value to reset qsv codec&rsquo;s framerate configuration.
  6502. </p>
  6503. </dd>
  6504. <dt><samp class="option"><var class="var">bit_rate</var></samp></dt>
  6505. <dt><samp class="option"><var class="var">rc_buffer_size</var></samp></dt>
  6506. <dt><samp class="option"><var class="var">rc_initial_buffer_occupancy</var></samp></dt>
  6507. <dt><samp class="option"><var class="var">rc_max_rate</var></samp></dt>
  6508. <dd><p>Change these value to reset qsv codec&rsquo;s bitrate control configuration.
  6509. </p>
  6510. </dd>
  6511. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6512. <dd><p>Supported in h264_qsv and hevc_qsv.
  6513. Change this value to reset qsv codec&rsquo;s pic_timing_sei configuration.
  6514. </p></dd>
  6515. </dl>
  6516. </div>
  6517. <div class="subsection-level-extent" id="H264-options">
  6518. <h4 class="subsection"><span>9.25.5 H264 options<a class="copiable-link" href="#H264-options"> &para;</a></span></h4>
  6519. <p>These options are used by h264_qsv
  6520. </p>
  6521. <dl class="table">
  6522. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6523. <dd><p>Extended bitrate control.
  6524. </p>
  6525. </dd>
  6526. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6527. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6528. intra refresh cycle.
  6529. </p>
  6530. </dd>
  6531. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6532. <dd><p>Enable rate distortion optimization.
  6533. </p>
  6534. </dd>
  6535. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6536. <dd><p>Maximum encoded frame size in bytes.
  6537. </p>
  6538. </dd>
  6539. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6540. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6541. than zero, then for I frames the value set by max_frame_size is ignored.
  6542. </p>
  6543. </dd>
  6544. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6545. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6546. than zero, then for P frames the value set by max_frame_size is ignored.
  6547. </p>
  6548. </dd>
  6549. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6550. <dd><p>Maximum encoded slice size in bytes.
  6551. </p>
  6552. </dd>
  6553. <dt><samp class="option"><var class="var">bitrate_limit</var></samp></dt>
  6554. <dd><p>Toggle bitrate limitations.
  6555. Modifies bitrate to be in the range imposed by the QSV encoder. Setting this
  6556. flag off may lead to violation of HRD conformance. Mind that specifying bitrate
  6557. below the QSV encoder range might significantly affect quality. If on this
  6558. option takes effect in non CQP modes: if bitrate is not in the range imposed
  6559. by the QSV encoder, it will be changed to be in the range.
  6560. </p>
  6561. </dd>
  6562. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6563. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6564. improves subjective visual quality. Enabling this flag may have negative impact
  6565. on performance and objective visual quality metric.
  6566. </p>
  6567. </dd>
  6568. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6569. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6570. more accurate bitrate control to minimize the variance of bitstream size frame
  6571. by frame. Value: -1-default 0-off 1-on
  6572. </p>
  6573. </dd>
  6574. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6575. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6576. to allow changing of frame type from P and B to I.
  6577. </p>
  6578. </dd>
  6579. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6580. <dd><p>This flag controls changing of frame type from B to P.
  6581. </p>
  6582. </dd>
  6583. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6584. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6585. </p>
  6586. </dd>
  6587. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6588. <dd><p>This option controls usage of B frames as reference.
  6589. </p>
  6590. </dd>
  6591. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6592. <dd><p>This option disable deblocking. It has value in range 0~2.
  6593. </p>
  6594. </dd>
  6595. <dt><samp class="option"><var class="var">cavlc</var></samp></dt>
  6596. <dd><p>If set, CAVLC is used; if unset, CABAC is used for encoding.
  6597. </p>
  6598. </dd>
  6599. <dt><samp class="option"><var class="var">vcm</var></samp></dt>
  6600. <dd><p>Video conferencing mode, please see ratecontrol method.
  6601. </p>
  6602. </dd>
  6603. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6604. <dd><p>Distance (in I-frames) between IDR frames.
  6605. </p>
  6606. </dd>
  6607. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6608. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6609. </p>
  6610. </dd>
  6611. <dt><samp class="option"><var class="var">single_sei_nal_unit</var></samp></dt>
  6612. <dd><p>Put all the SEI messages into one NALU.
  6613. </p>
  6614. </dd>
  6615. <dt><samp class="option"><var class="var">max_dec_frame_buffering</var></samp></dt>
  6616. <dd><p>Maximum number of frames buffered in the DPB.
  6617. </p>
  6618. </dd>
  6619. <dt><samp class="option"><var class="var">look_ahead</var></samp></dt>
  6620. <dd><p>Use VBR algorithm with look ahead.
  6621. </p>
  6622. </dd>
  6623. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6624. <dd><p>Depth of look ahead in number frames.
  6625. </p>
  6626. </dd>
  6627. <dt><samp class="option"><var class="var">look_ahead_downsampling</var></samp></dt>
  6628. <dd><p>Downscaling factor for the frames saved for the lookahead analysis.
  6629. </p><dl class="table">
  6630. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6631. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6632. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6633. <dt>&lsquo;<samp class="samp">2x</samp>&rsquo;</dt>
  6634. <dt>&lsquo;<samp class="samp">4x</samp>&rsquo;</dt>
  6635. </dl>
  6636. </dd>
  6637. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6638. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6639. error resilience without significant impact on encoded bitstream size caused by
  6640. I frames. The SDK encoder achieves this by encoding part of each frame in
  6641. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  6642. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  6643. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  6644. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  6645. intra refresh, B frame should be set to 0.
  6646. </p>
  6647. </dd>
  6648. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6649. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6650. invalid values.
  6651. </p>
  6652. </dd>
  6653. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6654. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6655. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6656. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6657. </p>
  6658. </dd>
  6659. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6660. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6661. </p>
  6662. </dd>
  6663. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6664. <dd><dl class="table">
  6665. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6666. <dt>&lsquo;<samp class="samp">baseline</samp>&rsquo;</dt>
  6667. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6668. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6669. </dl>
  6670. </dd>
  6671. <dt><samp class="option"><var class="var">a53cc</var></samp></dt>
  6672. <dd><p>Use A53 Closed Captions (if available).
  6673. </p>
  6674. </dd>
  6675. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  6676. <dd><p>Insert the Access Unit Delimiter NAL.
  6677. </p>
  6678. </dd>
  6679. <dt><samp class="option"><var class="var">mfmode</var></samp></dt>
  6680. <dd><p>Multi-Frame Mode.
  6681. </p><dl class="table">
  6682. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6683. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6684. </dl>
  6685. </dd>
  6686. <dt><samp class="option"><var class="var">repeat_pps</var></samp></dt>
  6687. <dd><p>Repeat pps for every frame.
  6688. </p>
  6689. </dd>
  6690. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6691. <dd><p>Maximum video quantizer scale for I frame.
  6692. </p>
  6693. </dd>
  6694. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6695. <dd><p>Minimum video quantizer scale for I frame.
  6696. </p>
  6697. </dd>
  6698. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6699. <dd><p>Maximum video quantizer scale for P frame.
  6700. </p>
  6701. </dd>
  6702. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6703. <dd><p>Minimum video quantizer scale for P frame.
  6704. </p>
  6705. </dd>
  6706. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6707. <dd><p>Maximum video quantizer scale for B frame.
  6708. </p>
  6709. </dd>
  6710. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6711. <dd><p>Minimum video quantizer scale for B frame.
  6712. </p>
  6713. </dd>
  6714. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  6715. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6716. </p><dl class="table">
  6717. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6718. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  6719. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  6720. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6721. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  6722. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  6723. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  6724. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  6725. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  6726. </dl>
  6727. </dd>
  6728. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  6729. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6730. </p>
  6731. </dd>
  6732. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  6733. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6734. </p>
  6735. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  6736. average variable bitrate control (AVBR) algorithm.
  6737. The algorithm focuses on overall encoding quality while meeting the specified
  6738. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  6739. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  6740. instant bitrate is not capped or padded.
  6741. </p>
  6742. </dd>
  6743. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  6744. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6745. defines the usage of this metadata.
  6746. </p><dl class="table">
  6747. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  6748. <dd><p>Frame skipping is disabled.
  6749. </p></dd>
  6750. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  6751. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6752. skipped.
  6753. </p></dd>
  6754. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  6755. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  6756. frames are still used in brc. For example, gop still include skipped frames, and
  6757. the frames after skipped frames will be larger in size.
  6758. </p></dd>
  6759. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  6760. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  6761. frame.
  6762. </p></dd>
  6763. </dl>
  6764. </dd>
  6765. </dl>
  6766. </div>
  6767. <div class="subsection-level-extent" id="HEVC-Options-1">
  6768. <h4 class="subsection"><span>9.25.6 HEVC Options<a class="copiable-link" href="#HEVC-Options-1"> &para;</a></span></h4>
  6769. <p>These options are used by hevc_qsv
  6770. </p>
  6771. <dl class="table">
  6772. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6773. <dd><p>Extended bitrate control.
  6774. </p>
  6775. </dd>
  6776. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6777. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6778. intra refresh cycle.
  6779. </p>
  6780. </dd>
  6781. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6782. <dd><p>Enable rate distortion optimization.
  6783. </p>
  6784. </dd>
  6785. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6786. <dd><p>Maximum encoded frame size in bytes.
  6787. </p>
  6788. </dd>
  6789. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6790. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6791. than zero, then for I frames the value set by max_frame_size is ignored.
  6792. </p>
  6793. </dd>
  6794. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6795. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6796. than zero, then for P frames the value set by max_frame_size is ignored.
  6797. </p>
  6798. </dd>
  6799. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6800. <dd><p>Maximum encoded slice size in bytes.
  6801. </p>
  6802. </dd>
  6803. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6804. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6805. improves subjective visual quality. Enabling this flag may have negative impact
  6806. on performance and objective visual quality metric.
  6807. </p>
  6808. </dd>
  6809. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6810. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6811. more accurate bitrate control to minimize the variance of bitstream size frame
  6812. by frame. Value: -1-default 0-off 1-on
  6813. </p>
  6814. </dd>
  6815. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6816. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6817. to allow changing of frame type from P and B to I.
  6818. </p>
  6819. </dd>
  6820. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6821. <dd><p>This flag controls changing of frame type from B to P.
  6822. </p>
  6823. </dd>
  6824. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6825. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6826. </p>
  6827. </dd>
  6828. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6829. <dd><p>This option controls usage of B frames as reference.
  6830. </p>
  6831. </dd>
  6832. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6833. <dd><p>This option disable deblocking. It has value in range 0~2.
  6834. </p>
  6835. </dd>
  6836. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6837. <dd><p>Distance (in I-frames) between IDR frames.
  6838. </p><dl class="table">
  6839. <dt>&lsquo;<samp class="samp">begin_only</samp>&rsquo;</dt>
  6840. <dd><p>Output an IDR-frame only at the beginning of the stream.
  6841. </p></dd>
  6842. </dl>
  6843. </dd>
  6844. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  6845. <dd><p>A user plugin to load in an internal session.
  6846. </p><dl class="table">
  6847. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  6848. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  6849. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  6850. </dl>
  6851. </dd>
  6852. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  6853. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in
  6854. an internal session.
  6855. </p>
  6856. </dd>
  6857. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6858. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  6859. </p>
  6860. </dd>
  6861. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6862. <dd><p>Set the encoding profile (scc requires libmfx &gt;= 1.32).
  6863. </p>
  6864. <dl class="table">
  6865. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6866. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6867. <dt>&lsquo;<samp class="samp">main10</samp>&rsquo;</dt>
  6868. <dt>&lsquo;<samp class="samp">mainsp</samp>&rsquo;</dt>
  6869. <dt>&lsquo;<samp class="samp">rext</samp>&rsquo;</dt>
  6870. <dt>&lsquo;<samp class="samp">scc</samp>&rsquo;</dt>
  6871. </dl>
  6872. </dd>
  6873. <dt><samp class="option"><var class="var">tier</var></samp></dt>
  6874. <dd><p>Set the encoding tier (only level &gt;= 4 can support high tier).
  6875. This option only takes effect when the level option is specified.
  6876. </p>
  6877. <dl class="table">
  6878. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6879. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6880. </dl>
  6881. </dd>
  6882. <dt><samp class="option"><var class="var">gpb</var></samp></dt>
  6883. <dd><p>1: GPB (generalized P/B frame)
  6884. </p>
  6885. <p>0: regular P frame.
  6886. </p>
  6887. </dd>
  6888. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  6889. <dd><p>Number of columns for tiled encoding.
  6890. </p>
  6891. </dd>
  6892. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  6893. <dd><p>Number of rows for tiled encoding.
  6894. </p>
  6895. </dd>
  6896. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  6897. <dd><p>Insert the Access Unit Delimiter NAL.
  6898. </p>
  6899. </dd>
  6900. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6901. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6902. </p>
  6903. </dd>
  6904. <dt><samp class="option"><var class="var">transform_skip</var></samp></dt>
  6905. <dd><p>Turn this option ON to enable transformskip. It is supported on platform equal
  6906. or newer than ICL.
  6907. </p>
  6908. </dd>
  6909. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6910. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6911. error resilience without significant impact on encoded bitstream size caused by
  6912. I frames. The SDK encoder achieves this by encoding part of each frame in
  6913. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  6914. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  6915. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  6916. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  6917. intra refresh, B frame should be set to 0.
  6918. </p>
  6919. </dd>
  6920. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6921. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6922. invalid values.
  6923. </p>
  6924. </dd>
  6925. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6926. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6927. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6928. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6929. </p>
  6930. </dd>
  6931. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6932. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6933. </p>
  6934. </dd>
  6935. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6936. <dd><p>Maximum video quantizer scale for I frame.
  6937. </p>
  6938. </dd>
  6939. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6940. <dd><p>Minimum video quantizer scale for I frame.
  6941. </p>
  6942. </dd>
  6943. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6944. <dd><p>Maximum video quantizer scale for P frame.
  6945. </p>
  6946. </dd>
  6947. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6948. <dd><p>Minimum video quantizer scale for P frame.
  6949. </p>
  6950. </dd>
  6951. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6952. <dd><p>Maximum video quantizer scale for B frame.
  6953. </p>
  6954. </dd>
  6955. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6956. <dd><p>Minimum video quantizer scale for B frame.
  6957. </p>
  6958. </dd>
  6959. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  6960. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6961. </p><dl class="table">
  6962. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6963. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  6964. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  6965. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6966. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  6967. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  6968. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  6969. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  6970. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  6971. </dl>
  6972. </dd>
  6973. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  6974. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6975. </p>
  6976. </dd>
  6977. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  6978. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6979. </p>
  6980. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  6981. average variable bitrate control (AVBR) algorithm.
  6982. The algorithm focuses on overall encoding quality while meeting the specified
  6983. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  6984. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  6985. instant bitrate is not capped or padded.
  6986. </p>
  6987. </dd>
  6988. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  6989. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6990. defines the usage of this metadata.
  6991. </p><dl class="table">
  6992. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  6993. <dd><p>Frame skipping is disabled.
  6994. </p></dd>
  6995. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  6996. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6997. skipped.
  6998. </p></dd>
  6999. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  7000. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  7001. frames are still used in brc. For example, gop still include skipped frames, and
  7002. the frames after skipped frames will be larger in size.
  7003. </p></dd>
  7004. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  7005. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  7006. frame.
  7007. </p></dd>
  7008. </dl>
  7009. </dd>
  7010. </dl>
  7011. </div>
  7012. <div class="subsection-level-extent" id="MPEG2-Options">
  7013. <h4 class="subsection"><span>9.25.7 MPEG2 Options<a class="copiable-link" href="#MPEG2-Options"> &para;</a></span></h4>
  7014. <p>These options are used by mpeg2_qsv
  7015. </p><dl class="table">
  7016. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7017. <dd><dl class="table">
  7018. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7019. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  7020. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  7021. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  7022. </dl>
  7023. </dd>
  7024. </dl>
  7025. </div>
  7026. <div class="subsection-level-extent" id="VP9-Options">
  7027. <h4 class="subsection"><span>9.25.8 VP9 Options<a class="copiable-link" href="#VP9-Options"> &para;</a></span></h4>
  7028. <p>These options are used by vp9_qsv
  7029. </p><dl class="table">
  7030. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7031. <dd><dl class="table">
  7032. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7033. <dt>&lsquo;<samp class="samp">profile0</samp>&rsquo;</dt>
  7034. <dt>&lsquo;<samp class="samp">profile1</samp>&rsquo;</dt>
  7035. <dt>&lsquo;<samp class="samp">profile2</samp>&rsquo;</dt>
  7036. <dt>&lsquo;<samp class="samp">profile3</samp>&rsquo;</dt>
  7037. </dl>
  7038. </dd>
  7039. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7040. <dd><p>Number of columns for tiled encoding (requires libmfx &gt;= 1.29).
  7041. </p>
  7042. </dd>
  7043. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7044. <dd><p>Number of rows for tiled encoding (requires libmfx &gt;= 1.29).
  7045. </p></dd>
  7046. </dl>
  7047. </div>
  7048. <div class="subsection-level-extent" id="AV1-Options">
  7049. <h4 class="subsection"><span>9.25.9 AV1 Options<a class="copiable-link" href="#AV1-Options"> &para;</a></span></h4>
  7050. <p>These options are used by av1_qsv (requires libvpl).
  7051. </p><dl class="table">
  7052. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7053. <dd><dl class="table">
  7054. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7055. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  7056. </dl>
  7057. </dd>
  7058. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7059. <dd><p>Number of columns for tiled encoding.
  7060. </p>
  7061. </dd>
  7062. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7063. <dd><p>Number of rows for tiled encoding.
  7064. </p>
  7065. </dd>
  7066. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  7067. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  7068. to allow changing of frame type from P and B to I.
  7069. </p>
  7070. </dd>
  7071. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  7072. <dd><p>This flag controls changing of frame type from B to P.
  7073. </p>
  7074. </dd>
  7075. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  7076. <dd><p>This option controls usage of B frames as reference.
  7077. </p>
  7078. </dd>
  7079. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  7080. <dd><p>Extended bitrate control.
  7081. </p>
  7082. </dd>
  7083. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  7084. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  7085. </p>
  7086. </dd>
  7087. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  7088. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  7089. more accurate bitrate control to minimize the variance of bitstream size frame
  7090. by frame. Value: -1-default 0-off 1-on
  7091. </p>
  7092. </dd>
  7093. <dt><samp class="option">max_frame_size</samp></dt>
  7094. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7095. the limitation, encoder will adjust the QP value to control the frame size.
  7096. Invalid in CQP rate control mode.
  7097. </p></dd>
  7098. </dl>
  7099. </div>
  7100. </div>
  7101. <div class="section-level-extent" id="snow">
  7102. <h3 class="section"><span>9.26 snow<a class="copiable-link" href="#snow"> &para;</a></span></h3>
  7103. <ul class="mini-toc">
  7104. <li><a href="#Options-42" accesskey="1">Options</a></li>
  7105. </ul>
  7106. <div class="subsection-level-extent" id="Options-42">
  7107. <h4 class="subsection"><span>9.26.1 Options<a class="copiable-link" href="#Options-42"> &para;</a></span></h4>
  7108. <dl class="table">
  7109. <dt><samp class="option">iterative_dia_size</samp></dt>
  7110. <dd><p>dia size for the iterative motion estimation
  7111. </p></dd>
  7112. </dl>
  7113. </div>
  7114. </div>
  7115. <div class="section-level-extent" id="VAAPI-encoders">
  7116. <h3 class="section"><span>9.27 VAAPI encoders<a class="copiable-link" href="#VAAPI-encoders"> &para;</a></span></h3>
  7117. <p>Wrappers for hardware encoders accessible via VAAPI.
  7118. </p>
  7119. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  7120. in software frames, use the <samp class="option">hwupload</samp> filter to upload them to the GPU.
  7121. </p>
  7122. <p>The following standard libavcodec options are used:
  7123. </p><ul class="itemize mark-bullet">
  7124. <li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  7125. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  7126. </li><li><samp class="option">profile</samp>
  7127. <p>If not set, this will be determined automatically from the format of the input
  7128. frames and the profiles supported by the driver.
  7129. </p></li><li><samp class="option">level</samp>
  7130. </li><li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  7131. </li><li><samp class="option">maxrate</samp> / <samp class="option">rc_max_rate</samp>
  7132. </li><li><samp class="option">bufsize</samp> / <samp class="option">rc_buffer_size</samp>
  7133. </li><li><samp class="option">rc_init_occupancy</samp> / <samp class="option">rc_initial_buffer_occupancy</samp>
  7134. </li><li><samp class="option">compression_level</samp>
  7135. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  7136. </p></li><li><samp class="option">q</samp> / <samp class="option">global_quality</samp>
  7137. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  7138. </p></li><li><samp class="option">qmin</samp>
  7139. </li><li><samp class="option">qmax</samp>
  7140. </li><li><samp class="option">i_qfactor</samp> / <samp class="option">i_quant_factor</samp>
  7141. </li><li><samp class="option">i_qoffset</samp> / <samp class="option">i_quant_offset</samp>
  7142. </li><li><samp class="option">b_qfactor</samp> / <samp class="option">b_quant_factor</samp>
  7143. </li><li><samp class="option">b_qoffset</samp> / <samp class="option">b_quant_offset</samp>
  7144. </li><li><samp class="option">slices</samp>
  7145. </li></ul>
  7146. <p>All encoders support the following options:
  7147. </p><dl class="table">
  7148. <dt><samp class="option">low_power</samp></dt>
  7149. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  7150. less power than the default encoder; setting this option will attempt to use
  7151. that encoder. Note that it may support a reduced feature set, so some other
  7152. options may not be available in this mode.
  7153. </p>
  7154. </dd>
  7155. <dt><samp class="option">idr_interval</samp></dt>
  7156. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  7157. open-GOP mode. The intra frames are still IRAPs, but will not include global
  7158. headers and may have non-decodable leading pictures.
  7159. </p>
  7160. </dd>
  7161. <dt><samp class="option">b_depth</samp></dt>
  7162. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  7163. will refer only to P- or I-frames. When set to greater values multiple layers
  7164. of B-frames will be present, frames in each layer only referring to frames in
  7165. higher layers.
  7166. </p>
  7167. </dd>
  7168. <dt><samp class="option">async_depth</samp></dt>
  7169. <dd><p>Maximum processing parallelism. Increase this to improve single channel
  7170. performance. This option doesn&rsquo;t work if driver doesn&rsquo;t implement vaSyncBuffer
  7171. function. Please make sure there are enough hw_frames allocated if a large
  7172. number of async_depth is used.
  7173. </p>
  7174. </dd>
  7175. <dt><samp class="option">max_frame_size</samp></dt>
  7176. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7177. the limitation, encoder will adjust the QP value to control the frame size.
  7178. Invalid in CQP rate control mode.
  7179. </p>
  7180. </dd>
  7181. <dt><samp class="option">rc_mode</samp></dt>
  7182. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  7183. modes.
  7184. </p>
  7185. <p>Possible modes:
  7186. </p><dl class="table">
  7187. <dt><samp class="option">auto</samp></dt>
  7188. <dd><p>Choose the mode automatically based on driver support and the other options.
  7189. This is the default.
  7190. </p></dd>
  7191. <dt><samp class="option">CQP</samp></dt>
  7192. <dd><p>Constant-quality.
  7193. </p></dd>
  7194. <dt><samp class="option">CBR</samp></dt>
  7195. <dd><p>Constant-bitrate.
  7196. </p></dd>
  7197. <dt><samp class="option">VBR</samp></dt>
  7198. <dd><p>Variable-bitrate.
  7199. </p></dd>
  7200. <dt><samp class="option">ICQ</samp></dt>
  7201. <dd><p>Intelligent constant-quality.
  7202. </p></dd>
  7203. <dt><samp class="option">QVBR</samp></dt>
  7204. <dd><p>Quality-defined variable-bitrate.
  7205. </p></dd>
  7206. <dt><samp class="option">AVBR</samp></dt>
  7207. <dd><p>Average variable bitrate.
  7208. </p></dd>
  7209. </dl>
  7210. </dd>
  7211. <dt><samp class="option">blbrc</samp></dt>
  7212. <dd><p>Enable block level rate control, which assigns different bitrate block by block.
  7213. Invalid for CQP mode.
  7214. </p>
  7215. </dd>
  7216. </dl>
  7217. <p>Each encoder also has its own specific options:
  7218. </p><dl class="table">
  7219. <dt><samp class="option">av1_vaapi</samp></dt>
  7220. <dd><p><samp class="option">profile</samp> sets the value of <em class="emph">seq_profile</em>.
  7221. <samp class="option">tier</samp> sets the value of <em class="emph">seq_tier</em>.
  7222. <samp class="option">level</samp> sets the value of <em class="emph">seq_level_idx</em>.
  7223. </p>
  7224. <dl class="table">
  7225. <dt><samp class="option">tiles</samp></dt>
  7226. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7227. (default is auto, which means use minimal tile column/row number).
  7228. </p></dd>
  7229. <dt><samp class="option">tile_groups</samp></dt>
  7230. <dd><p>Set tile groups number. All the tiles will be distributed as evenly as possible to
  7231. each tile group. (default is 1).
  7232. </p></dd>
  7233. </dl>
  7234. </dd>
  7235. <dt><samp class="option">h264_vaapi</samp></dt>
  7236. <dd><p><samp class="option">profile</samp> sets the value of <em class="emph">profile_idc</em> and the <em class="emph">constraint_set*_flag</em>s.
  7237. <samp class="option">level</samp> sets the value of <em class="emph">level_idc</em>.
  7238. </p>
  7239. <dl class="table">
  7240. <dt><samp class="option">coder</samp></dt>
  7241. <dd><p>Set entropy encoder (default is <em class="emph">cabac</em>). Possible values:
  7242. </p>
  7243. <dl class="table">
  7244. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  7245. <dt>&lsquo;<samp class="samp">cabac</samp>&rsquo;</dt>
  7246. <dd><p>Use CABAC.
  7247. </p>
  7248. </dd>
  7249. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  7250. <dt>&lsquo;<samp class="samp">cavlc</samp>&rsquo;</dt>
  7251. <dd><p>Use CAVLC.
  7252. </p></dd>
  7253. </dl>
  7254. </dd>
  7255. <dt><samp class="option">aud</samp></dt>
  7256. <dd><p>Include access unit delimiters in the stream (not included by default).
  7257. </p>
  7258. </dd>
  7259. <dt><samp class="option">sei</samp></dt>
  7260. <dd><p>Set SEI message types to include.
  7261. Some combination of the following values:
  7262. </p><dl class="table">
  7263. <dt>&lsquo;<samp class="samp">identifier</samp>&rsquo;</dt>
  7264. <dd><p>Include a <em class="emph">user_data_unregistered</em> message containing information about
  7265. the encoder.
  7266. </p></dd>
  7267. <dt>&lsquo;<samp class="samp">timing</samp>&rsquo;</dt>
  7268. <dd><p>Include picture timing parameters (<em class="emph">buffering_period</em> and
  7269. <em class="emph">pic_timing</em> messages).
  7270. </p></dd>
  7271. <dt>&lsquo;<samp class="samp">recovery_point</samp>&rsquo;</dt>
  7272. <dd><p>Include recovery points where appropriate (<em class="emph">recovery_point</em> messages).
  7273. </p></dd>
  7274. </dl>
  7275. </dd>
  7276. </dl>
  7277. </dd>
  7278. <dt><samp class="option">hevc_vaapi</samp></dt>
  7279. <dd><p><samp class="option">profile</samp> and <samp class="option">level</samp> set the values of
  7280. <em class="emph">general_profile_idc</em> and <em class="emph">general_level_idc</em> respectively.
  7281. </p>
  7282. <dl class="table">
  7283. <dt><samp class="option">aud</samp></dt>
  7284. <dd><p>Include access unit delimiters in the stream (not included by default).
  7285. </p>
  7286. </dd>
  7287. <dt><samp class="option">tier</samp></dt>
  7288. <dd><p>Set <em class="emph">general_tier_flag</em>. This may affect the level chosen for the stream
  7289. if it is not explicitly specified.
  7290. </p>
  7291. </dd>
  7292. <dt><samp class="option">sei</samp></dt>
  7293. <dd><p>Set SEI message types to include.
  7294. Some combination of the following values:
  7295. </p><dl class="table">
  7296. <dt>&lsquo;<samp class="samp">hdr</samp>&rsquo;</dt>
  7297. <dd><p>Include HDR metadata if the input frames have it
  7298. (<em class="emph">mastering_display_colour_volume</em> and <em class="emph">content_light_level</em>
  7299. messages).
  7300. </p></dd>
  7301. </dl>
  7302. </dd>
  7303. <dt><samp class="option">tiles</samp></dt>
  7304. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7305. Larger numbers allow greater parallelism in both encoding and decoding, but
  7306. may decrease coding efficiency.
  7307. </p>
  7308. </dd>
  7309. </dl>
  7310. </dd>
  7311. <dt><samp class="option">mjpeg_vaapi</samp></dt>
  7312. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  7313. quantisation and huffman tables - <samp class="option">global_quality</samp> scales the standard
  7314. quantisation table (range 1-100).
  7315. </p>
  7316. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  7317. supported, and will create an RGB JPEG.
  7318. </p>
  7319. <dl class="table">
  7320. <dt><samp class="option">jfif</samp></dt>
  7321. <dd><p>Include JFIF header in each frame (not included by default).
  7322. </p></dd>
  7323. <dt><samp class="option">huffman</samp></dt>
  7324. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  7325. a few hundred bytes in each output frame, but may lose compatibility with some
  7326. JPEG decoders which don&rsquo;t fully handle MJPEG.
  7327. </p></dd>
  7328. </dl>
  7329. </dd>
  7330. <dt><samp class="option">mpeg2_vaapi</samp></dt>
  7331. <dd><p><samp class="option">profile</samp> and <samp class="option">level</samp> set the value of <em class="emph">profile_and_level_indication</em>.
  7332. </p>
  7333. </dd>
  7334. <dt><samp class="option">vp8_vaapi</samp></dt>
  7335. <dd><p>B-frames are not supported.
  7336. </p>
  7337. <p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for non-key frames (range 0-127).
  7338. </p>
  7339. <dl class="table">
  7340. <dt><samp class="option">loop_filter_level</samp></dt>
  7341. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7342. <dd><p>Manually set the loop filter parameters.
  7343. </p></dd>
  7344. </dl>
  7345. </dd>
  7346. <dt><samp class="option">vp9_vaapi</samp></dt>
  7347. <dd><p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for P-frames (range 0-255).
  7348. </p>
  7349. <dl class="table">
  7350. <dt><samp class="option">loop_filter_level</samp></dt>
  7351. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7352. <dd><p>Manually set the loop filter parameters.
  7353. </p></dd>
  7354. </dl>
  7355. <p>B-frames are supported, but the output stream is always in encode order rather than display
  7356. order. If B-frames are enabled, it may be necessary to use the <samp class="option">vp9_raw_reorder</samp>
  7357. bitstream filter to modify the output stream to display frames in the correct order.
  7358. </p>
  7359. <p>Only normal frames are produced - the <samp class="option">vp9_superframe</samp> bitstream filter may be
  7360. required to produce a stream usable with all decoders.
  7361. </p>
  7362. </dd>
  7363. </dl>
  7364. </div>
  7365. <div class="section-level-extent" id="vbn">
  7366. <h3 class="section"><span>9.28 vbn<a class="copiable-link" href="#vbn"> &para;</a></span></h3>
  7367. <p>Vizrt Binary Image encoder.
  7368. </p>
  7369. <p>This format is used by the broadcast vendor Vizrt for quick texture streaming.
  7370. Advanced features of the format such as LZW compression of texture data or
  7371. generation of mipmaps are not supported.
  7372. </p>
  7373. <ul class="mini-toc">
  7374. <li><a href="#Options-43" accesskey="1">Options</a></li>
  7375. </ul>
  7376. <div class="subsection-level-extent" id="Options-43">
  7377. <h4 class="subsection"><span>9.28.1 Options<a class="copiable-link" href="#Options-43"> &para;</a></span></h4>
  7378. <dl class="table">
  7379. <dt><samp class="option">format <var class="var">string</var></samp></dt>
  7380. <dd><p>Sets the texture compression used by the VBN file. Can be <var class="var">dxt1</var>,
  7381. <var class="var">dxt5</var> or <var class="var">raw</var>. Default is <var class="var">dxt5</var>.
  7382. </p></dd>
  7383. </dl>
  7384. </div>
  7385. </div>
  7386. <div class="section-level-extent" id="vc2">
  7387. <h3 class="section"><span>9.29 vc2<a class="copiable-link" href="#vc2"> &para;</a></span></h3>
  7388. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  7389. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  7390. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  7391. other tasks which require low overhead and low compression (like screen
  7392. recording).
  7393. </p>
  7394. <ul class="mini-toc">
  7395. <li><a href="#Options-44" accesskey="1">Options</a></li>
  7396. </ul>
  7397. <div class="subsection-level-extent" id="Options-44">
  7398. <h4 class="subsection"><span>9.29.1 Options<a class="copiable-link" href="#Options-44"> &para;</a></span></h4>
  7399. <dl class="table">
  7400. <dt><samp class="option">b</samp></dt>
  7401. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  7402. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  7403. values (close to the uncompressed bitrate) turn on lossless compression mode.
  7404. </p>
  7405. </dd>
  7406. <dt><samp class="option">field_order</samp></dt>
  7407. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  7408. inputs. Should increase compression with interlaced content as it splits the
  7409. fields and encodes each separately.
  7410. </p>
  7411. </dd>
  7412. <dt><samp class="option">wavelet_depth</samp></dt>
  7413. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  7414. Lower values reduce compression and quality. Less capable decoders may not be
  7415. able to handle values of <samp class="option">wavelet_depth</samp> over 3.
  7416. </p>
  7417. </dd>
  7418. <dt><samp class="option">wavelet_type</samp></dt>
  7419. <dd><p>Sets the transform type. Currently only <var class="var">5_3</var> (LeGall) and <var class="var">9_7</var>
  7420. (Deslauriers-Dubuc)
  7421. are implemented, with 9_7 being the one with better compression and thus
  7422. is the default.
  7423. </p>
  7424. </dd>
  7425. <dt><samp class="option">slice_width</samp></dt>
  7426. <dt><samp class="option">slice_height</samp></dt>
  7427. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  7428. For compatibility with other more limited decoders use <samp class="option">slice_width</samp> of
  7429. 32 and <samp class="option">slice_height</samp> of 8.
  7430. </p>
  7431. </dd>
  7432. <dt><samp class="option">tolerance</samp></dt>
  7433. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  7434. to prevent an expensive search from being run.
  7435. </p>
  7436. </dd>
  7437. <dt><samp class="option">qm</samp></dt>
  7438. <dd><p>Sets the quantization matrix preset to use by default or when <samp class="option">wavelet_depth</samp>
  7439. is set to 5
  7440. </p><ul class="itemize mark-minus">
  7441. <li><var class="var">default</var>
  7442. Uses the default quantization matrix from the specifications, extended with
  7443. values for the fifth level. This provides a good balance between keeping detail
  7444. and omitting artifacts.
  7445. </li><li><var class="var">flat</var>
  7446. Use a completely zeroed out quantization matrix. This increases PSNR but might
  7447. reduce perception. Use in bogus benchmarks.
  7448. </li><li><var class="var">color</var>
  7449. Reduces detail but attempts to preserve color at extremely low bitrates.
  7450. </li></ul>
  7451. </dd>
  7452. </dl>
  7453. </div>
  7454. </div>
  7455. </div>
  7456. <div class="chapter-level-extent" id="Subtitles-Encoders">
  7457. <h2 class="chapter"><span>10 Subtitles Encoders<a class="copiable-link" href="#Subtitles-Encoders"> &para;</a></span></h2>
  7458. <ul class="mini-toc">
  7459. <li><a href="#dvdsub-1" accesskey="1">dvdsub</a></li>
  7460. </ul>
  7461. <div class="section-level-extent" id="dvdsub-1">
  7462. <h3 class="section"><span>10.1 dvdsub<a class="copiable-link" href="#dvdsub-1"> &para;</a></span></h3>
  7463. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  7464. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  7465. and they can also be used in Matroska files.
  7466. </p>
  7467. <ul class="mini-toc">
  7468. <li><a href="#Options-45" accesskey="1">Options</a></li>
  7469. </ul>
  7470. <div class="subsection-level-extent" id="Options-45">
  7471. <h4 class="subsection"><span>10.1.1 Options<a class="copiable-link" href="#Options-45"> &para;</a></span></h4>
  7472. <dl class="table">
  7473. <dt><samp class="option">palette</samp></dt>
  7474. <dd><p>Specify the global palette used by the bitmaps.
  7475. </p>
  7476. <p>The format for this option is a string containing 16 24-bits hexadecimal
  7477. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  7478. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  7479. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  7480. </p>
  7481. </dd>
  7482. <dt><samp class="option">even_rows_fix</samp></dt>
  7483. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  7484. even in all subtitles. This fixes a problem with some players that
  7485. cut off the bottom row if the number is odd. The work-around just adds
  7486. a fully transparent row if needed. The overhead is low, typically
  7487. one byte per subtitle on average.
  7488. </p>
  7489. <p>By default, this work-around is disabled.
  7490. </p></dd>
  7491. </dl>
  7492. </div>
  7493. </div>
  7494. </div>
  7495. <div class="chapter-level-extent" id="See-Also">
  7496. <h2 class="chapter"><span>11 See Also<a class="copiable-link" href="#See-Also"> &para;</a></span></h2>
  7497. <p><a class="url" href="ffmpeg.html">ffmpeg</a>, <a class="url" href="ffplay.html">ffplay</a>, <a class="url" href="ffprobe.html">ffprobe</a>,
  7498. <a class="url" href="libavcodec.html">libavcodec</a>
  7499. </p>
  7500. </div>
  7501. <div class="chapter-level-extent" id="Authors">
  7502. <h2 class="chapter"><span>12 Authors<a class="copiable-link" href="#Authors"> &para;</a></span></h2>
  7503. <p>The FFmpeg developers.
  7504. </p>
  7505. <p>For details about the authorship, see the Git history of the project
  7506. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  7507. <code class="command">git log</code> in the FFmpeg source directory, or browsing the
  7508. online repository at <a class="url" href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  7509. </p>
  7510. <p>Maintainers for the specific components are listed in the file
  7511. <samp class="file">MAINTAINERS</samp> in the source code tree.
  7512. </p>
  7513. </div>
  7514. </div>
  7515. <p style="font-size: small;">
  7516. This document was generated using <a class="uref" href="https://www.gnu.org/software/texinfo/"><em class="emph">makeinfo</em></a>.
  7517. </p>
  7518. </div>
  7519. </body>
  7520. </html>