星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <title>FFmpeg documentation</title>
  7. <link rel="stylesheet" href="bootstrap.min.css" />
  8. <link rel="stylesheet" href="style.min.css" />
  9. <meta name="description" content="FFmpeg Codecs Documentation: ">
  10. <meta name="keywords" content="FFmpeg documentation : FFmpeg Codecs ">
  11. <meta name="Generator" content="texi2html 5.0">
  12. <!-- Created on March 9, 2020 by texi2html 5.0 -->
  13. <!--
  14. texi2html was written by:
  15. Lionel Cons <Lionel.Cons@cern.ch> (original author)
  16. Karl Berry <karl@freefriends.org>
  17. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  18. and many others.
  19. Maintained by: Many creative people.
  20. Send bugs and suggestions to <texi2html-bug@nongnu.org>
  21. -->
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. </head>
  24. <body>
  25. <div class="container">
  26. <h1 class="titlefont">FFmpeg Codecs Documentation</h1>
  27. <hr>
  28. <a name="SEC_Top"></a>
  29. <a name="SEC_Contents"></a>
  30. <h1>Table of Contents</h1>
  31. <div class="contents">
  32. <ul class="no-bullet">
  33. <li><a name="toc-Description" href="#Description">1 Description</a></li>
  34. <li><a name="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
  35. <li><a name="toc-Decoders" href="#Decoders">3 Decoders</a></li>
  36. <li><a name="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
  37. <ul class="no-bullet">
  38. <li><a name="toc-rawvideo" href="#rawvideo">4.1 rawvideo</a>
  39. <ul class="no-bullet">
  40. <li><a name="toc-Options-31" href="#Options-31">4.1.1 Options</a></li>
  41. </ul></li>
  42. <li><a name="toc-libdav1d" href="#libdav1d">4.2 libdav1d</a>
  43. <ul class="no-bullet">
  44. <li><a name="toc-Options-29" href="#Options-29">4.2.1 Options</a></li>
  45. </ul></li>
  46. <li><a name="toc-libdavs2" href="#libdavs2">4.3 libdavs2</a></li>
  47. </ul></li>
  48. <li><a name="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
  49. <ul class="no-bullet">
  50. <li><a name="toc-ac3" href="#ac3">5.1 ac3</a>
  51. <ul class="no-bullet">
  52. <li><a name="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
  53. </ul></li>
  54. <li><a name="toc-flac-2" href="#flac-2">5.2 flac</a>
  55. <ul class="no-bullet">
  56. <li><a name="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
  57. </ul></li>
  58. <li><a name="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
  59. <li><a name="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
  60. <li><a name="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
  61. <li><a name="toc-libilbc" href="#libilbc">5.6 libilbc</a>
  62. <ul class="no-bullet">
  63. <li><a name="toc-Options-4" href="#Options-4">5.6.1 Options</a></li>
  64. </ul></li>
  65. <li><a name="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.7 libopencore-amrnb</a></li>
  66. <li><a name="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.8 libopencore-amrwb</a></li>
  67. <li><a name="toc-libopus" href="#libopus">5.9 libopus</a></li>
  68. </ul></li>
  69. <li><a name="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
  70. <ul class="no-bullet">
  71. <li><a name="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
  72. <ul class="no-bullet">
  73. <li><a name="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
  74. </ul></li>
  75. <li><a name="toc-dvbsub" href="#dvbsub">6.2 dvbsub</a>
  76. <ul class="no-bullet">
  77. <li><a name="toc-Options-16" href="#Options-16">6.2.1 Options</a></li>
  78. </ul></li>
  79. <li><a name="toc-dvdsub" href="#dvdsub">6.3 dvdsub</a>
  80. <ul class="no-bullet">
  81. <li><a name="toc-Options-30" href="#Options-30">6.3.1 Options</a></li>
  82. </ul></li>
  83. <li><a name="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.4 libzvbi-teletext</a>
  84. <ul class="no-bullet">
  85. <li><a name="toc-Options-35" href="#Options-35">6.4.1 Options</a></li>
  86. </ul>
  87. </li>
  88. </ul></li>
  89. <li><a name="toc-Encoders" href="#Encoders">7 Encoders</a></li>
  90. <li><a name="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
  91. <ul class="no-bullet">
  92. <li><a name="toc-aac" href="#aac">8.1 aac</a>
  93. <ul class="no-bullet">
  94. <li><a name="toc-Options-34" href="#Options-34">8.1.1 Options</a></li>
  95. </ul></li>
  96. <li><a name="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
  97. <ul class="no-bullet">
  98. <li><a name="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
  99. <ul class="no-bullet">
  100. <li><a name="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
  101. <li><a name="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
  102. <li><a name="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
  103. <li><a name="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
  104. </ul></li>
  105. <li><a name="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
  106. <ul class="no-bullet">
  107. <li><a name="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>
  108. <li><a name="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>
  109. </ul></li>
  110. <li><a name="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
  111. <li><a name="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>
  112. </ul></li>
  113. <li><a name="toc-flac-1" href="#flac-1">8.3 flac</a>
  114. <ul class="no-bullet">
  115. <li><a name="toc-Options-20" href="#Options-20">8.3.1 Options</a></li>
  116. </ul></li>
  117. <li><a name="toc-opus" href="#opus">8.4 opus</a>
  118. <ul class="no-bullet">
  119. <li><a name="toc-Options-17" href="#Options-17">8.4.1 Options</a></li>
  120. </ul></li>
  121. <li><a name="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
  122. <ul class="no-bullet">
  123. <li><a name="toc-Options-32" href="#Options-32">8.5.1 Options</a></li>
  124. <li><a name="toc-Examples-1" href="#Examples-1">8.5.2 Examples</a></li>
  125. </ul></li>
  126. <li><a name="toc-libmp3lame-1" href="#libmp3lame-1">8.6 libmp3lame</a>
  127. <ul class="no-bullet">
  128. <li><a name="toc-Options-6" href="#Options-6">8.6.1 Options</a></li>
  129. </ul></li>
  130. <li><a name="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.7 libopencore-amrnb</a>
  131. <ul class="no-bullet">
  132. <li><a name="toc-Options-21" href="#Options-21">8.7.1 Options</a></li>
  133. </ul></li>
  134. <li><a name="toc-libopus-1" href="#libopus-1">8.8 libopus</a>
  135. <ul class="no-bullet">
  136. <li><a name="toc-Option-Mapping" href="#Option-Mapping">8.8.1 Option Mapping</a></li>
  137. </ul></li>
  138. <li><a name="toc-libshine-1" href="#libshine-1">8.9 libshine</a>
  139. <ul class="no-bullet">
  140. <li><a name="toc-Options-25" href="#Options-25">8.9.1 Options</a></li>
  141. </ul></li>
  142. <li><a name="toc-libtwolame" href="#libtwolame">8.10 libtwolame</a>
  143. <ul class="no-bullet">
  144. <li><a name="toc-Options-23" href="#Options-23">8.10.1 Options</a></li>
  145. </ul></li>
  146. <li><a name="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.11 libvo-amrwbenc</a>
  147. <ul class="no-bullet">
  148. <li><a name="toc-Options-19" href="#Options-19">8.11.1 Options</a></li>
  149. </ul></li>
  150. <li><a name="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
  151. <ul class="no-bullet">
  152. <li><a name="toc-Options-7" href="#Options-7">8.12.1 Options</a></li>
  153. </ul></li>
  154. <li><a name="toc-libwavpack-1" href="#libwavpack-1">8.13 libwavpack</a>
  155. <ul class="no-bullet">
  156. <li><a name="toc-Options-12" href="#Options-12">8.13.1 Options</a></li>
  157. </ul></li>
  158. <li><a name="toc-mjpeg" href="#mjpeg">8.14 mjpeg</a>
  159. <ul class="no-bullet">
  160. <li><a name="toc-Options-28" href="#Options-28">8.14.1 Options</a></li>
  161. </ul></li>
  162. <li><a name="toc-wavpack" href="#wavpack">8.15 wavpack</a>
  163. <ul class="no-bullet">
  164. <li><a name="toc-Options-10" href="#Options-10">8.15.1 Options</a>
  165. <ul class="no-bullet">
  166. <li><a name="toc-Shared-options" href="#Shared-options">8.15.1.1 Shared options</a></li>
  167. <li><a name="toc-Private-options-1" href="#Private-options-1">8.15.1.2 Private options</a></li>
  168. </ul>
  169. </li>
  170. </ul>
  171. </li>
  172. </ul></li>
  173. <li><a name="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
  174. <ul class="no-bullet">
  175. <li><a name="toc-Hap" href="#Hap">9.1 Hap</a>
  176. <ul class="no-bullet">
  177. <li><a name="toc-Options-15" href="#Options-15">9.1.1 Options</a></li>
  178. </ul></li>
  179. <li><a name="toc-jpeg2000" href="#jpeg2000">9.2 jpeg2000</a>
  180. <ul class="no-bullet">
  181. <li><a name="toc-Options-14" href="#Options-14">9.2.1 Options</a></li>
  182. </ul></li>
  183. <li><a name="toc-librav1e" href="#librav1e">9.3 librav1e</a>
  184. <ul class="no-bullet">
  185. <li><a name="toc-Options-1" href="#Options-1">9.3.1 Options</a></li>
  186. </ul></li>
  187. <li><a name="toc-libaom_002dav1" href="#libaom_002dav1">9.4 libaom-av1</a>
  188. <ul class="no-bullet">
  189. <li><a name="toc-Options" href="#Options">9.4.1 Options</a></li>
  190. </ul></li>
  191. <li><a name="toc-libkvazaar" href="#libkvazaar">9.5 libkvazaar</a>
  192. <ul class="no-bullet">
  193. <li><a name="toc-Options-22" href="#Options-22">9.5.1 Options</a></li>
  194. </ul></li>
  195. <li><a name="toc-libopenh264" href="#libopenh264">9.6 libopenh264</a>
  196. <ul class="no-bullet">
  197. <li><a name="toc-Options-5" href="#Options-5">9.6.1 Options</a></li>
  198. </ul></li>
  199. <li><a name="toc-libtheora" href="#libtheora">9.7 libtheora</a>
  200. <ul class="no-bullet">
  201. <li><a name="toc-Options-9" href="#Options-9">9.7.1 Options</a></li>
  202. <li><a name="toc-Examples" href="#Examples">9.7.2 Examples</a></li>
  203. </ul></li>
  204. <li><a name="toc-libvpx" href="#libvpx">9.8 libvpx</a>
  205. <ul class="no-bullet">
  206. <li><a name="toc-Options-24" href="#Options-24">9.8.1 Options</a></li>
  207. </ul></li>
  208. <li><a name="toc-libwebp" href="#libwebp">9.9 libwebp</a>
  209. <ul class="no-bullet">
  210. <li><a name="toc-Pixel-Format" href="#Pixel-Format">9.9.1 Pixel Format</a></li>
  211. <li><a name="toc-Options-13" href="#Options-13">9.9.2 Options</a></li>
  212. </ul></li>
  213. <li><a name="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.10 libx264, libx264rgb</a>
  214. <ul class="no-bullet">
  215. <li><a name="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.10.1 Supported Pixel Formats</a></li>
  216. <li><a name="toc-Options-18" href="#Options-18">9.10.2 Options</a></li>
  217. </ul></li>
  218. <li><a name="toc-libx265" href="#libx265">9.11 libx265</a>
  219. <ul class="no-bullet">
  220. <li><a name="toc-Options-26" href="#Options-26">9.11.1 Options</a></li>
  221. </ul></li>
  222. <li><a name="toc-libxavs2" href="#libxavs2">9.12 libxavs2</a>
  223. <ul class="no-bullet">
  224. <li><a name="toc-Options-11" href="#Options-11">9.12.1 Options</a></li>
  225. </ul></li>
  226. <li><a name="toc-libxvid" href="#libxvid">9.13 libxvid</a>
  227. <ul class="no-bullet">
  228. <li><a name="toc-Options-3" href="#Options-3">9.13.1 Options</a></li>
  229. </ul></li>
  230. <li><a name="toc-mpeg2" href="#mpeg2">9.14 mpeg2</a>
  231. <ul class="no-bullet">
  232. <li><a name="toc-Options-33" href="#Options-33">9.14.1 Options</a></li>
  233. </ul></li>
  234. <li><a name="toc-png" href="#png">9.15 png</a>
  235. <ul class="no-bullet">
  236. <li><a name="toc-Private-options" href="#Private-options">9.15.1 Private options</a></li>
  237. </ul></li>
  238. <li><a name="toc-ProRes" href="#ProRes">9.16 ProRes</a>
  239. <ul class="no-bullet">
  240. <li><a name="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.16.1 Private Options for prores-ks</a></li>
  241. <li><a name="toc-Speed-considerations" href="#Speed-considerations">9.16.2 Speed considerations</a></li>
  242. </ul></li>
  243. <li><a name="toc-QSV-encoders" href="#QSV-encoders">9.17 QSV encoders</a></li>
  244. <li><a name="toc-snow" href="#snow">9.18 snow</a>
  245. <ul class="no-bullet">
  246. <li><a name="toc-Options-2" href="#Options-2">9.18.1 Options</a></li>
  247. </ul></li>
  248. <li><a name="toc-VAAPI-encoders" href="#VAAPI-encoders">9.19 VAAPI encoders</a></li>
  249. <li><a name="toc-vc2" href="#vc2">9.20 vc2</a>
  250. <ul class="no-bullet">
  251. <li><a name="toc-Options-27" href="#Options-27">9.20.1 Options</a></li>
  252. </ul>
  253. </li>
  254. </ul></li>
  255. <li><a name="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
  256. <ul class="no-bullet">
  257. <li><a name="toc-dvdsub-1" href="#dvdsub-1">10.1 dvdsub</a>
  258. <ul class="no-bullet">
  259. <li><a name="toc-Options-8" href="#Options-8">10.1.1 Options</a></li>
  260. </ul>
  261. </li>
  262. </ul></li>
  263. <li><a name="toc-See-Also" href="#See-Also">11 See Also</a></li>
  264. <li><a name="toc-Authors" href="#Authors">12 Authors</a></li>
  265. </ul>
  266. </div>
  267. <hr size="6">
  268. <a name="Description"></a>
  269. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Description">1 Description</a></h1>
  270. <p>This document describes the codecs (decoders and encoders) provided by
  271. the libavcodec library.
  272. </p>
  273. <p><a name="codec_002doptions"></a>
  274. </p><a name="Codec-Options"></a>
  275. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Codec-Options">2 Codec Options</a></h1>
  276. <p>libavcodec provides some generic global options, which can be set on
  277. all the encoders and decoders. In addition each codec may support
  278. so-called private options, which are specific for a given codec.
  279. </p>
  280. <p>Sometimes, a global option may only affect a specific kind of codec,
  281. and may be nonsensical or ignored by another, so you need to be aware
  282. of the meaning of the specified options. Also some options are
  283. meant only for decoding or encoding.
  284. </p>
  285. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  286. FFmpeg tools, or by setting the value explicitly in the
  287. <code>AVCodecContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
  288. for programmatic use.
  289. </p>
  290. <p>The list of supported options follow:
  291. </p>
  292. <dl compact="compact">
  293. <dt>&lsquo;<samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  294. <dd><p>Set bitrate in bits/s. Default value is 200K.
  295. </p>
  296. </dd>
  297. <dt>&lsquo;<samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  298. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  299. </p>
  300. </dd>
  301. <dt>&lsquo;<samp>bt <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  302. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  303. tolerance specifies how far ratecontrol is willing to deviate from the
  304. target average bitrate value. This is not related to min/max
  305. bitrate. Lowering tolerance too much has an adverse effect on quality.
  306. </p>
  307. </dd>
  308. <dt>&lsquo;<samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  309. <dd><p>Set generic flags.
  310. </p>
  311. <p>Possible values:
  312. </p><dl compact="compact">
  313. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  314. <dd><p>Use four motion vector by macroblock (mpeg4).
  315. </p></dd>
  316. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  317. <dd><p>Use 1/4 pel motion compensation.
  318. </p></dd>
  319. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  320. <dd><p>Use loop filter.
  321. </p></dd>
  322. <dt>&lsquo;<samp>qscale</samp>&rsquo;</dt>
  323. <dd><p>Use fixed qscale.
  324. </p></dd>
  325. <dt>&lsquo;<samp>pass1</samp>&rsquo;</dt>
  326. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  327. </p></dd>
  328. <dt>&lsquo;<samp>pass2</samp>&rsquo;</dt>
  329. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  330. </p></dd>
  331. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  332. <dd><p>Only decode/encode grayscale.
  333. </p></dd>
  334. <dt>&lsquo;<samp>emu_edge</samp>&rsquo;</dt>
  335. <dd><p>Do not draw edges.
  336. </p></dd>
  337. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  338. <dd><p>Set error[?] variables during encoding.
  339. </p></dd>
  340. <dt>&lsquo;<samp>truncated</samp>&rsquo;</dt>
  341. <dd><p>Input bitstream might be randomly truncated.
  342. </p></dd>
  343. <dt>&lsquo;<samp>drop_changed</samp>&rsquo;</dt>
  344. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  345. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  346. </p>
  347. </dd>
  348. <dt>&lsquo;<samp>ildct</samp>&rsquo;</dt>
  349. <dd><p>Use interlaced DCT.
  350. </p></dd>
  351. <dt>&lsquo;<samp>low_delay</samp>&rsquo;</dt>
  352. <dd><p>Force low delay.
  353. </p></dd>
  354. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  355. <dd><p>Place global headers in extradata instead of every keyframe.
  356. </p></dd>
  357. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  358. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  359. This ensures that file and data checksums are reproducible and match between
  360. platforms. Its primary use is for regression testing.
  361. </p></dd>
  362. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  363. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  364. </p></dd>
  365. <dt>&lsquo;<samp>cbp</samp>&rsquo;</dt>
  366. <dd><p>Deprecated, use mpegvideo private options instead.
  367. </p></dd>
  368. <dt>&lsquo;<samp>qprd</samp>&rsquo;</dt>
  369. <dd><p>Deprecated, use mpegvideo private options instead.
  370. </p></dd>
  371. <dt>&lsquo;<samp>ilme</samp>&rsquo;</dt>
  372. <dd><p>Apply interlaced motion estimation.
  373. </p></dd>
  374. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  375. <dd><p>Use closed gop.
  376. </p></dd>
  377. <dt>&lsquo;<samp>output_corrupt</samp>&rsquo;</dt>
  378. <dd><p>Output even potentially corrupted frames.
  379. </p></dd>
  380. </dl>
  381. </dd>
  382. <dt>&lsquo;<samp>me_method <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  383. <dd><p>Set motion estimation method.
  384. </p>
  385. <p>Possible values:
  386. </p><dl compact="compact">
  387. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  388. <dd><p>zero motion estimation (fastest)
  389. </p></dd>
  390. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  391. <dd><p>full motion estimation (slowest)
  392. </p></dd>
  393. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  394. <dd><p>EPZS motion estimation (default)
  395. </p></dd>
  396. <dt>&lsquo;<samp>esa</samp>&rsquo;</dt>
  397. <dd><p>esa motion estimation (alias for full)
  398. </p></dd>
  399. <dt>&lsquo;<samp>tesa</samp>&rsquo;</dt>
  400. <dd><p>tesa motion estimation
  401. </p></dd>
  402. <dt>&lsquo;<samp>dia</samp>&rsquo;</dt>
  403. <dd><p>dia motion estimation (alias for epzs)
  404. </p></dd>
  405. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  406. <dd><p>log motion estimation
  407. </p></dd>
  408. <dt>&lsquo;<samp>phods</samp>&rsquo;</dt>
  409. <dd><p>phods motion estimation
  410. </p></dd>
  411. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  412. <dd><p>X1 motion estimation
  413. </p></dd>
  414. <dt>&lsquo;<samp>hex</samp>&rsquo;</dt>
  415. <dd><p>hex motion estimation
  416. </p></dd>
  417. <dt>&lsquo;<samp>umh</samp>&rsquo;</dt>
  418. <dd><p>umh motion estimation
  419. </p></dd>
  420. <dt>&lsquo;<samp>iter</samp>&rsquo;</dt>
  421. <dd><p>iter motion estimation
  422. </p></dd>
  423. </dl>
  424. </dd>
  425. <dt>&lsquo;<samp>extradata_size <var>integer</var></samp>&rsquo;</dt>
  426. <dd><p>Set extradata size.
  427. </p>
  428. </dd>
  429. <dt>&lsquo;<samp>time_base <var>rational number</var></samp>&rsquo;</dt>
  430. <dd><p>Set codec time base.
  431. </p>
  432. <p>It is the fundamental unit of time (in seconds) in terms of which
  433. frame timestamps are represented. For fixed-fps content, timebase
  434. should be <code>1 / frame_rate</code> and timestamp increments should be
  435. identically 1.
  436. </p>
  437. </dd>
  438. <dt>&lsquo;<samp>g <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  439. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  440. </p>
  441. </dd>
  442. <dt>&lsquo;<samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  443. <dd><p>Set audio sampling rate (in Hz).
  444. </p>
  445. </dd>
  446. <dt>&lsquo;<samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  447. <dd><p>Set number of audio channels.
  448. </p>
  449. </dd>
  450. <dt>&lsquo;<samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  451. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  452. their respective documentation sections.)
  453. </p>
  454. </dd>
  455. <dt>&lsquo;<samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  456. <dd><p>Set audio frame size.
  457. </p>
  458. <p>Each submitted frame except the last must contain exactly frame_size
  459. samples per channel. May be 0 when the codec has
  460. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  461. restricted. It is set by some decoders to indicate constant frame
  462. size.
  463. </p>
  464. </dd>
  465. <dt>&lsquo;<samp>frame_number <var>integer</var></samp>&rsquo;</dt>
  466. <dd><p>Set the frame number.
  467. </p>
  468. </dd>
  469. <dt>&lsquo;<samp>delay <var>integer</var></samp>&rsquo;</dt>
  470. <dt>&lsquo;<samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  471. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  472. in the ratecontrol equation. Recommended range for default rc_eq:
  473. 0.0-1.0.
  474. </p>
  475. </dd>
  476. <dt>&lsquo;<samp>qblur <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  477. <dd><p>Set video quantizer scale blur (VBR).
  478. </p>
  479. </dd>
  480. <dt>&lsquo;<samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  481. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  482. 69, default value is 2.
  483. </p>
  484. </dd>
  485. <dt>&lsquo;<samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  486. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  487. 1024, default value is 31.
  488. </p>
  489. </dd>
  490. <dt>&lsquo;<samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  491. <dd><p>Set max difference between the quantizer scale (VBR).
  492. </p>
  493. </dd>
  494. <dt>&lsquo;<samp>bf <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  495. <dd><p>Set max number of B frames between non-B-frames.
  496. </p>
  497. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  498. disabled. If a value of -1 is used, it will choose an automatic value
  499. depending on the encoder.
  500. </p>
  501. <p>Default value is 0.
  502. </p>
  503. </dd>
  504. <dt>&lsquo;<samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  505. <dd><p>Set qp factor between P and B frames.
  506. </p>
  507. </dd>
  508. <dt>&lsquo;<samp>rc_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  509. <dd><p>Set ratecontrol method.
  510. </p>
  511. </dd>
  512. <dt>&lsquo;<samp>b_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  513. <dd><p>Set strategy to choose between I/P/B-frames.
  514. </p>
  515. </dd>
  516. <dt>&lsquo;<samp>ps <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  517. <dd><p>Set RTP payload size in bytes.
  518. </p>
  519. </dd>
  520. <dt>&lsquo;<samp>mv_bits <var>integer</var></samp>&rsquo;</dt>
  521. <dt>&lsquo;<samp>header_bits <var>integer</var></samp>&rsquo;</dt>
  522. <dt>&lsquo;<samp>i_tex_bits <var>integer</var></samp>&rsquo;</dt>
  523. <dt>&lsquo;<samp>p_tex_bits <var>integer</var></samp>&rsquo;</dt>
  524. <dt>&lsquo;<samp>i_count <var>integer</var></samp>&rsquo;</dt>
  525. <dt>&lsquo;<samp>p_count <var>integer</var></samp>&rsquo;</dt>
  526. <dt>&lsquo;<samp>skip_count <var>integer</var></samp>&rsquo;</dt>
  527. <dt>&lsquo;<samp>misc_bits <var>integer</var></samp>&rsquo;</dt>
  528. <dt>&lsquo;<samp>frame_bits <var>integer</var></samp>&rsquo;</dt>
  529. <dt>&lsquo;<samp>codec_tag <var>integer</var></samp>&rsquo;</dt>
  530. <dt>&lsquo;<samp>bug <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  531. <dd><p>Workaround not auto detected encoder bugs.
  532. </p>
  533. <p>Possible values:
  534. </p><dl compact="compact">
  535. <dt>&lsquo;<samp>autodetect</samp>&rsquo;</dt>
  536. <dt>&lsquo;<samp>old_msmpeg4</samp>&rsquo;</dt>
  537. <dd><p>some old lavc generated msmpeg4v3 files (no autodetection)
  538. </p></dd>
  539. <dt>&lsquo;<samp>xvid_ilace</samp>&rsquo;</dt>
  540. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  541. </p></dd>
  542. <dt>&lsquo;<samp>ump4</samp>&rsquo;</dt>
  543. <dd><p>(autodetected if fourcc==UMP4)
  544. </p></dd>
  545. <dt>&lsquo;<samp>no_padding</samp>&rsquo;</dt>
  546. <dd><p>padding bug (autodetected)
  547. </p></dd>
  548. <dt>&lsquo;<samp>amv</samp>&rsquo;</dt>
  549. <dt>&lsquo;<samp>ac_vlc</samp>&rsquo;</dt>
  550. <dd><p>illegal vlc bug (autodetected per fourcc)
  551. </p></dd>
  552. <dt>&lsquo;<samp>qpel_chroma</samp>&rsquo;</dt>
  553. <dt>&lsquo;<samp>std_qpel</samp>&rsquo;</dt>
  554. <dd><p>old standard qpel (autodetected per fourcc/version)
  555. </p></dd>
  556. <dt>&lsquo;<samp>qpel_chroma2</samp>&rsquo;</dt>
  557. <dt>&lsquo;<samp>direct_blocksize</samp>&rsquo;</dt>
  558. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  559. </p></dd>
  560. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  561. <dd><p>edge padding bug (autodetected per fourcc/version)
  562. </p></dd>
  563. <dt>&lsquo;<samp>hpel_chroma</samp>&rsquo;</dt>
  564. <dt>&lsquo;<samp>dc_clip</samp>&rsquo;</dt>
  565. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  566. <dd><p>Workaround various bugs in microsoft broken decoders.
  567. </p></dd>
  568. <dt>&lsquo;<samp>trunc</samp>&rsquo;</dt>
  569. <dd><p>trancated frames
  570. </p></dd>
  571. </dl>
  572. </dd>
  573. <dt>&lsquo;<samp>lelim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  574. <dd><p>Set single coefficient elimination threshold for luminance (negative
  575. values also consider DC coefficient).
  576. </p>
  577. </dd>
  578. <dt>&lsquo;<samp>celim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  579. <dd><p>Set single coefficient elimination threshold for chrominance (negative
  580. values also consider dc coefficient)
  581. </p>
  582. </dd>
  583. <dt>&lsquo;<samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  584. <dd><p>Specify how strictly to follow the standards.
  585. </p>
  586. <p>Possible values:
  587. </p><dl compact="compact">
  588. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  589. <dd><p>strictly conform to an older more strict version of the spec or reference software
  590. </p></dd>
  591. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  592. <dd><p>strictly conform to all the things in the spec no matter what consequences
  593. </p></dd>
  594. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  595. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  596. <dd><p>allow unofficial extensions
  597. </p></dd>
  598. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  599. <dd><p>allow non standardized experimental things, experimental
  600. (unfinished/work in progress/not well tested) decoders and encoders.
  601. Note: experimental decoders can pose a security risk, do not use this for
  602. decoding untrusted input.
  603. </p></dd>
  604. </dl>
  605. </dd>
  606. <dt>&lsquo;<samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  607. <dd><p>Set QP offset between P and B frames.
  608. </p>
  609. </dd>
  610. <dt>&lsquo;<samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  611. <dd><p>Set error detection flags.
  612. </p>
  613. <p>Possible values:
  614. </p><dl compact="compact">
  615. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  616. <dd><p>verify embedded CRCs
  617. </p></dd>
  618. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  619. <dd><p>detect bitstream specification deviations
  620. </p></dd>
  621. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  622. <dd><p>detect improper bitstream length
  623. </p></dd>
  624. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  625. <dd><p>abort decoding on minor error detection
  626. </p></dd>
  627. <dt>&lsquo;<samp>ignore_err</samp>&rsquo;</dt>
  628. <dd><p>ignore decoding errors, and continue decoding.
  629. This is useful if you want to analyze the content of a video and thus want
  630. everything to be decoded no matter what. This option will not result in a video
  631. that is pleasing to watch in case of errors.
  632. </p></dd>
  633. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  634. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  635. </p></dd>
  636. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  637. <dd><p>consider all spec non compliancies as errors
  638. </p></dd>
  639. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  640. <dd><p>consider things that a sane encoder should not do as an error
  641. </p></dd>
  642. </dl>
  643. </dd>
  644. <dt>&lsquo;<samp>has_b_frames <var>integer</var></samp>&rsquo;</dt>
  645. <dt>&lsquo;<samp>block_align <var>integer</var></samp>&rsquo;</dt>
  646. <dt>&lsquo;<samp>mpeg_quant <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  647. <dd><p>Use MPEG quantizers instead of H.263.
  648. </p>
  649. </dd>
  650. <dt>&lsquo;<samp>qsquish <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  651. <dd><p>How to keep quantizer between qmin and qmax (0 = clip, 1 = use
  652. differentiable function).
  653. </p>
  654. </dd>
  655. <dt>&lsquo;<samp>rc_qmod_amp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  656. <dd><p>Set experimental quantizer modulation.
  657. </p>
  658. </dd>
  659. <dt>&lsquo;<samp>rc_qmod_freq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  660. <dd><p>Set experimental quantizer modulation.
  661. </p>
  662. </dd>
  663. <dt>&lsquo;<samp>rc_override_count <var>integer</var></samp>&rsquo;</dt>
  664. <dt>&lsquo;<samp>rc_eq <var>string</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  665. <dd><p>Set rate control equation. When computing the expression, besides the
  666. standard functions defined in the section &rsquo;Expression Evaluation&rsquo;, the
  667. following functions are available: bits2qp(bits), qp2bits(qp). Also
  668. the following constants are available: iTex pTex tex mv fCode iCount
  669. mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
  670. avgTex.
  671. </p>
  672. </dd>
  673. <dt>&lsquo;<samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  674. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  675. </p>
  676. </dd>
  677. <dt>&lsquo;<samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  678. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  679. encode. It is of little use elsewise.
  680. </p>
  681. </dd>
  682. <dt>&lsquo;<samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  683. <dd><p>Set ratecontrol buffer size (in bits).
  684. </p>
  685. </dd>
  686. <dt>&lsquo;<samp>rc_buf_aggressivity <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  687. <dd><p>Currently useless.
  688. </p>
  689. </dd>
  690. <dt>&lsquo;<samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  691. <dd><p>Set QP factor between P and I frames.
  692. </p>
  693. </dd>
  694. <dt>&lsquo;<samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  695. <dd><p>Set QP offset between P and I frames.
  696. </p>
  697. </dd>
  698. <dt>&lsquo;<samp>rc_init_cplx <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  699. <dd><p>Set initial complexity for 1-pass encoding.
  700. </p>
  701. </dd>
  702. <dt>&lsquo;<samp>dct <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  703. <dd><p>Set DCT algorithm.
  704. </p>
  705. <p>Possible values:
  706. </p><dl compact="compact">
  707. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  708. <dd><p>autoselect a good one (default)
  709. </p></dd>
  710. <dt>&lsquo;<samp>fastint</samp>&rsquo;</dt>
  711. <dd><p>fast integer
  712. </p></dd>
  713. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  714. <dd><p>accurate integer
  715. </p></dd>
  716. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  717. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  718. <dt>&lsquo;<samp>faan</samp>&rsquo;</dt>
  719. <dd><p>floating point AAN DCT
  720. </p></dd>
  721. </dl>
  722. </dd>
  723. <dt>&lsquo;<samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  724. <dd><p>Compress bright areas stronger than medium ones.
  725. </p>
  726. </dd>
  727. <dt>&lsquo;<samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  728. <dd><p>Set temporal complexity masking.
  729. </p>
  730. </dd>
  731. <dt>&lsquo;<samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  732. <dd><p>Set spatial complexity masking.
  733. </p>
  734. </dd>
  735. <dt>&lsquo;<samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  736. <dd><p>Set inter masking.
  737. </p>
  738. </dd>
  739. <dt>&lsquo;<samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  740. <dd><p>Compress dark areas stronger than medium ones.
  741. </p>
  742. </dd>
  743. <dt>&lsquo;<samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  744. <dd><p>Select IDCT implementation.
  745. </p>
  746. <p>Possible values:
  747. </p><dl compact="compact">
  748. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  749. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  750. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  751. <dt>&lsquo;<samp>simplemmx</samp>&rsquo;</dt>
  752. <dt>&lsquo;<samp>simpleauto</samp>&rsquo;</dt>
  753. <dd><p>Automatically pick a IDCT compatible with the simple one
  754. </p>
  755. </dd>
  756. <dt>&lsquo;<samp>arm</samp>&rsquo;</dt>
  757. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  758. <dt>&lsquo;<samp>sh4</samp>&rsquo;</dt>
  759. <dt>&lsquo;<samp>simplearm</samp>&rsquo;</dt>
  760. <dt>&lsquo;<samp>simplearmv5te</samp>&rsquo;</dt>
  761. <dt>&lsquo;<samp>simplearmv6</samp>&rsquo;</dt>
  762. <dt>&lsquo;<samp>simpleneon</samp>&rsquo;</dt>
  763. <dt>&lsquo;<samp>simplealpha</samp>&rsquo;</dt>
  764. <dt>&lsquo;<samp>ipp</samp>&rsquo;</dt>
  765. <dt>&lsquo;<samp>xvidmmx</samp>&rsquo;</dt>
  766. <dt>&lsquo;<samp>faani</samp>&rsquo;</dt>
  767. <dd><p>floating point AAN IDCT
  768. </p></dd>
  769. </dl>
  770. </dd>
  771. <dt>&lsquo;<samp>slice_count <var>integer</var></samp>&rsquo;</dt>
  772. <dt>&lsquo;<samp>ec <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  773. <dd><p>Set error concealment strategy.
  774. </p>
  775. <p>Possible values:
  776. </p><dl compact="compact">
  777. <dt>&lsquo;<samp>guess_mvs</samp>&rsquo;</dt>
  778. <dd><p>iterative motion vector (MV) search (slow)
  779. </p></dd>
  780. <dt>&lsquo;<samp>deblock</samp>&rsquo;</dt>
  781. <dd><p>use strong deblock filter for damaged MBs
  782. </p></dd>
  783. <dt>&lsquo;<samp>favor_inter</samp>&rsquo;</dt>
  784. <dd><p>favor predicting from the previous frame instead of the current
  785. </p></dd>
  786. </dl>
  787. </dd>
  788. <dt>&lsquo;<samp>bits_per_coded_sample <var>integer</var></samp>&rsquo;</dt>
  789. <dt>&lsquo;<samp>pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  790. <dd><p>Set prediction method.
  791. </p>
  792. <p>Possible values:
  793. </p><dl compact="compact">
  794. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  795. <dt>&lsquo;<samp>plane</samp>&rsquo;</dt>
  796. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  797. </dl>
  798. </dd>
  799. <dt>&lsquo;<samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  800. <dd><p>Set sample aspect ratio.
  801. </p>
  802. </dd>
  803. <dt>&lsquo;<samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  804. <dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
  805. </p>
  806. </dd>
  807. <dt>&lsquo;<samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  808. <dd><p>Print specific debug info.
  809. </p>
  810. <p>Possible values:
  811. </p><dl compact="compact">
  812. <dt>&lsquo;<samp>pict</samp>&rsquo;</dt>
  813. <dd><p>picture info
  814. </p></dd>
  815. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  816. <dd><p>rate control
  817. </p></dd>
  818. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  819. <dt>&lsquo;<samp>mb_type</samp>&rsquo;</dt>
  820. <dd><p>macroblock (MB) type
  821. </p></dd>
  822. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  823. <dd><p>per-block quantization parameter (QP)
  824. </p></dd>
  825. <dt>&lsquo;<samp>dct_coeff</samp>&rsquo;</dt>
  826. <dt>&lsquo;<samp>green_metadata</samp>&rsquo;</dt>
  827. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  828. </p>
  829. </dd>
  830. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  831. <dt>&lsquo;<samp>startcode</samp>&rsquo;</dt>
  832. <dt>&lsquo;<samp>er</samp>&rsquo;</dt>
  833. <dd><p>error recognition
  834. </p></dd>
  835. <dt>&lsquo;<samp>mmco</samp>&rsquo;</dt>
  836. <dd><p>memory management control operations (H.264)
  837. </p></dd>
  838. <dt>&lsquo;<samp>bugs</samp>&rsquo;</dt>
  839. <dt>&lsquo;<samp>buffers</samp>&rsquo;</dt>
  840. <dd><p>picture buffer allocations
  841. </p></dd>
  842. <dt>&lsquo;<samp>thread_ops</samp>&rsquo;</dt>
  843. <dd><p>threading operations
  844. </p></dd>
  845. <dt>&lsquo;<samp>nomc</samp>&rsquo;</dt>
  846. <dd><p>skip motion compensation
  847. </p></dd>
  848. </dl>
  849. </dd>
  850. <dt>&lsquo;<samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  851. <dd><p>Set full pel me compare function.
  852. </p>
  853. <p>Possible values:
  854. </p><dl compact="compact">
  855. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  856. <dd><p>sum of absolute differences, fast (default)
  857. </p></dd>
  858. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  859. <dd><p>sum of squared errors
  860. </p></dd>
  861. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  862. <dd><p>sum of absolute Hadamard transformed differences
  863. </p></dd>
  864. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  865. <dd><p>sum of absolute DCT transformed differences
  866. </p></dd>
  867. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  868. <dd><p>sum of squared quantization errors (avoid, low quality)
  869. </p></dd>
  870. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  871. <dd><p>number of bits needed for the block
  872. </p></dd>
  873. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  874. <dd><p>rate distortion optimal, slow
  875. </p></dd>
  876. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  877. <dd><p>0
  878. </p></dd>
  879. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  880. <dd><p>sum of absolute vertical differences
  881. </p></dd>
  882. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  883. <dd><p>sum of squared vertical differences
  884. </p></dd>
  885. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  886. <dd><p>noise preserving sum of squared differences
  887. </p></dd>
  888. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  889. <dd><p>5/3 wavelet, only used in snow
  890. </p></dd>
  891. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  892. <dd><p>9/7 wavelet, only used in snow
  893. </p></dd>
  894. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  895. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  896. </dl>
  897. </dd>
  898. <dt>&lsquo;<samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  899. <dd><p>Set sub pel me compare function.
  900. </p>
  901. <p>Possible values:
  902. </p><dl compact="compact">
  903. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  904. <dd><p>sum of absolute differences, fast (default)
  905. </p></dd>
  906. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  907. <dd><p>sum of squared errors
  908. </p></dd>
  909. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  910. <dd><p>sum of absolute Hadamard transformed differences
  911. </p></dd>
  912. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  913. <dd><p>sum of absolute DCT transformed differences
  914. </p></dd>
  915. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  916. <dd><p>sum of squared quantization errors (avoid, low quality)
  917. </p></dd>
  918. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  919. <dd><p>number of bits needed for the block
  920. </p></dd>
  921. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  922. <dd><p>rate distortion optimal, slow
  923. </p></dd>
  924. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  925. <dd><p>0
  926. </p></dd>
  927. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  928. <dd><p>sum of absolute vertical differences
  929. </p></dd>
  930. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  931. <dd><p>sum of squared vertical differences
  932. </p></dd>
  933. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  934. <dd><p>noise preserving sum of squared differences
  935. </p></dd>
  936. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  937. <dd><p>5/3 wavelet, only used in snow
  938. </p></dd>
  939. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  940. <dd><p>9/7 wavelet, only used in snow
  941. </p></dd>
  942. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  943. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  944. </dl>
  945. </dd>
  946. <dt>&lsquo;<samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  947. <dd><p>Set macroblock compare function.
  948. </p>
  949. <p>Possible values:
  950. </p><dl compact="compact">
  951. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  952. <dd><p>sum of absolute differences, fast (default)
  953. </p></dd>
  954. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  955. <dd><p>sum of squared errors
  956. </p></dd>
  957. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  958. <dd><p>sum of absolute Hadamard transformed differences
  959. </p></dd>
  960. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  961. <dd><p>sum of absolute DCT transformed differences
  962. </p></dd>
  963. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  964. <dd><p>sum of squared quantization errors (avoid, low quality)
  965. </p></dd>
  966. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  967. <dd><p>number of bits needed for the block
  968. </p></dd>
  969. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  970. <dd><p>rate distortion optimal, slow
  971. </p></dd>
  972. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  973. <dd><p>0
  974. </p></dd>
  975. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  976. <dd><p>sum of absolute vertical differences
  977. </p></dd>
  978. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  979. <dd><p>sum of squared vertical differences
  980. </p></dd>
  981. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  982. <dd><p>noise preserving sum of squared differences
  983. </p></dd>
  984. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  985. <dd><p>5/3 wavelet, only used in snow
  986. </p></dd>
  987. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  988. <dd><p>9/7 wavelet, only used in snow
  989. </p></dd>
  990. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  991. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  992. </dl>
  993. </dd>
  994. <dt>&lsquo;<samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  995. <dd><p>Set interlaced dct compare function.
  996. </p>
  997. <p>Possible values:
  998. </p><dl compact="compact">
  999. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  1000. <dd><p>sum of absolute differences, fast (default)
  1001. </p></dd>
  1002. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1003. <dd><p>sum of squared errors
  1004. </p></dd>
  1005. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  1006. <dd><p>sum of absolute Hadamard transformed differences
  1007. </p></dd>
  1008. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  1009. <dd><p>sum of absolute DCT transformed differences
  1010. </p></dd>
  1011. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  1012. <dd><p>sum of squared quantization errors (avoid, low quality)
  1013. </p></dd>
  1014. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  1015. <dd><p>number of bits needed for the block
  1016. </p></dd>
  1017. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1018. <dd><p>rate distortion optimal, slow
  1019. </p></dd>
  1020. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  1021. <dd><p>0
  1022. </p></dd>
  1023. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  1024. <dd><p>sum of absolute vertical differences
  1025. </p></dd>
  1026. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  1027. <dd><p>sum of squared vertical differences
  1028. </p></dd>
  1029. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  1030. <dd><p>noise preserving sum of squared differences
  1031. </p></dd>
  1032. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  1033. <dd><p>5/3 wavelet, only used in snow
  1034. </p></dd>
  1035. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  1036. <dd><p>9/7 wavelet, only used in snow
  1037. </p></dd>
  1038. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  1039. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  1040. </dl>
  1041. </dd>
  1042. <dt>&lsquo;<samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1043. <dd><p>Set diamond type &amp; size for motion estimation.
  1044. </p>
  1045. </dd>
  1046. <dt>&lsquo;<samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1047. <dd><p>Set amount of motion predictors from the previous frame.
  1048. </p>
  1049. </dd>
  1050. <dt>&lsquo;<samp>preme <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1051. <dd><p>Set pre motion estimation.
  1052. </p>
  1053. </dd>
  1054. <dt>&lsquo;<samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1055. <dd><p>Set pre motion estimation compare function.
  1056. </p>
  1057. <p>Possible values:
  1058. </p><dl compact="compact">
  1059. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  1060. <dd><p>sum of absolute differences, fast (default)
  1061. </p></dd>
  1062. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1063. <dd><p>sum of squared errors
  1064. </p></dd>
  1065. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  1066. <dd><p>sum of absolute Hadamard transformed differences
  1067. </p></dd>
  1068. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  1069. <dd><p>sum of absolute DCT transformed differences
  1070. </p></dd>
  1071. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  1072. <dd><p>sum of squared quantization errors (avoid, low quality)
  1073. </p></dd>
  1074. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  1075. <dd><p>number of bits needed for the block
  1076. </p></dd>
  1077. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1078. <dd><p>rate distortion optimal, slow
  1079. </p></dd>
  1080. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  1081. <dd><p>0
  1082. </p></dd>
  1083. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  1084. <dd><p>sum of absolute vertical differences
  1085. </p></dd>
  1086. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  1087. <dd><p>sum of squared vertical differences
  1088. </p></dd>
  1089. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  1090. <dd><p>noise preserving sum of squared differences
  1091. </p></dd>
  1092. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  1093. <dd><p>5/3 wavelet, only used in snow
  1094. </p></dd>
  1095. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  1096. <dd><p>9/7 wavelet, only used in snow
  1097. </p></dd>
  1098. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  1099. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  1100. </dl>
  1101. </dd>
  1102. <dt>&lsquo;<samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1103. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  1104. </p>
  1105. </dd>
  1106. <dt>&lsquo;<samp>subq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1107. <dd><p>Set sub pel motion estimation quality.
  1108. </p>
  1109. </dd>
  1110. <dt>&lsquo;<samp>dtg_active_format <var>integer</var></samp>&rsquo;</dt>
  1111. <dt>&lsquo;<samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1112. <dd><p>Set limit motion vectors range (1023 for DivX player).
  1113. </p>
  1114. </dd>
  1115. <dt>&lsquo;<samp>ibias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1116. <dd><p>Set intra quant bias.
  1117. </p>
  1118. </dd>
  1119. <dt>&lsquo;<samp>pbias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1120. <dd><p>Set inter quant bias.
  1121. </p>
  1122. </dd>
  1123. <dt>&lsquo;<samp>color_table_id <var>integer</var></samp>&rsquo;</dt>
  1124. <dt>&lsquo;<samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  1125. <dt>&lsquo;<samp>coder <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1126. <dd>
  1127. <p>Possible values:
  1128. </p><dl compact="compact">
  1129. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  1130. <dd><p>variable length coder / huffman coder
  1131. </p></dd>
  1132. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  1133. <dd><p>arithmetic coder
  1134. </p></dd>
  1135. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  1136. <dd><p>raw (no encoding)
  1137. </p></dd>
  1138. <dt>&lsquo;<samp>rle</samp>&rsquo;</dt>
  1139. <dd><p>run-length coder
  1140. </p></dd>
  1141. <dt>&lsquo;<samp>deflate</samp>&rsquo;</dt>
  1142. <dd><p>deflate-based coder
  1143. </p></dd>
  1144. </dl>
  1145. </dd>
  1146. <dt>&lsquo;<samp>context <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1147. <dd><p>Set context model.
  1148. </p>
  1149. </dd>
  1150. <dt>&lsquo;<samp>slice_flags <var>integer</var></samp>&rsquo;</dt>
  1151. <dt>&lsquo;<samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1152. <dd><p>Set macroblock decision algorithm (high quality mode).
  1153. </p>
  1154. <p>Possible values:
  1155. </p><dl compact="compact">
  1156. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  1157. <dd><p>use mbcmp (default)
  1158. </p></dd>
  1159. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  1160. <dd><p>use fewest bits
  1161. </p></dd>
  1162. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1163. <dd><p>use best rate distortion
  1164. </p></dd>
  1165. </dl>
  1166. </dd>
  1167. <dt>&lsquo;<samp>stream_codec_tag <var>integer</var></samp>&rsquo;</dt>
  1168. <dt>&lsquo;<samp>sc_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1169. <dd><p>Set scene change threshold.
  1170. </p>
  1171. </dd>
  1172. <dt>&lsquo;<samp>lmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1173. <dd><p>Set min lagrange factor (VBR).
  1174. </p>
  1175. </dd>
  1176. <dt>&lsquo;<samp>lmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1177. <dd><p>Set max lagrange factor (VBR).
  1178. </p>
  1179. </dd>
  1180. <dt>&lsquo;<samp>nr <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1181. <dd><p>Set noise reduction.
  1182. </p>
  1183. </dd>
  1184. <dt>&lsquo;<samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1185. <dd><p>Set number of bits which should be loaded into the rc buffer before
  1186. decoding starts.
  1187. </p>
  1188. </dd>
  1189. <dt>&lsquo;<samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  1190. <dd>
  1191. <p>Possible values:
  1192. </p><dl compact="compact">
  1193. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  1194. <dd><p>Allow non spec compliant speedup tricks.
  1195. </p></dd>
  1196. <dt>&lsquo;<samp>noout</samp>&rsquo;</dt>
  1197. <dd><p>Skip bitstream encoding.
  1198. </p></dd>
  1199. <dt>&lsquo;<samp>ignorecrop</samp>&rsquo;</dt>
  1200. <dd><p>Ignore cropping information from sps.
  1201. </p></dd>
  1202. <dt>&lsquo;<samp>local_header</samp>&rsquo;</dt>
  1203. <dd><p>Place global headers at every keyframe instead of in extradata.
  1204. </p></dd>
  1205. <dt>&lsquo;<samp>chunks</samp>&rsquo;</dt>
  1206. <dd><p>Frame data might be split into multiple chunks.
  1207. </p></dd>
  1208. <dt>&lsquo;<samp>showall</samp>&rsquo;</dt>
  1209. <dd><p>Show all frames before the first keyframe.
  1210. </p></dd>
  1211. <dt>&lsquo;<samp>export_mvs</samp>&rsquo;</dt>
  1212. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1213. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  1214. </p></dd>
  1215. <dt>&lsquo;<samp>skip_manual</samp>&rsquo;</dt>
  1216. <dd><p>Do not skip samples and export skip information as frame side data.
  1217. </p></dd>
  1218. <dt>&lsquo;<samp>ass_ro_flush_noop</samp>&rsquo;</dt>
  1219. <dd><p>Do not reset ASS ReadOrder field on flush.
  1220. </p></dd>
  1221. </dl>
  1222. </dd>
  1223. <dt>&lsquo;<samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
  1224. <dd>
  1225. <p>Possible values:
  1226. </p><dl compact="compact">
  1227. <dt>&lsquo;<samp>mvs</samp>&rsquo;</dt>
  1228. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1229. for codecs that support it. See also &lsquo;<tt>doc/examples/export_mvs.c</tt>&rsquo;.
  1230. </p></dd>
  1231. <dt>&lsquo;<samp>prft</samp>&rsquo;</dt>
  1232. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
  1233. for codecs that support it.
  1234. </p></dd>
  1235. </dl>
  1236. </dd>
  1237. <dt>&lsquo;<samp>error <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1238. <dt>&lsquo;<samp>qns <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1239. <dd><p>Deprecated, use mpegvideo private options instead.
  1240. </p>
  1241. </dd>
  1242. <dt>&lsquo;<samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1243. <dd><p>Set the number of threads to be used, in case the selected codec
  1244. implementation supports multi-threading.
  1245. </p>
  1246. <p>Possible values:
  1247. </p><dl compact="compact">
  1248. <dt>&lsquo;<samp>auto, 0</samp>&rsquo;</dt>
  1249. <dd><p>automatically select the number of threads to set
  1250. </p></dd>
  1251. </dl>
  1252. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  1253. </p>
  1254. </dd>
  1255. <dt>&lsquo;<samp>me_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1256. <dd><p>Set motion estimation threshold.
  1257. </p>
  1258. </dd>
  1259. <dt>&lsquo;<samp>mb_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1260. <dd><p>Set macroblock threshold.
  1261. </p>
  1262. </dd>
  1263. <dt>&lsquo;<samp>dc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1264. <dd><p>Set intra_dc_precision.
  1265. </p>
  1266. </dd>
  1267. <dt>&lsquo;<samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1268. <dd><p>Set nsse weight.
  1269. </p>
  1270. </dd>
  1271. <dt>&lsquo;<samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1272. <dd><p>Set number of macroblock rows at the top which are skipped.
  1273. </p>
  1274. </dd>
  1275. <dt>&lsquo;<samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1276. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  1277. </p>
  1278. </dd>
  1279. <dt>&lsquo;<samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  1280. <dd>
  1281. <p>Possible values:
  1282. </p><dl compact="compact">
  1283. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  1284. <dt>&lsquo;<samp>aac_main</samp>&rsquo;</dt>
  1285. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  1286. <dt>&lsquo;<samp>aac_ssr</samp>&rsquo;</dt>
  1287. <dt>&lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
  1288. <dt>&lsquo;<samp>aac_he</samp>&rsquo;</dt>
  1289. <dt>&lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
  1290. <dt>&lsquo;<samp>aac_ld</samp>&rsquo;</dt>
  1291. <dt>&lsquo;<samp>aac_eld</samp>&rsquo;</dt>
  1292. <dt>&lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</dt>
  1293. <dt>&lsquo;<samp>mpeg2_aac_he</samp>&rsquo;</dt>
  1294. <dt>&lsquo;<samp>mpeg4_sp</samp>&rsquo;</dt>
  1295. <dt>&lsquo;<samp>mpeg4_core</samp>&rsquo;</dt>
  1296. <dt>&lsquo;<samp>mpeg4_main</samp>&rsquo;</dt>
  1297. <dt>&lsquo;<samp>mpeg4_asp</samp>&rsquo;</dt>
  1298. <dt>&lsquo;<samp>dts</samp>&rsquo;</dt>
  1299. <dt>&lsquo;<samp>dts_es</samp>&rsquo;</dt>
  1300. <dt>&lsquo;<samp>dts_96_24</samp>&rsquo;</dt>
  1301. <dt>&lsquo;<samp>dts_hd_hra</samp>&rsquo;</dt>
  1302. <dt>&lsquo;<samp>dts_hd_ma</samp>&rsquo;</dt>
  1303. </dl>
  1304. </dd>
  1305. <dt>&lsquo;<samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  1306. <dd>
  1307. <p>Possible values:
  1308. </p><dl compact="compact">
  1309. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  1310. </dl>
  1311. </dd>
  1312. <dt>&lsquo;<samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
  1313. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1314. </p>
  1315. </dd>
  1316. <dt>&lsquo;<samp>skip_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1317. <dd><p>Set frame skip threshold.
  1318. </p>
  1319. </dd>
  1320. <dt>&lsquo;<samp>skip_factor <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1321. <dd><p>Set frame skip factor.
  1322. </p>
  1323. </dd>
  1324. <dt>&lsquo;<samp>skip_exp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1325. <dd><p>Set frame skip exponent.
  1326. Negative values behave identical to the corresponding positive ones, except
  1327. that the score is normalized.
  1328. Positive values exist primarily for compatibility reasons and are not so useful.
  1329. </p>
  1330. </dd>
  1331. <dt>&lsquo;<samp>skipcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1332. <dd><p>Set frame skip compare function.
  1333. </p>
  1334. <p>Possible values:
  1335. </p><dl compact="compact">
  1336. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  1337. <dd><p>sum of absolute differences, fast (default)
  1338. </p></dd>
  1339. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1340. <dd><p>sum of squared errors
  1341. </p></dd>
  1342. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  1343. <dd><p>sum of absolute Hadamard transformed differences
  1344. </p></dd>
  1345. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  1346. <dd><p>sum of absolute DCT transformed differences
  1347. </p></dd>
  1348. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  1349. <dd><p>sum of squared quantization errors (avoid, low quality)
  1350. </p></dd>
  1351. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  1352. <dd><p>number of bits needed for the block
  1353. </p></dd>
  1354. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1355. <dd><p>rate distortion optimal, slow
  1356. </p></dd>
  1357. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  1358. <dd><p>0
  1359. </p></dd>
  1360. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  1361. <dd><p>sum of absolute vertical differences
  1362. </p></dd>
  1363. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  1364. <dd><p>sum of squared vertical differences
  1365. </p></dd>
  1366. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  1367. <dd><p>noise preserving sum of squared differences
  1368. </p></dd>
  1369. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  1370. <dd><p>5/3 wavelet, only used in snow
  1371. </p></dd>
  1372. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  1373. <dd><p>9/7 wavelet, only used in snow
  1374. </p></dd>
  1375. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  1376. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  1377. </dl>
  1378. </dd>
  1379. <dt>&lsquo;<samp>border_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1380. <dd><p>Increase the quantizer for macroblocks close to borders.
  1381. </p>
  1382. </dd>
  1383. <dt>&lsquo;<samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1384. <dd><p>Set min macroblock lagrange factor (VBR).
  1385. </p>
  1386. </dd>
  1387. <dt>&lsquo;<samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1388. <dd><p>Set max macroblock lagrange factor (VBR).
  1389. </p>
  1390. </dd>
  1391. <dt>&lsquo;<samp>mepc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1392. <dd><p>Set motion estimation bitrate penalty compensation (1.0 = 256).
  1393. </p>
  1394. </dd>
  1395. <dt>&lsquo;<samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1396. <dt>&lsquo;<samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1397. <dt>&lsquo;<samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1398. <dd>
  1399. <p>Make decoder discard processing depending on the frame type selected
  1400. by the option value.
  1401. </p>
  1402. <p>&lsquo;<samp>skip_loop_filter</samp>&rsquo; skips frame loop filtering, &lsquo;<samp>skip_idct</samp>&rsquo;
  1403. skips frame IDCT/dequantization, &lsquo;<samp>skip_frame</samp>&rsquo; skips decoding.
  1404. </p>
  1405. <p>Possible values:
  1406. </p><dl compact="compact">
  1407. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  1408. <dd><p>Discard no frame.
  1409. </p>
  1410. </dd>
  1411. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  1412. <dd><p>Discard useless frames like 0-sized frames.
  1413. </p>
  1414. </dd>
  1415. <dt>&lsquo;<samp>noref</samp>&rsquo;</dt>
  1416. <dd><p>Discard all non-reference frames.
  1417. </p>
  1418. </dd>
  1419. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  1420. <dd><p>Discard all bidirectional frames.
  1421. </p>
  1422. </dd>
  1423. <dt>&lsquo;<samp>nokey</samp>&rsquo;</dt>
  1424. <dd><p>Discard all frames excepts keyframes.
  1425. </p>
  1426. </dd>
  1427. <dt>&lsquo;<samp>nointra</samp>&rsquo;</dt>
  1428. <dd><p>Discard all frames except I frames.
  1429. </p>
  1430. </dd>
  1431. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  1432. <dd><p>Discard all frames.
  1433. </p></dd>
  1434. </dl>
  1435. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  1436. </p>
  1437. </dd>
  1438. <dt>&lsquo;<samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1439. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  1440. </p>
  1441. </dd>
  1442. <dt>&lsquo;<samp>brd_scale <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1443. <dd><p>Downscale frames for dynamic B-frame decision.
  1444. </p>
  1445. </dd>
  1446. <dt>&lsquo;<samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1447. <dd><p>Set minimum interval between IDR-frames.
  1448. </p>
  1449. </dd>
  1450. <dt>&lsquo;<samp>refs <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1451. <dd><p>Set reference frames to consider for motion compensation.
  1452. </p>
  1453. </dd>
  1454. <dt>&lsquo;<samp>chromaoffset <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1455. <dd><p>Set chroma qp offset from luma.
  1456. </p>
  1457. </dd>
  1458. <dt>&lsquo;<samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  1459. <dd><p>Set rate-distortion optimal quantization.
  1460. </p>
  1461. </dd>
  1462. <dt>&lsquo;<samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1463. <dt>&lsquo;<samp>b_sensitivity <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1464. <dd><p>Adjust sensitivity of b_frame_strategy 1.
  1465. </p>
  1466. </dd>
  1467. <dt>&lsquo;<samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
  1468. <dt>&lsquo;<samp>min_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  1469. <dt>&lsquo;<samp>max_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  1470. <dt>&lsquo;<samp>timecode_frame_start <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1471. <dd><p>Set GOP timecode frame start number, in non drop frame format.
  1472. </p>
  1473. </dd>
  1474. <dt>&lsquo;<samp>request_channels <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  1475. <dd><p>Set desired number of audio channels.
  1476. </p>
  1477. </dd>
  1478. <dt>&lsquo;<samp>bits_per_raw_sample <var>integer</var></samp>&rsquo;</dt>
  1479. <dt>&lsquo;<samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
  1480. <dd>
  1481. <p>Possible values:
  1482. </p></dd>
  1483. <dt>&lsquo;<samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  1484. <dd>
  1485. <p>Possible values:
  1486. </p></dd>
  1487. <dt>&lsquo;<samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1488. <dt>&lsquo;<samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1489. <dt>&lsquo;<samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
  1490. <dt>&lsquo;<samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1491. <dd><p>Possible values:
  1492. </p><dl compact="compact">
  1493. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1494. <dd><p>BT.709
  1495. </p></dd>
  1496. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  1497. <dd><p>BT.470 M
  1498. </p></dd>
  1499. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  1500. <dd><p>BT.470 BG
  1501. </p></dd>
  1502. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1503. <dd><p>SMPTE 170 M
  1504. </p></dd>
  1505. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1506. <dd><p>SMPTE 240 M
  1507. </p></dd>
  1508. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  1509. <dd><p>Film
  1510. </p></dd>
  1511. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  1512. <dd><p>BT.2020
  1513. </p></dd>
  1514. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  1515. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  1516. <dd><p>SMPTE ST 428-1
  1517. </p></dd>
  1518. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  1519. <dd><p>SMPTE 431-2
  1520. </p></dd>
  1521. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  1522. <dd><p>SMPTE 432-1
  1523. </p></dd>
  1524. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  1525. <dd><p>JEDEC P22
  1526. </p></dd>
  1527. </dl>
  1528. </dd>
  1529. <dt>&lsquo;<samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1530. <dd><p>Possible values:
  1531. </p><dl compact="compact">
  1532. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1533. <dd><p>BT.709
  1534. </p></dd>
  1535. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  1536. <dd><p>BT.470 M
  1537. </p></dd>
  1538. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  1539. <dd><p>BT.470 BG
  1540. </p></dd>
  1541. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1542. <dd><p>SMPTE 170 M
  1543. </p></dd>
  1544. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1545. <dd><p>SMPTE 240 M
  1546. </p></dd>
  1547. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  1548. <dd><p>Linear
  1549. </p></dd>
  1550. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  1551. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  1552. <dd><p>Log
  1553. </p></dd>
  1554. <dt>&lsquo;<samp>log_sqrt</samp>&rsquo;</dt>
  1555. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  1556. <dd><p>Log square root
  1557. </p></dd>
  1558. <dt>&lsquo;<samp>iec61966_2_4</samp>&rsquo;</dt>
  1559. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  1560. <dd><p>IEC 61966-2-4
  1561. </p></dd>
  1562. <dt>&lsquo;<samp>bt1361</samp>&rsquo;</dt>
  1563. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  1564. <dd><p>BT.1361
  1565. </p></dd>
  1566. <dt>&lsquo;<samp>iec61966_2_1</samp>&rsquo;</dt>
  1567. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  1568. <dd><p>IEC 61966-2-1
  1569. </p></dd>
  1570. <dt>&lsquo;<samp>bt2020_10</samp>&rsquo;</dt>
  1571. <dt>&lsquo;<samp>bt2020_10bit</samp>&rsquo;</dt>
  1572. <dd><p>BT.2020 - 10 bit
  1573. </p></dd>
  1574. <dt>&lsquo;<samp>bt2020_12</samp>&rsquo;</dt>
  1575. <dt>&lsquo;<samp>bt2020_12bit</samp>&rsquo;</dt>
  1576. <dd><p>BT.2020 - 12 bit
  1577. </p></dd>
  1578. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  1579. <dd><p>SMPTE ST 2084
  1580. </p></dd>
  1581. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  1582. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  1583. <dd><p>SMPTE ST 428-1
  1584. </p></dd>
  1585. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  1586. <dd><p>ARIB STD-B67
  1587. </p></dd>
  1588. </dl>
  1589. </dd>
  1590. <dt>&lsquo;<samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1591. <dd><p>Possible values:
  1592. </p><dl compact="compact">
  1593. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  1594. <dd><p>RGB
  1595. </p></dd>
  1596. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1597. <dd><p>BT.709
  1598. </p></dd>
  1599. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  1600. <dd><p>FCC
  1601. </p></dd>
  1602. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  1603. <dd><p>BT.470 BG
  1604. </p></dd>
  1605. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1606. <dd><p>SMPTE 170 M
  1607. </p></dd>
  1608. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1609. <dd><p>SMPTE 240 M
  1610. </p></dd>
  1611. <dt>&lsquo;<samp>ycocg</samp>&rsquo;</dt>
  1612. <dd><p>YCOCG
  1613. </p></dd>
  1614. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  1615. <dt>&lsquo;<samp>bt2020_ncl</samp>&rsquo;</dt>
  1616. <dd><p>BT.2020 NCL
  1617. </p></dd>
  1618. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  1619. <dt>&lsquo;<samp>bt2020_cl</samp>&rsquo;</dt>
  1620. <dd><p>BT.2020 CL
  1621. </p></dd>
  1622. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  1623. <dd><p>SMPTE 2085
  1624. </p></dd>
  1625. </dl>
  1626. </dd>
  1627. <dt>&lsquo;<samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1628. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1629. color_range the input has.
  1630. Possible values:
  1631. </p><dl compact="compact">
  1632. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  1633. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  1634. <dd><p>MPEG (219*2^(n-8))
  1635. </p></dd>
  1636. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  1637. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  1638. <dd><p>JPEG (2^n-1)
  1639. </p></dd>
  1640. </dl>
  1641. </dd>
  1642. <dt>&lsquo;<samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1643. <dd><p>Possible values:
  1644. </p><dl compact="compact">
  1645. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  1646. <dt>&lsquo;<samp>center</samp>&rsquo;</dt>
  1647. <dt>&lsquo;<samp>topleft</samp>&rsquo;</dt>
  1648. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  1649. <dt>&lsquo;<samp>bottomleft</samp>&rsquo;</dt>
  1650. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  1651. </dl>
  1652. </dd>
  1653. <dt>&lsquo;<samp>log_level_offset <var>integer</var></samp>&rsquo;</dt>
  1654. <dd><p>Set the log level offset.
  1655. </p>
  1656. </dd>
  1657. <dt>&lsquo;<samp>slices <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
  1658. <dd><p>Number of slices, used in parallelized encoding.
  1659. </p>
  1660. </dd>
  1661. <dt>&lsquo;<samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1662. <dd><p>Select which multithreading methods to use.
  1663. </p>
  1664. <p>Use of &lsquo;<samp>frame</samp>&rsquo; will increase decoding delay by one frame per
  1665. thread, so clients which cannot provide future frames should not use
  1666. it.
  1667. </p>
  1668. <p>Possible values:
  1669. </p><dl compact="compact">
  1670. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  1671. <dd><p>Decode more than one part of a single frame at once.
  1672. </p>
  1673. <p>Multithreading using slices works only when the video was encoded with
  1674. slices.
  1675. </p>
  1676. </dd>
  1677. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  1678. <dd><p>Decode more than one frame at once.
  1679. </p></dd>
  1680. </dl>
  1681. <p>Default value is &lsquo;<samp>slice+frame</samp>&rsquo;.
  1682. </p>
  1683. </dd>
  1684. <dt>&lsquo;<samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
  1685. <dd><p>Set audio service type.
  1686. </p>
  1687. <p>Possible values:
  1688. </p><dl compact="compact">
  1689. <dt>&lsquo;<samp>ma</samp>&rsquo;</dt>
  1690. <dd><p>Main Audio Service
  1691. </p></dd>
  1692. <dt>&lsquo;<samp>ef</samp>&rsquo;</dt>
  1693. <dd><p>Effects
  1694. </p></dd>
  1695. <dt>&lsquo;<samp>vi</samp>&rsquo;</dt>
  1696. <dd><p>Visually Impaired
  1697. </p></dd>
  1698. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  1699. <dd><p>Hearing Impaired
  1700. </p></dd>
  1701. <dt>&lsquo;<samp>di</samp>&rsquo;</dt>
  1702. <dd><p>Dialogue
  1703. </p></dd>
  1704. <dt>&lsquo;<samp>co</samp>&rsquo;</dt>
  1705. <dd><p>Commentary
  1706. </p></dd>
  1707. <dt>&lsquo;<samp>em</samp>&rsquo;</dt>
  1708. <dd><p>Emergency
  1709. </p></dd>
  1710. <dt>&lsquo;<samp>vo</samp>&rsquo;</dt>
  1711. <dd><p>Voice Over
  1712. </p></dd>
  1713. <dt>&lsquo;<samp>ka</samp>&rsquo;</dt>
  1714. <dd><p>Karaoke
  1715. </p></dd>
  1716. </dl>
  1717. </dd>
  1718. <dt>&lsquo;<samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
  1719. <dd><p>Set sample format audio decoders should prefer. Default value is
  1720. <code>none</code>.
  1721. </p>
  1722. </dd>
  1723. <dt>&lsquo;<samp>pkt_timebase <var>rational number</var></samp>&rsquo;</dt>
  1724. <dt>&lsquo;<samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp>&rsquo;</dt>
  1725. <dd><p>Set the input subtitles character encoding.
  1726. </p>
  1727. </dd>
  1728. <dt>&lsquo;<samp>field_order <var>field_order</var> (<em>video</em>)</samp>&rsquo;</dt>
  1729. <dd><p>Set/override the field order of the video.
  1730. Possible values:
  1731. </p><dl compact="compact">
  1732. <dt>&lsquo;<samp>progressive</samp>&rsquo;</dt>
  1733. <dd><p>Progressive video
  1734. </p></dd>
  1735. <dt>&lsquo;<samp>tt</samp>&rsquo;</dt>
  1736. <dd><p>Interlaced video, top field coded and displayed first
  1737. </p></dd>
  1738. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  1739. <dd><p>Interlaced video, bottom field coded and displayed first
  1740. </p></dd>
  1741. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  1742. <dd><p>Interlaced video, top coded first, bottom displayed first
  1743. </p></dd>
  1744. <dt>&lsquo;<samp>bt</samp>&rsquo;</dt>
  1745. <dd><p>Interlaced video, bottom coded first, top displayed first
  1746. </p></dd>
  1747. </dl>
  1748. </dd>
  1749. <dt>&lsquo;<samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1750. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1751. &lsquo;<samp>gray</samp>&rsquo; flag in the &lsquo;<samp>flags</samp>&rsquo; option which skips chroma information
  1752. instead of alpha. Default is 0.
  1753. </p>
  1754. </dd>
  1755. <dt>&lsquo;<samp>codec_whitelist <var>list</var> (<em>input</em>)</samp>&rsquo;</dt>
  1756. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1757. </p>
  1758. </dd>
  1759. <dt>&lsquo;<samp>dump_separator <var>string</var> (<em>input</em>)</samp>&rsquo;</dt>
  1760. <dd><p>Separator used to separate the fields printed on the command line about the
  1761. Stream parameters.
  1762. For example, to separate the fields with newlines and indentation:
  1763. </p><div class="example">
  1764. <pre class="example">ffprobe -dump_separator &quot;
  1765. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1766. </pre></div>
  1767. </dd>
  1768. <dt>&lsquo;<samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
  1769. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1770. memory failures due to large images.
  1771. </p>
  1772. </dd>
  1773. <dt>&lsquo;<samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
  1774. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1775. alignment for the left and top parameters. If the alignment is not met the
  1776. cropping will be partially applied to maintain alignment.
  1777. Default is 1 (enabled).
  1778. Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1779. CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1780. decoders will not apply left/top Cropping.
  1781. </p>
  1782. </dd>
  1783. </dl>
  1784. <a name="Decoders"></a>
  1785. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Decoders">3 Decoders</a></h1>
  1786. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1787. multimedia streams.
  1788. </p>
  1789. <p>When you configure your FFmpeg build, all the supported native decoders
  1790. are enabled by default. Decoders requiring an external library must be enabled
  1791. manually via the corresponding <code>--enable-lib</code> option. You can list all
  1792. available decoders using the configure option <code>--list-decoders</code>.
  1793. </p>
  1794. <p>You can disable all the decoders with the configure option
  1795. <code>--disable-decoders</code> and selectively enable / disable single decoders
  1796. with the options <code>--enable-decoder=<var>DECODER</var></code> /
  1797. <code>--disable-decoder=<var>DECODER</var></code>.
  1798. </p>
  1799. <p>The option <code>-decoders</code> of the ff* tools will display the list of
  1800. enabled decoders.
  1801. </p>
  1802. <a name="Video-Decoders"></a>
  1803. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Video-Decoders">4 Video Decoders</a></h1>
  1804. <p>A description of some of the currently available video decoders
  1805. follows.
  1806. </p>
  1807. <a name="rawvideo"></a>
  1808. <h2 class="section"><a href="ffmpeg-codecs.html#toc-rawvideo">4.1 rawvideo</a></h2>
  1809. <p>Raw video decoder.
  1810. </p>
  1811. <p>This decoder decodes rawvideo streams.
  1812. </p>
  1813. <a name="Options-31"></a>
  1814. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-31">4.1.1 Options</a></h3>
  1815. <dl compact="compact">
  1816. <dt>&lsquo;<samp>top <var>top_field_first</var></samp>&rsquo;</dt>
  1817. <dd><p>Specify the assumed field type of the input video.
  1818. </p><dl compact="compact">
  1819. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  1820. <dd><p>the video is assumed to be progressive (default)
  1821. </p></dd>
  1822. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  1823. <dd><p>bottom-field-first is assumed
  1824. </p></dd>
  1825. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  1826. <dd><p>top-field-first is assumed
  1827. </p></dd>
  1828. </dl>
  1829. </dd>
  1830. </dl>
  1831. <a name="libdav1d"></a>
  1832. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libdav1d">4.2 libdav1d</a></h2>
  1833. <p>dav1d AV1 decoder.
  1834. </p>
  1835. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1836. Requires the presence of the libdav1d headers and library during configuration.
  1837. You need to explicitly configure the build with <code>--enable-libdav1d</code>.
  1838. </p>
  1839. <a name="Options-29"></a>
  1840. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-29">4.2.1 Options</a></h3>
  1841. <p>The following options are supported by the libdav1d wrapper.
  1842. </p>
  1843. <dl compact="compact">
  1844. <dt>&lsquo;<samp>framethreads</samp>&rsquo;</dt>
  1845. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1846. </p>
  1847. </dd>
  1848. <dt>&lsquo;<samp>tilethreads</samp>&rsquo;</dt>
  1849. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  1850. </p>
  1851. </dd>
  1852. <dt>&lsquo;<samp>filmgrain</samp>&rsquo;</dt>
  1853. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1854. internal default of the library.
  1855. </p>
  1856. </dd>
  1857. <dt>&lsquo;<samp>oppoint</samp>&rsquo;</dt>
  1858. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  1859. internal default of the library.
  1860. </p>
  1861. </dd>
  1862. <dt>&lsquo;<samp>alllayers</samp>&rsquo;</dt>
  1863. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  1864. </p>
  1865. </dd>
  1866. </dl>
  1867. <a name="libdavs2"></a>
  1868. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libdavs2">4.3 libdavs2</a></h2>
  1869. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  1870. </p>
  1871. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  1872. </p>
  1873. <a name="Audio-Decoders"></a>
  1874. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Audio-Decoders">5 Audio Decoders</a></h1>
  1875. <p>A description of some of the currently available audio decoders
  1876. follows.
  1877. </p>
  1878. <a name="ac3"></a>
  1879. <h2 class="section"><a href="ffmpeg-codecs.html#toc-ac3">5.1 ac3</a></h2>
  1880. <p>AC-3 audio decoder.
  1881. </p>
  1882. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1883. the undocumented RealAudio 3 (a.k.a. dnet).
  1884. </p>
  1885. <a name="AC_002d3-Decoder-Options"></a>
  1886. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></h3>
  1887. <dl compact="compact">
  1888. <dt>&lsquo;<samp>-drc_scale <var>value</var></samp>&rsquo;</dt>
  1889. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1890. from the AC-3 stream. This factor is applied exponentially.
  1891. There are 3 notable scale factor ranges:
  1892. </p><dl compact="compact">
  1893. <dt>&lsquo;<samp>drc_scale == 0</samp>&rsquo;</dt>
  1894. <dd><p>DRC disabled. Produces full range audio.
  1895. </p></dd>
  1896. <dt>&lsquo;<samp>0 &lt; drc_scale &lt;= 1</samp>&rsquo;</dt>
  1897. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1898. Audio reproduction is between full range and full compression.
  1899. </p></dd>
  1900. <dt>&lsquo;<samp>drc_scale &gt; 1</samp>&rsquo;</dt>
  1901. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1902. Loud sounds are fully compressed. Soft sounds are enhanced.
  1903. </p></dd>
  1904. </dl>
  1905. </dd>
  1906. </dl>
  1907. <a name="flac-2"></a>
  1908. <h2 class="section"><a href="ffmpeg-codecs.html#toc-flac-2">5.2 flac</a></h2>
  1909. <p>FLAC audio decoder.
  1910. </p>
  1911. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1912. </p>
  1913. <a name="FLAC-Decoder-options"></a>
  1914. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></h3>
  1915. <dl compact="compact">
  1916. <dt>&lsquo;<samp>-use_buggy_lpc</samp>&rsquo;</dt>
  1917. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1918. (like the default value). This option makes it possible to decode such streams
  1919. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1920. </p>
  1921. </dd>
  1922. </dl>
  1923. <a name="ffwavesynth"></a>
  1924. <h2 class="section"><a href="ffmpeg-codecs.html#toc-ffwavesynth">5.3 ffwavesynth</a></h2>
  1925. <p>Internal wave synthesizer.
  1926. </p>
  1927. <p>This decoder generates wave patterns according to predefined sequences. Its
  1928. use is purely internal and the format of the data it accepts is not publicly
  1929. documented.
  1930. </p>
  1931. <a name="libcelt"></a>
  1932. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libcelt">5.4 libcelt</a></h2>
  1933. <p>libcelt decoder wrapper.
  1934. </p>
  1935. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1936. Requires the presence of the libcelt headers and library during configuration.
  1937. You need to explicitly configure the build with <code>--enable-libcelt</code>.
  1938. </p>
  1939. <a name="libgsm"></a>
  1940. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libgsm">5.5 libgsm</a></h2>
  1941. <p>libgsm decoder wrapper.
  1942. </p>
  1943. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1944. the presence of the libgsm headers and library during configuration. You need
  1945. to explicitly configure the build with <code>--enable-libgsm</code>.
  1946. </p>
  1947. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1948. </p>
  1949. <a name="libilbc"></a>
  1950. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libilbc">5.6 libilbc</a></h2>
  1951. <p>libilbc decoder wrapper.
  1952. </p>
  1953. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1954. audio codec. Requires the presence of the libilbc headers and library during
  1955. configuration. You need to explicitly configure the build with
  1956. <code>--enable-libilbc</code>.
  1957. </p>
  1958. <a name="Options-4"></a>
  1959. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-4">5.6.1 Options</a></h3>
  1960. <p>The following option is supported by the libilbc wrapper.
  1961. </p>
  1962. <dl compact="compact">
  1963. <dt>&lsquo;<samp>enhance</samp>&rsquo;</dt>
  1964. <dd>
  1965. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1966. value is 0 (disabled).
  1967. </p>
  1968. </dd>
  1969. </dl>
  1970. <a name="libopencore_002damrnb"></a>
  1971. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrnb">5.7 libopencore-amrnb</a></h2>
  1972. <p>libopencore-amrnb decoder wrapper.
  1973. </p>
  1974. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1975. Narrowband audio codec. Using it requires the presence of the
  1976. libopencore-amrnb headers and library during configuration. You need to
  1977. explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
  1978. </p>
  1979. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1980. without this library.
  1981. </p>
  1982. <a name="libopencore_002damrwb"></a>
  1983. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrwb">5.8 libopencore-amrwb</a></h2>
  1984. <p>libopencore-amrwb decoder wrapper.
  1985. </p>
  1986. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1987. Wideband audio codec. Using it requires the presence of the
  1988. libopencore-amrwb headers and library during configuration. You need to
  1989. explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
  1990. </p>
  1991. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1992. without this library.
  1993. </p>
  1994. <a name="libopus"></a>
  1995. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopus">5.9 libopus</a></h2>
  1996. <p>libopus decoder wrapper.
  1997. </p>
  1998. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1999. Requires the presence of the libopus headers and library during
  2000. configuration. You need to explicitly configure the build with
  2001. <code>--enable-libopus</code>.
  2002. </p>
  2003. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  2004. without this library.
  2005. </p>
  2006. <a name="Subtitles-Decoders"></a>
  2007. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Subtitles-Decoders">6 Subtitles Decoders</a></h1>
  2008. <a name="libaribb24"></a>
  2009. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libaribb24">6.1 libaribb24</a></h2>
  2010. <p>ARIB STD-B24 caption decoder.
  2011. </p>
  2012. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  2013. </p>
  2014. <a name="libaribb24-Decoder-Options"></a>
  2015. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></h3>
  2016. <dl compact="compact">
  2017. <dt>&lsquo;<samp>-aribb24-base-path <var>path</var></samp>&rsquo;</dt>
  2018. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  2019. configuration files (for custom unicode conversions), and for dumping of
  2020. non-text symbols as images under that location.
  2021. </p>
  2022. <p>Unset by default.
  2023. </p>
  2024. </dd>
  2025. <dt>&lsquo;<samp>-aribb24-skip-ruby-text <var>boolean</var></samp>&rsquo;</dt>
  2026. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  2027. text.
  2028. </p>
  2029. <p>Enabled by default.
  2030. </p>
  2031. </dd>
  2032. </dl>
  2033. <a name="dvbsub"></a>
  2034. <h2 class="section"><a href="ffmpeg-codecs.html#toc-dvbsub">6.2 dvbsub</a></h2>
  2035. <a name="Options-16"></a>
  2036. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-16">6.2.1 Options</a></h3>
  2037. <dl compact="compact">
  2038. <dt>&lsquo;<samp>compute_clut</samp>&rsquo;</dt>
  2039. <dd><dl compact="compact">
  2040. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  2041. <dd><p>Compute clut if no matching CLUT is in the stream.
  2042. </p></dd>
  2043. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2044. <dd><p>Never compute CLUT
  2045. </p></dd>
  2046. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2047. <dd><p>Always compute CLUT and override the one provided in the stream.
  2048. </p></dd>
  2049. </dl>
  2050. </dd>
  2051. <dt>&lsquo;<samp>dvb_substream</samp>&rsquo;</dt>
  2052. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  2053. </p>
  2054. </dd>
  2055. </dl>
  2056. <a name="dvdsub"></a>
  2057. <h2 class="section"><a href="ffmpeg-codecs.html#toc-dvdsub">6.3 dvdsub</a></h2>
  2058. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  2059. also be found in VobSub file pairs and in some Matroska files.
  2060. </p>
  2061. <a name="Options-30"></a>
  2062. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-30">6.3.1 Options</a></h3>
  2063. <dl compact="compact">
  2064. <dt>&lsquo;<samp>palette</samp>&rsquo;</dt>
  2065. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  2066. palette is normally specified in the index file; in Matroska, the palette is
  2067. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  2068. palette is stored in the IFO file, and therefore not available when reading
  2069. from dumped VOB files.
  2070. </p>
  2071. <p>The format for this option is a string containing 16 24-bits hexadecimal
  2072. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  2073. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  2074. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  2075. </p>
  2076. </dd>
  2077. <dt>&lsquo;<samp>ifo_palette</samp>&rsquo;</dt>
  2078. <dd><p>Specify the IFO file from which the global palette is obtained.
  2079. (experimental)
  2080. </p>
  2081. </dd>
  2082. <dt>&lsquo;<samp>forced_subs_only</samp>&rsquo;</dt>
  2083. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  2084. and non-forced subtitles in the same track. Setting this flag to <code>1</code>
  2085. will only keep the forced subtitles. Default value is <code>0</code>.
  2086. </p></dd>
  2087. </dl>
  2088. <a name="libzvbi_002dteletext"></a>
  2089. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libzvbi_002dteletext">6.4 libzvbi-teletext</a></h2>
  2090. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  2091. subtitles. Requires the presence of the libzvbi headers and library during
  2092. configuration. You need to explicitly configure the build with
  2093. <code>--enable-libzvbi</code>.
  2094. </p>
  2095. <a name="Options-35"></a>
  2096. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-35">6.4.1 Options</a></h3>
  2097. <dl compact="compact">
  2098. <dt>&lsquo;<samp>txt_page</samp>&rsquo;</dt>
  2099. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  2100. list are dropped. You may use the special <code>*</code> string to match all pages,
  2101. or <code>subtitle</code> to match all subtitle pages.
  2102. Default value is *.
  2103. </p></dd>
  2104. <dt>&lsquo;<samp>txt_default_region</samp>&rsquo;</dt>
  2105. <dd><p>Set default G0 character set used for decoding, a value between 0 and 80 (see
  2106. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  2107. override the libzvbi default. This option is needed for some legacy level 1.0
  2108. transmissions which cannot signal the proper charset.
  2109. </p></dd>
  2110. <dt>&lsquo;<samp>txt_chop_top</samp>&rsquo;</dt>
  2111. <dd><p>Discards the top teletext line. Default value is 1.
  2112. </p></dd>
  2113. <dt>&lsquo;<samp>txt_format</samp>&rsquo;</dt>
  2114. <dd><p>Specifies the format of the decoded subtitles.
  2115. </p><dl compact="compact">
  2116. <dt>&lsquo;<samp>bitmap</samp>&rsquo;</dt>
  2117. <dd><p>The default format, you should use this for teletext pages, because certain
  2118. graphics and colors cannot be expressed in simple text or even ASS.
  2119. </p></dd>
  2120. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  2121. <dd><p>Simple text based output without formatting.
  2122. </p></dd>
  2123. <dt>&lsquo;<samp>ass</samp>&rsquo;</dt>
  2124. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  2125. different styles, subtitle pages are stripped down to text, but an effort is
  2126. made to keep the text alignment and the formatting.
  2127. </p></dd>
  2128. </dl>
  2129. </dd>
  2130. <dt>&lsquo;<samp>txt_left</samp>&rsquo;</dt>
  2131. <dd><p>X offset of generated bitmaps, default is 0.
  2132. </p></dd>
  2133. <dt>&lsquo;<samp>txt_top</samp>&rsquo;</dt>
  2134. <dd><p>Y offset of generated bitmaps, default is 0.
  2135. </p></dd>
  2136. <dt>&lsquo;<samp>txt_chop_spaces</samp>&rsquo;</dt>
  2137. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  2138. text. This option is useful for teletext based subtitles where empty spaces may
  2139. be present at the start or at the end of the lines or empty lines may be
  2140. present between the subtitle lines because of double-sized teletext characters.
  2141. Default value is 1.
  2142. </p></dd>
  2143. <dt>&lsquo;<samp>txt_duration</samp>&rsquo;</dt>
  2144. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2145. milliseconds. Default value is -1 which means infinity or until the next
  2146. subtitle event comes.
  2147. </p></dd>
  2148. <dt>&lsquo;<samp>txt_transparent</samp>&rsquo;</dt>
  2149. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2150. is 0 which means an opaque background.
  2151. </p></dd>
  2152. <dt>&lsquo;<samp>txt_opacity</samp>&rsquo;</dt>
  2153. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2154. &lsquo;<samp>txt_transparent</samp>&rsquo; is not set, it only affects characters between a start
  2155. box and an end box, typically subtitles. Default value is 0 if
  2156. &lsquo;<samp>txt_transparent</samp>&rsquo; is set, 255 otherwise.
  2157. </p>
  2158. </dd>
  2159. </dl>
  2160. <a name="Encoders"></a>
  2161. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Encoders">7 Encoders</a></h1>
  2162. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2163. multimedia streams.
  2164. </p>
  2165. <p>When you configure your FFmpeg build, all the supported native encoders
  2166. are enabled by default. Encoders requiring an external library must be enabled
  2167. manually via the corresponding <code>--enable-lib</code> option. You can list all
  2168. available encoders using the configure option <code>--list-encoders</code>.
  2169. </p>
  2170. <p>You can disable all the encoders with the configure option
  2171. <code>--disable-encoders</code> and selectively enable / disable single encoders
  2172. with the options <code>--enable-encoder=<var>ENCODER</var></code> /
  2173. <code>--disable-encoder=<var>ENCODER</var></code>.
  2174. </p>
  2175. <p>The option <code>-encoders</code> of the ff* tools will display the list of
  2176. enabled encoders.
  2177. </p>
  2178. <a name="Audio-Encoders"></a>
  2179. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Audio-Encoders">8 Audio Encoders</a></h1>
  2180. <p>A description of some of the currently available audio encoders
  2181. follows.
  2182. </p>
  2183. <p><a name="aacenc"></a>
  2184. </p><a name="aac"></a>
  2185. <h2 class="section"><a href="ffmpeg-codecs.html#toc-aac">8.1 aac</a></h2>
  2186. <p>Advanced Audio Coding (AAC) encoder.
  2187. </p>
  2188. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg. Its
  2189. quality is on par or better than libfdk_aac at the default bitrate of 128kbps.
  2190. This encoder also implements more options, profiles and samplerates than
  2191. other encoders (with only the AAC-HE profile pending to be implemented) so this
  2192. encoder has become the default and is the recommended choice.
  2193. </p>
  2194. <a name="Options-34"></a>
  2195. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-34">8.1.1 Options</a></h3>
  2196. <dl compact="compact">
  2197. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  2198. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2199. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2200. </p>
  2201. </dd>
  2202. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  2203. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2204. the <code>ffmpeg</code> command-line tool. For library interface users, use
  2205. &lsquo;<samp>global_quality</samp>&rsquo;.
  2206. </p>
  2207. </dd>
  2208. <dt>&lsquo;<samp>cutoff</samp>&rsquo;</dt>
  2209. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2210. adjust the cutoff to improve clarity on low bitrates.
  2211. </p>
  2212. </dd>
  2213. <dt>&lsquo;<samp>aac_coder</samp>&rsquo;</dt>
  2214. <dd><p>Set AAC encoder coding method. Possible values:
  2215. </p>
  2216. <dl compact="compact">
  2217. <dt>&lsquo;<samp>twoloop</samp>&rsquo;</dt>
  2218. <dd><p>Two loop searching (TLS) method.
  2219. </p>
  2220. <p>This method first sets quantizers depending on band thresholds and then tries
  2221. to find an optimal combination by adding or subtracting a specific value from
  2222. all quantizers and adjusting some individual quantizer a little. Will tune
  2223. itself based on whether &lsquo;<samp>aac_is</samp>&rsquo;, &lsquo;<samp>aac_ms</samp>&rsquo; and &lsquo;<samp>aac_pns</samp>&rsquo;
  2224. are enabled.
  2225. </p>
  2226. </dd>
  2227. <dt>&lsquo;<samp>anmr</samp>&rsquo;</dt>
  2228. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2229. </p>
  2230. <p>This is an experimental coder which currently produces a lower quality, is more
  2231. unstable and is slower than the default twoloop coder but has potential.
  2232. Currently has no support for the &lsquo;<samp>aac_is</samp>&rsquo; or &lsquo;<samp>aac_pns</samp>&rsquo; options.
  2233. Not currently recommended.
  2234. </p>
  2235. </dd>
  2236. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  2237. <dd><p>Constant quantizer method.
  2238. </p>
  2239. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2240. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2241. and much faster at higher bitrates.
  2242. This is the default choice for a coder
  2243. </p>
  2244. </dd>
  2245. </dl>
  2246. </dd>
  2247. <dt>&lsquo;<samp>aac_ms</samp>&rsquo;</dt>
  2248. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2249. M/S with bands which will benefit from such coding. Can be forced for all bands
  2250. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2251. &quot;disable&quot;.
  2252. </p>
  2253. </dd>
  2254. <dt>&lsquo;<samp>aac_is</samp>&rsquo;</dt>
  2255. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2256. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2257. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2258. </p>
  2259. </dd>
  2260. <dt>&lsquo;<samp>aac_pns</samp>&rsquo;</dt>
  2261. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2262. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2263. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2264. </p>
  2265. </dd>
  2266. <dt>&lsquo;<samp>aac_tns</samp>&rsquo;</dt>
  2267. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2268. bands to hide quantization noise during the encoding process and is reverted
  2269. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2270. this also reduces the entropy in the high bands and allows for more bits to
  2271. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2272. debugging by setting the option to &quot;disable&quot;.
  2273. </p>
  2274. </dd>
  2275. <dt>&lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
  2276. <dd><p>Enables the use of the long term prediction extension which increases coding
  2277. efficiency in very low bandwidth situations such as encoding of voice or
  2278. solo piano music by extending constant harmonic peaks in bands throughout
  2279. frames. This option is implied by profile:a aac_low and is incompatible with
  2280. aac_pred. Use in conjunction with &lsquo;<samp>-ar</samp>&rsquo; to decrease the samplerate.
  2281. </p>
  2282. </dd>
  2283. <dt>&lsquo;<samp>aac_pred</samp>&rsquo;</dt>
  2284. <dd><p>Enables the use of a more traditional style of prediction where the spectral
  2285. coefficients transmitted are replaced by the difference of the current
  2286. coefficients minus the previous &quot;predicted&quot; coefficients. In theory and sometimes
  2287. in practice this can improve quality for low to mid bitrate audio.
  2288. This option implies the aac_main profile and is incompatible with aac_ltp.
  2289. </p>
  2290. </dd>
  2291. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  2292. <dd><p>Sets the encoding profile, possible values:
  2293. </p>
  2294. <dl compact="compact">
  2295. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  2296. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2297. decent quality.
  2298. </p>
  2299. </dd>
  2300. <dt>&lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</dt>
  2301. <dd><p>Equivalent to <code>-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2302. MPEG4 specifications.
  2303. </p>
  2304. </dd>
  2305. <dt>&lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
  2306. <dd><p>Long term prediction profile, is enabled by and will enable the &lsquo;<samp>aac_ltp</samp>&rsquo;
  2307. option. Introduced in MPEG4.
  2308. </p>
  2309. </dd>
  2310. <dt>&lsquo;<samp>aac_main</samp>&rsquo;</dt>
  2311. <dd><p>Main-type prediction profile, is enabled by and will enable the &lsquo;<samp>aac_pred</samp>&rsquo;
  2312. option. Introduced in MPEG2.
  2313. </p>
  2314. </dd>
  2315. </dl>
  2316. <p>If this option is unspecified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2317. </p></dd>
  2318. </dl>
  2319. <a name="ac3-and-ac3_005ffixed"></a>
  2320. <h2 class="section"><a href="ffmpeg-codecs.html#toc-ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a></h2>
  2321. <p>AC-3 audio encoders.
  2322. </p>
  2323. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  2324. the undocumented RealAudio 3 (a.k.a. dnet).
  2325. </p>
  2326. <p>The <var>ac3</var> encoder uses floating-point math, while the <var>ac3_fixed</var>
  2327. encoder only uses fixed-point integer math. This does not mean that one is
  2328. always faster, just that one or the other may be better suited to a
  2329. particular system. The floating-point encoder will generally produce better
  2330. quality audio for a given bitrate. The <var>ac3_fixed</var> encoder is not the
  2331. default codec for any of the output formats, so it must be specified explicitly
  2332. using the option <code>-acodec ac3_fixed</code> in order to use it.
  2333. </p>
  2334. <a name="AC_002d3-Metadata"></a>
  2335. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-AC_002d3-Metadata">8.2.1 AC-3 Metadata</a></h3>
  2336. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2337. but in most cases do not affect the audio encoding itself. Some of the options
  2338. do directly affect or influence the decoding and playback of the resulting
  2339. bitstream, while others are just for informational purposes. A few of the
  2340. options will add bits to the output stream that could otherwise be used for
  2341. audio data, and will thus affect the quality of the output. Those will be
  2342. indicated accordingly with a note in the option list below.
  2343. </p>
  2344. <p>These parameters are described in detail in several publicly-available
  2345. documents.
  2346. </p><ul>
  2347. <li> <a href="http://www.atsc.org/cms/standards/a_52-2010.pdf">A/52:2010 - Digital Audio Compression (AC-3) (E-AC-3) Standard</a>
  2348. </li><li> <a 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>
  2349. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
  2350. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
  2351. </li></ul>
  2352. <a name="Metadata-Control-Options"></a>
  2353. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></h4>
  2354. <dl compact="compact">
  2355. <dt>&lsquo;<samp>-per_frame_metadata <var>boolean</var></samp>&rsquo;</dt>
  2356. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2357. metadata for each frame.
  2358. </p><dl compact="compact">
  2359. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2360. <dd><p>The metadata values set at initialization will be used for every frame in the
  2361. stream. (default)
  2362. </p></dd>
  2363. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2364. <dd><p>Metadata values can be changed before encoding each frame.
  2365. </p></dd>
  2366. </dl>
  2367. </dd>
  2368. </dl>
  2369. <a name="Downmix-Levels"></a>
  2370. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Downmix-Levels">8.2.1.2 Downmix Levels</a></h4>
  2371. <dl compact="compact">
  2372. <dt>&lsquo;<samp>-center_mixlev <var>level</var></samp>&rsquo;</dt>
  2373. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2374. channel when downmixing to stereo. This field will only be written to the
  2375. bitstream if a center channel is present. The value is specified as a scale
  2376. factor. There are 3 valid values:
  2377. </p><dl compact="compact">
  2378. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2379. <dd><p>Apply -3dB gain
  2380. </p></dd>
  2381. <dt>&lsquo;<samp>0.595</samp>&rsquo;</dt>
  2382. <dd><p>Apply -4.5dB gain (default)
  2383. </p></dd>
  2384. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2385. <dd><p>Apply -6dB gain
  2386. </p></dd>
  2387. </dl>
  2388. </dd>
  2389. <dt>&lsquo;<samp>-surround_mixlev <var>level</var></samp>&rsquo;</dt>
  2390. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2391. channel(s) when downmixing to stereo. This field will only be written to the
  2392. bitstream if one or more surround channels are present. The value is specified
  2393. as a scale factor. There are 3 valid values:
  2394. </p><dl compact="compact">
  2395. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2396. <dd><p>Apply -3dB gain
  2397. </p></dd>
  2398. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2399. <dd><p>Apply -6dB gain (default)
  2400. </p></dd>
  2401. <dt>&lsquo;<samp>0.000</samp>&rsquo;</dt>
  2402. <dd><p>Silence Surround Channel(s)
  2403. </p></dd>
  2404. </dl>
  2405. </dd>
  2406. </dl>
  2407. <a name="Audio-Production-Information"></a>
  2408. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Audio-Production-Information">8.2.1.3 Audio Production Information</a></h4>
  2409. <p>Audio Production Information is optional information describing the mixing
  2410. environment. Either none or both of the fields are written to the bitstream.
  2411. </p>
  2412. <dl compact="compact">
  2413. <dt>&lsquo;<samp>-mixing_level <var>number</var></samp>&rsquo;</dt>
  2414. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2415. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2416. unknown or not indicated. The default value is -1, but that value cannot be
  2417. used if the Audio Production Information is written to the bitstream. Therefore,
  2418. if the <code>room_type</code> option is not the default value, the <code>mixing_level</code>
  2419. option must not be -1.
  2420. </p>
  2421. </dd>
  2422. <dt>&lsquo;<samp>-room_type <var>type</var></samp>&rsquo;</dt>
  2423. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2424. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2425. industry standard X-curve equalization; a small room has flat equalization.
  2426. This field will not be written to the bitstream if both the <code>mixing_level</code>
  2427. option and the <code>room_type</code> option have the default values.
  2428. </p><dl compact="compact">
  2429. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2430. <dt>&lsquo;<samp>notindicated</samp>&rsquo;</dt>
  2431. <dd><p>Not Indicated (default)
  2432. </p></dd>
  2433. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2434. <dt>&lsquo;<samp>large</samp>&rsquo;</dt>
  2435. <dd><p>Large Room
  2436. </p></dd>
  2437. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2438. <dt>&lsquo;<samp>small</samp>&rsquo;</dt>
  2439. <dd><p>Small Room
  2440. </p></dd>
  2441. </dl>
  2442. </dd>
  2443. </dl>
  2444. <a name="Other-Metadata-Options"></a>
  2445. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></h4>
  2446. <dl compact="compact">
  2447. <dt>&lsquo;<samp>-copyright <var>boolean</var></samp>&rsquo;</dt>
  2448. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2449. </p><dl compact="compact">
  2450. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2451. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2452. <dd><p>No Copyright Exists (default)
  2453. </p></dd>
  2454. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2455. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2456. <dd><p>Copyright Exists
  2457. </p></dd>
  2458. </dl>
  2459. </dd>
  2460. <dt>&lsquo;<samp>-dialnorm <var>value</var></samp>&rsquo;</dt>
  2461. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2462. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2463. level shift during audio reproduction that sets the average volume of the
  2464. dialogue to a preset level. The goal is to match volume level between program
  2465. sources. A value of -31dB will result in no volume level change, relative to
  2466. the source volume, during audio reproduction. Valid values are whole numbers in
  2467. the range -31 to -1, with -31 being the default.
  2468. </p>
  2469. </dd>
  2470. <dt>&lsquo;<samp>-dsur_mode <var>mode</var></samp>&rsquo;</dt>
  2471. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2472. (Pro Logic). This field will only be written to the bitstream if the audio
  2473. stream is stereo. Using this option does <b>NOT</b> mean the encoder will actually
  2474. apply Dolby Surround processing.
  2475. </p><dl compact="compact">
  2476. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2477. <dt>&lsquo;<samp>notindicated</samp>&rsquo;</dt>
  2478. <dd><p>Not Indicated (default)
  2479. </p></dd>
  2480. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2481. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2482. <dd><p>Not Dolby Surround Encoded
  2483. </p></dd>
  2484. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2485. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2486. <dd><p>Dolby Surround Encoded
  2487. </p></dd>
  2488. </dl>
  2489. </dd>
  2490. <dt>&lsquo;<samp>-original <var>boolean</var></samp>&rsquo;</dt>
  2491. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2492. original source and not a copy.
  2493. </p><dl compact="compact">
  2494. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2495. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2496. <dd><p>Not Original Source
  2497. </p></dd>
  2498. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2499. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2500. <dd><p>Original Source (default)
  2501. </p></dd>
  2502. </dl>
  2503. </dd>
  2504. </dl>
  2505. <a name="Extended-Bitstream-Information"></a>
  2506. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a></h3>
  2507. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2508. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2509. If any one parameter in a group is specified, all values in that group will be
  2510. written to the bitstream. Default values are used for those that are written
  2511. but have not been specified. If the mixing levels are written, the decoder
  2512. will use these values instead of the ones specified in the <code>center_mixlev</code>
  2513. and <code>surround_mixlev</code> options if it supports the Alternate Bit Stream
  2514. Syntax.
  2515. </p>
  2516. <a name="Extended-Bitstream-Information-_002d-Part-1"></a>
  2517. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></h4>
  2518. <dl compact="compact">
  2519. <dt>&lsquo;<samp>-dmix_mode <var>mode</var></samp>&rsquo;</dt>
  2520. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2521. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2522. </p><dl compact="compact">
  2523. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2524. <dt>&lsquo;<samp>notindicated</samp>&rsquo;</dt>
  2525. <dd><p>Not Indicated (default)
  2526. </p></dd>
  2527. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2528. <dt>&lsquo;<samp>ltrt</samp>&rsquo;</dt>
  2529. <dd><p>Lt/Rt Downmix Preferred
  2530. </p></dd>
  2531. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2532. <dt>&lsquo;<samp>loro</samp>&rsquo;</dt>
  2533. <dd><p>Lo/Ro Downmix Preferred
  2534. </p></dd>
  2535. </dl>
  2536. </dd>
  2537. <dt>&lsquo;<samp>-ltrt_cmixlev <var>level</var></samp>&rsquo;</dt>
  2538. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2539. center channel when downmixing to stereo in Lt/Rt mode.
  2540. </p><dl compact="compact">
  2541. <dt>&lsquo;<samp>1.414</samp>&rsquo;</dt>
  2542. <dd><p>Apply +3dB gain
  2543. </p></dd>
  2544. <dt>&lsquo;<samp>1.189</samp>&rsquo;</dt>
  2545. <dd><p>Apply +1.5dB gain
  2546. </p></dd>
  2547. <dt>&lsquo;<samp>1.000</samp>&rsquo;</dt>
  2548. <dd><p>Apply 0dB gain
  2549. </p></dd>
  2550. <dt>&lsquo;<samp>0.841</samp>&rsquo;</dt>
  2551. <dd><p>Apply -1.5dB gain
  2552. </p></dd>
  2553. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2554. <dd><p>Apply -3.0dB gain
  2555. </p></dd>
  2556. <dt>&lsquo;<samp>0.595</samp>&rsquo;</dt>
  2557. <dd><p>Apply -4.5dB gain (default)
  2558. </p></dd>
  2559. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2560. <dd><p>Apply -6.0dB gain
  2561. </p></dd>
  2562. <dt>&lsquo;<samp>0.000</samp>&rsquo;</dt>
  2563. <dd><p>Silence Center Channel
  2564. </p></dd>
  2565. </dl>
  2566. </dd>
  2567. <dt>&lsquo;<samp>-ltrt_surmixlev <var>level</var></samp>&rsquo;</dt>
  2568. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2569. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2570. </p><dl compact="compact">
  2571. <dt>&lsquo;<samp>0.841</samp>&rsquo;</dt>
  2572. <dd><p>Apply -1.5dB gain
  2573. </p></dd>
  2574. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2575. <dd><p>Apply -3.0dB gain
  2576. </p></dd>
  2577. <dt>&lsquo;<samp>0.595</samp>&rsquo;</dt>
  2578. <dd><p>Apply -4.5dB gain
  2579. </p></dd>
  2580. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2581. <dd><p>Apply -6.0dB gain (default)
  2582. </p></dd>
  2583. <dt>&lsquo;<samp>0.000</samp>&rsquo;</dt>
  2584. <dd><p>Silence Surround Channel(s)
  2585. </p></dd>
  2586. </dl>
  2587. </dd>
  2588. <dt>&lsquo;<samp>-loro_cmixlev <var>level</var></samp>&rsquo;</dt>
  2589. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2590. center channel when downmixing to stereo in Lo/Ro mode.
  2591. </p><dl compact="compact">
  2592. <dt>&lsquo;<samp>1.414</samp>&rsquo;</dt>
  2593. <dd><p>Apply +3dB gain
  2594. </p></dd>
  2595. <dt>&lsquo;<samp>1.189</samp>&rsquo;</dt>
  2596. <dd><p>Apply +1.5dB gain
  2597. </p></dd>
  2598. <dt>&lsquo;<samp>1.000</samp>&rsquo;</dt>
  2599. <dd><p>Apply 0dB gain
  2600. </p></dd>
  2601. <dt>&lsquo;<samp>0.841</samp>&rsquo;</dt>
  2602. <dd><p>Apply -1.5dB gain
  2603. </p></dd>
  2604. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2605. <dd><p>Apply -3.0dB gain
  2606. </p></dd>
  2607. <dt>&lsquo;<samp>0.595</samp>&rsquo;</dt>
  2608. <dd><p>Apply -4.5dB gain (default)
  2609. </p></dd>
  2610. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2611. <dd><p>Apply -6.0dB gain
  2612. </p></dd>
  2613. <dt>&lsquo;<samp>0.000</samp>&rsquo;</dt>
  2614. <dd><p>Silence Center Channel
  2615. </p></dd>
  2616. </dl>
  2617. </dd>
  2618. <dt>&lsquo;<samp>-loro_surmixlev <var>level</var></samp>&rsquo;</dt>
  2619. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2620. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2621. </p><dl compact="compact">
  2622. <dt>&lsquo;<samp>0.841</samp>&rsquo;</dt>
  2623. <dd><p>Apply -1.5dB gain
  2624. </p></dd>
  2625. <dt>&lsquo;<samp>0.707</samp>&rsquo;</dt>
  2626. <dd><p>Apply -3.0dB gain
  2627. </p></dd>
  2628. <dt>&lsquo;<samp>0.595</samp>&rsquo;</dt>
  2629. <dd><p>Apply -4.5dB gain
  2630. </p></dd>
  2631. <dt>&lsquo;<samp>0.500</samp>&rsquo;</dt>
  2632. <dd><p>Apply -6.0dB gain (default)
  2633. </p></dd>
  2634. <dt>&lsquo;<samp>0.000</samp>&rsquo;</dt>
  2635. <dd><p>Silence Surround Channel(s)
  2636. </p></dd>
  2637. </dl>
  2638. </dd>
  2639. </dl>
  2640. <a name="Extended-Bitstream-Information-_002d-Part-2"></a>
  2641. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></h4>
  2642. <dl compact="compact">
  2643. <dt>&lsquo;<samp>-dsurex_mode <var>mode</var></samp>&rsquo;</dt>
  2644. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2645. (7.1 matrixed to 5.1). Using this option does <b>NOT</b> mean the encoder will actually
  2646. apply Dolby Surround EX processing.
  2647. </p><dl compact="compact">
  2648. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2649. <dt>&lsquo;<samp>notindicated</samp>&rsquo;</dt>
  2650. <dd><p>Not Indicated (default)
  2651. </p></dd>
  2652. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2653. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2654. <dd><p>Dolby Surround EX Off
  2655. </p></dd>
  2656. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2657. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2658. <dd><p>Dolby Surround EX On
  2659. </p></dd>
  2660. </dl>
  2661. </dd>
  2662. <dt>&lsquo;<samp>-dheadphone_mode <var>mode</var></samp>&rsquo;</dt>
  2663. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2664. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2665. option does <b>NOT</b> mean the encoder will actually apply Dolby Headphone
  2666. processing.
  2667. </p><dl compact="compact">
  2668. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2669. <dt>&lsquo;<samp>notindicated</samp>&rsquo;</dt>
  2670. <dd><p>Not Indicated (default)
  2671. </p></dd>
  2672. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2673. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2674. <dd><p>Dolby Headphone Off
  2675. </p></dd>
  2676. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2677. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2678. <dd><p>Dolby Headphone On
  2679. </p></dd>
  2680. </dl>
  2681. </dd>
  2682. <dt>&lsquo;<samp>-ad_conv_type <var>type</var></samp>&rsquo;</dt>
  2683. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2684. conversion.
  2685. </p><dl compact="compact">
  2686. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2687. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  2688. <dd><p>Standard A/D Converter (default)
  2689. </p></dd>
  2690. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2691. <dt>&lsquo;<samp>hdcd</samp>&rsquo;</dt>
  2692. <dd><p>HDCD A/D Converter
  2693. </p></dd>
  2694. </dl>
  2695. </dd>
  2696. </dl>
  2697. <a name="Other-AC_002d3-Encoding-Options"></a>
  2698. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></h3>
  2699. <dl compact="compact">
  2700. <dt>&lsquo;<samp>-stereo_rematrixing <var>boolean</var></samp>&rsquo;</dt>
  2701. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2702. is an optional AC-3 feature that increases quality by selectively encoding
  2703. the left/right channels as mid/side. This option is enabled by default, and it
  2704. is highly recommended that it be left as enabled except for testing purposes.
  2705. </p>
  2706. </dd>
  2707. <dt>&lsquo;<samp>cutoff <var>frequency</var></samp>&rsquo;</dt>
  2708. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2709. determined by various other encoding parameters.
  2710. </p>
  2711. </dd>
  2712. </dl>
  2713. <a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
  2714. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></h3>
  2715. <p>These options are only valid for the floating-point encoder and do not exist
  2716. for the fixed-point encoder due to the corresponding features not being
  2717. implemented in fixed-point.
  2718. </p>
  2719. <dl compact="compact">
  2720. <dt>&lsquo;<samp>-channel_coupling <var>boolean</var></samp>&rsquo;</dt>
  2721. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2722. that increases quality by combining high frequency information from multiple
  2723. channels into a single channel. The per-channel high frequency information is
  2724. sent with less accuracy in both the frequency and time domains. This allows
  2725. more bits to be used for lower frequencies while preserving enough information
  2726. to reconstruct the high frequencies. This option is enabled by default for the
  2727. floating-point encoder and should generally be left as enabled except for
  2728. testing purposes or to increase encoding speed.
  2729. </p><dl compact="compact">
  2730. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  2731. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  2732. <dd><p>Selected by Encoder (default)
  2733. </p></dd>
  2734. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  2735. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  2736. <dd><p>Disable Channel Coupling
  2737. </p></dd>
  2738. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2739. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  2740. <dd><p>Enable Channel Coupling
  2741. </p></dd>
  2742. </dl>
  2743. </dd>
  2744. <dt>&lsquo;<samp>-cpl_start_band <var>number</var></samp>&rsquo;</dt>
  2745. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2746. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2747. coupling end band. If <var>auto</var> is used, the start band will be determined by
  2748. the encoder based on the bit rate, sample rate, and channel layout. This option
  2749. has no effect if channel coupling is disabled.
  2750. </p><dl compact="compact">
  2751. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  2752. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  2753. <dd><p>Selected by Encoder (default)
  2754. </p></dd>
  2755. </dl>
  2756. </dd>
  2757. </dl>
  2758. <p><a name="flac"></a>
  2759. </p><a name="flac-1"></a>
  2760. <h2 class="section"><a href="ffmpeg-codecs.html#toc-flac-1">8.3 flac</a></h2>
  2761. <p>FLAC (Free Lossless Audio Codec) Encoder
  2762. </p>
  2763. <a name="Options-20"></a>
  2764. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-20">8.3.1 Options</a></h3>
  2765. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  2766. </p>
  2767. <dl compact="compact">
  2768. <dt>&lsquo;<samp>compression_level</samp>&rsquo;</dt>
  2769. <dd><p>Sets the compression level, which chooses defaults for many other options
  2770. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  2771. default.
  2772. </p>
  2773. </dd>
  2774. <dt>&lsquo;<samp>frame_size</samp>&rsquo;</dt>
  2775. <dd><p>Sets the size of the frames in samples per channel.
  2776. </p>
  2777. </dd>
  2778. <dt>&lsquo;<samp>lpc_coeff_precision</samp>&rsquo;</dt>
  2779. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  2780. default.
  2781. </p>
  2782. </dd>
  2783. <dt>&lsquo;<samp>lpc_type</samp>&rsquo;</dt>
  2784. <dd><p>Sets the first stage LPC algorithm
  2785. </p><dl compact="compact">
  2786. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  2787. <dd><p>LPC is not used
  2788. </p>
  2789. </dd>
  2790. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  2791. <dd><p>fixed LPC coefficients
  2792. </p>
  2793. </dd>
  2794. <dt>&lsquo;<samp>levinson</samp>&rsquo;</dt>
  2795. <dt>&lsquo;<samp>cholesky</samp>&rsquo;</dt>
  2796. </dl>
  2797. </dd>
  2798. <dt>&lsquo;<samp>lpc_passes</samp>&rsquo;</dt>
  2799. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  2800. </p>
  2801. </dd>
  2802. <dt>&lsquo;<samp>min_partition_order</samp>&rsquo;</dt>
  2803. <dd><p>The minimum partition order
  2804. </p>
  2805. </dd>
  2806. <dt>&lsquo;<samp>max_partition_order</samp>&rsquo;</dt>
  2807. <dd><p>The maximum partition order
  2808. </p>
  2809. </dd>
  2810. <dt>&lsquo;<samp>prediction_order_method</samp>&rsquo;</dt>
  2811. <dd><dl compact="compact">
  2812. <dt>&lsquo;<samp>estimation</samp>&rsquo;</dt>
  2813. <dt>&lsquo;<samp>2level</samp>&rsquo;</dt>
  2814. <dt>&lsquo;<samp>4level</samp>&rsquo;</dt>
  2815. <dt>&lsquo;<samp>8level</samp>&rsquo;</dt>
  2816. <dt>&lsquo;<samp>search</samp>&rsquo;</dt>
  2817. <dd><p>Bruteforce search
  2818. </p></dd>
  2819. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  2820. </dl>
  2821. </dd>
  2822. <dt>&lsquo;<samp>ch_mode</samp>&rsquo;</dt>
  2823. <dd><p>Channel mode
  2824. </p><dl compact="compact">
  2825. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  2826. <dd><p>The mode is chosen automatically for each frame
  2827. </p></dd>
  2828. <dt>&lsquo;<samp>indep</samp>&rsquo;</dt>
  2829. <dd><p>Channels are independently coded
  2830. </p></dd>
  2831. <dt>&lsquo;<samp>left_side</samp>&rsquo;</dt>
  2832. <dt>&lsquo;<samp>right_side</samp>&rsquo;</dt>
  2833. <dt>&lsquo;<samp>mid_side</samp>&rsquo;</dt>
  2834. </dl>
  2835. </dd>
  2836. <dt>&lsquo;<samp>exact_rice_parameters</samp>&rsquo;</dt>
  2837. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  2838. if set to 1 then they are chosen exactly, which slows the code down slightly and
  2839. improves compression slightly.
  2840. </p>
  2841. </dd>
  2842. <dt>&lsquo;<samp>multi_dim_quant</samp>&rsquo;</dt>
  2843. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  2844. applied after the first stage to finetune the coefficients. This is quite slow
  2845. and slightly improves compression.
  2846. </p>
  2847. </dd>
  2848. </dl>
  2849. <p><a name="opusenc"></a>
  2850. </p><a name="opus"></a>
  2851. <h2 class="section"><a href="ffmpeg-codecs.html#toc-opus">8.4 opus</a></h2>
  2852. <p>Opus encoder.
  2853. </p>
  2854. <p>This is a native FFmpeg encoder for the Opus format. Currently its in development and
  2855. only implements the CELT part of the codec. Its quality is usually worse and at best
  2856. is equal to the libopus encoder.
  2857. </p>
  2858. <a name="Options-17"></a>
  2859. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-17">8.4.1 Options</a></h3>
  2860. <dl compact="compact">
  2861. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  2862. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  2863. to make a good guess.
  2864. </p>
  2865. </dd>
  2866. <dt>&lsquo;<samp>opus_delay</samp>&rsquo;</dt>
  2867. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  2868. decrease quality.
  2869. </p></dd>
  2870. </dl>
  2871. <p><a name="libfdk_002daac_002denc"></a>
  2872. </p><a name="libfdk_005faac"></a>
  2873. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libfdk_005faac">8.5 libfdk_aac</a></h2>
  2874. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  2875. </p>
  2876. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  2877. the Android project.
  2878. </p>
  2879. <p>Requires the presence of the libfdk-aac headers and library during
  2880. configuration. You need to explicitly configure the build with
  2881. <code>--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  2882. so if you allow the use of GPL, you should configure with
  2883. <code>--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  2884. </p>
  2885. <p>This encoder is considered to produce output on par or worse at 128kbps to the
  2886. <a href="#aacenc">the native FFmpeg AAC encoder</a> but can often produce better
  2887. sounding audio at identical or lower bitrates and has support for the
  2888. AAC-HE profiles.
  2889. </p>
  2890. <p>VBR encoding, enabled through the &lsquo;<samp>vbr</samp>&rsquo; or &lsquo;<samp>flags
  2891. +qscale</samp>&rsquo; options, is experimental and only works with some
  2892. combinations of parameters.
  2893. </p>
  2894. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  2895. higher.
  2896. </p>
  2897. <p>For more information see the fdk-aac project at
  2898. <a href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  2899. </p>
  2900. <a name="Options-32"></a>
  2901. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-32">8.5.1 Options</a></h3>
  2902. <p>The following options are mapped on the shared FFmpeg codec options.
  2903. </p>
  2904. <dl compact="compact">
  2905. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  2906. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  2907. is automatically set to a suitable value depending on the selected
  2908. profile.
  2909. </p>
  2910. <p>In case VBR mode is enabled the option is ignored.
  2911. </p>
  2912. </dd>
  2913. <dt>&lsquo;<samp>ar</samp>&rsquo;</dt>
  2914. <dd><p>Set audio sampling rate (in Hz).
  2915. </p>
  2916. </dd>
  2917. <dt>&lsquo;<samp>channels</samp>&rsquo;</dt>
  2918. <dd><p>Set the number of audio channels.
  2919. </p>
  2920. </dd>
  2921. <dt>&lsquo;<samp>flags +qscale</samp>&rsquo;</dt>
  2922. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  2923. Note that VBR is implicitly enabled when the &lsquo;<samp>vbr</samp>&rsquo; value is
  2924. positive.
  2925. </p>
  2926. </dd>
  2927. <dt>&lsquo;<samp>cutoff</samp>&rsquo;</dt>
  2928. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  2929. will use a value automatically computed by the library. Default value
  2930. is 0.
  2931. </p>
  2932. </dd>
  2933. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  2934. <dd><p>Set audio profile.
  2935. </p>
  2936. <p>The following profiles are recognized:
  2937. </p><dl compact="compact">
  2938. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  2939. <dd><p>Low Complexity AAC (LC)
  2940. </p>
  2941. </dd>
  2942. <dt>&lsquo;<samp>aac_he</samp>&rsquo;</dt>
  2943. <dd><p>High Efficiency AAC (HE-AAC)
  2944. </p>
  2945. </dd>
  2946. <dt>&lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
  2947. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  2948. </p>
  2949. </dd>
  2950. <dt>&lsquo;<samp>aac_ld</samp>&rsquo;</dt>
  2951. <dd><p>Low Delay AAC (LD)
  2952. </p>
  2953. </dd>
  2954. <dt>&lsquo;<samp>aac_eld</samp>&rsquo;</dt>
  2955. <dd><p>Enhanced Low Delay AAC (ELD)
  2956. </p></dd>
  2957. </dl>
  2958. <p>If not specified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2959. </p></dd>
  2960. </dl>
  2961. <p>The following are private options of the libfdk_aac encoder.
  2962. </p>
  2963. <dl compact="compact">
  2964. <dt>&lsquo;<samp>afterburner</samp>&rsquo;</dt>
  2965. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  2966. improves the quality but also the required processing power.
  2967. </p>
  2968. <p>Default value is 1.
  2969. </p>
  2970. </dd>
  2971. <dt>&lsquo;<samp>eld_sbr</samp>&rsquo;</dt>
  2972. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  2973. if set to 0.
  2974. </p>
  2975. <p>Default value is 0.
  2976. </p>
  2977. </dd>
  2978. <dt>&lsquo;<samp>eld_v2</samp>&rsquo;</dt>
  2979. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  2980. disabled if set to 0.
  2981. </p>
  2982. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  2983. </p>
  2984. <p>Default value is 0.
  2985. </p>
  2986. </dd>
  2987. <dt>&lsquo;<samp>signaling</samp>&rsquo;</dt>
  2988. <dd><p>Set SBR/PS signaling style.
  2989. </p>
  2990. <p>It can assume one of the following values:
  2991. </p><dl compact="compact">
  2992. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  2993. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  2994. implicit if global header is disabled)
  2995. </p>
  2996. </dd>
  2997. <dt>&lsquo;<samp>implicit</samp>&rsquo;</dt>
  2998. <dd><p>implicit backwards compatible signaling
  2999. </p>
  3000. </dd>
  3001. <dt>&lsquo;<samp>explicit_sbr</samp>&rsquo;</dt>
  3002. <dd><p>explicit SBR, implicit PS signaling
  3003. </p>
  3004. </dd>
  3005. <dt>&lsquo;<samp>explicit_hierarchical</samp>&rsquo;</dt>
  3006. <dd><p>explicit hierarchical signaling
  3007. </p></dd>
  3008. </dl>
  3009. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  3010. </p>
  3011. </dd>
  3012. <dt>&lsquo;<samp>latm</samp>&rsquo;</dt>
  3013. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  3014. </p>
  3015. <p>Default value is 0.
  3016. </p>
  3017. </dd>
  3018. <dt>&lsquo;<samp>header_period</samp>&rsquo;</dt>
  3019. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  3020. in-band configuration buffers within LATM/LOAS transport layer.
  3021. </p>
  3022. <p>Must be a 16-bits non-negative integer.
  3023. </p>
  3024. <p>Default value is 0.
  3025. </p>
  3026. </dd>
  3027. <dt>&lsquo;<samp>vbr</samp>&rsquo;</dt>
  3028. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  3029. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  3030. (Constant Bit Rate) is enabled.
  3031. </p>
  3032. <p>Currently only the &lsquo;<samp>aac_low</samp>&rsquo; profile supports VBR encoding.
  3033. </p>
  3034. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  3035. </p>
  3036. <dl compact="compact">
  3037. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  3038. <dd><p>32 kbps/channel
  3039. </p></dd>
  3040. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  3041. <dd><p>40 kbps/channel
  3042. </p></dd>
  3043. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  3044. <dd><p>48-56 kbps/channel
  3045. </p></dd>
  3046. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  3047. <dd><p>64 kbps/channel
  3048. </p></dd>
  3049. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  3050. <dd><p>about 80-96 kbps/channel
  3051. </p></dd>
  3052. </dl>
  3053. <p>Default value is 0.
  3054. </p></dd>
  3055. </dl>
  3056. <a name="Examples-1"></a>
  3057. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Examples-1">8.5.2 Examples</a></h3>
  3058. <ul>
  3059. <li>
  3060. Use <code>ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  3061. container:
  3062. <div class="example">
  3063. <pre class="example">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  3064. </pre></div>
  3065. </li><li>
  3066. Use <code>ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  3067. High-Efficiency AAC profile:
  3068. <div class="example">
  3069. <pre class="example">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  3070. </pre></div>
  3071. </li></ul>
  3072. <p><a name="libmp3lame"></a>
  3073. </p><a name="libmp3lame-1"></a>
  3074. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libmp3lame-1">8.6 libmp3lame</a></h2>
  3075. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  3076. </p>
  3077. <p>Requires the presence of the libmp3lame headers and library during
  3078. configuration. You need to explicitly configure the build with
  3079. <code>--enable-libmp3lame</code>.
  3080. </p>
  3081. <p>See <a href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  3082. lower quality.
  3083. </p>
  3084. <a name="Options-6"></a>
  3085. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-6">8.6.1 Options</a></h3>
  3086. <p>The following options are supported by the libmp3lame wrapper. The
  3087. <code>lame</code>-equivalent of the options are listed in parentheses.
  3088. </p>
  3089. <dl compact="compact">
  3090. <dt>&lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
  3091. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code>bitrate</code> is
  3092. expressed in kilobits/s.
  3093. </p>
  3094. </dd>
  3095. <dt>&lsquo;<samp>q (<em>-V</em>)</samp>&rsquo;</dt>
  3096. <dd><p>Set constant quality setting for VBR. This option is valid only
  3097. using the <code>ffmpeg</code> command-line tool. For library interface
  3098. users, use &lsquo;<samp>global_quality</samp>&rsquo;.
  3099. </p>
  3100. </dd>
  3101. <dt>&lsquo;<samp>compression_level (<em>-q</em>)</samp>&rsquo;</dt>
  3102. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  3103. with 0 meaning highest quality but slowest, and 9 meaning fastest
  3104. while producing the worst quality.
  3105. </p>
  3106. </dd>
  3107. <dt>&lsquo;<samp>cutoff (<em>--lowpass</em>)</samp>&rsquo;</dt>
  3108. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  3109. adjusts the cutoff.
  3110. </p>
  3111. </dd>
  3112. <dt>&lsquo;<samp>reservoir</samp>&rsquo;</dt>
  3113. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  3114. has this enabled by default, but can be overridden by use
  3115. &lsquo;<samp>--nores</samp>&rsquo; option.
  3116. </p>
  3117. </dd>
  3118. <dt>&lsquo;<samp>joint_stereo (<em>-m j</em>)</samp>&rsquo;</dt>
  3119. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  3120. stereo or mid/side stereo. Default value is 1.
  3121. </p>
  3122. </dd>
  3123. <dt>&lsquo;<samp>abr (<em>--abr</em>)</samp>&rsquo;</dt>
  3124. <dd><p>Enable the encoder to use ABR when set to 1. The <code>lame</code>
  3125. &lsquo;<samp>--abr</samp>&rsquo; sets the target bitrate, while this options only
  3126. tells FFmpeg to use ABR still relies on &lsquo;<samp>b</samp>&rsquo; to set bitrate.
  3127. </p>
  3128. </dd>
  3129. </dl>
  3130. <a name="libopencore_002damrnb-1"></a>
  3131. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrnb-1">8.7 libopencore-amrnb</a></h2>
  3132. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  3133. </p>
  3134. <p>Requires the presence of the libopencore-amrnb headers and library during
  3135. configuration. You need to explicitly configure the build with
  3136. <code>--enable-libopencore-amrnb --enable-version3</code>.
  3137. </p>
  3138. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  3139. but you can override it by setting &lsquo;<samp>strict</samp>&rsquo; to &lsquo;<samp>unofficial</samp>&rsquo; or
  3140. lower.
  3141. </p>
  3142. <a name="Options-21"></a>
  3143. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-21">8.7.1 Options</a></h3>
  3144. <dl compact="compact">
  3145. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  3146. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  3147. otherwise libavcodec will round to the nearest valid bitrate.
  3148. </p>
  3149. <dl compact="compact">
  3150. <dt>&lsquo;<samp>4750</samp>&rsquo;</dt>
  3151. <dt>&lsquo;<samp>5150</samp>&rsquo;</dt>
  3152. <dt>&lsquo;<samp>5900</samp>&rsquo;</dt>
  3153. <dt>&lsquo;<samp>6700</samp>&rsquo;</dt>
  3154. <dt>&lsquo;<samp>7400</samp>&rsquo;</dt>
  3155. <dt>&lsquo;<samp>7950</samp>&rsquo;</dt>
  3156. <dt>&lsquo;<samp>10200</samp>&rsquo;</dt>
  3157. <dt>&lsquo;<samp>12200</samp>&rsquo;</dt>
  3158. </dl>
  3159. </dd>
  3160. <dt>&lsquo;<samp>dtx</samp>&rsquo;</dt>
  3161. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3162. default value is 0 (disabled).
  3163. </p>
  3164. </dd>
  3165. </dl>
  3166. <a name="libopus-1"></a>
  3167. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopus-1">8.8 libopus</a></h2>
  3168. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3169. </p>
  3170. <p>Requires the presence of the libopus headers and library during
  3171. configuration. You need to explicitly configure the build with
  3172. <code>--enable-libopus</code>.
  3173. </p>
  3174. <a name="Option-Mapping"></a>
  3175. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Option-Mapping">8.8.1 Option Mapping</a></h3>
  3176. <p>Most libopus options are modelled after the <code>opusenc</code> utility from
  3177. opus-tools. The following is an option mapping chart describing options
  3178. supported by the libopus wrapper, and their <code>opusenc</code>-equivalent
  3179. in parentheses.
  3180. </p>
  3181. <dl compact="compact">
  3182. <dt>&lsquo;<samp>b (<em>bitrate</em>)</samp>&rsquo;</dt>
  3183. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s &lsquo;<samp>b</samp>&rsquo; option is
  3184. expressed in bits/s, while <code>opusenc</code>&rsquo;s &lsquo;<samp>bitrate</samp>&rsquo; in
  3185. kilobits/s.
  3186. </p>
  3187. </dd>
  3188. <dt>&lsquo;<samp>vbr (<em>vbr</em>, <em>hard-cbr</em>, and <em>cvbr</em>)</samp>&rsquo;</dt>
  3189. <dd><p>Set VBR mode. The FFmpeg &lsquo;<samp>vbr</samp>&rsquo; option has the following
  3190. valid arguments, with the <code>opusenc</code> equivalent options
  3191. in parentheses:
  3192. </p>
  3193. <dl compact="compact">
  3194. <dt>&lsquo;<samp>off (<em>hard-cbr</em>)</samp>&rsquo;</dt>
  3195. <dd><p>Use constant bit rate encoding.
  3196. </p>
  3197. </dd>
  3198. <dt>&lsquo;<samp>on (<em>vbr</em>)</samp>&rsquo;</dt>
  3199. <dd><p>Use variable bit rate encoding (the default).
  3200. </p>
  3201. </dd>
  3202. <dt>&lsquo;<samp>constrained (<em>cvbr</em>)</samp>&rsquo;</dt>
  3203. <dd><p>Use constrained variable bit rate encoding.
  3204. </p></dd>
  3205. </dl>
  3206. </dd>
  3207. <dt>&lsquo;<samp>compression_level (<em>comp</em>)</samp>&rsquo;</dt>
  3208. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3209. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3210. gives the highest quality but slowest encoding. The default is 10.
  3211. </p>
  3212. </dd>
  3213. <dt>&lsquo;<samp>frame_duration (<em>framesize</em>)</samp>&rsquo;</dt>
  3214. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3215. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3216. frame sizes achieve lower latency but less quality at a given bitrate.
  3217. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3218. The default is 20ms.
  3219. </p>
  3220. </dd>
  3221. <dt>&lsquo;<samp>packet_loss (<em>expect-loss</em>)</samp>&rsquo;</dt>
  3222. <dd><p>Set expected packet loss percentage. The default is 0.
  3223. </p>
  3224. </dd>
  3225. <dt>&lsquo;<samp>application (N.A.)</samp>&rsquo;</dt>
  3226. <dd><p>Set intended application type. Valid options are listed below:
  3227. </p>
  3228. <dl compact="compact">
  3229. <dt>&lsquo;<samp>voip</samp>&rsquo;</dt>
  3230. <dd><p>Favor improved speech intelligibility.
  3231. </p></dd>
  3232. <dt>&lsquo;<samp>audio</samp>&rsquo;</dt>
  3233. <dd><p>Favor faithfulness to the input (the default).
  3234. </p></dd>
  3235. <dt>&lsquo;<samp>lowdelay</samp>&rsquo;</dt>
  3236. <dd><p>Restrict to only the lowest delay modes.
  3237. </p></dd>
  3238. </dl>
  3239. </dd>
  3240. <dt>&lsquo;<samp>cutoff (N.A.)</samp>&rsquo;</dt>
  3241. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3242. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3243. narrowband, mediumband, wideband, super wideband, and fullband
  3244. respectively. The default is 0 (cutoff disabled).
  3245. </p>
  3246. </dd>
  3247. <dt>&lsquo;<samp>mapping_family (<em>mapping_family</em>)</samp>&rsquo;</dt>
  3248. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3249. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3250. otherwise. The default also disables the surround masking and LFE bandwidth
  3251. optimzations in libopus, and requires that the input contains 8 channels or
  3252. fewer.
  3253. </p>
  3254. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3255. and LFE bandwidth optimizations, and 255 for independent streams with an
  3256. unspecified channel layout.
  3257. </p>
  3258. </dd>
  3259. <dt>&lsquo;<samp>apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp>&rsquo;</dt>
  3260. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3261. improving the quality of mono downmixes, but slightly reducing normal stereo
  3262. quality. The default is 1 (phase inversion enabled).
  3263. </p>
  3264. </dd>
  3265. </dl>
  3266. <p><a name="libshine"></a>
  3267. </p><a name="libshine-1"></a>
  3268. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libshine-1">8.9 libshine</a></h2>
  3269. <p>Shine Fixed-Point MP3 encoder wrapper.
  3270. </p>
  3271. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3272. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3273. However, as it is more targeted on performance than quality, it is not on par
  3274. with LAME and other production-grade encoders quality-wise. Also, according to
  3275. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3276. written a long time ago and the project was dead for at least 5 years.
  3277. </p>
  3278. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3279. </p>
  3280. <p>The original project (last updated in early 2007) is at
  3281. <a href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3282. updated fork by the Savonet/Liquidsoap project at <a href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3283. </p>
  3284. <p>Requires the presence of the libshine headers and library during
  3285. configuration. You need to explicitly configure the build with
  3286. <code>--enable-libshine</code>.
  3287. </p>
  3288. <p>See also <a href="#libmp3lame">libmp3lame</a>.
  3289. </p>
  3290. <a name="Options-25"></a>
  3291. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-25">8.9.1 Options</a></h3>
  3292. <p>The following options are supported by the libshine wrapper. The
  3293. <code>shineenc</code>-equivalent of the options are listed in parentheses.
  3294. </p>
  3295. <dl compact="compact">
  3296. <dt>&lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
  3297. <dd><p>Set bitrate expressed in bits/s for CBR. <code>shineenc</code> &lsquo;<samp>-b</samp>&rsquo; option
  3298. is expressed in kilobits/s.
  3299. </p>
  3300. </dd>
  3301. </dl>
  3302. <a name="libtwolame"></a>
  3303. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libtwolame">8.10 libtwolame</a></h2>
  3304. <p>TwoLAME MP2 encoder wrapper.
  3305. </p>
  3306. <p>Requires the presence of the libtwolame headers and library during
  3307. configuration. You need to explicitly configure the build with
  3308. <code>--enable-libtwolame</code>.
  3309. </p>
  3310. <a name="Options-23"></a>
  3311. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-23">8.10.1 Options</a></h3>
  3312. <p>The following options are supported by the libtwolame wrapper. The
  3313. <code>twolame</code>-equivalent options follow the FFmpeg ones and are in
  3314. parentheses.
  3315. </p>
  3316. <dl compact="compact">
  3317. <dt>&lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
  3318. <dd><p>Set bitrate expressed in bits/s for CBR. <code>twolame</code> &lsquo;<samp>b</samp>&rsquo;
  3319. option is expressed in kilobits/s. Default value is 128k.
  3320. </p>
  3321. </dd>
  3322. <dt>&lsquo;<samp>q (<em>-V</em>)</samp>&rsquo;</dt>
  3323. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3324. from -50 to 50, useful range is from -10 to 10. The higher the
  3325. value, the better the quality. This option is valid only using the
  3326. <code>ffmpeg</code> command-line tool. For library interface users,
  3327. use &lsquo;<samp>global_quality</samp>&rsquo;.
  3328. </p>
  3329. </dd>
  3330. <dt>&lsquo;<samp>mode (<em>--mode</em>)</samp>&rsquo;</dt>
  3331. <dd><p>Set the mode of the resulting audio. Possible values:
  3332. </p>
  3333. <dl compact="compact">
  3334. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  3335. <dd><p>Choose mode automatically based on the input. This is the default.
  3336. </p></dd>
  3337. <dt>&lsquo;<samp>stereo</samp>&rsquo;</dt>
  3338. <dd><p>Stereo
  3339. </p></dd>
  3340. <dt>&lsquo;<samp>joint_stereo</samp>&rsquo;</dt>
  3341. <dd><p>Joint stereo
  3342. </p></dd>
  3343. <dt>&lsquo;<samp>dual_channel</samp>&rsquo;</dt>
  3344. <dd><p>Dual channel
  3345. </p></dd>
  3346. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  3347. <dd><p>Mono
  3348. </p></dd>
  3349. </dl>
  3350. </dd>
  3351. <dt>&lsquo;<samp>psymodel (<em>--psyc-mode</em>)</samp>&rsquo;</dt>
  3352. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3353. an integer between -1 and 4, inclusive. The higher the value, the
  3354. better the quality. The default value is 3.
  3355. </p>
  3356. </dd>
  3357. <dt>&lsquo;<samp>energy_levels (<em>--energy</em>)</samp>&rsquo;</dt>
  3358. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3359. 0 (disabled).
  3360. </p>
  3361. </dd>
  3362. <dt>&lsquo;<samp>error_protection (<em>--protect</em>)</samp>&rsquo;</dt>
  3363. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3364. (disabled).
  3365. </p>
  3366. </dd>
  3367. <dt>&lsquo;<samp>copyright (<em>--copyright</em>)</samp>&rsquo;</dt>
  3368. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3369. (disabled).
  3370. </p>
  3371. </dd>
  3372. <dt>&lsquo;<samp>original (<em>--original</em>)</samp>&rsquo;</dt>
  3373. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3374. (disabled).
  3375. </p>
  3376. </dd>
  3377. </dl>
  3378. <a name="libvo_002damrwbenc"></a>
  3379. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvo_002damrwbenc">8.11 libvo-amrwbenc</a></h2>
  3380. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3381. </p>
  3382. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3383. configuration. You need to explicitly configure the build with
  3384. <code>--enable-libvo-amrwbenc --enable-version3</code>.
  3385. </p>
  3386. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3387. rate, but you can override it by setting &lsquo;<samp>strict</samp>&rsquo; to
  3388. &lsquo;<samp>unofficial</samp>&rsquo; or lower.
  3389. </p>
  3390. <a name="Options-19"></a>
  3391. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-19">8.11.1 Options</a></h3>
  3392. <dl compact="compact">
  3393. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  3394. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3395. libavcodec will round to the nearest valid bitrate.
  3396. </p>
  3397. <dl compact="compact">
  3398. <dt>&lsquo;<samp>6600</samp>&rsquo;</dt>
  3399. <dt>&lsquo;<samp>8850</samp>&rsquo;</dt>
  3400. <dt>&lsquo;<samp>12650</samp>&rsquo;</dt>
  3401. <dt>&lsquo;<samp>14250</samp>&rsquo;</dt>
  3402. <dt>&lsquo;<samp>15850</samp>&rsquo;</dt>
  3403. <dt>&lsquo;<samp>18250</samp>&rsquo;</dt>
  3404. <dt>&lsquo;<samp>19850</samp>&rsquo;</dt>
  3405. <dt>&lsquo;<samp>23050</samp>&rsquo;</dt>
  3406. <dt>&lsquo;<samp>23850</samp>&rsquo;</dt>
  3407. </dl>
  3408. </dd>
  3409. <dt>&lsquo;<samp>dtx</samp>&rsquo;</dt>
  3410. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3411. default value is 0 (disabled).
  3412. </p>
  3413. </dd>
  3414. </dl>
  3415. <a name="libvorbis"></a>
  3416. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvorbis">8.12 libvorbis</a></h2>
  3417. <p>libvorbis encoder wrapper.
  3418. </p>
  3419. <p>Requires the presence of the libvorbisenc headers and library during
  3420. configuration. You need to explicitly configure the build with
  3421. <code>--enable-libvorbis</code>.
  3422. </p>
  3423. <a name="Options-7"></a>
  3424. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-7">8.12.1 Options</a></h3>
  3425. <p>The following options are supported by the libvorbis wrapper. The
  3426. <code>oggenc</code>-equivalent of the options are listed in parentheses.
  3427. </p>
  3428. <p>To get a more accurate and extensive documentation of the libvorbis
  3429. options, consult the libvorbisenc&rsquo;s and <code>oggenc</code>&rsquo;s documentations.
  3430. See <a href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3431. <a href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3432. </p>
  3433. <dl compact="compact">
  3434. <dt>&lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
  3435. <dd><p>Set bitrate expressed in bits/s for ABR. <code>oggenc</code> &lsquo;<samp>-b</samp>&rsquo; is
  3436. expressed in kilobits/s.
  3437. </p>
  3438. </dd>
  3439. <dt>&lsquo;<samp>q (<em>-q</em>)</samp>&rsquo;</dt>
  3440. <dd><p>Set constant quality setting for VBR. The value should be a float
  3441. number in the range of -1.0 to 10.0. The higher the value, the better
  3442. the quality. The default value is &lsquo;<samp>3.0</samp>&rsquo;.
  3443. </p>
  3444. <p>This option is valid only using the <code>ffmpeg</code> command-line tool.
  3445. For library interface users, use &lsquo;<samp>global_quality</samp>&rsquo;.
  3446. </p>
  3447. </dd>
  3448. <dt>&lsquo;<samp>cutoff (<em>--advanced-encode-option lowpass_frequency=N</em>)</samp>&rsquo;</dt>
  3449. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code>oggenc</code>&rsquo;s
  3450. related option is expressed in kHz. The default value is &lsquo;<samp>0</samp>&rsquo; (cutoff
  3451. disabled).
  3452. </p>
  3453. </dd>
  3454. <dt>&lsquo;<samp>minrate (<em>-m</em>)</samp>&rsquo;</dt>
  3455. <dd><p>Set minimum bitrate expressed in bits/s. <code>oggenc</code> &lsquo;<samp>-m</samp>&rsquo; is
  3456. expressed in kilobits/s.
  3457. </p>
  3458. </dd>
  3459. <dt>&lsquo;<samp>maxrate (<em>-M</em>)</samp>&rsquo;</dt>
  3460. <dd><p>Set maximum bitrate expressed in bits/s. <code>oggenc</code> &lsquo;<samp>-M</samp>&rsquo; is
  3461. expressed in kilobits/s. This only has effect on ABR mode.
  3462. </p>
  3463. </dd>
  3464. <dt>&lsquo;<samp>iblock (<em>--advanced-encode-option impulse_noisetune=N</em>)</samp>&rsquo;</dt>
  3465. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3466. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3467. to the crispness of transients in the encoded audio. The tradeoff for better
  3468. transient response is a higher bitrate.
  3469. </p>
  3470. </dd>
  3471. </dl>
  3472. <p><a name="libwavpack"></a>
  3473. </p><a name="libwavpack-1"></a>
  3474. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libwavpack-1">8.13 libwavpack</a></h2>
  3475. <p>A wrapper providing WavPack encoding through libwavpack.
  3476. </p>
  3477. <p>Only lossless mode using 32-bit integer samples is supported currently.
  3478. </p>
  3479. <p>Requires the presence of the libwavpack headers and library during
  3480. configuration. You need to explicitly configure the build with
  3481. <code>--enable-libwavpack</code>.
  3482. </p>
  3483. <p>Note that a libavcodec-native encoder for the WavPack codec exists so users can
  3484. encode audios with this codec without using this encoder. See <a href="#wavpackenc">wavpackenc</a>.
  3485. </p>
  3486. <a name="Options-12"></a>
  3487. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-12">8.13.1 Options</a></h3>
  3488. <p><code>wavpack</code> command line utility&rsquo;s corresponding options are listed in
  3489. parentheses, if any.
  3490. </p>
  3491. <dl compact="compact">
  3492. <dt>&lsquo;<samp>frame_size (<em>--blocksize</em>)</samp>&rsquo;</dt>
  3493. <dd><p>Default is 32768.
  3494. </p>
  3495. </dd>
  3496. <dt>&lsquo;<samp>compression_level</samp>&rsquo;</dt>
  3497. <dd><p>Set speed vs. compression tradeoff. Acceptable arguments are listed below:
  3498. </p>
  3499. <dl compact="compact">
  3500. <dt>&lsquo;<samp>0 (<em>-f</em>)</samp>&rsquo;</dt>
  3501. <dd><p>Fast mode.
  3502. </p>
  3503. </dd>
  3504. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  3505. <dd><p>Normal (default) settings.
  3506. </p>
  3507. </dd>
  3508. <dt>&lsquo;<samp>2 (<em>-h</em>)</samp>&rsquo;</dt>
  3509. <dd><p>High quality.
  3510. </p>
  3511. </dd>
  3512. <dt>&lsquo;<samp>3 (<em>-hh</em>)</samp>&rsquo;</dt>
  3513. <dd><p>Very high quality.
  3514. </p>
  3515. </dd>
  3516. <dt>&lsquo;<samp>4-8 (<em>-hh -x</em><var>EXTRAPROC</var>)</samp>&rsquo;</dt>
  3517. <dd><p>Same as &lsquo;<samp>3</samp>&rsquo;, but with extra processing enabled.
  3518. </p>
  3519. <p>&lsquo;<samp>4</samp>&rsquo; is the same as &lsquo;<samp>-x2</samp>&rsquo; and &lsquo;<samp>8</samp>&rsquo; is the same as &lsquo;<samp>-x6</samp>&rsquo;.
  3520. </p>
  3521. </dd>
  3522. </dl>
  3523. </dd>
  3524. </dl>
  3525. <p><a name="mjpegenc"></a>
  3526. </p><a name="mjpeg"></a>
  3527. <h2 class="section"><a href="ffmpeg-codecs.html#toc-mjpeg">8.14 mjpeg</a></h2>
  3528. <p>Motion JPEG encoder.
  3529. </p>
  3530. <a name="Options-28"></a>
  3531. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-28">8.14.1 Options</a></h3>
  3532. <dl compact="compact">
  3533. <dt>&lsquo;<samp>huffman</samp>&rsquo;</dt>
  3534. <dd><p>Set the huffman encoding strategy. Possible values:
  3535. </p>
  3536. <dl compact="compact">
  3537. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  3538. <dd><p>Use the default huffman tables. This is the default strategy.
  3539. </p>
  3540. </dd>
  3541. <dt>&lsquo;<samp>optimal</samp>&rsquo;</dt>
  3542. <dd><p>Compute and use optimal huffman tables.
  3543. </p>
  3544. </dd>
  3545. </dl>
  3546. </dd>
  3547. </dl>
  3548. <p><a name="wavpackenc"></a>
  3549. </p><a name="wavpack"></a>
  3550. <h2 class="section"><a href="ffmpeg-codecs.html#toc-wavpack">8.15 wavpack</a></h2>
  3551. <p>WavPack lossless audio encoder.
  3552. </p>
  3553. <p>This is a libavcodec-native WavPack encoder. There is also an encoder based on
  3554. libwavpack, but there is virtually no reason to use that encoder.
  3555. </p>
  3556. <p>See also <a href="#libwavpack">libwavpack</a>.
  3557. </p>
  3558. <a name="Options-10"></a>
  3559. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-10">8.15.1 Options</a></h3>
  3560. <p>The equivalent options for <code>wavpack</code> command line utility are listed in
  3561. parentheses.
  3562. </p>
  3563. <a name="Shared-options"></a>
  3564. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Shared-options">8.15.1.1 Shared options</a></h4>
  3565. <p>The following shared options are effective for this encoder. Only special notes
  3566. about this particular encoder will be documented here. For the general meaning
  3567. of the options, see <a href="#codec_002doptions">the Codec Options chapter</a>.
  3568. </p>
  3569. <dl compact="compact">
  3570. <dt>&lsquo;<samp>frame_size (<em>--blocksize</em>)</samp>&rsquo;</dt>
  3571. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3572. is automatically decided based on sample rate and number of channel.
  3573. </p>
  3574. <p>For the complete formula of calculating default, see
  3575. &lsquo;<tt>libavcodec/wavpackenc.c</tt>&rsquo;.
  3576. </p>
  3577. </dd>
  3578. <dt>&lsquo;<samp>compression_level (<em>-f</em>, <em>-h</em>, <em>-hh</em>, and <em>-x</em>)</samp>&rsquo;</dt>
  3579. <dd><p>This option&rsquo;s syntax is consistent with <a href="#libwavpack">libwavpack</a>&rsquo;s.
  3580. </p></dd>
  3581. </dl>
  3582. <a name="Private-options-1"></a>
  3583. <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Private-options-1">8.15.1.2 Private options</a></h4>
  3584. <dl compact="compact">
  3585. <dt>&lsquo;<samp>joint_stereo (<em>-j</em>)</samp>&rsquo;</dt>
  3586. <dd><p>Set whether to enable joint stereo. Valid values are:
  3587. </p>
  3588. <dl compact="compact">
  3589. <dt>&lsquo;<samp>on (<em>1</em>)</samp>&rsquo;</dt>
  3590. <dd><p>Force mid/side audio encoding.
  3591. </p></dd>
  3592. <dt>&lsquo;<samp>off (<em>0</em>)</samp>&rsquo;</dt>
  3593. <dd><p>Force left/right audio encoding.
  3594. </p></dd>
  3595. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  3596. <dd><p>Let the encoder decide automatically.
  3597. </p></dd>
  3598. </dl>
  3599. </dd>
  3600. <dt>&lsquo;<samp>optimize_mono</samp>&rsquo;</dt>
  3601. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3602. non-mono streams. Available values:
  3603. </p>
  3604. <dl compact="compact">
  3605. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  3606. <dd><p>enabled
  3607. </p></dd>
  3608. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  3609. <dd><p>disabled
  3610. </p></dd>
  3611. </dl>
  3612. </dd>
  3613. </dl>
  3614. <a name="Video-Encoders"></a>
  3615. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Video-Encoders">9 Video Encoders</a></h1>
  3616. <p>A description of some of the currently available video encoders
  3617. follows.
  3618. </p>
  3619. <a name="Hap"></a>
  3620. <h2 class="section"><a href="ffmpeg-codecs.html#toc-Hap">9.1 Hap</a></h2>
  3621. <p>Vidvox Hap video encoder.
  3622. </p>
  3623. <a name="Options-15"></a>
  3624. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-15">9.1.1 Options</a></h3>
  3625. <dl compact="compact">
  3626. <dt>&lsquo;<samp>format <var>integer</var></samp>&rsquo;</dt>
  3627. <dd><p>Specifies the Hap format to encode.
  3628. </p>
  3629. <dl compact="compact">
  3630. <dt>&lsquo;<samp>hap</samp>&rsquo;</dt>
  3631. <dt>&lsquo;<samp>hap_alpha</samp>&rsquo;</dt>
  3632. <dt>&lsquo;<samp>hap_q</samp>&rsquo;</dt>
  3633. </dl>
  3634. <p>Default value is &lsquo;<samp>hap</samp>&rsquo;.
  3635. </p>
  3636. </dd>
  3637. <dt>&lsquo;<samp>chunks <var>integer</var></samp>&rsquo;</dt>
  3638. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  3639. permits multithreaded decoding of large frames, potentially at the cost of
  3640. data-rate. The encoder may modify this value to divide frames evenly.
  3641. </p>
  3642. <p>Default value is <var>1</var>.
  3643. </p>
  3644. </dd>
  3645. <dt>&lsquo;<samp>compressor <var>integer</var></samp>&rsquo;</dt>
  3646. <dd><p>Specifies the second-stage compressor to use. If set to &lsquo;<samp>none</samp>&rsquo;,
  3647. &lsquo;<samp>chunks</samp>&rsquo; will be limited to 1, as chunked uncompressed frames offer no
  3648. benefit.
  3649. </p>
  3650. <dl compact="compact">
  3651. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  3652. <dt>&lsquo;<samp>snappy</samp>&rsquo;</dt>
  3653. </dl>
  3654. <p>Default value is &lsquo;<samp>snappy</samp>&rsquo;.
  3655. </p>
  3656. </dd>
  3657. </dl>
  3658. <a name="jpeg2000"></a>
  3659. <h2 class="section"><a href="ffmpeg-codecs.html#toc-jpeg2000">9.2 jpeg2000</a></h2>
  3660. <p>The native jpeg 2000 encoder is lossy by default, the <code>-q:v</code>
  3661. option can be used to set the encoding quality. Lossless encoding
  3662. can be selected with <code>-pred 1</code>.
  3663. </p>
  3664. <a name="Options-14"></a>
  3665. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-14">9.2.1 Options</a></h3>
  3666. <dl compact="compact">
  3667. <dt>&lsquo;<samp>format</samp>&rsquo;</dt>
  3668. <dd><p>Can be set to either <code>j2k</code> or <code>jp2</code> (the default) that
  3669. makes it possible to store non-rgb pix_fmts.
  3670. </p>
  3671. </dd>
  3672. </dl>
  3673. <a name="librav1e"></a>
  3674. <h2 class="section"><a href="ffmpeg-codecs.html#toc-librav1e">9.3 librav1e</a></h2>
  3675. <p>rav1e AV1 encoder wrapper.
  3676. </p>
  3677. <p>Requires the presence of the rav1e headers and library during configuration.
  3678. You need to explicitly configure the build with <code>--enable-librav1e</code>.
  3679. </p>
  3680. <a name="Options-1"></a>
  3681. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-1">9.3.1 Options</a></h3>
  3682. <dl compact="compact">
  3683. <dt>&lsquo;<samp>qmax</samp>&rsquo;</dt>
  3684. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  3685. </p>
  3686. </dd>
  3687. <dt>&lsquo;<samp>qmin</samp>&rsquo;</dt>
  3688. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  3689. </p>
  3690. </dd>
  3691. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  3692. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  3693. </p>
  3694. </dd>
  3695. <dt>&lsquo;<samp>speed</samp>&rsquo;</dt>
  3696. <dd><p>Selects the speed preset (0-10) to encode with.
  3697. </p>
  3698. </dd>
  3699. <dt>&lsquo;<samp>tiles</samp>&rsquo;</dt>
  3700. <dd><p>Selects how many tiles to encode with.
  3701. </p>
  3702. </dd>
  3703. <dt>&lsquo;<samp>tile-rows</samp>&rsquo;</dt>
  3704. <dd><p>Selects how many rows of tiles to encode with.
  3705. </p>
  3706. </dd>
  3707. <dt>&lsquo;<samp>tile-columns</samp>&rsquo;</dt>
  3708. <dd><p>Selects how many columns of tiles to encode with.
  3709. </p>
  3710. </dd>
  3711. <dt>&lsquo;<samp>rav1e-params</samp>&rsquo;</dt>
  3712. <dd><p>Set rav1e options using a list of <var>key</var>=<var>value</var> pairs separated
  3713. by &quot;:&quot;. See <code>rav1e --help</code> for a list of options.
  3714. </p>
  3715. <p>For example to specify librav1e encoding options with &lsquo;<samp>-rav1e-params</samp>&rsquo;:
  3716. </p>
  3717. <div class="example">
  3718. <pre class="example">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  3719. </pre></div>
  3720. </dd>
  3721. </dl>
  3722. <a name="libaom_002dav1"></a>
  3723. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libaom_002dav1">9.4 libaom-av1</a></h2>
  3724. <p>libaom AV1 encoder wrapper.
  3725. </p>
  3726. <p>Requires the presence of the libaom headers and library during
  3727. configuration. You need to explicitly configure the build with
  3728. <code>--enable-libaom</code>.
  3729. </p>
  3730. <a name="Options"></a>
  3731. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options">9.4.1 Options</a></h3>
  3732. <p>The wrapper supports the following standard libavcodec options:
  3733. </p>
  3734. <dl compact="compact">
  3735. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  3736. <dd><p>Set bitrate target in bits/second. By default this will use
  3737. variable-bitrate mode. If &lsquo;<samp>maxrate</samp>&rsquo; and &lsquo;<samp>minrate</samp>&rsquo; are
  3738. also set to the same value then it will use constant-bitrate mode,
  3739. otherwise if &lsquo;<samp>crf</samp>&rsquo; is set as well then it will use
  3740. constrained-quality mode.
  3741. </p>
  3742. </dd>
  3743. <dt>&lsquo;<samp>g keyint_min</samp>&rsquo;</dt>
  3744. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  3745. key frames; if zero the output stream will be intra-only. The minimum
  3746. distance is ignored unless it is the same as the GOP size, in which case
  3747. key frames will always appear at a fixed interval. Not set by default,
  3748. so without this option the library has completely free choice about
  3749. where to place key frames.
  3750. </p>
  3751. </dd>
  3752. <dt>&lsquo;<samp>qmin qmax</samp>&rsquo;</dt>
  3753. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  3754. (warning: this does not match the quantiser values actually used by AV1
  3755. - divide by four to map real quantiser values to this range). Defaults
  3756. to min/max (no constraint).
  3757. </p>
  3758. </dd>
  3759. <dt>&lsquo;<samp>minrate maxrate bufsize rc_init_occupancy</samp>&rsquo;</dt>
  3760. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  3761. to unconstrained variable bitrate.
  3762. </p>
  3763. </dd>
  3764. <dt>&lsquo;<samp>threads</samp>&rsquo;</dt>
  3765. <dd><p>Set the number of threads to use while encoding. This may require the
  3766. &lsquo;<samp>tiles</samp>&rsquo; or &lsquo;<samp>row-mt</samp>&rsquo; options to also be set to actually
  3767. use the specified number of threads fully. Defaults to the number of
  3768. hardware threads supported by the host machine.
  3769. </p>
  3770. </dd>
  3771. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  3772. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  3773. the bit depth and chroma subsampling of the input.
  3774. </p>
  3775. </dd>
  3776. </dl>
  3777. <p>The wrapper also has some specific options:
  3778. </p>
  3779. <dl compact="compact">
  3780. <dt>&lsquo;<samp>cpu-used</samp>&rsquo;</dt>
  3781. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  3782. higher numbers indicating greater speed and lower quality. The default
  3783. value is 1, which will be slow and high quality.
  3784. </p>
  3785. </dd>
  3786. <dt>&lsquo;<samp>auto-alt-ref</samp>&rsquo;</dt>
  3787. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  3788. default of the library.
  3789. </p>
  3790. </dd>
  3791. <dt>&lsquo;<samp>arnr-max-frames (<em>frames</em>)</samp>&rsquo;</dt>
  3792. <dd><p>Set altref noise reduction max frame count. Default is -1.
  3793. </p>
  3794. </dd>
  3795. <dt>&lsquo;<samp>arnr-strength (<em>strength</em>)</samp>&rsquo;</dt>
  3796. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  3797. </p>
  3798. </dd>
  3799. <dt>&lsquo;<samp>aq-mode (<em>aq-mode</em>)</samp>&rsquo;</dt>
  3800. <dd><p>Set adaptive quantization mode. Possible values:
  3801. </p>
  3802. <dl compact="compact">
  3803. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  3804. <dd><p>Disabled.
  3805. </p>
  3806. </dd>
  3807. <dt>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</dt>
  3808. <dd><p>Variance-based.
  3809. </p>
  3810. </dd>
  3811. <dt>&lsquo;<samp>complexity (<em>2</em>)</samp>&rsquo;</dt>
  3812. <dd><p>Complexity-based.
  3813. </p>
  3814. </dd>
  3815. <dt>&lsquo;<samp>cyclic (<em>3</em>)</samp>&rsquo;</dt>
  3816. <dd><p>Cyclic refresh.
  3817. </p></dd>
  3818. </dl>
  3819. </dd>
  3820. <dt>&lsquo;<samp>lag-in-frames</samp>&rsquo;</dt>
  3821. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  3822. at any one time for lookahead purposes. Defaults to the internal
  3823. default of the library.
  3824. </p>
  3825. </dd>
  3826. <dt>&lsquo;<samp>error-resilience</samp>&rsquo;</dt>
  3827. <dd><p>Enable error resilience features:
  3828. </p><dl compact="compact">
  3829. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  3830. <dd><p>Improve resilience against losses of whole frames.
  3831. </p></dd>
  3832. </dl>
  3833. <p>Not enabled by default.
  3834. </p>
  3835. </dd>
  3836. <dt>&lsquo;<samp>crf</samp>&rsquo;</dt>
  3837. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  3838. and constrained-quality (with maximum bitrate target) modes. Valid
  3839. range is 0 to 63, higher numbers indicating lower quality and smaller
  3840. output size. Only used if set; by default only the bitrate target is
  3841. used.
  3842. </p>
  3843. </dd>
  3844. <dt>&lsquo;<samp>static-thresh</samp>&rsquo;</dt>
  3845. <dd><p>Set a change threshold on blocks below which they will be skipped by
  3846. the encoder. Defined in arbitrary units as a nonnegative integer,
  3847. defaulting to zero (no blocks are skipped).
  3848. </p>
  3849. </dd>
  3850. <dt>&lsquo;<samp>drop-threshold</samp>&rsquo;</dt>
  3851. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  3852. Defined as a percentage of the target buffer - when the rate control
  3853. buffer falls below this percentage, frames will be dropped until it
  3854. has refilled above the threshold. Defaults to zero (no frames are
  3855. dropped).
  3856. </p>
  3857. </dd>
  3858. <dt>&lsquo;<samp>denoise-noise-level (<em>level</em>)</samp>&rsquo;</dt>
  3859. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  3860. this option is not set or set to 0.
  3861. </p>
  3862. </dd>
  3863. <dt>&lsquo;<samp>denoise-block-size (<em>pixels</em>)</samp>&rsquo;</dt>
  3864. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  3865. uses the default value of 32.
  3866. </p>
  3867. </dd>
  3868. <dt>&lsquo;<samp>undershoot-pct (<em>pct</em>)</samp>&rsquo;</dt>
  3869. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  3870. Default is -1.
  3871. </p>
  3872. </dd>
  3873. <dt>&lsquo;<samp>overshoot-pct (<em>pct</em>)</samp>&rsquo;</dt>
  3874. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  3875. Default is -1.
  3876. </p>
  3877. </dd>
  3878. <dt>&lsquo;<samp>minsection-pct (<em>pct</em>)</samp>&rsquo;</dt>
  3879. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  3880. is not set, the libaomenc wrapper computes it as follows: <code>(minrate * 100 / bitrate)</code>.
  3881. Range is -1 to 100. Default is -1 (unset).
  3882. </p>
  3883. </dd>
  3884. <dt>&lsquo;<samp>maxsection-pct (<em>pct</em>)</samp>&rsquo;</dt>
  3885. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  3886. is not set, the libaomenc wrapper computes it as follows: <code>(maxrate * 100 / bitrate)</code>.
  3887. Range is -1 to 5000. Default is -1 (unset).
  3888. </p>
  3889. </dd>
  3890. <dt>&lsquo;<samp>frame-parallel (<em>boolean</em>)</samp>&rsquo;</dt>
  3891. <dd><p>Enable frame parallel decodability features. Default is true.
  3892. </p>
  3893. </dd>
  3894. <dt>&lsquo;<samp>tiles</samp>&rsquo;</dt>
  3895. <dd><p>Set the number of tiles to encode the input video with, as columns x
  3896. rows. Larger numbers allow greater parallelism in both encoding and
  3897. decoding, but may decrease coding efficiency. Defaults to the minimum
  3898. number of tiles required by the size of the input video (this is 1x1
  3899. (that is, a single tile) for sizes up to and including 4K).
  3900. </p>
  3901. </dd>
  3902. <dt>&lsquo;<samp>tile-columns tile-rows</samp>&rsquo;</dt>
  3903. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  3904. Provided for compatibility with libvpx/VP9.
  3905. </p>
  3906. </dd>
  3907. <dt>&lsquo;<samp>row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp>&rsquo;</dt>
  3908. <dd><p>Enable row based multi-threading. Disabled by default.
  3909. </p>
  3910. </dd>
  3911. <dt>&lsquo;<samp>enable-cdef (<em>boolean</em>)</samp>&rsquo;</dt>
  3912. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  3913. encoder enables CDEF by default.
  3914. </p>
  3915. </dd>
  3916. <dt>&lsquo;<samp>enable-restoration (<em>boolean</em>)</samp>&rsquo;</dt>
  3917. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  3918. </p>
  3919. </dd>
  3920. <dt>&lsquo;<samp>enable-global-motion (<em>boolean</em>)</samp>&rsquo;</dt>
  3921. <dd><p>Enable the use of global motion for block prediction. Default is true.
  3922. </p>
  3923. </dd>
  3924. <dt>&lsquo;<samp>enable-intrabc (<em>boolean</em>)</samp>&rsquo;</dt>
  3925. <dd><p>Enable block copy mode for intra block prediction. This mode is
  3926. useful for screen content. Default is true.
  3927. </p>
  3928. </dd>
  3929. </dl>
  3930. <a name="libkvazaar"></a>
  3931. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libkvazaar">9.5 libkvazaar</a></h2>
  3932. <p>Kvazaar H.265/HEVC encoder.
  3933. </p>
  3934. <p>Requires the presence of the libkvazaar headers and library during
  3935. configuration. You need to explicitly configure the build with
  3936. &lsquo;<samp>--enable-libkvazaar</samp>&rsquo;.
  3937. </p>
  3938. <a name="Options-22"></a>
  3939. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-22">9.5.1 Options</a></h3>
  3940. <dl compact="compact">
  3941. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  3942. <dd><p>Set target video bitrate in bit/s and enable rate control.
  3943. </p>
  3944. </dd>
  3945. <dt>&lsquo;<samp>kvazaar-params</samp>&rsquo;</dt>
  3946. <dd><p>Set kvazaar parameters as a list of <var>name</var>=<var>value</var> pairs separated
  3947. by commas (,). See kvazaar documentation for a list of options.
  3948. </p>
  3949. </dd>
  3950. </dl>
  3951. <a name="libopenh264"></a>
  3952. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopenh264">9.6 libopenh264</a></h2>
  3953. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  3954. </p>
  3955. <p>This encoder requires the presence of the libopenh264 headers and
  3956. library during configuration. You need to explicitly configure the
  3957. build with <code>--enable-libopenh264</code>. The library is detected using
  3958. <code>pkg-config</code>.
  3959. </p>
  3960. <p>For more information about the library see
  3961. <a href="http://www.openh264.org">http://www.openh264.org</a>.
  3962. </p>
  3963. <a name="Options-5"></a>
  3964. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-5">9.6.1 Options</a></h3>
  3965. <p>The following FFmpeg global options affect the configurations of the
  3966. libopenh264 encoder.
  3967. </p>
  3968. <dl compact="compact">
  3969. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  3970. <dd><p>Set the bitrate (as a number of bits per second).
  3971. </p>
  3972. </dd>
  3973. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  3974. <dd><p>Set the GOP size.
  3975. </p>
  3976. </dd>
  3977. <dt>&lsquo;<samp>maxrate</samp>&rsquo;</dt>
  3978. <dd><p>Set the max bitrate (as a number of bits per second).
  3979. </p>
  3980. </dd>
  3981. <dt>&lsquo;<samp>flags +global_header</samp>&rsquo;</dt>
  3982. <dd><p>Set global header in the bitstream.
  3983. </p>
  3984. </dd>
  3985. <dt>&lsquo;<samp>slices</samp>&rsquo;</dt>
  3986. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  3987. is 0. This is only used when &lsquo;<samp>slice_mode</samp>&rsquo; is set to
  3988. &lsquo;<samp>fixed</samp>&rsquo;.
  3989. </p>
  3990. </dd>
  3991. <dt>&lsquo;<samp>slice_mode</samp>&rsquo;</dt>
  3992. <dd><p>Set slice mode. Can assume one of the following possible values:
  3993. </p>
  3994. <dl compact="compact">
  3995. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  3996. <dd><p>a fixed number of slices
  3997. </p></dd>
  3998. <dt>&lsquo;<samp>rowmb</samp>&rsquo;</dt>
  3999. <dd><p>one slice per row of macroblocks
  4000. </p></dd>
  4001. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4002. <dd><p>automatic number of slices according to number of threads
  4003. </p></dd>
  4004. <dt>&lsquo;<samp>dyn</samp>&rsquo;</dt>
  4005. <dd><p>dynamic slicing
  4006. </p></dd>
  4007. </dl>
  4008. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  4009. </p>
  4010. </dd>
  4011. <dt>&lsquo;<samp>loopfilter</samp>&rsquo;</dt>
  4012. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4013. set a value of 0.
  4014. </p>
  4015. </dd>
  4016. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  4017. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp>main</samp>&rsquo; enable
  4018. CABAC (set the <code>SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4019. </p>
  4020. </dd>
  4021. <dt>&lsquo;<samp>max_nal_size</samp>&rsquo;</dt>
  4022. <dd><p>Set maximum NAL size in bytes.
  4023. </p>
  4024. </dd>
  4025. <dt>&lsquo;<samp>allow_skip_frames</samp>&rsquo;</dt>
  4026. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4027. </p></dd>
  4028. </dl>
  4029. <a name="libtheora"></a>
  4030. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libtheora">9.7 libtheora</a></h2>
  4031. <p>libtheora Theora encoder wrapper.
  4032. </p>
  4033. <p>Requires the presence of the libtheora headers and library during
  4034. configuration. You need to explicitly configure the build with
  4035. <code>--enable-libtheora</code>.
  4036. </p>
  4037. <p>For more information about the libtheora project see
  4038. <a href="http://www.theora.org/">http://www.theora.org/</a>.
  4039. </p>
  4040. <a name="Options-9"></a>
  4041. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-9">9.7.1 Options</a></h3>
  4042. <p>The following global options are mapped to internal libtheora options
  4043. which affect the quality and the bitrate of the encoded stream.
  4044. </p>
  4045. <dl compact="compact">
  4046. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  4047. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4048. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4049. </p>
  4050. </dd>
  4051. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  4052. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4053. &lsquo;<samp>qscale</samp>&rsquo; flag, and to enable the <code>pass1</code> and <code>pass2</code>
  4054. modes.
  4055. </p>
  4056. </dd>
  4057. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  4058. <dd><p>Set the GOP size.
  4059. </p>
  4060. </dd>
  4061. <dt>&lsquo;<samp>global_quality</samp>&rsquo;</dt>
  4062. <dd><p>Set the global quality as an integer in lambda units.
  4063. </p>
  4064. <p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>. The
  4065. value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
  4066. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4067. value in the native libtheora range [0-63]. A higher value corresponds
  4068. to a higher quality.
  4069. </p>
  4070. </dd>
  4071. <dt>&lsquo;<samp>q</samp>&rsquo;</dt>
  4072. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4073. quality value as a double floating point value in QP units.
  4074. </p>
  4075. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4076. to get a value in the native libtheora range [0-63].
  4077. </p>
  4078. <p>This option is valid only using the <code>ffmpeg</code> command-line
  4079. tool. For library interface users, use &lsquo;<samp>global_quality</samp>&rsquo;.
  4080. </p></dd>
  4081. </dl>
  4082. <a name="Examples"></a>
  4083. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Examples">9.7.2 Examples</a></h3>
  4084. <ul>
  4085. <li>
  4086. Set maximum constant quality (VBR) encoding with <code>ffmpeg</code>:
  4087. <div class="example">
  4088. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4089. </pre></div>
  4090. </li><li>
  4091. Use <code>ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4092. <div class="example">
  4093. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4094. </pre></div>
  4095. </li></ul>
  4096. <a name="libvpx"></a>
  4097. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvpx">9.8 libvpx</a></h2>
  4098. <p>VP8/VP9 format supported through libvpx.
  4099. </p>
  4100. <p>Requires the presence of the libvpx headers and library during configuration.
  4101. You need to explicitly configure the build with <code>--enable-libvpx</code>.
  4102. </p>
  4103. <a name="Options-24"></a>
  4104. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-24">9.8.1 Options</a></h3>
  4105. <p>The following options are supported by the libvpx wrapper. The
  4106. <code>vpxenc</code>-equivalent options or values are listed in parentheses
  4107. for easy migration.
  4108. </p>
  4109. <p>To reduce the duplication of documentation, only the private options
  4110. and some others requiring special attention are documented here. For
  4111. the documentation of the undocumented generic options, see
  4112. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4113. </p>
  4114. <p>To get more documentation of the libvpx options, invoke the command
  4115. <code>ffmpeg -h encoder=libvpx</code>, <code>ffmpeg -h encoder=libvpx-vp9</code> or
  4116. <code>vpxenc --help</code>. Further information is available in the libvpx API
  4117. documentation.
  4118. </p>
  4119. <dl compact="compact">
  4120. <dt>&lsquo;<samp>b (<em>target-bitrate</em>)</samp>&rsquo;</dt>
  4121. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s &lsquo;<samp>b</samp>&rsquo; option is
  4122. expressed in bits/s, while <code>vpxenc</code>&rsquo;s &lsquo;<samp>target-bitrate</samp>&rsquo; is in
  4123. kilobits/s.
  4124. </p>
  4125. </dd>
  4126. <dt>&lsquo;<samp>g (<em>kf-max-dist</em>)</samp>&rsquo;</dt>
  4127. <dt>&lsquo;<samp>keyint_min (<em>kf-min-dist</em>)</samp>&rsquo;</dt>
  4128. <dt>&lsquo;<samp>qmin (<em>min-q</em>)</samp>&rsquo;</dt>
  4129. <dt>&lsquo;<samp>qmax (<em>max-q</em>)</samp>&rsquo;</dt>
  4130. <dt>&lsquo;<samp>bufsize (<em>buf-sz</em>, <em>buf-optimal-sz</em>)</samp>&rsquo;</dt>
  4131. <dd><p>Set ratecontrol buffer size (in bits). Note <code>vpxenc</code>&rsquo;s options are
  4132. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4133. <code>buf-sz = bufsize * 1000 / bitrate</code>,
  4134. <code>buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4135. </p>
  4136. </dd>
  4137. <dt>&lsquo;<samp>rc_init_occupancy (<em>buf-initial-sz</em>)</samp>&rsquo;</dt>
  4138. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4139. starts. Note <code>vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4140. wrapper converts this value as follows:
  4141. <code>rc_init_occupancy * 1000 / bitrate</code>.
  4142. </p>
  4143. </dd>
  4144. <dt>&lsquo;<samp>undershoot-pct</samp>&rsquo;</dt>
  4145. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4146. </p>
  4147. </dd>
  4148. <dt>&lsquo;<samp>overshoot-pct</samp>&rsquo;</dt>
  4149. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4150. </p>
  4151. </dd>
  4152. <dt>&lsquo;<samp>skip_threshold (<em>drop-frame</em>)</samp>&rsquo;</dt>
  4153. <dt>&lsquo;<samp>qcomp (<em>bias-pct</em>)</samp>&rsquo;</dt>
  4154. <dt>&lsquo;<samp>maxrate (<em>maxsection-pct</em>)</samp>&rsquo;</dt>
  4155. <dd><p>Set GOP max bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4156. percentage of the target bitrate, the libvpx wrapper converts this value as
  4157. follows: <code>(maxrate * 100 / bitrate)</code>.
  4158. </p>
  4159. </dd>
  4160. <dt>&lsquo;<samp>minrate (<em>minsection-pct</em>)</samp>&rsquo;</dt>
  4161. <dd><p>Set GOP min bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4162. percentage of the target bitrate, the libvpx wrapper converts this value as
  4163. follows: <code>(minrate * 100 / bitrate)</code>.
  4164. </p>
  4165. </dd>
  4166. <dt>&lsquo;<samp>minrate, maxrate, b <em>end-usage=cbr</em></samp>&rsquo;</dt>
  4167. <dd><p><code>(minrate == maxrate == bitrate)</code>.
  4168. </p>
  4169. </dd>
  4170. <dt>&lsquo;<samp>crf (<em>end-usage=cq</em>, <em>cq-level</em>)</samp>&rsquo;</dt>
  4171. <dt>&lsquo;<samp>tune (<em>tune</em>)</samp>&rsquo;</dt>
  4172. <dd><dl compact="compact">
  4173. <dt>&lsquo;<samp>psnr (<em>psnr</em>)</samp>&rsquo;</dt>
  4174. <dt>&lsquo;<samp>ssim (<em>ssim</em>)</samp>&rsquo;</dt>
  4175. </dl>
  4176. </dd>
  4177. <dt>&lsquo;<samp>quality, deadline (<em>deadline</em>)</samp>&rsquo;</dt>
  4178. <dd><dl compact="compact">
  4179. <dt>&lsquo;<samp>best</samp>&rsquo;</dt>
  4180. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4181. avoided as it may give worse quality output than good.
  4182. </p></dd>
  4183. <dt>&lsquo;<samp>good</samp>&rsquo;</dt>
  4184. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4185. when used with the &lsquo;<samp>cpu-used</samp>&rsquo; option.
  4186. </p></dd>
  4187. <dt>&lsquo;<samp>realtime</samp>&rsquo;</dt>
  4188. <dd><p>Use realtime quality deadline.
  4189. </p></dd>
  4190. </dl>
  4191. </dd>
  4192. <dt>&lsquo;<samp>speed, cpu-used (<em>cpu-used</em>)</samp>&rsquo;</dt>
  4193. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4194. of quality.
  4195. </p>
  4196. </dd>
  4197. <dt>&lsquo;<samp>nr (<em>noise-sensitivity</em>)</samp>&rsquo;</dt>
  4198. <dt>&lsquo;<samp>static-thresh</samp>&rsquo;</dt>
  4199. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4200. encoder.
  4201. </p>
  4202. </dd>
  4203. <dt>&lsquo;<samp>slices (<em>token-parts</em>)</samp>&rsquo;</dt>
  4204. <dd><p>Note that FFmpeg&rsquo;s &lsquo;<samp>slices</samp>&rsquo; option gives the total number of partitions,
  4205. while <code>vpxenc</code>&rsquo;s &lsquo;<samp>token-parts</samp>&rsquo; is given as
  4206. <code>log2(partitions)</code>.
  4207. </p>
  4208. </dd>
  4209. <dt>&lsquo;<samp>max-intra-rate</samp>&rsquo;</dt>
  4210. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4211. means unlimited.
  4212. </p>
  4213. </dd>
  4214. <dt>&lsquo;<samp>force_key_frames</samp>&rsquo;</dt>
  4215. <dd><p><code>VPX_EFLAG_FORCE_KF</code>
  4216. </p>
  4217. </dd>
  4218. <dt>&lsquo;<samp>Alternate reference frame related</samp>&rsquo;</dt>
  4219. <dd><dl compact="compact">
  4220. <dt>&lsquo;<samp>auto-alt-ref</samp>&rsquo;</dt>
  4221. <dd><p>Enable use of alternate reference frames (2-pass only).
  4222. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4223. </p></dd>
  4224. <dt>&lsquo;<samp>arnr-maxframes</samp>&rsquo;</dt>
  4225. <dd><p>Set altref noise reduction max frame count.
  4226. </p></dd>
  4227. <dt>&lsquo;<samp>arnr-type</samp>&rsquo;</dt>
  4228. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4229. </p></dd>
  4230. <dt>&lsquo;<samp>arnr-strength</samp>&rsquo;</dt>
  4231. <dd><p>Set altref noise reduction filter strength.
  4232. </p></dd>
  4233. <dt>&lsquo;<samp>rc-lookahead, lag-in-frames (<em>lag-in-frames</em>)</samp>&rsquo;</dt>
  4234. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4235. </p></dd>
  4236. </dl>
  4237. </dd>
  4238. <dt>&lsquo;<samp>error-resilient</samp>&rsquo;</dt>
  4239. <dd><p>Enable error resiliency features.
  4240. </p>
  4241. </dd>
  4242. <dt>&lsquo;<samp>sharpness <var>integer</var></samp>&rsquo;</dt>
  4243. <dd><p>Increase sharpness at the expense of lower PSNR.
  4244. The valid range is [0, 7].
  4245. </p>
  4246. </dd>
  4247. <dt>&lsquo;<samp>ts-parameters</samp>&rsquo;</dt>
  4248. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  4249. key=value pairs. For example, to specify temporal scalability parameters
  4250. with <code>ffmpeg</code>:
  4251. </p><div class="example">
  4252. <pre class="example">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  4253. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  4254. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  4255. </pre></div>
  4256. <p>Below is a brief explanation of each of the parameters, please
  4257. refer to <code>struct vpx_codec_enc_cfg</code> in <code>vpx/vpx_encoder.h</code> for more
  4258. details.
  4259. </p><dl compact="compact">
  4260. <dt>&lsquo;<samp>ts_number_layers</samp>&rsquo;</dt>
  4261. <dd><p>Number of temporal coding layers.
  4262. </p></dd>
  4263. <dt>&lsquo;<samp>ts_target_bitrate</samp>&rsquo;</dt>
  4264. <dd><p>Target bitrate for each temporal layer (in kbps).
  4265. (bitrate should be inclusive of the lower temporal layer).
  4266. </p></dd>
  4267. <dt>&lsquo;<samp>ts_rate_decimator</samp>&rsquo;</dt>
  4268. <dd><p>Frame rate decimation factor for each temporal layer.
  4269. </p></dd>
  4270. <dt>&lsquo;<samp>ts_periodicity</samp>&rsquo;</dt>
  4271. <dd><p>Length of the sequence defining frame temporal layer membership.
  4272. </p></dd>
  4273. <dt>&lsquo;<samp>ts_layer_id</samp>&rsquo;</dt>
  4274. <dd><p>Template defining the membership of frames to temporal layers.
  4275. </p></dd>
  4276. <dt>&lsquo;<samp>ts_layering_mode</samp>&rsquo;</dt>
  4277. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  4278. Currently supports the following options.
  4279. </p><dl compact="compact">
  4280. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  4281. <dd><p>No temporal layering flags are provided internally,
  4282. relies on flags being passed in using <code>metadata</code> field in <code>AVFrame</code>
  4283. with following keys.
  4284. </p><dl compact="compact">
  4285. <dt>&lsquo;<samp>vp8-flags</samp>&rsquo;</dt>
  4286. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  4287. the current frame.
  4288. Refer to function <code>vpx_codec_encode</code> in <code>vpx/vpx_encoder.h</code> for more
  4289. details.
  4290. </p></dd>
  4291. <dt>&lsquo;<samp>temporal_id</samp>&rsquo;</dt>
  4292. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  4293. </p></dd>
  4294. </dl>
  4295. </dd>
  4296. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  4297. <dd><p>Two temporal layers. 0-1...
  4298. </p></dd>
  4299. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  4300. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  4301. </p></dd>
  4302. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  4303. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  4304. the two temporal layer 2 frames within the temporal period.
  4305. </p></dd>
  4306. </dl>
  4307. </dd>
  4308. </dl>
  4309. </dd>
  4310. <dt>&lsquo;<samp>VP9-specific options</samp>&rsquo;</dt>
  4311. <dd><dl compact="compact">
  4312. <dt>&lsquo;<samp>lossless</samp>&rsquo;</dt>
  4313. <dd><p>Enable lossless mode.
  4314. </p></dd>
  4315. <dt>&lsquo;<samp>tile-columns</samp>&rsquo;</dt>
  4316. <dd><p>Set number of tile columns to use. Note this is given as
  4317. <code>log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  4318. setting the &lsquo;<samp>tile-columns</samp>&rsquo; option to 3.
  4319. </p></dd>
  4320. <dt>&lsquo;<samp>tile-rows</samp>&rsquo;</dt>
  4321. <dd><p>Set number of tile rows to use. Note this is given as <code>log2(tile_rows)</code>.
  4322. For example, 4 tile rows would be requested by setting the &lsquo;<samp>tile-rows</samp>&rsquo;
  4323. option to 2.
  4324. </p></dd>
  4325. <dt>&lsquo;<samp>frame-parallel</samp>&rsquo;</dt>
  4326. <dd><p>Enable frame parallel decodability features.
  4327. </p></dd>
  4328. <dt>&lsquo;<samp>aq-mode</samp>&rsquo;</dt>
  4329. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  4330. cyclic refresh, 4: equator360).
  4331. </p></dd>
  4332. <dt>&lsquo;<samp>colorspace <em>color-space</em></samp>&rsquo;</dt>
  4333. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  4334. colorspaces:
  4335. </p><dl compact="compact">
  4336. <dt>&lsquo;<samp>&lsquo;<samp>rgb</samp>&rsquo; <em>sRGB</em></samp>&rsquo;</dt>
  4337. <dt>&lsquo;<samp>&lsquo;<samp>bt709</samp>&rsquo; <em>bt709</em></samp>&rsquo;</dt>
  4338. <dt>&lsquo;<samp>&lsquo;<samp>unspecified</samp>&rsquo; <em>unknown</em></samp>&rsquo;</dt>
  4339. <dt>&lsquo;<samp>&lsquo;<samp>bt470bg</samp>&rsquo; <em>bt601</em></samp>&rsquo;</dt>
  4340. <dt>&lsquo;<samp>&lsquo;<samp>smpte170m</samp>&rsquo; <em>smpte170</em></samp>&rsquo;</dt>
  4341. <dt>&lsquo;<samp>&lsquo;<samp>smpte240m</samp>&rsquo; <em>smpte240</em></samp>&rsquo;</dt>
  4342. <dt>&lsquo;<samp>&lsquo;<samp>bt2020_ncl</samp>&rsquo; <em>bt2020</em></samp>&rsquo;</dt>
  4343. </dl>
  4344. </dd>
  4345. <dt>&lsquo;<samp>row-mt <var>boolean</var></samp>&rsquo;</dt>
  4346. <dd><p>Enable row based multi-threading.
  4347. </p></dd>
  4348. <dt>&lsquo;<samp>tune-content</samp>&rsquo;</dt>
  4349. <dd><p>Set content type: default (0), screen (1), film (2).
  4350. </p></dd>
  4351. <dt>&lsquo;<samp>corpus-complexity</samp>&rsquo;</dt>
  4352. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  4353. midpoint is passed in rather than calculated for a specific clip or chunk.
  4354. </p>
  4355. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  4356. </p></dd>
  4357. <dt>&lsquo;<samp>enable-tpl <var>boolean</var></samp>&rsquo;</dt>
  4358. <dd><p>Enable temporal dependency model.
  4359. </p></dd>
  4360. </dl>
  4361. </dd>
  4362. </dl>
  4363. <p>For more information about libvpx see:
  4364. <a href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  4365. </p>
  4366. <a name="libwebp"></a>
  4367. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libwebp">9.9 libwebp</a></h2>
  4368. <p>libwebp WebP Image encoder wrapper
  4369. </p>
  4370. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  4371. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  4372. frame. Lossless images are a separate codec developed by Google.
  4373. </p>
  4374. <a name="Pixel-Format"></a>
  4375. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Pixel-Format">9.9.1 Pixel Format</a></h3>
  4376. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  4377. to limitations of the format and libwebp. Alpha is supported for either mode.
  4378. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  4379. passed in for encoding lossless, the pixel format will automatically be
  4380. converted using functions from libwebp. This is not ideal and is done only for
  4381. convenience.
  4382. </p>
  4383. <a name="Options-13"></a>
  4384. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-13">9.9.2 Options</a></h3>
  4385. <dl compact="compact">
  4386. <dt>&lsquo;<samp>-lossless <var>boolean</var></samp>&rsquo;</dt>
  4387. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  4388. </p>
  4389. </dd>
  4390. <dt>&lsquo;<samp>-compression_level <var>integer</var></samp>&rsquo;</dt>
  4391. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  4392. for a given size at the cost of increased encoding time. For lossless, this is
  4393. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  4394. encoding time. More specifically, it controls the number of extra algorithms
  4395. and compression tools used, and varies the combination of these tools. This
  4396. maps to the <var>method</var> option in libwebp. The valid range is 0 to 6.
  4397. Default is 4.
  4398. </p>
  4399. </dd>
  4400. <dt>&lsquo;<samp>-qscale <var>float</var></samp>&rsquo;</dt>
  4401. <dd><p>For lossy encoding, this controls image quality, 0 to 100. For lossless
  4402. encoding, this controls the effort and time spent at compressing more. The
  4403. default value is 75. Note that for usage via libavcodec, this option is called
  4404. <var>global_quality</var> and must be multiplied by <var>FF_QP2LAMBDA</var>.
  4405. </p>
  4406. </dd>
  4407. <dt>&lsquo;<samp>-preset <var>type</var></samp>&rsquo;</dt>
  4408. <dd><p>Configuration preset. This does some automatic settings based on the general
  4409. type of the image.
  4410. </p><dl compact="compact">
  4411. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  4412. <dd><p>Do not use a preset.
  4413. </p></dd>
  4414. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  4415. <dd><p>Use the encoder default.
  4416. </p></dd>
  4417. <dt>&lsquo;<samp>picture</samp>&rsquo;</dt>
  4418. <dd><p>Digital picture, like portrait, inner shot
  4419. </p></dd>
  4420. <dt>&lsquo;<samp>photo</samp>&rsquo;</dt>
  4421. <dd><p>Outdoor photograph, with natural lighting
  4422. </p></dd>
  4423. <dt>&lsquo;<samp>drawing</samp>&rsquo;</dt>
  4424. <dd><p>Hand or line drawing, with high-contrast details
  4425. </p></dd>
  4426. <dt>&lsquo;<samp>icon</samp>&rsquo;</dt>
  4427. <dd><p>Small-sized colorful images
  4428. </p></dd>
  4429. <dt>&lsquo;<samp>text</samp>&rsquo;</dt>
  4430. <dd><p>Text-like
  4431. </p></dd>
  4432. </dl>
  4433. </dd>
  4434. </dl>
  4435. <a name="libx264_002c-libx264rgb"></a>
  4436. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libx264_002c-libx264rgb">9.10 libx264, libx264rgb</a></h2>
  4437. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  4438. </p>
  4439. <p>This encoder requires the presence of the libx264 headers and library
  4440. during configuration. You need to explicitly configure the build with
  4441. <code>--enable-libx264</code>.
  4442. </p>
  4443. <p>libx264 supports an impressive number of features, including 8x8 and
  4444. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  4445. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  4446. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  4447. </p>
  4448. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  4449. options, while unique encoder options are provided through private
  4450. options. Additionally the &lsquo;<samp>x264opts</samp>&rsquo; and &lsquo;<samp>x264-params</samp>&rsquo;
  4451. private options allows one to pass a list of key=value tuples as accepted
  4452. by the libx264 <code>x264_param_parse</code> function.
  4453. </p>
  4454. <p>The x264 project website is at
  4455. <a href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  4456. </p>
  4457. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  4458. pixel formats as input instead of YUV.
  4459. </p>
  4460. <a name="Supported-Pixel-Formats"></a>
  4461. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Supported-Pixel-Formats">9.10.1 Supported Pixel Formats</a></h3>
  4462. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  4463. x264&rsquo;s configure time. FFmpeg only supports one bit depth in one particular
  4464. build. In other words, it is not possible to build one FFmpeg with multiple
  4465. versions of x264 with different bit depths.
  4466. </p>
  4467. <a name="Options-18"></a>
  4468. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-18">9.10.2 Options</a></h3>
  4469. <p>The following options are supported by the libx264 wrapper. The
  4470. <code>x264</code>-equivalent options or values are listed in parentheses
  4471. for easy migration.
  4472. </p>
  4473. <p>To reduce the duplication of documentation, only the private options
  4474. and some others requiring special attention are documented here. For
  4475. the documentation of the undocumented generic options, see
  4476. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4477. </p>
  4478. <p>To get a more accurate and extensive documentation of the libx264
  4479. options, invoke the command <code>x264 --fullhelp</code> or consult
  4480. the libx264 documentation.
  4481. </p>
  4482. <dl compact="compact">
  4483. <dt>&lsquo;<samp>b (<em>bitrate</em>)</samp>&rsquo;</dt>
  4484. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s &lsquo;<samp>b</samp>&rsquo; option is
  4485. expressed in bits/s, while <code>x264</code>&rsquo;s &lsquo;<samp>bitrate</samp>&rsquo; is in
  4486. kilobits/s.
  4487. </p>
  4488. </dd>
  4489. <dt>&lsquo;<samp>bf (<em>bframes</em>)</samp>&rsquo;</dt>
  4490. <dt>&lsquo;<samp>g (<em>keyint</em>)</samp>&rsquo;</dt>
  4491. <dt>&lsquo;<samp>qmin (<em>qpmin</em>)</samp>&rsquo;</dt>
  4492. <dd><p>Minimum quantizer scale.
  4493. </p>
  4494. </dd>
  4495. <dt>&lsquo;<samp>qmax (<em>qpmax</em>)</samp>&rsquo;</dt>
  4496. <dd><p>Maximum quantizer scale.
  4497. </p>
  4498. </dd>
  4499. <dt>&lsquo;<samp>qdiff (<em>qpstep</em>)</samp>&rsquo;</dt>
  4500. <dd><p>Maximum difference between quantizer scales.
  4501. </p>
  4502. </dd>
  4503. <dt>&lsquo;<samp>qblur (<em>qblur</em>)</samp>&rsquo;</dt>
  4504. <dd><p>Quantizer curve blur
  4505. </p>
  4506. </dd>
  4507. <dt>&lsquo;<samp>qcomp (<em>qcomp</em>)</samp>&rsquo;</dt>
  4508. <dd><p>Quantizer curve compression factor
  4509. </p>
  4510. </dd>
  4511. <dt>&lsquo;<samp>refs (<em>ref</em>)</samp>&rsquo;</dt>
  4512. <dd><p>Number of reference frames each P-frame can use. The range is from <var>0-16</var>.
  4513. </p>
  4514. </dd>
  4515. <dt>&lsquo;<samp>sc_threshold (<em>scenecut</em>)</samp>&rsquo;</dt>
  4516. <dd><p>Sets the threshold for the scene change detection.
  4517. </p>
  4518. </dd>
  4519. <dt>&lsquo;<samp>trellis (<em>trellis</em>)</samp>&rsquo;</dt>
  4520. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  4521. </p>
  4522. </dd>
  4523. <dt>&lsquo;<samp>nr (<em>nr</em>)</samp>&rsquo;</dt>
  4524. <dt>&lsquo;<samp>me_range (<em>merange</em>)</samp>&rsquo;</dt>
  4525. <dd><p>Maximum range of the motion search in pixels.
  4526. </p>
  4527. </dd>
  4528. <dt>&lsquo;<samp>me_method (<em>me</em>)</samp>&rsquo;</dt>
  4529. <dd><p>Set motion estimation method. Possible values in the decreasing order
  4530. of speed:
  4531. </p>
  4532. <dl compact="compact">
  4533. <dt>&lsquo;<samp>dia (<em>dia</em>)</samp>&rsquo;</dt>
  4534. <dt>&lsquo;<samp>epzs (<em>dia</em>)</samp>&rsquo;</dt>
  4535. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp>epzs</samp>&rsquo; is an alias for
  4536. &lsquo;<samp>dia</samp>&rsquo;.
  4537. </p></dd>
  4538. <dt>&lsquo;<samp>hex (<em>hex</em>)</samp>&rsquo;</dt>
  4539. <dd><p>Hexagonal search with radius 2.
  4540. </p></dd>
  4541. <dt>&lsquo;<samp>umh (<em>umh</em>)</samp>&rsquo;</dt>
  4542. <dd><p>Uneven multi-hexagon search.
  4543. </p></dd>
  4544. <dt>&lsquo;<samp>esa (<em>esa</em>)</samp>&rsquo;</dt>
  4545. <dd><p>Exhaustive search.
  4546. </p></dd>
  4547. <dt>&lsquo;<samp>tesa (<em>tesa</em>)</samp>&rsquo;</dt>
  4548. <dd><p>Hadamard exhaustive search (slowest).
  4549. </p></dd>
  4550. </dl>
  4551. </dd>
  4552. <dt>&lsquo;<samp>forced-idr</samp>&rsquo;</dt>
  4553. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  4554. of I-frame. This option forces it to choose an IDR-frame.
  4555. </p>
  4556. </dd>
  4557. <dt>&lsquo;<samp>subq (<em>subme</em>)</samp>&rsquo;</dt>
  4558. <dd><p>Sub-pixel motion estimation method.
  4559. </p>
  4560. </dd>
  4561. <dt>&lsquo;<samp>b_strategy (<em>b-adapt</em>)</samp>&rsquo;</dt>
  4562. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  4563. </p>
  4564. </dd>
  4565. <dt>&lsquo;<samp>keyint_min (<em>min-keyint</em>)</samp>&rsquo;</dt>
  4566. <dd><p>Minimum GOP size.
  4567. </p>
  4568. </dd>
  4569. <dt>&lsquo;<samp>coder</samp>&rsquo;</dt>
  4570. <dd><p>Set entropy encoder. Possible values:
  4571. </p>
  4572. <dl compact="compact">
  4573. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  4574. <dd><p>Enable CABAC.
  4575. </p>
  4576. </dd>
  4577. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  4578. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  4579. <code>x264</code>&rsquo;s &lsquo;<samp>--no-cabac</samp>&rsquo; option.
  4580. </p></dd>
  4581. </dl>
  4582. </dd>
  4583. <dt>&lsquo;<samp>cmp</samp>&rsquo;</dt>
  4584. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  4585. </p>
  4586. <dl compact="compact">
  4587. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4588. <dd><p>Enable chroma in motion estimation.
  4589. </p>
  4590. </dd>
  4591. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4592. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  4593. <code>x264</code>&rsquo;s &lsquo;<samp>--no-chroma-me</samp>&rsquo; option.
  4594. </p></dd>
  4595. </dl>
  4596. </dd>
  4597. <dt>&lsquo;<samp>threads (<em>threads</em>)</samp>&rsquo;</dt>
  4598. <dd><p>Number of encoding threads.
  4599. </p>
  4600. </dd>
  4601. <dt>&lsquo;<samp>thread_type</samp>&rsquo;</dt>
  4602. <dd><p>Set multithreading technique. Possible values:
  4603. </p>
  4604. <dl compact="compact">
  4605. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  4606. <dd><p>Slice-based multithreading. It generates the same effect as
  4607. <code>x264</code>&rsquo;s &lsquo;<samp>--sliced-threads</samp>&rsquo; option.
  4608. </p></dd>
  4609. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  4610. <dd><p>Frame-based multithreading.
  4611. </p></dd>
  4612. </dl>
  4613. </dd>
  4614. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  4615. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  4616. open GOP by setting it to <code>-cgop</code>. The result is similar to
  4617. the behavior of <code>x264</code>&rsquo;s &lsquo;<samp>--open-gop</samp>&rsquo; option.
  4618. </p>
  4619. </dd>
  4620. <dt>&lsquo;<samp>rc_init_occupancy (<em>vbv-init</em>)</samp>&rsquo;</dt>
  4621. <dt>&lsquo;<samp>preset (<em>preset</em>)</samp>&rsquo;</dt>
  4622. <dd><p>Set the encoding preset.
  4623. </p>
  4624. </dd>
  4625. <dt>&lsquo;<samp>tune (<em>tune</em>)</samp>&rsquo;</dt>
  4626. <dd><p>Set tuning of the encoding params.
  4627. </p>
  4628. </dd>
  4629. <dt>&lsquo;<samp>profile (<em>profile</em>)</samp>&rsquo;</dt>
  4630. <dd><p>Set profile restrictions.
  4631. </p>
  4632. </dd>
  4633. <dt>&lsquo;<samp>fastfirstpass</samp>&rsquo;</dt>
  4634. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  4635. to 0, it has the same effect of <code>x264</code>&rsquo;s
  4636. &lsquo;<samp>--slow-firstpass</samp>&rsquo; option.
  4637. </p>
  4638. </dd>
  4639. <dt>&lsquo;<samp>crf (<em>crf</em>)</samp>&rsquo;</dt>
  4640. <dd><p>Set the quality for constant quality mode.
  4641. </p>
  4642. </dd>
  4643. <dt>&lsquo;<samp>crf_max (<em>crf-max</em>)</samp>&rsquo;</dt>
  4644. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  4645. </p>
  4646. </dd>
  4647. <dt>&lsquo;<samp>qp (<em>qp</em>)</samp>&rsquo;</dt>
  4648. <dd><p>Set constant quantization rate control method parameter.
  4649. </p>
  4650. </dd>
  4651. <dt>&lsquo;<samp>aq-mode (<em>aq-mode</em>)</samp>&rsquo;</dt>
  4652. <dd><p>Set AQ method. Possible values:
  4653. </p>
  4654. <dl compact="compact">
  4655. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  4656. <dd><p>Disabled.
  4657. </p>
  4658. </dd>
  4659. <dt>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</dt>
  4660. <dd><p>Variance AQ (complexity mask).
  4661. </p>
  4662. </dd>
  4663. <dt>&lsquo;<samp>autovariance (<em>2</em>)</samp>&rsquo;</dt>
  4664. <dd><p>Auto-variance AQ (experimental).
  4665. </p></dd>
  4666. </dl>
  4667. </dd>
  4668. <dt>&lsquo;<samp>aq-strength (<em>aq-strength</em>)</samp>&rsquo;</dt>
  4669. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  4670. </p>
  4671. </dd>
  4672. <dt>&lsquo;<samp>psy</samp>&rsquo;</dt>
  4673. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  4674. same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-psy</samp>&rsquo; option.
  4675. </p>
  4676. </dd>
  4677. <dt>&lsquo;<samp>psy-rd (<em>psy-rd</em>)</samp>&rsquo;</dt>
  4678. <dd><p>Set strength of psychovisual optimization, in
  4679. <var>psy-rd</var>:<var>psy-trellis</var> format.
  4680. </p>
  4681. </dd>
  4682. <dt>&lsquo;<samp>rc-lookahead (<em>rc-lookahead</em>)</samp>&rsquo;</dt>
  4683. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4684. </p>
  4685. </dd>
  4686. <dt>&lsquo;<samp>weightb</samp>&rsquo;</dt>
  4687. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  4688. it has the same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-weightb</samp>&rsquo; option.
  4689. </p>
  4690. </dd>
  4691. <dt>&lsquo;<samp>weightp (<em>weightp</em>)</samp>&rsquo;</dt>
  4692. <dd><p>Set weighted prediction method for P-frames. Possible values:
  4693. </p>
  4694. <dl compact="compact">
  4695. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  4696. <dd><p>Disabled
  4697. </p></dd>
  4698. <dt>&lsquo;<samp>simple (<em>1</em>)</samp>&rsquo;</dt>
  4699. <dd><p>Enable only weighted refs
  4700. </p></dd>
  4701. <dt>&lsquo;<samp>smart (<em>2</em>)</samp>&rsquo;</dt>
  4702. <dd><p>Enable both weighted refs and duplicates
  4703. </p></dd>
  4704. </dl>
  4705. </dd>
  4706. <dt>&lsquo;<samp>ssim (<em>ssim</em>)</samp>&rsquo;</dt>
  4707. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  4708. </p>
  4709. </dd>
  4710. <dt>&lsquo;<samp>intra-refresh (<em>intra-refresh</em>)</samp>&rsquo;</dt>
  4711. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  4712. to 1.
  4713. </p>
  4714. </dd>
  4715. <dt>&lsquo;<samp>avcintra-class (<em>class</em>)</samp>&rsquo;</dt>
  4716. <dd><p>Configure the encoder to generate AVC-Intra.
  4717. Valid values are 50,100 and 200
  4718. </p>
  4719. </dd>
  4720. <dt>&lsquo;<samp>bluray-compat (<em>bluray-compat</em>)</samp>&rsquo;</dt>
  4721. <dd><p>Configure the encoder to be compatible with the bluray standard.
  4722. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  4723. </p>
  4724. </dd>
  4725. <dt>&lsquo;<samp>b-bias (<em>b-bias</em>)</samp>&rsquo;</dt>
  4726. <dd><p>Set the influence on how often B-frames are used.
  4727. </p>
  4728. </dd>
  4729. <dt>&lsquo;<samp>b-pyramid (<em>b-pyramid</em>)</samp>&rsquo;</dt>
  4730. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  4731. </p>
  4732. <dl compact="compact">
  4733. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4734. <dd><p>Disabled.
  4735. </p></dd>
  4736. <dt>&lsquo;<samp>strict (<em>strict</em>)</samp>&rsquo;</dt>
  4737. <dd><p>Strictly hierarchical pyramid.
  4738. </p></dd>
  4739. <dt>&lsquo;<samp>normal (<em>normal</em>)</samp>&rsquo;</dt>
  4740. <dd><p>Non-strict (not Blu-ray compatible).
  4741. </p></dd>
  4742. </dl>
  4743. </dd>
  4744. <dt>&lsquo;<samp>mixed-refs</samp>&rsquo;</dt>
  4745. <dd><p>Enable the use of one reference per partition, as opposed to one
  4746. reference per macroblock when set to 1. When set to 0, it has the
  4747. same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-mixed-refs</samp>&rsquo; option.
  4748. </p>
  4749. </dd>
  4750. <dt>&lsquo;<samp>8x8dct</samp>&rsquo;</dt>
  4751. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  4752. when set to 1. When set to 0, it has the same effect as
  4753. <code>x264</code>&rsquo;s &lsquo;<samp>--no-8x8dct</samp>&rsquo; option.
  4754. </p>
  4755. </dd>
  4756. <dt>&lsquo;<samp>fast-pskip</samp>&rsquo;</dt>
  4757. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  4758. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4759. &lsquo;<samp>--no-fast-pskip</samp>&rsquo; option.
  4760. </p>
  4761. </dd>
  4762. <dt>&lsquo;<samp>aud (<em>aud</em>)</samp>&rsquo;</dt>
  4763. <dd><p>Enable use of access unit delimiters when set to 1.
  4764. </p>
  4765. </dd>
  4766. <dt>&lsquo;<samp>mbtree</samp>&rsquo;</dt>
  4767. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  4768. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4769. &lsquo;<samp>--no-mbtree</samp>&rsquo; option.
  4770. </p>
  4771. </dd>
  4772. <dt>&lsquo;<samp>deblock (<em>deblock</em>)</samp>&rsquo;</dt>
  4773. <dd><p>Set loop filter parameters, in <var>alpha</var>:<var>beta</var> form.
  4774. </p>
  4775. </dd>
  4776. <dt>&lsquo;<samp>cplxblur (<em>cplxblur</em>)</samp>&rsquo;</dt>
  4777. <dd><p>Set fluctuations reduction in QP (before curve compression).
  4778. </p>
  4779. </dd>
  4780. <dt>&lsquo;<samp>partitions (<em>partitions</em>)</samp>&rsquo;</dt>
  4781. <dd><p>Set partitions to consider as a comma-separated list of. Possible
  4782. values in the list:
  4783. </p>
  4784. <dl compact="compact">
  4785. <dt>&lsquo;<samp>p8x8</samp>&rsquo;</dt>
  4786. <dd><p>8x8 P-frame partition.
  4787. </p></dd>
  4788. <dt>&lsquo;<samp>p4x4</samp>&rsquo;</dt>
  4789. <dd><p>4x4 P-frame partition.
  4790. </p></dd>
  4791. <dt>&lsquo;<samp>b8x8</samp>&rsquo;</dt>
  4792. <dd><p>4x4 B-frame partition.
  4793. </p></dd>
  4794. <dt>&lsquo;<samp>i8x8</samp>&rsquo;</dt>
  4795. <dd><p>8x8 I-frame partition.
  4796. </p></dd>
  4797. <dt>&lsquo;<samp>i4x4</samp>&rsquo;</dt>
  4798. <dd><p>4x4 I-frame partition.
  4799. (Enabling &lsquo;<samp>p4x4</samp>&rsquo; requires &lsquo;<samp>p8x8</samp>&rsquo; to be enabled. Enabling
  4800. &lsquo;<samp>i8x8</samp>&rsquo; requires adaptive spatial transform (&lsquo;<samp>8x8dct</samp>&rsquo;
  4801. option) to be enabled.)
  4802. </p></dd>
  4803. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4804. <dd><p>Do not consider any partitions.
  4805. </p></dd>
  4806. <dt>&lsquo;<samp>all (<em>all</em>)</samp>&rsquo;</dt>
  4807. <dd><p>Consider every partition.
  4808. </p></dd>
  4809. </dl>
  4810. </dd>
  4811. <dt>&lsquo;<samp>direct-pred (<em>direct</em>)</samp>&rsquo;</dt>
  4812. <dd><p>Set direct MV prediction mode. Possible values:
  4813. </p>
  4814. <dl compact="compact">
  4815. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4816. <dd><p>Disable MV prediction.
  4817. </p></dd>
  4818. <dt>&lsquo;<samp>spatial (<em>spatial</em>)</samp>&rsquo;</dt>
  4819. <dd><p>Enable spatial predicting.
  4820. </p></dd>
  4821. <dt>&lsquo;<samp>temporal (<em>temporal</em>)</samp>&rsquo;</dt>
  4822. <dd><p>Enable temporal predicting.
  4823. </p></dd>
  4824. <dt>&lsquo;<samp>auto (<em>auto</em>)</samp>&rsquo;</dt>
  4825. <dd><p>Automatically decided.
  4826. </p></dd>
  4827. </dl>
  4828. </dd>
  4829. <dt>&lsquo;<samp>slice-max-size (<em>slice-max-size</em>)</samp>&rsquo;</dt>
  4830. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  4831. but RTP payload size (&lsquo;<samp>ps</samp>&rsquo;) is specified, that is used.
  4832. </p>
  4833. </dd>
  4834. <dt>&lsquo;<samp>stats (<em>stats</em>)</samp>&rsquo;</dt>
  4835. <dd><p>Set the file name for multi-pass stats.
  4836. </p>
  4837. </dd>
  4838. <dt>&lsquo;<samp>nal-hrd (<em>nal-hrd</em>)</samp>&rsquo;</dt>
  4839. <dd><p>Set signal HRD information (requires &lsquo;<samp>vbv-bufsize</samp>&rsquo; to be set).
  4840. Possible values:
  4841. </p>
  4842. <dl compact="compact">
  4843. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4844. <dd><p>Disable HRD information signaling.
  4845. </p></dd>
  4846. <dt>&lsquo;<samp>vbr (<em>vbr</em>)</samp>&rsquo;</dt>
  4847. <dd><p>Variable bit rate.
  4848. </p></dd>
  4849. <dt>&lsquo;<samp>cbr (<em>cbr</em>)</samp>&rsquo;</dt>
  4850. <dd><p>Constant bit rate (not allowed in MP4 container).
  4851. </p></dd>
  4852. </dl>
  4853. </dd>
  4854. <dt>&lsquo;<samp>x264opts (N.A.)</samp>&rsquo;</dt>
  4855. <dd><p>Set any x264 option, see <code>x264 --fullhelp</code> for a list.
  4856. </p>
  4857. <p>Argument is a list of <var>key</var>=<var>value</var> couples separated by
  4858. &quot;:&quot;. In <var>filter</var> and <var>psy-rd</var> options that use &quot;:&quot; as a separator
  4859. themselves, use &quot;,&quot; instead. They accept it as well since long ago but this
  4860. is kept undocumented for some reason.
  4861. </p>
  4862. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  4863. </p><div class="example">
  4864. <pre class="example">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  4865. </pre></div>
  4866. </dd>
  4867. <dt>&lsquo;<samp>a53cc <var>boolean</var></samp>&rsquo;</dt>
  4868. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  4869. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  4870. </p>
  4871. </dd>
  4872. <dt>&lsquo;<samp>x264-params (N.A.)</samp>&rsquo;</dt>
  4873. <dd><p>Override the x264 configuration using a :-separated list of key=value
  4874. parameters.
  4875. </p>
  4876. <p>This option is functionally the same as the &lsquo;<samp>x264opts</samp>&rsquo;, but is
  4877. duplicated for compatibility with the Libav fork.
  4878. </p>
  4879. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  4880. </p><div class="example">
  4881. <pre class="example">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
  4882. cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
  4883. no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
  4884. </pre></div>
  4885. </dd>
  4886. </dl>
  4887. <p>Encoding ffpresets for common usages are provided so they can be used with the
  4888. general presets system (e.g. passing the &lsquo;<samp>pre</samp>&rsquo; option).
  4889. </p>
  4890. <a name="libx265"></a>
  4891. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libx265">9.11 libx265</a></h2>
  4892. <p>x265 H.265/HEVC encoder wrapper.
  4893. </p>
  4894. <p>This encoder requires the presence of the libx265 headers and library
  4895. during configuration. You need to explicitly configure the build with
  4896. &lsquo;<samp>--enable-libx265</samp>&rsquo;.
  4897. </p>
  4898. <a name="Options-26"></a>
  4899. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-26">9.11.1 Options</a></h3>
  4900. <dl compact="compact">
  4901. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  4902. <dd><p>Sets target video bitrate.
  4903. </p>
  4904. </dd>
  4905. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  4906. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  4907. <dd><p>Set the GOP size.
  4908. </p>
  4909. </dd>
  4910. <dt>&lsquo;<samp>keyint_min</samp>&rsquo;</dt>
  4911. <dd><p>Minimum GOP size.
  4912. </p>
  4913. </dd>
  4914. <dt>&lsquo;<samp>refs</samp>&rsquo;</dt>
  4915. <dd><p>Number of reference frames each P-frame can use. The range is from <var>1-16</var>.
  4916. </p>
  4917. </dd>
  4918. <dt>&lsquo;<samp>preset</samp>&rsquo;</dt>
  4919. <dd><p>Set the x265 preset.
  4920. </p>
  4921. </dd>
  4922. <dt>&lsquo;<samp>tune</samp>&rsquo;</dt>
  4923. <dd><p>Set the x265 tune parameter.
  4924. </p>
  4925. </dd>
  4926. <dt>&lsquo;<samp>profile</samp>&rsquo;</dt>
  4927. <dd><p>Set profile restrictions.
  4928. </p>
  4929. </dd>
  4930. <dt>&lsquo;<samp>crf</samp>&rsquo;</dt>
  4931. <dd><p>Set the quality for constant quality mode.
  4932. </p>
  4933. </dd>
  4934. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  4935. <dd><p>Set constant quantization rate control method parameter.
  4936. </p>
  4937. </dd>
  4938. <dt>&lsquo;<samp>qmin</samp>&rsquo;</dt>
  4939. <dd><p>Minimum quantizer scale.
  4940. </p>
  4941. </dd>
  4942. <dt>&lsquo;<samp>qmax</samp>&rsquo;</dt>
  4943. <dd><p>Maximum quantizer scale.
  4944. </p>
  4945. </dd>
  4946. <dt>&lsquo;<samp>qdiff</samp>&rsquo;</dt>
  4947. <dd><p>Maximum difference between quantizer scales.
  4948. </p>
  4949. </dd>
  4950. <dt>&lsquo;<samp>qblur</samp>&rsquo;</dt>
  4951. <dd><p>Quantizer curve blur
  4952. </p>
  4953. </dd>
  4954. <dt>&lsquo;<samp>qcomp</samp>&rsquo;</dt>
  4955. <dd><p>Quantizer curve compression factor
  4956. </p>
  4957. </dd>
  4958. <dt>&lsquo;<samp>i_qfactor</samp>&rsquo;</dt>
  4959. <dt>&lsquo;<samp>b_qfactor</samp>&rsquo;</dt>
  4960. <dt>&lsquo;<samp>forced-idr</samp>&rsquo;</dt>
  4961. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  4962. of I-frame. This option forces it to choose an IDR-frame.
  4963. </p>
  4964. </dd>
  4965. <dt>&lsquo;<samp>x265-params</samp>&rsquo;</dt>
  4966. <dd><p>Set x265 options using a list of <var>key</var>=<var>value</var> couples separated
  4967. by &quot;:&quot;. See <code>x265 --help</code> for a list of options.
  4968. </p>
  4969. <p>For example to specify libx265 encoding options with &lsquo;<samp>-x265-params</samp>&rsquo;:
  4970. </p>
  4971. <div class="example">
  4972. <pre class="example">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  4973. </pre></div>
  4974. </dd>
  4975. </dl>
  4976. <a name="libxavs2"></a>
  4977. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libxavs2">9.12 libxavs2</a></h2>
  4978. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  4979. </p>
  4980. <p>This encoder requires the presence of the libxavs2 headers and library
  4981. during configuration. You need to explicitly configure the build with
  4982. &lsquo;<samp>--enable-libxavs2</samp>&rsquo;.
  4983. </p>
  4984. <p>The following standard libavcodec options are used:
  4985. </p><ul>
  4986. <li>
  4987. &lsquo;<samp>b</samp>&rsquo; / &lsquo;<samp>bit_rate</samp>&rsquo;
  4988. </li><li>
  4989. &lsquo;<samp>g</samp>&rsquo; / &lsquo;<samp>gop_size</samp>&rsquo;
  4990. </li><li>
  4991. &lsquo;<samp>bf</samp>&rsquo; / &lsquo;<samp>max_b_frames</samp>&rsquo;
  4992. </li></ul>
  4993. <p>The encoder also has its own specific options:
  4994. </p><a name="Options-11"></a>
  4995. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-11">9.12.1 Options</a></h3>
  4996. <dl compact="compact">
  4997. <dt>&lsquo;<samp>lcu_row_threads</samp>&rsquo;</dt>
  4998. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  4999. </p>
  5000. </dd>
  5001. <dt>&lsquo;<samp>initial_qp</samp>&rsquo;</dt>
  5002. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5003. used to set the initial qp for the first frame.
  5004. </p>
  5005. </dd>
  5006. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  5007. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5008. used to set the qp value under constant-QP mode.
  5009. </p>
  5010. </dd>
  5011. <dt>&lsquo;<samp>max_qp</samp>&rsquo;</dt>
  5012. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5013. </p>
  5014. </dd>
  5015. <dt>&lsquo;<samp>min_qp</samp>&rsquo;</dt>
  5016. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5017. </p>
  5018. </dd>
  5019. <dt>&lsquo;<samp>speed_level</samp>&rsquo;</dt>
  5020. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5021. </p>
  5022. </dd>
  5023. <dt>&lsquo;<samp>log_level</samp>&rsquo;</dt>
  5024. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5025. 1: warning, 2: info, 3: debug.
  5026. </p>
  5027. </dd>
  5028. <dt>&lsquo;<samp>xavs2-params</samp>&rsquo;</dt>
  5029. <dd><p>Set xavs2 options using a list of <var>key</var>=<var>value</var> couples separated
  5030. by &quot;:&quot;.
  5031. </p>
  5032. <p>For example to specify libxavs2 encoding options with &lsquo;<samp>-xavs2-params</samp>&rsquo;:
  5033. </p>
  5034. <div class="example">
  5035. <pre class="example">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5036. </pre></div>
  5037. </dd>
  5038. </dl>
  5039. <a name="libxvid"></a>
  5040. <h2 class="section"><a href="ffmpeg-codecs.html#toc-libxvid">9.13 libxvid</a></h2>
  5041. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5042. </p>
  5043. <p>This encoder requires the presence of the libxvidcore headers and library
  5044. during configuration. You need to explicitly configure the build with
  5045. <code>--enable-libxvid --enable-gpl</code>.
  5046. </p>
  5047. <p>The native <code>mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5048. users can encode to this format without this library.
  5049. </p>
  5050. <a name="Options-3"></a>
  5051. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-3">9.13.1 Options</a></h3>
  5052. <p>The following options are supported by the libxvid wrapper. Some of
  5053. the following options are listed but are not documented, and
  5054. correspond to shared codec options. See <a href="#codec_002doptions">the Codec Options chapter</a> for their documentation. The other shared options
  5055. which are not listed have no effect for the libxvid encoder.
  5056. </p>
  5057. <dl compact="compact">
  5058. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  5059. <dt>&lsquo;<samp>g</samp>&rsquo;</dt>
  5060. <dt>&lsquo;<samp>qmin</samp>&rsquo;</dt>
  5061. <dt>&lsquo;<samp>qmax</samp>&rsquo;</dt>
  5062. <dt>&lsquo;<samp>mpeg_quant</samp>&rsquo;</dt>
  5063. <dt>&lsquo;<samp>threads</samp>&rsquo;</dt>
  5064. <dt>&lsquo;<samp>bf</samp>&rsquo;</dt>
  5065. <dt>&lsquo;<samp>b_qfactor</samp>&rsquo;</dt>
  5066. <dt>&lsquo;<samp>b_qoffset</samp>&rsquo;</dt>
  5067. <dt>&lsquo;<samp>flags</samp>&rsquo;</dt>
  5068. <dd><p>Set specific encoding flags. Possible values:
  5069. </p>
  5070. <dl compact="compact">
  5071. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  5072. <dd><p>Use four motion vector by macroblock.
  5073. </p>
  5074. </dd>
  5075. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  5076. <dd><p>Enable high quality AC prediction.
  5077. </p>
  5078. </dd>
  5079. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  5080. <dd><p>Only encode grayscale.
  5081. </p>
  5082. </dd>
  5083. <dt>&lsquo;<samp>gmc</samp>&rsquo;</dt>
  5084. <dd><p>Enable the use of global motion compensation (GMC).
  5085. </p>
  5086. </dd>
  5087. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  5088. <dd><p>Enable quarter-pixel motion compensation.
  5089. </p>
  5090. </dd>
  5091. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  5092. <dd><p>Enable closed GOP.
  5093. </p>
  5094. </dd>
  5095. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  5096. <dd><p>Place global headers in extradata instead of every keyframe.
  5097. </p>
  5098. </dd>
  5099. </dl>
  5100. </dd>
  5101. <dt>&lsquo;<samp>trellis</samp>&rsquo;</dt>
  5102. <dt>&lsquo;<samp>me_method</samp>&rsquo;</dt>
  5103. <dd><p>Set motion estimation method. Possible values in decreasing order of
  5104. speed and increasing order of quality:
  5105. </p>
  5106. <dl compact="compact">
  5107. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  5108. <dd><p>Use no motion estimation (default).
  5109. </p>
  5110. </dd>
  5111. <dt>&lsquo;<samp>phods</samp>&rsquo;</dt>
  5112. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  5113. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  5114. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  5115. refinement for 16x16 blocks. &lsquo;<samp>x1</samp>&rsquo; and &lsquo;<samp>log</samp>&rsquo; are aliases for
  5116. &lsquo;<samp>phods</samp>&rsquo;.
  5117. </p>
  5118. </dd>
  5119. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  5120. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  5121. search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
  5122. estimation on chroma planes.
  5123. </p>
  5124. </dd>
  5125. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  5126. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  5127. blocks search.
  5128. </p></dd>
  5129. </dl>
  5130. </dd>
  5131. <dt>&lsquo;<samp>mbd</samp>&rsquo;</dt>
  5132. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  5133. order of quality:
  5134. </p>
  5135. <dl compact="compact">
  5136. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  5137. <dd><p>Use macroblock comparing function algorithm (default).
  5138. </p>
  5139. </dd>
  5140. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  5141. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  5142. 16x16 blocks.
  5143. </p>
  5144. </dd>
  5145. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  5146. <dd><p>Enable all of the things described above, plus rate distortion-based
  5147. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  5148. distortion-based search using square pattern.
  5149. </p></dd>
  5150. </dl>
  5151. </dd>
  5152. <dt>&lsquo;<samp>lumi_aq</samp>&rsquo;</dt>
  5153. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  5154. (disabled).
  5155. </p>
  5156. </dd>
  5157. <dt>&lsquo;<samp>variance_aq</samp>&rsquo;</dt>
  5158. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  5159. (disabled).
  5160. </p>
  5161. <p>When combined with &lsquo;<samp>lumi_aq</samp>&rsquo;, the resulting quality will not
  5162. be better than any of the two specified individually. In other
  5163. words, the resulting quality will be the worse one of the two
  5164. effects.
  5165. </p>
  5166. </dd>
  5167. <dt>&lsquo;<samp>ssim</samp>&rsquo;</dt>
  5168. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  5169. </p>
  5170. <dl compact="compact">
  5171. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  5172. <dd><p>Disable displaying of SSIM information.
  5173. </p>
  5174. </dd>
  5175. <dt>&lsquo;<samp>avg</samp>&rsquo;</dt>
  5176. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  5177. showing the average SSIM is:
  5178. </p>
  5179. <div class="example">
  5180. <pre class="example">Average SSIM: %f
  5181. </pre></div>
  5182. <p>For users who are not familiar with C, %f means a float number, or
  5183. a decimal (e.g. 0.939232).
  5184. </p>
  5185. </dd>
  5186. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  5187. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  5188. the end of encoding to stdout. The format of per-frame information
  5189. is:
  5190. </p>
  5191. <div class="example">
  5192. <pre class="example"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  5193. </pre></div>
  5194. <p>For users who are not familiar with C, %1.3f means a float number
  5195. rounded to 3 digits after the dot (e.g. 0.932).
  5196. </p>
  5197. </dd>
  5198. </dl>
  5199. </dd>
  5200. <dt>&lsquo;<samp>ssim_acc</samp>&rsquo;</dt>
  5201. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  5202. 0-4, while 0 gives the most accurate result and 4 computes the
  5203. fastest.
  5204. </p>
  5205. </dd>
  5206. </dl>
  5207. <a name="mpeg2"></a>
  5208. <h2 class="section"><a href="ffmpeg-codecs.html#toc-mpeg2">9.14 mpeg2</a></h2>
  5209. <p>MPEG-2 video encoder.
  5210. </p>
  5211. <a name="Options-33"></a>
  5212. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-33">9.14.1 Options</a></h3>
  5213. <dl compact="compact">
  5214. <dt>&lsquo;<samp>seq_disp_ext <var>integer</var></samp>&rsquo;</dt>
  5215. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  5216. output.
  5217. </p><dl compact="compact">
  5218. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  5219. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  5220. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  5221. the data to be written is different from the default or unspecified values.
  5222. </p></dd>
  5223. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  5224. <dt>&lsquo;<samp>never</samp>&rsquo;</dt>
  5225. <dd><p>Never write it.
  5226. </p></dd>
  5227. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  5228. <dt>&lsquo;<samp>always</samp>&rsquo;</dt>
  5229. <dd><p>Always write it.
  5230. </p></dd>
  5231. </dl>
  5232. </dd>
  5233. <dt>&lsquo;<samp>video_format <var>integer</var></samp>&rsquo;</dt>
  5234. <dd><p>Specifies the video_format written into the sequence display extension
  5235. indicating the source of the video pictures. The default is &lsquo;<samp>unspecified</samp>&rsquo;,
  5236. can be &lsquo;<samp>component</samp>&rsquo;, &lsquo;<samp>pal</samp>&rsquo;, &lsquo;<samp>ntsc</samp>&rsquo;, &lsquo;<samp>secam</samp>&rsquo; or &lsquo;<samp>mac</samp>&rsquo;.
  5237. For maximum compatibility, use &lsquo;<samp>component</samp>&rsquo;.
  5238. </p></dd>
  5239. <dt>&lsquo;<samp>a53cc <var>boolean</var></samp>&rsquo;</dt>
  5240. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5241. Default is 1 (on).
  5242. </p></dd>
  5243. </dl>
  5244. <a name="png"></a>
  5245. <h2 class="section"><a href="ffmpeg-codecs.html#toc-png">9.15 png</a></h2>
  5246. <p>PNG image encoder.
  5247. </p>
  5248. <a name="Private-options"></a>
  5249. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Private-options">9.15.1 Private options</a></h3>
  5250. <dl compact="compact">
  5251. <dt>&lsquo;<samp>dpi <var>integer</var></samp>&rsquo;</dt>
  5252. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  5253. </p></dd>
  5254. <dt>&lsquo;<samp>dpm <var>integer</var></samp>&rsquo;</dt>
  5255. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  5256. </p></dd>
  5257. </dl>
  5258. <a name="ProRes"></a>
  5259. <h2 class="section"><a href="ffmpeg-codecs.html#toc-ProRes">9.16 ProRes</a></h2>
  5260. <p>Apple ProRes encoder.
  5261. </p>
  5262. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  5263. The used encoder can be chosen with the <code>-vcodec</code> option.
  5264. </p>
  5265. <a name="Private-Options-for-prores_002dks"></a>
  5266. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Private-Options-for-prores_002dks">9.16.1 Private Options for prores-ks</a></h3>
  5267. <dl compact="compact">
  5268. <dt>&lsquo;<samp>profile <var>integer</var></samp>&rsquo;</dt>
  5269. <dd><p>Select the ProRes profile to encode
  5270. </p><dl compact="compact">
  5271. <dt>&lsquo;<samp>proxy</samp>&rsquo;</dt>
  5272. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  5273. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  5274. <dt>&lsquo;<samp>hq</samp>&rsquo;</dt>
  5275. <dt>&lsquo;<samp>4444</samp>&rsquo;</dt>
  5276. <dt>&lsquo;<samp>4444xq</samp>&rsquo;</dt>
  5277. </dl>
  5278. </dd>
  5279. <dt>&lsquo;<samp>quant_mat <var>integer</var></samp>&rsquo;</dt>
  5280. <dd><p>Select quantization matrix.
  5281. </p><dl compact="compact">
  5282. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  5283. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  5284. <dt>&lsquo;<samp>proxy</samp>&rsquo;</dt>
  5285. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  5286. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  5287. <dt>&lsquo;<samp>hq</samp>&rsquo;</dt>
  5288. </dl>
  5289. <p>If set to <var>auto</var>, the matrix matching the profile will be picked.
  5290. If not set, the matrix providing the highest quality, <var>default</var>, will be
  5291. picked.
  5292. </p>
  5293. </dd>
  5294. <dt>&lsquo;<samp>bits_per_mb <var>integer</var></samp>&rsquo;</dt>
  5295. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  5296. between 200 and 2400 bits per macroblock, the maximum is 8000.
  5297. </p>
  5298. </dd>
  5299. <dt>&lsquo;<samp>mbs_per_slice <var>integer</var></samp>&rsquo;</dt>
  5300. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  5301. should be good in almost all situations.
  5302. </p>
  5303. </dd>
  5304. <dt>&lsquo;<samp>vendor <var>string</var></samp>&rsquo;</dt>
  5305. <dd><p>Override the 4-byte vendor ID.
  5306. A custom vendor ID like <var>apl0</var> would claim the stream was produced by
  5307. the Apple encoder.
  5308. </p>
  5309. </dd>
  5310. <dt>&lsquo;<samp>alpha_bits <var>integer</var></samp>&rsquo;</dt>
  5311. <dd><p>Specify number of bits for alpha component.
  5312. Possible values are <var>0</var>, <var>8</var> and <var>16</var>.
  5313. Use <var>0</var> to disable alpha plane coding.
  5314. </p>
  5315. </dd>
  5316. </dl>
  5317. <a name="Speed-considerations"></a>
  5318. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Speed-considerations">9.16.2 Speed considerations</a></h3>
  5319. <p>In the default mode of operation the encoder has to honor frame constraints
  5320. (i.e. not produce frames with size bigger than requested) while still making
  5321. output picture as good as possible.
  5322. A frame containing a lot of small details is harder to compress and the encoder
  5323. would spend more time searching for appropriate quantizers for each slice.
  5324. </p>
  5325. <p>Setting a higher &lsquo;<samp>bits_per_mb</samp>&rsquo; limit will improve the speed.
  5326. </p>
  5327. <p>For the fastest encoding speed set the &lsquo;<samp>qscale</samp>&rsquo; parameter (4 is the
  5328. recommended value) and do not set a size constraint.
  5329. </p>
  5330. <a name="QSV-encoders"></a>
  5331. <h2 class="section"><a href="ffmpeg-codecs.html#toc-QSV-encoders">9.17 QSV encoders</a></h2>
  5332. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG and VP9)
  5333. </p>
  5334. <p>The ratecontrol method is selected as follows:
  5335. </p>
  5336. <ul>
  5337. <li>
  5338. When &lsquo;<samp>global_quality</samp>&rsquo; is specified, a quality-based mode is used.
  5339. Specifically this means either
  5340. <ul class="no-bullet">
  5341. <li>-
  5342. <var>CQP</var> - constant quantizer scale, when the &lsquo;<samp>qscale</samp>&rsquo; codec flag is
  5343. also set (the &lsquo;<samp>-qscale</samp>&rsquo; ffmpeg option).
  5344. </li><li>-
  5345. <var>LA_ICQ</var> - intelligent constant quality with lookahead, when the
  5346. &lsquo;<samp>look_ahead</samp>&rsquo; option is also set.
  5347. </li><li>-
  5348. <var>ICQ</var> &ndash; intelligent constant quality otherwise.
  5349. </li></ul>
  5350. </li><li>
  5351. Otherwise, a bitrate-based mode is used. For all of those, you should specify at
  5352. least the desired average bitrate with the &lsquo;<samp>b</samp>&rsquo; option.
  5353. <ul class="no-bullet">
  5354. <li>-
  5355. <var>LA</var> - VBR with lookahead, when the &lsquo;<samp>look_ahead</samp>&rsquo; option is specified.
  5356. </li><li>-
  5357. <var>VCM</var> - video conferencing mode, when the &lsquo;<samp>vcm</samp>&rsquo; option is set.
  5358. </li><li>-
  5359. <var>CBR</var> - constant bitrate, when &lsquo;<samp>maxrate</samp>&rsquo; is specified and equal to
  5360. the average bitrate.
  5361. </li><li>-
  5362. <var>VBR</var> - variable bitrate, when &lsquo;<samp>maxrate</samp>&rsquo; is specified, but is higher
  5363. than the average bitrate.
  5364. </li><li>-
  5365. <var>AVBR</var> - average VBR mode, when &lsquo;<samp>maxrate</samp>&rsquo; is not specified. This mode
  5366. is further configured by the &lsquo;<samp>avbr_accuracy</samp>&rsquo; and
  5367. &lsquo;<samp>avbr_convergence</samp>&rsquo; options.
  5368. </li></ul>
  5369. </li></ul>
  5370. <p>Note that depending on your system, a different mode than the one you specified
  5371. may be selected by the encoder. Set the verbosity level to <var>verbose</var> or
  5372. higher to see the actual settings used by the QSV runtime.
  5373. </p>
  5374. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  5375. </p>
  5376. <ul>
  5377. <li>
  5378. &lsquo;<samp>g/gop_size</samp>&rsquo; -&gt; &lsquo;<samp>GopPicSize</samp>&rsquo;
  5379. </li><li>
  5380. &lsquo;<samp>bf/max_b_frames</samp>&rsquo;+1 -&gt; &lsquo;<samp>GopRefDist</samp>&rsquo;
  5381. </li><li>
  5382. &lsquo;<samp>rc_init_occupancy/rc_initial_buffer_occupancy</samp>&rsquo; -&gt;
  5383. &lsquo;<samp>InitialDelayInKB</samp>&rsquo;
  5384. </li><li>
  5385. &lsquo;<samp>slices</samp>&rsquo; -&gt; &lsquo;<samp>NumSlice</samp>&rsquo;
  5386. </li><li>
  5387. &lsquo;<samp>refs</samp>&rsquo; -&gt; &lsquo;<samp>NumRefFrame</samp>&rsquo;
  5388. </li><li>
  5389. &lsquo;<samp>b_strategy/b_frame_strategy</samp>&rsquo; -&gt; &lsquo;<samp>BRefType</samp>&rsquo;
  5390. </li><li>
  5391. &lsquo;<samp>cgop/CLOSED_GOP</samp>&rsquo; codec flag -&gt; &lsquo;<samp>GopOptFlag</samp>&rsquo;
  5392. </li><li>
  5393. For the <var>CQP</var> mode, the &lsquo;<samp>i_qfactor/i_qoffset</samp>&rsquo; and
  5394. &lsquo;<samp>b_qfactor/b_qoffset</samp>&rsquo; set the difference between <var>QPP</var> and <var>QPI</var>,
  5395. and <var>QPP</var> and <var>QPB</var> respectively.
  5396. </li><li>
  5397. Setting the &lsquo;<samp>coder</samp>&rsquo; option to the value <var>vlc</var> will make the H.264
  5398. encoder use CAVLC instead of CABAC.
  5399. </li></ul>
  5400. <a name="snow"></a>
  5401. <h2 class="section"><a href="ffmpeg-codecs.html#toc-snow">9.18 snow</a></h2>
  5402. <a name="Options-2"></a>
  5403. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-2">9.18.1 Options</a></h3>
  5404. <dl compact="compact">
  5405. <dt>&lsquo;<samp>iterative_dia_size</samp>&rsquo;</dt>
  5406. <dd><p>dia size for the iterative motion estimation
  5407. </p></dd>
  5408. </dl>
  5409. <a name="VAAPI-encoders"></a>
  5410. <h2 class="section"><a href="ffmpeg-codecs.html#toc-VAAPI-encoders">9.19 VAAPI encoders</a></h2>
  5411. <p>Wrappers for hardware encoders accessible via VAAPI.
  5412. </p>
  5413. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  5414. in software frames, use the &lsquo;<samp>hwupload</samp>&rsquo; filter to upload them to the GPU.
  5415. </p>
  5416. <p>The following standard libavcodec options are used:
  5417. </p><ul>
  5418. <li>
  5419. &lsquo;<samp>g</samp>&rsquo; / &lsquo;<samp>gop_size</samp>&rsquo;
  5420. </li><li>
  5421. &lsquo;<samp>bf</samp>&rsquo; / &lsquo;<samp>max_b_frames</samp>&rsquo;
  5422. </li><li>
  5423. &lsquo;<samp>profile</samp>&rsquo;
  5424. <p>If not set, this will be determined automatically from the format of the input
  5425. frames and the profiles supported by the driver.
  5426. </p></li><li>
  5427. &lsquo;<samp>level</samp>&rsquo;
  5428. </li><li>
  5429. &lsquo;<samp>b</samp>&rsquo; / &lsquo;<samp>bit_rate</samp>&rsquo;
  5430. </li><li>
  5431. &lsquo;<samp>maxrate</samp>&rsquo; / &lsquo;<samp>rc_max_rate</samp>&rsquo;
  5432. </li><li>
  5433. &lsquo;<samp>bufsize</samp>&rsquo; / &lsquo;<samp>rc_buffer_size</samp>&rsquo;
  5434. </li><li>
  5435. &lsquo;<samp>rc_init_occupancy</samp>&rsquo; / &lsquo;<samp>rc_initial_buffer_occupancy</samp>&rsquo;
  5436. </li><li>
  5437. &lsquo;<samp>compression_level</samp>&rsquo;
  5438. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  5439. </p></li><li>
  5440. &lsquo;<samp>q</samp>&rsquo; / &lsquo;<samp>global_quality</samp>&rsquo;
  5441. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  5442. </p></li><li>
  5443. &lsquo;<samp>qmin</samp>&rsquo;
  5444. </li><li>
  5445. &lsquo;<samp>qmax</samp>&rsquo;
  5446. </li><li>
  5447. &lsquo;<samp>i_qfactor</samp>&rsquo; / &lsquo;<samp>i_quant_factor</samp>&rsquo;
  5448. </li><li>
  5449. &lsquo;<samp>i_qoffset</samp>&rsquo; / &lsquo;<samp>i_quant_offset</samp>&rsquo;
  5450. </li><li>
  5451. &lsquo;<samp>b_qfactor</samp>&rsquo; / &lsquo;<samp>b_quant_factor</samp>&rsquo;
  5452. </li><li>
  5453. &lsquo;<samp>b_qoffset</samp>&rsquo; / &lsquo;<samp>b_quant_offset</samp>&rsquo;
  5454. </li><li>
  5455. &lsquo;<samp>slices</samp>&rsquo;
  5456. </li></ul>
  5457. <p>All encoders support the following options:
  5458. </p><dl compact="compact">
  5459. <dt>&lsquo;<samp>low_power</samp>&rsquo;</dt>
  5460. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  5461. less power than the default encoder; setting this option will attempt to use
  5462. that encoder. Note that it may support a reduced feature set, so some other
  5463. options may not be available in this mode.
  5464. </p>
  5465. </dd>
  5466. <dt>&lsquo;<samp>idr_interval</samp>&rsquo;</dt>
  5467. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  5468. open-GOP mode. The intra frames are still IRAPs, but will not include global
  5469. headers and may have non-decodable leading pictures.
  5470. </p>
  5471. </dd>
  5472. <dt>&lsquo;<samp>b_depth</samp>&rsquo;</dt>
  5473. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  5474. will refer only to P- or I-frames. When set to greater values multiple layers
  5475. of B-frames will be present, frames in each layer only referring to frames in
  5476. higher layers.
  5477. </p>
  5478. </dd>
  5479. <dt>&lsquo;<samp>rc_mode</samp>&rsquo;</dt>
  5480. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  5481. modes.
  5482. </p>
  5483. <p>Possible modes:
  5484. </p><dl compact="compact">
  5485. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  5486. <dd><p>Choose the mode automatically based on driver support and the other options.
  5487. This is the default.
  5488. </p></dd>
  5489. <dt>&lsquo;<samp>CQP</samp>&rsquo;</dt>
  5490. <dd><p>Constant-quality.
  5491. </p></dd>
  5492. <dt>&lsquo;<samp>CBR</samp>&rsquo;</dt>
  5493. <dd><p>Constant-bitrate.
  5494. </p></dd>
  5495. <dt>&lsquo;<samp>VBR</samp>&rsquo;</dt>
  5496. <dd><p>Variable-bitrate.
  5497. </p></dd>
  5498. <dt>&lsquo;<samp>ICQ</samp>&rsquo;</dt>
  5499. <dd><p>Intelligent constant-quality.
  5500. </p></dd>
  5501. <dt>&lsquo;<samp>QVBR</samp>&rsquo;</dt>
  5502. <dd><p>Quality-defined variable-bitrate.
  5503. </p></dd>
  5504. <dt>&lsquo;<samp>AVBR</samp>&rsquo;</dt>
  5505. <dd><p>Average variable bitrate.
  5506. </p></dd>
  5507. </dl>
  5508. </dd>
  5509. </dl>
  5510. <p>Each encoder also has its own specific options:
  5511. </p><dl compact="compact">
  5512. <dt>&lsquo;<samp>h264_vaapi</samp>&rsquo;</dt>
  5513. <dd><p>&lsquo;<samp>profile</samp>&rsquo; sets the value of <em>profile_idc</em> and the <em>constraint_set*_flag</em>s.
  5514. &lsquo;<samp>level</samp>&rsquo; sets the value of <em>level_idc</em>.
  5515. </p>
  5516. <dl compact="compact">
  5517. <dt>&lsquo;<samp>coder</samp>&rsquo;</dt>
  5518. <dd><p>Set entropy encoder (default is <em>cabac</em>). Possible values:
  5519. </p>
  5520. <dl compact="compact">
  5521. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  5522. <dt>&lsquo;<samp>cabac</samp>&rsquo;</dt>
  5523. <dd><p>Use CABAC.
  5524. </p>
  5525. </dd>
  5526. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  5527. <dt>&lsquo;<samp>cavlc</samp>&rsquo;</dt>
  5528. <dd><p>Use CAVLC.
  5529. </p></dd>
  5530. </dl>
  5531. </dd>
  5532. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  5533. <dd><p>Include access unit delimiters in the stream (not included by default).
  5534. </p>
  5535. </dd>
  5536. <dt>&lsquo;<samp>sei</samp>&rsquo;</dt>
  5537. <dd><p>Set SEI message types to include.
  5538. Some combination of the following values:
  5539. </p><dl compact="compact">
  5540. <dt>&lsquo;<samp>identifier</samp>&rsquo;</dt>
  5541. <dd><p>Include a <em>user_data_unregistered</em> message containing information about
  5542. the encoder.
  5543. </p></dd>
  5544. <dt>&lsquo;<samp>timing</samp>&rsquo;</dt>
  5545. <dd><p>Include picture timing parameters (<em>buffering_period</em> and
  5546. <em>pic_timing</em> messages).
  5547. </p></dd>
  5548. <dt>&lsquo;<samp>recovery_point</samp>&rsquo;</dt>
  5549. <dd><p>Include recovery points where appropriate (<em>recovery_point</em> messages).
  5550. </p></dd>
  5551. </dl>
  5552. </dd>
  5553. </dl>
  5554. </dd>
  5555. <dt>&lsquo;<samp>hevc_vaapi</samp>&rsquo;</dt>
  5556. <dd><p>&lsquo;<samp>profile</samp>&rsquo; and &lsquo;<samp>level</samp>&rsquo; set the values of
  5557. <em>general_profile_idc</em> and <em>general_level_idc</em> respectively.
  5558. </p>
  5559. <dl compact="compact">
  5560. <dt>&lsquo;<samp>aud</samp>&rsquo;</dt>
  5561. <dd><p>Include access unit delimiters in the stream (not included by default).
  5562. </p>
  5563. </dd>
  5564. <dt>&lsquo;<samp>tier</samp>&rsquo;</dt>
  5565. <dd><p>Set <em>general_tier_flag</em>. This may affect the level chosen for the stream
  5566. if it is not explicitly specified.
  5567. </p>
  5568. </dd>
  5569. <dt>&lsquo;<samp>sei</samp>&rsquo;</dt>
  5570. <dd><p>Set SEI message types to include.
  5571. Some combination of the following values:
  5572. </p><dl compact="compact">
  5573. <dt>&lsquo;<samp>hdr</samp>&rsquo;</dt>
  5574. <dd><p>Include HDR metadata if the input frames have it
  5575. (<em>mastering_display_colour_volume</em> and <em>content_light_level</em>
  5576. messages).
  5577. </p></dd>
  5578. </dl>
  5579. </dd>
  5580. </dl>
  5581. </dd>
  5582. <dt>&lsquo;<samp>mjpeg_vaapi</samp>&rsquo;</dt>
  5583. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  5584. quantisation and huffman tables - &lsquo;<samp>global_quality</samp>&rsquo; scales the standard
  5585. quantisation table (range 1-100).
  5586. </p>
  5587. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  5588. supported, and will create an RGB JPEG.
  5589. </p>
  5590. <dl compact="compact">
  5591. <dt>&lsquo;<samp>jfif</samp>&rsquo;</dt>
  5592. <dd><p>Include JFIF header in each frame (not included by default).
  5593. </p></dd>
  5594. <dt>&lsquo;<samp>huffman</samp>&rsquo;</dt>
  5595. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  5596. a few hundred bytes in each output frame, but may lose compatibility with some
  5597. JPEG decoders which don&rsquo;t fully handle MJPEG.
  5598. </p></dd>
  5599. </dl>
  5600. </dd>
  5601. <dt>&lsquo;<samp>mpeg2_vaapi</samp>&rsquo;</dt>
  5602. <dd><p>&lsquo;<samp>profile</samp>&rsquo; and &lsquo;<samp>level</samp>&rsquo; set the value of <em>profile_and_level_indication</em>.
  5603. </p>
  5604. </dd>
  5605. <dt>&lsquo;<samp>vp8_vaapi</samp>&rsquo;</dt>
  5606. <dd><p>B-frames are not supported.
  5607. </p>
  5608. <p>&lsquo;<samp>global_quality</samp>&rsquo; sets the <em>q_idx</em> used for non-key frames (range 0-127).
  5609. </p>
  5610. <dl compact="compact">
  5611. <dt>&lsquo;<samp>loop_filter_level</samp>&rsquo;</dt>
  5612. <dt>&lsquo;<samp>loop_filter_sharpness</samp>&rsquo;</dt>
  5613. <dd><p>Manually set the loop filter parameters.
  5614. </p></dd>
  5615. </dl>
  5616. </dd>
  5617. <dt>&lsquo;<samp>vp9_vaapi</samp>&rsquo;</dt>
  5618. <dd><p>&lsquo;<samp>global_quality</samp>&rsquo; sets the <em>q_idx</em> used for P-frames (range 0-255).
  5619. </p>
  5620. <dl compact="compact">
  5621. <dt>&lsquo;<samp>loop_filter_level</samp>&rsquo;</dt>
  5622. <dt>&lsquo;<samp>loop_filter_sharpness</samp>&rsquo;</dt>
  5623. <dd><p>Manually set the loop filter parameters.
  5624. </p></dd>
  5625. </dl>
  5626. <p>B-frames are supported, but the output stream is always in encode order rather than display
  5627. order. If B-frames are enabled, it may be necessary to use the &lsquo;<samp>vp9_raw_reorder</samp>&rsquo;
  5628. bitstream filter to modify the output stream to display frames in the correct order.
  5629. </p>
  5630. <p>Only normal frames are produced - the &lsquo;<samp>vp9_superframe</samp>&rsquo; bitstream filter may be
  5631. required to produce a stream usable with all decoders.
  5632. </p>
  5633. </dd>
  5634. </dl>
  5635. <a name="vc2"></a>
  5636. <h2 class="section"><a href="ffmpeg-codecs.html#toc-vc2">9.20 vc2</a></h2>
  5637. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  5638. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  5639. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  5640. other tasks which require low overhead and low compression (like screen
  5641. recording).
  5642. </p>
  5643. <a name="Options-27"></a>
  5644. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-27">9.20.1 Options</a></h3>
  5645. <dl compact="compact">
  5646. <dt>&lsquo;<samp>b</samp>&rsquo;</dt>
  5647. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  5648. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  5649. values (close to the uncompressed bitrate) turn on lossless compression mode.
  5650. </p>
  5651. </dd>
  5652. <dt>&lsquo;<samp>field_order</samp>&rsquo;</dt>
  5653. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  5654. inputs. Should increase compression with interlaced content as it splits the
  5655. fields and encodes each separately.
  5656. </p>
  5657. </dd>
  5658. <dt>&lsquo;<samp>wavelet_depth</samp>&rsquo;</dt>
  5659. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  5660. Lower values reduce compression and quality. Less capable decoders may not be
  5661. able to handle values of &lsquo;<samp>wavelet_depth</samp>&rsquo; over 3.
  5662. </p>
  5663. </dd>
  5664. <dt>&lsquo;<samp>wavelet_type</samp>&rsquo;</dt>
  5665. <dd><p>Sets the transform type. Currently only <var>5_3</var> (LeGall) and <var>9_7</var>
  5666. (Deslauriers-Dubuc)
  5667. are implemented, with 9_7 being the one with better compression and thus
  5668. is the default.
  5669. </p>
  5670. </dd>
  5671. <dt>&lsquo;<samp>slice_width</samp>&rsquo;</dt>
  5672. <dt>&lsquo;<samp>slice_height</samp>&rsquo;</dt>
  5673. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  5674. For compatibility with other more limited decoders use &lsquo;<samp>slice_width</samp>&rsquo; of
  5675. 32 and &lsquo;<samp>slice_height</samp>&rsquo; of 8.
  5676. </p>
  5677. </dd>
  5678. <dt>&lsquo;<samp>tolerance</samp>&rsquo;</dt>
  5679. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  5680. to prevent an expensive search from being run.
  5681. </p>
  5682. </dd>
  5683. <dt>&lsquo;<samp>qm</samp>&rsquo;</dt>
  5684. <dd><p>Sets the quantization matrix preset to use by default or when &lsquo;<samp>wavelet_depth</samp>&rsquo;
  5685. is set to 5
  5686. </p><ul class="no-bullet">
  5687. <li>-
  5688. <var>default</var>
  5689. Uses the default quantization matrix from the specifications, extended with
  5690. values for the fifth level. This provides a good balance between keeping detail
  5691. and omitting artifacts.
  5692. </li><li>-
  5693. <var>flat</var>
  5694. Use a completely zeroed out quantization matrix. This increases PSNR but might
  5695. reduce perception. Use in bogus benchmarks.
  5696. </li><li>-
  5697. <var>color</var>
  5698. Reduces detail but attempts to preserve color at extremely low bitrates.
  5699. </li></ul>
  5700. </dd>
  5701. </dl>
  5702. <a name="Subtitles-Encoders"></a>
  5703. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Subtitles-Encoders">10 Subtitles Encoders</a></h1>
  5704. <a name="dvdsub-1"></a>
  5705. <h2 class="section"><a href="ffmpeg-codecs.html#toc-dvdsub-1">10.1 dvdsub</a></h2>
  5706. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  5707. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  5708. and they can also be used in Matroska files.
  5709. </p>
  5710. <a name="Options-8"></a>
  5711. <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-8">10.1.1 Options</a></h3>
  5712. <dl compact="compact">
  5713. <dt>&lsquo;<samp>palette</samp>&rsquo;</dt>
  5714. <dd><p>Specify the global palette used by the bitmaps.
  5715. </p>
  5716. <p>The format for this option is a string containing 16 24-bits hexadecimal
  5717. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  5718. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  5719. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  5720. </p>
  5721. </dd>
  5722. <dt>&lsquo;<samp>even_rows_fix</samp>&rsquo;</dt>
  5723. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  5724. even in all subtitles. This fixes a problem with some players that
  5725. cut off the bottom row if the number is odd. The work-around just adds
  5726. a fully transparent row if needed. The overhead is low, typically
  5727. one byte per subtitle on average.
  5728. </p>
  5729. <p>By default, this work-around is disabled.
  5730. </p></dd>
  5731. </dl>
  5732. <a name="See-Also"></a>
  5733. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-See-Also">11 See Also</a></h1>
  5734. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  5735. <a href="libavcodec.html">libavcodec</a>
  5736. </p>
  5737. <a name="Authors"></a>
  5738. <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Authors">12 Authors</a></h1>
  5739. <p>The FFmpeg developers.
  5740. </p>
  5741. <p>For details about the authorship, see the Git history of the project
  5742. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  5743. <code>git log</code> in the FFmpeg source directory, or browsing the
  5744. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  5745. </p>
  5746. <p>Maintainers for the specific components are listed in the file
  5747. &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
  5748. </p>
  5749. </div>
  5750. </body>
  5751. </html>