ffmpeg-codecs.html 301 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899
  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.0.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">1 Description</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">2 Codec Options</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>
  1262. <p>Possible values:
  1263. </p></dd>
  1264. <dt><samp class="option">request_channel_layout <var class="var">integer</var> (<em class="emph">decoding,audio</em>)</samp></dt>
  1265. <dd>
  1266. <p>Possible values:
  1267. </p></dd>
  1268. <dt><samp class="option">rc_max_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1269. <dt><samp class="option">rc_min_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1270. <dt><samp class="option">color_primaries <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1271. <dd><p>Possible values:
  1272. </p><dl class="table">
  1273. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1274. <dd><p>BT.709
  1275. </p></dd>
  1276. <dt>&lsquo;<samp class="samp">bt470m</samp>&rsquo;</dt>
  1277. <dd><p>BT.470 M
  1278. </p></dd>
  1279. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1280. <dd><p>BT.470 BG
  1281. </p></dd>
  1282. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1283. <dd><p>SMPTE 170 M
  1284. </p></dd>
  1285. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1286. <dd><p>SMPTE 240 M
  1287. </p></dd>
  1288. <dt>&lsquo;<samp class="samp">film</samp>&rsquo;</dt>
  1289. <dd><p>Film
  1290. </p></dd>
  1291. <dt>&lsquo;<samp class="samp">bt2020</samp>&rsquo;</dt>
  1292. <dd><p>BT.2020
  1293. </p></dd>
  1294. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1295. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1296. <dd><p>SMPTE ST 428-1
  1297. </p></dd>
  1298. <dt>&lsquo;<samp class="samp">smpte431</samp>&rsquo;</dt>
  1299. <dd><p>SMPTE 431-2
  1300. </p></dd>
  1301. <dt>&lsquo;<samp class="samp">smpte432</samp>&rsquo;</dt>
  1302. <dd><p>SMPTE 432-1
  1303. </p></dd>
  1304. <dt>&lsquo;<samp class="samp">jedec-p22</samp>&rsquo;</dt>
  1305. <dd><p>JEDEC P22
  1306. </p></dd>
  1307. </dl>
  1308. </dd>
  1309. <dt><samp class="option">color_trc <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1310. <dd><p>Possible values:
  1311. </p><dl class="table">
  1312. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1313. <dd><p>BT.709
  1314. </p></dd>
  1315. <dt>&lsquo;<samp class="samp">gamma22</samp>&rsquo;</dt>
  1316. <dd><p>BT.470 M
  1317. </p></dd>
  1318. <dt>&lsquo;<samp class="samp">gamma28</samp>&rsquo;</dt>
  1319. <dd><p>BT.470 BG
  1320. </p></dd>
  1321. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1322. <dd><p>SMPTE 170 M
  1323. </p></dd>
  1324. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1325. <dd><p>SMPTE 240 M
  1326. </p></dd>
  1327. <dt>&lsquo;<samp class="samp">linear</samp>&rsquo;</dt>
  1328. <dd><p>Linear
  1329. </p></dd>
  1330. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  1331. <dt>&lsquo;<samp class="samp">log100</samp>&rsquo;</dt>
  1332. <dd><p>Log
  1333. </p></dd>
  1334. <dt>&lsquo;<samp class="samp">log_sqrt</samp>&rsquo;</dt>
  1335. <dt>&lsquo;<samp class="samp">log316</samp>&rsquo;</dt>
  1336. <dd><p>Log square root
  1337. </p></dd>
  1338. <dt>&lsquo;<samp class="samp">iec61966_2_4</samp>&rsquo;</dt>
  1339. <dt>&lsquo;<samp class="samp">iec61966-2-4</samp>&rsquo;</dt>
  1340. <dd><p>IEC 61966-2-4
  1341. </p></dd>
  1342. <dt>&lsquo;<samp class="samp">bt1361</samp>&rsquo;</dt>
  1343. <dt>&lsquo;<samp class="samp">bt1361e</samp>&rsquo;</dt>
  1344. <dd><p>BT.1361
  1345. </p></dd>
  1346. <dt>&lsquo;<samp class="samp">iec61966_2_1</samp>&rsquo;</dt>
  1347. <dt>&lsquo;<samp class="samp">iec61966-2-1</samp>&rsquo;</dt>
  1348. <dd><p>IEC 61966-2-1
  1349. </p></dd>
  1350. <dt>&lsquo;<samp class="samp">bt2020_10</samp>&rsquo;</dt>
  1351. <dt>&lsquo;<samp class="samp">bt2020_10bit</samp>&rsquo;</dt>
  1352. <dd><p>BT.2020 - 10 bit
  1353. </p></dd>
  1354. <dt>&lsquo;<samp class="samp">bt2020_12</samp>&rsquo;</dt>
  1355. <dt>&lsquo;<samp class="samp">bt2020_12bit</samp>&rsquo;</dt>
  1356. <dd><p>BT.2020 - 12 bit
  1357. </p></dd>
  1358. <dt>&lsquo;<samp class="samp">smpte2084</samp>&rsquo;</dt>
  1359. <dd><p>SMPTE ST 2084
  1360. </p></dd>
  1361. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1362. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1363. <dd><p>SMPTE ST 428-1
  1364. </p></dd>
  1365. <dt>&lsquo;<samp class="samp">arib-std-b67</samp>&rsquo;</dt>
  1366. <dd><p>ARIB STD-B67
  1367. </p></dd>
  1368. </dl>
  1369. </dd>
  1370. <dt><samp class="option">colorspace <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1371. <dd><p>Possible values:
  1372. </p><dl class="table">
  1373. <dt>&lsquo;<samp class="samp">rgb</samp>&rsquo;</dt>
  1374. <dd><p>RGB
  1375. </p></dd>
  1376. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1377. <dd><p>BT.709
  1378. </p></dd>
  1379. <dt>&lsquo;<samp class="samp">fcc</samp>&rsquo;</dt>
  1380. <dd><p>FCC
  1381. </p></dd>
  1382. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1383. <dd><p>BT.470 BG
  1384. </p></dd>
  1385. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1386. <dd><p>SMPTE 170 M
  1387. </p></dd>
  1388. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1389. <dd><p>SMPTE 240 M
  1390. </p></dd>
  1391. <dt>&lsquo;<samp class="samp">ycocg</samp>&rsquo;</dt>
  1392. <dd><p>YCOCG
  1393. </p></dd>
  1394. <dt>&lsquo;<samp class="samp">bt2020nc</samp>&rsquo;</dt>
  1395. <dt>&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo;</dt>
  1396. <dd><p>BT.2020 NCL
  1397. </p></dd>
  1398. <dt>&lsquo;<samp class="samp">bt2020c</samp>&rsquo;</dt>
  1399. <dt>&lsquo;<samp class="samp">bt2020_cl</samp>&rsquo;</dt>
  1400. <dd><p>BT.2020 CL
  1401. </p></dd>
  1402. <dt>&lsquo;<samp class="samp">smpte2085</samp>&rsquo;</dt>
  1403. <dd><p>SMPTE 2085
  1404. </p></dd>
  1405. <dt>&lsquo;<samp class="samp">chroma-derived-nc</samp>&rsquo;</dt>
  1406. <dd><p>Chroma-derived NCL
  1407. </p></dd>
  1408. <dt>&lsquo;<samp class="samp">chroma-derived-c</samp>&rsquo;</dt>
  1409. <dd><p>Chroma-derived CL
  1410. </p></dd>
  1411. <dt>&lsquo;<samp class="samp">ictcp</samp>&rsquo;</dt>
  1412. <dd><p>ICtCp
  1413. </p></dd>
  1414. </dl>
  1415. </dd>
  1416. <dt><samp class="option">color_range <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1417. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1418. color_range the input has.
  1419. Possible values:
  1420. </p><dl class="table">
  1421. <dt>&lsquo;<samp class="samp">tv</samp>&rsquo;</dt>
  1422. <dt>&lsquo;<samp class="samp">mpeg</samp>&rsquo;</dt>
  1423. <dt>&lsquo;<samp class="samp">limited</samp>&rsquo;</dt>
  1424. <dd><p>MPEG (219*2^(n-8))
  1425. </p></dd>
  1426. <dt>&lsquo;<samp class="samp">pc</samp>&rsquo;</dt>
  1427. <dt>&lsquo;<samp class="samp">jpeg</samp>&rsquo;</dt>
  1428. <dt>&lsquo;<samp class="samp">full</samp>&rsquo;</dt>
  1429. <dd><p>JPEG (2^n-1)
  1430. </p></dd>
  1431. </dl>
  1432. </dd>
  1433. <dt><samp class="option">chroma_sample_location <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1434. <dd><p>Possible values:
  1435. </p><dl class="table">
  1436. <dt>&lsquo;<samp class="samp">left</samp>&rsquo;</dt>
  1437. <dt>&lsquo;<samp class="samp">center</samp>&rsquo;</dt>
  1438. <dt>&lsquo;<samp class="samp">topleft</samp>&rsquo;</dt>
  1439. <dt>&lsquo;<samp class="samp">top</samp>&rsquo;</dt>
  1440. <dt>&lsquo;<samp class="samp">bottomleft</samp>&rsquo;</dt>
  1441. <dt>&lsquo;<samp class="samp">bottom</samp>&rsquo;</dt>
  1442. </dl>
  1443. </dd>
  1444. <dt><samp class="option">log_level_offset <var class="var">integer</var></samp></dt>
  1445. <dd><p>Set the log level offset.
  1446. </p>
  1447. </dd>
  1448. <dt><samp class="option">slices <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1449. <dd><p>Number of slices, used in parallelized encoding.
  1450. </p>
  1451. </dd>
  1452. <dt><samp class="option">thread_type <var class="var">flags</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1453. <dd><p>Select which multithreading methods to use.
  1454. </p>
  1455. <p>Use of &lsquo;<samp class="samp">frame</samp>&rsquo; will increase decoding delay by one frame per
  1456. thread, so clients which cannot provide future frames should not use
  1457. it.
  1458. </p>
  1459. <p>Possible values:
  1460. </p><dl class="table">
  1461. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  1462. <dd><p>Decode more than one part of a single frame at once.
  1463. </p>
  1464. <p>Multithreading using slices works only when the video was encoded with
  1465. slices.
  1466. </p>
  1467. </dd>
  1468. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  1469. <dd><p>Decode more than one frame at once.
  1470. </p></dd>
  1471. </dl>
  1472. <p>Default value is &lsquo;<samp class="samp">slice+frame</samp>&rsquo;.
  1473. </p>
  1474. </dd>
  1475. <dt><samp class="option">audio_service_type <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  1476. <dd><p>Set audio service type.
  1477. </p>
  1478. <p>Possible values:
  1479. </p><dl class="table">
  1480. <dt>&lsquo;<samp class="samp">ma</samp>&rsquo;</dt>
  1481. <dd><p>Main Audio Service
  1482. </p></dd>
  1483. <dt>&lsquo;<samp class="samp">ef</samp>&rsquo;</dt>
  1484. <dd><p>Effects
  1485. </p></dd>
  1486. <dt>&lsquo;<samp class="samp">vi</samp>&rsquo;</dt>
  1487. <dd><p>Visually Impaired
  1488. </p></dd>
  1489. <dt>&lsquo;<samp class="samp">hi</samp>&rsquo;</dt>
  1490. <dd><p>Hearing Impaired
  1491. </p></dd>
  1492. <dt>&lsquo;<samp class="samp">di</samp>&rsquo;</dt>
  1493. <dd><p>Dialogue
  1494. </p></dd>
  1495. <dt>&lsquo;<samp class="samp">co</samp>&rsquo;</dt>
  1496. <dd><p>Commentary
  1497. </p></dd>
  1498. <dt>&lsquo;<samp class="samp">em</samp>&rsquo;</dt>
  1499. <dd><p>Emergency
  1500. </p></dd>
  1501. <dt>&lsquo;<samp class="samp">vo</samp>&rsquo;</dt>
  1502. <dd><p>Voice Over
  1503. </p></dd>
  1504. <dt>&lsquo;<samp class="samp">ka</samp>&rsquo;</dt>
  1505. <dd><p>Karaoke
  1506. </p></dd>
  1507. </dl>
  1508. </dd>
  1509. <dt><samp class="option">request_sample_fmt <var class="var">sample_fmt</var> (<em class="emph">decoding,audio</em>)</samp></dt>
  1510. <dd><p>Set sample format audio decoders should prefer. Default value is
  1511. <code class="code">none</code>.
  1512. </p>
  1513. </dd>
  1514. <dt><samp class="option">pkt_timebase <var class="var">rational number</var></samp></dt>
  1515. <dt><samp class="option">sub_charenc <var class="var">encoding</var> (<em class="emph">decoding,subtitles</em>)</samp></dt>
  1516. <dd><p>Set the input subtitles character encoding.
  1517. </p>
  1518. </dd>
  1519. <dt><samp class="option">field_order <var class="var">field_order</var> (<em class="emph">video</em>)</samp></dt>
  1520. <dd><p>Set/override the field order of the video.
  1521. Possible values:
  1522. </p><dl class="table">
  1523. <dt>&lsquo;<samp class="samp">progressive</samp>&rsquo;</dt>
  1524. <dd><p>Progressive video
  1525. </p></dd>
  1526. <dt>&lsquo;<samp class="samp">tt</samp>&rsquo;</dt>
  1527. <dd><p>Interlaced video, top field coded and displayed first
  1528. </p></dd>
  1529. <dt>&lsquo;<samp class="samp">bb</samp>&rsquo;</dt>
  1530. <dd><p>Interlaced video, bottom field coded and displayed first
  1531. </p></dd>
  1532. <dt>&lsquo;<samp class="samp">tb</samp>&rsquo;</dt>
  1533. <dd><p>Interlaced video, top coded first, bottom displayed first
  1534. </p></dd>
  1535. <dt>&lsquo;<samp class="samp">bt</samp>&rsquo;</dt>
  1536. <dd><p>Interlaced video, bottom coded first, top displayed first
  1537. </p></dd>
  1538. </dl>
  1539. </dd>
  1540. <dt><samp class="option">skip_alpha <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1541. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1542. &lsquo;<samp class="samp">gray</samp>&rsquo; flag in the <samp class="option">flags</samp> option which skips chroma information
  1543. instead of alpha. Default is 0.
  1544. </p>
  1545. </dd>
  1546. <dt><samp class="option">codec_whitelist <var class="var">list</var> (<em class="emph">input</em>)</samp></dt>
  1547. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1548. </p>
  1549. </dd>
  1550. <dt><samp class="option">dump_separator <var class="var">string</var> (<em class="emph">input</em>)</samp></dt>
  1551. <dd><p>Separator used to separate the fields printed on the command line about the
  1552. Stream parameters.
  1553. For example, to separate the fields with newlines and indentation:
  1554. </p><div class="example">
  1555. <pre class="example-preformatted">ffprobe -dump_separator &quot;
  1556. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1557. </pre></div>
  1558. </dd>
  1559. <dt><samp class="option">max_pixels <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1560. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1561. memory failures due to large images.
  1562. </p>
  1563. </dd>
  1564. <dt><samp class="option">apply_cropping <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1565. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1566. alignment for the left and top parameters. If the alignment is not met the
  1567. cropping will be partially applied to maintain alignment.
  1568. Default is 1 (enabled).
  1569. Note: The required alignment depends on if <code class="code">AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1570. CPU. <code class="code">AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1571. decoders will not apply left/top Cropping.
  1572. </p>
  1573. </dd>
  1574. </dl>
  1575. </div>
  1576. <div class="chapter-level-extent" id="Decoders">
  1577. <h2 class="chapter">3 Decoders</h2>
  1578. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1579. multimedia streams.
  1580. </p>
  1581. <p>When you configure your FFmpeg build, all the supported native decoders
  1582. are enabled by default. Decoders requiring an external library must be enabled
  1583. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  1584. available decoders using the configure option <code class="code">--list-decoders</code>.
  1585. </p>
  1586. <p>You can disable all the decoders with the configure option
  1587. <code class="code">--disable-decoders</code> and selectively enable / disable single decoders
  1588. with the options <code class="code">--enable-decoder=<var class="var">DECODER</var></code> /
  1589. <code class="code">--disable-decoder=<var class="var">DECODER</var></code>.
  1590. </p>
  1591. <p>The option <code class="code">-decoders</code> of the ff* tools will display the list of
  1592. enabled decoders.
  1593. </p>
  1594. </div>
  1595. <div class="chapter-level-extent" id="Video-Decoders">
  1596. <h2 class="chapter">4 Video Decoders</h2>
  1597. <p>A description of some of the currently available video decoders
  1598. follows.
  1599. </p>
  1600. <ul class="mini-toc">
  1601. <li><a href="#av1" accesskey="1">av1</a></li>
  1602. <li><a href="#rawvideo" accesskey="2">rawvideo</a></li>
  1603. <li><a href="#libdav1d" accesskey="3">libdav1d</a></li>
  1604. <li><a href="#libdavs2" accesskey="4">libdavs2</a></li>
  1605. <li><a href="#libuavs3d" accesskey="5">libuavs3d</a></li>
  1606. <li><a href="#libxevd" accesskey="6">libxevd</a></li>
  1607. <li><a href="#QSV-Decoders" accesskey="7">QSV Decoders</a></li>
  1608. <li><a href="#v210" accesskey="8">v210</a></li>
  1609. </ul>
  1610. <div class="section-level-extent" id="av1">
  1611. <h3 class="section">4.1 av1</h3>
  1612. <p>AOMedia Video 1 (AV1) decoder.
  1613. </p>
  1614. <ul class="mini-toc">
  1615. <li><a href="#Options" accesskey="1">Options</a></li>
  1616. </ul>
  1617. <div class="subsection-level-extent" id="Options">
  1618. <h4 class="subsection">4.1.1 Options</h4>
  1619. <dl class="table">
  1620. <dt><samp class="option">operating_point</samp></dt>
  1621. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
  1622. </p>
  1623. </dd>
  1624. </dl>
  1625. </div>
  1626. </div>
  1627. <div class="section-level-extent" id="rawvideo">
  1628. <h3 class="section">4.2 rawvideo</h3>
  1629. <p>Raw video decoder.
  1630. </p>
  1631. <p>This decoder decodes rawvideo streams.
  1632. </p>
  1633. <ul class="mini-toc">
  1634. <li><a href="#Options-1" accesskey="1">Options</a></li>
  1635. </ul>
  1636. <div class="subsection-level-extent" id="Options-1">
  1637. <h4 class="subsection">4.2.1 Options</h4>
  1638. <dl class="table">
  1639. <dt><samp class="option">top <var class="var">top_field_first</var></samp></dt>
  1640. <dd><p>Specify the assumed field type of the input video.
  1641. </p><dl class="table">
  1642. <dt><samp class="option">-1</samp></dt>
  1643. <dd><p>the video is assumed to be progressive (default)
  1644. </p></dd>
  1645. <dt><samp class="option">0</samp></dt>
  1646. <dd><p>bottom-field-first is assumed
  1647. </p></dd>
  1648. <dt><samp class="option">1</samp></dt>
  1649. <dd><p>top-field-first is assumed
  1650. </p></dd>
  1651. </dl>
  1652. </dd>
  1653. </dl>
  1654. </div>
  1655. </div>
  1656. <div class="section-level-extent" id="libdav1d">
  1657. <h3 class="section">4.3 libdav1d</h3>
  1658. <p>dav1d AV1 decoder.
  1659. </p>
  1660. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1661. Requires the presence of the libdav1d headers and library during configuration.
  1662. You need to explicitly configure the build with <code class="code">--enable-libdav1d</code>.
  1663. </p>
  1664. <ul class="mini-toc">
  1665. <li><a href="#Options-2" accesskey="1">Options</a></li>
  1666. </ul>
  1667. <div class="subsection-level-extent" id="Options-2">
  1668. <h4 class="subsection">4.3.1 Options</h4>
  1669. <p>The following options are supported by the libdav1d wrapper.
  1670. </p>
  1671. <dl class="table">
  1672. <dt><samp class="option">framethreads</samp></dt>
  1673. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1674. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1675. option <code class="code">max_frame_delay</code> and the global option <code class="code">threads</code> instead.
  1676. </p>
  1677. </dd>
  1678. <dt><samp class="option">tilethreads</samp></dt>
  1679. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  1680. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1681. global option <code class="code">threads</code> instead.
  1682. </p>
  1683. </dd>
  1684. <dt><samp class="option">max_frame_delay</samp></dt>
  1685. <dd><p>Set max amount of frames the decoder may buffer internally. The default value is 0
  1686. (autodetect).
  1687. </p>
  1688. </dd>
  1689. <dt><samp class="option">filmgrain</samp></dt>
  1690. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1691. internal default of the library.
  1692. This option is deprecated and will be removed in the future. See the global option
  1693. <code class="code">export_side_data</code> to export Film Grain parameters instead of applying it.
  1694. </p>
  1695. </dd>
  1696. <dt><samp class="option">oppoint</samp></dt>
  1697. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  1698. internal default of the library.
  1699. </p>
  1700. </dd>
  1701. <dt><samp class="option">alllayers</samp></dt>
  1702. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  1703. </p>
  1704. </dd>
  1705. </dl>
  1706. </div>
  1707. </div>
  1708. <div class="section-level-extent" id="libdavs2">
  1709. <h3 class="section">4.4 libdavs2</h3>
  1710. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  1711. </p>
  1712. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  1713. </p>
  1714. </div>
  1715. <div class="section-level-extent" id="libuavs3d">
  1716. <h3 class="section">4.5 libuavs3d</h3>
  1717. <p>AVS3-P2/IEEE1857.10 video decoder.
  1718. </p>
  1719. <p>libuavs3d allows libavcodec to decode AVS3 streams.
  1720. Requires the presence of the libuavs3d headers and library during configuration.
  1721. You need to explicitly configure the build with <code class="code">--enable-libuavs3d</code>.
  1722. </p>
  1723. <ul class="mini-toc">
  1724. <li><a href="#Options-3" accesskey="1">Options</a></li>
  1725. </ul>
  1726. <div class="subsection-level-extent" id="Options-3">
  1727. <h4 class="subsection">4.5.1 Options</h4>
  1728. <p>The following option is supported by the libuavs3d wrapper.
  1729. </p>
  1730. <dl class="table">
  1731. <dt><samp class="option">frame_threads</samp></dt>
  1732. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1733. </p>
  1734. </dd>
  1735. </dl>
  1736. </div>
  1737. </div>
  1738. <div class="section-level-extent" id="libxevd">
  1739. <h3 class="section">4.6 libxevd</h3>
  1740. <p>eXtra-fast Essential Video Decoder (XEVD) MPEG-5 EVC decoder wrapper.
  1741. </p>
  1742. <p>This decoder requires the presence of the libxevd headers and library
  1743. during configuration. You need to explicitly configure the build with
  1744. <samp class="option">--enable-libxevd</samp>.
  1745. </p>
  1746. <p>The xevd project website is at <a class="url" href="https://github.com/mpeg5/xevd">https://github.com/mpeg5/xevd</a>.
  1747. </p>
  1748. <ul class="mini-toc">
  1749. <li><a href="#Options-4" accesskey="1">Options</a></li>
  1750. </ul>
  1751. <div class="subsection-level-extent" id="Options-4">
  1752. <h4 class="subsection">4.6.1 Options</h4>
  1753. <p>The following options are supported by the libxevd wrapper.
  1754. The xevd-equivalent options or values are listed in parentheses for easy migration.
  1755. </p>
  1756. <p>To get a more accurate and extensive documentation of the libxevd options,
  1757. invoke the command <code class="code">xevd_app --help</code> or consult the libxevd documentation.
  1758. </p>
  1759. <dl class="table">
  1760. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  1761. <dd><p>Force to use a specific number of threads
  1762. </p>
  1763. </dd>
  1764. </dl>
  1765. </div>
  1766. </div>
  1767. <div class="section-level-extent" id="QSV-Decoders">
  1768. <h3 class="section">4.7 QSV Decoders</h3>
  1769. <p>The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC,
  1770. JPEG/MJPEG, VP8, VP9, AV1).
  1771. </p>
  1772. <ul class="mini-toc">
  1773. <li><a href="#Common-Options" accesskey="1">Common Options</a></li>
  1774. <li><a href="#HEVC-Options" accesskey="2">HEVC Options</a></li>
  1775. </ul>
  1776. <div class="subsection-level-extent" id="Common-Options">
  1777. <h4 class="subsection">4.7.1 Common Options</h4>
  1778. <p>The following options are supported by all qsv decoders.
  1779. </p>
  1780. <dl class="table">
  1781. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  1782. <dd><p>Internal parallelization depth, the higher the value the higher the latency.
  1783. </p>
  1784. </dd>
  1785. <dt><samp class="option"><var class="var">gpu_copy</var></samp></dt>
  1786. <dd><p>A GPU-accelerated copy between video and system memory
  1787. </p><dl class="table">
  1788. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  1789. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  1790. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  1791. </dl>
  1792. </dd>
  1793. </dl>
  1794. </div>
  1795. <div class="subsection-level-extent" id="HEVC-Options">
  1796. <h4 class="subsection">4.7.2 HEVC Options</h4>
  1797. <p>Extra options for hevc_qsv.
  1798. </p>
  1799. <dl class="table">
  1800. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  1801. <dd><p>A user plugin to load in an internal session
  1802. </p><dl class="table">
  1803. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  1804. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  1805. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  1806. </dl>
  1807. </dd>
  1808. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  1809. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in an internal session
  1810. </p>
  1811. </dd>
  1812. </dl>
  1813. </div>
  1814. </div>
  1815. <div class="section-level-extent" id="v210">
  1816. <h3 class="section">4.8 v210</h3>
  1817. <p>Uncompressed 4:2:2 10-bit decoder.
  1818. </p>
  1819. <ul class="mini-toc">
  1820. <li><a href="#Options-5" accesskey="1">Options</a></li>
  1821. </ul>
  1822. <div class="subsection-level-extent" id="Options-5">
  1823. <h4 class="subsection">4.8.1 Options</h4>
  1824. <dl class="table">
  1825. <dt><samp class="option">custom_stride</samp></dt>
  1826. <dd><p>Set the line size of the v210 data in bytes. The default value is 0
  1827. (autodetect). You can use the special -1 value for a strideless v210 as seen in
  1828. BOXX files.
  1829. </p>
  1830. </dd>
  1831. </dl>
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <div class="chapter-level-extent" id="Audio-Decoders">
  1836. <h2 class="chapter">5 Audio Decoders</h2>
  1837. <p>A description of some of the currently available audio decoders
  1838. follows.
  1839. </p>
  1840. <ul class="mini-toc">
  1841. <li><a href="#ac3" accesskey="1">ac3</a></li>
  1842. <li><a href="#flac-1" accesskey="2">flac</a></li>
  1843. <li><a href="#ffwavesynth" accesskey="3">ffwavesynth</a></li>
  1844. <li><a href="#libcelt" accesskey="4">libcelt</a></li>
  1845. <li><a href="#libgsm" accesskey="5">libgsm</a></li>
  1846. <li><a href="#libilbc" accesskey="6">libilbc</a></li>
  1847. <li><a href="#libopencore_002damrnb" accesskey="7">libopencore-amrnb</a></li>
  1848. <li><a href="#libopencore_002damrwb" accesskey="8">libopencore-amrwb</a></li>
  1849. <li><a href="#libopus" accesskey="9">libopus</a></li>
  1850. </ul>
  1851. <div class="section-level-extent" id="ac3">
  1852. <h3 class="section">5.1 ac3</h3>
  1853. <p>AC-3 audio decoder.
  1854. </p>
  1855. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1856. the undocumented RealAudio 3 (a.k.a. dnet).
  1857. </p>
  1858. <ul class="mini-toc">
  1859. <li><a href="#AC_002d3-Decoder-Options" accesskey="1">AC-3 Decoder Options</a></li>
  1860. </ul>
  1861. <div class="subsection-level-extent" id="AC_002d3-Decoder-Options">
  1862. <h4 class="subsection">5.1.1 AC-3 Decoder Options</h4>
  1863. <dl class="table">
  1864. <dt><samp class="option">-drc_scale <var class="var">value</var></samp></dt>
  1865. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1866. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  1867. There are 3 notable scale factor ranges:
  1868. </p><dl class="table">
  1869. <dt><samp class="option">drc_scale == 0</samp></dt>
  1870. <dd><p>DRC disabled. Produces full range audio.
  1871. </p></dd>
  1872. <dt><samp class="option">0 &lt; drc_scale &lt;= 1</samp></dt>
  1873. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1874. Audio reproduction is between full range and full compression.
  1875. </p></dd>
  1876. <dt><samp class="option">drc_scale &gt; 1</samp></dt>
  1877. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1878. Loud sounds are fully compressed. Soft sounds are enhanced.
  1879. </p></dd>
  1880. </dl>
  1881. </dd>
  1882. </dl>
  1883. </div>
  1884. </div>
  1885. <div class="section-level-extent" id="flac-1">
  1886. <h3 class="section">5.2 flac</h3>
  1887. <p>FLAC audio decoder.
  1888. </p>
  1889. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1890. </p>
  1891. <ul class="mini-toc">
  1892. <li><a href="#FLAC-Decoder-options" accesskey="1">FLAC Decoder options</a></li>
  1893. </ul>
  1894. <div class="subsection-level-extent" id="FLAC-Decoder-options">
  1895. <h4 class="subsection">5.2.1 FLAC Decoder options</h4>
  1896. <dl class="table">
  1897. <dt><samp class="option">-use_buggy_lpc</samp></dt>
  1898. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1899. (like the default value). This option makes it possible to decode such streams
  1900. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1901. </p>
  1902. </dd>
  1903. </dl>
  1904. </div>
  1905. </div>
  1906. <div class="section-level-extent" id="ffwavesynth">
  1907. <h3 class="section">5.3 ffwavesynth</h3>
  1908. <p>Internal wave synthesizer.
  1909. </p>
  1910. <p>This decoder generates wave patterns according to predefined sequences. Its
  1911. use is purely internal and the format of the data it accepts is not publicly
  1912. documented.
  1913. </p>
  1914. </div>
  1915. <div class="section-level-extent" id="libcelt">
  1916. <h3 class="section">5.4 libcelt</h3>
  1917. <p>libcelt decoder wrapper.
  1918. </p>
  1919. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1920. Requires the presence of the libcelt headers and library during configuration.
  1921. You need to explicitly configure the build with <code class="code">--enable-libcelt</code>.
  1922. </p>
  1923. </div>
  1924. <div class="section-level-extent" id="libgsm">
  1925. <h3 class="section">5.5 libgsm</h3>
  1926. <p>libgsm decoder wrapper.
  1927. </p>
  1928. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1929. the presence of the libgsm headers and library during configuration. You need
  1930. to explicitly configure the build with <code class="code">--enable-libgsm</code>.
  1931. </p>
  1932. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1933. </p>
  1934. </div>
  1935. <div class="section-level-extent" id="libilbc">
  1936. <h3 class="section">5.6 libilbc</h3>
  1937. <p>libilbc decoder wrapper.
  1938. </p>
  1939. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1940. audio codec. Requires the presence of the libilbc headers and library during
  1941. configuration. You need to explicitly configure the build with
  1942. <code class="code">--enable-libilbc</code>.
  1943. </p>
  1944. <ul class="mini-toc">
  1945. <li><a href="#Options-6" accesskey="1">Options</a></li>
  1946. </ul>
  1947. <div class="subsection-level-extent" id="Options-6">
  1948. <h4 class="subsection">5.6.1 Options</h4>
  1949. <p>The following option is supported by the libilbc wrapper.
  1950. </p>
  1951. <dl class="table">
  1952. <dt><samp class="option">enhance</samp></dt>
  1953. <dd>
  1954. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1955. value is 0 (disabled).
  1956. </p>
  1957. </dd>
  1958. </dl>
  1959. </div>
  1960. </div>
  1961. <div class="section-level-extent" id="libopencore_002damrnb">
  1962. <h3 class="section">5.7 libopencore-amrnb</h3>
  1963. <p>libopencore-amrnb decoder wrapper.
  1964. </p>
  1965. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1966. Narrowband audio codec. Using it requires the presence of the
  1967. libopencore-amrnb headers and library during configuration. You need to
  1968. explicitly configure the build with <code class="code">--enable-libopencore-amrnb</code>.
  1969. </p>
  1970. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1971. without this library.
  1972. </p>
  1973. </div>
  1974. <div class="section-level-extent" id="libopencore_002damrwb">
  1975. <h3 class="section">5.8 libopencore-amrwb</h3>
  1976. <p>libopencore-amrwb decoder wrapper.
  1977. </p>
  1978. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1979. Wideband audio codec. Using it requires the presence of the
  1980. libopencore-amrwb headers and library during configuration. You need to
  1981. explicitly configure the build with <code class="code">--enable-libopencore-amrwb</code>.
  1982. </p>
  1983. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1984. without this library.
  1985. </p>
  1986. </div>
  1987. <div class="section-level-extent" id="libopus">
  1988. <h3 class="section">5.9 libopus</h3>
  1989. <p>libopus decoder wrapper.
  1990. </p>
  1991. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1992. Requires the presence of the libopus headers and library during
  1993. configuration. You need to explicitly configure the build with
  1994. <code class="code">--enable-libopus</code>.
  1995. </p>
  1996. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  1997. without this library.
  1998. </p>
  1999. </div>
  2000. </div>
  2001. <div class="chapter-level-extent" id="Subtitles-Decoders">
  2002. <h2 class="chapter">6 Subtitles Decoders</h2>
  2003. <ul class="mini-toc">
  2004. <li><a href="#libaribb24" accesskey="1">libaribb24</a></li>
  2005. <li><a href="#libaribcaption" accesskey="2">libaribcaption</a></li>
  2006. <li><a href="#dvbsub" accesskey="3">dvbsub</a></li>
  2007. <li><a href="#dvdsub" accesskey="4">dvdsub</a></li>
  2008. <li><a href="#libzvbi_002dteletext" accesskey="5">libzvbi-teletext</a></li>
  2009. </ul>
  2010. <div class="section-level-extent" id="libaribb24">
  2011. <h3 class="section">6.1 libaribb24</h3>
  2012. <p>ARIB STD-B24 caption decoder.
  2013. </p>
  2014. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  2015. </p>
  2016. <ul class="mini-toc">
  2017. <li><a href="#libaribb24-Decoder-Options" accesskey="1">libaribb24 Decoder Options</a></li>
  2018. </ul>
  2019. <div class="subsection-level-extent" id="libaribb24-Decoder-Options">
  2020. <h4 class="subsection">6.1.1 libaribb24 Decoder Options</h4>
  2021. <dl class="table">
  2022. <dt><samp class="option">-aribb24-base-path <var class="var">path</var></samp></dt>
  2023. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  2024. configuration files (for custom unicode conversions), and for dumping of
  2025. non-text symbols as images under that location.
  2026. </p>
  2027. <p>Unset by default.
  2028. </p>
  2029. </dd>
  2030. <dt><samp class="option">-aribb24-skip-ruby-text <var class="var">boolean</var></samp></dt>
  2031. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  2032. text.
  2033. </p>
  2034. <p>Enabled by default.
  2035. </p>
  2036. </dd>
  2037. </dl>
  2038. </div>
  2039. </div>
  2040. <div class="section-level-extent" id="libaribcaption">
  2041. <h3 class="section">6.2 libaribcaption</h3>
  2042. <p>Yet another ARIB STD-B24 caption decoder using external <em class="dfn">libaribcaption</em>
  2043. library.
  2044. </p>
  2045. <p>Implements profiles A and C of the Japanse ARIB STD-B24 standard,
  2046. Brazilian ABNT NBR 15606-1, and Philippines version of ISDB-T.
  2047. </p>
  2048. <p>Requires the presence of the libaribcaption headers and library
  2049. (<a class="url" href="https://github.com/xqq/libaribcaption">https://github.com/xqq/libaribcaption</a>) during configuration.
  2050. You need to explicitly configure the build with <code class="code">--enable-libaribcaption</code>.
  2051. If both <em class="dfn">libaribb24</em> and <em class="dfn">libaribcaption</em> are enabled, <em class="dfn">libaribcaption</em>
  2052. decoder precedes.
  2053. </p>
  2054. <ul class="mini-toc">
  2055. <li><a href="#libaribcaption-Decoder-Options" accesskey="1">libaribcaption Decoder Options</a></li>
  2056. <li><a href="#libaribcaption-decoder-usage-examples" accesskey="2">libaribcaption decoder usage examples</a></li>
  2057. </ul>
  2058. <div class="subsection-level-extent" id="libaribcaption-Decoder-Options">
  2059. <h4 class="subsection">6.2.1 libaribcaption Decoder Options</h4>
  2060. <dl class="table">
  2061. <dt><samp class="option">-sub_type <var class="var">subtitle_type</var></samp></dt>
  2062. <dd><p>Specifies the format of the decoded subtitles.
  2063. </p>
  2064. <dl class="table">
  2065. <dt>&lsquo;<samp class="samp">bitmap</samp>&rsquo;</dt>
  2066. <dd><p>Graphical image.
  2067. </p></dd>
  2068. <dt>&lsquo;<samp class="samp">ass</samp>&rsquo;</dt>
  2069. <dd><p>ASS formatted text.
  2070. </p></dd>
  2071. <dt>&lsquo;<samp class="samp">text</samp>&rsquo;</dt>
  2072. <dd><p>Simple text based output without formatting.
  2073. </p></dd>
  2074. </dl>
  2075. <p>The default is <em class="dfn">ass</em> as same as <em class="dfn">libaribb24</em> decoder.
  2076. Some present players (e.g., <em class="dfn">mpv</em>) expect ASS format for ARIB caption.
  2077. </p>
  2078. </dd>
  2079. <dt><samp class="option">-caption_encoding <var class="var">encoding_scheme</var></samp></dt>
  2080. <dd><p>Specifies the encoding scheme of input subtitle text.
  2081. </p>
  2082. <dl class="table">
  2083. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  2084. <dd><p>Automatically detect text encoding (default).
  2085. </p></dd>
  2086. <dt>&lsquo;<samp class="samp">jis</samp>&rsquo;</dt>
  2087. <dd><p>8bit-char JIS encoding defined in ARIB STD B24.
  2088. This encoding used in Japan for ISDB captions.
  2089. </p></dd>
  2090. <dt>&lsquo;<samp class="samp">utf8</samp>&rsquo;</dt>
  2091. <dd><p>UTF-8 encoding defined in ARIB STD B24.
  2092. This encoding is used in Philippines for ISDB-T captions.
  2093. </p></dd>
  2094. <dt>&lsquo;<samp class="samp">latin</samp>&rsquo;</dt>
  2095. <dd><p>Latin character encoding defined in ABNT NBR 15606-1.
  2096. This encoding is used in South America for SBTVD / ISDB-Tb captions.
  2097. </p></dd>
  2098. </dl>
  2099. </dd>
  2100. <dt><samp class="option">-font <var class="var">font_name[,font_name2,...]</var></samp></dt>
  2101. <dd><p>Specify comma-separated list of font family names to be used for <em class="dfn">bitmap</em>
  2102. or <em class="dfn">ass</em> type subtitle rendering.
  2103. Only first font name is used for <em class="dfn">ass</em> type subtitle.
  2104. </p>
  2105. <p>If not specified, use internaly defined default font family.
  2106. </p>
  2107. </dd>
  2108. <dt><samp class="option">-ass_single_rect <var class="var">boolean</var></samp></dt>
  2109. <dd><p>ARIB STD-B24 specifies that some captions may be displayed at different
  2110. positions at a time (multi-rectangle subtitle).
  2111. Since some players (e.g., old <em class="dfn">mpv</em>) can&rsquo;t handle multiple ASS rectangles
  2112. in a single AVSubtitle, or multiple ASS rectangles of indeterminate duration
  2113. with the same start timestamp, this option can change the behavior so that
  2114. all the texts are displayed in a single ASS rectangle.
  2115. </p>
  2116. <p>The default is <var class="var">false</var>.
  2117. </p>
  2118. <p>If your player cannot handle AVSubtitles with multiple ASS rectangles properly,
  2119. set this option to <var class="var">true</var> or define <code class="env">ASS_SINGLE_RECT=1</code> to change
  2120. default behavior at compilation.
  2121. </p>
  2122. </dd>
  2123. <dt><samp class="option">-force_outline_text <var class="var">boolean</var></samp></dt>
  2124. <dd><p>Specify whether always render outline text for all characters regardless of
  2125. the indication by charactor style.
  2126. </p>
  2127. <p>The default is <var class="var">false</var>.
  2128. </p>
  2129. </dd>
  2130. <dt><samp class="option">-outline_width <var class="var">number</var> (0.0 - 3.0)</samp></dt>
  2131. <dd><p>Specify width for outline text, in dots (relative).
  2132. </p>
  2133. <p>The default is <var class="var">1.5</var>.
  2134. </p>
  2135. </dd>
  2136. <dt><samp class="option">-ignore_background <var class="var">boolean</var></samp></dt>
  2137. <dd><p>Specify whether to ignore background color rendering.
  2138. </p>
  2139. <p>The default is <var class="var">false</var>.
  2140. </p>
  2141. </dd>
  2142. <dt><samp class="option">-ignore_ruby <var class="var">boolean</var></samp></dt>
  2143. <dd><p>Specify whether to ignore rendering for ruby-like (furigana) characters.
  2144. </p>
  2145. <p>The default is <var class="var">false</var>.
  2146. </p>
  2147. </dd>
  2148. <dt><samp class="option">-replace_drcs <var class="var">boolean</var></samp></dt>
  2149. <dd><p>Specify whether to render replaced DRCS characters as Unicode characters.
  2150. </p>
  2151. <p>The default is <var class="var">true</var>.
  2152. </p>
  2153. </dd>
  2154. <dt><samp class="option">-replace_msz_ascii <var class="var">boolean</var></samp></dt>
  2155. <dd><p>Specify whether to replace MSZ (Middle Size; half width) fullwidth
  2156. alphanumerics with halfwidth alphanumerics.
  2157. </p>
  2158. <p>The default is <var class="var">true</var>.
  2159. </p>
  2160. </dd>
  2161. <dt><samp class="option">-replace_msz_japanese <var class="var">boolean</var></samp></dt>
  2162. <dd><p>Specify whether to replace some MSZ (Middle Size; half width) fullwidth
  2163. japanese special characters with halfwidth ones.
  2164. </p>
  2165. <p>The default is <var class="var">true</var>.
  2166. </p>
  2167. </dd>
  2168. <dt><samp class="option">-replace_msz_glyph <var class="var">boolean</var></samp></dt>
  2169. <dd><p>Specify whether to replace MSZ (Middle Size; half width) characters
  2170. with halfwidth glyphs if the fonts supports it.
  2171. This option works under FreeType or DirectWrite renderer
  2172. with Adobe-Japan1 compliant fonts.
  2173. e.g., IBM Plex Sans JP, Morisawa BIZ UDGothic, Morisawa BIZ UDMincho,
  2174. Yu Gothic, Yu Mincho, and Meiryo.
  2175. </p>
  2176. <p>The default is <var class="var">true</var>.
  2177. </p>
  2178. </dd>
  2179. <dt><samp class="option">-canvas_size <var class="var">image_size</var></samp></dt>
  2180. <dd><p>Specify the resolution of the canvas to render subtitles to; usually, this
  2181. should be frame size of input video.
  2182. This only applies when <code class="code">-subtitle_type</code> is set to <var class="var">bitmap</var>.
  2183. </p>
  2184. <p>The libaribcaption decoder assumes input frame size for bitmap rendering as below:
  2185. </p><ol class="enumerate">
  2186. <li> PROFILE_A : 1440 x 1080 with SAR (PAR) 4:3
  2187. </li><li> PROFILE_C : 320 x 180 with SAR (PAR) 1:1
  2188. </li></ol>
  2189. <p>If actual frame size of input video does not match above assumption,
  2190. the rendered captions may be distorted.
  2191. To make the captions undistorted, add <code class="code">-canvas_size</code> option to specify
  2192. actual input video size.
  2193. </p>
  2194. <p>Note that the <code class="code">-canvas_size</code> option is not required for video with
  2195. different size but same aspect ratio.
  2196. In such cases, the caption will be stretched or shrunk to actual video size
  2197. if <code class="code">-canvas_size</code> option is not specified.
  2198. If <code class="code">-canvas_size</code> option is specified with different size,
  2199. the caption will be stretched or shrunk as specified size with calculated SAR.
  2200. </p>
  2201. </dd>
  2202. </dl>
  2203. </div>
  2204. <div class="subsection-level-extent" id="libaribcaption-decoder-usage-examples">
  2205. <h4 class="subsection">6.2.2 libaribcaption decoder usage examples</h4>
  2206. <p>Display MPEG-TS file with ARIB subtitle by <code class="code">ffplay</code> tool:
  2207. </p><div class="example">
  2208. <pre class="example-preformatted">ffplay -sub_type bitmap MPEG.TS
  2209. </pre></div>
  2210. <p>Display MPEG-TS file with input frame size 1920x1080 by <code class="code">ffplay</code> tool:
  2211. </p><div class="example">
  2212. <pre class="example-preformatted">ffplay -sub_type bitmap -canvas_size 1920x1080 MPEG.TS
  2213. </pre></div>
  2214. <p>Embed ARIB subtitle in transcoded video:
  2215. </p><div class="example">
  2216. <pre class="example-preformatted">ffmpeg -sub_type bitmap -i src.m2t -filter_complex &quot;[0:v][0:s]overlay&quot; -vcodec h264 dest.mp4
  2217. </pre></div>
  2218. </div>
  2219. </div>
  2220. <div class="section-level-extent" id="dvbsub">
  2221. <h3 class="section">6.3 dvbsub</h3>
  2222. <ul class="mini-toc">
  2223. <li><a href="#Options-7" accesskey="1">Options</a></li>
  2224. </ul>
  2225. <div class="subsection-level-extent" id="Options-7">
  2226. <h4 class="subsection">6.3.1 Options</h4>
  2227. <dl class="table">
  2228. <dt><samp class="option">compute_clut</samp></dt>
  2229. <dd><dl class="table">
  2230. <dt><samp class="option">-2</samp></dt>
  2231. <dd><p>Compute clut once if no matching CLUT is in the stream.
  2232. </p></dd>
  2233. <dt><samp class="option">-1</samp></dt>
  2234. <dd><p>Compute clut if no matching CLUT is in the stream.
  2235. </p></dd>
  2236. <dt><samp class="option">0</samp></dt>
  2237. <dd><p>Never compute CLUT
  2238. </p></dd>
  2239. <dt><samp class="option">1</samp></dt>
  2240. <dd><p>Always compute CLUT and override the one provided in the stream.
  2241. </p></dd>
  2242. </dl>
  2243. </dd>
  2244. <dt><samp class="option">dvb_substream</samp></dt>
  2245. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  2246. </p>
  2247. </dd>
  2248. </dl>
  2249. </div>
  2250. </div>
  2251. <div class="section-level-extent" id="dvdsub">
  2252. <h3 class="section">6.4 dvdsub</h3>
  2253. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  2254. also be found in VobSub file pairs and in some Matroska files.
  2255. </p>
  2256. <ul class="mini-toc">
  2257. <li><a href="#Options-8" accesskey="1">Options</a></li>
  2258. </ul>
  2259. <div class="subsection-level-extent" id="Options-8">
  2260. <h4 class="subsection">6.4.1 Options</h4>
  2261. <dl class="table">
  2262. <dt><samp class="option">palette</samp></dt>
  2263. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  2264. palette is normally specified in the index file; in Matroska, the palette is
  2265. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  2266. palette is stored in the IFO file, and therefore not available when reading
  2267. from dumped VOB files.
  2268. </p>
  2269. <p>The format for this option is a string containing 16 24-bits hexadecimal
  2270. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  2271. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  2272. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  2273. </p>
  2274. </dd>
  2275. <dt><samp class="option">ifo_palette</samp></dt>
  2276. <dd><p>Specify the IFO file from which the global palette is obtained.
  2277. (experimental)
  2278. </p>
  2279. </dd>
  2280. <dt><samp class="option">forced_subs_only</samp></dt>
  2281. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  2282. and non-forced subtitles in the same track. Setting this flag to <code class="code">1</code>
  2283. will only keep the forced subtitles. Default value is <code class="code">0</code>.
  2284. </p></dd>
  2285. </dl>
  2286. </div>
  2287. </div>
  2288. <div class="section-level-extent" id="libzvbi_002dteletext">
  2289. <h3 class="section">6.5 libzvbi-teletext</h3>
  2290. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  2291. subtitles. Requires the presence of the libzvbi headers and library during
  2292. configuration. You need to explicitly configure the build with
  2293. <code class="code">--enable-libzvbi</code>.
  2294. </p>
  2295. <ul class="mini-toc">
  2296. <li><a href="#Options-9" accesskey="1">Options</a></li>
  2297. </ul>
  2298. <div class="subsection-level-extent" id="Options-9">
  2299. <h4 class="subsection">6.5.1 Options</h4>
  2300. <dl class="table">
  2301. <dt><samp class="option">txt_page</samp></dt>
  2302. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  2303. list are dropped. You may use the special <code class="code">*</code> string to match all pages,
  2304. or <code class="code">subtitle</code> to match all subtitle pages.
  2305. Default value is *.
  2306. </p></dd>
  2307. <dt><samp class="option">txt_default_region</samp></dt>
  2308. <dd><p>Set default character set used for decoding, a value between 0 and 87 (see
  2309. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  2310. override the libzvbi default. This option is needed for some legacy level 1.0
  2311. transmissions which cannot signal the proper charset.
  2312. </p></dd>
  2313. <dt><samp class="option">txt_chop_top</samp></dt>
  2314. <dd><p>Discards the top teletext line. Default value is 1.
  2315. </p></dd>
  2316. <dt><samp class="option">txt_format</samp></dt>
  2317. <dd><p>Specifies the format of the decoded subtitles.
  2318. </p><dl class="table">
  2319. <dt><samp class="option">bitmap</samp></dt>
  2320. <dd><p>The default format, you should use this for teletext pages, because certain
  2321. graphics and colors cannot be expressed in simple text or even ASS.
  2322. </p></dd>
  2323. <dt><samp class="option">text</samp></dt>
  2324. <dd><p>Simple text based output without formatting.
  2325. </p></dd>
  2326. <dt><samp class="option">ass</samp></dt>
  2327. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  2328. different styles, subtitle pages are stripped down to text, but an effort is
  2329. made to keep the text alignment and the formatting.
  2330. </p></dd>
  2331. </dl>
  2332. </dd>
  2333. <dt><samp class="option">txt_left</samp></dt>
  2334. <dd><p>X offset of generated bitmaps, default is 0.
  2335. </p></dd>
  2336. <dt><samp class="option">txt_top</samp></dt>
  2337. <dd><p>Y offset of generated bitmaps, default is 0.
  2338. </p></dd>
  2339. <dt><samp class="option">txt_chop_spaces</samp></dt>
  2340. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  2341. text. This option is useful for teletext based subtitles where empty spaces may
  2342. be present at the start or at the end of the lines or empty lines may be
  2343. present between the subtitle lines because of double-sized teletext characters.
  2344. Default value is 1.
  2345. </p></dd>
  2346. <dt><samp class="option">txt_duration</samp></dt>
  2347. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2348. milliseconds. Default value is -1 which means infinity or until the next
  2349. subtitle event comes.
  2350. </p></dd>
  2351. <dt><samp class="option">txt_transparent</samp></dt>
  2352. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2353. is 0 which means an opaque background.
  2354. </p></dd>
  2355. <dt><samp class="option">txt_opacity</samp></dt>
  2356. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2357. <samp class="option">txt_transparent</samp> is not set, it only affects characters between a start
  2358. box and an end box, typically subtitles. Default value is 0 if
  2359. <samp class="option">txt_transparent</samp> is set, 255 otherwise.
  2360. </p>
  2361. </dd>
  2362. </dl>
  2363. </div>
  2364. </div>
  2365. </div>
  2366. <div class="chapter-level-extent" id="Encoders">
  2367. <h2 class="chapter">7 Encoders</h2>
  2368. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2369. multimedia streams.
  2370. </p>
  2371. <p>When you configure your FFmpeg build, all the supported native encoders
  2372. are enabled by default. Encoders requiring an external library must be enabled
  2373. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  2374. available encoders using the configure option <code class="code">--list-encoders</code>.
  2375. </p>
  2376. <p>You can disable all the encoders with the configure option
  2377. <code class="code">--disable-encoders</code> and selectively enable / disable single encoders
  2378. with the options <code class="code">--enable-encoder=<var class="var">ENCODER</var></code> /
  2379. <code class="code">--disable-encoder=<var class="var">ENCODER</var></code>.
  2380. </p>
  2381. <p>The option <code class="code">-encoders</code> of the ff* tools will display the list of
  2382. enabled encoders.
  2383. </p>
  2384. </div>
  2385. <div class="chapter-level-extent" id="Audio-Encoders">
  2386. <h2 class="chapter">8 Audio Encoders</h2>
  2387. <p>A description of some of the currently available audio encoders
  2388. follows.
  2389. </p>
  2390. <a class="anchor" id="aacenc"></a><ul class="mini-toc">
  2391. <li><a href="#aac" accesskey="1">aac</a></li>
  2392. <li><a href="#ac3-and-ac3_005ffixed" accesskey="2">ac3 and ac3_fixed</a></li>
  2393. <li><a href="#flac-2" accesskey="3">flac</a></li>
  2394. <li><a href="#opus" accesskey="4">opus</a></li>
  2395. <li><a href="#libfdk_005faac" accesskey="5">libfdk_aac</a></li>
  2396. <li><a href="#libmp3lame-1" accesskey="6">libmp3lame</a></li>
  2397. <li><a href="#libopencore_002damrnb-1" accesskey="7">libopencore-amrnb</a></li>
  2398. <li><a href="#libopus-1" accesskey="8">libopus</a></li>
  2399. <li><a href="#libshine-1" accesskey="9">libshine</a></li>
  2400. <li><a href="#libtwolame">libtwolame</a></li>
  2401. <li><a href="#libvo_002damrwbenc">libvo-amrwbenc</a></li>
  2402. <li><a href="#libvorbis">libvorbis</a></li>
  2403. <li><a href="#mjpeg">mjpeg</a></li>
  2404. <li><a href="#wavpack">wavpack</a></li>
  2405. </ul>
  2406. <div class="section-level-extent" id="aac">
  2407. <h3 class="section">8.1 aac</h3>
  2408. <p>Advanced Audio Coding (AAC) encoder.
  2409. </p>
  2410. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
  2411. </p>
  2412. <ul class="mini-toc">
  2413. <li><a href="#Options-10" accesskey="1">Options</a></li>
  2414. </ul>
  2415. <div class="subsection-level-extent" id="Options-10">
  2416. <h4 class="subsection">8.1.1 Options</h4>
  2417. <dl class="table">
  2418. <dt><samp class="option">b</samp></dt>
  2419. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2420. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2421. </p>
  2422. </dd>
  2423. <dt><samp class="option">q</samp></dt>
  2424. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2425. the <code class="command">ffmpeg</code> command-line tool. For library interface users, use
  2426. <samp class="option">global_quality</samp>.
  2427. </p>
  2428. </dd>
  2429. <dt><samp class="option">cutoff</samp></dt>
  2430. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2431. adjust the cutoff to improve clarity on low bitrates.
  2432. </p>
  2433. </dd>
  2434. <dt><samp class="option">aac_coder</samp></dt>
  2435. <dd><p>Set AAC encoder coding method. Possible values:
  2436. </p>
  2437. <dl class="table">
  2438. <dt>&lsquo;<samp class="samp">twoloop</samp>&rsquo;</dt>
  2439. <dd><p>Two loop searching (TLS) method. This is the default method.
  2440. </p>
  2441. <p>This method first sets quantizers depending on band thresholds and then tries
  2442. to find an optimal combination by adding or subtracting a specific value from
  2443. all quantizers and adjusting some individual quantizer a little. Will tune
  2444. itself based on whether <samp class="option">aac_is</samp>, <samp class="option">aac_ms</samp> and <samp class="option">aac_pns</samp>
  2445. are enabled.
  2446. </p>
  2447. </dd>
  2448. <dt>&lsquo;<samp class="samp">anmr</samp>&rsquo;</dt>
  2449. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2450. </p>
  2451. <p>This is an experimental coder which currently produces a lower quality, is more
  2452. unstable and is slower than the default twoloop coder but has potential.
  2453. Currently has no support for the <samp class="option">aac_is</samp> or <samp class="option">aac_pns</samp> options.
  2454. Not currently recommended.
  2455. </p>
  2456. </dd>
  2457. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  2458. <dd><p>Constant quantizer method.
  2459. </p>
  2460. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2461. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2462. and much faster at higher bitrates.
  2463. </p>
  2464. </dd>
  2465. </dl>
  2466. </dd>
  2467. <dt><samp class="option">aac_ms</samp></dt>
  2468. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2469. M/S with bands which will benefit from such coding. Can be forced for all bands
  2470. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2471. &quot;disable&quot;.
  2472. </p>
  2473. </dd>
  2474. <dt><samp class="option">aac_is</samp></dt>
  2475. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2476. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2477. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2478. </p>
  2479. </dd>
  2480. <dt><samp class="option">aac_pns</samp></dt>
  2481. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2482. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2483. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2484. </p>
  2485. </dd>
  2486. <dt><samp class="option">aac_tns</samp></dt>
  2487. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2488. bands to hide quantization noise during the encoding process and is reverted
  2489. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2490. this also reduces the entropy in the high bands and allows for more bits to
  2491. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2492. debugging by setting the option to &quot;disable&quot;.
  2493. </p>
  2494. </dd>
  2495. <dt><samp class="option">aac_ltp</samp></dt>
  2496. <dd><p>Enables the use of the long term prediction extension which increases coding
  2497. efficiency in very low bandwidth situations such as encoding of voice or
  2498. solo piano music by extending constant harmonic peaks in bands throughout
  2499. frames. This option is implied by profile:a aac_low and is incompatible with
  2500. aac_pred. Use in conjunction with <samp class="option">-ar</samp> to decrease the samplerate.
  2501. </p>
  2502. </dd>
  2503. <dt><samp class="option">aac_pred</samp></dt>
  2504. <dd><p>Enables the use of a more traditional style of prediction where the spectral
  2505. coefficients transmitted are replaced by the difference of the current
  2506. coefficients minus the previous &quot;predicted&quot; coefficients. In theory and sometimes
  2507. in practice this can improve quality for low to mid bitrate audio.
  2508. This option implies the aac_main profile and is incompatible with aac_ltp.
  2509. </p>
  2510. </dd>
  2511. <dt><samp class="option">profile</samp></dt>
  2512. <dd><p>Sets the encoding profile, possible values:
  2513. </p>
  2514. <dl class="table">
  2515. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  2516. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2517. decent quality.
  2518. </p>
  2519. </dd>
  2520. <dt>&lsquo;<samp class="samp">mpeg2_aac_low</samp>&rsquo;</dt>
  2521. <dd><p>Equivalent to <code class="code">-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2522. MPEG4 specifications.
  2523. </p>
  2524. </dd>
  2525. <dt>&lsquo;<samp class="samp">aac_ltp</samp>&rsquo;</dt>
  2526. <dd><p>Long term prediction profile, is enabled by and will enable the <samp class="option">aac_ltp</samp>
  2527. option. Introduced in MPEG4.
  2528. </p>
  2529. </dd>
  2530. <dt>&lsquo;<samp class="samp">aac_main</samp>&rsquo;</dt>
  2531. <dd><p>Main-type prediction profile, is enabled by and will enable the <samp class="option">aac_pred</samp>
  2532. option. Introduced in MPEG2.
  2533. </p>
  2534. </dd>
  2535. </dl>
  2536. <p>If this option is unspecified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  2537. </p></dd>
  2538. </dl>
  2539. </div>
  2540. </div>
  2541. <div class="section-level-extent" id="ac3-and-ac3_005ffixed">
  2542. <h3 class="section">8.2 ac3 and ac3_fixed</h3>
  2543. <p>AC-3 audio encoders.
  2544. </p>
  2545. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  2546. the undocumented RealAudio 3 (a.k.a. dnet).
  2547. </p>
  2548. <p>The <var class="var">ac3</var> encoder uses floating-point math, while the <var class="var">ac3_fixed</var>
  2549. encoder only uses fixed-point integer math. This does not mean that one is
  2550. always faster, just that one or the other may be better suited to a
  2551. particular system. The <var class="var">ac3_fixed</var> encoder is not the default codec for
  2552. any of the output formats, so it must be specified explicitly using the option
  2553. <code class="code">-acodec ac3_fixed</code> in order to use it.
  2554. </p>
  2555. <ul class="mini-toc">
  2556. <li><a href="#AC_002d3-Metadata" accesskey="1">AC-3 Metadata</a></li>
  2557. <li><a href="#Extended-Bitstream-Information" accesskey="2">Extended Bitstream Information</a></li>
  2558. <li><a href="#Other-AC_002d3-Encoding-Options" accesskey="3">Other AC-3 Encoding Options</a></li>
  2559. <li><a href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" accesskey="4">Floating-Point-Only AC-3 Encoding Options</a></li>
  2560. </ul>
  2561. <div class="subsection-level-extent" id="AC_002d3-Metadata">
  2562. <h4 class="subsection">8.2.1 AC-3 Metadata</h4>
  2563. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2564. but in most cases do not affect the audio encoding itself. Some of the options
  2565. do directly affect or influence the decoding and playback of the resulting
  2566. bitstream, while others are just for informational purposes. A few of the
  2567. options will add bits to the output stream that could otherwise be used for
  2568. audio data, and will thus affect the quality of the output. Those will be
  2569. indicated accordingly with a note in the option list below.
  2570. </p>
  2571. <p>These parameters are described in detail in several publicly-available
  2572. documents.
  2573. </p><ul class="itemize mark-bullet">
  2574. <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>
  2575. </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>
  2576. </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>
  2577. </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>
  2578. </li></ul>
  2579. <ul class="mini-toc">
  2580. <li><a href="#Metadata-Control-Options" accesskey="1">Metadata Control Options</a></li>
  2581. <li><a href="#Downmix-Levels" accesskey="2">Downmix Levels</a></li>
  2582. <li><a href="#Audio-Production-Information" accesskey="3">Audio Production Information</a></li>
  2583. <li><a href="#Other-Metadata-Options" accesskey="4">Other Metadata Options</a></li>
  2584. </ul>
  2585. <div class="subsubsection-level-extent" id="Metadata-Control-Options">
  2586. <h4 class="subsubsection">8.2.1.1 Metadata Control Options</h4>
  2587. <dl class="table">
  2588. <dt><samp class="option">-per_frame_metadata <var class="var">boolean</var></samp></dt>
  2589. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2590. metadata for each frame.
  2591. </p><dl class="table">
  2592. <dt><samp class="option">0</samp></dt>
  2593. <dd><p>The metadata values set at initialization will be used for every frame in the
  2594. stream. (default)
  2595. </p></dd>
  2596. <dt><samp class="option">1</samp></dt>
  2597. <dd><p>Metadata values can be changed before encoding each frame.
  2598. </p></dd>
  2599. </dl>
  2600. </dd>
  2601. </dl>
  2602. </div>
  2603. <div class="subsubsection-level-extent" id="Downmix-Levels">
  2604. <h4 class="subsubsection">8.2.1.2 Downmix Levels</h4>
  2605. <dl class="table">
  2606. <dt><samp class="option">-center_mixlev <var class="var">level</var></samp></dt>
  2607. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2608. channel when downmixing to stereo. This field will only be written to the
  2609. bitstream if a center channel is present. The value is specified as a scale
  2610. factor. There are 3 valid values:
  2611. </p><dl class="table">
  2612. <dt><samp class="option">0.707</samp></dt>
  2613. <dd><p>Apply -3dB gain
  2614. </p></dd>
  2615. <dt><samp class="option">0.595</samp></dt>
  2616. <dd><p>Apply -4.5dB gain (default)
  2617. </p></dd>
  2618. <dt><samp class="option">0.500</samp></dt>
  2619. <dd><p>Apply -6dB gain
  2620. </p></dd>
  2621. </dl>
  2622. </dd>
  2623. <dt><samp class="option">-surround_mixlev <var class="var">level</var></samp></dt>
  2624. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2625. channel(s) when downmixing to stereo. This field will only be written to the
  2626. bitstream if one or more surround channels are present. The value is specified
  2627. as a scale factor. There are 3 valid values:
  2628. </p><dl class="table">
  2629. <dt><samp class="option">0.707</samp></dt>
  2630. <dd><p>Apply -3dB gain
  2631. </p></dd>
  2632. <dt><samp class="option">0.500</samp></dt>
  2633. <dd><p>Apply -6dB gain (default)
  2634. </p></dd>
  2635. <dt><samp class="option">0.000</samp></dt>
  2636. <dd><p>Silence Surround Channel(s)
  2637. </p></dd>
  2638. </dl>
  2639. </dd>
  2640. </dl>
  2641. </div>
  2642. <div class="subsubsection-level-extent" id="Audio-Production-Information">
  2643. <h4 class="subsubsection">8.2.1.3 Audio Production Information</h4>
  2644. <p>Audio Production Information is optional information describing the mixing
  2645. environment. Either none or both of the fields are written to the bitstream.
  2646. </p>
  2647. <dl class="table">
  2648. <dt><samp class="option">-mixing_level <var class="var">number</var></samp></dt>
  2649. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2650. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2651. unknown or not indicated. The default value is -1, but that value cannot be
  2652. used if the Audio Production Information is written to the bitstream. Therefore,
  2653. if the <code class="code">room_type</code> option is not the default value, the <code class="code">mixing_level</code>
  2654. option must not be -1.
  2655. </p>
  2656. </dd>
  2657. <dt><samp class="option">-room_type <var class="var">type</var></samp></dt>
  2658. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2659. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2660. industry standard X-curve equalization; a small room has flat equalization.
  2661. This field will not be written to the bitstream if both the <code class="code">mixing_level</code>
  2662. option and the <code class="code">room_type</code> option have the default values.
  2663. </p><dl class="table">
  2664. <dt><samp class="option">0</samp></dt>
  2665. <dt><samp class="option">notindicated</samp></dt>
  2666. <dd><p>Not Indicated (default)
  2667. </p></dd>
  2668. <dt><samp class="option">1</samp></dt>
  2669. <dt><samp class="option">large</samp></dt>
  2670. <dd><p>Large Room
  2671. </p></dd>
  2672. <dt><samp class="option">2</samp></dt>
  2673. <dt><samp class="option">small</samp></dt>
  2674. <dd><p>Small Room
  2675. </p></dd>
  2676. </dl>
  2677. </dd>
  2678. </dl>
  2679. </div>
  2680. <div class="subsubsection-level-extent" id="Other-Metadata-Options">
  2681. <h4 class="subsubsection">8.2.1.4 Other Metadata Options</h4>
  2682. <dl class="table">
  2683. <dt><samp class="option">-copyright <var class="var">boolean</var></samp></dt>
  2684. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2685. </p><dl class="table">
  2686. <dt><samp class="option">0</samp></dt>
  2687. <dt><samp class="option">off</samp></dt>
  2688. <dd><p>No Copyright Exists (default)
  2689. </p></dd>
  2690. <dt><samp class="option">1</samp></dt>
  2691. <dt><samp class="option">on</samp></dt>
  2692. <dd><p>Copyright Exists
  2693. </p></dd>
  2694. </dl>
  2695. </dd>
  2696. <dt><samp class="option">-dialnorm <var class="var">value</var></samp></dt>
  2697. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2698. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2699. level shift during audio reproduction that sets the average volume of the
  2700. dialogue to a preset level. The goal is to match volume level between program
  2701. sources. A value of -31dB will result in no volume level change, relative to
  2702. the source volume, during audio reproduction. Valid values are whole numbers in
  2703. the range -31 to -1, with -31 being the default.
  2704. </p>
  2705. </dd>
  2706. <dt><samp class="option">-dsur_mode <var class="var">mode</var></samp></dt>
  2707. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2708. (Pro Logic). This field will only be written to the bitstream if the audio
  2709. stream is stereo. Using this option does <b class="b">NOT</b> mean the encoder will actually
  2710. apply Dolby Surround processing.
  2711. </p><dl class="table">
  2712. <dt><samp class="option">0</samp></dt>
  2713. <dt><samp class="option">notindicated</samp></dt>
  2714. <dd><p>Not Indicated (default)
  2715. </p></dd>
  2716. <dt><samp class="option">1</samp></dt>
  2717. <dt><samp class="option">off</samp></dt>
  2718. <dd><p>Not Dolby Surround Encoded
  2719. </p></dd>
  2720. <dt><samp class="option">2</samp></dt>
  2721. <dt><samp class="option">on</samp></dt>
  2722. <dd><p>Dolby Surround Encoded
  2723. </p></dd>
  2724. </dl>
  2725. </dd>
  2726. <dt><samp class="option">-original <var class="var">boolean</var></samp></dt>
  2727. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2728. original source and not a copy.
  2729. </p><dl class="table">
  2730. <dt><samp class="option">0</samp></dt>
  2731. <dt><samp class="option">off</samp></dt>
  2732. <dd><p>Not Original Source
  2733. </p></dd>
  2734. <dt><samp class="option">1</samp></dt>
  2735. <dt><samp class="option">on</samp></dt>
  2736. <dd><p>Original Source (default)
  2737. </p></dd>
  2738. </dl>
  2739. </dd>
  2740. </dl>
  2741. </div>
  2742. </div>
  2743. <div class="subsection-level-extent" id="Extended-Bitstream-Information">
  2744. <h4 class="subsection">8.2.2 Extended Bitstream Information</h4>
  2745. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2746. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2747. If any one parameter in a group is specified, all values in that group will be
  2748. written to the bitstream. Default values are used for those that are written
  2749. but have not been specified. If the mixing levels are written, the decoder
  2750. will use these values instead of the ones specified in the <code class="code">center_mixlev</code>
  2751. and <code class="code">surround_mixlev</code> options if it supports the Alternate Bit Stream
  2752. Syntax.
  2753. </p>
  2754. <ul class="mini-toc">
  2755. <li><a href="#Extended-Bitstream-Information-_002d-Part-1" accesskey="1">Extended Bitstream Information - Part 1</a></li>
  2756. <li><a href="#Extended-Bitstream-Information-_002d-Part-2" accesskey="2">Extended Bitstream Information - Part 2</a></li>
  2757. </ul>
  2758. <div class="subsubsection-level-extent" id="Extended-Bitstream-Information-_002d-Part-1">
  2759. <h4 class="subsubsection">8.2.2.1 Extended Bitstream Information - Part 1</h4>
  2760. <dl class="table">
  2761. <dt><samp class="option">-dmix_mode <var class="var">mode</var></samp></dt>
  2762. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2763. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2764. </p><dl class="table">
  2765. <dt><samp class="option">0</samp></dt>
  2766. <dt><samp class="option">notindicated</samp></dt>
  2767. <dd><p>Not Indicated (default)
  2768. </p></dd>
  2769. <dt><samp class="option">1</samp></dt>
  2770. <dt><samp class="option">ltrt</samp></dt>
  2771. <dd><p>Lt/Rt Downmix Preferred
  2772. </p></dd>
  2773. <dt><samp class="option">2</samp></dt>
  2774. <dt><samp class="option">loro</samp></dt>
  2775. <dd><p>Lo/Ro Downmix Preferred
  2776. </p></dd>
  2777. </dl>
  2778. </dd>
  2779. <dt><samp class="option">-ltrt_cmixlev <var class="var">level</var></samp></dt>
  2780. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2781. center channel when downmixing to stereo in Lt/Rt mode.
  2782. </p><dl class="table">
  2783. <dt><samp class="option">1.414</samp></dt>
  2784. <dd><p>Apply +3dB gain
  2785. </p></dd>
  2786. <dt><samp class="option">1.189</samp></dt>
  2787. <dd><p>Apply +1.5dB gain
  2788. </p></dd>
  2789. <dt><samp class="option">1.000</samp></dt>
  2790. <dd><p>Apply 0dB gain
  2791. </p></dd>
  2792. <dt><samp class="option">0.841</samp></dt>
  2793. <dd><p>Apply -1.5dB gain
  2794. </p></dd>
  2795. <dt><samp class="option">0.707</samp></dt>
  2796. <dd><p>Apply -3.0dB gain
  2797. </p></dd>
  2798. <dt><samp class="option">0.595</samp></dt>
  2799. <dd><p>Apply -4.5dB gain (default)
  2800. </p></dd>
  2801. <dt><samp class="option">0.500</samp></dt>
  2802. <dd><p>Apply -6.0dB gain
  2803. </p></dd>
  2804. <dt><samp class="option">0.000</samp></dt>
  2805. <dd><p>Silence Center Channel
  2806. </p></dd>
  2807. </dl>
  2808. </dd>
  2809. <dt><samp class="option">-ltrt_surmixlev <var class="var">level</var></samp></dt>
  2810. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2811. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2812. </p><dl class="table">
  2813. <dt><samp class="option">0.841</samp></dt>
  2814. <dd><p>Apply -1.5dB gain
  2815. </p></dd>
  2816. <dt><samp class="option">0.707</samp></dt>
  2817. <dd><p>Apply -3.0dB gain
  2818. </p></dd>
  2819. <dt><samp class="option">0.595</samp></dt>
  2820. <dd><p>Apply -4.5dB gain
  2821. </p></dd>
  2822. <dt><samp class="option">0.500</samp></dt>
  2823. <dd><p>Apply -6.0dB gain (default)
  2824. </p></dd>
  2825. <dt><samp class="option">0.000</samp></dt>
  2826. <dd><p>Silence Surround Channel(s)
  2827. </p></dd>
  2828. </dl>
  2829. </dd>
  2830. <dt><samp class="option">-loro_cmixlev <var class="var">level</var></samp></dt>
  2831. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2832. center channel when downmixing to stereo in Lo/Ro mode.
  2833. </p><dl class="table">
  2834. <dt><samp class="option">1.414</samp></dt>
  2835. <dd><p>Apply +3dB gain
  2836. </p></dd>
  2837. <dt><samp class="option">1.189</samp></dt>
  2838. <dd><p>Apply +1.5dB gain
  2839. </p></dd>
  2840. <dt><samp class="option">1.000</samp></dt>
  2841. <dd><p>Apply 0dB gain
  2842. </p></dd>
  2843. <dt><samp class="option">0.841</samp></dt>
  2844. <dd><p>Apply -1.5dB gain
  2845. </p></dd>
  2846. <dt><samp class="option">0.707</samp></dt>
  2847. <dd><p>Apply -3.0dB gain
  2848. </p></dd>
  2849. <dt><samp class="option">0.595</samp></dt>
  2850. <dd><p>Apply -4.5dB gain (default)
  2851. </p></dd>
  2852. <dt><samp class="option">0.500</samp></dt>
  2853. <dd><p>Apply -6.0dB gain
  2854. </p></dd>
  2855. <dt><samp class="option">0.000</samp></dt>
  2856. <dd><p>Silence Center Channel
  2857. </p></dd>
  2858. </dl>
  2859. </dd>
  2860. <dt><samp class="option">-loro_surmixlev <var class="var">level</var></samp></dt>
  2861. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2862. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2863. </p><dl class="table">
  2864. <dt><samp class="option">0.841</samp></dt>
  2865. <dd><p>Apply -1.5dB gain
  2866. </p></dd>
  2867. <dt><samp class="option">0.707</samp></dt>
  2868. <dd><p>Apply -3.0dB gain
  2869. </p></dd>
  2870. <dt><samp class="option">0.595</samp></dt>
  2871. <dd><p>Apply -4.5dB gain
  2872. </p></dd>
  2873. <dt><samp class="option">0.500</samp></dt>
  2874. <dd><p>Apply -6.0dB gain (default)
  2875. </p></dd>
  2876. <dt><samp class="option">0.000</samp></dt>
  2877. <dd><p>Silence Surround Channel(s)
  2878. </p></dd>
  2879. </dl>
  2880. </dd>
  2881. </dl>
  2882. </div>
  2883. <div class="subsubsection-level-extent" id="Extended-Bitstream-Information-_002d-Part-2">
  2884. <h4 class="subsubsection">8.2.2.2 Extended Bitstream Information - Part 2</h4>
  2885. <dl class="table">
  2886. <dt><samp class="option">-dsurex_mode <var class="var">mode</var></samp></dt>
  2887. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2888. (7.1 matrixed to 5.1). Using this option does <b class="b">NOT</b> mean the encoder will actually
  2889. apply Dolby Surround EX processing.
  2890. </p><dl class="table">
  2891. <dt><samp class="option">0</samp></dt>
  2892. <dt><samp class="option">notindicated</samp></dt>
  2893. <dd><p>Not Indicated (default)
  2894. </p></dd>
  2895. <dt><samp class="option">1</samp></dt>
  2896. <dt><samp class="option">on</samp></dt>
  2897. <dd><p>Dolby Surround EX Off
  2898. </p></dd>
  2899. <dt><samp class="option">2</samp></dt>
  2900. <dt><samp class="option">off</samp></dt>
  2901. <dd><p>Dolby Surround EX On
  2902. </p></dd>
  2903. </dl>
  2904. </dd>
  2905. <dt><samp class="option">-dheadphone_mode <var class="var">mode</var></samp></dt>
  2906. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2907. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2908. option does <b class="b">NOT</b> mean the encoder will actually apply Dolby Headphone
  2909. processing.
  2910. </p><dl class="table">
  2911. <dt><samp class="option">0</samp></dt>
  2912. <dt><samp class="option">notindicated</samp></dt>
  2913. <dd><p>Not Indicated (default)
  2914. </p></dd>
  2915. <dt><samp class="option">1</samp></dt>
  2916. <dt><samp class="option">on</samp></dt>
  2917. <dd><p>Dolby Headphone Off
  2918. </p></dd>
  2919. <dt><samp class="option">2</samp></dt>
  2920. <dt><samp class="option">off</samp></dt>
  2921. <dd><p>Dolby Headphone On
  2922. </p></dd>
  2923. </dl>
  2924. </dd>
  2925. <dt><samp class="option">-ad_conv_type <var class="var">type</var></samp></dt>
  2926. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2927. conversion.
  2928. </p><dl class="table">
  2929. <dt><samp class="option">0</samp></dt>
  2930. <dt><samp class="option">standard</samp></dt>
  2931. <dd><p>Standard A/D Converter (default)
  2932. </p></dd>
  2933. <dt><samp class="option">1</samp></dt>
  2934. <dt><samp class="option">hdcd</samp></dt>
  2935. <dd><p>HDCD A/D Converter
  2936. </p></dd>
  2937. </dl>
  2938. </dd>
  2939. </dl>
  2940. </div>
  2941. </div>
  2942. <div class="subsection-level-extent" id="Other-AC_002d3-Encoding-Options">
  2943. <h4 class="subsection">8.2.3 Other AC-3 Encoding Options</h4>
  2944. <dl class="table">
  2945. <dt><samp class="option">-stereo_rematrixing <var class="var">boolean</var></samp></dt>
  2946. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2947. is an optional AC-3 feature that increases quality by selectively encoding
  2948. the left/right channels as mid/side. This option is enabled by default, and it
  2949. is highly recommended that it be left as enabled except for testing purposes.
  2950. </p>
  2951. </dd>
  2952. <dt><samp class="option">cutoff <var class="var">frequency</var></samp></dt>
  2953. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2954. determined by various other encoding parameters.
  2955. </p>
  2956. </dd>
  2957. </dl>
  2958. </div>
  2959. <div class="subsection-level-extent" id="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">
  2960. <h4 class="subsection">8.2.4 Floating-Point-Only AC-3 Encoding Options</h4>
  2961. <p>These options are only valid for the floating-point encoder and do not exist
  2962. for the fixed-point encoder due to the corresponding features not being
  2963. implemented in fixed-point.
  2964. </p>
  2965. <dl class="table">
  2966. <dt><samp class="option">-channel_coupling <var class="var">boolean</var></samp></dt>
  2967. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2968. that increases quality by combining high frequency information from multiple
  2969. channels into a single channel. The per-channel high frequency information is
  2970. sent with less accuracy in both the frequency and time domains. This allows
  2971. more bits to be used for lower frequencies while preserving enough information
  2972. to reconstruct the high frequencies. This option is enabled by default for the
  2973. floating-point encoder and should generally be left as enabled except for
  2974. testing purposes or to increase encoding speed.
  2975. </p><dl class="table">
  2976. <dt><samp class="option">-1</samp></dt>
  2977. <dt><samp class="option">auto</samp></dt>
  2978. <dd><p>Selected by Encoder (default)
  2979. </p></dd>
  2980. <dt><samp class="option">0</samp></dt>
  2981. <dt><samp class="option">off</samp></dt>
  2982. <dd><p>Disable Channel Coupling
  2983. </p></dd>
  2984. <dt><samp class="option">1</samp></dt>
  2985. <dt><samp class="option">on</samp></dt>
  2986. <dd><p>Enable Channel Coupling
  2987. </p></dd>
  2988. </dl>
  2989. </dd>
  2990. <dt><samp class="option">-cpl_start_band <var class="var">number</var></samp></dt>
  2991. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2992. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2993. coupling end band. If <var class="var">auto</var> is used, the start band will be determined by
  2994. the encoder based on the bit rate, sample rate, and channel layout. This option
  2995. has no effect if channel coupling is disabled.
  2996. </p><dl class="table">
  2997. <dt><samp class="option">-1</samp></dt>
  2998. <dt><samp class="option">auto</samp></dt>
  2999. <dd><p>Selected by Encoder (default)
  3000. </p></dd>
  3001. </dl>
  3002. </dd>
  3003. </dl>
  3004. <a class="anchor" id="flac"></a></div>
  3005. </div>
  3006. <div class="section-level-extent" id="flac-2">
  3007. <h3 class="section">8.3 flac</h3>
  3008. <p>FLAC (Free Lossless Audio Codec) Encoder
  3009. </p>
  3010. <ul class="mini-toc">
  3011. <li><a href="#Options-11" accesskey="1">Options</a></li>
  3012. </ul>
  3013. <div class="subsection-level-extent" id="Options-11">
  3014. <h4 class="subsection">8.3.1 Options</h4>
  3015. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  3016. </p>
  3017. <dl class="table">
  3018. <dt><samp class="option">compression_level</samp></dt>
  3019. <dd><p>Sets the compression level, which chooses defaults for many other options
  3020. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  3021. default.
  3022. </p>
  3023. </dd>
  3024. <dt><samp class="option">frame_size</samp></dt>
  3025. <dd><p>Sets the size of the frames in samples per channel.
  3026. </p>
  3027. </dd>
  3028. <dt><samp class="option">lpc_coeff_precision</samp></dt>
  3029. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  3030. default.
  3031. </p>
  3032. </dd>
  3033. <dt><samp class="option">lpc_type</samp></dt>
  3034. <dd><p>Sets the first stage LPC algorithm
  3035. </p><dl class="table">
  3036. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  3037. <dd><p>LPC is not used
  3038. </p>
  3039. </dd>
  3040. <dt>&lsquo;<samp class="samp">fixed</samp>&rsquo;</dt>
  3041. <dd><p>fixed LPC coefficients
  3042. </p>
  3043. </dd>
  3044. <dt>&lsquo;<samp class="samp">levinson</samp>&rsquo;</dt>
  3045. <dt>&lsquo;<samp class="samp">cholesky</samp>&rsquo;</dt>
  3046. </dl>
  3047. </dd>
  3048. <dt><samp class="option">lpc_passes</samp></dt>
  3049. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  3050. </p>
  3051. </dd>
  3052. <dt><samp class="option">min_partition_order</samp></dt>
  3053. <dd><p>The minimum partition order
  3054. </p>
  3055. </dd>
  3056. <dt><samp class="option">max_partition_order</samp></dt>
  3057. <dd><p>The maximum partition order
  3058. </p>
  3059. </dd>
  3060. <dt><samp class="option">prediction_order_method</samp></dt>
  3061. <dd><dl class="table">
  3062. <dt>&lsquo;<samp class="samp">estimation</samp>&rsquo;</dt>
  3063. <dt>&lsquo;<samp class="samp">2level</samp>&rsquo;</dt>
  3064. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  3065. <dt>&lsquo;<samp class="samp">8level</samp>&rsquo;</dt>
  3066. <dt>&lsquo;<samp class="samp">search</samp>&rsquo;</dt>
  3067. <dd><p>Bruteforce search
  3068. </p></dd>
  3069. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  3070. </dl>
  3071. </dd>
  3072. <dt><samp class="option">ch_mode</samp></dt>
  3073. <dd><p>Channel mode
  3074. </p><dl class="table">
  3075. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3076. <dd><p>The mode is chosen automatically for each frame
  3077. </p></dd>
  3078. <dt>&lsquo;<samp class="samp">indep</samp>&rsquo;</dt>
  3079. <dd><p>Channels are independently coded
  3080. </p></dd>
  3081. <dt>&lsquo;<samp class="samp">left_side</samp>&rsquo;</dt>
  3082. <dt>&lsquo;<samp class="samp">right_side</samp>&rsquo;</dt>
  3083. <dt>&lsquo;<samp class="samp">mid_side</samp>&rsquo;</dt>
  3084. </dl>
  3085. </dd>
  3086. <dt><samp class="option">exact_rice_parameters</samp></dt>
  3087. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  3088. if set to 1 then they are chosen exactly, which slows the code down slightly and
  3089. improves compression slightly.
  3090. </p>
  3091. </dd>
  3092. <dt><samp class="option">multi_dim_quant</samp></dt>
  3093. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  3094. applied after the first stage to finetune the coefficients. This is quite slow
  3095. and slightly improves compression.
  3096. </p>
  3097. </dd>
  3098. </dl>
  3099. <a class="anchor" id="opusenc"></a></div>
  3100. </div>
  3101. <div class="section-level-extent" id="opus">
  3102. <h3 class="section">8.4 opus</h3>
  3103. <p>Opus encoder.
  3104. </p>
  3105. <p>This is a native FFmpeg encoder for the Opus format. Currently its in development and
  3106. only implements the CELT part of the codec. Its quality is usually worse and at best
  3107. is equal to the libopus encoder.
  3108. </p>
  3109. <ul class="mini-toc">
  3110. <li><a href="#Options-12" accesskey="1">Options</a></li>
  3111. </ul>
  3112. <div class="subsection-level-extent" id="Options-12">
  3113. <h4 class="subsection">8.4.1 Options</h4>
  3114. <dl class="table">
  3115. <dt><samp class="option">b</samp></dt>
  3116. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  3117. to make a good guess.
  3118. </p>
  3119. </dd>
  3120. <dt><samp class="option">opus_delay</samp></dt>
  3121. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  3122. decrease quality.
  3123. </p></dd>
  3124. </dl>
  3125. <a class="anchor" id="libfdk_002daac_002denc"></a></div>
  3126. </div>
  3127. <div class="section-level-extent" id="libfdk_005faac">
  3128. <h3 class="section">8.5 libfdk_aac</h3>
  3129. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  3130. </p>
  3131. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  3132. the Android project.
  3133. </p>
  3134. <p>Requires the presence of the libfdk-aac headers and library during
  3135. configuration. You need to explicitly configure the build with
  3136. <code class="code">--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  3137. so if you allow the use of GPL, you should configure with
  3138. <code class="code">--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  3139. </p>
  3140. <p>This encoder has support for the AAC-HE profiles.
  3141. </p>
  3142. <p>VBR encoding, enabled through the <samp class="option">vbr</samp> or <samp class="option">flags
  3143. +qscale</samp> options, is experimental and only works with some
  3144. combinations of parameters.
  3145. </p>
  3146. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  3147. higher.
  3148. </p>
  3149. <p>For more information see the fdk-aac project at
  3150. <a class="url" href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  3151. </p>
  3152. <ul class="mini-toc">
  3153. <li><a href="#Options-13" accesskey="1">Options</a></li>
  3154. <li><a href="#Examples" accesskey="2">Examples</a></li>
  3155. </ul>
  3156. <div class="subsection-level-extent" id="Options-13">
  3157. <h4 class="subsection">8.5.1 Options</h4>
  3158. <p>The following options are mapped on the shared FFmpeg codec options.
  3159. </p>
  3160. <dl class="table">
  3161. <dt><samp class="option">b</samp></dt>
  3162. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  3163. is automatically set to a suitable value depending on the selected
  3164. profile.
  3165. </p>
  3166. <p>In case VBR mode is enabled the option is ignored.
  3167. </p>
  3168. </dd>
  3169. <dt><samp class="option">ar</samp></dt>
  3170. <dd><p>Set audio sampling rate (in Hz).
  3171. </p>
  3172. </dd>
  3173. <dt><samp class="option">channels</samp></dt>
  3174. <dd><p>Set the number of audio channels.
  3175. </p>
  3176. </dd>
  3177. <dt><samp class="option">flags +qscale</samp></dt>
  3178. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  3179. Note that VBR is implicitly enabled when the <samp class="option">vbr</samp> value is
  3180. positive.
  3181. </p>
  3182. </dd>
  3183. <dt><samp class="option">cutoff</samp></dt>
  3184. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  3185. will use a value automatically computed by the library. Default value
  3186. is 0.
  3187. </p>
  3188. </dd>
  3189. <dt><samp class="option">profile</samp></dt>
  3190. <dd><p>Set audio profile.
  3191. </p>
  3192. <p>The following profiles are recognized:
  3193. </p><dl class="table">
  3194. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  3195. <dd><p>Low Complexity AAC (LC)
  3196. </p>
  3197. </dd>
  3198. <dt>&lsquo;<samp class="samp">aac_he</samp>&rsquo;</dt>
  3199. <dd><p>High Efficiency AAC (HE-AAC)
  3200. </p>
  3201. </dd>
  3202. <dt>&lsquo;<samp class="samp">aac_he_v2</samp>&rsquo;</dt>
  3203. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  3204. </p>
  3205. </dd>
  3206. <dt>&lsquo;<samp class="samp">aac_ld</samp>&rsquo;</dt>
  3207. <dd><p>Low Delay AAC (LD)
  3208. </p>
  3209. </dd>
  3210. <dt>&lsquo;<samp class="samp">aac_eld</samp>&rsquo;</dt>
  3211. <dd><p>Enhanced Low Delay AAC (ELD)
  3212. </p></dd>
  3213. </dl>
  3214. <p>If not specified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  3215. </p></dd>
  3216. </dl>
  3217. <p>The following are private options of the libfdk_aac encoder.
  3218. </p>
  3219. <dl class="table">
  3220. <dt><samp class="option">afterburner</samp></dt>
  3221. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  3222. improves the quality but also the required processing power.
  3223. </p>
  3224. <p>Default value is 1.
  3225. </p>
  3226. </dd>
  3227. <dt><samp class="option">eld_sbr</samp></dt>
  3228. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  3229. if set to 0.
  3230. </p>
  3231. <p>Default value is 0.
  3232. </p>
  3233. </dd>
  3234. <dt><samp class="option">eld_v2</samp></dt>
  3235. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  3236. disabled if set to 0.
  3237. </p>
  3238. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  3239. </p>
  3240. <p>Default value is 0.
  3241. </p>
  3242. </dd>
  3243. <dt><samp class="option">signaling</samp></dt>
  3244. <dd><p>Set SBR/PS signaling style.
  3245. </p>
  3246. <p>It can assume one of the following values:
  3247. </p><dl class="table">
  3248. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3249. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  3250. implicit if global header is disabled)
  3251. </p>
  3252. </dd>
  3253. <dt>&lsquo;<samp class="samp">implicit</samp>&rsquo;</dt>
  3254. <dd><p>implicit backwards compatible signaling
  3255. </p>
  3256. </dd>
  3257. <dt>&lsquo;<samp class="samp">explicit_sbr</samp>&rsquo;</dt>
  3258. <dd><p>explicit SBR, implicit PS signaling
  3259. </p>
  3260. </dd>
  3261. <dt>&lsquo;<samp class="samp">explicit_hierarchical</samp>&rsquo;</dt>
  3262. <dd><p>explicit hierarchical signaling
  3263. </p></dd>
  3264. </dl>
  3265. <p>Default value is &lsquo;<samp class="samp">default</samp>&rsquo;.
  3266. </p>
  3267. </dd>
  3268. <dt><samp class="option">latm</samp></dt>
  3269. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  3270. </p>
  3271. <p>Default value is 0.
  3272. </p>
  3273. </dd>
  3274. <dt><samp class="option">header_period</samp></dt>
  3275. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  3276. in-band configuration buffers within LATM/LOAS transport layer.
  3277. </p>
  3278. <p>Must be a 16-bits non-negative integer.
  3279. </p>
  3280. <p>Default value is 0.
  3281. </p>
  3282. </dd>
  3283. <dt><samp class="option">vbr</samp></dt>
  3284. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  3285. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  3286. (Constant Bit Rate) is enabled.
  3287. </p>
  3288. <p>Currently only the &lsquo;<samp class="samp">aac_low</samp>&rsquo; profile supports VBR encoding.
  3289. </p>
  3290. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  3291. </p>
  3292. <dl class="table">
  3293. <dt>&lsquo;<samp class="samp">1</samp>&rsquo;</dt>
  3294. <dd><p>32 kbps/channel
  3295. </p></dd>
  3296. <dt>&lsquo;<samp class="samp">2</samp>&rsquo;</dt>
  3297. <dd><p>40 kbps/channel
  3298. </p></dd>
  3299. <dt>&lsquo;<samp class="samp">3</samp>&rsquo;</dt>
  3300. <dd><p>48-56 kbps/channel
  3301. </p></dd>
  3302. <dt>&lsquo;<samp class="samp">4</samp>&rsquo;</dt>
  3303. <dd><p>64 kbps/channel
  3304. </p></dd>
  3305. <dt>&lsquo;<samp class="samp">5</samp>&rsquo;</dt>
  3306. <dd><p>about 80-96 kbps/channel
  3307. </p></dd>
  3308. </dl>
  3309. <p>Default value is 0.
  3310. </p>
  3311. </dd>
  3312. <dt><samp class="option">frame_length</samp></dt>
  3313. <dd><p>Set the audio frame length in samples. Default value is the internal
  3314. default of the library. Refer to the library&rsquo;s documentation for information
  3315. about supported values.
  3316. </p></dd>
  3317. </dl>
  3318. </div>
  3319. <div class="subsection-level-extent" id="Examples">
  3320. <h4 class="subsection">8.5.2 Examples</h4>
  3321. <ul class="itemize mark-bullet">
  3322. <li>Use <code class="command">ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  3323. container:
  3324. <div class="example">
  3325. <pre class="example-preformatted">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  3326. </pre></div>
  3327. </li><li>Use <code class="command">ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  3328. High-Efficiency AAC profile:
  3329. <div class="example">
  3330. <pre class="example-preformatted">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  3331. </pre></div>
  3332. </li></ul>
  3333. <a class="anchor" id="libmp3lame"></a></div>
  3334. </div>
  3335. <div class="section-level-extent" id="libmp3lame-1">
  3336. <h3 class="section">8.6 libmp3lame</h3>
  3337. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  3338. </p>
  3339. <p>Requires the presence of the libmp3lame headers and library during
  3340. configuration. You need to explicitly configure the build with
  3341. <code class="code">--enable-libmp3lame</code>.
  3342. </p>
  3343. <p>See <a class="ref" href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  3344. lower quality.
  3345. </p>
  3346. <ul class="mini-toc">
  3347. <li><a href="#Options-14" accesskey="1">Options</a></li>
  3348. </ul>
  3349. <div class="subsection-level-extent" id="Options-14">
  3350. <h4 class="subsection">8.6.1 Options</h4>
  3351. <p>The following options are supported by the libmp3lame wrapper. The
  3352. <code class="command">lame</code>-equivalent of the options are listed in parentheses.
  3353. </p>
  3354. <dl class="table">
  3355. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3356. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code class="code">bitrate</code> is
  3357. expressed in kilobits/s.
  3358. </p>
  3359. </dd>
  3360. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3361. <dd><p>Set constant quality setting for VBR. This option is valid only
  3362. using the <code class="command">ffmpeg</code> command-line tool. For library interface
  3363. users, use <samp class="option">global_quality</samp>.
  3364. </p>
  3365. </dd>
  3366. <dt><samp class="option">compression_level (<em class="emph">-q</em>)</samp></dt>
  3367. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  3368. with 0 meaning highest quality but slowest, and 9 meaning fastest
  3369. while producing the worst quality.
  3370. </p>
  3371. </dd>
  3372. <dt><samp class="option">cutoff (<em class="emph">--lowpass</em>)</samp></dt>
  3373. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  3374. adjusts the cutoff.
  3375. </p>
  3376. </dd>
  3377. <dt><samp class="option">reservoir</samp></dt>
  3378. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  3379. has this enabled by default, but can be overridden by use
  3380. <samp class="option">--nores</samp> option.
  3381. </p>
  3382. </dd>
  3383. <dt><samp class="option">joint_stereo (<em class="emph">-m j</em>)</samp></dt>
  3384. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  3385. stereo or mid/side stereo. Default value is 1.
  3386. </p>
  3387. </dd>
  3388. <dt><samp class="option">abr (<em class="emph">--abr</em>)</samp></dt>
  3389. <dd><p>Enable the encoder to use ABR when set to 1. The <code class="command">lame</code>
  3390. <samp class="option">--abr</samp> sets the target bitrate, while this options only
  3391. tells FFmpeg to use ABR still relies on <samp class="option">b</samp> to set bitrate.
  3392. </p>
  3393. </dd>
  3394. <dt><samp class="option">copyright (<em class="emph">-c</em>)</samp></dt>
  3395. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3396. (disabled).
  3397. </p>
  3398. </dd>
  3399. <dt><samp class="option">original (<em class="emph">-o</em>)</samp></dt>
  3400. <dd><p>Set MPEG audio original flag when set to 1. The default value is 1
  3401. (enabled).
  3402. </p></dd>
  3403. </dl>
  3404. </div>
  3405. </div>
  3406. <div class="section-level-extent" id="libopencore_002damrnb-1">
  3407. <h3 class="section">8.7 libopencore-amrnb</h3>
  3408. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  3409. </p>
  3410. <p>Requires the presence of the libopencore-amrnb headers and library during
  3411. configuration. You need to explicitly configure the build with
  3412. <code class="code">--enable-libopencore-amrnb --enable-version3</code>.
  3413. </p>
  3414. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  3415. but you can override it by setting <samp class="option">strict</samp> to &lsquo;<samp class="samp">unofficial</samp>&rsquo; or
  3416. lower.
  3417. </p>
  3418. <ul class="mini-toc">
  3419. <li><a href="#Options-15" accesskey="1">Options</a></li>
  3420. </ul>
  3421. <div class="subsection-level-extent" id="Options-15">
  3422. <h4 class="subsection">8.7.1 Options</h4>
  3423. <dl class="table">
  3424. <dt><samp class="option">b</samp></dt>
  3425. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  3426. otherwise libavcodec will round to the nearest valid bitrate.
  3427. </p>
  3428. <dl class="table">
  3429. <dt><samp class="option">4750</samp></dt>
  3430. <dt><samp class="option">5150</samp></dt>
  3431. <dt><samp class="option">5900</samp></dt>
  3432. <dt><samp class="option">6700</samp></dt>
  3433. <dt><samp class="option">7400</samp></dt>
  3434. <dt><samp class="option">7950</samp></dt>
  3435. <dt><samp class="option">10200</samp></dt>
  3436. <dt><samp class="option">12200</samp></dt>
  3437. </dl>
  3438. </dd>
  3439. <dt><samp class="option">dtx</samp></dt>
  3440. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3441. default value is 0 (disabled).
  3442. </p>
  3443. </dd>
  3444. </dl>
  3445. </div>
  3446. </div>
  3447. <div class="section-level-extent" id="libopus-1">
  3448. <h3 class="section">8.8 libopus</h3>
  3449. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3450. </p>
  3451. <p>Requires the presence of the libopus headers and library during
  3452. configuration. You need to explicitly configure the build with
  3453. <code class="code">--enable-libopus</code>.
  3454. </p>
  3455. <ul class="mini-toc">
  3456. <li><a href="#Option-Mapping" accesskey="1">Option Mapping</a></li>
  3457. </ul>
  3458. <div class="subsection-level-extent" id="Option-Mapping">
  3459. <h4 class="subsection">8.8.1 Option Mapping</h4>
  3460. <p>Most libopus options are modelled after the <code class="command">opusenc</code> utility from
  3461. opus-tools. The following is an option mapping chart describing options
  3462. supported by the libopus wrapper, and their <code class="command">opusenc</code>-equivalent
  3463. in parentheses.
  3464. </p>
  3465. <dl class="table">
  3466. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  3467. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s <samp class="option">b</samp> option is
  3468. expressed in bits/s, while <code class="command">opusenc</code>&rsquo;s <samp class="option">bitrate</samp> in
  3469. kilobits/s.
  3470. </p>
  3471. </dd>
  3472. <dt><samp class="option">vbr (<em class="emph">vbr</em>, <em class="emph">hard-cbr</em>, and <em class="emph">cvbr</em>)</samp></dt>
  3473. <dd><p>Set VBR mode. The FFmpeg <samp class="option">vbr</samp> option has the following
  3474. valid arguments, with the <code class="command">opusenc</code> equivalent options
  3475. in parentheses:
  3476. </p>
  3477. <dl class="table">
  3478. <dt>&lsquo;<samp class="samp">off (<em class="emph">hard-cbr</em>)</samp>&rsquo;</dt>
  3479. <dd><p>Use constant bit rate encoding.
  3480. </p>
  3481. </dd>
  3482. <dt>&lsquo;<samp class="samp">on (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  3483. <dd><p>Use variable bit rate encoding (the default).
  3484. </p>
  3485. </dd>
  3486. <dt>&lsquo;<samp class="samp">constrained (<em class="emph">cvbr</em>)</samp>&rsquo;</dt>
  3487. <dd><p>Use constrained variable bit rate encoding.
  3488. </p></dd>
  3489. </dl>
  3490. </dd>
  3491. <dt><samp class="option">compression_level (<em class="emph">comp</em>)</samp></dt>
  3492. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3493. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3494. gives the highest quality but slowest encoding. The default is 10.
  3495. </p>
  3496. </dd>
  3497. <dt><samp class="option">frame_duration (<em class="emph">framesize</em>)</samp></dt>
  3498. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3499. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3500. frame sizes achieve lower latency but less quality at a given bitrate.
  3501. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3502. The default is 20ms.
  3503. </p>
  3504. </dd>
  3505. <dt><samp class="option">packet_loss (<em class="emph">expect-loss</em>)</samp></dt>
  3506. <dd><p>Set expected packet loss percentage. The default is 0.
  3507. </p>
  3508. </dd>
  3509. <dt><samp class="option">fec (<em class="emph">n/a</em>)</samp></dt>
  3510. <dd><p>Enable inband forward error correction. <samp class="option">packet_loss</samp> must be non-zero
  3511. to take advantage - frequency of FEC &rsquo;side-data&rsquo; is proportional to expected packet loss.
  3512. Default is disabled.
  3513. </p>
  3514. </dd>
  3515. <dt><samp class="option">application (N.A.)</samp></dt>
  3516. <dd><p>Set intended application type. Valid options are listed below:
  3517. </p>
  3518. <dl class="table">
  3519. <dt>&lsquo;<samp class="samp">voip</samp>&rsquo;</dt>
  3520. <dd><p>Favor improved speech intelligibility.
  3521. </p></dd>
  3522. <dt>&lsquo;<samp class="samp">audio</samp>&rsquo;</dt>
  3523. <dd><p>Favor faithfulness to the input (the default).
  3524. </p></dd>
  3525. <dt>&lsquo;<samp class="samp">lowdelay</samp>&rsquo;</dt>
  3526. <dd><p>Restrict to only the lowest delay modes by disabling voice-optimized
  3527. modes.
  3528. </p></dd>
  3529. </dl>
  3530. </dd>
  3531. <dt><samp class="option">cutoff (N.A.)</samp></dt>
  3532. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3533. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3534. narrowband, mediumband, wideband, super wideband, and fullband
  3535. respectively. The default is 0 (cutoff disabled). Note that libopus
  3536. forces a wideband cutoff for bitrates &lt; 15 kbps, unless CELT-only
  3537. (<samp class="option">application</samp> set to &lsquo;<samp class="samp">lowdelay</samp>&rsquo;) mode is used.
  3538. </p>
  3539. </dd>
  3540. <dt><samp class="option">mapping_family (<em class="emph">mapping_family</em>)</samp></dt>
  3541. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3542. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3543. otherwise. The default also disables the surround masking and LFE bandwidth
  3544. optimzations in libopus, and requires that the input contains 8 channels or
  3545. fewer.
  3546. </p>
  3547. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3548. and LFE bandwidth optimizations, and 255 for independent streams with an
  3549. unspecified channel layout.
  3550. </p>
  3551. </dd>
  3552. <dt><samp class="option">apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp></dt>
  3553. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3554. improving the quality of mono downmixes, but slightly reducing normal stereo
  3555. quality. The default is 1 (phase inversion enabled).
  3556. </p>
  3557. </dd>
  3558. </dl>
  3559. <a class="anchor" id="libshine"></a></div>
  3560. </div>
  3561. <div class="section-level-extent" id="libshine-1">
  3562. <h3 class="section">8.9 libshine</h3>
  3563. <p>Shine Fixed-Point MP3 encoder wrapper.
  3564. </p>
  3565. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3566. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3567. However, as it is more targeted on performance than quality, it is not on par
  3568. with LAME and other production-grade encoders quality-wise. Also, according to
  3569. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3570. written a long time ago and the project was dead for at least 5 years.
  3571. </p>
  3572. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3573. </p>
  3574. <p>The original project (last updated in early 2007) is at
  3575. <a class="url" href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3576. updated fork by the Savonet/Liquidsoap project at <a class="url" href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3577. </p>
  3578. <p>Requires the presence of the libshine headers and library during
  3579. configuration. You need to explicitly configure the build with
  3580. <code class="code">--enable-libshine</code>.
  3581. </p>
  3582. <p>See also <a class="ref" href="#libmp3lame">libmp3lame</a>.
  3583. </p>
  3584. <ul class="mini-toc">
  3585. <li><a href="#Options-16" accesskey="1">Options</a></li>
  3586. </ul>
  3587. <div class="subsection-level-extent" id="Options-16">
  3588. <h4 class="subsection">8.9.1 Options</h4>
  3589. <p>The following options are supported by the libshine wrapper. The
  3590. <code class="command">shineenc</code>-equivalent of the options are listed in parentheses.
  3591. </p>
  3592. <dl class="table">
  3593. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3594. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">shineenc</code> <samp class="option">-b</samp> option
  3595. is expressed in kilobits/s.
  3596. </p>
  3597. </dd>
  3598. </dl>
  3599. </div>
  3600. </div>
  3601. <div class="section-level-extent" id="libtwolame">
  3602. <h3 class="section">8.10 libtwolame</h3>
  3603. <p>TwoLAME MP2 encoder wrapper.
  3604. </p>
  3605. <p>Requires the presence of the libtwolame headers and library during
  3606. configuration. You need to explicitly configure the build with
  3607. <code class="code">--enable-libtwolame</code>.
  3608. </p>
  3609. <ul class="mini-toc">
  3610. <li><a href="#Options-17" accesskey="1">Options</a></li>
  3611. </ul>
  3612. <div class="subsection-level-extent" id="Options-17">
  3613. <h4 class="subsection">8.10.1 Options</h4>
  3614. <p>The following options are supported by the libtwolame wrapper. The
  3615. <code class="command">twolame</code>-equivalent options follow the FFmpeg ones and are in
  3616. parentheses.
  3617. </p>
  3618. <dl class="table">
  3619. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3620. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">twolame</code> <samp class="option">b</samp>
  3621. option is expressed in kilobits/s. Default value is 128k.
  3622. </p>
  3623. </dd>
  3624. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3625. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3626. from -50 to 50, useful range is from -10 to 10. The higher the
  3627. value, the better the quality. This option is valid only using the
  3628. <code class="command">ffmpeg</code> command-line tool. For library interface users,
  3629. use <samp class="option">global_quality</samp>.
  3630. </p>
  3631. </dd>
  3632. <dt><samp class="option">mode (<em class="emph">--mode</em>)</samp></dt>
  3633. <dd><p>Set the mode of the resulting audio. Possible values:
  3634. </p>
  3635. <dl class="table">
  3636. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3637. <dd><p>Choose mode automatically based on the input. This is the default.
  3638. </p></dd>
  3639. <dt>&lsquo;<samp class="samp">stereo</samp>&rsquo;</dt>
  3640. <dd><p>Stereo
  3641. </p></dd>
  3642. <dt>&lsquo;<samp class="samp">joint_stereo</samp>&rsquo;</dt>
  3643. <dd><p>Joint stereo
  3644. </p></dd>
  3645. <dt>&lsquo;<samp class="samp">dual_channel</samp>&rsquo;</dt>
  3646. <dd><p>Dual channel
  3647. </p></dd>
  3648. <dt>&lsquo;<samp class="samp">mono</samp>&rsquo;</dt>
  3649. <dd><p>Mono
  3650. </p></dd>
  3651. </dl>
  3652. </dd>
  3653. <dt><samp class="option">psymodel (<em class="emph">--psyc-mode</em>)</samp></dt>
  3654. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3655. an integer between -1 and 4, inclusive. The higher the value, the
  3656. better the quality. The default value is 3.
  3657. </p>
  3658. </dd>
  3659. <dt><samp class="option">energy_levels (<em class="emph">--energy</em>)</samp></dt>
  3660. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3661. 0 (disabled).
  3662. </p>
  3663. </dd>
  3664. <dt><samp class="option">error_protection (<em class="emph">--protect</em>)</samp></dt>
  3665. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3666. (disabled).
  3667. </p>
  3668. </dd>
  3669. <dt><samp class="option">copyright (<em class="emph">--copyright</em>)</samp></dt>
  3670. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3671. (disabled).
  3672. </p>
  3673. </dd>
  3674. <dt><samp class="option">original (<em class="emph">--original</em>)</samp></dt>
  3675. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3676. (disabled).
  3677. </p>
  3678. </dd>
  3679. </dl>
  3680. </div>
  3681. </div>
  3682. <div class="section-level-extent" id="libvo_002damrwbenc">
  3683. <h3 class="section">8.11 libvo-amrwbenc</h3>
  3684. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3685. </p>
  3686. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3687. configuration. You need to explicitly configure the build with
  3688. <code class="code">--enable-libvo-amrwbenc --enable-version3</code>.
  3689. </p>
  3690. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3691. rate, but you can override it by setting <samp class="option">strict</samp> to
  3692. &lsquo;<samp class="samp">unofficial</samp>&rsquo; or lower.
  3693. </p>
  3694. <ul class="mini-toc">
  3695. <li><a href="#Options-18" accesskey="1">Options</a></li>
  3696. </ul>
  3697. <div class="subsection-level-extent" id="Options-18">
  3698. <h4 class="subsection">8.11.1 Options</h4>
  3699. <dl class="table">
  3700. <dt><samp class="option">b</samp></dt>
  3701. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3702. libavcodec will round to the nearest valid bitrate.
  3703. </p>
  3704. <dl class="table">
  3705. <dt>&lsquo;<samp class="samp">6600</samp>&rsquo;</dt>
  3706. <dt>&lsquo;<samp class="samp">8850</samp>&rsquo;</dt>
  3707. <dt>&lsquo;<samp class="samp">12650</samp>&rsquo;</dt>
  3708. <dt>&lsquo;<samp class="samp">14250</samp>&rsquo;</dt>
  3709. <dt>&lsquo;<samp class="samp">15850</samp>&rsquo;</dt>
  3710. <dt>&lsquo;<samp class="samp">18250</samp>&rsquo;</dt>
  3711. <dt>&lsquo;<samp class="samp">19850</samp>&rsquo;</dt>
  3712. <dt>&lsquo;<samp class="samp">23050</samp>&rsquo;</dt>
  3713. <dt>&lsquo;<samp class="samp">23850</samp>&rsquo;</dt>
  3714. </dl>
  3715. </dd>
  3716. <dt><samp class="option">dtx</samp></dt>
  3717. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3718. default value is 0 (disabled).
  3719. </p>
  3720. </dd>
  3721. </dl>
  3722. </div>
  3723. </div>
  3724. <div class="section-level-extent" id="libvorbis">
  3725. <h3 class="section">8.12 libvorbis</h3>
  3726. <p>libvorbis encoder wrapper.
  3727. </p>
  3728. <p>Requires the presence of the libvorbisenc headers and library during
  3729. configuration. You need to explicitly configure the build with
  3730. <code class="code">--enable-libvorbis</code>.
  3731. </p>
  3732. <ul class="mini-toc">
  3733. <li><a href="#Options-19" accesskey="1">Options</a></li>
  3734. </ul>
  3735. <div class="subsection-level-extent" id="Options-19">
  3736. <h4 class="subsection">8.12.1 Options</h4>
  3737. <p>The following options are supported by the libvorbis wrapper. The
  3738. <code class="command">oggenc</code>-equivalent of the options are listed in parentheses.
  3739. </p>
  3740. <p>To get a more accurate and extensive documentation of the libvorbis
  3741. options, consult the libvorbisenc&rsquo;s and <code class="command">oggenc</code>&rsquo;s documentations.
  3742. See <a class="url" href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3743. <a class="url" href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3744. </p>
  3745. <dl class="table">
  3746. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3747. <dd><p>Set bitrate expressed in bits/s for ABR. <code class="command">oggenc</code> <samp class="option">-b</samp> is
  3748. expressed in kilobits/s.
  3749. </p>
  3750. </dd>
  3751. <dt><samp class="option">q (<em class="emph">-q</em>)</samp></dt>
  3752. <dd><p>Set constant quality setting for VBR. The value should be a float
  3753. number in the range of -1.0 to 10.0. The higher the value, the better
  3754. the quality. The default value is &lsquo;<samp class="samp">3.0</samp>&rsquo;.
  3755. </p>
  3756. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line tool.
  3757. For library interface users, use <samp class="option">global_quality</samp>.
  3758. </p>
  3759. </dd>
  3760. <dt><samp class="option">cutoff (<em class="emph">--advanced-encode-option lowpass_frequency=N</em>)</samp></dt>
  3761. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code class="command">oggenc</code>&rsquo;s
  3762. related option is expressed in kHz. The default value is &lsquo;<samp class="samp">0</samp>&rsquo; (cutoff
  3763. disabled).
  3764. </p>
  3765. </dd>
  3766. <dt><samp class="option">minrate (<em class="emph">-m</em>)</samp></dt>
  3767. <dd><p>Set minimum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-m</samp> is
  3768. expressed in kilobits/s.
  3769. </p>
  3770. </dd>
  3771. <dt><samp class="option">maxrate (<em class="emph">-M</em>)</samp></dt>
  3772. <dd><p>Set maximum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-M</samp> is
  3773. expressed in kilobits/s. This only has effect on ABR mode.
  3774. </p>
  3775. </dd>
  3776. <dt><samp class="option">iblock (<em class="emph">--advanced-encode-option impulse_noisetune=N</em>)</samp></dt>
  3777. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3778. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3779. to the crispness of transients in the encoded audio. The tradeoff for better
  3780. transient response is a higher bitrate.
  3781. </p>
  3782. </dd>
  3783. </dl>
  3784. <a class="anchor" id="mjpegenc"></a></div>
  3785. </div>
  3786. <div class="section-level-extent" id="mjpeg">
  3787. <h3 class="section">8.13 mjpeg</h3>
  3788. <p>Motion JPEG encoder.
  3789. </p>
  3790. <ul class="mini-toc">
  3791. <li><a href="#Options-20" accesskey="1">Options</a></li>
  3792. </ul>
  3793. <div class="subsection-level-extent" id="Options-20">
  3794. <h4 class="subsection">8.13.1 Options</h4>
  3795. <dl class="table">
  3796. <dt><samp class="option">huffman</samp></dt>
  3797. <dd><p>Set the huffman encoding strategy. Possible values:
  3798. </p>
  3799. <dl class="table">
  3800. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3801. <dd><p>Use the default huffman tables. This is the default strategy.
  3802. </p>
  3803. </dd>
  3804. <dt>&lsquo;<samp class="samp">optimal</samp>&rsquo;</dt>
  3805. <dd><p>Compute and use optimal huffman tables.
  3806. </p>
  3807. </dd>
  3808. </dl>
  3809. </dd>
  3810. </dl>
  3811. <a class="anchor" id="wavpackenc"></a></div>
  3812. </div>
  3813. <div class="section-level-extent" id="wavpack">
  3814. <h3 class="section">8.14 wavpack</h3>
  3815. <p>WavPack lossless audio encoder.
  3816. </p>
  3817. <ul class="mini-toc">
  3818. <li><a href="#Options-21" accesskey="1">Options</a></li>
  3819. </ul>
  3820. <div class="subsection-level-extent" id="Options-21">
  3821. <h4 class="subsection">8.14.1 Options</h4>
  3822. <p>The equivalent options for <code class="command">wavpack</code> command line utility are listed in
  3823. parentheses.
  3824. </p>
  3825. <ul class="mini-toc">
  3826. <li><a href="#Shared-options" accesskey="1">Shared options</a></li>
  3827. <li><a href="#Private-options" accesskey="2">Private options</a></li>
  3828. </ul>
  3829. <div class="subsubsection-level-extent" id="Shared-options">
  3830. <h4 class="subsubsection">8.14.1.1 Shared options</h4>
  3831. <p>The following shared options are effective for this encoder. Only special notes
  3832. about this particular encoder will be documented here. For the general meaning
  3833. of the options, see <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  3834. </p>
  3835. <dl class="table">
  3836. <dt><samp class="option">frame_size (<em class="emph">--blocksize</em>)</samp></dt>
  3837. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3838. is automatically decided based on sample rate and number of channel.
  3839. </p>
  3840. <p>For the complete formula of calculating default, see
  3841. <samp class="file">libavcodec/wavpackenc.c</samp>.
  3842. </p>
  3843. </dd>
  3844. <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>
  3845. </dl>
  3846. </div>
  3847. <div class="subsubsection-level-extent" id="Private-options">
  3848. <h4 class="subsubsection">8.14.1.2 Private options</h4>
  3849. <dl class="table">
  3850. <dt><samp class="option">joint_stereo (<em class="emph">-j</em>)</samp></dt>
  3851. <dd><p>Set whether to enable joint stereo. Valid values are:
  3852. </p>
  3853. <dl class="table">
  3854. <dt>&lsquo;<samp class="samp">on (<em class="emph">1</em>)</samp>&rsquo;</dt>
  3855. <dd><p>Force mid/side audio encoding.
  3856. </p></dd>
  3857. <dt>&lsquo;<samp class="samp">off (<em class="emph">0</em>)</samp>&rsquo;</dt>
  3858. <dd><p>Force left/right audio encoding.
  3859. </p></dd>
  3860. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3861. <dd><p>Let the encoder decide automatically.
  3862. </p></dd>
  3863. </dl>
  3864. </dd>
  3865. <dt><samp class="option">optimize_mono</samp></dt>
  3866. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3867. non-mono streams. Available values:
  3868. </p>
  3869. <dl class="table">
  3870. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  3871. <dd><p>enabled
  3872. </p></dd>
  3873. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  3874. <dd><p>disabled
  3875. </p></dd>
  3876. </dl>
  3877. </dd>
  3878. </dl>
  3879. </div>
  3880. </div>
  3881. </div>
  3882. </div>
  3883. <div class="chapter-level-extent" id="Video-Encoders">
  3884. <h2 class="chapter">9 Video Encoders</h2>
  3885. <p>A description of some of the currently available video encoders
  3886. follows.
  3887. </p>
  3888. <ul class="mini-toc">
  3889. <li><a href="#a64_005fmulti_002c-a64_005fmulti5" accesskey="1">a64_multi, a64_multi5</a></li>
  3890. <li><a href="#Cinepak" accesskey="2">Cinepak</a></li>
  3891. <li><a href="#GIF" accesskey="3">GIF</a></li>
  3892. <li><a href="#Hap" accesskey="4">Hap</a></li>
  3893. <li><a href="#jpeg2000" accesskey="5">jpeg2000</a></li>
  3894. <li><a href="#librav1e" accesskey="6">librav1e</a></li>
  3895. <li><a href="#libaom_002dav1" accesskey="7">libaom-av1</a></li>
  3896. <li><a href="#libsvtav1" accesskey="8">libsvtav1</a></li>
  3897. <li><a href="#libjxl" accesskey="9">libjxl</a></li>
  3898. <li><a href="#libkvazaar">libkvazaar</a></li>
  3899. <li><a href="#libopenh264">libopenh264</a></li>
  3900. <li><a href="#libtheora">libtheora</a></li>
  3901. <li><a href="#libvpx">libvpx</a></li>
  3902. <li><a href="#libwebp">libwebp</a></li>
  3903. <li><a href="#libx264_002c-libx264rgb">libx264, libx264rgb</a></li>
  3904. <li><a href="#libx265">libx265</a></li>
  3905. <li><a href="#libxavs2">libxavs2</a></li>
  3906. <li><a href="#libxeve">libxeve</a></li>
  3907. <li><a href="#libxvid">libxvid</a></li>
  3908. <li><a href="#MediaFoundation">MediaFoundation</a></li>
  3909. <li><a href="#Microsoft-RLE">Microsoft RLE</a></li>
  3910. <li><a href="#mpeg2">mpeg2</a></li>
  3911. <li><a href="#png">png</a></li>
  3912. <li><a href="#ProRes">ProRes</a></li>
  3913. <li><a href="#QSV-Encoders">QSV Encoders</a></li>
  3914. <li><a href="#snow">snow</a></li>
  3915. <li><a href="#VAAPI-encoders">VAAPI encoders</a></li>
  3916. <li><a href="#vbn">vbn</a></li>
  3917. <li><a href="#vc2">vc2</a></li>
  3918. </ul>
  3919. <div class="section-level-extent" id="a64_005fmulti_002c-a64_005fmulti5">
  3920. <h3 class="section">9.1 a64_multi, a64_multi5</h3>
  3921. <p>A64 / Commodore 64 multicolor charset encoder. <code class="code">a64_multi5</code> is extended with 5th color (colram).
  3922. </p>
  3923. </div>
  3924. <div class="section-level-extent" id="Cinepak">
  3925. <h3 class="section">9.2 Cinepak</h3>
  3926. <p>Cinepak aka CVID encoder.
  3927. Compatible with Windows 3.1 and vintage MacOS.
  3928. </p>
  3929. <ul class="mini-toc">
  3930. <li><a href="#Options-22" accesskey="1">Options</a></li>
  3931. </ul>
  3932. <div class="subsection-level-extent" id="Options-22">
  3933. <h4 class="subsection">9.2.1 Options</h4>
  3934. <dl class="table">
  3935. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  3936. <dd><p>Keyframe interval.
  3937. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  3938. </p>
  3939. </dd>
  3940. <dt><samp class="option">q:v <var class="var">integer</var></samp></dt>
  3941. <dd><p>Quality factor. Lower is better. Higher gives lower bitrate.
  3942. 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>:
  3943. </p>
  3944. <dl class="table">
  3945. <dt><samp class="option"><code class="code">-q:v 1</code> 1918 kb/s</samp></dt>
  3946. <dt><samp class="option"><code class="code">-q:v 2</code> 1735 kb/s</samp></dt>
  3947. <dt><samp class="option"><code class="code">-q:v 4</code> 1500 kb/s</samp></dt>
  3948. <dt><samp class="option"><code class="code">-q:v 10</code> 1041 kb/s</samp></dt>
  3949. <dt><samp class="option"><code class="code">-q:v 20</code> 826 kb/s</samp></dt>
  3950. <dt><samp class="option"><code class="code">-q:v 40</code> 553 kb/s</samp></dt>
  3951. <dt><samp class="option"><code class="code">-q:v 100</code> 394 kb/s</samp></dt>
  3952. <dt><samp class="option"><code class="code">-q:v 200</code> 312 kb/s</samp></dt>
  3953. <dt><samp class="option"><code class="code">-q:v 400</code> 266 kb/s</samp></dt>
  3954. <dt><samp class="option"><code class="code">-q:v 1000</code> 237 kb/s</samp></dt>
  3955. </dl>
  3956. </dd>
  3957. <dt><samp class="option">max_extra_cb_iterations <var class="var">integer</var></samp></dt>
  3958. <dd><p>Max extra codebook recalculation passes, more is better and slower.
  3959. </p>
  3960. </dd>
  3961. <dt><samp class="option">skip_empty_cb <var class="var">boolean</var></samp></dt>
  3962. <dd><p>Avoid wasting bytes, ignore vintage MacOS decoder.
  3963. </p>
  3964. </dd>
  3965. <dt><samp class="option">max_strips <var class="var">integer</var></samp></dt>
  3966. <dt><samp class="option">min_strips <var class="var">integer</var></samp></dt>
  3967. <dd><p>The minimum and maximum number of strips to use.
  3968. Wider range sometimes improves quality.
  3969. More strips is generally better quality but costs more bits.
  3970. Fewer strips tend to yield more keyframes.
  3971. Vintage compatible is 1..3.
  3972. </p>
  3973. </dd>
  3974. <dt><samp class="option">strip_number_adaptivity <var class="var">integer</var></samp></dt>
  3975. <dd><p>How much number of strips is allowed to change between frames.
  3976. Higher is better but slower.
  3977. </p>
  3978. </dd>
  3979. </dl>
  3980. </div>
  3981. </div>
  3982. <div class="section-level-extent" id="GIF">
  3983. <h3 class="section">9.3 GIF</h3>
  3984. <p>GIF image/animation encoder.
  3985. </p>
  3986. <ul class="mini-toc">
  3987. <li><a href="#Options-23" accesskey="1">Options</a></li>
  3988. </ul>
  3989. <div class="subsection-level-extent" id="Options-23">
  3990. <h4 class="subsection">9.3.1 Options</h4>
  3991. <dl class="table">
  3992. <dt><samp class="option">gifflags <var class="var">integer</var></samp></dt>
  3993. <dd><p>Sets the flags used for GIF encoding.
  3994. </p>
  3995. <dl class="table">
  3996. <dt><samp class="option">offsetting</samp></dt>
  3997. <dd><p>Enables picture offsetting.
  3998. </p>
  3999. <p>Default is enabled.
  4000. </p>
  4001. </dd>
  4002. <dt><samp class="option">transdiff</samp></dt>
  4003. <dd><p>Enables transparency detection between frames.
  4004. </p>
  4005. <p>Default is enabled.
  4006. </p>
  4007. </dd>
  4008. </dl>
  4009. </dd>
  4010. <dt><samp class="option">gifimage <var class="var">integer</var></samp></dt>
  4011. <dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
  4012. </p>
  4013. <p>Default value is <samp class="option">0</samp>.
  4014. </p>
  4015. </dd>
  4016. <dt><samp class="option">global_palette <var class="var">integer</var></samp></dt>
  4017. <dd><p>Writes a palette to the global GIF header where feasible.
  4018. </p>
  4019. <p>If disabled, every frame will always have a palette written, even if there
  4020. is a global palette supplied.
  4021. </p>
  4022. <p>Default value is <samp class="option">1</samp>.
  4023. </p>
  4024. </dd>
  4025. </dl>
  4026. </div>
  4027. </div>
  4028. <div class="section-level-extent" id="Hap">
  4029. <h3 class="section">9.4 Hap</h3>
  4030. <p>Vidvox Hap video encoder.
  4031. </p>
  4032. <ul class="mini-toc">
  4033. <li><a href="#Options-24" accesskey="1">Options</a></li>
  4034. </ul>
  4035. <div class="subsection-level-extent" id="Options-24">
  4036. <h4 class="subsection">9.4.1 Options</h4>
  4037. <dl class="table">
  4038. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  4039. <dd><p>Specifies the Hap format to encode.
  4040. </p>
  4041. <dl class="table">
  4042. <dt><samp class="option">hap</samp></dt>
  4043. <dt><samp class="option">hap_alpha</samp></dt>
  4044. <dt><samp class="option">hap_q</samp></dt>
  4045. </dl>
  4046. <p>Default value is <samp class="option">hap</samp>.
  4047. </p>
  4048. </dd>
  4049. <dt><samp class="option">chunks <var class="var">integer</var></samp></dt>
  4050. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  4051. permits multithreaded decoding of large frames, potentially at the cost of
  4052. data-rate. The encoder may modify this value to divide frames evenly.
  4053. </p>
  4054. <p>Default value is <var class="var">1</var>.
  4055. </p>
  4056. </dd>
  4057. <dt><samp class="option">compressor <var class="var">integer</var></samp></dt>
  4058. <dd><p>Specifies the second-stage compressor to use. If set to <samp class="option">none</samp>,
  4059. <samp class="option">chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
  4060. benefit.
  4061. </p>
  4062. <dl class="table">
  4063. <dt><samp class="option">none</samp></dt>
  4064. <dt><samp class="option">snappy</samp></dt>
  4065. </dl>
  4066. <p>Default value is <samp class="option">snappy</samp>.
  4067. </p>
  4068. </dd>
  4069. </dl>
  4070. </div>
  4071. </div>
  4072. <div class="section-level-extent" id="jpeg2000">
  4073. <h3 class="section">9.5 jpeg2000</h3>
  4074. <p>The native jpeg 2000 encoder is lossy by default, the <code class="code">-q:v</code>
  4075. option can be used to set the encoding quality. Lossless encoding
  4076. can be selected with <code class="code">-pred 1</code>.
  4077. </p>
  4078. <ul class="mini-toc">
  4079. <li><a href="#Options-25" accesskey="1">Options</a></li>
  4080. </ul>
  4081. <div class="subsection-level-extent" id="Options-25">
  4082. <h4 class="subsection">9.5.1 Options</h4>
  4083. <dl class="table">
  4084. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  4085. <dd><p>Can be set to either <code class="code">j2k</code> or <code class="code">jp2</code> (the default) that
  4086. makes it possible to store non-rgb pix_fmts.
  4087. </p>
  4088. </dd>
  4089. <dt><samp class="option">tile_width <var class="var">integer</var></samp></dt>
  4090. <dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
  4091. </p>
  4092. </dd>
  4093. <dt><samp class="option">tile_height <var class="var">integer</var></samp></dt>
  4094. <dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
  4095. </p>
  4096. </dd>
  4097. <dt><samp class="option">pred <var class="var">integer</var></samp></dt>
  4098. <dd><p>Allows setting the discrete wavelet transform (DWT) type
  4099. </p><dl class="table">
  4100. <dt><samp class="option">dwt97int (Lossy)</samp></dt>
  4101. <dt><samp class="option">dwt53 (Lossless)</samp></dt>
  4102. </dl>
  4103. <p>Default is <code class="code">dwt97int</code>
  4104. </p>
  4105. </dd>
  4106. <dt><samp class="option">sop <var class="var">boolean</var></samp></dt>
  4107. <dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
  4108. </p>
  4109. </dd>
  4110. <dt><samp class="option">eph <var class="var">boolean</var></samp></dt>
  4111. <dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
  4112. </p>
  4113. </dd>
  4114. <dt><samp class="option">prog <var class="var">integer</var></samp></dt>
  4115. <dd><p>Sets the progression order to be used by the encoder.
  4116. Possible values are:
  4117. </p><dl class="table">
  4118. <dt><samp class="option">lrcp</samp></dt>
  4119. <dt><samp class="option">rlcp</samp></dt>
  4120. <dt><samp class="option">rpcl</samp></dt>
  4121. <dt><samp class="option">pcrl</samp></dt>
  4122. <dt><samp class="option">cprl</samp></dt>
  4123. </dl>
  4124. <p>Set to <code class="code">lrcp</code> by default.
  4125. </p>
  4126. </dd>
  4127. <dt><samp class="option">layer_rates <var class="var">string</var></samp></dt>
  4128. <dd><p>By default, when this option is not used, compression is done using the quality metric.
  4129. This option allows for compression using compression ratio. The compression ratio for each
  4130. level could be specified. The compression ratio of a layer <code class="code">l</code> species the what ratio of
  4131. total file size is contained in the first <code class="code">l</code> layers.
  4132. </p>
  4133. <p>Example usage:
  4134. </p>
  4135. <div class="example">
  4136. <pre class="example-preformatted">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates &quot;100,10,1&quot; output.j2k
  4137. </pre></div>
  4138. <p>This would compress the image to contain 3 layers, where the data contained in the
  4139. first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
  4140. and shall contain all data while using all 3 layers.
  4141. </p>
  4142. </dd>
  4143. </dl>
  4144. </div>
  4145. </div>
  4146. <div class="section-level-extent" id="librav1e">
  4147. <h3 class="section">9.6 librav1e</h3>
  4148. <p>rav1e AV1 encoder wrapper.
  4149. </p>
  4150. <p>Requires the presence of the rav1e headers and library during configuration.
  4151. You need to explicitly configure the build with <code class="code">--enable-librav1e</code>.
  4152. </p>
  4153. <ul class="mini-toc">
  4154. <li><a href="#Options-26" accesskey="1">Options</a></li>
  4155. </ul>
  4156. <div class="subsection-level-extent" id="Options-26">
  4157. <h4 class="subsection">9.6.1 Options</h4>
  4158. <dl class="table">
  4159. <dt><samp class="option">qmax</samp></dt>
  4160. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  4161. </p>
  4162. </dd>
  4163. <dt><samp class="option">qmin</samp></dt>
  4164. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  4165. </p>
  4166. </dd>
  4167. <dt><samp class="option">qp</samp></dt>
  4168. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  4169. </p>
  4170. </dd>
  4171. <dt><samp class="option">speed</samp></dt>
  4172. <dd><p>Selects the speed preset (0-10) to encode with.
  4173. </p>
  4174. </dd>
  4175. <dt><samp class="option">tiles</samp></dt>
  4176. <dd><p>Selects how many tiles to encode with.
  4177. </p>
  4178. </dd>
  4179. <dt><samp class="option">tile-rows</samp></dt>
  4180. <dd><p>Selects how many rows of tiles to encode with.
  4181. </p>
  4182. </dd>
  4183. <dt><samp class="option">tile-columns</samp></dt>
  4184. <dd><p>Selects how many columns of tiles to encode with.
  4185. </p>
  4186. </dd>
  4187. <dt><samp class="option">rav1e-params</samp></dt>
  4188. <dd><p>Set rav1e options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4189. by &quot;:&quot;. See <code class="command">rav1e --help</code> for a list of options.
  4190. </p>
  4191. <p>For example to specify librav1e encoding options with <samp class="option">-rav1e-params</samp>:
  4192. </p>
  4193. <div class="example">
  4194. <pre class="example-preformatted">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  4195. </pre></div>
  4196. </dd>
  4197. </dl>
  4198. </div>
  4199. </div>
  4200. <div class="section-level-extent" id="libaom_002dav1">
  4201. <h3 class="section">9.7 libaom-av1</h3>
  4202. <p>libaom AV1 encoder wrapper.
  4203. </p>
  4204. <p>Requires the presence of the libaom headers and library during
  4205. configuration. You need to explicitly configure the build with
  4206. <code class="code">--enable-libaom</code>.
  4207. </p>
  4208. <ul class="mini-toc">
  4209. <li><a href="#Options-27" accesskey="1">Options</a></li>
  4210. </ul>
  4211. <div class="subsection-level-extent" id="Options-27">
  4212. <h4 class="subsection">9.7.1 Options</h4>
  4213. <p>The wrapper supports the following standard libavcodec options:
  4214. </p>
  4215. <dl class="table">
  4216. <dt><samp class="option">b</samp></dt>
  4217. <dd><p>Set bitrate target in bits/second. By default this will use
  4218. variable-bitrate mode. If <samp class="option">maxrate</samp> and <samp class="option">minrate</samp> are
  4219. also set to the same value then it will use constant-bitrate mode,
  4220. otherwise if <samp class="option">crf</samp> is set as well then it will use
  4221. constrained-quality mode.
  4222. </p>
  4223. </dd>
  4224. <dt><samp class="option">g keyint_min</samp></dt>
  4225. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  4226. key frames; if zero the output stream will be intra-only. The minimum
  4227. distance is ignored unless it is the same as the GOP size, in which case
  4228. key frames will always appear at a fixed interval. Not set by default,
  4229. so without this option the library has completely free choice about
  4230. where to place key frames.
  4231. </p>
  4232. </dd>
  4233. <dt><samp class="option">qmin qmax</samp></dt>
  4234. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  4235. (warning: this does not match the quantiser values actually used by AV1
  4236. - divide by four to map real quantiser values to this range). Defaults
  4237. to min/max (no constraint).
  4238. </p>
  4239. </dd>
  4240. <dt><samp class="option">minrate maxrate bufsize rc_init_occupancy</samp></dt>
  4241. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  4242. to unconstrained variable bitrate.
  4243. </p>
  4244. </dd>
  4245. <dt><samp class="option">threads</samp></dt>
  4246. <dd><p>Set the number of threads to use while encoding. This may require the
  4247. <samp class="option">tiles</samp> or <samp class="option">row-mt</samp> options to also be set to actually
  4248. use the specified number of threads fully. Defaults to the number of
  4249. hardware threads supported by the host machine.
  4250. </p>
  4251. </dd>
  4252. <dt><samp class="option">profile</samp></dt>
  4253. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  4254. the bit depth and chroma subsampling of the input.
  4255. </p>
  4256. </dd>
  4257. </dl>
  4258. <p>The wrapper also has some specific options:
  4259. </p>
  4260. <dl class="table">
  4261. <dt><samp class="option">cpu-used</samp></dt>
  4262. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  4263. higher numbers indicating greater speed and lower quality. The default
  4264. value is 1, which will be slow and high quality.
  4265. </p>
  4266. </dd>
  4267. <dt><samp class="option">auto-alt-ref</samp></dt>
  4268. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  4269. default of the library.
  4270. </p>
  4271. </dd>
  4272. <dt><samp class="option">arnr-max-frames (<em class="emph">frames</em>)</samp></dt>
  4273. <dd><p>Set altref noise reduction max frame count. Default is -1.
  4274. </p>
  4275. </dd>
  4276. <dt><samp class="option">arnr-strength (<em class="emph">strength</em>)</samp></dt>
  4277. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  4278. </p>
  4279. </dd>
  4280. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  4281. <dd><p>Set adaptive quantization mode. Possible values:
  4282. </p>
  4283. <dl class="table">
  4284. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4285. <dd><p>Disabled.
  4286. </p>
  4287. </dd>
  4288. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4289. <dd><p>Variance-based.
  4290. </p>
  4291. </dd>
  4292. <dt>&lsquo;<samp class="samp">complexity (<em class="emph">2</em>)</samp>&rsquo;</dt>
  4293. <dd><p>Complexity-based.
  4294. </p>
  4295. </dd>
  4296. <dt>&lsquo;<samp class="samp">cyclic (<em class="emph">3</em>)</samp>&rsquo;</dt>
  4297. <dd><p>Cyclic refresh.
  4298. </p></dd>
  4299. </dl>
  4300. </dd>
  4301. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4302. <dd><p>Set the distortion metric the encoder is tuned with. Default is <code class="code">psnr</code>.
  4303. </p>
  4304. <dl class="table">
  4305. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4306. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4307. </dl>
  4308. </dd>
  4309. <dt><samp class="option">lag-in-frames</samp></dt>
  4310. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  4311. at any one time for lookahead purposes. Defaults to the internal
  4312. default of the library.
  4313. </p>
  4314. </dd>
  4315. <dt><samp class="option">error-resilience</samp></dt>
  4316. <dd><p>Enable error resilience features:
  4317. </p><dl class="table">
  4318. <dt><samp class="option">default</samp></dt>
  4319. <dd><p>Improve resilience against losses of whole frames.
  4320. </p></dd>
  4321. </dl>
  4322. <p>Not enabled by default.
  4323. </p>
  4324. </dd>
  4325. <dt><samp class="option">crf</samp></dt>
  4326. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  4327. and constrained-quality (with maximum bitrate target) modes. Valid
  4328. range is 0 to 63, higher numbers indicating lower quality and smaller
  4329. output size. Only used if set; by default only the bitrate target is
  4330. used.
  4331. </p>
  4332. </dd>
  4333. <dt><samp class="option">static-thresh</samp></dt>
  4334. <dd><p>Set a change threshold on blocks below which they will be skipped by
  4335. the encoder. Defined in arbitrary units as a nonnegative integer,
  4336. defaulting to zero (no blocks are skipped).
  4337. </p>
  4338. </dd>
  4339. <dt><samp class="option">drop-threshold</samp></dt>
  4340. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  4341. Defined as a percentage of the target buffer - when the rate control
  4342. buffer falls below this percentage, frames will be dropped until it
  4343. has refilled above the threshold. Defaults to zero (no frames are
  4344. dropped).
  4345. </p>
  4346. </dd>
  4347. <dt><samp class="option">denoise-noise-level (<em class="emph">level</em>)</samp></dt>
  4348. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  4349. this option is not set or set to 0.
  4350. </p>
  4351. </dd>
  4352. <dt><samp class="option">denoise-block-size (<em class="emph">pixels</em>)</samp></dt>
  4353. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  4354. uses the default value of 32.
  4355. </p>
  4356. </dd>
  4357. <dt><samp class="option">undershoot-pct (<em class="emph">pct</em>)</samp></dt>
  4358. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  4359. Default is -1.
  4360. </p>
  4361. </dd>
  4362. <dt><samp class="option">overshoot-pct (<em class="emph">pct</em>)</samp></dt>
  4363. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  4364. Default is -1.
  4365. </p>
  4366. </dd>
  4367. <dt><samp class="option">minsection-pct (<em class="emph">pct</em>)</samp></dt>
  4368. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  4369. is not set, the libaomenc wrapper computes it as follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4370. Range is -1 to 100. Default is -1 (unset).
  4371. </p>
  4372. </dd>
  4373. <dt><samp class="option">maxsection-pct (<em class="emph">pct</em>)</samp></dt>
  4374. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  4375. is not set, the libaomenc wrapper computes it as follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4376. Range is -1 to 5000. Default is -1 (unset).
  4377. </p>
  4378. </dd>
  4379. <dt><samp class="option">frame-parallel (<em class="emph">boolean</em>)</samp></dt>
  4380. <dd><p>Enable frame parallel decodability features. Default is true.
  4381. </p>
  4382. </dd>
  4383. <dt><samp class="option">tiles</samp></dt>
  4384. <dd><p>Set the number of tiles to encode the input video with, as columns x
  4385. rows. Larger numbers allow greater parallelism in both encoding and
  4386. decoding, but may decrease coding efficiency. Defaults to the minimum
  4387. number of tiles required by the size of the input video (this is 1x1
  4388. (that is, a single tile) for sizes up to and including 4K).
  4389. </p>
  4390. </dd>
  4391. <dt><samp class="option">tile-columns tile-rows</samp></dt>
  4392. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  4393. Provided for compatibility with libvpx/VP9.
  4394. </p>
  4395. </dd>
  4396. <dt><samp class="option">row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp></dt>
  4397. <dd><p>Enable row based multi-threading. Disabled by default.
  4398. </p>
  4399. </dd>
  4400. <dt><samp class="option">enable-cdef (<em class="emph">boolean</em>)</samp></dt>
  4401. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  4402. encoder enables CDEF by default.
  4403. </p>
  4404. </dd>
  4405. <dt><samp class="option">enable-restoration (<em class="emph">boolean</em>)</samp></dt>
  4406. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  4407. </p>
  4408. </dd>
  4409. <dt><samp class="option">enable-global-motion (<em class="emph">boolean</em>)</samp></dt>
  4410. <dd><p>Enable the use of global motion for block prediction. Default is true.
  4411. </p>
  4412. </dd>
  4413. <dt><samp class="option">enable-intrabc (<em class="emph">boolean</em>)</samp></dt>
  4414. <dd><p>Enable block copy mode for intra block prediction. This mode is
  4415. useful for screen content. Default is true.
  4416. </p>
  4417. </dd>
  4418. <dt><samp class="option">enable-rect-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4419. <dd><p>Enable rectangular partitions. Default is true.
  4420. </p>
  4421. </dd>
  4422. <dt><samp class="option">enable-1to4-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4423. <dd><p>Enable 1:4/4:1 partitions. Default is true.
  4424. </p>
  4425. </dd>
  4426. <dt><samp class="option">enable-ab-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4427. <dd><p>Enable AB shape partitions. Default is true.
  4428. </p>
  4429. </dd>
  4430. <dt><samp class="option">enable-angle-delta (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4431. <dd><p>Enable angle delta intra prediction. Default is true.
  4432. </p>
  4433. </dd>
  4434. <dt><samp class="option">enable-cfl-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4435. <dd><p>Enable chroma predicted from luma intra prediction. Default is true.
  4436. </p>
  4437. </dd>
  4438. <dt><samp class="option">enable-filter-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4439. <dd><p>Enable filter intra predictor. Default is true.
  4440. </p>
  4441. </dd>
  4442. <dt><samp class="option">enable-intra-edge-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4443. <dd><p>Enable intra edge filter. Default is true.
  4444. </p>
  4445. </dd>
  4446. <dt><samp class="option">enable-smooth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4447. <dd><p>Enable smooth intra prediction mode. Default is true.
  4448. </p>
  4449. </dd>
  4450. <dt><samp class="option">enable-paeth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4451. <dd><p>Enable paeth predictor in intra prediction. Default is true.
  4452. </p>
  4453. </dd>
  4454. <dt><samp class="option">enable-palette (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4455. <dd><p>Enable palette prediction mode. Default is true.
  4456. </p>
  4457. </dd>
  4458. <dt><samp class="option">enable-flip-idtx (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4459. <dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
  4460. FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
  4461. V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
  4462. </p>
  4463. </dd>
  4464. <dt><samp class="option">enable-tx64 (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4465. <dd><p>Enable 64-pt transform. Default is true.
  4466. </p>
  4467. </dd>
  4468. <dt><samp class="option">reduced-tx-type-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4469. <dd><p>Use reduced set of transform types. Default is false.
  4470. </p>
  4471. </dd>
  4472. <dt><samp class="option">use-intra-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4473. <dd><p>Use DCT only for INTRA modes. Default is false.
  4474. </p>
  4475. </dd>
  4476. <dt><samp class="option">use-inter-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4477. <dd><p>Use DCT only for INTER modes. Default is false.
  4478. </p>
  4479. </dd>
  4480. <dt><samp class="option">use-intra-default-tx-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4481. <dd><p>Use Default-transform only for INTRA modes. Default is false.
  4482. </p>
  4483. </dd>
  4484. <dt><samp class="option">enable-ref-frame-mvs (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4485. <dd><p>Enable temporal mv prediction. Default is true.
  4486. </p>
  4487. </dd>
  4488. <dt><samp class="option">enable-reduced-reference-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4489. <dd><p>Use reduced set of single and compound references. Default is false.
  4490. </p>
  4491. </dd>
  4492. <dt><samp class="option">enable-obmc (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4493. <dd><p>Enable obmc. Default is true.
  4494. </p>
  4495. </dd>
  4496. <dt><samp class="option">enable-dual-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4497. <dd><p>Enable dual filter. Default is true.
  4498. </p>
  4499. </dd>
  4500. <dt><samp class="option">enable-diff-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4501. <dd><p>Enable difference-weighted compound. Default is true.
  4502. </p>
  4503. </dd>
  4504. <dt><samp class="option">enable-dist-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4505. <dd><p>Enable distance-weighted compound. Default is true.
  4506. </p>
  4507. </dd>
  4508. <dt><samp class="option">enable-onesided-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4509. <dd><p>Enable one sided compound. Default is true.
  4510. </p>
  4511. </dd>
  4512. <dt><samp class="option">enable-interinter-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4513. <dd><p>Enable interinter wedge compound. Default is true.
  4514. </p>
  4515. </dd>
  4516. <dt><samp class="option">enable-interintra-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4517. <dd><p>Enable interintra wedge compound. Default is true.
  4518. </p>
  4519. </dd>
  4520. <dt><samp class="option">enable-masked-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4521. <dd><p>Enable masked compound. Default is true.
  4522. </p>
  4523. </dd>
  4524. <dt><samp class="option">enable-interintra-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4525. <dd><p>Enable interintra compound. Default is true.
  4526. </p>
  4527. </dd>
  4528. <dt><samp class="option">enable-smooth-interintra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4529. <dd><p>Enable smooth interintra mode. Default is true.
  4530. </p>
  4531. </dd>
  4532. <dt><samp class="option">aom-params</samp></dt>
  4533. <dd><p>Set libaom options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4534. by &quot;:&quot;. For a list of supported options, see <code class="command">aomenc --help</code> under the
  4535. section &quot;AV1 Specific Options&quot;.
  4536. </p>
  4537. <p>For example to specify libaom encoding options with <samp class="option">-aom-params</samp>:
  4538. </p>
  4539. <div class="example">
  4540. <pre class="example-preformatted">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
  4541. </pre></div>
  4542. </dd>
  4543. </dl>
  4544. </div>
  4545. </div>
  4546. <div class="section-level-extent" id="libsvtav1">
  4547. <h3 class="section">9.8 libsvtav1</h3>
  4548. <p>SVT-AV1 encoder wrapper.
  4549. </p>
  4550. <p>Requires the presence of the SVT-AV1 headers and library during configuration.
  4551. You need to explicitly configure the build with <code class="code">--enable-libsvtav1</code>.
  4552. </p>
  4553. <ul class="mini-toc">
  4554. <li><a href="#Options-28" accesskey="1">Options</a></li>
  4555. </ul>
  4556. <div class="subsection-level-extent" id="Options-28">
  4557. <h4 class="subsection">9.8.1 Options</h4>
  4558. <dl class="table">
  4559. <dt><samp class="option">profile</samp></dt>
  4560. <dd><p>Set the encoding profile.
  4561. </p><dl class="table">
  4562. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4563. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4564. <dt>&lsquo;<samp class="samp">professional</samp>&rsquo;</dt>
  4565. </dl>
  4566. </dd>
  4567. <dt><samp class="option">level</samp></dt>
  4568. <dd><p>Set the operating point level. For example: &rsquo;4.0&rsquo;
  4569. </p>
  4570. </dd>
  4571. <dt><samp class="option">hielevel</samp></dt>
  4572. <dd><p>Set the Hierarchical prediction levels.
  4573. </p><dl class="table">
  4574. <dt>&lsquo;<samp class="samp">3level</samp>&rsquo;</dt>
  4575. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  4576. <dd><p>This is the default.
  4577. </p></dd>
  4578. </dl>
  4579. </dd>
  4580. <dt><samp class="option">tier</samp></dt>
  4581. <dd><p>Set the operating point tier.
  4582. </p><dl class="table">
  4583. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4584. <dd><p>This is the default.
  4585. </p></dd>
  4586. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4587. </dl>
  4588. </dd>
  4589. <dt><samp class="option">qmax</samp></dt>
  4590. <dd><p>Set the maximum quantizer to use when using a bitrate mode.
  4591. </p>
  4592. </dd>
  4593. <dt><samp class="option">qmin</samp></dt>
  4594. <dd><p>Set the minimum quantizer to use when using a bitrate mode.
  4595. </p>
  4596. </dd>
  4597. <dt><samp class="option">crf</samp></dt>
  4598. <dd><p>Constant rate factor value used in crf rate control mode (0-63).
  4599. </p>
  4600. </dd>
  4601. <dt><samp class="option">qp</samp></dt>
  4602. <dd><p>Set the quantizer used in cqp rate control mode (0-63).
  4603. </p>
  4604. </dd>
  4605. <dt><samp class="option">sc_detection</samp></dt>
  4606. <dd><p>Enable scene change detection.
  4607. </p>
  4608. </dd>
  4609. <dt><samp class="option">la_depth</samp></dt>
  4610. <dd><p>Set number of frames to look ahead (0-120).
  4611. </p>
  4612. </dd>
  4613. <dt><samp class="option">preset</samp></dt>
  4614. <dd><p>Set the quality-speed tradeoff, in the range 0 to 13. Higher values are
  4615. faster but lower quality.
  4616. </p>
  4617. </dd>
  4618. <dt><samp class="option">tile_rows</samp></dt>
  4619. <dd><p>Set log2 of the number of rows of tiles to use (0-6).
  4620. </p>
  4621. </dd>
  4622. <dt><samp class="option">tile_columns</samp></dt>
  4623. <dd><p>Set log2 of the number of columns of tiles to use (0-4).
  4624. </p>
  4625. </dd>
  4626. <dt><samp class="option">svtav1-params</samp></dt>
  4627. <dd><p>Set SVT-AV1 options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4628. by &quot;:&quot;. See the SVT-AV1 encoder user guide for a list of accepted parameters.
  4629. </p>
  4630. </dd>
  4631. </dl>
  4632. </div>
  4633. </div>
  4634. <div class="section-level-extent" id="libjxl">
  4635. <h3 class="section">9.9 libjxl</h3>
  4636. <p>libjxl JPEG XL encoder wrapper.
  4637. </p>
  4638. <p>Requires the presence of the libjxl headers and library during
  4639. configuration. You need to explicitly configure the build with
  4640. <code class="code">--enable-libjxl</code>.
  4641. </p>
  4642. <ul class="mini-toc">
  4643. <li><a href="#Options-29" accesskey="1">Options</a></li>
  4644. </ul>
  4645. <div class="subsection-level-extent" id="Options-29">
  4646. <h4 class="subsection">9.9.1 Options</h4>
  4647. <p>The libjxl wrapper supports the following options:
  4648. </p>
  4649. <dl class="table">
  4650. <dt><samp class="option">distance</samp></dt>
  4651. <dd><p>Set the target Butteraugli distance. This is a quality setting: lower
  4652. distance yields higher quality, with distance=1.0 roughly comparable to
  4653. libjpeg Quality 90 for photographic content. Setting distance=0.0 yields
  4654. true lossless encoding. Valid values range between 0.0 and 15.0, and sane
  4655. values rarely exceed 5.0. Setting distance=0.1 usually attains
  4656. transparency for most input. The default is 1.0.
  4657. </p>
  4658. </dd>
  4659. <dt><samp class="option">effort</samp></dt>
  4660. <dd><p>Set the encoding effort used. Higher effort values produce more consistent
  4661. quality and usually produces a better quality/bpp curve, at the cost of
  4662. more CPU time required. Valid values range from 1 to 9, and the default is 7.
  4663. </p>
  4664. </dd>
  4665. <dt><samp class="option">modular</samp></dt>
  4666. <dd><p>Force the encoder to use Modular mode instead of choosing automatically. The
  4667. default is to use VarDCT for lossy encoding and Modular for lossless. VarDCT
  4668. is generally superior to Modular for lossy encoding but does not support
  4669. lossless encoding.
  4670. </p>
  4671. </dd>
  4672. </dl>
  4673. </div>
  4674. </div>
  4675. <div class="section-level-extent" id="libkvazaar">
  4676. <h3 class="section">9.10 libkvazaar</h3>
  4677. <p>Kvazaar H.265/HEVC encoder.
  4678. </p>
  4679. <p>Requires the presence of the libkvazaar headers and library during
  4680. configuration. You need to explicitly configure the build with
  4681. <samp class="option">--enable-libkvazaar</samp>.
  4682. </p>
  4683. <ul class="mini-toc">
  4684. <li><a href="#Options-30" accesskey="1">Options</a></li>
  4685. </ul>
  4686. <div class="subsection-level-extent" id="Options-30">
  4687. <h4 class="subsection">9.10.1 Options</h4>
  4688. <dl class="table">
  4689. <dt><samp class="option">b</samp></dt>
  4690. <dd><p>Set target video bitrate in bit/s and enable rate control.
  4691. </p>
  4692. </dd>
  4693. <dt><samp class="option">kvazaar-params</samp></dt>
  4694. <dd><p>Set kvazaar parameters as a list of <var class="var">name</var>=<var class="var">value</var> pairs separated
  4695. by commas (,). See kvazaar documentation for a list of options.
  4696. </p>
  4697. </dd>
  4698. </dl>
  4699. </div>
  4700. </div>
  4701. <div class="section-level-extent" id="libopenh264">
  4702. <h3 class="section">9.11 libopenh264</h3>
  4703. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  4704. </p>
  4705. <p>This encoder requires the presence of the libopenh264 headers and
  4706. library during configuration. You need to explicitly configure the
  4707. build with <code class="code">--enable-libopenh264</code>. The library is detected using
  4708. <code class="command">pkg-config</code>.
  4709. </p>
  4710. <p>For more information about the library see
  4711. <a class="url" href="http://www.openh264.org">http://www.openh264.org</a>.
  4712. </p>
  4713. <ul class="mini-toc">
  4714. <li><a href="#Options-31" accesskey="1">Options</a></li>
  4715. </ul>
  4716. <div class="subsection-level-extent" id="Options-31">
  4717. <h4 class="subsection">9.11.1 Options</h4>
  4718. <p>The following FFmpeg global options affect the configurations of the
  4719. libopenh264 encoder.
  4720. </p>
  4721. <dl class="table">
  4722. <dt><samp class="option">b</samp></dt>
  4723. <dd><p>Set the bitrate (as a number of bits per second).
  4724. </p>
  4725. </dd>
  4726. <dt><samp class="option">g</samp></dt>
  4727. <dd><p>Set the GOP size.
  4728. </p>
  4729. </dd>
  4730. <dt><samp class="option">maxrate</samp></dt>
  4731. <dd><p>Set the max bitrate (as a number of bits per second).
  4732. </p>
  4733. </dd>
  4734. <dt><samp class="option">flags +global_header</samp></dt>
  4735. <dd><p>Set global header in the bitstream.
  4736. </p>
  4737. </dd>
  4738. <dt><samp class="option">slices</samp></dt>
  4739. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  4740. is 0. This is only used when <samp class="option">slice_mode</samp> is set to
  4741. &lsquo;<samp class="samp">fixed</samp>&rsquo;.
  4742. </p>
  4743. </dd>
  4744. <dt><samp class="option">loopfilter</samp></dt>
  4745. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4746. set a value of 0.
  4747. </p>
  4748. </dd>
  4749. <dt><samp class="option">profile</samp></dt>
  4750. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp class="samp">main</samp>&rsquo; enable
  4751. CABAC (set the <code class="code">SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4752. </p>
  4753. </dd>
  4754. <dt><samp class="option">max_nal_size</samp></dt>
  4755. <dd><p>Set maximum NAL size in bytes.
  4756. </p>
  4757. </dd>
  4758. <dt><samp class="option">allow_skip_frames</samp></dt>
  4759. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4760. </p></dd>
  4761. </dl>
  4762. </div>
  4763. </div>
  4764. <div class="section-level-extent" id="libtheora">
  4765. <h3 class="section">9.12 libtheora</h3>
  4766. <p>libtheora Theora encoder wrapper.
  4767. </p>
  4768. <p>Requires the presence of the libtheora headers and library during
  4769. configuration. You need to explicitly configure the build with
  4770. <code class="code">--enable-libtheora</code>.
  4771. </p>
  4772. <p>For more information about the libtheora project see
  4773. <a class="url" href="http://www.theora.org/">http://www.theora.org/</a>.
  4774. </p>
  4775. <ul class="mini-toc">
  4776. <li><a href="#Options-32" accesskey="1">Options</a></li>
  4777. <li><a href="#Examples-1" accesskey="2">Examples</a></li>
  4778. </ul>
  4779. <div class="subsection-level-extent" id="Options-32">
  4780. <h4 class="subsection">9.12.1 Options</h4>
  4781. <p>The following global options are mapped to internal libtheora options
  4782. which affect the quality and the bitrate of the encoded stream.
  4783. </p>
  4784. <dl class="table">
  4785. <dt><samp class="option">b</samp></dt>
  4786. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4787. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4788. </p>
  4789. </dd>
  4790. <dt><samp class="option">flags</samp></dt>
  4791. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4792. <samp class="option">qscale</samp> flag, and to enable the <code class="code">pass1</code> and <code class="code">pass2</code>
  4793. modes.
  4794. </p>
  4795. </dd>
  4796. <dt><samp class="option">g</samp></dt>
  4797. <dd><p>Set the GOP size.
  4798. </p>
  4799. </dd>
  4800. <dt><samp class="option">global_quality</samp></dt>
  4801. <dd><p>Set the global quality as an integer in lambda units.
  4802. </p>
  4803. <p>Only relevant when VBR mode is enabled with <code class="code">flags +qscale</code>. The
  4804. value is converted to QP units by dividing it by <code class="code">FF_QP2LAMBDA</code>,
  4805. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4806. value in the native libtheora range [0-63]. A higher value corresponds
  4807. to a higher quality.
  4808. </p>
  4809. </dd>
  4810. <dt><samp class="option">q</samp></dt>
  4811. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4812. quality value as a double floating point value in QP units.
  4813. </p>
  4814. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4815. to get a value in the native libtheora range [0-63].
  4816. </p>
  4817. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line
  4818. tool. For library interface users, use <samp class="option">global_quality</samp>.
  4819. </p></dd>
  4820. </dl>
  4821. </div>
  4822. <div class="subsection-level-extent" id="Examples-1">
  4823. <h4 class="subsection">9.12.2 Examples</h4>
  4824. <ul class="itemize mark-bullet">
  4825. <li>Set maximum constant quality (VBR) encoding with <code class="command">ffmpeg</code>:
  4826. <div class="example">
  4827. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4828. </pre></div>
  4829. </li><li>Use <code class="command">ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4830. <div class="example">
  4831. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4832. </pre></div>
  4833. </li></ul>
  4834. </div>
  4835. </div>
  4836. <div class="section-level-extent" id="libvpx">
  4837. <h3 class="section">9.13 libvpx</h3>
  4838. <p>VP8/VP9 format supported through libvpx.
  4839. </p>
  4840. <p>Requires the presence of the libvpx headers and library during configuration.
  4841. You need to explicitly configure the build with <code class="code">--enable-libvpx</code>.
  4842. </p>
  4843. <ul class="mini-toc">
  4844. <li><a href="#Options-33" accesskey="1">Options</a></li>
  4845. </ul>
  4846. <div class="subsection-level-extent" id="Options-33">
  4847. <h4 class="subsection">9.13.1 Options</h4>
  4848. <p>The following options are supported by the libvpx wrapper. The
  4849. <code class="command">vpxenc</code>-equivalent options or values are listed in parentheses
  4850. for easy migration.
  4851. </p>
  4852. <p>To reduce the duplication of documentation, only the private options
  4853. and some others requiring special attention are documented here. For
  4854. the documentation of the undocumented generic options, see
  4855. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  4856. </p>
  4857. <p>To get more documentation of the libvpx options, invoke the command
  4858. <code class="command">ffmpeg -h encoder=libvpx</code>, <code class="command">ffmpeg -h encoder=libvpx-vp9</code> or
  4859. <code class="command">vpxenc --help</code>. Further information is available in the libvpx API
  4860. documentation.
  4861. </p>
  4862. <dl class="table">
  4863. <dt><samp class="option">b (<em class="emph">target-bitrate</em>)</samp></dt>
  4864. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  4865. expressed in bits/s, while <code class="command">vpxenc</code>&rsquo;s <samp class="option">target-bitrate</samp> is in
  4866. kilobits/s.
  4867. </p>
  4868. </dd>
  4869. <dt><samp class="option">g (<em class="emph">kf-max-dist</em>)</samp></dt>
  4870. <dt><samp class="option">keyint_min (<em class="emph">kf-min-dist</em>)</samp></dt>
  4871. <dt><samp class="option">qmin (<em class="emph">min-q</em>)</samp></dt>
  4872. <dd><p>Minimum (Best Quality) Quantizer.
  4873. </p>
  4874. </dd>
  4875. <dt><samp class="option">qmax (<em class="emph">max-q</em>)</samp></dt>
  4876. <dd><p>Maximum (Worst Quality) Quantizer.
  4877. Can be changed per-frame.
  4878. </p>
  4879. </dd>
  4880. <dt><samp class="option">bufsize (<em class="emph">buf-sz</em>, <em class="emph">buf-optimal-sz</em>)</samp></dt>
  4881. <dd><p>Set ratecontrol buffer size (in bits). Note <code class="command">vpxenc</code>&rsquo;s options are
  4882. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4883. <code class="code">buf-sz = bufsize * 1000 / bitrate</code>,
  4884. <code class="code">buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4885. </p>
  4886. </dd>
  4887. <dt><samp class="option">rc_init_occupancy (<em class="emph">buf-initial-sz</em>)</samp></dt>
  4888. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4889. starts. Note <code class="command">vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4890. wrapper converts this value as follows:
  4891. <code class="code">rc_init_occupancy * 1000 / bitrate</code>.
  4892. </p>
  4893. </dd>
  4894. <dt><samp class="option">undershoot-pct</samp></dt>
  4895. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4896. </p>
  4897. </dd>
  4898. <dt><samp class="option">overshoot-pct</samp></dt>
  4899. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4900. </p>
  4901. </dd>
  4902. <dt><samp class="option">skip_threshold (<em class="emph">drop-frame</em>)</samp></dt>
  4903. <dt><samp class="option">qcomp (<em class="emph">bias-pct</em>)</samp></dt>
  4904. <dt><samp class="option">maxrate (<em class="emph">maxsection-pct</em>)</samp></dt>
  4905. <dd><p>Set GOP max bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4906. percentage of the target bitrate, the libvpx wrapper converts this value as
  4907. follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4908. </p>
  4909. </dd>
  4910. <dt><samp class="option">minrate (<em class="emph">minsection-pct</em>)</samp></dt>
  4911. <dd><p>Set GOP min bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4912. percentage of the target bitrate, the libvpx wrapper converts this value as
  4913. follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4914. </p>
  4915. </dd>
  4916. <dt><samp class="option">minrate, maxrate, b <em class="emph">end-usage=cbr</em></samp></dt>
  4917. <dd><p><code class="code">(minrate == maxrate == bitrate)</code>.
  4918. </p>
  4919. </dd>
  4920. <dt><samp class="option">crf (<em class="emph">end-usage=cq</em>, <em class="emph">cq-level</em>)</samp></dt>
  4921. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4922. <dd><dl class="table">
  4923. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">psnr</em>)</samp>&rsquo;</dt>
  4924. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">ssim</em>)</samp>&rsquo;</dt>
  4925. </dl>
  4926. </dd>
  4927. <dt><samp class="option">quality, deadline (<em class="emph">deadline</em>)</samp></dt>
  4928. <dd><dl class="table">
  4929. <dt>&lsquo;<samp class="samp">best</samp>&rsquo;</dt>
  4930. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4931. avoided as it may give worse quality output than good.
  4932. </p></dd>
  4933. <dt>&lsquo;<samp class="samp">good</samp>&rsquo;</dt>
  4934. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4935. when used with the <samp class="option">cpu-used</samp> option.
  4936. </p></dd>
  4937. <dt>&lsquo;<samp class="samp">realtime</samp>&rsquo;</dt>
  4938. <dd><p>Use realtime quality deadline.
  4939. </p></dd>
  4940. </dl>
  4941. </dd>
  4942. <dt><samp class="option">speed, cpu-used (<em class="emph">cpu-used</em>)</samp></dt>
  4943. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4944. of quality.
  4945. </p>
  4946. </dd>
  4947. <dt><samp class="option">nr (<em class="emph">noise-sensitivity</em>)</samp></dt>
  4948. <dt><samp class="option">static-thresh</samp></dt>
  4949. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4950. encoder.
  4951. </p>
  4952. </dd>
  4953. <dt><samp class="option">slices (<em class="emph">token-parts</em>)</samp></dt>
  4954. <dd><p>Note that FFmpeg&rsquo;s <samp class="option">slices</samp> option gives the total number of partitions,
  4955. while <code class="command">vpxenc</code>&rsquo;s <samp class="option">token-parts</samp> is given as
  4956. <code class="code">log2(partitions)</code>.
  4957. </p>
  4958. </dd>
  4959. <dt><samp class="option">max-intra-rate</samp></dt>
  4960. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4961. means unlimited.
  4962. </p>
  4963. </dd>
  4964. <dt><samp class="option">force_key_frames</samp></dt>
  4965. <dd><p><code class="code">VPX_EFLAG_FORCE_KF</code>
  4966. </p>
  4967. </dd>
  4968. <dt><samp class="option">Alternate reference frame related</samp></dt>
  4969. <dd><dl class="table">
  4970. <dt><samp class="option">auto-alt-ref</samp></dt>
  4971. <dd><p>Enable use of alternate reference frames (2-pass only).
  4972. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4973. </p></dd>
  4974. <dt><samp class="option">arnr-maxframes</samp></dt>
  4975. <dd><p>Set altref noise reduction max frame count.
  4976. </p></dd>
  4977. <dt><samp class="option">arnr-type</samp></dt>
  4978. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4979. </p></dd>
  4980. <dt><samp class="option">arnr-strength</samp></dt>
  4981. <dd><p>Set altref noise reduction filter strength.
  4982. </p></dd>
  4983. <dt><samp class="option">rc-lookahead, lag-in-frames (<em class="emph">lag-in-frames</em>)</samp></dt>
  4984. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4985. </p></dd>
  4986. <dt><samp class="option">min-gf-interval</samp></dt>
  4987. <dd><p>Set minimum golden/alternate reference frame interval (VP9 only).
  4988. </p></dd>
  4989. </dl>
  4990. </dd>
  4991. <dt><samp class="option">error-resilient</samp></dt>
  4992. <dd><p>Enable error resiliency features.
  4993. </p>
  4994. </dd>
  4995. <dt><samp class="option">sharpness <var class="var">integer</var></samp></dt>
  4996. <dd><p>Increase sharpness at the expense of lower PSNR.
  4997. The valid range is [0, 7].
  4998. </p>
  4999. </dd>
  5000. <dt><samp class="option">ts-parameters</samp></dt>
  5001. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  5002. key=value pairs. For example, to specify temporal scalability parameters
  5003. with <code class="code">ffmpeg</code>:
  5004. </p><div class="example">
  5005. <pre class="example-preformatted">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  5006. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  5007. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  5008. </pre></div>
  5009. <p>Below is a brief explanation of each of the parameters, please
  5010. refer to <code class="code">struct vpx_codec_enc_cfg</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  5011. details.
  5012. </p><dl class="table">
  5013. <dt><samp class="option">ts_number_layers</samp></dt>
  5014. <dd><p>Number of temporal coding layers.
  5015. </p></dd>
  5016. <dt><samp class="option">ts_target_bitrate</samp></dt>
  5017. <dd><p>Target bitrate for each temporal layer (in kbps).
  5018. (bitrate should be inclusive of the lower temporal layer).
  5019. </p></dd>
  5020. <dt><samp class="option">ts_rate_decimator</samp></dt>
  5021. <dd><p>Frame rate decimation factor for each temporal layer.
  5022. </p></dd>
  5023. <dt><samp class="option">ts_periodicity</samp></dt>
  5024. <dd><p>Length of the sequence defining frame temporal layer membership.
  5025. </p></dd>
  5026. <dt><samp class="option">ts_layer_id</samp></dt>
  5027. <dd><p>Template defining the membership of frames to temporal layers.
  5028. </p></dd>
  5029. <dt><samp class="option">ts_layering_mode</samp></dt>
  5030. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  5031. Currently supports the following options.
  5032. </p><dl class="table">
  5033. <dt><samp class="option">0</samp></dt>
  5034. <dd><p>No temporal layering flags are provided internally,
  5035. relies on flags being passed in using <code class="code">metadata</code> field in <code class="code">AVFrame</code>
  5036. with following keys.
  5037. </p><dl class="table">
  5038. <dt><samp class="option">vp8-flags</samp></dt>
  5039. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  5040. the current frame.
  5041. Refer to function <code class="code">vpx_codec_encode</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  5042. details.
  5043. </p></dd>
  5044. <dt><samp class="option">temporal_id</samp></dt>
  5045. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  5046. </p></dd>
  5047. </dl>
  5048. </dd>
  5049. <dt><samp class="option">2</samp></dt>
  5050. <dd><p>Two temporal layers. 0-1...
  5051. </p></dd>
  5052. <dt><samp class="option">3</samp></dt>
  5053. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  5054. </p></dd>
  5055. <dt><samp class="option">4</samp></dt>
  5056. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  5057. the two temporal layer 2 frames within the temporal period.
  5058. </p></dd>
  5059. </dl>
  5060. </dd>
  5061. </dl>
  5062. </dd>
  5063. <dt><samp class="option">VP9-specific options</samp></dt>
  5064. <dd><dl class="table">
  5065. <dt><samp class="option">lossless</samp></dt>
  5066. <dd><p>Enable lossless mode.
  5067. </p></dd>
  5068. <dt><samp class="option">tile-columns</samp></dt>
  5069. <dd><p>Set number of tile columns to use. Note this is given as
  5070. <code class="code">log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  5071. setting the <samp class="option">tile-columns</samp> option to 3.
  5072. </p></dd>
  5073. <dt><samp class="option">tile-rows</samp></dt>
  5074. <dd><p>Set number of tile rows to use. Note this is given as <code class="code">log2(tile_rows)</code>.
  5075. For example, 4 tile rows would be requested by setting the <samp class="option">tile-rows</samp>
  5076. option to 2.
  5077. </p></dd>
  5078. <dt><samp class="option">frame-parallel</samp></dt>
  5079. <dd><p>Enable frame parallel decodability features.
  5080. </p></dd>
  5081. <dt><samp class="option">aq-mode</samp></dt>
  5082. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  5083. cyclic refresh, 4: equator360).
  5084. </p></dd>
  5085. <dt><samp class="option">colorspace <em class="emph">color-space</em></samp></dt>
  5086. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  5087. colorspaces:
  5088. </p><dl class="table">
  5089. <dt><samp class="option">&lsquo;<samp class="samp">rgb</samp>&rsquo; <em class="emph">sRGB</em></samp></dt>
  5090. <dt><samp class="option">&lsquo;<samp class="samp">bt709</samp>&rsquo; <em class="emph">bt709</em></samp></dt>
  5091. <dt><samp class="option">&lsquo;<samp class="samp">unspecified</samp>&rsquo; <em class="emph">unknown</em></samp></dt>
  5092. <dt><samp class="option">&lsquo;<samp class="samp">bt470bg</samp>&rsquo; <em class="emph">bt601</em></samp></dt>
  5093. <dt><samp class="option">&lsquo;<samp class="samp">smpte170m</samp>&rsquo; <em class="emph">smpte170</em></samp></dt>
  5094. <dt><samp class="option">&lsquo;<samp class="samp">smpte240m</samp>&rsquo; <em class="emph">smpte240</em></samp></dt>
  5095. <dt><samp class="option">&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo; <em class="emph">bt2020</em></samp></dt>
  5096. </dl>
  5097. </dd>
  5098. <dt><samp class="option">row-mt <var class="var">boolean</var></samp></dt>
  5099. <dd><p>Enable row based multi-threading.
  5100. </p></dd>
  5101. <dt><samp class="option">tune-content</samp></dt>
  5102. <dd><p>Set content type: default (0), screen (1), film (2).
  5103. </p></dd>
  5104. <dt><samp class="option">corpus-complexity</samp></dt>
  5105. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  5106. midpoint is passed in rather than calculated for a specific clip or chunk.
  5107. </p>
  5108. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  5109. </p></dd>
  5110. <dt><samp class="option">enable-tpl <var class="var">boolean</var></samp></dt>
  5111. <dd><p>Enable temporal dependency model.
  5112. </p></dd>
  5113. <dt><samp class="option">ref-frame-config</samp></dt>
  5114. <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.
  5115. <br>Use a :-separated list of key=value pairs.
  5116. For example,
  5117. </p><div class="example">
  5118. <pre class="example-preformatted">av_dict_set(&amp;av_frame-&gt;metadata, &quot;ref-frame-config&quot;, \
  5119. &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;);
  5120. </pre></div>
  5121. <dl class="table">
  5122. <dt><samp class="option">rfc_update_buffer_slot</samp></dt>
  5123. <dd><p>Indicates the buffer slot number to update
  5124. </p></dd>
  5125. <dt><samp class="option">rfc_update_last</samp></dt>
  5126. <dd><p>Indicates whether to update the LAST frame
  5127. </p></dd>
  5128. <dt><samp class="option">rfc_update_golden</samp></dt>
  5129. <dd><p>Indicates whether to update GOLDEN frame
  5130. </p></dd>
  5131. <dt><samp class="option">rfc_update_alt_ref</samp></dt>
  5132. <dd><p>Indicates whether to update ALT_REF frame
  5133. </p></dd>
  5134. <dt><samp class="option">rfc_lst_fb_idx</samp></dt>
  5135. <dd><p>LAST frame buffer index
  5136. </p></dd>
  5137. <dt><samp class="option">rfc_gld_fb_idx</samp></dt>
  5138. <dd><p>GOLDEN frame buffer index
  5139. </p></dd>
  5140. <dt><samp class="option">rfc_alt_fb_idx</samp></dt>
  5141. <dd><p>ALT_REF frame buffer index
  5142. </p></dd>
  5143. <dt><samp class="option">rfc_reference_last</samp></dt>
  5144. <dd><p>Indicates whether to reference LAST frame
  5145. </p></dd>
  5146. <dt><samp class="option">rfc_reference_golden</samp></dt>
  5147. <dd><p>Indicates whether to reference GOLDEN frame
  5148. </p></dd>
  5149. <dt><samp class="option">rfc_reference_alt_ref</samp></dt>
  5150. <dd><p>Indicates whether to reference ALT_REF frame
  5151. </p></dd>
  5152. <dt><samp class="option">rfc_reference_duration</samp></dt>
  5153. <dd><p>Indicates frame duration
  5154. </p></dd>
  5155. </dl>
  5156. </dd>
  5157. </dl>
  5158. </dd>
  5159. </dl>
  5160. <p>For more information about libvpx see:
  5161. <a class="url" href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  5162. </p>
  5163. </div>
  5164. </div>
  5165. <div class="section-level-extent" id="libwebp">
  5166. <h3 class="section">9.14 libwebp</h3>
  5167. <p>libwebp WebP Image encoder wrapper
  5168. </p>
  5169. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  5170. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  5171. frame. Lossless images are a separate codec developed by Google.
  5172. </p>
  5173. <ul class="mini-toc">
  5174. <li><a href="#Pixel-Format" accesskey="1">Pixel Format</a></li>
  5175. <li><a href="#Options-34" accesskey="2">Options</a></li>
  5176. </ul>
  5177. <div class="subsection-level-extent" id="Pixel-Format">
  5178. <h4 class="subsection">9.14.1 Pixel Format</h4>
  5179. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  5180. to limitations of the format and libwebp. Alpha is supported for either mode.
  5181. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  5182. passed in for encoding lossless, the pixel format will automatically be
  5183. converted using functions from libwebp. This is not ideal and is done only for
  5184. convenience.
  5185. </p>
  5186. </div>
  5187. <div class="subsection-level-extent" id="Options-34">
  5188. <h4 class="subsection">9.14.2 Options</h4>
  5189. <dl class="table">
  5190. <dt><samp class="option">-lossless <var class="var">boolean</var></samp></dt>
  5191. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  5192. </p>
  5193. </dd>
  5194. <dt><samp class="option">-compression_level <var class="var">integer</var></samp></dt>
  5195. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  5196. for a given size at the cost of increased encoding time. For lossless, this is
  5197. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  5198. encoding time. More specifically, it controls the number of extra algorithms
  5199. and compression tools used, and varies the combination of these tools. This
  5200. maps to the <var class="var">method</var> option in libwebp. The valid range is 0 to 6.
  5201. Default is 4.
  5202. </p>
  5203. </dd>
  5204. <dt><samp class="option">-quality <var class="var">float</var></samp></dt>
  5205. <dd><p>For lossy encoding, this controls image quality. For lossless encoding, this
  5206. controls the effort and time spent in compression.
  5207. Range is 0 to 100. Default is 75.
  5208. </p>
  5209. </dd>
  5210. <dt><samp class="option">-preset <var class="var">type</var></samp></dt>
  5211. <dd><p>Configuration preset. This does some automatic settings based on the general
  5212. type of the image.
  5213. </p><dl class="table">
  5214. <dt><samp class="option">none</samp></dt>
  5215. <dd><p>Do not use a preset.
  5216. </p></dd>
  5217. <dt><samp class="option">default</samp></dt>
  5218. <dd><p>Use the encoder default.
  5219. </p></dd>
  5220. <dt><samp class="option">picture</samp></dt>
  5221. <dd><p>Digital picture, like portrait, inner shot
  5222. </p></dd>
  5223. <dt><samp class="option">photo</samp></dt>
  5224. <dd><p>Outdoor photograph, with natural lighting
  5225. </p></dd>
  5226. <dt><samp class="option">drawing</samp></dt>
  5227. <dd><p>Hand or line drawing, with high-contrast details
  5228. </p></dd>
  5229. <dt><samp class="option">icon</samp></dt>
  5230. <dd><p>Small-sized colorful images
  5231. </p></dd>
  5232. <dt><samp class="option">text</samp></dt>
  5233. <dd><p>Text-like
  5234. </p></dd>
  5235. </dl>
  5236. </dd>
  5237. </dl>
  5238. </div>
  5239. </div>
  5240. <div class="section-level-extent" id="libx264_002c-libx264rgb">
  5241. <h3 class="section">9.15 libx264, libx264rgb</h3>
  5242. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  5243. </p>
  5244. <p>This encoder requires the presence of the libx264 headers and library
  5245. during configuration. You need to explicitly configure the build with
  5246. <code class="code">--enable-libx264</code>.
  5247. </p>
  5248. <p>libx264 supports an impressive number of features, including 8x8 and
  5249. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  5250. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  5251. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  5252. </p>
  5253. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  5254. options, while unique encoder options are provided through private
  5255. options. Additionally the <samp class="option">x264opts</samp> and <samp class="option">x264-params</samp>
  5256. private options allows one to pass a list of key=value tuples as accepted
  5257. by the libx264 <code class="code">x264_param_parse</code> function.
  5258. </p>
  5259. <p>The x264 project website is at
  5260. <a class="url" href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  5261. </p>
  5262. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  5263. pixel formats as input instead of YUV.
  5264. </p>
  5265. <ul class="mini-toc">
  5266. <li><a href="#Supported-Pixel-Formats" accesskey="1">Supported Pixel Formats</a></li>
  5267. <li><a href="#Options-35" accesskey="2">Options</a></li>
  5268. </ul>
  5269. <div class="subsection-level-extent" id="Supported-Pixel-Formats">
  5270. <h4 class="subsection">9.15.1 Supported Pixel Formats</h4>
  5271. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  5272. x264&rsquo;s configure time.
  5273. </p>
  5274. </div>
  5275. <div class="subsection-level-extent" id="Options-35">
  5276. <h4 class="subsection">9.15.2 Options</h4>
  5277. <p>The following options are supported by the libx264 wrapper. The
  5278. <code class="command">x264</code>-equivalent options or values are listed in parentheses
  5279. for easy migration.
  5280. </p>
  5281. <p>To reduce the duplication of documentation, only the private options
  5282. and some others requiring special attention are documented here. For
  5283. the documentation of the undocumented generic options, see
  5284. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5285. </p>
  5286. <p>To get a more accurate and extensive documentation of the libx264
  5287. options, invoke the command <code class="command">x264 --fullhelp</code> or consult
  5288. the libx264 documentation.
  5289. </p>
  5290. <dl class="table">
  5291. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5292. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  5293. expressed in bits/s, while <code class="command">x264</code>&rsquo;s <samp class="option">bitrate</samp> is in
  5294. kilobits/s.
  5295. </p>
  5296. </dd>
  5297. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5298. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5299. <dt><samp class="option">qmin (<em class="emph">qpmin</em>)</samp></dt>
  5300. <dd><p>Minimum quantizer scale.
  5301. </p>
  5302. </dd>
  5303. <dt><samp class="option">qmax (<em class="emph">qpmax</em>)</samp></dt>
  5304. <dd><p>Maximum quantizer scale.
  5305. </p>
  5306. </dd>
  5307. <dt><samp class="option">qdiff (<em class="emph">qpstep</em>)</samp></dt>
  5308. <dd><p>Maximum difference between quantizer scales.
  5309. </p>
  5310. </dd>
  5311. <dt><samp class="option">qblur (<em class="emph">qblur</em>)</samp></dt>
  5312. <dd><p>Quantizer curve blur
  5313. </p>
  5314. </dd>
  5315. <dt><samp class="option">qcomp (<em class="emph">qcomp</em>)</samp></dt>
  5316. <dd><p>Quantizer curve compression factor
  5317. </p>
  5318. </dd>
  5319. <dt><samp class="option">refs (<em class="emph">ref</em>)</samp></dt>
  5320. <dd><p>Number of reference frames each P-frame can use. The range is from <var class="var">0-16</var>.
  5321. </p>
  5322. </dd>
  5323. <dt><samp class="option">level (<em class="emph">level</em>)</samp></dt>
  5324. <dd><p>Set the <code class="code">x264_param_t.i_level_idc</code> value in case the value is
  5325. positive, it is ignored otherwise.
  5326. </p>
  5327. <p>This value can be set using the <code class="code">AVCodecContext</code> API (e.g. by
  5328. setting the <code class="code">AVCodecContext</code> value directly), and is specified as
  5329. an integer mapped on a corresponding level (e.g. the value 31 maps
  5330. to H.264 level IDC &quot;3.1&quot;, as defined in the <code class="code">x264_levels</code>
  5331. table). It is ignored when set to a non positive value.
  5332. </p>
  5333. <p>Alternatively it can be set as a private option, overriding the value
  5334. set in <code class="code">AVCodecContext</code>, and in this case must be specified as
  5335. the level IDC identifier (e.g. &quot;3.1&quot;), as defined by H.264 Annex A.
  5336. </p>
  5337. </dd>
  5338. <dt><samp class="option">sc_threshold (<em class="emph">scenecut</em>)</samp></dt>
  5339. <dd><p>Sets the threshold for the scene change detection.
  5340. </p>
  5341. </dd>
  5342. <dt><samp class="option">trellis (<em class="emph">trellis</em>)</samp></dt>
  5343. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  5344. </p>
  5345. </dd>
  5346. <dt><samp class="option">nr (<em class="emph">nr</em>)</samp></dt>
  5347. <dt><samp class="option">me_range (<em class="emph">merange</em>)</samp></dt>
  5348. <dd><p>Maximum range of the motion search in pixels.
  5349. </p>
  5350. </dd>
  5351. <dt><samp class="option">me_method (<em class="emph">me</em>)</samp></dt>
  5352. <dd><p>Set motion estimation method. Possible values in the decreasing order
  5353. of speed:
  5354. </p>
  5355. <dl class="table">
  5356. <dt>&lsquo;<samp class="samp">dia (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5357. <dt>&lsquo;<samp class="samp">epzs (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5358. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp class="samp">epzs</samp>&rsquo; is an alias for
  5359. &lsquo;<samp class="samp">dia</samp>&rsquo;.
  5360. </p></dd>
  5361. <dt>&lsquo;<samp class="samp">hex (<em class="emph">hex</em>)</samp>&rsquo;</dt>
  5362. <dd><p>Hexagonal search with radius 2.
  5363. </p></dd>
  5364. <dt>&lsquo;<samp class="samp">umh (<em class="emph">umh</em>)</samp>&rsquo;</dt>
  5365. <dd><p>Uneven multi-hexagon search.
  5366. </p></dd>
  5367. <dt>&lsquo;<samp class="samp">esa (<em class="emph">esa</em>)</samp>&rsquo;</dt>
  5368. <dd><p>Exhaustive search.
  5369. </p></dd>
  5370. <dt>&lsquo;<samp class="samp">tesa (<em class="emph">tesa</em>)</samp>&rsquo;</dt>
  5371. <dd><p>Hadamard exhaustive search (slowest).
  5372. </p></dd>
  5373. </dl>
  5374. </dd>
  5375. <dt><samp class="option">forced-idr</samp></dt>
  5376. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5377. of I-frame. This option forces it to choose an IDR-frame.
  5378. </p>
  5379. </dd>
  5380. <dt><samp class="option">subq (<em class="emph">subme</em>)</samp></dt>
  5381. <dd><p>Sub-pixel motion estimation method.
  5382. </p>
  5383. </dd>
  5384. <dt><samp class="option">b_strategy (<em class="emph">b-adapt</em>)</samp></dt>
  5385. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  5386. </p>
  5387. </dd>
  5388. <dt><samp class="option">keyint_min (<em class="emph">min-keyint</em>)</samp></dt>
  5389. <dd><p>Minimum GOP size.
  5390. </p>
  5391. </dd>
  5392. <dt><samp class="option">coder</samp></dt>
  5393. <dd><p>Set entropy encoder. Possible values:
  5394. </p>
  5395. <dl class="table">
  5396. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  5397. <dd><p>Enable CABAC.
  5398. </p>
  5399. </dd>
  5400. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  5401. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  5402. <code class="command">x264</code>&rsquo;s <samp class="option">--no-cabac</samp> option.
  5403. </p></dd>
  5404. </dl>
  5405. </dd>
  5406. <dt><samp class="option">cmp</samp></dt>
  5407. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  5408. </p>
  5409. <dl class="table">
  5410. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  5411. <dd><p>Enable chroma in motion estimation.
  5412. </p>
  5413. </dd>
  5414. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  5415. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  5416. <code class="command">x264</code>&rsquo;s <samp class="option">--no-chroma-me</samp> option.
  5417. </p></dd>
  5418. </dl>
  5419. </dd>
  5420. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5421. <dd><p>Number of encoding threads.
  5422. </p>
  5423. </dd>
  5424. <dt><samp class="option">thread_type</samp></dt>
  5425. <dd><p>Set multithreading technique. Possible values:
  5426. </p>
  5427. <dl class="table">
  5428. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  5429. <dd><p>Slice-based multithreading. It generates the same effect as
  5430. <code class="command">x264</code>&rsquo;s <samp class="option">--sliced-threads</samp> option.
  5431. </p></dd>
  5432. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  5433. <dd><p>Frame-based multithreading.
  5434. </p></dd>
  5435. </dl>
  5436. </dd>
  5437. <dt><samp class="option">flags</samp></dt>
  5438. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  5439. open GOP by setting it to <code class="code">-cgop</code>. The result is similar to
  5440. the behavior of <code class="command">x264</code>&rsquo;s <samp class="option">--open-gop</samp> option.
  5441. </p>
  5442. </dd>
  5443. <dt><samp class="option">rc_init_occupancy (<em class="emph">vbv-init</em>)</samp></dt>
  5444. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5445. <dd><p>Set the encoding preset.
  5446. </p>
  5447. </dd>
  5448. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5449. <dd><p>Set tuning of the encoding params.
  5450. </p>
  5451. </dd>
  5452. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5453. <dd><p>Set profile restrictions.
  5454. </p>
  5455. </dd>
  5456. <dt><samp class="option">fastfirstpass</samp></dt>
  5457. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  5458. to 0, it has the same effect of <code class="command">x264</code>&rsquo;s
  5459. <samp class="option">--slow-firstpass</samp> option.
  5460. </p>
  5461. </dd>
  5462. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5463. <dd><p>Set the quality for constant quality mode.
  5464. </p>
  5465. </dd>
  5466. <dt><samp class="option">crf_max (<em class="emph">crf-max</em>)</samp></dt>
  5467. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  5468. </p>
  5469. </dd>
  5470. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5471. <dd><p>Set constant quantization rate control method parameter.
  5472. </p>
  5473. </dd>
  5474. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  5475. <dd><p>Set AQ method. Possible values:
  5476. </p>
  5477. <dl class="table">
  5478. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5479. <dd><p>Disabled.
  5480. </p>
  5481. </dd>
  5482. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5483. <dd><p>Variance AQ (complexity mask).
  5484. </p>
  5485. </dd>
  5486. <dt>&lsquo;<samp class="samp">autovariance (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5487. <dd><p>Auto-variance AQ (experimental).
  5488. </p></dd>
  5489. </dl>
  5490. </dd>
  5491. <dt><samp class="option">aq-strength (<em class="emph">aq-strength</em>)</samp></dt>
  5492. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  5493. </p>
  5494. </dd>
  5495. <dt><samp class="option">psy</samp></dt>
  5496. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  5497. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-psy</samp> option.
  5498. </p>
  5499. </dd>
  5500. <dt><samp class="option">psy-rd (<em class="emph">psy-rd</em>)</samp></dt>
  5501. <dd><p>Set strength of psychovisual optimization, in
  5502. <var class="var">psy-rd</var>:<var class="var">psy-trellis</var> format.
  5503. </p>
  5504. </dd>
  5505. <dt><samp class="option">rc-lookahead (<em class="emph">rc-lookahead</em>)</samp></dt>
  5506. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  5507. </p>
  5508. </dd>
  5509. <dt><samp class="option">weightb</samp></dt>
  5510. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  5511. it has the same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-weightb</samp> option.
  5512. </p>
  5513. </dd>
  5514. <dt><samp class="option">weightp (<em class="emph">weightp</em>)</samp></dt>
  5515. <dd><p>Set weighted prediction method for P-frames. Possible values:
  5516. </p>
  5517. <dl class="table">
  5518. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5519. <dd><p>Disabled
  5520. </p></dd>
  5521. <dt>&lsquo;<samp class="samp">simple (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5522. <dd><p>Enable only weighted refs
  5523. </p></dd>
  5524. <dt>&lsquo;<samp class="samp">smart (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5525. <dd><p>Enable both weighted refs and duplicates
  5526. </p></dd>
  5527. </dl>
  5528. </dd>
  5529. <dt><samp class="option">ssim (<em class="emph">ssim</em>)</samp></dt>
  5530. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  5531. </p>
  5532. </dd>
  5533. <dt><samp class="option">intra-refresh (<em class="emph">intra-refresh</em>)</samp></dt>
  5534. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  5535. to 1.
  5536. </p>
  5537. </dd>
  5538. <dt><samp class="option">avcintra-class (<em class="emph">class</em>)</samp></dt>
  5539. <dd><p>Configure the encoder to generate AVC-Intra.
  5540. Valid values are 50,100 and 200
  5541. </p>
  5542. </dd>
  5543. <dt><samp class="option">bluray-compat (<em class="emph">bluray-compat</em>)</samp></dt>
  5544. <dd><p>Configure the encoder to be compatible with the bluray standard.
  5545. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  5546. </p>
  5547. </dd>
  5548. <dt><samp class="option">b-bias (<em class="emph">b-bias</em>)</samp></dt>
  5549. <dd><p>Set the influence on how often B-frames are used.
  5550. </p>
  5551. </dd>
  5552. <dt><samp class="option">b-pyramid (<em class="emph">b-pyramid</em>)</samp></dt>
  5553. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  5554. </p>
  5555. <dl class="table">
  5556. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5557. <dd><p>Disabled.
  5558. </p></dd>
  5559. <dt>&lsquo;<samp class="samp">strict (<em class="emph">strict</em>)</samp>&rsquo;</dt>
  5560. <dd><p>Strictly hierarchical pyramid.
  5561. </p></dd>
  5562. <dt>&lsquo;<samp class="samp">normal (<em class="emph">normal</em>)</samp>&rsquo;</dt>
  5563. <dd><p>Non-strict (not Blu-ray compatible).
  5564. </p></dd>
  5565. </dl>
  5566. </dd>
  5567. <dt><samp class="option">mixed-refs</samp></dt>
  5568. <dd><p>Enable the use of one reference per partition, as opposed to one
  5569. reference per macroblock when set to 1. When set to 0, it has the
  5570. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-mixed-refs</samp> option.
  5571. </p>
  5572. </dd>
  5573. <dt><samp class="option">8x8dct</samp></dt>
  5574. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  5575. when set to 1. When set to 0, it has the same effect as
  5576. <code class="command">x264</code>&rsquo;s <samp class="option">--no-8x8dct</samp> option.
  5577. </p>
  5578. </dd>
  5579. <dt><samp class="option">fast-pskip</samp></dt>
  5580. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  5581. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5582. <samp class="option">--no-fast-pskip</samp> option.
  5583. </p>
  5584. </dd>
  5585. <dt><samp class="option">aud (<em class="emph">aud</em>)</samp></dt>
  5586. <dd><p>Enable use of access unit delimiters when set to 1.
  5587. </p>
  5588. </dd>
  5589. <dt><samp class="option">mbtree</samp></dt>
  5590. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  5591. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5592. <samp class="option">--no-mbtree</samp> option.
  5593. </p>
  5594. </dd>
  5595. <dt><samp class="option">deblock (<em class="emph">deblock</em>)</samp></dt>
  5596. <dd><p>Set loop filter parameters, in <var class="var">alpha</var>:<var class="var">beta</var> form.
  5597. </p>
  5598. </dd>
  5599. <dt><samp class="option">cplxblur (<em class="emph">cplxblur</em>)</samp></dt>
  5600. <dd><p>Set fluctuations reduction in QP (before curve compression).
  5601. </p>
  5602. </dd>
  5603. <dt><samp class="option">partitions (<em class="emph">partitions</em>)</samp></dt>
  5604. <dd><p>Set partitions to consider as a comma-separated list of. Possible
  5605. values in the list:
  5606. </p>
  5607. <dl class="table">
  5608. <dt>&lsquo;<samp class="samp">p8x8</samp>&rsquo;</dt>
  5609. <dd><p>8x8 P-frame partition.
  5610. </p></dd>
  5611. <dt>&lsquo;<samp class="samp">p4x4</samp>&rsquo;</dt>
  5612. <dd><p>4x4 P-frame partition.
  5613. </p></dd>
  5614. <dt>&lsquo;<samp class="samp">b8x8</samp>&rsquo;</dt>
  5615. <dd><p>4x4 B-frame partition.
  5616. </p></dd>
  5617. <dt>&lsquo;<samp class="samp">i8x8</samp>&rsquo;</dt>
  5618. <dd><p>8x8 I-frame partition.
  5619. </p></dd>
  5620. <dt>&lsquo;<samp class="samp">i4x4</samp>&rsquo;</dt>
  5621. <dd><p>4x4 I-frame partition.
  5622. (Enabling &lsquo;<samp class="samp">p4x4</samp>&rsquo; requires &lsquo;<samp class="samp">p8x8</samp>&rsquo; to be enabled. Enabling
  5623. &lsquo;<samp class="samp">i8x8</samp>&rsquo; requires adaptive spatial transform (<samp class="option">8x8dct</samp>
  5624. option) to be enabled.)
  5625. </p></dd>
  5626. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5627. <dd><p>Do not consider any partitions.
  5628. </p></dd>
  5629. <dt>&lsquo;<samp class="samp">all (<em class="emph">all</em>)</samp>&rsquo;</dt>
  5630. <dd><p>Consider every partition.
  5631. </p></dd>
  5632. </dl>
  5633. </dd>
  5634. <dt><samp class="option">direct-pred (<em class="emph">direct</em>)</samp></dt>
  5635. <dd><p>Set direct MV prediction mode. Possible values:
  5636. </p>
  5637. <dl class="table">
  5638. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5639. <dd><p>Disable MV prediction.
  5640. </p></dd>
  5641. <dt>&lsquo;<samp class="samp">spatial (<em class="emph">spatial</em>)</samp>&rsquo;</dt>
  5642. <dd><p>Enable spatial predicting.
  5643. </p></dd>
  5644. <dt>&lsquo;<samp class="samp">temporal (<em class="emph">temporal</em>)</samp>&rsquo;</dt>
  5645. <dd><p>Enable temporal predicting.
  5646. </p></dd>
  5647. <dt>&lsquo;<samp class="samp">auto (<em class="emph">auto</em>)</samp>&rsquo;</dt>
  5648. <dd><p>Automatically decided.
  5649. </p></dd>
  5650. </dl>
  5651. </dd>
  5652. <dt><samp class="option">slice-max-size (<em class="emph">slice-max-size</em>)</samp></dt>
  5653. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  5654. but RTP payload size (<samp class="option">ps</samp>) is specified, that is used.
  5655. </p>
  5656. </dd>
  5657. <dt><samp class="option">stats (<em class="emph">stats</em>)</samp></dt>
  5658. <dd><p>Set the file name for multi-pass stats.
  5659. </p>
  5660. </dd>
  5661. <dt><samp class="option">nal-hrd (<em class="emph">nal-hrd</em>)</samp></dt>
  5662. <dd><p>Set signal HRD information (requires <samp class="option">vbv-bufsize</samp> to be set).
  5663. Possible values:
  5664. </p>
  5665. <dl class="table">
  5666. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5667. <dd><p>Disable HRD information signaling.
  5668. </p></dd>
  5669. <dt>&lsquo;<samp class="samp">vbr (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  5670. <dd><p>Variable bit rate.
  5671. </p></dd>
  5672. <dt>&lsquo;<samp class="samp">cbr (<em class="emph">cbr</em>)</samp>&rsquo;</dt>
  5673. <dd><p>Constant bit rate (not allowed in MP4 container).
  5674. </p></dd>
  5675. </dl>
  5676. </dd>
  5677. <dt><samp class="option">x264opts (N.A.)</samp></dt>
  5678. <dd><p>Set any x264 option, see <code class="command">x264 --fullhelp</code> for a list.
  5679. </p>
  5680. <p>Argument is a list of <var class="var">key</var>=<var class="var">value</var> couples separated by
  5681. &quot;:&quot;. In <var class="var">filter</var> and <var class="var">psy-rd</var> options that use &quot;:&quot; as a separator
  5682. themselves, use &quot;,&quot; instead. They accept it as well since long ago but this
  5683. is kept undocumented for some reason.
  5684. </p>
  5685. <p>For example to specify libx264 encoding options with <code class="command">ffmpeg</code>:
  5686. </p><div class="example">
  5687. <pre class="example-preformatted">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  5688. </pre></div>
  5689. </dd>
  5690. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  5691. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5692. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  5693. </p>
  5694. </dd>
  5695. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5696. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5697. </p>
  5698. </dd>
  5699. <dt><samp class="option">mb_info <var class="var">boolean</var></samp></dt>
  5700. <dd><p>Set mb_info data through AVFrameSideData, only useful when used from the
  5701. API. Default is 0 (off).
  5702. </p>
  5703. </dd>
  5704. <dt><samp class="option">x264-params (N.A.)</samp></dt>
  5705. <dd><p>Override the x264 configuration using a :-separated list of key=value
  5706. parameters.
  5707. </p>
  5708. <p>This option is functionally the same as the <samp class="option">x264opts</samp>, but is
  5709. duplicated for compatibility with the Libav fork.
  5710. </p>
  5711. <p>For example to specify libx264 encoding options with <code class="command">ffmpeg</code>:
  5712. </p><div class="example">
  5713. <pre class="example-preformatted">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
  5714. cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
  5715. no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
  5716. </pre></div>
  5717. </dd>
  5718. </dl>
  5719. <p>Encoding ffpresets for common usages are provided so they can be used with the
  5720. general presets system (e.g. passing the <samp class="option">pre</samp> option).
  5721. </p>
  5722. </div>
  5723. </div>
  5724. <div class="section-level-extent" id="libx265">
  5725. <h3 class="section">9.16 libx265</h3>
  5726. <p>x265 H.265/HEVC encoder wrapper.
  5727. </p>
  5728. <p>This encoder requires the presence of the libx265 headers and library
  5729. during configuration. You need to explicitly configure the build with
  5730. <samp class="option">--enable-libx265</samp>.
  5731. </p>
  5732. <ul class="mini-toc">
  5733. <li><a href="#Options-36" accesskey="1">Options</a></li>
  5734. </ul>
  5735. <div class="subsection-level-extent" id="Options-36">
  5736. <h4 class="subsection">9.16.1 Options</h4>
  5737. <dl class="table">
  5738. <dt><samp class="option">b</samp></dt>
  5739. <dd><p>Sets target video bitrate.
  5740. </p>
  5741. </dd>
  5742. <dt><samp class="option">bf</samp></dt>
  5743. <dt><samp class="option">g</samp></dt>
  5744. <dd><p>Set the GOP size.
  5745. </p>
  5746. </dd>
  5747. <dt><samp class="option">keyint_min</samp></dt>
  5748. <dd><p>Minimum GOP size.
  5749. </p>
  5750. </dd>
  5751. <dt><samp class="option">refs</samp></dt>
  5752. <dd><p>Number of reference frames each P-frame can use. The range is from <var class="var">1-16</var>.
  5753. </p>
  5754. </dd>
  5755. <dt><samp class="option">preset</samp></dt>
  5756. <dd><p>Set the x265 preset.
  5757. </p>
  5758. </dd>
  5759. <dt><samp class="option">tune</samp></dt>
  5760. <dd><p>Set the x265 tune parameter.
  5761. </p>
  5762. </dd>
  5763. <dt><samp class="option">profile</samp></dt>
  5764. <dd><p>Set profile restrictions.
  5765. </p>
  5766. </dd>
  5767. <dt><samp class="option">crf</samp></dt>
  5768. <dd><p>Set the quality for constant quality mode.
  5769. </p>
  5770. </dd>
  5771. <dt><samp class="option">qp</samp></dt>
  5772. <dd><p>Set constant quantization rate control method parameter.
  5773. </p>
  5774. </dd>
  5775. <dt><samp class="option">qmin</samp></dt>
  5776. <dd><p>Minimum quantizer scale.
  5777. </p>
  5778. </dd>
  5779. <dt><samp class="option">qmax</samp></dt>
  5780. <dd><p>Maximum quantizer scale.
  5781. </p>
  5782. </dd>
  5783. <dt><samp class="option">qdiff</samp></dt>
  5784. <dd><p>Maximum difference between quantizer scales.
  5785. </p>
  5786. </dd>
  5787. <dt><samp class="option">qblur</samp></dt>
  5788. <dd><p>Quantizer curve blur
  5789. </p>
  5790. </dd>
  5791. <dt><samp class="option">qcomp</samp></dt>
  5792. <dd><p>Quantizer curve compression factor
  5793. </p>
  5794. </dd>
  5795. <dt><samp class="option">i_qfactor</samp></dt>
  5796. <dt><samp class="option">b_qfactor</samp></dt>
  5797. <dt><samp class="option">forced-idr</samp></dt>
  5798. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5799. of I-frame. This option forces it to choose an IDR-frame.
  5800. </p>
  5801. </dd>
  5802. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5803. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5804. </p>
  5805. </dd>
  5806. <dt><samp class="option">x265-params</samp></dt>
  5807. <dd><p>Set x265 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5808. by &quot;:&quot;. See <code class="command">x265 --help</code> for a list of options.
  5809. </p>
  5810. <p>For example to specify libx265 encoding options with <samp class="option">-x265-params</samp>:
  5811. </p>
  5812. <div class="example">
  5813. <pre class="example-preformatted">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  5814. </pre></div>
  5815. </dd>
  5816. </dl>
  5817. </div>
  5818. </div>
  5819. <div class="section-level-extent" id="libxavs2">
  5820. <h3 class="section">9.17 libxavs2</h3>
  5821. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  5822. </p>
  5823. <p>This encoder requires the presence of the libxavs2 headers and library
  5824. during configuration. You need to explicitly configure the build with
  5825. <samp class="option">--enable-libxavs2</samp>.
  5826. </p>
  5827. <p>The following standard libavcodec options are used:
  5828. </p><ul class="itemize mark-bullet">
  5829. <li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  5830. </li><li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  5831. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  5832. </li></ul>
  5833. <p>The encoder also has its own specific options:
  5834. </p><ul class="mini-toc">
  5835. <li><a href="#Options-37" accesskey="1">Options</a></li>
  5836. </ul>
  5837. <div class="subsection-level-extent" id="Options-37">
  5838. <h4 class="subsection">9.17.1 Options</h4>
  5839. <dl class="table">
  5840. <dt><samp class="option">lcu_row_threads</samp></dt>
  5841. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  5842. </p>
  5843. </dd>
  5844. <dt><samp class="option">initial_qp</samp></dt>
  5845. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5846. used to set the initial qp for the first frame.
  5847. </p>
  5848. </dd>
  5849. <dt><samp class="option">qp</samp></dt>
  5850. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5851. used to set the qp value under constant-QP mode.
  5852. </p>
  5853. </dd>
  5854. <dt><samp class="option">max_qp</samp></dt>
  5855. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5856. </p>
  5857. </dd>
  5858. <dt><samp class="option">min_qp</samp></dt>
  5859. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5860. </p>
  5861. </dd>
  5862. <dt><samp class="option">speed_level</samp></dt>
  5863. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5864. </p>
  5865. </dd>
  5866. <dt><samp class="option">log_level</samp></dt>
  5867. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5868. 1: warning, 2: info, 3: debug.
  5869. </p>
  5870. </dd>
  5871. <dt><samp class="option">xavs2-params</samp></dt>
  5872. <dd><p>Set xavs2 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5873. by &quot;:&quot;.
  5874. </p>
  5875. <p>For example to specify libxavs2 encoding options with <samp class="option">-xavs2-params</samp>:
  5876. </p>
  5877. <div class="example">
  5878. <pre class="example-preformatted">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5879. </pre></div>
  5880. </dd>
  5881. </dl>
  5882. </div>
  5883. </div>
  5884. <div class="section-level-extent" id="libxeve">
  5885. <h3 class="section">9.18 libxeve</h3>
  5886. <p>eXtra-fast Essential Video Encoder (XEVE) MPEG-5 EVC encoder wrapper.
  5887. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5888. </p>
  5889. <p>This encoder requires the presence of the libxeve headers and library
  5890. during configuration. You need to explicitly configure the build with
  5891. <samp class="option">--enable-libxeve</samp>.
  5892. </p>
  5893. <div class="info">
  5894. <p>Many libxeve encoder options are mapped to FFmpeg global codec options,
  5895. while unique encoder options are provided through private options.
  5896. Additionally the xeve-params private options allows one to pass a list
  5897. of key=value tuples as accepted by the libxeve <code class="code">parse_xeve_params</code> function.
  5898. </p></div>
  5899. <p>The xeve project website is at <a class="url" href="https://github.com/mpeg5/xeve">https://github.com/mpeg5/xeve</a>.
  5900. </p>
  5901. <ul class="mini-toc">
  5902. <li><a href="#Options-38" accesskey="1">Options</a></li>
  5903. </ul>
  5904. <div class="subsection-level-extent" id="Options-38">
  5905. <h4 class="subsection">9.18.1 Options</h4>
  5906. <p>The following options are supported by the libxeve wrapper.
  5907. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5908. </p>
  5909. <div class="info">
  5910. <p>To reduce the duplication of documentation, only the private options
  5911. and some others requiring special attention are documented here. For
  5912. the documentation of the undocumented generic options, see
  5913. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5914. </p></div>
  5915. <div class="info">
  5916. <p>To get a more accurate and extensive documentation of the libxeve options,
  5917. invoke the command <code class="code">xeve_app --help</code> or consult the libxeve documentation.
  5918. </p></div>
  5919. <dl class="table">
  5920. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5921. <dd><p>Set target video bitrate in bits/s.
  5922. Note that FFmpeg&rsquo;s b option is expressed in bits/s, while xeve&rsquo;s bitrate is in kilobits/s.
  5923. </p>
  5924. </dd>
  5925. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5926. <dd><p>Set the maximum number of B frames (1,3,7,15).
  5927. </p>
  5928. </dd>
  5929. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5930. <dd><p>Set the GOP size (I-picture period).
  5931. </p>
  5932. </dd>
  5933. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5934. <dd><p>Set the xeve preset.
  5935. Set the encoder preset value to determine encoding speed [fast, medium, slow, placebo]
  5936. </p>
  5937. </dd>
  5938. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5939. <dd><p>Set the encoder tune parameter [psnr, zerolatency]
  5940. </p>
  5941. </dd>
  5942. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5943. <dd><p>Set the encoder profile [0: baselie; 1: main]
  5944. </p>
  5945. </dd>
  5946. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5947. <dd><p>Set the quality for constant quality mode.
  5948. Constant rate factor &lt;10..49&gt; [default: 32]
  5949. </p>
  5950. </dd>
  5951. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5952. <dd><p>Set constant quantization rate control method parameter.
  5953. Quantization parameter qp &lt;0..51&gt; [default: 32]
  5954. </p>
  5955. </dd>
  5956. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5957. <dd><p>Force to use a specific number of threads
  5958. </p>
  5959. </dd>
  5960. </dl>
  5961. </div>
  5962. </div>
  5963. <div class="section-level-extent" id="libxvid">
  5964. <h3 class="section">9.19 libxvid</h3>
  5965. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5966. </p>
  5967. <p>This encoder requires the presence of the libxvidcore headers and library
  5968. during configuration. You need to explicitly configure the build with
  5969. <code class="code">--enable-libxvid --enable-gpl</code>.
  5970. </p>
  5971. <p>The native <code class="code">mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5972. users can encode to this format without this library.
  5973. </p>
  5974. <ul class="mini-toc">
  5975. <li><a href="#Options-39" accesskey="1">Options</a></li>
  5976. </ul>
  5977. <div class="subsection-level-extent" id="Options-39">
  5978. <h4 class="subsection">9.19.1 Options</h4>
  5979. <p>The following options are supported by the libxvid wrapper. Some of
  5980. the following options are listed but are not documented, and
  5981. correspond to shared codec options. See <a class="ref" href="#codec_002doptions">the Codec
  5982. Options chapter</a> for their documentation. The other shared options
  5983. which are not listed have no effect for the libxvid encoder.
  5984. </p>
  5985. <dl class="table">
  5986. <dt><samp class="option">b</samp></dt>
  5987. <dt><samp class="option">g</samp></dt>
  5988. <dt><samp class="option">qmin</samp></dt>
  5989. <dt><samp class="option">qmax</samp></dt>
  5990. <dt><samp class="option">mpeg_quant</samp></dt>
  5991. <dt><samp class="option">threads</samp></dt>
  5992. <dt><samp class="option">bf</samp></dt>
  5993. <dt><samp class="option">b_qfactor</samp></dt>
  5994. <dt><samp class="option">b_qoffset</samp></dt>
  5995. <dt><samp class="option">flags</samp></dt>
  5996. <dd><p>Set specific encoding flags. Possible values:
  5997. </p>
  5998. <dl class="table">
  5999. <dt>&lsquo;<samp class="samp">mv4</samp>&rsquo;</dt>
  6000. <dd><p>Use four motion vector by macroblock.
  6001. </p>
  6002. </dd>
  6003. <dt>&lsquo;<samp class="samp">aic</samp>&rsquo;</dt>
  6004. <dd><p>Enable high quality AC prediction.
  6005. </p>
  6006. </dd>
  6007. <dt>&lsquo;<samp class="samp">gray</samp>&rsquo;</dt>
  6008. <dd><p>Only encode grayscale.
  6009. </p>
  6010. </dd>
  6011. <dt>&lsquo;<samp class="samp">gmc</samp>&rsquo;</dt>
  6012. <dd><p>Enable the use of global motion compensation (GMC).
  6013. </p>
  6014. </dd>
  6015. <dt>&lsquo;<samp class="samp">qpel</samp>&rsquo;</dt>
  6016. <dd><p>Enable quarter-pixel motion compensation.
  6017. </p>
  6018. </dd>
  6019. <dt>&lsquo;<samp class="samp">cgop</samp>&rsquo;</dt>
  6020. <dd><p>Enable closed GOP.
  6021. </p>
  6022. </dd>
  6023. <dt>&lsquo;<samp class="samp">global_header</samp>&rsquo;</dt>
  6024. <dd><p>Place global headers in extradata instead of every keyframe.
  6025. </p>
  6026. </dd>
  6027. </dl>
  6028. </dd>
  6029. <dt><samp class="option">trellis</samp></dt>
  6030. <dt><samp class="option">me_quality</samp></dt>
  6031. <dd><p>Set motion estimation quality level. Possible values in decreasing order of
  6032. speed and increasing order of quality:
  6033. </p>
  6034. <dl class="table">
  6035. <dt>&lsquo;<samp class="samp">0</samp>&rsquo;</dt>
  6036. <dd><p>Use no motion estimation (default).
  6037. </p>
  6038. </dd>
  6039. <dt>&lsquo;<samp class="samp">1, 2</samp>&rsquo;</dt>
  6040. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  6041. refinement for 16x16 blocks.
  6042. </p>
  6043. </dd>
  6044. <dt>&lsquo;<samp class="samp">3, 4</samp>&rsquo;</dt>
  6045. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  6046. search for 8x8 blocks and half-pixel refinement for 8x8 blocks, also
  6047. enable motion estimation on chroma planes for P and B-frames.
  6048. </p>
  6049. </dd>
  6050. <dt>&lsquo;<samp class="samp">5, 6</samp>&rsquo;</dt>
  6051. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  6052. blocks search.
  6053. </p></dd>
  6054. </dl>
  6055. </dd>
  6056. <dt><samp class="option">mbd</samp></dt>
  6057. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  6058. order of quality:
  6059. </p>
  6060. <dl class="table">
  6061. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6062. <dd><p>Use macroblock comparing function algorithm (default).
  6063. </p>
  6064. </dd>
  6065. <dt>&lsquo;<samp class="samp">bits</samp>&rsquo;</dt>
  6066. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  6067. 16x16 blocks.
  6068. </p>
  6069. </dd>
  6070. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  6071. <dd><p>Enable all of the things described above, plus rate distortion-based
  6072. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  6073. distortion-based search using square pattern.
  6074. </p></dd>
  6075. </dl>
  6076. </dd>
  6077. <dt><samp class="option">lumi_aq</samp></dt>
  6078. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  6079. (disabled).
  6080. </p>
  6081. </dd>
  6082. <dt><samp class="option">variance_aq</samp></dt>
  6083. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  6084. (disabled).
  6085. </p>
  6086. <p>When combined with <samp class="option">lumi_aq</samp>, the resulting quality will not
  6087. be better than any of the two specified individually. In other
  6088. words, the resulting quality will be the worse one of the two
  6089. effects.
  6090. </p>
  6091. </dd>
  6092. <dt><samp class="option">ssim</samp></dt>
  6093. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  6094. </p>
  6095. <dl class="table">
  6096. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6097. <dd><p>Disable displaying of SSIM information.
  6098. </p>
  6099. </dd>
  6100. <dt>&lsquo;<samp class="samp">avg</samp>&rsquo;</dt>
  6101. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  6102. showing the average SSIM is:
  6103. </p>
  6104. <div class="example">
  6105. <pre class="example-preformatted">Average SSIM: %f
  6106. </pre></div>
  6107. <p>For users who are not familiar with C, %f means a float number, or
  6108. a decimal (e.g. 0.939232).
  6109. </p>
  6110. </dd>
  6111. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  6112. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  6113. the end of encoding to stdout. The format of per-frame information
  6114. is:
  6115. </p>
  6116. <div class="example">
  6117. <pre class="example-preformatted"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  6118. </pre></div>
  6119. <p>For users who are not familiar with C, %1.3f means a float number
  6120. rounded to 3 digits after the dot (e.g. 0.932).
  6121. </p>
  6122. </dd>
  6123. </dl>
  6124. </dd>
  6125. <dt><samp class="option">ssim_acc</samp></dt>
  6126. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  6127. 0-4, while 0 gives the most accurate result and 4 computes the
  6128. fastest.
  6129. </p>
  6130. </dd>
  6131. </dl>
  6132. </div>
  6133. </div>
  6134. <div class="section-level-extent" id="MediaFoundation">
  6135. <h3 class="section">9.20 MediaFoundation</h3>
  6136. <p>This provides wrappers to encoders (both audio and video) in the
  6137. MediaFoundation framework. It can access both SW and HW encoders.
  6138. Video encoders can take input in either of nv12 or yuv420p form
  6139. (some encoders support both, some support only either - in practice,
  6140. nv12 is the safer choice, especially among HW encoders).
  6141. </p>
  6142. </div>
  6143. <div class="section-level-extent" id="Microsoft-RLE">
  6144. <h3 class="section">9.21 Microsoft RLE</h3>
  6145. <p>Microsoft RLE aka MSRLE encoder.
  6146. Only 8-bit palette mode supported.
  6147. Compatible with Windows 3.1 and Windows 95.
  6148. </p>
  6149. <ul class="mini-toc">
  6150. <li><a href="#Options-40" accesskey="1">Options</a></li>
  6151. </ul>
  6152. <div class="subsection-level-extent" id="Options-40">
  6153. <h4 class="subsection">9.21.1 Options</h4>
  6154. <dl class="table">
  6155. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  6156. <dd><p>Keyframe interval.
  6157. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  6158. </p></dd>
  6159. </dl>
  6160. </div>
  6161. </div>
  6162. <div class="section-level-extent" id="mpeg2">
  6163. <h3 class="section">9.22 mpeg2</h3>
  6164. <p>MPEG-2 video encoder.
  6165. </p>
  6166. <ul class="mini-toc">
  6167. <li><a href="#Options-41" accesskey="1">Options</a></li>
  6168. </ul>
  6169. <div class="subsection-level-extent" id="Options-41">
  6170. <h4 class="subsection">9.22.1 Options</h4>
  6171. <dl class="table">
  6172. <dt><samp class="option">profile</samp></dt>
  6173. <dd><p>Select the mpeg2 profile to encode:
  6174. </p>
  6175. <dl class="table">
  6176. <dt>&lsquo;<samp class="samp">422</samp>&rsquo;</dt>
  6177. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6178. <dt>&lsquo;<samp class="samp">ss</samp>&rsquo;</dt>
  6179. <dd><p>Spatially Scalable
  6180. </p></dd>
  6181. <dt>&lsquo;<samp class="samp">snr</samp>&rsquo;</dt>
  6182. <dd><p>SNR Scalable
  6183. </p></dd>
  6184. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6185. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6186. </dl>
  6187. </dd>
  6188. <dt><samp class="option">level</samp></dt>
  6189. <dd><p>Select the mpeg2 level to encode:
  6190. </p>
  6191. <dl class="table">
  6192. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6193. <dt>&lsquo;<samp class="samp">high1440</samp>&rsquo;</dt>
  6194. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6195. <dt>&lsquo;<samp class="samp">low</samp>&rsquo;</dt>
  6196. </dl>
  6197. </dd>
  6198. <dt><samp class="option">seq_disp_ext <var class="var">integer</var></samp></dt>
  6199. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  6200. output.
  6201. </p><dl class="table">
  6202. <dt><samp class="option">-1</samp></dt>
  6203. <dt><samp class="option">auto</samp></dt>
  6204. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  6205. the data to be written is different from the default or unspecified values.
  6206. </p></dd>
  6207. <dt><samp class="option">0</samp></dt>
  6208. <dt><samp class="option">never</samp></dt>
  6209. <dd><p>Never write it.
  6210. </p></dd>
  6211. <dt><samp class="option">1</samp></dt>
  6212. <dt><samp class="option">always</samp></dt>
  6213. <dd><p>Always write it.
  6214. </p></dd>
  6215. </dl>
  6216. </dd>
  6217. <dt><samp class="option">video_format <var class="var">integer</var></samp></dt>
  6218. <dd><p>Specifies the video_format written into the sequence display extension
  6219. indicating the source of the video pictures. The default is &lsquo;<samp class="samp">unspecified</samp>&rsquo;,
  6220. 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;.
  6221. For maximum compatibility, use &lsquo;<samp class="samp">component</samp>&rsquo;.
  6222. </p></dd>
  6223. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  6224. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  6225. Default is 1 (on).
  6226. </p></dd>
  6227. </dl>
  6228. </div>
  6229. </div>
  6230. <div class="section-level-extent" id="png">
  6231. <h3 class="section">9.23 png</h3>
  6232. <p>PNG image encoder.
  6233. </p>
  6234. <ul class="mini-toc">
  6235. <li><a href="#Private-options-1" accesskey="1">Private options</a></li>
  6236. </ul>
  6237. <div class="subsection-level-extent" id="Private-options-1">
  6238. <h4 class="subsection">9.23.1 Private options</h4>
  6239. <dl class="table">
  6240. <dt><samp class="option">dpi <var class="var">integer</var></samp></dt>
  6241. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  6242. </p></dd>
  6243. <dt><samp class="option">dpm <var class="var">integer</var></samp></dt>
  6244. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  6245. </p></dd>
  6246. </dl>
  6247. </div>
  6248. </div>
  6249. <div class="section-level-extent" id="ProRes">
  6250. <h3 class="section">9.24 ProRes</h3>
  6251. <p>Apple ProRes encoder.
  6252. </p>
  6253. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  6254. The used encoder can be chosen with the <code class="code">-vcodec</code> option.
  6255. </p>
  6256. <ul class="mini-toc">
  6257. <li><a href="#Private-Options-for-prores_002dks" accesskey="1">Private Options for prores-ks</a></li>
  6258. <li><a href="#Speed-considerations" accesskey="2">Speed considerations</a></li>
  6259. </ul>
  6260. <div class="subsection-level-extent" id="Private-Options-for-prores_002dks">
  6261. <h4 class="subsection">9.24.1 Private Options for prores-ks</h4>
  6262. <dl class="table">
  6263. <dt><samp class="option">profile <var class="var">integer</var></samp></dt>
  6264. <dd><p>Select the ProRes profile to encode
  6265. </p><dl class="table">
  6266. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6267. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6268. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6269. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6270. <dt>&lsquo;<samp class="samp">4444</samp>&rsquo;</dt>
  6271. <dt>&lsquo;<samp class="samp">4444xq</samp>&rsquo;</dt>
  6272. </dl>
  6273. </dd>
  6274. <dt><samp class="option">quant_mat <var class="var">integer</var></samp></dt>
  6275. <dd><p>Select quantization matrix.
  6276. </p><dl class="table">
  6277. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6278. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  6279. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6280. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6281. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6282. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6283. </dl>
  6284. <p>If set to <var class="var">auto</var>, the matrix matching the profile will be picked.
  6285. If not set, the matrix providing the highest quality, <var class="var">default</var>, will be
  6286. picked.
  6287. </p>
  6288. </dd>
  6289. <dt><samp class="option">bits_per_mb <var class="var">integer</var></samp></dt>
  6290. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  6291. between 200 and 2400 bits per macroblock, the maximum is 8000.
  6292. </p>
  6293. </dd>
  6294. <dt><samp class="option">mbs_per_slice <var class="var">integer</var></samp></dt>
  6295. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  6296. should be good in almost all situations.
  6297. </p>
  6298. </dd>
  6299. <dt><samp class="option">vendor <var class="var">string</var></samp></dt>
  6300. <dd><p>Override the 4-byte vendor ID.
  6301. A custom vendor ID like <var class="var">apl0</var> would claim the stream was produced by
  6302. the Apple encoder.
  6303. </p>
  6304. </dd>
  6305. <dt><samp class="option">alpha_bits <var class="var">integer</var></samp></dt>
  6306. <dd><p>Specify number of bits for alpha component.
  6307. Possible values are <var class="var">0</var>, <var class="var">8</var> and <var class="var">16</var>.
  6308. Use <var class="var">0</var> to disable alpha plane coding.
  6309. </p>
  6310. </dd>
  6311. </dl>
  6312. </div>
  6313. <div class="subsection-level-extent" id="Speed-considerations">
  6314. <h4 class="subsection">9.24.2 Speed considerations</h4>
  6315. <p>In the default mode of operation the encoder has to honor frame constraints
  6316. (i.e. not produce frames with size bigger than requested) while still making
  6317. output picture as good as possible.
  6318. A frame containing a lot of small details is harder to compress and the encoder
  6319. would spend more time searching for appropriate quantizers for each slice.
  6320. </p>
  6321. <p>Setting a higher <samp class="option">bits_per_mb</samp> limit will improve the speed.
  6322. </p>
  6323. <p>For the fastest encoding speed set the <samp class="option">qscale</samp> parameter (4 is the
  6324. recommended value) and do not set a size constraint.
  6325. </p>
  6326. </div>
  6327. </div>
  6328. <div class="section-level-extent" id="QSV-Encoders">
  6329. <h3 class="section">9.25 QSV Encoders</h3>
  6330. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG,
  6331. VP9, AV1)
  6332. </p>
  6333. <ul class="mini-toc">
  6334. <li><a href="#Ratecontrol-Method" accesskey="1">Ratecontrol Method</a></li>
  6335. <li><a href="#Global-Options-_002d_003e-MSDK-Options" accesskey="2">Global Options -&gt; MSDK Options</a></li>
  6336. <li><a href="#Common-Options-1" accesskey="3">Common Options</a></li>
  6337. <li><a href="#Runtime-Options" accesskey="4">Runtime Options</a></li>
  6338. <li><a href="#H264-options" accesskey="5">H264 options</a></li>
  6339. <li><a href="#HEVC-Options-1" accesskey="6">HEVC Options</a></li>
  6340. <li><a href="#MPEG2-Options" accesskey="7">MPEG2 Options</a></li>
  6341. <li><a href="#VP9-Options" accesskey="8">VP9 Options</a></li>
  6342. <li><a href="#AV1-Options" accesskey="9">AV1 Options</a></li>
  6343. </ul>
  6344. <div class="subsection-level-extent" id="Ratecontrol-Method">
  6345. <h4 class="subsection">9.25.1 Ratecontrol Method</h4>
  6346. <p>The ratecontrol method is selected as follows:
  6347. </p><ul class="itemize mark-bullet">
  6348. <li>When <samp class="option">global_quality</samp> is specified, a quality-based mode is used.
  6349. Specifically this means either
  6350. <ul class="itemize mark-minus">
  6351. <li><var class="var">CQP</var> - constant quantizer scale, when the <samp class="option">qscale</samp> codec flag is
  6352. also set (the <samp class="option">-qscale</samp> ffmpeg option).
  6353. </li><li><var class="var">LA_ICQ</var> - intelligent constant quality with lookahead, when the
  6354. <samp class="option">look_ahead</samp> option is also set.
  6355. </li><li><var class="var">ICQ</var> &ndash; intelligent constant quality otherwise. For the ICQ modes, global
  6356. quality range is 1 to 51, with 1 being the best quality.
  6357. </li></ul>
  6358. </li><li>Otherwise, a bitrate-based mode is used. For all of those, you should specify at
  6359. least the desired average bitrate with the <samp class="option">b</samp> option.
  6360. <ul class="itemize mark-minus">
  6361. <li><var class="var">LA</var> - VBR with lookahead, when the <samp class="option">look_ahead</samp> option is specified.
  6362. </li><li><var class="var">VCM</var> - video conferencing mode, when the <samp class="option">vcm</samp> option is set.
  6363. </li><li><var class="var">CBR</var> - constant bitrate, when <samp class="option">maxrate</samp> is specified and equal to
  6364. the average bitrate.
  6365. </li><li><var class="var">VBR</var> - variable bitrate, when <samp class="option">maxrate</samp> is specified, but is higher
  6366. than the average bitrate.
  6367. </li><li><var class="var">AVBR</var> - average VBR mode, when <samp class="option">maxrate</samp> is not specified, both
  6368. <samp class="option">avbr_accuracy</samp> and <samp class="option">avbr_convergence</samp> are set to non-zero. This
  6369. mode is available for H264 and HEVC on Windows.
  6370. </li></ul>
  6371. </li></ul>
  6372. <p>Note that depending on your system, a different mode than the one you specified
  6373. may be selected by the encoder. Set the verbosity level to <var class="var">verbose</var> or
  6374. higher to see the actual settings used by the QSV runtime.
  6375. </p>
  6376. </div>
  6377. <div class="subsection-level-extent" id="Global-Options-_002d_003e-MSDK-Options">
  6378. <h4 class="subsection">9.25.2 Global Options -&gt; MSDK Options</h4>
  6379. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  6380. </p>
  6381. <ul class="itemize mark-bullet">
  6382. <li><samp class="option">g/gop_size</samp> -&gt; <samp class="option">GopPicSize</samp>
  6383. </li><li><samp class="option">bf/max_b_frames</samp>+1 -&gt; <samp class="option">GopRefDist</samp>
  6384. </li><li><samp class="option">rc_init_occupancy/rc_initial_buffer_occupancy</samp> -&gt;
  6385. <samp class="option">InitialDelayInKB</samp>
  6386. </li><li><samp class="option">slices</samp> -&gt; <samp class="option">NumSlice</samp>
  6387. </li><li><samp class="option">refs</samp> -&gt; <samp class="option">NumRefFrame</samp>
  6388. </li><li><samp class="option">b_strategy/b_frame_strategy</samp> -&gt; <samp class="option">BRefType</samp>
  6389. </li><li><samp class="option">cgop/CLOSED_GOP</samp> codec flag -&gt; <samp class="option">GopOptFlag</samp>
  6390. </li><li>For the <var class="var">CQP</var> mode, the <samp class="option">i_qfactor/i_qoffset</samp> and
  6391. <samp class="option">b_qfactor/b_qoffset</samp> set the difference between <var class="var">QPP</var> and <var class="var">QPI</var>,
  6392. and <var class="var">QPP</var> and <var class="var">QPB</var> respectively.
  6393. </li><li>Setting the <samp class="option">coder</samp> option to the value <var class="var">vlc</var> will make the H.264
  6394. encoder use CAVLC instead of CABAC.
  6395. </li></ul>
  6396. </div>
  6397. <div class="subsection-level-extent" id="Common-Options-1">
  6398. <h4 class="subsection">9.25.3 Common Options</h4>
  6399. <p>Following options are used by all qsv encoders.
  6400. </p>
  6401. <dl class="table">
  6402. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  6403. <dd><p>Specifies how many asynchronous operations an application performs
  6404. before the application explicitly synchronizes the result. If zero,
  6405. the value is not specified.
  6406. </p>
  6407. </dd>
  6408. <dt><samp class="option"><var class="var">preset</var></samp></dt>
  6409. <dd><p>This option itemizes a range of choices from veryfast (best speed) to veryslow
  6410. (best quality).
  6411. </p><dl class="table">
  6412. <dt>&lsquo;<samp class="samp">veryfast</samp>&rsquo;</dt>
  6413. <dt>&lsquo;<samp class="samp">faster</samp>&rsquo;</dt>
  6414. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  6415. <dt>&lsquo;<samp class="samp">medium</samp>&rsquo;</dt>
  6416. <dt>&lsquo;<samp class="samp">slow</samp>&rsquo;</dt>
  6417. <dt>&lsquo;<samp class="samp">slower</samp>&rsquo;</dt>
  6418. <dt>&lsquo;<samp class="samp">veryslow</samp>&rsquo;</dt>
  6419. </dl>
  6420. </dd>
  6421. <dt><samp class="option"><var class="var">forced_idr</var></samp></dt>
  6422. <dd><p>Forcing I frames as IDR frames.
  6423. </p>
  6424. </dd>
  6425. <dt><samp class="option"><var class="var">low_power</var></samp></dt>
  6426. <dd><p>For encoders set this flag to ON to reduce power consumption and GPU usage.
  6427. </p></dd>
  6428. </dl>
  6429. </div>
  6430. <div class="subsection-level-extent" id="Runtime-Options">
  6431. <h4 class="subsection">9.25.4 Runtime Options</h4>
  6432. <p>Following options can be used durning qsv encoding.
  6433. </p>
  6434. <dl class="table">
  6435. <dt><samp class="option"><var class="var">global_quality</var></samp></dt>
  6436. <dt><samp class="option"><var class="var">i_quant_factor</var></samp></dt>
  6437. <dt><samp class="option"><var class="var">i_quant_offset</var></samp></dt>
  6438. <dt><samp class="option"><var class="var">b_quant_factor</var></samp></dt>
  6439. <dt><samp class="option"><var class="var">b_quant_offset</var></samp></dt>
  6440. <dd><p>Supported in h264_qsv and hevc_qsv.
  6441. Change these value to reset qsv codec&rsquo;s qp configuration.
  6442. </p>
  6443. </dd>
  6444. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6445. <dd><p>Supported in h264_qsv and hevc_qsv.
  6446. Change this value to reset qsv codec&rsquo;s MaxFrameSize configuration.
  6447. </p>
  6448. </dd>
  6449. <dt><samp class="option"><var class="var">gop_size</var></samp></dt>
  6450. <dd><p>Change this value to reset qsv codec&rsquo;s gop configuration.
  6451. </p>
  6452. </dd>
  6453. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6454. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6455. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6456. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6457. <dd><p>Supported in h264_qsv and hevc_qsv.
  6458. Change these value to reset qsv codec&rsquo;s Intra Refresh configuration.
  6459. </p>
  6460. </dd>
  6461. <dt><samp class="option"><var class="var">qmax</var></samp></dt>
  6462. <dt><samp class="option"><var class="var">qmin</var></samp></dt>
  6463. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6464. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6465. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6466. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6467. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6468. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6469. <dd><p>Supported in h264_qsv.
  6470. Change these value to reset qsv codec&rsquo;s max/min qp configuration.
  6471. </p>
  6472. </dd>
  6473. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6474. <dd><p>Supported in h264_qsv, hevc_qsv and av1_qsv.
  6475. Change this value to reset qsv codec&rsquo;s low_delay_brc configuration.
  6476. </p>
  6477. </dd>
  6478. <dt><samp class="option"><var class="var">framerate</var></samp></dt>
  6479. <dd><p>Change this value to reset qsv codec&rsquo;s framerate configuration.
  6480. </p>
  6481. </dd>
  6482. <dt><samp class="option"><var class="var">bit_rate</var></samp></dt>
  6483. <dt><samp class="option"><var class="var">rc_buffer_size</var></samp></dt>
  6484. <dt><samp class="option"><var class="var">rc_initial_buffer_occupancy</var></samp></dt>
  6485. <dt><samp class="option"><var class="var">rc_max_rate</var></samp></dt>
  6486. <dd><p>Change these value to reset qsv codec&rsquo;s bitrate control configuration.
  6487. </p>
  6488. </dd>
  6489. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6490. <dd><p>Supported in h264_qsv and hevc_qsv.
  6491. Change this value to reset qsv codec&rsquo;s pic_timing_sei configuration.
  6492. </p></dd>
  6493. </dl>
  6494. </div>
  6495. <div class="subsection-level-extent" id="H264-options">
  6496. <h4 class="subsection">9.25.5 H264 options</h4>
  6497. <p>These options are used by h264_qsv
  6498. </p>
  6499. <dl class="table">
  6500. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6501. <dd><p>Extended bitrate control.
  6502. </p>
  6503. </dd>
  6504. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6505. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6506. intra refresh cycle.
  6507. </p>
  6508. </dd>
  6509. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6510. <dd><p>Enable rate distortion optimization.
  6511. </p>
  6512. </dd>
  6513. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6514. <dd><p>Maximum encoded frame size in bytes.
  6515. </p>
  6516. </dd>
  6517. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6518. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6519. than zero, then for I frames the value set by max_frame_size is ignored.
  6520. </p>
  6521. </dd>
  6522. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6523. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6524. than zero, then for P frames the value set by max_frame_size is ignored.
  6525. </p>
  6526. </dd>
  6527. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6528. <dd><p>Maximum encoded slice size in bytes.
  6529. </p>
  6530. </dd>
  6531. <dt><samp class="option"><var class="var">bitrate_limit</var></samp></dt>
  6532. <dd><p>Toggle bitrate limitations.
  6533. Modifies bitrate to be in the range imposed by the QSV encoder. Setting this
  6534. flag off may lead to violation of HRD conformance. Mind that specifying bitrate
  6535. below the QSV encoder range might significantly affect quality. If on this
  6536. option takes effect in non CQP modes: if bitrate is not in the range imposed
  6537. by the QSV encoder, it will be changed to be in the range.
  6538. </p>
  6539. </dd>
  6540. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6541. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6542. improves subjective visual quality. Enabling this flag may have negative impact
  6543. on performance and objective visual quality metric.
  6544. </p>
  6545. </dd>
  6546. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6547. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6548. more accurate bitrate control to minimize the variance of bitstream size frame
  6549. by frame. Value: -1-default 0-off 1-on
  6550. </p>
  6551. </dd>
  6552. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6553. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6554. to allow changing of frame type from P and B to I.
  6555. </p>
  6556. </dd>
  6557. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6558. <dd><p>This flag controls changing of frame type from B to P.
  6559. </p>
  6560. </dd>
  6561. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6562. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6563. </p>
  6564. </dd>
  6565. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6566. <dd><p>This option controls usage of B frames as reference.
  6567. </p>
  6568. </dd>
  6569. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6570. <dd><p>This option disable deblocking. It has value in range 0~2.
  6571. </p>
  6572. </dd>
  6573. <dt><samp class="option"><var class="var">cavlc</var></samp></dt>
  6574. <dd><p>If set, CAVLC is used; if unset, CABAC is used for encoding.
  6575. </p>
  6576. </dd>
  6577. <dt><samp class="option"><var class="var">vcm</var></samp></dt>
  6578. <dd><p>Video conferencing mode, please see ratecontrol method.
  6579. </p>
  6580. </dd>
  6581. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6582. <dd><p>Distance (in I-frames) between IDR frames.
  6583. </p>
  6584. </dd>
  6585. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6586. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6587. </p>
  6588. </dd>
  6589. <dt><samp class="option"><var class="var">single_sei_nal_unit</var></samp></dt>
  6590. <dd><p>Put all the SEI messages into one NALU.
  6591. </p>
  6592. </dd>
  6593. <dt><samp class="option"><var class="var">max_dec_frame_buffering</var></samp></dt>
  6594. <dd><p>Maximum number of frames buffered in the DPB.
  6595. </p>
  6596. </dd>
  6597. <dt><samp class="option"><var class="var">look_ahead</var></samp></dt>
  6598. <dd><p>Use VBR algorithm with look ahead.
  6599. </p>
  6600. </dd>
  6601. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6602. <dd><p>Depth of look ahead in number frames.
  6603. </p>
  6604. </dd>
  6605. <dt><samp class="option"><var class="var">look_ahead_downsampling</var></samp></dt>
  6606. <dd><p>Downscaling factor for the frames saved for the lookahead analysis.
  6607. </p><dl class="table">
  6608. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6609. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6610. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6611. <dt>&lsquo;<samp class="samp">2x</samp>&rsquo;</dt>
  6612. <dt>&lsquo;<samp class="samp">4x</samp>&rsquo;</dt>
  6613. </dl>
  6614. </dd>
  6615. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6616. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6617. error resilience without significant impact on encoded bitstream size caused by
  6618. I frames. The SDK encoder achieves this by encoding part of each frame in
  6619. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  6620. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  6621. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  6622. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  6623. intra refresh, B frame should be set to 0.
  6624. </p>
  6625. </dd>
  6626. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6627. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6628. invalid values.
  6629. </p>
  6630. </dd>
  6631. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6632. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6633. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6634. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6635. </p>
  6636. </dd>
  6637. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6638. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6639. </p>
  6640. </dd>
  6641. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6642. <dd><dl class="table">
  6643. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6644. <dt>&lsquo;<samp class="samp">baseline</samp>&rsquo;</dt>
  6645. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6646. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6647. </dl>
  6648. </dd>
  6649. <dt><samp class="option"><var class="var">a53cc</var></samp></dt>
  6650. <dd><p>Use A53 Closed Captions (if available).
  6651. </p>
  6652. </dd>
  6653. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  6654. <dd><p>Insert the Access Unit Delimiter NAL.
  6655. </p>
  6656. </dd>
  6657. <dt><samp class="option"><var class="var">mfmode</var></samp></dt>
  6658. <dd><p>Multi-Frame Mode.
  6659. </p><dl class="table">
  6660. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6661. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6662. </dl>
  6663. </dd>
  6664. <dt><samp class="option"><var class="var">repeat_pps</var></samp></dt>
  6665. <dd><p>Repeat pps for every frame.
  6666. </p>
  6667. </dd>
  6668. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6669. <dd><p>Maximum video quantizer scale for I frame.
  6670. </p>
  6671. </dd>
  6672. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6673. <dd><p>Minimum video quantizer scale for I frame.
  6674. </p>
  6675. </dd>
  6676. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6677. <dd><p>Maximum video quantizer scale for P frame.
  6678. </p>
  6679. </dd>
  6680. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6681. <dd><p>Minimum video quantizer scale for P frame.
  6682. </p>
  6683. </dd>
  6684. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6685. <dd><p>Maximum video quantizer scale for B frame.
  6686. </p>
  6687. </dd>
  6688. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6689. <dd><p>Minimum video quantizer scale for B frame.
  6690. </p>
  6691. </dd>
  6692. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  6693. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6694. </p><dl class="table">
  6695. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6696. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  6697. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  6698. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6699. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  6700. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  6701. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  6702. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  6703. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  6704. </dl>
  6705. </dd>
  6706. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  6707. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6708. </p>
  6709. </dd>
  6710. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  6711. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6712. </p>
  6713. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  6714. average variable bitrate control (AVBR) algorithm.
  6715. The algorithm focuses on overall encoding quality while meeting the specified
  6716. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  6717. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  6718. instant bitrate is not capped or padded.
  6719. </p>
  6720. </dd>
  6721. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  6722. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6723. defines the usage of this metadata.
  6724. </p><dl class="table">
  6725. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  6726. <dd><p>Frame skipping is disabled.
  6727. </p></dd>
  6728. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  6729. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6730. skipped.
  6731. </p></dd>
  6732. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  6733. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  6734. frames are still used in brc. For example, gop still include skipped frames, and
  6735. the frames after skipped frames will be larger in size.
  6736. </p></dd>
  6737. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  6738. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  6739. frame.
  6740. </p></dd>
  6741. </dl>
  6742. </dd>
  6743. </dl>
  6744. </div>
  6745. <div class="subsection-level-extent" id="HEVC-Options-1">
  6746. <h4 class="subsection">9.25.6 HEVC Options</h4>
  6747. <p>These options are used by hevc_qsv
  6748. </p>
  6749. <dl class="table">
  6750. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6751. <dd><p>Extended bitrate control.
  6752. </p>
  6753. </dd>
  6754. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6755. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6756. intra refresh cycle.
  6757. </p>
  6758. </dd>
  6759. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6760. <dd><p>Enable rate distortion optimization.
  6761. </p>
  6762. </dd>
  6763. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6764. <dd><p>Maximum encoded frame size in bytes.
  6765. </p>
  6766. </dd>
  6767. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6768. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6769. than zero, then for I frames the value set by max_frame_size is ignored.
  6770. </p>
  6771. </dd>
  6772. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6773. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6774. than zero, then for P frames the value set by max_frame_size is ignored.
  6775. </p>
  6776. </dd>
  6777. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6778. <dd><p>Maximum encoded slice size in bytes.
  6779. </p>
  6780. </dd>
  6781. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6782. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6783. improves subjective visual quality. Enabling this flag may have negative impact
  6784. on performance and objective visual quality metric.
  6785. </p>
  6786. </dd>
  6787. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6788. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6789. more accurate bitrate control to minimize the variance of bitstream size frame
  6790. by frame. Value: -1-default 0-off 1-on
  6791. </p>
  6792. </dd>
  6793. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6794. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6795. to allow changing of frame type from P and B to I.
  6796. </p>
  6797. </dd>
  6798. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6799. <dd><p>This flag controls changing of frame type from B to P.
  6800. </p>
  6801. </dd>
  6802. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6803. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6804. </p>
  6805. </dd>
  6806. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6807. <dd><p>This option controls usage of B frames as reference.
  6808. </p>
  6809. </dd>
  6810. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6811. <dd><p>This option disable deblocking. It has value in range 0~2.
  6812. </p>
  6813. </dd>
  6814. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6815. <dd><p>Distance (in I-frames) between IDR frames.
  6816. </p><dl class="table">
  6817. <dt>&lsquo;<samp class="samp">begin_only</samp>&rsquo;</dt>
  6818. <dd><p>Output an IDR-frame only at the beginning of the stream.
  6819. </p></dd>
  6820. </dl>
  6821. </dd>
  6822. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  6823. <dd><p>A user plugin to load in an internal session.
  6824. </p><dl class="table">
  6825. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  6826. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  6827. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  6828. </dl>
  6829. </dd>
  6830. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  6831. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in
  6832. an internal session.
  6833. </p>
  6834. </dd>
  6835. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6836. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  6837. </p>
  6838. </dd>
  6839. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6840. <dd><p>Set the encoding profile (scc requires libmfx &gt;= 1.32).
  6841. </p>
  6842. <dl class="table">
  6843. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6844. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6845. <dt>&lsquo;<samp class="samp">main10</samp>&rsquo;</dt>
  6846. <dt>&lsquo;<samp class="samp">mainsp</samp>&rsquo;</dt>
  6847. <dt>&lsquo;<samp class="samp">rext</samp>&rsquo;</dt>
  6848. <dt>&lsquo;<samp class="samp">scc</samp>&rsquo;</dt>
  6849. </dl>
  6850. </dd>
  6851. <dt><samp class="option"><var class="var">tier</var></samp></dt>
  6852. <dd><p>Set the encoding tier (only level &gt;= 4 can support high tier).
  6853. This option only takes effect when the level option is specified.
  6854. </p>
  6855. <dl class="table">
  6856. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6857. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6858. </dl>
  6859. </dd>
  6860. <dt><samp class="option"><var class="var">gpb</var></samp></dt>
  6861. <dd><p>1: GPB (generalized P/B frame)
  6862. </p>
  6863. <p>0: regular P frame.
  6864. </p>
  6865. </dd>
  6866. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  6867. <dd><p>Number of columns for tiled encoding.
  6868. </p>
  6869. </dd>
  6870. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  6871. <dd><p>Number of rows for tiled encoding.
  6872. </p>
  6873. </dd>
  6874. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  6875. <dd><p>Insert the Access Unit Delimiter NAL.
  6876. </p>
  6877. </dd>
  6878. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6879. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6880. </p>
  6881. </dd>
  6882. <dt><samp class="option"><var class="var">transform_skip</var></samp></dt>
  6883. <dd><p>Turn this option ON to enable transformskip. It is supported on platform equal
  6884. or newer than ICL.
  6885. </p>
  6886. </dd>
  6887. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6888. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6889. error resilience without significant impact on encoded bitstream size caused by
  6890. I frames. The SDK encoder achieves this by encoding part of each frame in
  6891. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  6892. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  6893. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  6894. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  6895. intra refresh, B frame should be set to 0.
  6896. </p>
  6897. </dd>
  6898. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6899. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6900. invalid values.
  6901. </p>
  6902. </dd>
  6903. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6904. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6905. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6906. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6907. </p>
  6908. </dd>
  6909. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6910. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6911. </p>
  6912. </dd>
  6913. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6914. <dd><p>Maximum video quantizer scale for I frame.
  6915. </p>
  6916. </dd>
  6917. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6918. <dd><p>Minimum video quantizer scale for I frame.
  6919. </p>
  6920. </dd>
  6921. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6922. <dd><p>Maximum video quantizer scale for P frame.
  6923. </p>
  6924. </dd>
  6925. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6926. <dd><p>Minimum video quantizer scale for P frame.
  6927. </p>
  6928. </dd>
  6929. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6930. <dd><p>Maximum video quantizer scale for B frame.
  6931. </p>
  6932. </dd>
  6933. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6934. <dd><p>Minimum video quantizer scale for B frame.
  6935. </p>
  6936. </dd>
  6937. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  6938. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6939. </p><dl class="table">
  6940. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6941. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  6942. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  6943. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6944. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  6945. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  6946. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  6947. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  6948. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  6949. </dl>
  6950. </dd>
  6951. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  6952. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6953. </p>
  6954. </dd>
  6955. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  6956. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6957. </p>
  6958. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  6959. average variable bitrate control (AVBR) algorithm.
  6960. The algorithm focuses on overall encoding quality while meeting the specified
  6961. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  6962. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  6963. instant bitrate is not capped or padded.
  6964. </p>
  6965. </dd>
  6966. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  6967. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6968. defines the usage of this metadata.
  6969. </p><dl class="table">
  6970. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  6971. <dd><p>Frame skipping is disabled.
  6972. </p></dd>
  6973. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  6974. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6975. skipped.
  6976. </p></dd>
  6977. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  6978. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  6979. frames are still used in brc. For example, gop still include skipped frames, and
  6980. the frames after skipped frames will be larger in size.
  6981. </p></dd>
  6982. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  6983. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  6984. frame.
  6985. </p></dd>
  6986. </dl>
  6987. </dd>
  6988. </dl>
  6989. </div>
  6990. <div class="subsection-level-extent" id="MPEG2-Options">
  6991. <h4 class="subsection">9.25.7 MPEG2 Options</h4>
  6992. <p>These options are used by mpeg2_qsv
  6993. </p><dl class="table">
  6994. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6995. <dd><dl class="table">
  6996. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6997. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6998. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6999. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  7000. </dl>
  7001. </dd>
  7002. </dl>
  7003. </div>
  7004. <div class="subsection-level-extent" id="VP9-Options">
  7005. <h4 class="subsection">9.25.8 VP9 Options</h4>
  7006. <p>These options are used by vp9_qsv
  7007. </p><dl class="table">
  7008. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7009. <dd><dl class="table">
  7010. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7011. <dt>&lsquo;<samp class="samp">profile0</samp>&rsquo;</dt>
  7012. <dt>&lsquo;<samp class="samp">profile1</samp>&rsquo;</dt>
  7013. <dt>&lsquo;<samp class="samp">profile2</samp>&rsquo;</dt>
  7014. <dt>&lsquo;<samp class="samp">profile3</samp>&rsquo;</dt>
  7015. </dl>
  7016. </dd>
  7017. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7018. <dd><p>Number of columns for tiled encoding (requires libmfx &gt;= 1.29).
  7019. </p>
  7020. </dd>
  7021. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7022. <dd><p>Number of rows for tiled encoding (requires libmfx &gt;= 1.29).
  7023. </p></dd>
  7024. </dl>
  7025. </div>
  7026. <div class="subsection-level-extent" id="AV1-Options">
  7027. <h4 class="subsection">9.25.9 AV1 Options</h4>
  7028. <p>These options are used by av1_qsv (requires libvpl).
  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">main</samp>&rsquo;</dt>
  7034. </dl>
  7035. </dd>
  7036. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7037. <dd><p>Number of columns for tiled encoding.
  7038. </p>
  7039. </dd>
  7040. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7041. <dd><p>Number of rows for tiled encoding.
  7042. </p>
  7043. </dd>
  7044. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  7045. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  7046. to allow changing of frame type from P and B to I.
  7047. </p>
  7048. </dd>
  7049. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  7050. <dd><p>This flag controls changing of frame type from B to P.
  7051. </p>
  7052. </dd>
  7053. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  7054. <dd><p>This option controls usage of B frames as reference.
  7055. </p>
  7056. </dd>
  7057. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  7058. <dd><p>Extended bitrate control.
  7059. </p>
  7060. </dd>
  7061. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  7062. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  7063. </p>
  7064. </dd>
  7065. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  7066. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  7067. more accurate bitrate control to minimize the variance of bitstream size frame
  7068. by frame. Value: -1-default 0-off 1-on
  7069. </p>
  7070. </dd>
  7071. <dt><samp class="option">max_frame_size</samp></dt>
  7072. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7073. the limitation, encoder will adjust the QP value to control the frame size.
  7074. Invalid in CQP rate control mode.
  7075. </p></dd>
  7076. </dl>
  7077. </div>
  7078. </div>
  7079. <div class="section-level-extent" id="snow">
  7080. <h3 class="section">9.26 snow</h3>
  7081. <ul class="mini-toc">
  7082. <li><a href="#Options-42" accesskey="1">Options</a></li>
  7083. </ul>
  7084. <div class="subsection-level-extent" id="Options-42">
  7085. <h4 class="subsection">9.26.1 Options</h4>
  7086. <dl class="table">
  7087. <dt><samp class="option">iterative_dia_size</samp></dt>
  7088. <dd><p>dia size for the iterative motion estimation
  7089. </p></dd>
  7090. </dl>
  7091. </div>
  7092. </div>
  7093. <div class="section-level-extent" id="VAAPI-encoders">
  7094. <h3 class="section">9.27 VAAPI encoders</h3>
  7095. <p>Wrappers for hardware encoders accessible via VAAPI.
  7096. </p>
  7097. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  7098. in software frames, use the <samp class="option">hwupload</samp> filter to upload them to the GPU.
  7099. </p>
  7100. <p>The following standard libavcodec options are used:
  7101. </p><ul class="itemize mark-bullet">
  7102. <li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  7103. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  7104. </li><li><samp class="option">profile</samp>
  7105. <p>If not set, this will be determined automatically from the format of the input
  7106. frames and the profiles supported by the driver.
  7107. </p></li><li><samp class="option">level</samp>
  7108. </li><li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  7109. </li><li><samp class="option">maxrate</samp> / <samp class="option">rc_max_rate</samp>
  7110. </li><li><samp class="option">bufsize</samp> / <samp class="option">rc_buffer_size</samp>
  7111. </li><li><samp class="option">rc_init_occupancy</samp> / <samp class="option">rc_initial_buffer_occupancy</samp>
  7112. </li><li><samp class="option">compression_level</samp>
  7113. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  7114. </p></li><li><samp class="option">q</samp> / <samp class="option">global_quality</samp>
  7115. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  7116. </p></li><li><samp class="option">qmin</samp>
  7117. </li><li><samp class="option">qmax</samp>
  7118. </li><li><samp class="option">i_qfactor</samp> / <samp class="option">i_quant_factor</samp>
  7119. </li><li><samp class="option">i_qoffset</samp> / <samp class="option">i_quant_offset</samp>
  7120. </li><li><samp class="option">b_qfactor</samp> / <samp class="option">b_quant_factor</samp>
  7121. </li><li><samp class="option">b_qoffset</samp> / <samp class="option">b_quant_offset</samp>
  7122. </li><li><samp class="option">slices</samp>
  7123. </li></ul>
  7124. <p>All encoders support the following options:
  7125. </p><dl class="table">
  7126. <dt><samp class="option">low_power</samp></dt>
  7127. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  7128. less power than the default encoder; setting this option will attempt to use
  7129. that encoder. Note that it may support a reduced feature set, so some other
  7130. options may not be available in this mode.
  7131. </p>
  7132. </dd>
  7133. <dt><samp class="option">idr_interval</samp></dt>
  7134. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  7135. open-GOP mode. The intra frames are still IRAPs, but will not include global
  7136. headers and may have non-decodable leading pictures.
  7137. </p>
  7138. </dd>
  7139. <dt><samp class="option">b_depth</samp></dt>
  7140. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  7141. will refer only to P- or I-frames. When set to greater values multiple layers
  7142. of B-frames will be present, frames in each layer only referring to frames in
  7143. higher layers.
  7144. </p>
  7145. </dd>
  7146. <dt><samp class="option">async_depth</samp></dt>
  7147. <dd><p>Maximum processing parallelism. Increase this to improve single channel
  7148. performance. This option doesn&rsquo;t work if driver doesn&rsquo;t implement vaSyncBuffer
  7149. function. Please make sure there are enough hw_frames allocated if a large
  7150. number of async_depth is used.
  7151. </p>
  7152. </dd>
  7153. <dt><samp class="option">max_frame_size</samp></dt>
  7154. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7155. the limitation, encoder will adjust the QP value to control the frame size.
  7156. Invalid in CQP rate control mode.
  7157. </p>
  7158. </dd>
  7159. <dt><samp class="option">rc_mode</samp></dt>
  7160. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  7161. modes.
  7162. </p>
  7163. <p>Possible modes:
  7164. </p><dl class="table">
  7165. <dt><samp class="option">auto</samp></dt>
  7166. <dd><p>Choose the mode automatically based on driver support and the other options.
  7167. This is the default.
  7168. </p></dd>
  7169. <dt><samp class="option">CQP</samp></dt>
  7170. <dd><p>Constant-quality.
  7171. </p></dd>
  7172. <dt><samp class="option">CBR</samp></dt>
  7173. <dd><p>Constant-bitrate.
  7174. </p></dd>
  7175. <dt><samp class="option">VBR</samp></dt>
  7176. <dd><p>Variable-bitrate.
  7177. </p></dd>
  7178. <dt><samp class="option">ICQ</samp></dt>
  7179. <dd><p>Intelligent constant-quality.
  7180. </p></dd>
  7181. <dt><samp class="option">QVBR</samp></dt>
  7182. <dd><p>Quality-defined variable-bitrate.
  7183. </p></dd>
  7184. <dt><samp class="option">AVBR</samp></dt>
  7185. <dd><p>Average variable bitrate.
  7186. </p></dd>
  7187. </dl>
  7188. </dd>
  7189. </dl>
  7190. <p>Each encoder also has its own specific options:
  7191. </p><dl class="table">
  7192. <dt><samp class="option">av1_vaapi</samp></dt>
  7193. <dd><p><samp class="option">profile</samp> sets the value of <em class="emph">seq_profile</em>.
  7194. <samp class="option">tier</samp> sets the value of <em class="emph">seq_tier</em>.
  7195. <samp class="option">level</samp> sets the value of <em class="emph">seq_level_idx</em>.
  7196. </p>
  7197. <dl class="table">
  7198. <dt><samp class="option">tiles</samp></dt>
  7199. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7200. (default is auto, which means use minimal tile column/row number).
  7201. </p></dd>
  7202. <dt><samp class="option">tile_groups</samp></dt>
  7203. <dd><p>Set tile groups number. All the tiles will be distributed as evenly as possible to
  7204. each tile group. (default is 1).
  7205. </p></dd>
  7206. </dl>
  7207. </dd>
  7208. <dt><samp class="option">h264_vaapi</samp></dt>
  7209. <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.
  7210. <samp class="option">level</samp> sets the value of <em class="emph">level_idc</em>.
  7211. </p>
  7212. <dl class="table">
  7213. <dt><samp class="option">coder</samp></dt>
  7214. <dd><p>Set entropy encoder (default is <em class="emph">cabac</em>). Possible values:
  7215. </p>
  7216. <dl class="table">
  7217. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  7218. <dt>&lsquo;<samp class="samp">cabac</samp>&rsquo;</dt>
  7219. <dd><p>Use CABAC.
  7220. </p>
  7221. </dd>
  7222. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  7223. <dt>&lsquo;<samp class="samp">cavlc</samp>&rsquo;</dt>
  7224. <dd><p>Use CAVLC.
  7225. </p></dd>
  7226. </dl>
  7227. </dd>
  7228. <dt><samp class="option">aud</samp></dt>
  7229. <dd><p>Include access unit delimiters in the stream (not included by default).
  7230. </p>
  7231. </dd>
  7232. <dt><samp class="option">sei</samp></dt>
  7233. <dd><p>Set SEI message types to include.
  7234. Some combination of the following values:
  7235. </p><dl class="table">
  7236. <dt>&lsquo;<samp class="samp">identifier</samp>&rsquo;</dt>
  7237. <dd><p>Include a <em class="emph">user_data_unregistered</em> message containing information about
  7238. the encoder.
  7239. </p></dd>
  7240. <dt>&lsquo;<samp class="samp">timing</samp>&rsquo;</dt>
  7241. <dd><p>Include picture timing parameters (<em class="emph">buffering_period</em> and
  7242. <em class="emph">pic_timing</em> messages).
  7243. </p></dd>
  7244. <dt>&lsquo;<samp class="samp">recovery_point</samp>&rsquo;</dt>
  7245. <dd><p>Include recovery points where appropriate (<em class="emph">recovery_point</em> messages).
  7246. </p></dd>
  7247. </dl>
  7248. </dd>
  7249. </dl>
  7250. </dd>
  7251. <dt><samp class="option">hevc_vaapi</samp></dt>
  7252. <dd><p><samp class="option">profile</samp> and <samp class="option">level</samp> set the values of
  7253. <em class="emph">general_profile_idc</em> and <em class="emph">general_level_idc</em> respectively.
  7254. </p>
  7255. <dl class="table">
  7256. <dt><samp class="option">aud</samp></dt>
  7257. <dd><p>Include access unit delimiters in the stream (not included by default).
  7258. </p>
  7259. </dd>
  7260. <dt><samp class="option">tier</samp></dt>
  7261. <dd><p>Set <em class="emph">general_tier_flag</em>. This may affect the level chosen for the stream
  7262. if it is not explicitly specified.
  7263. </p>
  7264. </dd>
  7265. <dt><samp class="option">sei</samp></dt>
  7266. <dd><p>Set SEI message types to include.
  7267. Some combination of the following values:
  7268. </p><dl class="table">
  7269. <dt>&lsquo;<samp class="samp">hdr</samp>&rsquo;</dt>
  7270. <dd><p>Include HDR metadata if the input frames have it
  7271. (<em class="emph">mastering_display_colour_volume</em> and <em class="emph">content_light_level</em>
  7272. messages).
  7273. </p></dd>
  7274. </dl>
  7275. </dd>
  7276. <dt><samp class="option">tiles</samp></dt>
  7277. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7278. Larger numbers allow greater parallelism in both encoding and decoding, but
  7279. may decrease coding efficiency.
  7280. </p>
  7281. </dd>
  7282. </dl>
  7283. </dd>
  7284. <dt><samp class="option">mjpeg_vaapi</samp></dt>
  7285. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  7286. quantisation and huffman tables - <samp class="option">global_quality</samp> scales the standard
  7287. quantisation table (range 1-100).
  7288. </p>
  7289. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  7290. supported, and will create an RGB JPEG.
  7291. </p>
  7292. <dl class="table">
  7293. <dt><samp class="option">jfif</samp></dt>
  7294. <dd><p>Include JFIF header in each frame (not included by default).
  7295. </p></dd>
  7296. <dt><samp class="option">huffman</samp></dt>
  7297. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  7298. a few hundred bytes in each output frame, but may lose compatibility with some
  7299. JPEG decoders which don&rsquo;t fully handle MJPEG.
  7300. </p></dd>
  7301. </dl>
  7302. </dd>
  7303. <dt><samp class="option">mpeg2_vaapi</samp></dt>
  7304. <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>.
  7305. </p>
  7306. </dd>
  7307. <dt><samp class="option">vp8_vaapi</samp></dt>
  7308. <dd><p>B-frames are not supported.
  7309. </p>
  7310. <p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for non-key frames (range 0-127).
  7311. </p>
  7312. <dl class="table">
  7313. <dt><samp class="option">loop_filter_level</samp></dt>
  7314. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7315. <dd><p>Manually set the loop filter parameters.
  7316. </p></dd>
  7317. </dl>
  7318. </dd>
  7319. <dt><samp class="option">vp9_vaapi</samp></dt>
  7320. <dd><p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for P-frames (range 0-255).
  7321. </p>
  7322. <dl class="table">
  7323. <dt><samp class="option">loop_filter_level</samp></dt>
  7324. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7325. <dd><p>Manually set the loop filter parameters.
  7326. </p></dd>
  7327. </dl>
  7328. <p>B-frames are supported, but the output stream is always in encode order rather than display
  7329. order. If B-frames are enabled, it may be necessary to use the <samp class="option">vp9_raw_reorder</samp>
  7330. bitstream filter to modify the output stream to display frames in the correct order.
  7331. </p>
  7332. <p>Only normal frames are produced - the <samp class="option">vp9_superframe</samp> bitstream filter may be
  7333. required to produce a stream usable with all decoders.
  7334. </p>
  7335. </dd>
  7336. </dl>
  7337. </div>
  7338. <div class="section-level-extent" id="vbn">
  7339. <h3 class="section">9.28 vbn</h3>
  7340. <p>Vizrt Binary Image encoder.
  7341. </p>
  7342. <p>This format is used by the broadcast vendor Vizrt for quick texture streaming.
  7343. Advanced features of the format such as LZW compression of texture data or
  7344. generation of mipmaps are not supported.
  7345. </p>
  7346. <ul class="mini-toc">
  7347. <li><a href="#Options-43" accesskey="1">Options</a></li>
  7348. </ul>
  7349. <div class="subsection-level-extent" id="Options-43">
  7350. <h4 class="subsection">9.28.1 Options</h4>
  7351. <dl class="table">
  7352. <dt><samp class="option">format <var class="var">string</var></samp></dt>
  7353. <dd><p>Sets the texture compression used by the VBN file. Can be <var class="var">dxt1</var>,
  7354. <var class="var">dxt5</var> or <var class="var">raw</var>. Default is <var class="var">dxt5</var>.
  7355. </p></dd>
  7356. </dl>
  7357. </div>
  7358. </div>
  7359. <div class="section-level-extent" id="vc2">
  7360. <h3 class="section">9.29 vc2</h3>
  7361. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  7362. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  7363. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  7364. other tasks which require low overhead and low compression (like screen
  7365. recording).
  7366. </p>
  7367. <ul class="mini-toc">
  7368. <li><a href="#Options-44" accesskey="1">Options</a></li>
  7369. </ul>
  7370. <div class="subsection-level-extent" id="Options-44">
  7371. <h4 class="subsection">9.29.1 Options</h4>
  7372. <dl class="table">
  7373. <dt><samp class="option">b</samp></dt>
  7374. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  7375. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  7376. values (close to the uncompressed bitrate) turn on lossless compression mode.
  7377. </p>
  7378. </dd>
  7379. <dt><samp class="option">field_order</samp></dt>
  7380. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  7381. inputs. Should increase compression with interlaced content as it splits the
  7382. fields and encodes each separately.
  7383. </p>
  7384. </dd>
  7385. <dt><samp class="option">wavelet_depth</samp></dt>
  7386. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  7387. Lower values reduce compression and quality. Less capable decoders may not be
  7388. able to handle values of <samp class="option">wavelet_depth</samp> over 3.
  7389. </p>
  7390. </dd>
  7391. <dt><samp class="option">wavelet_type</samp></dt>
  7392. <dd><p>Sets the transform type. Currently only <var class="var">5_3</var> (LeGall) and <var class="var">9_7</var>
  7393. (Deslauriers-Dubuc)
  7394. are implemented, with 9_7 being the one with better compression and thus
  7395. is the default.
  7396. </p>
  7397. </dd>
  7398. <dt><samp class="option">slice_width</samp></dt>
  7399. <dt><samp class="option">slice_height</samp></dt>
  7400. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  7401. For compatibility with other more limited decoders use <samp class="option">slice_width</samp> of
  7402. 32 and <samp class="option">slice_height</samp> of 8.
  7403. </p>
  7404. </dd>
  7405. <dt><samp class="option">tolerance</samp></dt>
  7406. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  7407. to prevent an expensive search from being run.
  7408. </p>
  7409. </dd>
  7410. <dt><samp class="option">qm</samp></dt>
  7411. <dd><p>Sets the quantization matrix preset to use by default or when <samp class="option">wavelet_depth</samp>
  7412. is set to 5
  7413. </p><ul class="itemize mark-minus">
  7414. <li><var class="var">default</var>
  7415. Uses the default quantization matrix from the specifications, extended with
  7416. values for the fifth level. This provides a good balance between keeping detail
  7417. and omitting artifacts.
  7418. </li><li><var class="var">flat</var>
  7419. Use a completely zeroed out quantization matrix. This increases PSNR but might
  7420. reduce perception. Use in bogus benchmarks.
  7421. </li><li><var class="var">color</var>
  7422. Reduces detail but attempts to preserve color at extremely low bitrates.
  7423. </li></ul>
  7424. </dd>
  7425. </dl>
  7426. </div>
  7427. </div>
  7428. </div>
  7429. <div class="chapter-level-extent" id="Subtitles-Encoders">
  7430. <h2 class="chapter">10 Subtitles Encoders</h2>
  7431. <ul class="mini-toc">
  7432. <li><a href="#dvdsub-1" accesskey="1">dvdsub</a></li>
  7433. </ul>
  7434. <div class="section-level-extent" id="dvdsub-1">
  7435. <h3 class="section">10.1 dvdsub</h3>
  7436. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  7437. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  7438. and they can also be used in Matroska files.
  7439. </p>
  7440. <ul class="mini-toc">
  7441. <li><a href="#Options-45" accesskey="1">Options</a></li>
  7442. </ul>
  7443. <div class="subsection-level-extent" id="Options-45">
  7444. <h4 class="subsection">10.1.1 Options</h4>
  7445. <dl class="table">
  7446. <dt><samp class="option">palette</samp></dt>
  7447. <dd><p>Specify the global palette used by the bitmaps.
  7448. </p>
  7449. <p>The format for this option is a string containing 16 24-bits hexadecimal
  7450. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  7451. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  7452. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  7453. </p>
  7454. </dd>
  7455. <dt><samp class="option">even_rows_fix</samp></dt>
  7456. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  7457. even in all subtitles. This fixes a problem with some players that
  7458. cut off the bottom row if the number is odd. The work-around just adds
  7459. a fully transparent row if needed. The overhead is low, typically
  7460. one byte per subtitle on average.
  7461. </p>
  7462. <p>By default, this work-around is disabled.
  7463. </p></dd>
  7464. </dl>
  7465. </div>
  7466. </div>
  7467. </div>
  7468. <div class="chapter-level-extent" id="See-Also">
  7469. <h2 class="chapter">11 See Also</h2>
  7470. <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>,
  7471. <a class="url" href="libavcodec.html">libavcodec</a>
  7472. </p>
  7473. </div>
  7474. <div class="chapter-level-extent" id="Authors">
  7475. <h2 class="chapter">12 Authors</h2>
  7476. <p>The FFmpeg developers.
  7477. </p>
  7478. <p>For details about the authorship, see the Git history of the project
  7479. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  7480. <code class="command">git log</code> in the FFmpeg source directory, or browsing the
  7481. online repository at <a class="url" href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  7482. </p>
  7483. <p>Maintainers for the specific components are listed in the file
  7484. <samp class="file">MAINTAINERS</samp> in the source code tree.
  7485. </p>
  7486. </div>
  7487. </div>
  7488. <p style="font-size: small;">
  7489. This document was generated using <a class="uref" href="https://www.gnu.org/software/texinfo/"><em class="emph">makeinfo</em></a>.
  7490. </p>
  7491. </div>
  7492. </body>
  7493. </html>