ffmpeg-codecs.html 231 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. FFmpeg Codecs Documentation
  8. </title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  10. <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  11. <link rel="stylesheet" type="text/css" href="style.min.css">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <h1>
  16. FFmpeg Codecs Documentation
  17. </h1>
  18. <div align="center">
  19. </div>
  20. <a name="SEC_Top"></a>
  21. <span id="SEC_Contents"></span>
  22. <h2 class="contents-heading">Table of Contents</h2>
  23. <div class="contents">
  24. <ul class="no-bullet">
  25. <li><a id="toc-Description" href="#Description">1 Description</a></li>
  26. <li><a id="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
  27. <li><a id="toc-Decoders" href="#Decoders">3 Decoders</a></li>
  28. <li><a id="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
  29. <ul class="no-bullet">
  30. <li><a id="toc-av1" href="#av1">4.1 av1</a>
  31. <ul class="no-bullet">
  32. <li><a id="toc-Options" href="#Options">4.1.1 Options</a></li>
  33. </ul></li>
  34. <li><a id="toc-rawvideo" href="#rawvideo">4.2 rawvideo</a>
  35. <ul class="no-bullet">
  36. <li><a id="toc-Options-1" href="#Options-1">4.2.1 Options</a></li>
  37. </ul></li>
  38. <li><a id="toc-libdav1d" href="#libdav1d">4.3 libdav1d</a>
  39. <ul class="no-bullet">
  40. <li><a id="toc-Options-2" href="#Options-2">4.3.1 Options</a></li>
  41. </ul></li>
  42. <li><a id="toc-libdavs2" href="#libdavs2">4.4 libdavs2</a></li>
  43. <li><a id="toc-libuavs3d" href="#libuavs3d">4.5 libuavs3d</a>
  44. <ul class="no-bullet">
  45. <li><a id="toc-Options-3" href="#Options-3">4.5.1 Options</a></li>
  46. </ul></li>
  47. </ul></li>
  48. <li><a id="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
  49. <ul class="no-bullet">
  50. <li><a id="toc-ac3" href="#ac3">5.1 ac3</a>
  51. <ul class="no-bullet">
  52. <li><a id="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 id="toc-flac-1" href="#flac-1">5.2 flac</a>
  55. <ul class="no-bullet">
  56. <li><a id="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
  57. </ul></li>
  58. <li><a id="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
  59. <li><a id="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
  60. <li><a id="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
  61. <li><a id="toc-libilbc" href="#libilbc">5.6 libilbc</a>
  62. <ul class="no-bullet">
  63. <li><a id="toc-Options-4" href="#Options-4">5.6.1 Options</a></li>
  64. </ul></li>
  65. <li><a id="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.7 libopencore-amrnb</a></li>
  66. <li><a id="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.8 libopencore-amrwb</a></li>
  67. <li><a id="toc-libopus" href="#libopus">5.9 libopus</a></li>
  68. </ul></li>
  69. <li><a id="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
  70. <ul class="no-bullet">
  71. <li><a id="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
  72. <ul class="no-bullet">
  73. <li><a id="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
  74. </ul></li>
  75. <li><a id="toc-dvbsub" href="#dvbsub">6.2 dvbsub</a>
  76. <ul class="no-bullet">
  77. <li><a id="toc-Options-5" href="#Options-5">6.2.1 Options</a></li>
  78. </ul></li>
  79. <li><a id="toc-dvdsub" href="#dvdsub">6.3 dvdsub</a>
  80. <ul class="no-bullet">
  81. <li><a id="toc-Options-6" href="#Options-6">6.3.1 Options</a></li>
  82. </ul></li>
  83. <li><a id="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.4 libzvbi-teletext</a>
  84. <ul class="no-bullet">
  85. <li><a id="toc-Options-7" href="#Options-7">6.4.1 Options</a></li>
  86. </ul></li>
  87. </ul></li>
  88. <li><a id="toc-Encoders" href="#Encoders">7 Encoders</a></li>
  89. <li><a id="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
  90. <ul class="no-bullet">
  91. <li><a id="toc-aac" href="#aac">8.1 aac</a>
  92. <ul class="no-bullet">
  93. <li><a id="toc-Options-8" href="#Options-8">8.1.1 Options</a></li>
  94. </ul></li>
  95. <li><a id="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
  96. <ul class="no-bullet">
  97. <li><a id="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
  98. <ul class="no-bullet">
  99. <li><a id="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
  100. <li><a id="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
  101. <li><a id="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
  102. <li><a id="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
  103. </ul></li>
  104. <li><a id="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
  105. <ul class="no-bullet">
  106. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-1" href="#Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></li>
  107. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-2" href="#Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></li>
  108. </ul></li>
  109. <li><a id="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
  110. <li><a id="toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></li>
  111. </ul></li>
  112. <li><a id="toc-flac-2" href="#flac-2">8.3 flac</a>
  113. <ul class="no-bullet">
  114. <li><a id="toc-Options-9" href="#Options-9">8.3.1 Options</a></li>
  115. </ul></li>
  116. <li><a id="toc-opus" href="#opus">8.4 opus</a>
  117. <ul class="no-bullet">
  118. <li><a id="toc-Options-10" href="#Options-10">8.4.1 Options</a></li>
  119. </ul></li>
  120. <li><a id="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
  121. <ul class="no-bullet">
  122. <li><a id="toc-Options-11" href="#Options-11">8.5.1 Options</a></li>
  123. <li><a id="toc-Examples" href="#Examples">8.5.2 Examples</a></li>
  124. </ul></li>
  125. <li><a id="toc-libmp3lame-1" href="#libmp3lame-1">8.6 libmp3lame</a>
  126. <ul class="no-bullet">
  127. <li><a id="toc-Options-12" href="#Options-12">8.6.1 Options</a></li>
  128. </ul></li>
  129. <li><a id="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.7 libopencore-amrnb</a>
  130. <ul class="no-bullet">
  131. <li><a id="toc-Options-13" href="#Options-13">8.7.1 Options</a></li>
  132. </ul></li>
  133. <li><a id="toc-libopus-1" href="#libopus-1">8.8 libopus</a>
  134. <ul class="no-bullet">
  135. <li><a id="toc-Option-Mapping" href="#Option-Mapping">8.8.1 Option Mapping</a></li>
  136. </ul></li>
  137. <li><a id="toc-libshine-1" href="#libshine-1">8.9 libshine</a>
  138. <ul class="no-bullet">
  139. <li><a id="toc-Options-14" href="#Options-14">8.9.1 Options</a></li>
  140. </ul></li>
  141. <li><a id="toc-libtwolame" href="#libtwolame">8.10 libtwolame</a>
  142. <ul class="no-bullet">
  143. <li><a id="toc-Options-15" href="#Options-15">8.10.1 Options</a></li>
  144. </ul></li>
  145. <li><a id="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.11 libvo-amrwbenc</a>
  146. <ul class="no-bullet">
  147. <li><a id="toc-Options-16" href="#Options-16">8.11.1 Options</a></li>
  148. </ul></li>
  149. <li><a id="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
  150. <ul class="no-bullet">
  151. <li><a id="toc-Options-17" href="#Options-17">8.12.1 Options</a></li>
  152. </ul></li>
  153. <li><a id="toc-mjpeg" href="#mjpeg">8.13 mjpeg</a>
  154. <ul class="no-bullet">
  155. <li><a id="toc-Options-18" href="#Options-18">8.13.1 Options</a></li>
  156. </ul></li>
  157. <li><a id="toc-wavpack" href="#wavpack">8.14 wavpack</a>
  158. <ul class="no-bullet">
  159. <li><a id="toc-Options-19" href="#Options-19">8.14.1 Options</a>
  160. <ul class="no-bullet">
  161. <li><a id="toc-Shared-options" href="#Shared-options">8.14.1.1 Shared options</a></li>
  162. <li><a id="toc-Private-options" href="#Private-options">8.14.1.2 Private options</a></li>
  163. </ul></li>
  164. </ul></li>
  165. </ul></li>
  166. <li><a id="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
  167. <ul class="no-bullet">
  168. <li><a id="toc-GIF" href="#GIF">9.1 GIF</a>
  169. <ul class="no-bullet">
  170. <li><a id="toc-Options-20" href="#Options-20">9.1.1 Options</a></li>
  171. </ul></li>
  172. <li><a id="toc-Hap" href="#Hap">9.2 Hap</a>
  173. <ul class="no-bullet">
  174. <li><a id="toc-Options-21" href="#Options-21">9.2.1 Options</a></li>
  175. </ul></li>
  176. <li><a id="toc-jpeg2000" href="#jpeg2000">9.3 jpeg2000</a>
  177. <ul class="no-bullet">
  178. <li><a id="toc-Options-22" href="#Options-22">9.3.1 Options</a></li>
  179. </ul></li>
  180. <li><a id="toc-librav1e" href="#librav1e">9.4 librav1e</a>
  181. <ul class="no-bullet">
  182. <li><a id="toc-Options-23" href="#Options-23">9.4.1 Options</a></li>
  183. </ul></li>
  184. <li><a id="toc-libaom_002dav1" href="#libaom_002dav1">9.5 libaom-av1</a>
  185. <ul class="no-bullet">
  186. <li><a id="toc-Options-24" href="#Options-24">9.5.1 Options</a></li>
  187. </ul></li>
  188. <li><a id="toc-libsvtav1" href="#libsvtav1">9.6 libsvtav1</a>
  189. <ul class="no-bullet">
  190. <li><a id="toc-Options-25" href="#Options-25">9.6.1 Options</a></li>
  191. </ul></li>
  192. <li><a id="toc-libkvazaar" href="#libkvazaar">9.7 libkvazaar</a>
  193. <ul class="no-bullet">
  194. <li><a id="toc-Options-26" href="#Options-26">9.7.1 Options</a></li>
  195. </ul></li>
  196. <li><a id="toc-libopenh264" href="#libopenh264">9.8 libopenh264</a>
  197. <ul class="no-bullet">
  198. <li><a id="toc-Options-27" href="#Options-27">9.8.1 Options</a></li>
  199. </ul></li>
  200. <li><a id="toc-libtheora" href="#libtheora">9.9 libtheora</a>
  201. <ul class="no-bullet">
  202. <li><a id="toc-Options-28" href="#Options-28">9.9.1 Options</a></li>
  203. <li><a id="toc-Examples-1" href="#Examples-1">9.9.2 Examples</a></li>
  204. </ul></li>
  205. <li><a id="toc-libvpx" href="#libvpx">9.10 libvpx</a>
  206. <ul class="no-bullet">
  207. <li><a id="toc-Options-29" href="#Options-29">9.10.1 Options</a></li>
  208. </ul></li>
  209. <li><a id="toc-libwebp" href="#libwebp">9.11 libwebp</a>
  210. <ul class="no-bullet">
  211. <li><a id="toc-Pixel-Format" href="#Pixel-Format">9.11.1 Pixel Format</a></li>
  212. <li><a id="toc-Options-30" href="#Options-30">9.11.2 Options</a></li>
  213. </ul></li>
  214. <li><a id="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.12 libx264, libx264rgb</a>
  215. <ul class="no-bullet">
  216. <li><a id="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.12.1 Supported Pixel Formats</a></li>
  217. <li><a id="toc-Options-31" href="#Options-31">9.12.2 Options</a></li>
  218. </ul></li>
  219. <li><a id="toc-libx265" href="#libx265">9.13 libx265</a>
  220. <ul class="no-bullet">
  221. <li><a id="toc-Options-32" href="#Options-32">9.13.1 Options</a></li>
  222. </ul></li>
  223. <li><a id="toc-libxavs2" href="#libxavs2">9.14 libxavs2</a>
  224. <ul class="no-bullet">
  225. <li><a id="toc-Options-33" href="#Options-33">9.14.1 Options</a></li>
  226. </ul></li>
  227. <li><a id="toc-libxvid" href="#libxvid">9.15 libxvid</a>
  228. <ul class="no-bullet">
  229. <li><a id="toc-Options-34" href="#Options-34">9.15.1 Options</a></li>
  230. </ul></li>
  231. <li><a id="toc-MediaFoundation" href="#MediaFoundation">9.16 MediaFoundation</a></li>
  232. <li><a id="toc-mpeg2" href="#mpeg2">9.17 mpeg2</a>
  233. <ul class="no-bullet">
  234. <li><a id="toc-Options-35" href="#Options-35">9.17.1 Options</a></li>
  235. </ul></li>
  236. <li><a id="toc-png" href="#png">9.18 png</a>
  237. <ul class="no-bullet">
  238. <li><a id="toc-Private-options-1" href="#Private-options-1">9.18.1 Private options</a></li>
  239. </ul></li>
  240. <li><a id="toc-ProRes" href="#ProRes">9.19 ProRes</a>
  241. <ul class="no-bullet">
  242. <li><a id="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.19.1 Private Options for prores-ks</a></li>
  243. <li><a id="toc-Speed-considerations" href="#Speed-considerations">9.19.2 Speed considerations</a></li>
  244. </ul></li>
  245. <li><a id="toc-QSV-encoders" href="#QSV-encoders">9.20 QSV encoders</a></li>
  246. <li><a id="toc-snow" href="#snow">9.21 snow</a>
  247. <ul class="no-bullet">
  248. <li><a id="toc-Options-36" href="#Options-36">9.21.1 Options</a></li>
  249. </ul></li>
  250. <li><a id="toc-VAAPI-encoders" href="#VAAPI-encoders">9.22 VAAPI encoders</a></li>
  251. <li><a id="toc-vc2" href="#vc2">9.23 vc2</a>
  252. <ul class="no-bullet">
  253. <li><a id="toc-Options-37" href="#Options-37">9.23.1 Options</a></li>
  254. </ul></li>
  255. </ul></li>
  256. <li><a id="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
  257. <ul class="no-bullet">
  258. <li><a id="toc-dvdsub-1" href="#dvdsub-1">10.1 dvdsub</a>
  259. <ul class="no-bullet">
  260. <li><a id="toc-Options-38" href="#Options-38">10.1.1 Options</a></li>
  261. </ul></li>
  262. </ul></li>
  263. <li><a id="toc-See-Also" href="#See-Also">11 See Also</a></li>
  264. <li><a id="toc-Authors" href="#Authors">12 Authors</a></li>
  265. </ul>
  266. </div>
  267. <a name="Description"></a>
  268. <h2 class="chapter">1 Description<span class="pull-right"><a class="anchor hidden-xs" href="#Description" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Description" aria-hidden="true">TOC</a></span></h2>
  269. <p>This document describes the codecs (decoders and encoders) provided by
  270. the libavcodec library.
  271. </p>
  272. <span id="codec_002doptions"></span><a name="Codec-Options"></a>
  273. <h2 class="chapter">2 Codec Options<span class="pull-right"><a class="anchor hidden-xs" href="#Codec-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Codec-Options" aria-hidden="true">TOC</a></span></h2>
  274. <p>libavcodec provides some generic global options, which can be set on
  275. all the encoders and decoders. In addition each codec may support
  276. so-called private options, which are specific for a given codec.
  277. </p>
  278. <p>Sometimes, a global option may only affect a specific kind of codec,
  279. and may be nonsensical or ignored by another, so you need to be aware
  280. of the meaning of the specified options. Also some options are
  281. meant only for decoding or encoding.
  282. </p>
  283. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  284. FFmpeg tools, or by setting the value explicitly in the
  285. <code>AVCodecContext</code> options or using the <samp>libavutil/opt.h</samp> API
  286. for programmatic use.
  287. </p>
  288. <p>The list of supported options follow:
  289. </p>
  290. <dl compact="compact">
  291. <dt><samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  292. <dd><p>Set bitrate in bits/s. Default value is 200K.
  293. </p>
  294. </dd>
  295. <dt><samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  296. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  297. </p>
  298. </dd>
  299. <dt><samp>bt <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  300. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  301. tolerance specifies how far ratecontrol is willing to deviate from the
  302. target average bitrate value. This is not related to min/max
  303. bitrate. Lowering tolerance too much has an adverse effect on quality.
  304. </p>
  305. </dd>
  306. <dt><samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  307. <dd><p>Set generic flags.
  308. </p>
  309. <p>Possible values:
  310. </p><dl compact="compact">
  311. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  312. <dd><p>Use four motion vector by macroblock (mpeg4).
  313. </p></dd>
  314. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  315. <dd><p>Use 1/4 pel motion compensation.
  316. </p></dd>
  317. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  318. <dd><p>Use loop filter.
  319. </p></dd>
  320. <dt>&lsquo;<samp>qscale</samp>&rsquo;</dt>
  321. <dd><p>Use fixed qscale.
  322. </p></dd>
  323. <dt>&lsquo;<samp>pass1</samp>&rsquo;</dt>
  324. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  325. </p></dd>
  326. <dt>&lsquo;<samp>pass2</samp>&rsquo;</dt>
  327. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  328. </p></dd>
  329. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  330. <dd><p>Only decode/encode grayscale.
  331. </p></dd>
  332. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  333. <dd><p>Set error[?] variables during encoding.
  334. </p></dd>
  335. <dt>&lsquo;<samp>truncated</samp>&rsquo;</dt>
  336. <dd><p>Input bitstream might be randomly truncated.
  337. </p></dd>
  338. <dt>&lsquo;<samp>drop_changed</samp>&rsquo;</dt>
  339. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  340. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  341. </p>
  342. </dd>
  343. <dt>&lsquo;<samp>ildct</samp>&rsquo;</dt>
  344. <dd><p>Use interlaced DCT.
  345. </p></dd>
  346. <dt>&lsquo;<samp>low_delay</samp>&rsquo;</dt>
  347. <dd><p>Force low delay.
  348. </p></dd>
  349. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  350. <dd><p>Place global headers in extradata instead of every keyframe.
  351. </p></dd>
  352. <dt>&lsquo;<samp>bitexact</samp>&rsquo;</dt>
  353. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  354. This ensures that file and data checksums are reproducible and match between
  355. platforms. Its primary use is for regression testing.
  356. </p></dd>
  357. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  358. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  359. </p></dd>
  360. <dt>&lsquo;<samp>ilme</samp>&rsquo;</dt>
  361. <dd><p>Apply interlaced motion estimation.
  362. </p></dd>
  363. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  364. <dd><p>Use closed gop.
  365. </p></dd>
  366. <dt>&lsquo;<samp>output_corrupt</samp>&rsquo;</dt>
  367. <dd><p>Output even potentially corrupted frames.
  368. </p></dd>
  369. </dl>
  370. </dd>
  371. <dt><samp>time_base <var>rational number</var></samp></dt>
  372. <dd><p>Set codec time base.
  373. </p>
  374. <p>It is the fundamental unit of time (in seconds) in terms of which
  375. frame timestamps are represented. For fixed-fps content, timebase
  376. should be <code>1 / frame_rate</code> and timestamp increments should be
  377. identically 1.
  378. </p>
  379. </dd>
  380. <dt><samp>g <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  381. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  382. </p>
  383. </dd>
  384. <dt><samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></dt>
  385. <dd><p>Set audio sampling rate (in Hz).
  386. </p>
  387. </dd>
  388. <dt><samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></dt>
  389. <dd><p>Set number of audio channels.
  390. </p>
  391. </dd>
  392. <dt><samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  393. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  394. their respective documentation sections.)
  395. </p>
  396. </dd>
  397. <dt><samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  398. <dd><p>Set audio frame size.
  399. </p>
  400. <p>Each submitted frame except the last must contain exactly frame_size
  401. samples per channel. May be 0 when the codec has
  402. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  403. restricted. It is set by some decoders to indicate constant frame
  404. size.
  405. </p>
  406. </dd>
  407. <dt><samp>frame_number <var>integer</var></samp></dt>
  408. <dd><p>Set the frame number.
  409. </p>
  410. </dd>
  411. <dt><samp>delay <var>integer</var></samp></dt>
  412. <dt><samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp></dt>
  413. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  414. in the ratecontrol equation. Recommended range for default rc_eq:
  415. 0.0-1.0.
  416. </p>
  417. </dd>
  418. <dt><samp>qblur <var>float</var> (<em>encoding,video</em>)</samp></dt>
  419. <dd><p>Set video quantizer scale blur (VBR).
  420. </p>
  421. </dd>
  422. <dt><samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  423. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  424. 69, default value is 2.
  425. </p>
  426. </dd>
  427. <dt><samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  428. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  429. 1024, default value is 31.
  430. </p>
  431. </dd>
  432. <dt><samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  433. <dd><p>Set max difference between the quantizer scale (VBR).
  434. </p>
  435. </dd>
  436. <dt><samp>bf <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  437. <dd><p>Set max number of B frames between non-B-frames.
  438. </p>
  439. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  440. disabled. If a value of -1 is used, it will choose an automatic value
  441. depending on the encoder.
  442. </p>
  443. <p>Default value is 0.
  444. </p>
  445. </dd>
  446. <dt><samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp></dt>
  447. <dd><p>Set qp factor between P and B frames.
  448. </p>
  449. </dd>
  450. <dt><samp>b_strategy <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  451. <dd><p>Set strategy to choose between I/P/B-frames.
  452. </p>
  453. </dd>
  454. <dt><samp>ps <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  455. <dd><p>Set RTP payload size in bytes.
  456. </p>
  457. </dd>
  458. <dt><samp>mv_bits <var>integer</var></samp></dt>
  459. <dt><samp>header_bits <var>integer</var></samp></dt>
  460. <dt><samp>i_tex_bits <var>integer</var></samp></dt>
  461. <dt><samp>p_tex_bits <var>integer</var></samp></dt>
  462. <dt><samp>i_count <var>integer</var></samp></dt>
  463. <dt><samp>p_count <var>integer</var></samp></dt>
  464. <dt><samp>skip_count <var>integer</var></samp></dt>
  465. <dt><samp>misc_bits <var>integer</var></samp></dt>
  466. <dt><samp>frame_bits <var>integer</var></samp></dt>
  467. <dt><samp>codec_tag <var>integer</var></samp></dt>
  468. <dt><samp>bug <var>flags</var> (<em>decoding,video</em>)</samp></dt>
  469. <dd><p>Workaround not auto detected encoder bugs.
  470. </p>
  471. <p>Possible values:
  472. </p><dl compact="compact">
  473. <dt>&lsquo;<samp>autodetect</samp>&rsquo;</dt>
  474. <dt>&lsquo;<samp>xvid_ilace</samp>&rsquo;</dt>
  475. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  476. </p></dd>
  477. <dt>&lsquo;<samp>ump4</samp>&rsquo;</dt>
  478. <dd><p>(autodetected if fourcc==UMP4)
  479. </p></dd>
  480. <dt>&lsquo;<samp>no_padding</samp>&rsquo;</dt>
  481. <dd><p>padding bug (autodetected)
  482. </p></dd>
  483. <dt>&lsquo;<samp>amv</samp>&rsquo;</dt>
  484. <dt>&lsquo;<samp>qpel_chroma</samp>&rsquo;</dt>
  485. <dt>&lsquo;<samp>std_qpel</samp>&rsquo;</dt>
  486. <dd><p>old standard qpel (autodetected per fourcc/version)
  487. </p></dd>
  488. <dt>&lsquo;<samp>qpel_chroma2</samp>&rsquo;</dt>
  489. <dt>&lsquo;<samp>direct_blocksize</samp>&rsquo;</dt>
  490. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  491. </p></dd>
  492. <dt>&lsquo;<samp>edge</samp>&rsquo;</dt>
  493. <dd><p>edge padding bug (autodetected per fourcc/version)
  494. </p></dd>
  495. <dt>&lsquo;<samp>hpel_chroma</samp>&rsquo;</dt>
  496. <dt>&lsquo;<samp>dc_clip</samp>&rsquo;</dt>
  497. <dt>&lsquo;<samp>ms</samp>&rsquo;</dt>
  498. <dd><p>Workaround various bugs in microsoft broken decoders.
  499. </p></dd>
  500. <dt>&lsquo;<samp>trunc</samp>&rsquo;</dt>
  501. <dd><p>trancated frames
  502. </p></dd>
  503. </dl>
  504. </dd>
  505. <dt><samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></dt>
  506. <dd><p>Specify how strictly to follow the standards.
  507. </p>
  508. <p>Possible values:
  509. </p><dl compact="compact">
  510. <dt>&lsquo;<samp>very</samp>&rsquo;</dt>
  511. <dd><p>strictly conform to an older more strict version of the spec or reference software
  512. </p></dd>
  513. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  514. <dd><p>strictly conform to all the things in the spec no matter what consequences
  515. </p></dd>
  516. <dt>&lsquo;<samp>normal</samp>&rsquo;</dt>
  517. <dt>&lsquo;<samp>unofficial</samp>&rsquo;</dt>
  518. <dd><p>allow unofficial extensions
  519. </p></dd>
  520. <dt>&lsquo;<samp>experimental</samp>&rsquo;</dt>
  521. <dd><p>allow non standardized experimental things, experimental
  522. (unfinished/work in progress/not well tested) decoders and encoders.
  523. Note: experimental decoders can pose a security risk, do not use this for
  524. decoding untrusted input.
  525. </p></dd>
  526. </dl>
  527. </dd>
  528. <dt><samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp></dt>
  529. <dd><p>Set QP offset between P and B frames.
  530. </p>
  531. </dd>
  532. <dt><samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp></dt>
  533. <dd><p>Set error detection flags.
  534. </p>
  535. <p>Possible values:
  536. </p><dl compact="compact">
  537. <dt>&lsquo;<samp>crccheck</samp>&rsquo;</dt>
  538. <dd><p>verify embedded CRCs
  539. </p></dd>
  540. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  541. <dd><p>detect bitstream specification deviations
  542. </p></dd>
  543. <dt>&lsquo;<samp>buffer</samp>&rsquo;</dt>
  544. <dd><p>detect improper bitstream length
  545. </p></dd>
  546. <dt>&lsquo;<samp>explode</samp>&rsquo;</dt>
  547. <dd><p>abort decoding on minor error detection
  548. </p></dd>
  549. <dt>&lsquo;<samp>ignore_err</samp>&rsquo;</dt>
  550. <dd><p>ignore decoding errors, and continue decoding.
  551. This is useful if you want to analyze the content of a video and thus want
  552. everything to be decoded no matter what. This option will not result in a video
  553. that is pleasing to watch in case of errors.
  554. </p></dd>
  555. <dt>&lsquo;<samp>careful</samp>&rsquo;</dt>
  556. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  557. </p></dd>
  558. <dt>&lsquo;<samp>compliant</samp>&rsquo;</dt>
  559. <dd><p>consider all spec non compliancies as errors
  560. </p></dd>
  561. <dt>&lsquo;<samp>aggressive</samp>&rsquo;</dt>
  562. <dd><p>consider things that a sane encoder should not do as an error
  563. </p></dd>
  564. </dl>
  565. </dd>
  566. <dt><samp>has_b_frames <var>integer</var></samp></dt>
  567. <dt><samp>block_align <var>integer</var></samp></dt>
  568. <dt><samp>mpeg_quant <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  569. <dd><p>Use MPEG quantizers instead of H.263.
  570. </p>
  571. </dd>
  572. <dt><samp>rc_override_count <var>integer</var></samp></dt>
  573. <dt><samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  574. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  575. </p>
  576. </dd>
  577. <dt><samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  578. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  579. encode. It is of little use elsewise.
  580. </p>
  581. </dd>
  582. <dt><samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  583. <dd><p>Set ratecontrol buffer size (in bits).
  584. </p>
  585. </dd>
  586. <dt><samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp></dt>
  587. <dd><p>Set QP factor between P and I frames.
  588. </p>
  589. </dd>
  590. <dt><samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp></dt>
  591. <dd><p>Set QP offset between P and I frames.
  592. </p>
  593. </dd>
  594. <dt><samp>dct <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  595. <dd><p>Set DCT algorithm.
  596. </p>
  597. <p>Possible values:
  598. </p><dl compact="compact">
  599. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  600. <dd><p>autoselect a good one (default)
  601. </p></dd>
  602. <dt>&lsquo;<samp>fastint</samp>&rsquo;</dt>
  603. <dd><p>fast integer
  604. </p></dd>
  605. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  606. <dd><p>accurate integer
  607. </p></dd>
  608. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  609. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  610. <dt>&lsquo;<samp>faan</samp>&rsquo;</dt>
  611. <dd><p>floating point AAN DCT
  612. </p></dd>
  613. </dl>
  614. </dd>
  615. <dt><samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp></dt>
  616. <dd><p>Compress bright areas stronger than medium ones.
  617. </p>
  618. </dd>
  619. <dt><samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp></dt>
  620. <dd><p>Set temporal complexity masking.
  621. </p>
  622. </dd>
  623. <dt><samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp></dt>
  624. <dd><p>Set spatial complexity masking.
  625. </p>
  626. </dd>
  627. <dt><samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp></dt>
  628. <dd><p>Set inter masking.
  629. </p>
  630. </dd>
  631. <dt><samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp></dt>
  632. <dd><p>Compress dark areas stronger than medium ones.
  633. </p>
  634. </dd>
  635. <dt><samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  636. <dd><p>Select IDCT implementation.
  637. </p>
  638. <p>Possible values:
  639. </p><dl compact="compact">
  640. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  641. <dt>&lsquo;<samp>int</samp>&rsquo;</dt>
  642. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  643. <dt>&lsquo;<samp>simplemmx</samp>&rsquo;</dt>
  644. <dt>&lsquo;<samp>simpleauto</samp>&rsquo;</dt>
  645. <dd><p>Automatically pick a IDCT compatible with the simple one
  646. </p>
  647. </dd>
  648. <dt>&lsquo;<samp>arm</samp>&rsquo;</dt>
  649. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  650. <dt>&lsquo;<samp>sh4</samp>&rsquo;</dt>
  651. <dt>&lsquo;<samp>simplearm</samp>&rsquo;</dt>
  652. <dt>&lsquo;<samp>simplearmv5te</samp>&rsquo;</dt>
  653. <dt>&lsquo;<samp>simplearmv6</samp>&rsquo;</dt>
  654. <dt>&lsquo;<samp>simpleneon</samp>&rsquo;</dt>
  655. <dt>&lsquo;<samp>xvid</samp>&rsquo;</dt>
  656. <dt>&lsquo;<samp>faani</samp>&rsquo;</dt>
  657. <dd><p>floating point AAN IDCT
  658. </p></dd>
  659. </dl>
  660. </dd>
  661. <dt><samp>slice_count <var>integer</var></samp></dt>
  662. <dt><samp>ec <var>flags</var> (<em>decoding,video</em>)</samp></dt>
  663. <dd><p>Set error concealment strategy.
  664. </p>
  665. <p>Possible values:
  666. </p><dl compact="compact">
  667. <dt>&lsquo;<samp>guess_mvs</samp>&rsquo;</dt>
  668. <dd><p>iterative motion vector (MV) search (slow)
  669. </p></dd>
  670. <dt>&lsquo;<samp>deblock</samp>&rsquo;</dt>
  671. <dd><p>use strong deblock filter for damaged MBs
  672. </p></dd>
  673. <dt>&lsquo;<samp>favor_inter</samp>&rsquo;</dt>
  674. <dd><p>favor predicting from the previous frame instead of the current
  675. </p></dd>
  676. </dl>
  677. </dd>
  678. <dt><samp>bits_per_coded_sample <var>integer</var></samp></dt>
  679. <dt><samp>pred <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  680. <dd><p>Set prediction method.
  681. </p>
  682. <p>Possible values:
  683. </p><dl compact="compact">
  684. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  685. <dt>&lsquo;<samp>plane</samp>&rsquo;</dt>
  686. <dt>&lsquo;<samp>median</samp>&rsquo;</dt>
  687. </dl>
  688. </dd>
  689. <dt><samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp></dt>
  690. <dd><p>Set sample aspect ratio.
  691. </p>
  692. </dd>
  693. <dt><samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp></dt>
  694. <dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
  695. </p>
  696. </dd>
  697. <dt><samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  698. <dd><p>Print specific debug info.
  699. </p>
  700. <p>Possible values:
  701. </p><dl compact="compact">
  702. <dt>&lsquo;<samp>pict</samp>&rsquo;</dt>
  703. <dd><p>picture info
  704. </p></dd>
  705. <dt>&lsquo;<samp>rc</samp>&rsquo;</dt>
  706. <dd><p>rate control
  707. </p></dd>
  708. <dt>&lsquo;<samp>bitstream</samp>&rsquo;</dt>
  709. <dt>&lsquo;<samp>mb_type</samp>&rsquo;</dt>
  710. <dd><p>macroblock (MB) type
  711. </p></dd>
  712. <dt>&lsquo;<samp>qp</samp>&rsquo;</dt>
  713. <dd><p>per-block quantization parameter (QP)
  714. </p></dd>
  715. <dt>&lsquo;<samp>dct_coeff</samp>&rsquo;</dt>
  716. <dt>&lsquo;<samp>green_metadata</samp>&rsquo;</dt>
  717. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  718. </p>
  719. </dd>
  720. <dt>&lsquo;<samp>skip</samp>&rsquo;</dt>
  721. <dt>&lsquo;<samp>startcode</samp>&rsquo;</dt>
  722. <dt>&lsquo;<samp>er</samp>&rsquo;</dt>
  723. <dd><p>error recognition
  724. </p></dd>
  725. <dt>&lsquo;<samp>mmco</samp>&rsquo;</dt>
  726. <dd><p>memory management control operations (H.264)
  727. </p></dd>
  728. <dt>&lsquo;<samp>bugs</samp>&rsquo;</dt>
  729. <dt>&lsquo;<samp>buffers</samp>&rsquo;</dt>
  730. <dd><p>picture buffer allocations
  731. </p></dd>
  732. <dt>&lsquo;<samp>thread_ops</samp>&rsquo;</dt>
  733. <dd><p>threading operations
  734. </p></dd>
  735. <dt>&lsquo;<samp>nomc</samp>&rsquo;</dt>
  736. <dd><p>skip motion compensation
  737. </p></dd>
  738. </dl>
  739. </dd>
  740. <dt><samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  741. <dd><p>Set full pel me compare function.
  742. </p>
  743. <p>Possible values:
  744. </p><dl compact="compact">
  745. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  746. <dd><p>sum of absolute differences, fast (default)
  747. </p></dd>
  748. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  749. <dd><p>sum of squared errors
  750. </p></dd>
  751. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  752. <dd><p>sum of absolute Hadamard transformed differences
  753. </p></dd>
  754. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  755. <dd><p>sum of absolute DCT transformed differences
  756. </p></dd>
  757. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  758. <dd><p>sum of squared quantization errors (avoid, low quality)
  759. </p></dd>
  760. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  761. <dd><p>number of bits needed for the block
  762. </p></dd>
  763. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  764. <dd><p>rate distortion optimal, slow
  765. </p></dd>
  766. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  767. <dd><p>0
  768. </p></dd>
  769. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  770. <dd><p>sum of absolute vertical differences
  771. </p></dd>
  772. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  773. <dd><p>sum of squared vertical differences
  774. </p></dd>
  775. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  776. <dd><p>noise preserving sum of squared differences
  777. </p></dd>
  778. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  779. <dd><p>5/3 wavelet, only used in snow
  780. </p></dd>
  781. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  782. <dd><p>9/7 wavelet, only used in snow
  783. </p></dd>
  784. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  785. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  786. </dl>
  787. </dd>
  788. <dt><samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  789. <dd><p>Set sub pel me compare function.
  790. </p>
  791. <p>Possible values:
  792. </p><dl compact="compact">
  793. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  794. <dd><p>sum of absolute differences, fast (default)
  795. </p></dd>
  796. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  797. <dd><p>sum of squared errors
  798. </p></dd>
  799. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  800. <dd><p>sum of absolute Hadamard transformed differences
  801. </p></dd>
  802. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  803. <dd><p>sum of absolute DCT transformed differences
  804. </p></dd>
  805. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  806. <dd><p>sum of squared quantization errors (avoid, low quality)
  807. </p></dd>
  808. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  809. <dd><p>number of bits needed for the block
  810. </p></dd>
  811. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  812. <dd><p>rate distortion optimal, slow
  813. </p></dd>
  814. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  815. <dd><p>0
  816. </p></dd>
  817. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  818. <dd><p>sum of absolute vertical differences
  819. </p></dd>
  820. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  821. <dd><p>sum of squared vertical differences
  822. </p></dd>
  823. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  824. <dd><p>noise preserving sum of squared differences
  825. </p></dd>
  826. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  827. <dd><p>5/3 wavelet, only used in snow
  828. </p></dd>
  829. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  830. <dd><p>9/7 wavelet, only used in snow
  831. </p></dd>
  832. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  833. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  834. </dl>
  835. </dd>
  836. <dt><samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  837. <dd><p>Set macroblock compare function.
  838. </p>
  839. <p>Possible values:
  840. </p><dl compact="compact">
  841. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  842. <dd><p>sum of absolute differences, fast (default)
  843. </p></dd>
  844. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  845. <dd><p>sum of squared errors
  846. </p></dd>
  847. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  848. <dd><p>sum of absolute Hadamard transformed differences
  849. </p></dd>
  850. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  851. <dd><p>sum of absolute DCT transformed differences
  852. </p></dd>
  853. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  854. <dd><p>sum of squared quantization errors (avoid, low quality)
  855. </p></dd>
  856. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  857. <dd><p>number of bits needed for the block
  858. </p></dd>
  859. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  860. <dd><p>rate distortion optimal, slow
  861. </p></dd>
  862. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  863. <dd><p>0
  864. </p></dd>
  865. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  866. <dd><p>sum of absolute vertical differences
  867. </p></dd>
  868. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  869. <dd><p>sum of squared vertical differences
  870. </p></dd>
  871. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  872. <dd><p>noise preserving sum of squared differences
  873. </p></dd>
  874. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  875. <dd><p>5/3 wavelet, only used in snow
  876. </p></dd>
  877. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  878. <dd><p>9/7 wavelet, only used in snow
  879. </p></dd>
  880. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  881. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  882. </dl>
  883. </dd>
  884. <dt><samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  885. <dd><p>Set interlaced dct compare function.
  886. </p>
  887. <p>Possible values:
  888. </p><dl compact="compact">
  889. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  890. <dd><p>sum of absolute differences, fast (default)
  891. </p></dd>
  892. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  893. <dd><p>sum of squared errors
  894. </p></dd>
  895. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  896. <dd><p>sum of absolute Hadamard transformed differences
  897. </p></dd>
  898. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  899. <dd><p>sum of absolute DCT transformed differences
  900. </p></dd>
  901. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  902. <dd><p>sum of squared quantization errors (avoid, low quality)
  903. </p></dd>
  904. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  905. <dd><p>number of bits needed for the block
  906. </p></dd>
  907. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  908. <dd><p>rate distortion optimal, slow
  909. </p></dd>
  910. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  911. <dd><p>0
  912. </p></dd>
  913. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  914. <dd><p>sum of absolute vertical differences
  915. </p></dd>
  916. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  917. <dd><p>sum of squared vertical differences
  918. </p></dd>
  919. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  920. <dd><p>noise preserving sum of squared differences
  921. </p></dd>
  922. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  923. <dd><p>5/3 wavelet, only used in snow
  924. </p></dd>
  925. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  926. <dd><p>9/7 wavelet, only used in snow
  927. </p></dd>
  928. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  929. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  930. </dl>
  931. </dd>
  932. <dt><samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  933. <dd><p>Set diamond type &amp; size for motion estimation.
  934. </p><dl compact="compact">
  935. <dt>&lsquo;<samp>(1024, INT_MAX)</samp>&rsquo;</dt>
  936. <dd><p>full motion estimation(slowest)
  937. </p></dd>
  938. <dt>&lsquo;<samp>(768, 1024]</samp>&rsquo;</dt>
  939. <dd><p>umh motion estimation
  940. </p></dd>
  941. <dt>&lsquo;<samp>(512, 768]</samp>&rsquo;</dt>
  942. <dd><p>hex motion estimation
  943. </p></dd>
  944. <dt>&lsquo;<samp>(256, 512]</samp>&rsquo;</dt>
  945. <dd><p>l2s diamond motion estimation
  946. </p></dd>
  947. <dt>&lsquo;<samp>[2,256]</samp>&rsquo;</dt>
  948. <dd><p>var diamond motion estimation
  949. </p></dd>
  950. <dt>&lsquo;<samp>(-1, 2)</samp>&rsquo;</dt>
  951. <dd><p>small diamond motion estimation
  952. </p></dd>
  953. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  954. <dd><p>funny diamond motion estimation
  955. </p></dd>
  956. <dt>&lsquo;<samp>(INT_MIN, -1)</samp>&rsquo;</dt>
  957. <dd><p>sab diamond motion estimation
  958. </p></dd>
  959. </dl>
  960. </dd>
  961. <dt><samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  962. <dd><p>Set amount of motion predictors from the previous frame.
  963. </p>
  964. </dd>
  965. <dt><samp>preme <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  966. <dd><p>Set pre motion estimation.
  967. </p>
  968. </dd>
  969. <dt><samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  970. <dd><p>Set pre motion estimation compare function.
  971. </p>
  972. <p>Possible values:
  973. </p><dl compact="compact">
  974. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  975. <dd><p>sum of absolute differences, fast (default)
  976. </p></dd>
  977. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  978. <dd><p>sum of squared errors
  979. </p></dd>
  980. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  981. <dd><p>sum of absolute Hadamard transformed differences
  982. </p></dd>
  983. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  984. <dd><p>sum of absolute DCT transformed differences
  985. </p></dd>
  986. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  987. <dd><p>sum of squared quantization errors (avoid, low quality)
  988. </p></dd>
  989. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  990. <dd><p>number of bits needed for the block
  991. </p></dd>
  992. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  993. <dd><p>rate distortion optimal, slow
  994. </p></dd>
  995. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  996. <dd><p>0
  997. </p></dd>
  998. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  999. <dd><p>sum of absolute vertical differences
  1000. </p></dd>
  1001. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  1002. <dd><p>sum of squared vertical differences
  1003. </p></dd>
  1004. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  1005. <dd><p>noise preserving sum of squared differences
  1006. </p></dd>
  1007. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  1008. <dd><p>5/3 wavelet, only used in snow
  1009. </p></dd>
  1010. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  1011. <dd><p>9/7 wavelet, only used in snow
  1012. </p></dd>
  1013. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  1014. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  1015. </dl>
  1016. </dd>
  1017. <dt><samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1018. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  1019. </p>
  1020. </dd>
  1021. <dt><samp>subq <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1022. <dd><p>Set sub pel motion estimation quality.
  1023. </p>
  1024. </dd>
  1025. <dt><samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1026. <dd><p>Set limit motion vectors range (1023 for DivX player).
  1027. </p>
  1028. </dd>
  1029. <dt><samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  1030. <dt><samp>coder <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1031. <dd>
  1032. <p>Possible values:
  1033. </p><dl compact="compact">
  1034. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  1035. <dd><p>variable length coder / huffman coder
  1036. </p></dd>
  1037. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  1038. <dd><p>arithmetic coder
  1039. </p></dd>
  1040. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  1041. <dd><p>raw (no encoding)
  1042. </p></dd>
  1043. <dt>&lsquo;<samp>rle</samp>&rsquo;</dt>
  1044. <dd><p>run-length coder
  1045. </p></dd>
  1046. </dl>
  1047. </dd>
  1048. <dt><samp>context <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1049. <dd><p>Set context model.
  1050. </p>
  1051. </dd>
  1052. <dt><samp>slice_flags <var>integer</var></samp></dt>
  1053. <dt><samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1054. <dd><p>Set macroblock decision algorithm (high quality mode).
  1055. </p>
  1056. <p>Possible values:
  1057. </p><dl compact="compact">
  1058. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  1059. <dd><p>use mbcmp (default)
  1060. </p></dd>
  1061. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  1062. <dd><p>use fewest bits
  1063. </p></dd>
  1064. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1065. <dd><p>use best rate distortion
  1066. </p></dd>
  1067. </dl>
  1068. </dd>
  1069. <dt><samp>sc_threshold <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1070. <dd><p>Set scene change threshold.
  1071. </p>
  1072. </dd>
  1073. <dt><samp>nr <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1074. <dd><p>Set noise reduction.
  1075. </p>
  1076. </dd>
  1077. <dt><samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1078. <dd><p>Set number of bits which should be loaded into the rc buffer before
  1079. decoding starts.
  1080. </p>
  1081. </dd>
  1082. <dt><samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1083. <dd>
  1084. <p>Possible values:
  1085. </p><dl compact="compact">
  1086. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  1087. <dd><p>Allow non spec compliant speedup tricks.
  1088. </p></dd>
  1089. <dt>&lsquo;<samp>noout</samp>&rsquo;</dt>
  1090. <dd><p>Skip bitstream encoding.
  1091. </p></dd>
  1092. <dt>&lsquo;<samp>ignorecrop</samp>&rsquo;</dt>
  1093. <dd><p>Ignore cropping information from sps.
  1094. </p></dd>
  1095. <dt>&lsquo;<samp>local_header</samp>&rsquo;</dt>
  1096. <dd><p>Place global headers at every keyframe instead of in extradata.
  1097. </p></dd>
  1098. <dt>&lsquo;<samp>chunks</samp>&rsquo;</dt>
  1099. <dd><p>Frame data might be split into multiple chunks.
  1100. </p></dd>
  1101. <dt>&lsquo;<samp>showall</samp>&rsquo;</dt>
  1102. <dd><p>Show all frames before the first keyframe.
  1103. </p></dd>
  1104. <dt>&lsquo;<samp>export_mvs</samp>&rsquo;</dt>
  1105. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1106. for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
  1107. </p></dd>
  1108. <dt>&lsquo;<samp>skip_manual</samp>&rsquo;</dt>
  1109. <dd><p>Do not skip samples and export skip information as frame side data.
  1110. </p></dd>
  1111. <dt>&lsquo;<samp>ass_ro_flush_noop</samp>&rsquo;</dt>
  1112. <dd><p>Do not reset ASS ReadOrder field on flush.
  1113. </p></dd>
  1114. </dl>
  1115. </dd>
  1116. <dt><samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1117. <dd>
  1118. <p>Possible values:
  1119. </p><dl compact="compact">
  1120. <dt>&lsquo;<samp>mvs</samp>&rsquo;</dt>
  1121. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1122. for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
  1123. </p></dd>
  1124. <dt>&lsquo;<samp>prft</samp>&rsquo;</dt>
  1125. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
  1126. for codecs that support it.
  1127. </p></dd>
  1128. <dt>&lsquo;<samp>venc_params</samp>&rsquo;</dt>
  1129. <dd><p>Export video encoding parameters through frame side data (see <code>AV_FRAME_DATA_VIDEO_ENC_PARAMS</code>)
  1130. for codecs that support it. At present, those are H.264 and VP9.
  1131. </p></dd>
  1132. <dt>&lsquo;<samp>film_grain</samp>&rsquo;</dt>
  1133. <dd><p>Export film grain parameters through frame side data (see <code>AV_FRAME_DATA_FILM_GRAIN_PARAMS</code>).
  1134. Supported at present by AV1 decoders.
  1135. </p></dd>
  1136. </dl>
  1137. </dd>
  1138. <dt><samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1139. <dd><p>Set the number of threads to be used, in case the selected codec
  1140. implementation supports multi-threading.
  1141. </p>
  1142. <p>Possible values:
  1143. </p><dl compact="compact">
  1144. <dt>&lsquo;<samp>auto, 0</samp>&rsquo;</dt>
  1145. <dd><p>automatically select the number of threads to set
  1146. </p></dd>
  1147. </dl>
  1148. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  1149. </p>
  1150. </dd>
  1151. <dt><samp>dc <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1152. <dd><p>Set intra_dc_precision.
  1153. </p>
  1154. </dd>
  1155. <dt><samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1156. <dd><p>Set nsse weight.
  1157. </p>
  1158. </dd>
  1159. <dt><samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp></dt>
  1160. <dd><p>Set number of macroblock rows at the top which are skipped.
  1161. </p>
  1162. </dd>
  1163. <dt><samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp></dt>
  1164. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  1165. </p>
  1166. </dd>
  1167. <dt><samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  1168. <dd>
  1169. <p>Set encoder codec profile. Default value is &lsquo;<samp>unknown</samp>&rsquo;. Encoder specific
  1170. profiles are documented in the relevant encoder documentation.
  1171. </p>
  1172. </dd>
  1173. <dt><samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  1174. <dd>
  1175. <p>Possible values:
  1176. </p><dl compact="compact">
  1177. <dt>&lsquo;<samp>unknown</samp>&rsquo;</dt>
  1178. </dl>
  1179. </dd>
  1180. <dt><samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp></dt>
  1181. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1182. </p>
  1183. </dd>
  1184. <dt><samp>skip_threshold <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1185. <dd><p>Set frame skip threshold.
  1186. </p>
  1187. </dd>
  1188. <dt><samp>skip_factor <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1189. <dd><p>Set frame skip factor.
  1190. </p>
  1191. </dd>
  1192. <dt><samp>skip_exp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1193. <dd><p>Set frame skip exponent.
  1194. Negative values behave identical to the corresponding positive ones, except
  1195. that the score is normalized.
  1196. Positive values exist primarily for compatibility reasons and are not so useful.
  1197. </p>
  1198. </dd>
  1199. <dt><samp>skipcmp <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1200. <dd><p>Set frame skip compare function.
  1201. </p>
  1202. <p>Possible values:
  1203. </p><dl compact="compact">
  1204. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  1205. <dd><p>sum of absolute differences, fast (default)
  1206. </p></dd>
  1207. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  1208. <dd><p>sum of squared errors
  1209. </p></dd>
  1210. <dt>&lsquo;<samp>satd</samp>&rsquo;</dt>
  1211. <dd><p>sum of absolute Hadamard transformed differences
  1212. </p></dd>
  1213. <dt>&lsquo;<samp>dct</samp>&rsquo;</dt>
  1214. <dd><p>sum of absolute DCT transformed differences
  1215. </p></dd>
  1216. <dt>&lsquo;<samp>psnr</samp>&rsquo;</dt>
  1217. <dd><p>sum of squared quantization errors (avoid, low quality)
  1218. </p></dd>
  1219. <dt>&lsquo;<samp>bit</samp>&rsquo;</dt>
  1220. <dd><p>number of bits needed for the block
  1221. </p></dd>
  1222. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  1223. <dd><p>rate distortion optimal, slow
  1224. </p></dd>
  1225. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  1226. <dd><p>0
  1227. </p></dd>
  1228. <dt>&lsquo;<samp>vsad</samp>&rsquo;</dt>
  1229. <dd><p>sum of absolute vertical differences
  1230. </p></dd>
  1231. <dt>&lsquo;<samp>vsse</samp>&rsquo;</dt>
  1232. <dd><p>sum of squared vertical differences
  1233. </p></dd>
  1234. <dt>&lsquo;<samp>nsse</samp>&rsquo;</dt>
  1235. <dd><p>noise preserving sum of squared differences
  1236. </p></dd>
  1237. <dt>&lsquo;<samp>w53</samp>&rsquo;</dt>
  1238. <dd><p>5/3 wavelet, only used in snow
  1239. </p></dd>
  1240. <dt>&lsquo;<samp>w97</samp>&rsquo;</dt>
  1241. <dd><p>9/7 wavelet, only used in snow
  1242. </p></dd>
  1243. <dt>&lsquo;<samp>dctmax</samp>&rsquo;</dt>
  1244. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  1245. </dl>
  1246. </dd>
  1247. <dt><samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1248. <dd><p>Set min macroblock lagrange factor (VBR).
  1249. </p>
  1250. </dd>
  1251. <dt><samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1252. <dd><p>Set max macroblock lagrange factor (VBR).
  1253. </p>
  1254. </dd>
  1255. <dt><samp>mepc <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1256. <dd><p>Set motion estimation bitrate penalty compensation (1.0 = 256).
  1257. </p>
  1258. </dd>
  1259. <dt><samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp></dt>
  1260. <dt><samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp></dt>
  1261. <dt><samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp></dt>
  1262. <dd>
  1263. <p>Make decoder discard processing depending on the frame type selected
  1264. by the option value.
  1265. </p>
  1266. <p><samp>skip_loop_filter</samp> skips frame loop filtering, <samp>skip_idct</samp>
  1267. skips frame IDCT/dequantization, <samp>skip_frame</samp> skips decoding.
  1268. </p>
  1269. <p>Possible values:
  1270. </p><dl compact="compact">
  1271. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  1272. <dd><p>Discard no frame.
  1273. </p>
  1274. </dd>
  1275. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  1276. <dd><p>Discard useless frames like 0-sized frames.
  1277. </p>
  1278. </dd>
  1279. <dt>&lsquo;<samp>noref</samp>&rsquo;</dt>
  1280. <dd><p>Discard all non-reference frames.
  1281. </p>
  1282. </dd>
  1283. <dt>&lsquo;<samp>bidir</samp>&rsquo;</dt>
  1284. <dd><p>Discard all bidirectional frames.
  1285. </p>
  1286. </dd>
  1287. <dt>&lsquo;<samp>nokey</samp>&rsquo;</dt>
  1288. <dd><p>Discard all frames excepts keyframes.
  1289. </p>
  1290. </dd>
  1291. <dt>&lsquo;<samp>nointra</samp>&rsquo;</dt>
  1292. <dd><p>Discard all frames except I frames.
  1293. </p>
  1294. </dd>
  1295. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  1296. <dd><p>Discard all frames.
  1297. </p></dd>
  1298. </dl>
  1299. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  1300. </p>
  1301. </dd>
  1302. <dt><samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1303. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  1304. </p>
  1305. </dd>
  1306. <dt><samp>brd_scale <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1307. <dd><p>Downscale frames for dynamic B-frame decision.
  1308. </p>
  1309. </dd>
  1310. <dt><samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1311. <dd><p>Set minimum interval between IDR-frames.
  1312. </p>
  1313. </dd>
  1314. <dt><samp>refs <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1315. <dd><p>Set reference frames to consider for motion compensation.
  1316. </p>
  1317. </dd>
  1318. <dt><samp>chromaoffset <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1319. <dd><p>Set chroma qp offset from luma.
  1320. </p>
  1321. </dd>
  1322. <dt><samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  1323. <dd><p>Set rate-distortion optimal quantization.
  1324. </p>
  1325. </dd>
  1326. <dt><samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1327. <dt><samp>b_sensitivity <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1328. <dd><p>Adjust sensitivity of b_frame_strategy 1.
  1329. </p>
  1330. </dd>
  1331. <dt><samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp></dt>
  1332. <dt><samp>min_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  1333. <dt><samp>max_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  1334. <dt><samp>timecode_frame_start <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1335. <dd><p>Set GOP timecode frame start number, in non drop frame format.
  1336. </p>
  1337. </dd>
  1338. <dt><samp>bits_per_raw_sample <var>integer</var></samp></dt>
  1339. <dt><samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></dt>
  1340. <dd>
  1341. <p>Possible values:
  1342. </p></dd>
  1343. <dt><samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp></dt>
  1344. <dd>
  1345. <p>Possible values:
  1346. </p></dd>
  1347. <dt><samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></dt>
  1348. <dt><samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></dt>
  1349. <dt><samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></dt>
  1350. <dt><samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1351. <dd><p>Possible values:
  1352. </p><dl compact="compact">
  1353. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1354. <dd><p>BT.709
  1355. </p></dd>
  1356. <dt>&lsquo;<samp>bt470m</samp>&rsquo;</dt>
  1357. <dd><p>BT.470 M
  1358. </p></dd>
  1359. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  1360. <dd><p>BT.470 BG
  1361. </p></dd>
  1362. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1363. <dd><p>SMPTE 170 M
  1364. </p></dd>
  1365. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1366. <dd><p>SMPTE 240 M
  1367. </p></dd>
  1368. <dt>&lsquo;<samp>film</samp>&rsquo;</dt>
  1369. <dd><p>Film
  1370. </p></dd>
  1371. <dt>&lsquo;<samp>bt2020</samp>&rsquo;</dt>
  1372. <dd><p>BT.2020
  1373. </p></dd>
  1374. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  1375. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  1376. <dd><p>SMPTE ST 428-1
  1377. </p></dd>
  1378. <dt>&lsquo;<samp>smpte431</samp>&rsquo;</dt>
  1379. <dd><p>SMPTE 431-2
  1380. </p></dd>
  1381. <dt>&lsquo;<samp>smpte432</samp>&rsquo;</dt>
  1382. <dd><p>SMPTE 432-1
  1383. </p></dd>
  1384. <dt>&lsquo;<samp>jedec-p22</samp>&rsquo;</dt>
  1385. <dd><p>JEDEC P22
  1386. </p></dd>
  1387. </dl>
  1388. </dd>
  1389. <dt><samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1390. <dd><p>Possible values:
  1391. </p><dl compact="compact">
  1392. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1393. <dd><p>BT.709
  1394. </p></dd>
  1395. <dt>&lsquo;<samp>gamma22</samp>&rsquo;</dt>
  1396. <dd><p>BT.470 M
  1397. </p></dd>
  1398. <dt>&lsquo;<samp>gamma28</samp>&rsquo;</dt>
  1399. <dd><p>BT.470 BG
  1400. </p></dd>
  1401. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1402. <dd><p>SMPTE 170 M
  1403. </p></dd>
  1404. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1405. <dd><p>SMPTE 240 M
  1406. </p></dd>
  1407. <dt>&lsquo;<samp>linear</samp>&rsquo;</dt>
  1408. <dd><p>Linear
  1409. </p></dd>
  1410. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  1411. <dt>&lsquo;<samp>log100</samp>&rsquo;</dt>
  1412. <dd><p>Log
  1413. </p></dd>
  1414. <dt>&lsquo;<samp>log_sqrt</samp>&rsquo;</dt>
  1415. <dt>&lsquo;<samp>log316</samp>&rsquo;</dt>
  1416. <dd><p>Log square root
  1417. </p></dd>
  1418. <dt>&lsquo;<samp>iec61966_2_4</samp>&rsquo;</dt>
  1419. <dt>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</dt>
  1420. <dd><p>IEC 61966-2-4
  1421. </p></dd>
  1422. <dt>&lsquo;<samp>bt1361</samp>&rsquo;</dt>
  1423. <dt>&lsquo;<samp>bt1361e</samp>&rsquo;</dt>
  1424. <dd><p>BT.1361
  1425. </p></dd>
  1426. <dt>&lsquo;<samp>iec61966_2_1</samp>&rsquo;</dt>
  1427. <dt>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</dt>
  1428. <dd><p>IEC 61966-2-1
  1429. </p></dd>
  1430. <dt>&lsquo;<samp>bt2020_10</samp>&rsquo;</dt>
  1431. <dt>&lsquo;<samp>bt2020_10bit</samp>&rsquo;</dt>
  1432. <dd><p>BT.2020 - 10 bit
  1433. </p></dd>
  1434. <dt>&lsquo;<samp>bt2020_12</samp>&rsquo;</dt>
  1435. <dt>&lsquo;<samp>bt2020_12bit</samp>&rsquo;</dt>
  1436. <dd><p>BT.2020 - 12 bit
  1437. </p></dd>
  1438. <dt>&lsquo;<samp>smpte2084</samp>&rsquo;</dt>
  1439. <dd><p>SMPTE ST 2084
  1440. </p></dd>
  1441. <dt>&lsquo;<samp>smpte428</samp>&rsquo;</dt>
  1442. <dt>&lsquo;<samp>smpte428_1</samp>&rsquo;</dt>
  1443. <dd><p>SMPTE ST 428-1
  1444. </p></dd>
  1445. <dt>&lsquo;<samp>arib-std-b67</samp>&rsquo;</dt>
  1446. <dd><p>ARIB STD-B67
  1447. </p></dd>
  1448. </dl>
  1449. </dd>
  1450. <dt><samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1451. <dd><p>Possible values:
  1452. </p><dl compact="compact">
  1453. <dt>&lsquo;<samp>rgb</samp>&rsquo;</dt>
  1454. <dd><p>RGB
  1455. </p></dd>
  1456. <dt>&lsquo;<samp>bt709</samp>&rsquo;</dt>
  1457. <dd><p>BT.709
  1458. </p></dd>
  1459. <dt>&lsquo;<samp>fcc</samp>&rsquo;</dt>
  1460. <dd><p>FCC
  1461. </p></dd>
  1462. <dt>&lsquo;<samp>bt470bg</samp>&rsquo;</dt>
  1463. <dd><p>BT.470 BG
  1464. </p></dd>
  1465. <dt>&lsquo;<samp>smpte170m</samp>&rsquo;</dt>
  1466. <dd><p>SMPTE 170 M
  1467. </p></dd>
  1468. <dt>&lsquo;<samp>smpte240m</samp>&rsquo;</dt>
  1469. <dd><p>SMPTE 240 M
  1470. </p></dd>
  1471. <dt>&lsquo;<samp>ycocg</samp>&rsquo;</dt>
  1472. <dd><p>YCOCG
  1473. </p></dd>
  1474. <dt>&lsquo;<samp>bt2020nc</samp>&rsquo;</dt>
  1475. <dt>&lsquo;<samp>bt2020_ncl</samp>&rsquo;</dt>
  1476. <dd><p>BT.2020 NCL
  1477. </p></dd>
  1478. <dt>&lsquo;<samp>bt2020c</samp>&rsquo;</dt>
  1479. <dt>&lsquo;<samp>bt2020_cl</samp>&rsquo;</dt>
  1480. <dd><p>BT.2020 CL
  1481. </p></dd>
  1482. <dt>&lsquo;<samp>smpte2085</samp>&rsquo;</dt>
  1483. <dd><p>SMPTE 2085
  1484. </p></dd>
  1485. <dt>&lsquo;<samp>chroma-derived-nc</samp>&rsquo;</dt>
  1486. <dd><p>Chroma-derived NCL
  1487. </p></dd>
  1488. <dt>&lsquo;<samp>chroma-derived-c</samp>&rsquo;</dt>
  1489. <dd><p>Chroma-derived CL
  1490. </p></dd>
  1491. <dt>&lsquo;<samp>ictcp</samp>&rsquo;</dt>
  1492. <dd><p>ICtCp
  1493. </p></dd>
  1494. </dl>
  1495. </dd>
  1496. <dt><samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1497. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1498. color_range the input has.
  1499. Possible values:
  1500. </p><dl compact="compact">
  1501. <dt>&lsquo;<samp>tv</samp>&rsquo;</dt>
  1502. <dt>&lsquo;<samp>mpeg</samp>&rsquo;</dt>
  1503. <dd><p>MPEG (219*2^(n-8))
  1504. </p></dd>
  1505. <dt>&lsquo;<samp>pc</samp>&rsquo;</dt>
  1506. <dt>&lsquo;<samp>jpeg</samp>&rsquo;</dt>
  1507. <dd><p>JPEG (2^n-1)
  1508. </p></dd>
  1509. </dl>
  1510. </dd>
  1511. <dt><samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1512. <dd><p>Possible values:
  1513. </p><dl compact="compact">
  1514. <dt>&lsquo;<samp>left</samp>&rsquo;</dt>
  1515. <dt>&lsquo;<samp>center</samp>&rsquo;</dt>
  1516. <dt>&lsquo;<samp>topleft</samp>&rsquo;</dt>
  1517. <dt>&lsquo;<samp>top</samp>&rsquo;</dt>
  1518. <dt>&lsquo;<samp>bottomleft</samp>&rsquo;</dt>
  1519. <dt>&lsquo;<samp>bottom</samp>&rsquo;</dt>
  1520. </dl>
  1521. </dd>
  1522. <dt><samp>log_level_offset <var>integer</var></samp></dt>
  1523. <dd><p>Set the log level offset.
  1524. </p>
  1525. </dd>
  1526. <dt><samp>slices <var>integer</var> (<em>encoding,video</em>)</samp></dt>
  1527. <dd><p>Number of slices, used in parallelized encoding.
  1528. </p>
  1529. </dd>
  1530. <dt><samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1531. <dd><p>Select which multithreading methods to use.
  1532. </p>
  1533. <p>Use of &lsquo;<samp>frame</samp>&rsquo; will increase decoding delay by one frame per
  1534. thread, so clients which cannot provide future frames should not use
  1535. it.
  1536. </p>
  1537. <p>Possible values:
  1538. </p><dl compact="compact">
  1539. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  1540. <dd><p>Decode more than one part of a single frame at once.
  1541. </p>
  1542. <p>Multithreading using slices works only when the video was encoded with
  1543. slices.
  1544. </p>
  1545. </dd>
  1546. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  1547. <dd><p>Decode more than one frame at once.
  1548. </p></dd>
  1549. </dl>
  1550. <p>Default value is &lsquo;<samp>slice+frame</samp>&rsquo;.
  1551. </p>
  1552. </dd>
  1553. <dt><samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp></dt>
  1554. <dd><p>Set audio service type.
  1555. </p>
  1556. <p>Possible values:
  1557. </p><dl compact="compact">
  1558. <dt>&lsquo;<samp>ma</samp>&rsquo;</dt>
  1559. <dd><p>Main Audio Service
  1560. </p></dd>
  1561. <dt>&lsquo;<samp>ef</samp>&rsquo;</dt>
  1562. <dd><p>Effects
  1563. </p></dd>
  1564. <dt>&lsquo;<samp>vi</samp>&rsquo;</dt>
  1565. <dd><p>Visually Impaired
  1566. </p></dd>
  1567. <dt>&lsquo;<samp>hi</samp>&rsquo;</dt>
  1568. <dd><p>Hearing Impaired
  1569. </p></dd>
  1570. <dt>&lsquo;<samp>di</samp>&rsquo;</dt>
  1571. <dd><p>Dialogue
  1572. </p></dd>
  1573. <dt>&lsquo;<samp>co</samp>&rsquo;</dt>
  1574. <dd><p>Commentary
  1575. </p></dd>
  1576. <dt>&lsquo;<samp>em</samp>&rsquo;</dt>
  1577. <dd><p>Emergency
  1578. </p></dd>
  1579. <dt>&lsquo;<samp>vo</samp>&rsquo;</dt>
  1580. <dd><p>Voice Over
  1581. </p></dd>
  1582. <dt>&lsquo;<samp>ka</samp>&rsquo;</dt>
  1583. <dd><p>Karaoke
  1584. </p></dd>
  1585. </dl>
  1586. </dd>
  1587. <dt><samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp></dt>
  1588. <dd><p>Set sample format audio decoders should prefer. Default value is
  1589. <code>none</code>.
  1590. </p>
  1591. </dd>
  1592. <dt><samp>pkt_timebase <var>rational number</var></samp></dt>
  1593. <dt><samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp></dt>
  1594. <dd><p>Set the input subtitles character encoding.
  1595. </p>
  1596. </dd>
  1597. <dt><samp>field_order <var>field_order</var> (<em>video</em>)</samp></dt>
  1598. <dd><p>Set/override the field order of the video.
  1599. Possible values:
  1600. </p><dl compact="compact">
  1601. <dt>&lsquo;<samp>progressive</samp>&rsquo;</dt>
  1602. <dd><p>Progressive video
  1603. </p></dd>
  1604. <dt>&lsquo;<samp>tt</samp>&rsquo;</dt>
  1605. <dd><p>Interlaced video, top field coded and displayed first
  1606. </p></dd>
  1607. <dt>&lsquo;<samp>bb</samp>&rsquo;</dt>
  1608. <dd><p>Interlaced video, bottom field coded and displayed first
  1609. </p></dd>
  1610. <dt>&lsquo;<samp>tb</samp>&rsquo;</dt>
  1611. <dd><p>Interlaced video, top coded first, bottom displayed first
  1612. </p></dd>
  1613. <dt>&lsquo;<samp>bt</samp>&rsquo;</dt>
  1614. <dd><p>Interlaced video, bottom coded first, top displayed first
  1615. </p></dd>
  1616. </dl>
  1617. </dd>
  1618. <dt><samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp></dt>
  1619. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1620. &lsquo;<samp>gray</samp>&rsquo; flag in the <samp>flags</samp> option which skips chroma information
  1621. instead of alpha. Default is 0.
  1622. </p>
  1623. </dd>
  1624. <dt><samp>codec_whitelist <var>list</var> (<em>input</em>)</samp></dt>
  1625. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1626. </p>
  1627. </dd>
  1628. <dt><samp>dump_separator <var>string</var> (<em>input</em>)</samp></dt>
  1629. <dd><p>Separator used to separate the fields printed on the command line about the
  1630. Stream parameters.
  1631. For example, to separate the fields with newlines and indentation:
  1632. </p><div class="example">
  1633. <pre class="example">ffprobe -dump_separator &quot;
  1634. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1635. </pre></div>
  1636. </dd>
  1637. <dt><samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp></dt>
  1638. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1639. memory failures due to large images.
  1640. </p>
  1641. </dd>
  1642. <dt><samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp></dt>
  1643. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1644. alignment for the left and top parameters. If the alignment is not met the
  1645. cropping will be partially applied to maintain alignment.
  1646. Default is 1 (enabled).
  1647. Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1648. CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1649. decoders will not apply left/top Cropping.
  1650. </p>
  1651. </dd>
  1652. </dl>
  1653. <a name="Decoders"></a>
  1654. <h2 class="chapter">3 Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Decoders" aria-hidden="true">TOC</a></span></h2>
  1655. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1656. multimedia streams.
  1657. </p>
  1658. <p>When you configure your FFmpeg build, all the supported native decoders
  1659. are enabled by default. Decoders requiring an external library must be enabled
  1660. manually via the corresponding <code>--enable-lib</code> option. You can list all
  1661. available decoders using the configure option <code>--list-decoders</code>.
  1662. </p>
  1663. <p>You can disable all the decoders with the configure option
  1664. <code>--disable-decoders</code> and selectively enable / disable single decoders
  1665. with the options <code>--enable-decoder=<var>DECODER</var></code> /
  1666. <code>--disable-decoder=<var>DECODER</var></code>.
  1667. </p>
  1668. <p>The option <code>-decoders</code> of the ff* tools will display the list of
  1669. enabled decoders.
  1670. </p>
  1671. <a name="Video-Decoders"></a>
  1672. <h2 class="chapter">4 Video Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Decoders" aria-hidden="true">TOC</a></span></h2>
  1673. <p>A description of some of the currently available video decoders
  1674. follows.
  1675. </p>
  1676. <a name="av1"></a>
  1677. <h3 class="section">4.1 av1<span class="pull-right"><a class="anchor hidden-xs" href="#av1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-av1" aria-hidden="true">TOC</a></span></h3>
  1678. <p>AOMedia Video 1 (AV1) decoder.
  1679. </p>
  1680. <a name="Options"></a>
  1681. <h4 class="subsection">4.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options" aria-hidden="true">TOC</a></span></h4>
  1682. <dl compact="compact">
  1683. <dt><samp>operating_point</samp></dt>
  1684. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
  1685. </p>
  1686. </dd>
  1687. </dl>
  1688. <a name="rawvideo"></a>
  1689. <h3 class="section">4.2 rawvideo<span class="pull-right"><a class="anchor hidden-xs" href="#rawvideo" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rawvideo" aria-hidden="true">TOC</a></span></h3>
  1690. <p>Raw video decoder.
  1691. </p>
  1692. <p>This decoder decodes rawvideo streams.
  1693. </p>
  1694. <a name="Options-1"></a>
  1695. <h4 class="subsection">4.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-1" aria-hidden="true">TOC</a></span></h4>
  1696. <dl compact="compact">
  1697. <dt><samp>top <var>top_field_first</var></samp></dt>
  1698. <dd><p>Specify the assumed field type of the input video.
  1699. </p><dl compact="compact">
  1700. <dt><samp>-1</samp></dt>
  1701. <dd><p>the video is assumed to be progressive (default)
  1702. </p></dd>
  1703. <dt><samp>0</samp></dt>
  1704. <dd><p>bottom-field-first is assumed
  1705. </p></dd>
  1706. <dt><samp>1</samp></dt>
  1707. <dd><p>top-field-first is assumed
  1708. </p></dd>
  1709. </dl>
  1710. </dd>
  1711. </dl>
  1712. <a name="libdav1d"></a>
  1713. <h3 class="section">4.3 libdav1d<span class="pull-right"><a class="anchor hidden-xs" href="#libdav1d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdav1d" aria-hidden="true">TOC</a></span></h3>
  1714. <p>dav1d AV1 decoder.
  1715. </p>
  1716. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1717. Requires the presence of the libdav1d headers and library during configuration.
  1718. You need to explicitly configure the build with <code>--enable-libdav1d</code>.
  1719. </p>
  1720. <a name="Options-2"></a>
  1721. <h4 class="subsection">4.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-2" aria-hidden="true">TOC</a></span></h4>
  1722. <p>The following options are supported by the libdav1d wrapper.
  1723. </p>
  1724. <dl compact="compact">
  1725. <dt><samp>framethreads</samp></dt>
  1726. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1727. </p>
  1728. </dd>
  1729. <dt><samp>tilethreads</samp></dt>
  1730. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  1731. </p>
  1732. </dd>
  1733. <dt><samp>filmgrain</samp></dt>
  1734. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1735. internal default of the library.
  1736. </p>
  1737. </dd>
  1738. <dt><samp>oppoint</samp></dt>
  1739. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  1740. internal default of the library.
  1741. </p>
  1742. </dd>
  1743. <dt><samp>alllayers</samp></dt>
  1744. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  1745. </p>
  1746. </dd>
  1747. </dl>
  1748. <a name="libdavs2"></a>
  1749. <h3 class="section">4.4 libdavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libdavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdavs2" aria-hidden="true">TOC</a></span></h3>
  1750. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  1751. </p>
  1752. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  1753. </p>
  1754. <a name="libuavs3d"></a>
  1755. <h3 class="section">4.5 libuavs3d<span class="pull-right"><a class="anchor hidden-xs" href="#libuavs3d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libuavs3d" aria-hidden="true">TOC</a></span></h3>
  1756. <p>AVS3-P2/IEEE1857.10 video decoder.
  1757. </p>
  1758. <p>libuavs3d allows libavcodec to decode AVS3 streams.
  1759. Requires the presence of the libuavs3d headers and library during configuration.
  1760. You need to explicitly configure the build with <code>--enable-libuavs3d</code>.
  1761. </p>
  1762. <a name="Options-3"></a>
  1763. <h4 class="subsection">4.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-3" aria-hidden="true">TOC</a></span></h4>
  1764. <p>The following option is supported by the libuavs3d wrapper.
  1765. </p>
  1766. <dl compact="compact">
  1767. <dt><samp>frame_threads</samp></dt>
  1768. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1769. </p>
  1770. </dd>
  1771. </dl>
  1772. <a name="Audio-Decoders"></a>
  1773. <h2 class="chapter">5 Audio Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Decoders" aria-hidden="true">TOC</a></span></h2>
  1774. <p>A description of some of the currently available audio decoders
  1775. follows.
  1776. </p>
  1777. <a name="ac3"></a>
  1778. <h3 class="section">5.1 ac3<span class="pull-right"><a class="anchor hidden-xs" href="#ac3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3" aria-hidden="true">TOC</a></span></h3>
  1779. <p>AC-3 audio decoder.
  1780. </p>
  1781. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1782. the undocumented RealAudio 3 (a.k.a. dnet).
  1783. </p>
  1784. <a name="AC_002d3-Decoder-Options"></a>
  1785. <h4 class="subsection">5.1.1 AC-3 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
  1786. <dl compact="compact">
  1787. <dt><samp>-drc_scale <var>value</var></samp></dt>
  1788. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1789. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  1790. There are 3 notable scale factor ranges:
  1791. </p><dl compact="compact">
  1792. <dt><samp>drc_scale == 0</samp></dt>
  1793. <dd><p>DRC disabled. Produces full range audio.
  1794. </p></dd>
  1795. <dt><samp>0 &lt; drc_scale &lt;= 1</samp></dt>
  1796. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1797. Audio reproduction is between full range and full compression.
  1798. </p></dd>
  1799. <dt><samp>drc_scale &gt; 1</samp></dt>
  1800. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1801. Loud sounds are fully compressed. Soft sounds are enhanced.
  1802. </p></dd>
  1803. </dl>
  1804. </dd>
  1805. </dl>
  1806. <a name="flac-1"></a>
  1807. <h3 class="section">5.2 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-1" aria-hidden="true">TOC</a></span></h3>
  1808. <p>FLAC audio decoder.
  1809. </p>
  1810. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1811. </p>
  1812. <a name="FLAC-Decoder-options"></a>
  1813. <h4 class="subsection">5.2.1 FLAC Decoder options<span class="pull-right"><a class="anchor hidden-xs" href="#FLAC-Decoder-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-FLAC-Decoder-options" aria-hidden="true">TOC</a></span></h4>
  1814. <dl compact="compact">
  1815. <dt><samp>-use_buggy_lpc</samp></dt>
  1816. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1817. (like the default value). This option makes it possible to decode such streams
  1818. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1819. </p>
  1820. </dd>
  1821. </dl>
  1822. <a name="ffwavesynth"></a>
  1823. <h3 class="section">5.3 ffwavesynth<span class="pull-right"><a class="anchor hidden-xs" href="#ffwavesynth" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ffwavesynth" aria-hidden="true">TOC</a></span></h3>
  1824. <p>Internal wave synthesizer.
  1825. </p>
  1826. <p>This decoder generates wave patterns according to predefined sequences. Its
  1827. use is purely internal and the format of the data it accepts is not publicly
  1828. documented.
  1829. </p>
  1830. <a name="libcelt"></a>
  1831. <h3 class="section">5.4 libcelt<span class="pull-right"><a class="anchor hidden-xs" href="#libcelt" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libcelt" aria-hidden="true">TOC</a></span></h3>
  1832. <p>libcelt decoder wrapper.
  1833. </p>
  1834. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1835. Requires the presence of the libcelt headers and library during configuration.
  1836. You need to explicitly configure the build with <code>--enable-libcelt</code>.
  1837. </p>
  1838. <a name="libgsm"></a>
  1839. <h3 class="section">5.5 libgsm<span class="pull-right"><a class="anchor hidden-xs" href="#libgsm" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libgsm" aria-hidden="true">TOC</a></span></h3>
  1840. <p>libgsm decoder wrapper.
  1841. </p>
  1842. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1843. the presence of the libgsm headers and library during configuration. You need
  1844. to explicitly configure the build with <code>--enable-libgsm</code>.
  1845. </p>
  1846. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1847. </p>
  1848. <a name="libilbc"></a>
  1849. <h3 class="section">5.6 libilbc<span class="pull-right"><a class="anchor hidden-xs" href="#libilbc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libilbc" aria-hidden="true">TOC</a></span></h3>
  1850. <p>libilbc decoder wrapper.
  1851. </p>
  1852. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1853. audio codec. Requires the presence of the libilbc headers and library during
  1854. configuration. You need to explicitly configure the build with
  1855. <code>--enable-libilbc</code>.
  1856. </p>
  1857. <a name="Options-4"></a>
  1858. <h4 class="subsection">5.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-4" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-4" aria-hidden="true">TOC</a></span></h4>
  1859. <p>The following option is supported by the libilbc wrapper.
  1860. </p>
  1861. <dl compact="compact">
  1862. <dt><samp>enhance</samp></dt>
  1863. <dd>
  1864. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1865. value is 0 (disabled).
  1866. </p>
  1867. </dd>
  1868. </dl>
  1869. <a name="libopencore_002damrnb"></a>
  1870. <h3 class="section">5.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb" aria-hidden="true">TOC</a></span></h3>
  1871. <p>libopencore-amrnb decoder wrapper.
  1872. </p>
  1873. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1874. Narrowband audio codec. Using it requires the presence of the
  1875. libopencore-amrnb headers and library during configuration. You need to
  1876. explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
  1877. </p>
  1878. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1879. without this library.
  1880. </p>
  1881. <a name="libopencore_002damrwb"></a>
  1882. <h3 class="section">5.8 libopencore-amrwb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrwb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrwb" aria-hidden="true">TOC</a></span></h3>
  1883. <p>libopencore-amrwb decoder wrapper.
  1884. </p>
  1885. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1886. Wideband audio codec. Using it requires the presence of the
  1887. libopencore-amrwb headers and library during configuration. You need to
  1888. explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
  1889. </p>
  1890. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1891. without this library.
  1892. </p>
  1893. <a name="libopus"></a>
  1894. <h3 class="section">5.9 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus" aria-hidden="true">TOC</a></span></h3>
  1895. <p>libopus decoder wrapper.
  1896. </p>
  1897. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1898. Requires the presence of the libopus headers and library during
  1899. configuration. You need to explicitly configure the build with
  1900. <code>--enable-libopus</code>.
  1901. </p>
  1902. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  1903. without this library.
  1904. </p>
  1905. <a name="Subtitles-Decoders"></a>
  1906. <h2 class="chapter">6 Subtitles Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Decoders" aria-hidden="true">TOC</a></span></h2>
  1907. <a name="libaribb24"></a>
  1908. <h3 class="section">6.1 libaribb24<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24" aria-hidden="true">TOC</a></span></h3>
  1909. <p>ARIB STD-B24 caption decoder.
  1910. </p>
  1911. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  1912. </p>
  1913. <a name="libaribb24-Decoder-Options"></a>
  1914. <h4 class="subsection">6.1.1 libaribb24 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
  1915. <dl compact="compact">
  1916. <dt><samp>-aribb24-base-path <var>path</var></samp></dt>
  1917. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  1918. configuration files (for custom unicode conversions), and for dumping of
  1919. non-text symbols as images under that location.
  1920. </p>
  1921. <p>Unset by default.
  1922. </p>
  1923. </dd>
  1924. <dt><samp>-aribb24-skip-ruby-text <var>boolean</var></samp></dt>
  1925. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  1926. text.
  1927. </p>
  1928. <p>Enabled by default.
  1929. </p>
  1930. </dd>
  1931. </dl>
  1932. <a name="dvbsub"></a>
  1933. <h3 class="section">6.2 dvbsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvbsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvbsub" aria-hidden="true">TOC</a></span></h3>
  1934. <a name="Options-5"></a>
  1935. <h4 class="subsection">6.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-5" aria-hidden="true">TOC</a></span></h4>
  1936. <dl compact="compact">
  1937. <dt><samp>compute_clut</samp></dt>
  1938. <dd><dl compact="compact">
  1939. <dt><samp>-1</samp></dt>
  1940. <dd><p>Compute clut if no matching CLUT is in the stream.
  1941. </p></dd>
  1942. <dt><samp>0</samp></dt>
  1943. <dd><p>Never compute CLUT
  1944. </p></dd>
  1945. <dt><samp>1</samp></dt>
  1946. <dd><p>Always compute CLUT and override the one provided in the stream.
  1947. </p></dd>
  1948. </dl>
  1949. </dd>
  1950. <dt><samp>dvb_substream</samp></dt>
  1951. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  1952. </p>
  1953. </dd>
  1954. </dl>
  1955. <a name="dvdsub"></a>
  1956. <h3 class="section">6.3 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub" aria-hidden="true">TOC</a></span></h3>
  1957. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  1958. also be found in VobSub file pairs and in some Matroska files.
  1959. </p>
  1960. <a name="Options-6"></a>
  1961. <h4 class="subsection">6.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-6" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-6" aria-hidden="true">TOC</a></span></h4>
  1962. <dl compact="compact">
  1963. <dt><samp>palette</samp></dt>
  1964. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  1965. palette is normally specified in the index file; in Matroska, the palette is
  1966. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  1967. palette is stored in the IFO file, and therefore not available when reading
  1968. from dumped VOB files.
  1969. </p>
  1970. <p>The format for this option is a string containing 16 24-bits hexadecimal
  1971. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  1972. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  1973. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  1974. </p>
  1975. </dd>
  1976. <dt><samp>ifo_palette</samp></dt>
  1977. <dd><p>Specify the IFO file from which the global palette is obtained.
  1978. (experimental)
  1979. </p>
  1980. </dd>
  1981. <dt><samp>forced_subs_only</samp></dt>
  1982. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  1983. and non-forced subtitles in the same track. Setting this flag to <code>1</code>
  1984. will only keep the forced subtitles. Default value is <code>0</code>.
  1985. </p></dd>
  1986. </dl>
  1987. <a name="libzvbi_002dteletext"></a>
  1988. <h3 class="section">6.4 libzvbi-teletext<span class="pull-right"><a class="anchor hidden-xs" href="#libzvbi_002dteletext" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libzvbi_002dteletext" aria-hidden="true">TOC</a></span></h3>
  1989. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  1990. subtitles. Requires the presence of the libzvbi headers and library during
  1991. configuration. You need to explicitly configure the build with
  1992. <code>--enable-libzvbi</code>.
  1993. </p>
  1994. <a name="Options-7"></a>
  1995. <h4 class="subsection">6.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-7" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-7" aria-hidden="true">TOC</a></span></h4>
  1996. <dl compact="compact">
  1997. <dt><samp>txt_page</samp></dt>
  1998. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  1999. list are dropped. You may use the special <code>*</code> string to match all pages,
  2000. or <code>subtitle</code> to match all subtitle pages.
  2001. Default value is *.
  2002. </p></dd>
  2003. <dt><samp>txt_default_region</samp></dt>
  2004. <dd><p>Set default character set used for decoding, a value between 0 and 87 (see
  2005. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  2006. override the libzvbi default. This option is needed for some legacy level 1.0
  2007. transmissions which cannot signal the proper charset.
  2008. </p></dd>
  2009. <dt><samp>txt_chop_top</samp></dt>
  2010. <dd><p>Discards the top teletext line. Default value is 1.
  2011. </p></dd>
  2012. <dt><samp>txt_format</samp></dt>
  2013. <dd><p>Specifies the format of the decoded subtitles.
  2014. </p><dl compact="compact">
  2015. <dt><samp>bitmap</samp></dt>
  2016. <dd><p>The default format, you should use this for teletext pages, because certain
  2017. graphics and colors cannot be expressed in simple text or even ASS.
  2018. </p></dd>
  2019. <dt><samp>text</samp></dt>
  2020. <dd><p>Simple text based output without formatting.
  2021. </p></dd>
  2022. <dt><samp>ass</samp></dt>
  2023. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  2024. different styles, subtitle pages are stripped down to text, but an effort is
  2025. made to keep the text alignment and the formatting.
  2026. </p></dd>
  2027. </dl>
  2028. </dd>
  2029. <dt><samp>txt_left</samp></dt>
  2030. <dd><p>X offset of generated bitmaps, default is 0.
  2031. </p></dd>
  2032. <dt><samp>txt_top</samp></dt>
  2033. <dd><p>Y offset of generated bitmaps, default is 0.
  2034. </p></dd>
  2035. <dt><samp>txt_chop_spaces</samp></dt>
  2036. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  2037. text. This option is useful for teletext based subtitles where empty spaces may
  2038. be present at the start or at the end of the lines or empty lines may be
  2039. present between the subtitle lines because of double-sized teletext characters.
  2040. Default value is 1.
  2041. </p></dd>
  2042. <dt><samp>txt_duration</samp></dt>
  2043. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2044. milliseconds. Default value is -1 which means infinity or until the next
  2045. subtitle event comes.
  2046. </p></dd>
  2047. <dt><samp>txt_transparent</samp></dt>
  2048. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2049. is 0 which means an opaque background.
  2050. </p></dd>
  2051. <dt><samp>txt_opacity</samp></dt>
  2052. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2053. <samp>txt_transparent</samp> is not set, it only affects characters between a start
  2054. box and an end box, typically subtitles. Default value is 0 if
  2055. <samp>txt_transparent</samp> is set, 255 otherwise.
  2056. </p>
  2057. </dd>
  2058. </dl>
  2059. <a name="Encoders"></a>
  2060. <h2 class="chapter">7 Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Encoders" aria-hidden="true">TOC</a></span></h2>
  2061. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2062. multimedia streams.
  2063. </p>
  2064. <p>When you configure your FFmpeg build, all the supported native encoders
  2065. are enabled by default. Encoders requiring an external library must be enabled
  2066. manually via the corresponding <code>--enable-lib</code> option. You can list all
  2067. available encoders using the configure option <code>--list-encoders</code>.
  2068. </p>
  2069. <p>You can disable all the encoders with the configure option
  2070. <code>--disable-encoders</code> and selectively enable / disable single encoders
  2071. with the options <code>--enable-encoder=<var>ENCODER</var></code> /
  2072. <code>--disable-encoder=<var>ENCODER</var></code>.
  2073. </p>
  2074. <p>The option <code>-encoders</code> of the ff* tools will display the list of
  2075. enabled encoders.
  2076. </p>
  2077. <a name="Audio-Encoders"></a>
  2078. <h2 class="chapter">8 Audio Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Encoders" aria-hidden="true">TOC</a></span></h2>
  2079. <p>A description of some of the currently available audio encoders
  2080. follows.
  2081. </p>
  2082. <span id="aacenc"></span><a name="aac"></a>
  2083. <h3 class="section">8.1 aac<span class="pull-right"><a class="anchor hidden-xs" href="#aac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-aac" aria-hidden="true">TOC</a></span></h3>
  2084. <p>Advanced Audio Coding (AAC) encoder.
  2085. </p>
  2086. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
  2087. </p>
  2088. <a name="Options-8"></a>
  2089. <h4 class="subsection">8.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-8" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-8" aria-hidden="true">TOC</a></span></h4>
  2090. <dl compact="compact">
  2091. <dt><samp>b</samp></dt>
  2092. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2093. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2094. </p>
  2095. </dd>
  2096. <dt><samp>q</samp></dt>
  2097. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2098. the <code>ffmpeg</code> command-line tool. For library interface users, use
  2099. <samp>global_quality</samp>.
  2100. </p>
  2101. </dd>
  2102. <dt><samp>cutoff</samp></dt>
  2103. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2104. adjust the cutoff to improve clarity on low bitrates.
  2105. </p>
  2106. </dd>
  2107. <dt><samp>aac_coder</samp></dt>
  2108. <dd><p>Set AAC encoder coding method. Possible values:
  2109. </p>
  2110. <dl compact="compact">
  2111. <dt>&lsquo;<samp>twoloop</samp>&rsquo;</dt>
  2112. <dd><p>Two loop searching (TLS) method.
  2113. </p>
  2114. <p>This method first sets quantizers depending on band thresholds and then tries
  2115. to find an optimal combination by adding or subtracting a specific value from
  2116. all quantizers and adjusting some individual quantizer a little. Will tune
  2117. itself based on whether <samp>aac_is</samp>, <samp>aac_ms</samp> and <samp>aac_pns</samp>
  2118. are enabled.
  2119. </p>
  2120. </dd>
  2121. <dt>&lsquo;<samp>anmr</samp>&rsquo;</dt>
  2122. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2123. </p>
  2124. <p>This is an experimental coder which currently produces a lower quality, is more
  2125. unstable and is slower than the default twoloop coder but has potential.
  2126. Currently has no support for the <samp>aac_is</samp> or <samp>aac_pns</samp> options.
  2127. Not currently recommended.
  2128. </p>
  2129. </dd>
  2130. <dt>&lsquo;<samp>fast</samp>&rsquo;</dt>
  2131. <dd><p>Constant quantizer method.
  2132. </p>
  2133. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2134. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2135. and much faster at higher bitrates.
  2136. This is the default choice for a coder
  2137. </p>
  2138. </dd>
  2139. </dl>
  2140. </dd>
  2141. <dt><samp>aac_ms</samp></dt>
  2142. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2143. M/S with bands which will benefit from such coding. Can be forced for all bands
  2144. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2145. &quot;disable&quot;.
  2146. </p>
  2147. </dd>
  2148. <dt><samp>aac_is</samp></dt>
  2149. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2150. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2151. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2152. </p>
  2153. </dd>
  2154. <dt><samp>aac_pns</samp></dt>
  2155. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2156. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2157. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2158. </p>
  2159. </dd>
  2160. <dt><samp>aac_tns</samp></dt>
  2161. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2162. bands to hide quantization noise during the encoding process and is reverted
  2163. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2164. this also reduces the entropy in the high bands and allows for more bits to
  2165. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2166. debugging by setting the option to &quot;disable&quot;.
  2167. </p>
  2168. </dd>
  2169. <dt><samp>aac_ltp</samp></dt>
  2170. <dd><p>Enables the use of the long term prediction extension which increases coding
  2171. efficiency in very low bandwidth situations such as encoding of voice or
  2172. solo piano music by extending constant harmonic peaks in bands throughout
  2173. frames. This option is implied by profile:a aac_low and is incompatible with
  2174. aac_pred. Use in conjunction with <samp>-ar</samp> to decrease the samplerate.
  2175. </p>
  2176. </dd>
  2177. <dt><samp>aac_pred</samp></dt>
  2178. <dd><p>Enables the use of a more traditional style of prediction where the spectral
  2179. coefficients transmitted are replaced by the difference of the current
  2180. coefficients minus the previous &quot;predicted&quot; coefficients. In theory and sometimes
  2181. in practice this can improve quality for low to mid bitrate audio.
  2182. This option implies the aac_main profile and is incompatible with aac_ltp.
  2183. </p>
  2184. </dd>
  2185. <dt><samp>profile</samp></dt>
  2186. <dd><p>Sets the encoding profile, possible values:
  2187. </p>
  2188. <dl compact="compact">
  2189. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  2190. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2191. decent quality.
  2192. </p>
  2193. </dd>
  2194. <dt>&lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</dt>
  2195. <dd><p>Equivalent to <code>-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2196. MPEG4 specifications.
  2197. </p>
  2198. </dd>
  2199. <dt>&lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
  2200. <dd><p>Long term prediction profile, is enabled by and will enable the <samp>aac_ltp</samp>
  2201. option. Introduced in MPEG4.
  2202. </p>
  2203. </dd>
  2204. <dt>&lsquo;<samp>aac_main</samp>&rsquo;</dt>
  2205. <dd><p>Main-type prediction profile, is enabled by and will enable the <samp>aac_pred</samp>
  2206. option. Introduced in MPEG2.
  2207. </p>
  2208. </dd>
  2209. </dl>
  2210. <p>If this option is unspecified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2211. </p></dd>
  2212. </dl>
  2213. <a name="ac3-and-ac3_005ffixed"></a>
  2214. <h3 class="section">8.2 ac3 and ac3_fixed<span class="pull-right"><a class="anchor hidden-xs" href="#ac3-and-ac3_005ffixed" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3-and-ac3_005ffixed" aria-hidden="true">TOC</a></span></h3>
  2215. <p>AC-3 audio encoders.
  2216. </p>
  2217. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  2218. the undocumented RealAudio 3 (a.k.a. dnet).
  2219. </p>
  2220. <p>The <var>ac3</var> encoder uses floating-point math, while the <var>ac3_fixed</var>
  2221. encoder only uses fixed-point integer math. This does not mean that one is
  2222. always faster, just that one or the other may be better suited to a
  2223. particular system. The <var>ac3_fixed</var> encoder is not the default codec for
  2224. any of the output formats, so it must be specified explicitly using the option
  2225. <code>-acodec ac3_fixed</code> in order to use it.
  2226. </p>
  2227. <a name="AC_002d3-Metadata"></a>
  2228. <h4 class="subsection">8.2.1 AC-3 Metadata<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Metadata" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Metadata" aria-hidden="true">TOC</a></span></h4>
  2229. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2230. but in most cases do not affect the audio encoding itself. Some of the options
  2231. do directly affect or influence the decoding and playback of the resulting
  2232. bitstream, while others are just for informational purposes. A few of the
  2233. options will add bits to the output stream that could otherwise be used for
  2234. audio data, and will thus affect the quality of the output. Those will be
  2235. indicated accordingly with a note in the option list below.
  2236. </p>
  2237. <p>These parameters are described in detail in several publicly-available
  2238. documents.
  2239. </p><ul>
  2240. <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>
  2241. </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>
  2242. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
  2243. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
  2244. </li></ul>
  2245. <a name="Metadata-Control-Options"></a>
  2246. <h4 class="subsubsection">8.2.1.1 Metadata Control Options<span class="pull-right"><a class="anchor hidden-xs" href="#Metadata-Control-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Metadata-Control-Options" aria-hidden="true">TOC</a></span></h4>
  2247. <dl compact="compact">
  2248. <dt><samp>-per_frame_metadata <var>boolean</var></samp></dt>
  2249. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2250. metadata for each frame.
  2251. </p><dl compact="compact">
  2252. <dt><samp>0</samp></dt>
  2253. <dd><p>The metadata values set at initialization will be used for every frame in the
  2254. stream. (default)
  2255. </p></dd>
  2256. <dt><samp>1</samp></dt>
  2257. <dd><p>Metadata values can be changed before encoding each frame.
  2258. </p></dd>
  2259. </dl>
  2260. </dd>
  2261. </dl>
  2262. <a name="Downmix-Levels"></a>
  2263. <h4 class="subsubsection">8.2.1.2 Downmix Levels<span class="pull-right"><a class="anchor hidden-xs" href="#Downmix-Levels" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Downmix-Levels" aria-hidden="true">TOC</a></span></h4>
  2264. <dl compact="compact">
  2265. <dt><samp>-center_mixlev <var>level</var></samp></dt>
  2266. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2267. channel when downmixing to stereo. This field will only be written to the
  2268. bitstream if a center channel is present. The value is specified as a scale
  2269. factor. There are 3 valid values:
  2270. </p><dl compact="compact">
  2271. <dt><samp>0.707</samp></dt>
  2272. <dd><p>Apply -3dB gain
  2273. </p></dd>
  2274. <dt><samp>0.595</samp></dt>
  2275. <dd><p>Apply -4.5dB gain (default)
  2276. </p></dd>
  2277. <dt><samp>0.500</samp></dt>
  2278. <dd><p>Apply -6dB gain
  2279. </p></dd>
  2280. </dl>
  2281. </dd>
  2282. <dt><samp>-surround_mixlev <var>level</var></samp></dt>
  2283. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2284. channel(s) when downmixing to stereo. This field will only be written to the
  2285. bitstream if one or more surround channels are present. The value is specified
  2286. as a scale factor. There are 3 valid values:
  2287. </p><dl compact="compact">
  2288. <dt><samp>0.707</samp></dt>
  2289. <dd><p>Apply -3dB gain
  2290. </p></dd>
  2291. <dt><samp>0.500</samp></dt>
  2292. <dd><p>Apply -6dB gain (default)
  2293. </p></dd>
  2294. <dt><samp>0.000</samp></dt>
  2295. <dd><p>Silence Surround Channel(s)
  2296. </p></dd>
  2297. </dl>
  2298. </dd>
  2299. </dl>
  2300. <a name="Audio-Production-Information"></a>
  2301. <h4 class="subsubsection">8.2.1.3 Audio Production Information<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Production-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Production-Information" aria-hidden="true">TOC</a></span></h4>
  2302. <p>Audio Production Information is optional information describing the mixing
  2303. environment. Either none or both of the fields are written to the bitstream.
  2304. </p>
  2305. <dl compact="compact">
  2306. <dt><samp>-mixing_level <var>number</var></samp></dt>
  2307. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2308. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2309. unknown or not indicated. The default value is -1, but that value cannot be
  2310. used if the Audio Production Information is written to the bitstream. Therefore,
  2311. if the <code>room_type</code> option is not the default value, the <code>mixing_level</code>
  2312. option must not be -1.
  2313. </p>
  2314. </dd>
  2315. <dt><samp>-room_type <var>type</var></samp></dt>
  2316. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2317. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2318. industry standard X-curve equalization; a small room has flat equalization.
  2319. This field will not be written to the bitstream if both the <code>mixing_level</code>
  2320. option and the <code>room_type</code> option have the default values.
  2321. </p><dl compact="compact">
  2322. <dt><samp>0</samp></dt>
  2323. <dt><samp>notindicated</samp></dt>
  2324. <dd><p>Not Indicated (default)
  2325. </p></dd>
  2326. <dt><samp>1</samp></dt>
  2327. <dt><samp>large</samp></dt>
  2328. <dd><p>Large Room
  2329. </p></dd>
  2330. <dt><samp>2</samp></dt>
  2331. <dt><samp>small</samp></dt>
  2332. <dd><p>Small Room
  2333. </p></dd>
  2334. </dl>
  2335. </dd>
  2336. </dl>
  2337. <a name="Other-Metadata-Options"></a>
  2338. <h4 class="subsubsection">8.2.1.4 Other Metadata Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-Metadata-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-Metadata-Options" aria-hidden="true">TOC</a></span></h4>
  2339. <dl compact="compact">
  2340. <dt><samp>-copyright <var>boolean</var></samp></dt>
  2341. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2342. </p><dl compact="compact">
  2343. <dt><samp>0</samp></dt>
  2344. <dt><samp>off</samp></dt>
  2345. <dd><p>No Copyright Exists (default)
  2346. </p></dd>
  2347. <dt><samp>1</samp></dt>
  2348. <dt><samp>on</samp></dt>
  2349. <dd><p>Copyright Exists
  2350. </p></dd>
  2351. </dl>
  2352. </dd>
  2353. <dt><samp>-dialnorm <var>value</var></samp></dt>
  2354. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2355. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2356. level shift during audio reproduction that sets the average volume of the
  2357. dialogue to a preset level. The goal is to match volume level between program
  2358. sources. A value of -31dB will result in no volume level change, relative to
  2359. the source volume, during audio reproduction. Valid values are whole numbers in
  2360. the range -31 to -1, with -31 being the default.
  2361. </p>
  2362. </dd>
  2363. <dt><samp>-dsur_mode <var>mode</var></samp></dt>
  2364. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2365. (Pro Logic). This field will only be written to the bitstream if the audio
  2366. stream is stereo. Using this option does <b>NOT</b> mean the encoder will actually
  2367. apply Dolby Surround processing.
  2368. </p><dl compact="compact">
  2369. <dt><samp>0</samp></dt>
  2370. <dt><samp>notindicated</samp></dt>
  2371. <dd><p>Not Indicated (default)
  2372. </p></dd>
  2373. <dt><samp>1</samp></dt>
  2374. <dt><samp>off</samp></dt>
  2375. <dd><p>Not Dolby Surround Encoded
  2376. </p></dd>
  2377. <dt><samp>2</samp></dt>
  2378. <dt><samp>on</samp></dt>
  2379. <dd><p>Dolby Surround Encoded
  2380. </p></dd>
  2381. </dl>
  2382. </dd>
  2383. <dt><samp>-original <var>boolean</var></samp></dt>
  2384. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2385. original source and not a copy.
  2386. </p><dl compact="compact">
  2387. <dt><samp>0</samp></dt>
  2388. <dt><samp>off</samp></dt>
  2389. <dd><p>Not Original Source
  2390. </p></dd>
  2391. <dt><samp>1</samp></dt>
  2392. <dt><samp>on</samp></dt>
  2393. <dd><p>Original Source (default)
  2394. </p></dd>
  2395. </dl>
  2396. </dd>
  2397. </dl>
  2398. <a name="Extended-Bitstream-Information"></a>
  2399. <h4 class="subsection">8.2.2 Extended Bitstream Information<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information" aria-hidden="true">TOC</a></span></h4>
  2400. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2401. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2402. If any one parameter in a group is specified, all values in that group will be
  2403. written to the bitstream. Default values are used for those that are written
  2404. but have not been specified. If the mixing levels are written, the decoder
  2405. will use these values instead of the ones specified in the <code>center_mixlev</code>
  2406. and <code>surround_mixlev</code> options if it supports the Alternate Bit Stream
  2407. Syntax.
  2408. </p>
  2409. <a name="Extended-Bitstream-Information-_002d-Part-1"></a>
  2410. <h4 class="subsubsection">8.2.2.1 Extended Bitstream Information - Part 1<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">TOC</a></span></h4>
  2411. <dl compact="compact">
  2412. <dt><samp>-dmix_mode <var>mode</var></samp></dt>
  2413. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2414. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2415. </p><dl compact="compact">
  2416. <dt><samp>0</samp></dt>
  2417. <dt><samp>notindicated</samp></dt>
  2418. <dd><p>Not Indicated (default)
  2419. </p></dd>
  2420. <dt><samp>1</samp></dt>
  2421. <dt><samp>ltrt</samp></dt>
  2422. <dd><p>Lt/Rt Downmix Preferred
  2423. </p></dd>
  2424. <dt><samp>2</samp></dt>
  2425. <dt><samp>loro</samp></dt>
  2426. <dd><p>Lo/Ro Downmix Preferred
  2427. </p></dd>
  2428. </dl>
  2429. </dd>
  2430. <dt><samp>-ltrt_cmixlev <var>level</var></samp></dt>
  2431. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2432. center channel when downmixing to stereo in Lt/Rt mode.
  2433. </p><dl compact="compact">
  2434. <dt><samp>1.414</samp></dt>
  2435. <dd><p>Apply +3dB gain
  2436. </p></dd>
  2437. <dt><samp>1.189</samp></dt>
  2438. <dd><p>Apply +1.5dB gain
  2439. </p></dd>
  2440. <dt><samp>1.000</samp></dt>
  2441. <dd><p>Apply 0dB gain
  2442. </p></dd>
  2443. <dt><samp>0.841</samp></dt>
  2444. <dd><p>Apply -1.5dB gain
  2445. </p></dd>
  2446. <dt><samp>0.707</samp></dt>
  2447. <dd><p>Apply -3.0dB gain
  2448. </p></dd>
  2449. <dt><samp>0.595</samp></dt>
  2450. <dd><p>Apply -4.5dB gain (default)
  2451. </p></dd>
  2452. <dt><samp>0.500</samp></dt>
  2453. <dd><p>Apply -6.0dB gain
  2454. </p></dd>
  2455. <dt><samp>0.000</samp></dt>
  2456. <dd><p>Silence Center Channel
  2457. </p></dd>
  2458. </dl>
  2459. </dd>
  2460. <dt><samp>-ltrt_surmixlev <var>level</var></samp></dt>
  2461. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2462. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2463. </p><dl compact="compact">
  2464. <dt><samp>0.841</samp></dt>
  2465. <dd><p>Apply -1.5dB gain
  2466. </p></dd>
  2467. <dt><samp>0.707</samp></dt>
  2468. <dd><p>Apply -3.0dB gain
  2469. </p></dd>
  2470. <dt><samp>0.595</samp></dt>
  2471. <dd><p>Apply -4.5dB gain
  2472. </p></dd>
  2473. <dt><samp>0.500</samp></dt>
  2474. <dd><p>Apply -6.0dB gain (default)
  2475. </p></dd>
  2476. <dt><samp>0.000</samp></dt>
  2477. <dd><p>Silence Surround Channel(s)
  2478. </p></dd>
  2479. </dl>
  2480. </dd>
  2481. <dt><samp>-loro_cmixlev <var>level</var></samp></dt>
  2482. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2483. center channel when downmixing to stereo in Lo/Ro mode.
  2484. </p><dl compact="compact">
  2485. <dt><samp>1.414</samp></dt>
  2486. <dd><p>Apply +3dB gain
  2487. </p></dd>
  2488. <dt><samp>1.189</samp></dt>
  2489. <dd><p>Apply +1.5dB gain
  2490. </p></dd>
  2491. <dt><samp>1.000</samp></dt>
  2492. <dd><p>Apply 0dB gain
  2493. </p></dd>
  2494. <dt><samp>0.841</samp></dt>
  2495. <dd><p>Apply -1.5dB gain
  2496. </p></dd>
  2497. <dt><samp>0.707</samp></dt>
  2498. <dd><p>Apply -3.0dB gain
  2499. </p></dd>
  2500. <dt><samp>0.595</samp></dt>
  2501. <dd><p>Apply -4.5dB gain (default)
  2502. </p></dd>
  2503. <dt><samp>0.500</samp></dt>
  2504. <dd><p>Apply -6.0dB gain
  2505. </p></dd>
  2506. <dt><samp>0.000</samp></dt>
  2507. <dd><p>Silence Center Channel
  2508. </p></dd>
  2509. </dl>
  2510. </dd>
  2511. <dt><samp>-loro_surmixlev <var>level</var></samp></dt>
  2512. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2513. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2514. </p><dl compact="compact">
  2515. <dt><samp>0.841</samp></dt>
  2516. <dd><p>Apply -1.5dB gain
  2517. </p></dd>
  2518. <dt><samp>0.707</samp></dt>
  2519. <dd><p>Apply -3.0dB gain
  2520. </p></dd>
  2521. <dt><samp>0.595</samp></dt>
  2522. <dd><p>Apply -4.5dB gain
  2523. </p></dd>
  2524. <dt><samp>0.500</samp></dt>
  2525. <dd><p>Apply -6.0dB gain (default)
  2526. </p></dd>
  2527. <dt><samp>0.000</samp></dt>
  2528. <dd><p>Silence Surround Channel(s)
  2529. </p></dd>
  2530. </dl>
  2531. </dd>
  2532. </dl>
  2533. <a name="Extended-Bitstream-Information-_002d-Part-2"></a>
  2534. <h4 class="subsubsection">8.2.2.2 Extended Bitstream Information - Part 2<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">TOC</a></span></h4>
  2535. <dl compact="compact">
  2536. <dt><samp>-dsurex_mode <var>mode</var></samp></dt>
  2537. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2538. (7.1 matrixed to 5.1). Using this option does <b>NOT</b> mean the encoder will actually
  2539. apply Dolby Surround EX processing.
  2540. </p><dl compact="compact">
  2541. <dt><samp>0</samp></dt>
  2542. <dt><samp>notindicated</samp></dt>
  2543. <dd><p>Not Indicated (default)
  2544. </p></dd>
  2545. <dt><samp>1</samp></dt>
  2546. <dt><samp>on</samp></dt>
  2547. <dd><p>Dolby Surround EX Off
  2548. </p></dd>
  2549. <dt><samp>2</samp></dt>
  2550. <dt><samp>off</samp></dt>
  2551. <dd><p>Dolby Surround EX On
  2552. </p></dd>
  2553. </dl>
  2554. </dd>
  2555. <dt><samp>-dheadphone_mode <var>mode</var></samp></dt>
  2556. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2557. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2558. option does <b>NOT</b> mean the encoder will actually apply Dolby Headphone
  2559. processing.
  2560. </p><dl compact="compact">
  2561. <dt><samp>0</samp></dt>
  2562. <dt><samp>notindicated</samp></dt>
  2563. <dd><p>Not Indicated (default)
  2564. </p></dd>
  2565. <dt><samp>1</samp></dt>
  2566. <dt><samp>on</samp></dt>
  2567. <dd><p>Dolby Headphone Off
  2568. </p></dd>
  2569. <dt><samp>2</samp></dt>
  2570. <dt><samp>off</samp></dt>
  2571. <dd><p>Dolby Headphone On
  2572. </p></dd>
  2573. </dl>
  2574. </dd>
  2575. <dt><samp>-ad_conv_type <var>type</var></samp></dt>
  2576. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2577. conversion.
  2578. </p><dl compact="compact">
  2579. <dt><samp>0</samp></dt>
  2580. <dt><samp>standard</samp></dt>
  2581. <dd><p>Standard A/D Converter (default)
  2582. </p></dd>
  2583. <dt><samp>1</samp></dt>
  2584. <dt><samp>hdcd</samp></dt>
  2585. <dd><p>HDCD A/D Converter
  2586. </p></dd>
  2587. </dl>
  2588. </dd>
  2589. </dl>
  2590. <a name="Other-AC_002d3-Encoding-Options"></a>
  2591. <h4 class="subsection">8.2.3 Other AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
  2592. <dl compact="compact">
  2593. <dt><samp>-stereo_rematrixing <var>boolean</var></samp></dt>
  2594. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2595. is an optional AC-3 feature that increases quality by selectively encoding
  2596. the left/right channels as mid/side. This option is enabled by default, and it
  2597. is highly recommended that it be left as enabled except for testing purposes.
  2598. </p>
  2599. </dd>
  2600. <dt><samp>cutoff <var>frequency</var></samp></dt>
  2601. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2602. determined by various other encoding parameters.
  2603. </p>
  2604. </dd>
  2605. </dl>
  2606. <a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
  2607. <h4 class="subsection">8.2.4 Floating-Point-Only AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
  2608. <p>These options are only valid for the floating-point encoder and do not exist
  2609. for the fixed-point encoder due to the corresponding features not being
  2610. implemented in fixed-point.
  2611. </p>
  2612. <dl compact="compact">
  2613. <dt><samp>-channel_coupling <var>boolean</var></samp></dt>
  2614. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2615. that increases quality by combining high frequency information from multiple
  2616. channels into a single channel. The per-channel high frequency information is
  2617. sent with less accuracy in both the frequency and time domains. This allows
  2618. more bits to be used for lower frequencies while preserving enough information
  2619. to reconstruct the high frequencies. This option is enabled by default for the
  2620. floating-point encoder and should generally be left as enabled except for
  2621. testing purposes or to increase encoding speed.
  2622. </p><dl compact="compact">
  2623. <dt><samp>-1</samp></dt>
  2624. <dt><samp>auto</samp></dt>
  2625. <dd><p>Selected by Encoder (default)
  2626. </p></dd>
  2627. <dt><samp>0</samp></dt>
  2628. <dt><samp>off</samp></dt>
  2629. <dd><p>Disable Channel Coupling
  2630. </p></dd>
  2631. <dt><samp>1</samp></dt>
  2632. <dt><samp>on</samp></dt>
  2633. <dd><p>Enable Channel Coupling
  2634. </p></dd>
  2635. </dl>
  2636. </dd>
  2637. <dt><samp>-cpl_start_band <var>number</var></samp></dt>
  2638. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2639. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2640. coupling end band. If <var>auto</var> is used, the start band will be determined by
  2641. the encoder based on the bit rate, sample rate, and channel layout. This option
  2642. has no effect if channel coupling is disabled.
  2643. </p><dl compact="compact">
  2644. <dt><samp>-1</samp></dt>
  2645. <dt><samp>auto</samp></dt>
  2646. <dd><p>Selected by Encoder (default)
  2647. </p></dd>
  2648. </dl>
  2649. </dd>
  2650. </dl>
  2651. <span id="flac"></span><a name="flac-2"></a>
  2652. <h3 class="section">8.3 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-2" aria-hidden="true">TOC</a></span></h3>
  2653. <p>FLAC (Free Lossless Audio Codec) Encoder
  2654. </p>
  2655. <a name="Options-9"></a>
  2656. <h4 class="subsection">8.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-9" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-9" aria-hidden="true">TOC</a></span></h4>
  2657. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  2658. </p>
  2659. <dl compact="compact">
  2660. <dt><samp>compression_level</samp></dt>
  2661. <dd><p>Sets the compression level, which chooses defaults for many other options
  2662. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  2663. default.
  2664. </p>
  2665. </dd>
  2666. <dt><samp>frame_size</samp></dt>
  2667. <dd><p>Sets the size of the frames in samples per channel.
  2668. </p>
  2669. </dd>
  2670. <dt><samp>lpc_coeff_precision</samp></dt>
  2671. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  2672. default.
  2673. </p>
  2674. </dd>
  2675. <dt><samp>lpc_type</samp></dt>
  2676. <dd><p>Sets the first stage LPC algorithm
  2677. </p><dl compact="compact">
  2678. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  2679. <dd><p>LPC is not used
  2680. </p>
  2681. </dd>
  2682. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  2683. <dd><p>fixed LPC coefficients
  2684. </p>
  2685. </dd>
  2686. <dt>&lsquo;<samp>levinson</samp>&rsquo;</dt>
  2687. <dt>&lsquo;<samp>cholesky</samp>&rsquo;</dt>
  2688. </dl>
  2689. </dd>
  2690. <dt><samp>lpc_passes</samp></dt>
  2691. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  2692. </p>
  2693. </dd>
  2694. <dt><samp>min_partition_order</samp></dt>
  2695. <dd><p>The minimum partition order
  2696. </p>
  2697. </dd>
  2698. <dt><samp>max_partition_order</samp></dt>
  2699. <dd><p>The maximum partition order
  2700. </p>
  2701. </dd>
  2702. <dt><samp>prediction_order_method</samp></dt>
  2703. <dd><dl compact="compact">
  2704. <dt>&lsquo;<samp>estimation</samp>&rsquo;</dt>
  2705. <dt>&lsquo;<samp>2level</samp>&rsquo;</dt>
  2706. <dt>&lsquo;<samp>4level</samp>&rsquo;</dt>
  2707. <dt>&lsquo;<samp>8level</samp>&rsquo;</dt>
  2708. <dt>&lsquo;<samp>search</samp>&rsquo;</dt>
  2709. <dd><p>Bruteforce search
  2710. </p></dd>
  2711. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  2712. </dl>
  2713. </dd>
  2714. <dt><samp>ch_mode</samp></dt>
  2715. <dd><p>Channel mode
  2716. </p><dl compact="compact">
  2717. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  2718. <dd><p>The mode is chosen automatically for each frame
  2719. </p></dd>
  2720. <dt>&lsquo;<samp>indep</samp>&rsquo;</dt>
  2721. <dd><p>Channels are independently coded
  2722. </p></dd>
  2723. <dt>&lsquo;<samp>left_side</samp>&rsquo;</dt>
  2724. <dt>&lsquo;<samp>right_side</samp>&rsquo;</dt>
  2725. <dt>&lsquo;<samp>mid_side</samp>&rsquo;</dt>
  2726. </dl>
  2727. </dd>
  2728. <dt><samp>exact_rice_parameters</samp></dt>
  2729. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  2730. if set to 1 then they are chosen exactly, which slows the code down slightly and
  2731. improves compression slightly.
  2732. </p>
  2733. </dd>
  2734. <dt><samp>multi_dim_quant</samp></dt>
  2735. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  2736. applied after the first stage to finetune the coefficients. This is quite slow
  2737. and slightly improves compression.
  2738. </p>
  2739. </dd>
  2740. </dl>
  2741. <span id="opusenc"></span><a name="opus"></a>
  2742. <h3 class="section">8.4 opus<span class="pull-right"><a class="anchor hidden-xs" href="#opus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-opus" aria-hidden="true">TOC</a></span></h3>
  2743. <p>Opus encoder.
  2744. </p>
  2745. <p>This is a native FFmpeg encoder for the Opus format. Currently its in development and
  2746. only implements the CELT part of the codec. Its quality is usually worse and at best
  2747. is equal to the libopus encoder.
  2748. </p>
  2749. <a name="Options-10"></a>
  2750. <h4 class="subsection">8.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-10" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-10" aria-hidden="true">TOC</a></span></h4>
  2751. <dl compact="compact">
  2752. <dt><samp>b</samp></dt>
  2753. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  2754. to make a good guess.
  2755. </p>
  2756. </dd>
  2757. <dt><samp>opus_delay</samp></dt>
  2758. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  2759. decrease quality.
  2760. </p></dd>
  2761. </dl>
  2762. <span id="libfdk_002daac_002denc"></span><a name="libfdk_005faac"></a>
  2763. <h3 class="section">8.5 libfdk_aac<span class="pull-right"><a class="anchor hidden-xs" href="#libfdk_005faac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libfdk_005faac" aria-hidden="true">TOC</a></span></h3>
  2764. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  2765. </p>
  2766. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  2767. the Android project.
  2768. </p>
  2769. <p>Requires the presence of the libfdk-aac headers and library during
  2770. configuration. You need to explicitly configure the build with
  2771. <code>--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  2772. so if you allow the use of GPL, you should configure with
  2773. <code>--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  2774. </p>
  2775. <p>This encoder has support for the AAC-HE profiles.
  2776. </p>
  2777. <p>VBR encoding, enabled through the <samp>vbr</samp> or <samp>flags
  2778. +qscale</samp> options, is experimental and only works with some
  2779. combinations of parameters.
  2780. </p>
  2781. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  2782. higher.
  2783. </p>
  2784. <p>For more information see the fdk-aac project at
  2785. <a href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  2786. </p>
  2787. <a name="Options-11"></a>
  2788. <h4 class="subsection">8.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-11" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-11" aria-hidden="true">TOC</a></span></h4>
  2789. <p>The following options are mapped on the shared FFmpeg codec options.
  2790. </p>
  2791. <dl compact="compact">
  2792. <dt><samp>b</samp></dt>
  2793. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  2794. is automatically set to a suitable value depending on the selected
  2795. profile.
  2796. </p>
  2797. <p>In case VBR mode is enabled the option is ignored.
  2798. </p>
  2799. </dd>
  2800. <dt><samp>ar</samp></dt>
  2801. <dd><p>Set audio sampling rate (in Hz).
  2802. </p>
  2803. </dd>
  2804. <dt><samp>channels</samp></dt>
  2805. <dd><p>Set the number of audio channels.
  2806. </p>
  2807. </dd>
  2808. <dt><samp>flags +qscale</samp></dt>
  2809. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  2810. Note that VBR is implicitly enabled when the <samp>vbr</samp> value is
  2811. positive.
  2812. </p>
  2813. </dd>
  2814. <dt><samp>cutoff</samp></dt>
  2815. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  2816. will use a value automatically computed by the library. Default value
  2817. is 0.
  2818. </p>
  2819. </dd>
  2820. <dt><samp>profile</samp></dt>
  2821. <dd><p>Set audio profile.
  2822. </p>
  2823. <p>The following profiles are recognized:
  2824. </p><dl compact="compact">
  2825. <dt>&lsquo;<samp>aac_low</samp>&rsquo;</dt>
  2826. <dd><p>Low Complexity AAC (LC)
  2827. </p>
  2828. </dd>
  2829. <dt>&lsquo;<samp>aac_he</samp>&rsquo;</dt>
  2830. <dd><p>High Efficiency AAC (HE-AAC)
  2831. </p>
  2832. </dd>
  2833. <dt>&lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
  2834. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  2835. </p>
  2836. </dd>
  2837. <dt>&lsquo;<samp>aac_ld</samp>&rsquo;</dt>
  2838. <dd><p>Low Delay AAC (LD)
  2839. </p>
  2840. </dd>
  2841. <dt>&lsquo;<samp>aac_eld</samp>&rsquo;</dt>
  2842. <dd><p>Enhanced Low Delay AAC (ELD)
  2843. </p></dd>
  2844. </dl>
  2845. <p>If not specified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2846. </p></dd>
  2847. </dl>
  2848. <p>The following are private options of the libfdk_aac encoder.
  2849. </p>
  2850. <dl compact="compact">
  2851. <dt><samp>afterburner</samp></dt>
  2852. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  2853. improves the quality but also the required processing power.
  2854. </p>
  2855. <p>Default value is 1.
  2856. </p>
  2857. </dd>
  2858. <dt><samp>eld_sbr</samp></dt>
  2859. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  2860. if set to 0.
  2861. </p>
  2862. <p>Default value is 0.
  2863. </p>
  2864. </dd>
  2865. <dt><samp>eld_v2</samp></dt>
  2866. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  2867. disabled if set to 0.
  2868. </p>
  2869. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  2870. </p>
  2871. <p>Default value is 0.
  2872. </p>
  2873. </dd>
  2874. <dt><samp>signaling</samp></dt>
  2875. <dd><p>Set SBR/PS signaling style.
  2876. </p>
  2877. <p>It can assume one of the following values:
  2878. </p><dl compact="compact">
  2879. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  2880. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  2881. implicit if global header is disabled)
  2882. </p>
  2883. </dd>
  2884. <dt>&lsquo;<samp>implicit</samp>&rsquo;</dt>
  2885. <dd><p>implicit backwards compatible signaling
  2886. </p>
  2887. </dd>
  2888. <dt>&lsquo;<samp>explicit_sbr</samp>&rsquo;</dt>
  2889. <dd><p>explicit SBR, implicit PS signaling
  2890. </p>
  2891. </dd>
  2892. <dt>&lsquo;<samp>explicit_hierarchical</samp>&rsquo;</dt>
  2893. <dd><p>explicit hierarchical signaling
  2894. </p></dd>
  2895. </dl>
  2896. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  2897. </p>
  2898. </dd>
  2899. <dt><samp>latm</samp></dt>
  2900. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  2901. </p>
  2902. <p>Default value is 0.
  2903. </p>
  2904. </dd>
  2905. <dt><samp>header_period</samp></dt>
  2906. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  2907. in-band configuration buffers within LATM/LOAS transport layer.
  2908. </p>
  2909. <p>Must be a 16-bits non-negative integer.
  2910. </p>
  2911. <p>Default value is 0.
  2912. </p>
  2913. </dd>
  2914. <dt><samp>vbr</samp></dt>
  2915. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  2916. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  2917. (Constant Bit Rate) is enabled.
  2918. </p>
  2919. <p>Currently only the &lsquo;<samp>aac_low</samp>&rsquo; profile supports VBR encoding.
  2920. </p>
  2921. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  2922. </p>
  2923. <dl compact="compact">
  2924. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  2925. <dd><p>32 kbps/channel
  2926. </p></dd>
  2927. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  2928. <dd><p>40 kbps/channel
  2929. </p></dd>
  2930. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  2931. <dd><p>48-56 kbps/channel
  2932. </p></dd>
  2933. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  2934. <dd><p>64 kbps/channel
  2935. </p></dd>
  2936. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  2937. <dd><p>about 80-96 kbps/channel
  2938. </p></dd>
  2939. </dl>
  2940. <p>Default value is 0.
  2941. </p></dd>
  2942. </dl>
  2943. <a name="Examples"></a>
  2944. <h4 class="subsection">8.5.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples" aria-hidden="true">TOC</a></span></h4>
  2945. <ul>
  2946. <li> Use <code>ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  2947. container:
  2948. <div class="example">
  2949. <pre class="example">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  2950. </pre></div>
  2951. </li><li> Use <code>ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  2952. High-Efficiency AAC profile:
  2953. <div class="example">
  2954. <pre class="example">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  2955. </pre></div>
  2956. </li></ul>
  2957. <span id="libmp3lame"></span><a name="libmp3lame-1"></a>
  2958. <h3 class="section">8.6 libmp3lame<span class="pull-right"><a class="anchor hidden-xs" href="#libmp3lame-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libmp3lame-1" aria-hidden="true">TOC</a></span></h3>
  2959. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  2960. </p>
  2961. <p>Requires the presence of the libmp3lame headers and library during
  2962. configuration. You need to explicitly configure the build with
  2963. <code>--enable-libmp3lame</code>.
  2964. </p>
  2965. <p>See <a href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  2966. lower quality.
  2967. </p>
  2968. <a name="Options-12"></a>
  2969. <h4 class="subsection">8.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-12" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-12" aria-hidden="true">TOC</a></span></h4>
  2970. <p>The following options are supported by the libmp3lame wrapper. The
  2971. <code>lame</code>-equivalent of the options are listed in parentheses.
  2972. </p>
  2973. <dl compact="compact">
  2974. <dt><samp>b (<em>-b</em>)</samp></dt>
  2975. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code>bitrate</code> is
  2976. expressed in kilobits/s.
  2977. </p>
  2978. </dd>
  2979. <dt><samp>q (<em>-V</em>)</samp></dt>
  2980. <dd><p>Set constant quality setting for VBR. This option is valid only
  2981. using the <code>ffmpeg</code> command-line tool. For library interface
  2982. users, use <samp>global_quality</samp>.
  2983. </p>
  2984. </dd>
  2985. <dt><samp>compression_level (<em>-q</em>)</samp></dt>
  2986. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  2987. with 0 meaning highest quality but slowest, and 9 meaning fastest
  2988. while producing the worst quality.
  2989. </p>
  2990. </dd>
  2991. <dt><samp>cutoff (<em>--lowpass</em>)</samp></dt>
  2992. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  2993. adjusts the cutoff.
  2994. </p>
  2995. </dd>
  2996. <dt><samp>reservoir</samp></dt>
  2997. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  2998. has this enabled by default, but can be overridden by use
  2999. <samp>--nores</samp> option.
  3000. </p>
  3001. </dd>
  3002. <dt><samp>joint_stereo (<em>-m j</em>)</samp></dt>
  3003. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  3004. stereo or mid/side stereo. Default value is 1.
  3005. </p>
  3006. </dd>
  3007. <dt><samp>abr (<em>--abr</em>)</samp></dt>
  3008. <dd><p>Enable the encoder to use ABR when set to 1. The <code>lame</code>
  3009. <samp>--abr</samp> sets the target bitrate, while this options only
  3010. tells FFmpeg to use ABR still relies on <samp>b</samp> to set bitrate.
  3011. </p>
  3012. </dd>
  3013. </dl>
  3014. <a name="libopencore_002damrnb-1"></a>
  3015. <h3 class="section">8.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb-1" aria-hidden="true">TOC</a></span></h3>
  3016. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  3017. </p>
  3018. <p>Requires the presence of the libopencore-amrnb headers and library during
  3019. configuration. You need to explicitly configure the build with
  3020. <code>--enable-libopencore-amrnb --enable-version3</code>.
  3021. </p>
  3022. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  3023. but you can override it by setting <samp>strict</samp> to &lsquo;<samp>unofficial</samp>&rsquo; or
  3024. lower.
  3025. </p>
  3026. <a name="Options-13"></a>
  3027. <h4 class="subsection">8.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-13" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-13" aria-hidden="true">TOC</a></span></h4>
  3028. <dl compact="compact">
  3029. <dt><samp>b</samp></dt>
  3030. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  3031. otherwise libavcodec will round to the nearest valid bitrate.
  3032. </p>
  3033. <dl compact="compact">
  3034. <dt><samp>4750</samp></dt>
  3035. <dt><samp>5150</samp></dt>
  3036. <dt><samp>5900</samp></dt>
  3037. <dt><samp>6700</samp></dt>
  3038. <dt><samp>7400</samp></dt>
  3039. <dt><samp>7950</samp></dt>
  3040. <dt><samp>10200</samp></dt>
  3041. <dt><samp>12200</samp></dt>
  3042. </dl>
  3043. </dd>
  3044. <dt><samp>dtx</samp></dt>
  3045. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3046. default value is 0 (disabled).
  3047. </p>
  3048. </dd>
  3049. </dl>
  3050. <a name="libopus-1"></a>
  3051. <h3 class="section">8.8 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus-1" aria-hidden="true">TOC</a></span></h3>
  3052. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3053. </p>
  3054. <p>Requires the presence of the libopus headers and library during
  3055. configuration. You need to explicitly configure the build with
  3056. <code>--enable-libopus</code>.
  3057. </p>
  3058. <a name="Option-Mapping"></a>
  3059. <h4 class="subsection">8.8.1 Option Mapping<span class="pull-right"><a class="anchor hidden-xs" href="#Option-Mapping" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Option-Mapping" aria-hidden="true">TOC</a></span></h4>
  3060. <p>Most libopus options are modelled after the <code>opusenc</code> utility from
  3061. opus-tools. The following is an option mapping chart describing options
  3062. supported by the libopus wrapper, and their <code>opusenc</code>-equivalent
  3063. in parentheses.
  3064. </p>
  3065. <dl compact="compact">
  3066. <dt><samp>b (<em>bitrate</em>)</samp></dt>
  3067. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s <samp>b</samp> option is
  3068. expressed in bits/s, while <code>opusenc</code>&rsquo;s <samp>bitrate</samp> in
  3069. kilobits/s.
  3070. </p>
  3071. </dd>
  3072. <dt><samp>vbr (<em>vbr</em>, <em>hard-cbr</em>, and <em>cvbr</em>)</samp></dt>
  3073. <dd><p>Set VBR mode. The FFmpeg <samp>vbr</samp> option has the following
  3074. valid arguments, with the <code>opusenc</code> equivalent options
  3075. in parentheses:
  3076. </p>
  3077. <dl compact="compact">
  3078. <dt>&lsquo;<samp>off (<em>hard-cbr</em>)</samp>&rsquo;</dt>
  3079. <dd><p>Use constant bit rate encoding.
  3080. </p>
  3081. </dd>
  3082. <dt>&lsquo;<samp>on (<em>vbr</em>)</samp>&rsquo;</dt>
  3083. <dd><p>Use variable bit rate encoding (the default).
  3084. </p>
  3085. </dd>
  3086. <dt>&lsquo;<samp>constrained (<em>cvbr</em>)</samp>&rsquo;</dt>
  3087. <dd><p>Use constrained variable bit rate encoding.
  3088. </p></dd>
  3089. </dl>
  3090. </dd>
  3091. <dt><samp>compression_level (<em>comp</em>)</samp></dt>
  3092. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3093. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3094. gives the highest quality but slowest encoding. The default is 10.
  3095. </p>
  3096. </dd>
  3097. <dt><samp>frame_duration (<em>framesize</em>)</samp></dt>
  3098. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3099. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3100. frame sizes achieve lower latency but less quality at a given bitrate.
  3101. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3102. The default is 20ms.
  3103. </p>
  3104. </dd>
  3105. <dt><samp>packet_loss (<em>expect-loss</em>)</samp></dt>
  3106. <dd><p>Set expected packet loss percentage. The default is 0.
  3107. </p>
  3108. </dd>
  3109. <dt><samp>fec (<em>n/a</em>)</samp></dt>
  3110. <dd><p>Enable inband forward error correction. <samp>packet_loss</samp> must be non-zero
  3111. to take advantage - frequency of FEC &rsquo;side-data&rsquo; is proportional to expected packet loss.
  3112. Default is disabled.
  3113. </p>
  3114. </dd>
  3115. <dt><samp>application (N.A.)</samp></dt>
  3116. <dd><p>Set intended application type. Valid options are listed below:
  3117. </p>
  3118. <dl compact="compact">
  3119. <dt>&lsquo;<samp>voip</samp>&rsquo;</dt>
  3120. <dd><p>Favor improved speech intelligibility.
  3121. </p></dd>
  3122. <dt>&lsquo;<samp>audio</samp>&rsquo;</dt>
  3123. <dd><p>Favor faithfulness to the input (the default).
  3124. </p></dd>
  3125. <dt>&lsquo;<samp>lowdelay</samp>&rsquo;</dt>
  3126. <dd><p>Restrict to only the lowest delay modes.
  3127. </p></dd>
  3128. </dl>
  3129. </dd>
  3130. <dt><samp>cutoff (N.A.)</samp></dt>
  3131. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3132. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3133. narrowband, mediumband, wideband, super wideband, and fullband
  3134. respectively. The default is 0 (cutoff disabled).
  3135. </p>
  3136. </dd>
  3137. <dt><samp>mapping_family (<em>mapping_family</em>)</samp></dt>
  3138. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3139. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3140. otherwise. The default also disables the surround masking and LFE bandwidth
  3141. optimzations in libopus, and requires that the input contains 8 channels or
  3142. fewer.
  3143. </p>
  3144. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3145. and LFE bandwidth optimizations, and 255 for independent streams with an
  3146. unspecified channel layout.
  3147. </p>
  3148. </dd>
  3149. <dt><samp>apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp></dt>
  3150. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3151. improving the quality of mono downmixes, but slightly reducing normal stereo
  3152. quality. The default is 1 (phase inversion enabled).
  3153. </p>
  3154. </dd>
  3155. </dl>
  3156. <span id="libshine"></span><a name="libshine-1"></a>
  3157. <h3 class="section">8.9 libshine<span class="pull-right"><a class="anchor hidden-xs" href="#libshine-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libshine-1" aria-hidden="true">TOC</a></span></h3>
  3158. <p>Shine Fixed-Point MP3 encoder wrapper.
  3159. </p>
  3160. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3161. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3162. However, as it is more targeted on performance than quality, it is not on par
  3163. with LAME and other production-grade encoders quality-wise. Also, according to
  3164. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3165. written a long time ago and the project was dead for at least 5 years.
  3166. </p>
  3167. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3168. </p>
  3169. <p>The original project (last updated in early 2007) is at
  3170. <a href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3171. updated fork by the Savonet/Liquidsoap project at <a href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3172. </p>
  3173. <p>Requires the presence of the libshine headers and library during
  3174. configuration. You need to explicitly configure the build with
  3175. <code>--enable-libshine</code>.
  3176. </p>
  3177. <p>See also <a href="#libmp3lame">libmp3lame</a>.
  3178. </p>
  3179. <a name="Options-14"></a>
  3180. <h4 class="subsection">8.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-14" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-14" aria-hidden="true">TOC</a></span></h4>
  3181. <p>The following options are supported by the libshine wrapper. The
  3182. <code>shineenc</code>-equivalent of the options are listed in parentheses.
  3183. </p>
  3184. <dl compact="compact">
  3185. <dt><samp>b (<em>-b</em>)</samp></dt>
  3186. <dd><p>Set bitrate expressed in bits/s for CBR. <code>shineenc</code> <samp>-b</samp> option
  3187. is expressed in kilobits/s.
  3188. </p>
  3189. </dd>
  3190. </dl>
  3191. <a name="libtwolame"></a>
  3192. <h3 class="section">8.10 libtwolame<span class="pull-right"><a class="anchor hidden-xs" href="#libtwolame" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtwolame" aria-hidden="true">TOC</a></span></h3>
  3193. <p>TwoLAME MP2 encoder wrapper.
  3194. </p>
  3195. <p>Requires the presence of the libtwolame headers and library during
  3196. configuration. You need to explicitly configure the build with
  3197. <code>--enable-libtwolame</code>.
  3198. </p>
  3199. <a name="Options-15"></a>
  3200. <h4 class="subsection">8.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-15" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-15" aria-hidden="true">TOC</a></span></h4>
  3201. <p>The following options are supported by the libtwolame wrapper. The
  3202. <code>twolame</code>-equivalent options follow the FFmpeg ones and are in
  3203. parentheses.
  3204. </p>
  3205. <dl compact="compact">
  3206. <dt><samp>b (<em>-b</em>)</samp></dt>
  3207. <dd><p>Set bitrate expressed in bits/s for CBR. <code>twolame</code> <samp>b</samp>
  3208. option is expressed in kilobits/s. Default value is 128k.
  3209. </p>
  3210. </dd>
  3211. <dt><samp>q (<em>-V</em>)</samp></dt>
  3212. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3213. from -50 to 50, useful range is from -10 to 10. The higher the
  3214. value, the better the quality. This option is valid only using the
  3215. <code>ffmpeg</code> command-line tool. For library interface users,
  3216. use <samp>global_quality</samp>.
  3217. </p>
  3218. </dd>
  3219. <dt><samp>mode (<em>--mode</em>)</samp></dt>
  3220. <dd><p>Set the mode of the resulting audio. Possible values:
  3221. </p>
  3222. <dl compact="compact">
  3223. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  3224. <dd><p>Choose mode automatically based on the input. This is the default.
  3225. </p></dd>
  3226. <dt>&lsquo;<samp>stereo</samp>&rsquo;</dt>
  3227. <dd><p>Stereo
  3228. </p></dd>
  3229. <dt>&lsquo;<samp>joint_stereo</samp>&rsquo;</dt>
  3230. <dd><p>Joint stereo
  3231. </p></dd>
  3232. <dt>&lsquo;<samp>dual_channel</samp>&rsquo;</dt>
  3233. <dd><p>Dual channel
  3234. </p></dd>
  3235. <dt>&lsquo;<samp>mono</samp>&rsquo;</dt>
  3236. <dd><p>Mono
  3237. </p></dd>
  3238. </dl>
  3239. </dd>
  3240. <dt><samp>psymodel (<em>--psyc-mode</em>)</samp></dt>
  3241. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3242. an integer between -1 and 4, inclusive. The higher the value, the
  3243. better the quality. The default value is 3.
  3244. </p>
  3245. </dd>
  3246. <dt><samp>energy_levels (<em>--energy</em>)</samp></dt>
  3247. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3248. 0 (disabled).
  3249. </p>
  3250. </dd>
  3251. <dt><samp>error_protection (<em>--protect</em>)</samp></dt>
  3252. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3253. (disabled).
  3254. </p>
  3255. </dd>
  3256. <dt><samp>copyright (<em>--copyright</em>)</samp></dt>
  3257. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3258. (disabled).
  3259. </p>
  3260. </dd>
  3261. <dt><samp>original (<em>--original</em>)</samp></dt>
  3262. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3263. (disabled).
  3264. </p>
  3265. </dd>
  3266. </dl>
  3267. <a name="libvo_002damrwbenc"></a>
  3268. <h3 class="section">8.11 libvo-amrwbenc<span class="pull-right"><a class="anchor hidden-xs" href="#libvo_002damrwbenc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvo_002damrwbenc" aria-hidden="true">TOC</a></span></h3>
  3269. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3270. </p>
  3271. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3272. configuration. You need to explicitly configure the build with
  3273. <code>--enable-libvo-amrwbenc --enable-version3</code>.
  3274. </p>
  3275. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3276. rate, but you can override it by setting <samp>strict</samp> to
  3277. &lsquo;<samp>unofficial</samp>&rsquo; or lower.
  3278. </p>
  3279. <a name="Options-16"></a>
  3280. <h4 class="subsection">8.11.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-16" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-16" aria-hidden="true">TOC</a></span></h4>
  3281. <dl compact="compact">
  3282. <dt><samp>b</samp></dt>
  3283. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3284. libavcodec will round to the nearest valid bitrate.
  3285. </p>
  3286. <dl compact="compact">
  3287. <dt>&lsquo;<samp>6600</samp>&rsquo;</dt>
  3288. <dt>&lsquo;<samp>8850</samp>&rsquo;</dt>
  3289. <dt>&lsquo;<samp>12650</samp>&rsquo;</dt>
  3290. <dt>&lsquo;<samp>14250</samp>&rsquo;</dt>
  3291. <dt>&lsquo;<samp>15850</samp>&rsquo;</dt>
  3292. <dt>&lsquo;<samp>18250</samp>&rsquo;</dt>
  3293. <dt>&lsquo;<samp>19850</samp>&rsquo;</dt>
  3294. <dt>&lsquo;<samp>23050</samp>&rsquo;</dt>
  3295. <dt>&lsquo;<samp>23850</samp>&rsquo;</dt>
  3296. </dl>
  3297. </dd>
  3298. <dt><samp>dtx</samp></dt>
  3299. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3300. default value is 0 (disabled).
  3301. </p>
  3302. </dd>
  3303. </dl>
  3304. <a name="libvorbis"></a>
  3305. <h3 class="section">8.12 libvorbis<span class="pull-right"><a class="anchor hidden-xs" href="#libvorbis" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvorbis" aria-hidden="true">TOC</a></span></h3>
  3306. <p>libvorbis encoder wrapper.
  3307. </p>
  3308. <p>Requires the presence of the libvorbisenc headers and library during
  3309. configuration. You need to explicitly configure the build with
  3310. <code>--enable-libvorbis</code>.
  3311. </p>
  3312. <a name="Options-17"></a>
  3313. <h4 class="subsection">8.12.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-17" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-17" aria-hidden="true">TOC</a></span></h4>
  3314. <p>The following options are supported by the libvorbis wrapper. The
  3315. <code>oggenc</code>-equivalent of the options are listed in parentheses.
  3316. </p>
  3317. <p>To get a more accurate and extensive documentation of the libvorbis
  3318. options, consult the libvorbisenc&rsquo;s and <code>oggenc</code>&rsquo;s documentations.
  3319. See <a href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3320. <a href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3321. </p>
  3322. <dl compact="compact">
  3323. <dt><samp>b (<em>-b</em>)</samp></dt>
  3324. <dd><p>Set bitrate expressed in bits/s for ABR. <code>oggenc</code> <samp>-b</samp> is
  3325. expressed in kilobits/s.
  3326. </p>
  3327. </dd>
  3328. <dt><samp>q (<em>-q</em>)</samp></dt>
  3329. <dd><p>Set constant quality setting for VBR. The value should be a float
  3330. number in the range of -1.0 to 10.0. The higher the value, the better
  3331. the quality. The default value is &lsquo;<samp>3.0</samp>&rsquo;.
  3332. </p>
  3333. <p>This option is valid only using the <code>ffmpeg</code> command-line tool.
  3334. For library interface users, use <samp>global_quality</samp>.
  3335. </p>
  3336. </dd>
  3337. <dt><samp>cutoff (<em>--advanced-encode-option lowpass_frequency=N</em>)</samp></dt>
  3338. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code>oggenc</code>&rsquo;s
  3339. related option is expressed in kHz. The default value is &lsquo;<samp>0</samp>&rsquo; (cutoff
  3340. disabled).
  3341. </p>
  3342. </dd>
  3343. <dt><samp>minrate (<em>-m</em>)</samp></dt>
  3344. <dd><p>Set minimum bitrate expressed in bits/s. <code>oggenc</code> <samp>-m</samp> is
  3345. expressed in kilobits/s.
  3346. </p>
  3347. </dd>
  3348. <dt><samp>maxrate (<em>-M</em>)</samp></dt>
  3349. <dd><p>Set maximum bitrate expressed in bits/s. <code>oggenc</code> <samp>-M</samp> is
  3350. expressed in kilobits/s. This only has effect on ABR mode.
  3351. </p>
  3352. </dd>
  3353. <dt><samp>iblock (<em>--advanced-encode-option impulse_noisetune=N</em>)</samp></dt>
  3354. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3355. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3356. to the crispness of transients in the encoded audio. The tradeoff for better
  3357. transient response is a higher bitrate.
  3358. </p>
  3359. </dd>
  3360. </dl>
  3361. <span id="mjpegenc"></span><a name="mjpeg"></a>
  3362. <h3 class="section">8.13 mjpeg<span class="pull-right"><a class="anchor hidden-xs" href="#mjpeg" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mjpeg" aria-hidden="true">TOC</a></span></h3>
  3363. <p>Motion JPEG encoder.
  3364. </p>
  3365. <a name="Options-18"></a>
  3366. <h4 class="subsection">8.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-18" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-18" aria-hidden="true">TOC</a></span></h4>
  3367. <dl compact="compact">
  3368. <dt><samp>huffman</samp></dt>
  3369. <dd><p>Set the huffman encoding strategy. Possible values:
  3370. </p>
  3371. <dl compact="compact">
  3372. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  3373. <dd><p>Use the default huffman tables. This is the default strategy.
  3374. </p>
  3375. </dd>
  3376. <dt>&lsquo;<samp>optimal</samp>&rsquo;</dt>
  3377. <dd><p>Compute and use optimal huffman tables.
  3378. </p>
  3379. </dd>
  3380. </dl>
  3381. </dd>
  3382. </dl>
  3383. <span id="wavpackenc"></span><a name="wavpack"></a>
  3384. <h3 class="section">8.14 wavpack<span class="pull-right"><a class="anchor hidden-xs" href="#wavpack" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-wavpack" aria-hidden="true">TOC</a></span></h3>
  3385. <p>WavPack lossless audio encoder.
  3386. </p>
  3387. <a name="Options-19"></a>
  3388. <h4 class="subsection">8.14.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-19" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-19" aria-hidden="true">TOC</a></span></h4>
  3389. <p>The equivalent options for <code>wavpack</code> command line utility are listed in
  3390. parentheses.
  3391. </p>
  3392. <a name="Shared-options"></a>
  3393. <h4 class="subsubsection">8.14.1.1 Shared options<span class="pull-right"><a class="anchor hidden-xs" href="#Shared-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Shared-options" aria-hidden="true">TOC</a></span></h4>
  3394. <p>The following shared options are effective for this encoder. Only special notes
  3395. about this particular encoder will be documented here. For the general meaning
  3396. of the options, see <a href="#codec_002doptions">the Codec Options chapter</a>.
  3397. </p>
  3398. <dl compact="compact">
  3399. <dt><samp>frame_size (<em>--blocksize</em>)</samp></dt>
  3400. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3401. is automatically decided based on sample rate and number of channel.
  3402. </p>
  3403. <p>For the complete formula of calculating default, see
  3404. <samp>libavcodec/wavpackenc.c</samp>.
  3405. </p>
  3406. </dd>
  3407. <dt><samp>compression_level (<em>-f</em>, <em>-h</em>, <em>-hh</em>, and <em>-x</em>)</samp></dt>
  3408. </dl>
  3409. <a name="Private-options"></a>
  3410. <h4 class="subsubsection">8.14.1.2 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options" aria-hidden="true">TOC</a></span></h4>
  3411. <dl compact="compact">
  3412. <dt><samp>joint_stereo (<em>-j</em>)</samp></dt>
  3413. <dd><p>Set whether to enable joint stereo. Valid values are:
  3414. </p>
  3415. <dl compact="compact">
  3416. <dt>&lsquo;<samp>on (<em>1</em>)</samp>&rsquo;</dt>
  3417. <dd><p>Force mid/side audio encoding.
  3418. </p></dd>
  3419. <dt>&lsquo;<samp>off (<em>0</em>)</samp>&rsquo;</dt>
  3420. <dd><p>Force left/right audio encoding.
  3421. </p></dd>
  3422. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  3423. <dd><p>Let the encoder decide automatically.
  3424. </p></dd>
  3425. </dl>
  3426. </dd>
  3427. <dt><samp>optimize_mono</samp></dt>
  3428. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3429. non-mono streams. Available values:
  3430. </p>
  3431. <dl compact="compact">
  3432. <dt>&lsquo;<samp>on</samp>&rsquo;</dt>
  3433. <dd><p>enabled
  3434. </p></dd>
  3435. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  3436. <dd><p>disabled
  3437. </p></dd>
  3438. </dl>
  3439. </dd>
  3440. </dl>
  3441. <a name="Video-Encoders"></a>
  3442. <h2 class="chapter">9 Video Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Encoders" aria-hidden="true">TOC</a></span></h2>
  3443. <p>A description of some of the currently available video encoders
  3444. follows.
  3445. </p>
  3446. <a name="GIF"></a>
  3447. <h3 class="section">9.1 GIF<span class="pull-right"><a class="anchor hidden-xs" href="#GIF" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-GIF" aria-hidden="true">TOC</a></span></h3>
  3448. <p>GIF image/animation encoder.
  3449. </p>
  3450. <a name="Options-20"></a>
  3451. <h4 class="subsection">9.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-20" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-20" aria-hidden="true">TOC</a></span></h4>
  3452. <dl compact="compact">
  3453. <dt><samp>gifflags <var>integer</var></samp></dt>
  3454. <dd><p>Sets the flags used for GIF encoding.
  3455. </p>
  3456. <dl compact="compact">
  3457. <dt><samp>offsetting</samp></dt>
  3458. <dd><p>Enables picture offsetting.
  3459. </p>
  3460. <p>Default is enabled.
  3461. </p>
  3462. </dd>
  3463. <dt><samp>transdiff</samp></dt>
  3464. <dd><p>Enables transparency detection between frames.
  3465. </p>
  3466. <p>Default is enabled.
  3467. </p>
  3468. </dd>
  3469. </dl>
  3470. </dd>
  3471. <dt><samp>gifimage <var>integer</var></samp></dt>
  3472. <dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
  3473. </p>
  3474. <p>Default value is <samp>0</samp>.
  3475. </p>
  3476. </dd>
  3477. <dt><samp>global_palette <var>integer</var></samp></dt>
  3478. <dd><p>Writes a palette to the global GIF header where feasible.
  3479. </p>
  3480. <p>If disabled, every frame will always have a palette written, even if there
  3481. is a global palette supplied.
  3482. </p>
  3483. <p>Default value is <samp>1</samp>.
  3484. </p>
  3485. </dd>
  3486. </dl>
  3487. <a name="Hap"></a>
  3488. <h3 class="section">9.2 Hap<span class="pull-right"><a class="anchor hidden-xs" href="#Hap" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Hap" aria-hidden="true">TOC</a></span></h3>
  3489. <p>Vidvox Hap video encoder.
  3490. </p>
  3491. <a name="Options-21"></a>
  3492. <h4 class="subsection">9.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-21" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-21" aria-hidden="true">TOC</a></span></h4>
  3493. <dl compact="compact">
  3494. <dt><samp>format <var>integer</var></samp></dt>
  3495. <dd><p>Specifies the Hap format to encode.
  3496. </p>
  3497. <dl compact="compact">
  3498. <dt><samp>hap</samp></dt>
  3499. <dt><samp>hap_alpha</samp></dt>
  3500. <dt><samp>hap_q</samp></dt>
  3501. </dl>
  3502. <p>Default value is <samp>hap</samp>.
  3503. </p>
  3504. </dd>
  3505. <dt><samp>chunks <var>integer</var></samp></dt>
  3506. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  3507. permits multithreaded decoding of large frames, potentially at the cost of
  3508. data-rate. The encoder may modify this value to divide frames evenly.
  3509. </p>
  3510. <p>Default value is <var>1</var>.
  3511. </p>
  3512. </dd>
  3513. <dt><samp>compressor <var>integer</var></samp></dt>
  3514. <dd><p>Specifies the second-stage compressor to use. If set to <samp>none</samp>,
  3515. <samp>chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
  3516. benefit.
  3517. </p>
  3518. <dl compact="compact">
  3519. <dt><samp>none</samp></dt>
  3520. <dt><samp>snappy</samp></dt>
  3521. </dl>
  3522. <p>Default value is <samp>snappy</samp>.
  3523. </p>
  3524. </dd>
  3525. </dl>
  3526. <a name="jpeg2000"></a>
  3527. <h3 class="section">9.3 jpeg2000<span class="pull-right"><a class="anchor hidden-xs" href="#jpeg2000" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-jpeg2000" aria-hidden="true">TOC</a></span></h3>
  3528. <p>The native jpeg 2000 encoder is lossy by default, the <code>-q:v</code>
  3529. option can be used to set the encoding quality. Lossless encoding
  3530. can be selected with <code>-pred 1</code>.
  3531. </p>
  3532. <a name="Options-22"></a>
  3533. <h4 class="subsection">9.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-22" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-22" aria-hidden="true">TOC</a></span></h4>
  3534. <dl compact="compact">
  3535. <dt><samp>format <var>integer</var></samp></dt>
  3536. <dd><p>Can be set to either <code>j2k</code> or <code>jp2</code> (the default) that
  3537. makes it possible to store non-rgb pix_fmts.
  3538. </p>
  3539. </dd>
  3540. <dt><samp>tile_width <var>integer</var></samp></dt>
  3541. <dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
  3542. </p>
  3543. </dd>
  3544. <dt><samp>tile_height <var>integer</var></samp></dt>
  3545. <dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
  3546. </p>
  3547. </dd>
  3548. <dt><samp>pred <var>integer</var></samp></dt>
  3549. <dd><p>Allows setting the discrete wavelet transform (DWT) type
  3550. </p><dl compact="compact">
  3551. <dt><samp>dwt97int (Lossy)</samp></dt>
  3552. <dt><samp>dwt53 (Lossless)</samp></dt>
  3553. </dl>
  3554. <p>Default is <code>dwt97int</code>
  3555. </p>
  3556. </dd>
  3557. <dt><samp>sop <var>boolean</var></samp></dt>
  3558. <dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
  3559. </p>
  3560. </dd>
  3561. <dt><samp>eph <var>boolean</var></samp></dt>
  3562. <dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
  3563. </p>
  3564. </dd>
  3565. <dt><samp>prog <var>integer</var></samp></dt>
  3566. <dd><p>Sets the progression order to be used by the encoder.
  3567. Possible values are:
  3568. </p><dl compact="compact">
  3569. <dt><samp>lrcp</samp></dt>
  3570. <dt><samp>rlcp</samp></dt>
  3571. <dt><samp>rpcl</samp></dt>
  3572. <dt><samp>pcrl</samp></dt>
  3573. <dt><samp>cprl</samp></dt>
  3574. </dl>
  3575. <p>Set to <code>lrcp</code> by default.
  3576. </p>
  3577. </dd>
  3578. <dt><samp>layer_rates <var>string</var></samp></dt>
  3579. <dd><p>By default, when this option is not used, compression is done using the quality metric.
  3580. This option allows for compression using compression ratio. The compression ratio for each
  3581. level could be specified. The compression ratio of a layer <code>l</code> species the what ratio of
  3582. total file size is contained in the first <code>l</code> layers.
  3583. </p>
  3584. <p>Example usage:
  3585. </p>
  3586. <div class="example">
  3587. <pre class="example">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates &quot;100,10,1&quot; output.j2k
  3588. </pre></div>
  3589. <p>This would compress the image to contain 3 layers, where the data contained in the
  3590. first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
  3591. and shall contain all data while using all 3 layers.
  3592. </p>
  3593. </dd>
  3594. </dl>
  3595. <a name="librav1e"></a>
  3596. <h3 class="section">9.4 librav1e<span class="pull-right"><a class="anchor hidden-xs" href="#librav1e" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-librav1e" aria-hidden="true">TOC</a></span></h3>
  3597. <p>rav1e AV1 encoder wrapper.
  3598. </p>
  3599. <p>Requires the presence of the rav1e headers and library during configuration.
  3600. You need to explicitly configure the build with <code>--enable-librav1e</code>.
  3601. </p>
  3602. <a name="Options-23"></a>
  3603. <h4 class="subsection">9.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-23" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-23" aria-hidden="true">TOC</a></span></h4>
  3604. <dl compact="compact">
  3605. <dt><samp>qmax</samp></dt>
  3606. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  3607. </p>
  3608. </dd>
  3609. <dt><samp>qmin</samp></dt>
  3610. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  3611. </p>
  3612. </dd>
  3613. <dt><samp>qp</samp></dt>
  3614. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  3615. </p>
  3616. </dd>
  3617. <dt><samp>speed</samp></dt>
  3618. <dd><p>Selects the speed preset (0-10) to encode with.
  3619. </p>
  3620. </dd>
  3621. <dt><samp>tiles</samp></dt>
  3622. <dd><p>Selects how many tiles to encode with.
  3623. </p>
  3624. </dd>
  3625. <dt><samp>tile-rows</samp></dt>
  3626. <dd><p>Selects how many rows of tiles to encode with.
  3627. </p>
  3628. </dd>
  3629. <dt><samp>tile-columns</samp></dt>
  3630. <dd><p>Selects how many columns of tiles to encode with.
  3631. </p>
  3632. </dd>
  3633. <dt><samp>rav1e-params</samp></dt>
  3634. <dd><p>Set rav1e options using a list of <var>key</var>=<var>value</var> pairs separated
  3635. by &quot;:&quot;. See <code>rav1e --help</code> for a list of options.
  3636. </p>
  3637. <p>For example to specify librav1e encoding options with <samp>-rav1e-params</samp>:
  3638. </p>
  3639. <div class="example">
  3640. <pre class="example">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  3641. </pre></div>
  3642. </dd>
  3643. </dl>
  3644. <a name="libaom_002dav1"></a>
  3645. <h3 class="section">9.5 libaom-av1<span class="pull-right"><a class="anchor hidden-xs" href="#libaom_002dav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaom_002dav1" aria-hidden="true">TOC</a></span></h3>
  3646. <p>libaom AV1 encoder wrapper.
  3647. </p>
  3648. <p>Requires the presence of the libaom headers and library during
  3649. configuration. You need to explicitly configure the build with
  3650. <code>--enable-libaom</code>.
  3651. </p>
  3652. <a name="Options-24"></a>
  3653. <h4 class="subsection">9.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-24" aria-hidden="true">TOC</a></span></h4>
  3654. <p>The wrapper supports the following standard libavcodec options:
  3655. </p>
  3656. <dl compact="compact">
  3657. <dt><samp>b</samp></dt>
  3658. <dd><p>Set bitrate target in bits/second. By default this will use
  3659. variable-bitrate mode. If <samp>maxrate</samp> and <samp>minrate</samp> are
  3660. also set to the same value then it will use constant-bitrate mode,
  3661. otherwise if <samp>crf</samp> is set as well then it will use
  3662. constrained-quality mode.
  3663. </p>
  3664. </dd>
  3665. <dt><samp>g keyint_min</samp></dt>
  3666. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  3667. key frames; if zero the output stream will be intra-only. The minimum
  3668. distance is ignored unless it is the same as the GOP size, in which case
  3669. key frames will always appear at a fixed interval. Not set by default,
  3670. so without this option the library has completely free choice about
  3671. where to place key frames.
  3672. </p>
  3673. </dd>
  3674. <dt><samp>qmin qmax</samp></dt>
  3675. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  3676. (warning: this does not match the quantiser values actually used by AV1
  3677. - divide by four to map real quantiser values to this range). Defaults
  3678. to min/max (no constraint).
  3679. </p>
  3680. </dd>
  3681. <dt><samp>minrate maxrate bufsize rc_init_occupancy</samp></dt>
  3682. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  3683. to unconstrained variable bitrate.
  3684. </p>
  3685. </dd>
  3686. <dt><samp>threads</samp></dt>
  3687. <dd><p>Set the number of threads to use while encoding. This may require the
  3688. <samp>tiles</samp> or <samp>row-mt</samp> options to also be set to actually
  3689. use the specified number of threads fully. Defaults to the number of
  3690. hardware threads supported by the host machine.
  3691. </p>
  3692. </dd>
  3693. <dt><samp>profile</samp></dt>
  3694. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  3695. the bit depth and chroma subsampling of the input.
  3696. </p>
  3697. </dd>
  3698. </dl>
  3699. <p>The wrapper also has some specific options:
  3700. </p>
  3701. <dl compact="compact">
  3702. <dt><samp>cpu-used</samp></dt>
  3703. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  3704. higher numbers indicating greater speed and lower quality. The default
  3705. value is 1, which will be slow and high quality.
  3706. </p>
  3707. </dd>
  3708. <dt><samp>auto-alt-ref</samp></dt>
  3709. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  3710. default of the library.
  3711. </p>
  3712. </dd>
  3713. <dt><samp>arnr-max-frames (<em>frames</em>)</samp></dt>
  3714. <dd><p>Set altref noise reduction max frame count. Default is -1.
  3715. </p>
  3716. </dd>
  3717. <dt><samp>arnr-strength (<em>strength</em>)</samp></dt>
  3718. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  3719. </p>
  3720. </dd>
  3721. <dt><samp>aq-mode (<em>aq-mode</em>)</samp></dt>
  3722. <dd><p>Set adaptive quantization mode. Possible values:
  3723. </p>
  3724. <dl compact="compact">
  3725. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  3726. <dd><p>Disabled.
  3727. </p>
  3728. </dd>
  3729. <dt>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</dt>
  3730. <dd><p>Variance-based.
  3731. </p>
  3732. </dd>
  3733. <dt>&lsquo;<samp>complexity (<em>2</em>)</samp>&rsquo;</dt>
  3734. <dd><p>Complexity-based.
  3735. </p>
  3736. </dd>
  3737. <dt>&lsquo;<samp>cyclic (<em>3</em>)</samp>&rsquo;</dt>
  3738. <dd><p>Cyclic refresh.
  3739. </p></dd>
  3740. </dl>
  3741. </dd>
  3742. <dt><samp>tune (<em>tune</em>)</samp></dt>
  3743. <dd><p>Set the distortion metric the encoder is tuned with. Default is <code>psnr</code>.
  3744. </p>
  3745. <dl compact="compact">
  3746. <dt>&lsquo;<samp>psnr (<em>0</em>)</samp>&rsquo;</dt>
  3747. <dt>&lsquo;<samp>ssim (<em>1</em>)</samp>&rsquo;</dt>
  3748. </dl>
  3749. </dd>
  3750. <dt><samp>lag-in-frames</samp></dt>
  3751. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  3752. at any one time for lookahead purposes. Defaults to the internal
  3753. default of the library.
  3754. </p>
  3755. </dd>
  3756. <dt><samp>error-resilience</samp></dt>
  3757. <dd><p>Enable error resilience features:
  3758. </p><dl compact="compact">
  3759. <dt><samp>default</samp></dt>
  3760. <dd><p>Improve resilience against losses of whole frames.
  3761. </p></dd>
  3762. </dl>
  3763. <p>Not enabled by default.
  3764. </p>
  3765. </dd>
  3766. <dt><samp>crf</samp></dt>
  3767. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  3768. and constrained-quality (with maximum bitrate target) modes. Valid
  3769. range is 0 to 63, higher numbers indicating lower quality and smaller
  3770. output size. Only used if set; by default only the bitrate target is
  3771. used.
  3772. </p>
  3773. </dd>
  3774. <dt><samp>static-thresh</samp></dt>
  3775. <dd><p>Set a change threshold on blocks below which they will be skipped by
  3776. the encoder. Defined in arbitrary units as a nonnegative integer,
  3777. defaulting to zero (no blocks are skipped).
  3778. </p>
  3779. </dd>
  3780. <dt><samp>drop-threshold</samp></dt>
  3781. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  3782. Defined as a percentage of the target buffer - when the rate control
  3783. buffer falls below this percentage, frames will be dropped until it
  3784. has refilled above the threshold. Defaults to zero (no frames are
  3785. dropped).
  3786. </p>
  3787. </dd>
  3788. <dt><samp>denoise-noise-level (<em>level</em>)</samp></dt>
  3789. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  3790. this option is not set or set to 0.
  3791. </p>
  3792. </dd>
  3793. <dt><samp>denoise-block-size (<em>pixels</em>)</samp></dt>
  3794. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  3795. uses the default value of 32.
  3796. </p>
  3797. </dd>
  3798. <dt><samp>undershoot-pct (<em>pct</em>)</samp></dt>
  3799. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  3800. Default is -1.
  3801. </p>
  3802. </dd>
  3803. <dt><samp>overshoot-pct (<em>pct</em>)</samp></dt>
  3804. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  3805. Default is -1.
  3806. </p>
  3807. </dd>
  3808. <dt><samp>minsection-pct (<em>pct</em>)</samp></dt>
  3809. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  3810. is not set, the libaomenc wrapper computes it as follows: <code>(minrate * 100 / bitrate)</code>.
  3811. Range is -1 to 100. Default is -1 (unset).
  3812. </p>
  3813. </dd>
  3814. <dt><samp>maxsection-pct (<em>pct</em>)</samp></dt>
  3815. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  3816. is not set, the libaomenc wrapper computes it as follows: <code>(maxrate * 100 / bitrate)</code>.
  3817. Range is -1 to 5000. Default is -1 (unset).
  3818. </p>
  3819. </dd>
  3820. <dt><samp>frame-parallel (<em>boolean</em>)</samp></dt>
  3821. <dd><p>Enable frame parallel decodability features. Default is true.
  3822. </p>
  3823. </dd>
  3824. <dt><samp>tiles</samp></dt>
  3825. <dd><p>Set the number of tiles to encode the input video with, as columns x
  3826. rows. Larger numbers allow greater parallelism in both encoding and
  3827. decoding, but may decrease coding efficiency. Defaults to the minimum
  3828. number of tiles required by the size of the input video (this is 1x1
  3829. (that is, a single tile) for sizes up to and including 4K).
  3830. </p>
  3831. </dd>
  3832. <dt><samp>tile-columns tile-rows</samp></dt>
  3833. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  3834. Provided for compatibility with libvpx/VP9.
  3835. </p>
  3836. </dd>
  3837. <dt><samp>row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp></dt>
  3838. <dd><p>Enable row based multi-threading. Disabled by default.
  3839. </p>
  3840. </dd>
  3841. <dt><samp>enable-cdef (<em>boolean</em>)</samp></dt>
  3842. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  3843. encoder enables CDEF by default.
  3844. </p>
  3845. </dd>
  3846. <dt><samp>enable-restoration (<em>boolean</em>)</samp></dt>
  3847. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  3848. </p>
  3849. </dd>
  3850. <dt><samp>enable-global-motion (<em>boolean</em>)</samp></dt>
  3851. <dd><p>Enable the use of global motion for block prediction. Default is true.
  3852. </p>
  3853. </dd>
  3854. <dt><samp>enable-intrabc (<em>boolean</em>)</samp></dt>
  3855. <dd><p>Enable block copy mode for intra block prediction. This mode is
  3856. useful for screen content. Default is true.
  3857. </p>
  3858. </dd>
  3859. <dt><samp>enable-rect-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3860. <dd><p>Enable rectangular partitions. Default is true.
  3861. </p>
  3862. </dd>
  3863. <dt><samp>enable-1to4-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3864. <dd><p>Enable 1:4/4:1 partitions. Default is true.
  3865. </p>
  3866. </dd>
  3867. <dt><samp>enable-ab-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3868. <dd><p>Enable AB shape partitions. Default is true.
  3869. </p>
  3870. </dd>
  3871. <dt><samp>enable-angle-delta (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3872. <dd><p>Enable angle delta intra prediction. Default is true.
  3873. </p>
  3874. </dd>
  3875. <dt><samp>enable-cfl-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3876. <dd><p>Enable chroma predicted from luma intra prediction. Default is true.
  3877. </p>
  3878. </dd>
  3879. <dt><samp>enable-filter-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3880. <dd><p>Enable filter intra predictor. Default is true.
  3881. </p>
  3882. </dd>
  3883. <dt><samp>enable-intra-edge-filter (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3884. <dd><p>Enable intra edge filter. Default is true.
  3885. </p>
  3886. </dd>
  3887. <dt><samp>enable-smooth-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3888. <dd><p>Enable smooth intra prediction mode. Default is true.
  3889. </p>
  3890. </dd>
  3891. <dt><samp>enable-paeth-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3892. <dd><p>Enable paeth predictor in intra prediction. Default is true.
  3893. </p>
  3894. </dd>
  3895. <dt><samp>enable-palette (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3896. <dd><p>Enable palette prediction mode. Default is true.
  3897. </p>
  3898. </dd>
  3899. <dt><samp>enable-flip-idtx (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3900. <dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
  3901. FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
  3902. V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
  3903. </p>
  3904. </dd>
  3905. <dt><samp>enable-tx64 (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3906. <dd><p>Enable 64-pt transform. Default is true.
  3907. </p>
  3908. </dd>
  3909. <dt><samp>reduced-tx-type-set (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3910. <dd><p>Use reduced set of transform types. Default is false.
  3911. </p>
  3912. </dd>
  3913. <dt><samp>use-intra-dct-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3914. <dd><p>Use DCT only for INTRA modes. Default is false.
  3915. </p>
  3916. </dd>
  3917. <dt><samp>use-inter-dct-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3918. <dd><p>Use DCT only for INTER modes. Default is false.
  3919. </p>
  3920. </dd>
  3921. <dt><samp>use-intra-default-tx-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3922. <dd><p>Use Default-transform only for INTRA modes. Default is false.
  3923. </p>
  3924. </dd>
  3925. <dt><samp>enable-ref-frame-mvs (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3926. <dd><p>Enable temporal mv prediction. Default is true.
  3927. </p>
  3928. </dd>
  3929. <dt><samp>enable-reduced-reference-set (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3930. <dd><p>Use reduced set of single and compound references. Default is false.
  3931. </p>
  3932. </dd>
  3933. <dt><samp>enable-obmc (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3934. <dd><p>Enable obmc. Default is true.
  3935. </p>
  3936. </dd>
  3937. <dt><samp>enable-dual-filter (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3938. <dd><p>Enable dual filter. Default is true.
  3939. </p>
  3940. </dd>
  3941. <dt><samp>enable-diff-wtd-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3942. <dd><p>Enable difference-weighted compound. Default is true.
  3943. </p>
  3944. </dd>
  3945. <dt><samp>enable-dist-wtd-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3946. <dd><p>Enable distance-weighted compound. Default is true.
  3947. </p>
  3948. </dd>
  3949. <dt><samp>enable-onesided-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3950. <dd><p>Enable one sided compound. Default is true.
  3951. </p>
  3952. </dd>
  3953. <dt><samp>enable-interinter-wedge (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3954. <dd><p>Enable interinter wedge compound. Default is true.
  3955. </p>
  3956. </dd>
  3957. <dt><samp>enable-interintra-wedge (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3958. <dd><p>Enable interintra wedge compound. Default is true.
  3959. </p>
  3960. </dd>
  3961. <dt><samp>enable-masked-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3962. <dd><p>Enable masked compound. Default is true.
  3963. </p>
  3964. </dd>
  3965. <dt><samp>enable-interintra-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3966. <dd><p>Enable interintra compound. Default is true.
  3967. </p>
  3968. </dd>
  3969. <dt><samp>enable-smooth-interintra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  3970. <dd><p>Enable smooth interintra mode. Default is true.
  3971. </p>
  3972. </dd>
  3973. <dt><samp>aom-params</samp></dt>
  3974. <dd><p>Set libaom options using a list of <var>key</var>=<var>value</var> pairs separated
  3975. by &quot;:&quot;. For a list of supported options, see <code>aomenc --help</code> under the
  3976. section &quot;AV1 Specific Options&quot;.
  3977. </p>
  3978. <p>For example to specify libaom encoding options with <samp>-aom-params</samp>:
  3979. </p>
  3980. <div class="example">
  3981. <pre class="example">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
  3982. </pre></div>
  3983. </dd>
  3984. </dl>
  3985. <a name="libsvtav1"></a>
  3986. <h3 class="section">9.6 libsvtav1<span class="pull-right"><a class="anchor hidden-xs" href="#libsvtav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libsvtav1" aria-hidden="true">TOC</a></span></h3>
  3987. <p>SVT-AV1 encoder wrapper.
  3988. </p>
  3989. <p>Requires the presence of the SVT-AV1 headers and library during configuration.
  3990. You need to explicitly configure the build with <code>--enable-libsvtav1</code>.
  3991. </p>
  3992. <a name="Options-25"></a>
  3993. <h4 class="subsection">9.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-25" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-25" aria-hidden="true">TOC</a></span></h4>
  3994. <dl compact="compact">
  3995. <dt><samp>profile</samp></dt>
  3996. <dd><p>Set the encoding profile.
  3997. </p>
  3998. </dd>
  3999. <dt><samp>level</samp></dt>
  4000. <dd><p>Set the operating point level.
  4001. </p>
  4002. </dd>
  4003. <dt><samp>tier</samp></dt>
  4004. <dd><p>Set the operating point tier.
  4005. </p>
  4006. </dd>
  4007. <dt><samp>rc</samp></dt>
  4008. <dd><p>Set the rate control mode to use.
  4009. </p>
  4010. <p>Possible modes:
  4011. </p><dl compact="compact">
  4012. <dt><samp>cqp</samp></dt>
  4013. <dd><p>Constant quantizer: use fixed values of qindex (dependent on the frame type)
  4014. throughout the stream. This mode is the default.
  4015. </p>
  4016. </dd>
  4017. <dt><samp>vbr</samp></dt>
  4018. <dd><p>Variable bitrate: use a target bitrate for the whole stream.
  4019. </p>
  4020. </dd>
  4021. <dt><samp>cvbr</samp></dt>
  4022. <dd><p>Constrained variable bitrate: use a target bitrate for each GOP.
  4023. </p></dd>
  4024. </dl>
  4025. </dd>
  4026. <dt><samp>qmax</samp></dt>
  4027. <dd><p>Set the maximum quantizer to use when using a bitrate mode.
  4028. </p>
  4029. </dd>
  4030. <dt><samp>qmin</samp></dt>
  4031. <dd><p>Set the minimum quantizer to use when using a bitrate mode.
  4032. </p>
  4033. </dd>
  4034. <dt><samp>qp</samp></dt>
  4035. <dd><p>Set the quantizer used in cqp rate control mode (0-63).
  4036. </p>
  4037. </dd>
  4038. <dt><samp>sc_detection</samp></dt>
  4039. <dd><p>Enable scene change detection.
  4040. </p>
  4041. </dd>
  4042. <dt><samp>la_depth</samp></dt>
  4043. <dd><p>Set number of frames to look ahead (0-120).
  4044. </p>
  4045. </dd>
  4046. <dt><samp>preset</samp></dt>
  4047. <dd><p>Set the quality-speed tradeoff, in the range 0 to 8. Higher values are
  4048. faster but lower quality. Defaults to 8 (highest speed).
  4049. </p>
  4050. </dd>
  4051. <dt><samp>tile_rows</samp></dt>
  4052. <dd><p>Set log2 of the number of rows of tiles to use (0-6).
  4053. </p>
  4054. </dd>
  4055. <dt><samp>tile_columns</samp></dt>
  4056. <dd><p>Set log2 of the number of columns of tiles to use (0-4).
  4057. </p>
  4058. </dd>
  4059. </dl>
  4060. <a name="libkvazaar"></a>
  4061. <h3 class="section">9.7 libkvazaar<span class="pull-right"><a class="anchor hidden-xs" href="#libkvazaar" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libkvazaar" aria-hidden="true">TOC</a></span></h3>
  4062. <p>Kvazaar H.265/HEVC encoder.
  4063. </p>
  4064. <p>Requires the presence of the libkvazaar headers and library during
  4065. configuration. You need to explicitly configure the build with
  4066. <samp>--enable-libkvazaar</samp>.
  4067. </p>
  4068. <a name="Options-26"></a>
  4069. <h4 class="subsection">9.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-26" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-26" aria-hidden="true">TOC</a></span></h4>
  4070. <dl compact="compact">
  4071. <dt><samp>b</samp></dt>
  4072. <dd><p>Set target video bitrate in bit/s and enable rate control.
  4073. </p>
  4074. </dd>
  4075. <dt><samp>kvazaar-params</samp></dt>
  4076. <dd><p>Set kvazaar parameters as a list of <var>name</var>=<var>value</var> pairs separated
  4077. by commas (,). See kvazaar documentation for a list of options.
  4078. </p>
  4079. </dd>
  4080. </dl>
  4081. <a name="libopenh264"></a>
  4082. <h3 class="section">9.8 libopenh264<span class="pull-right"><a class="anchor hidden-xs" href="#libopenh264" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopenh264" aria-hidden="true">TOC</a></span></h3>
  4083. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  4084. </p>
  4085. <p>This encoder requires the presence of the libopenh264 headers and
  4086. library during configuration. You need to explicitly configure the
  4087. build with <code>--enable-libopenh264</code>. The library is detected using
  4088. <code>pkg-config</code>.
  4089. </p>
  4090. <p>For more information about the library see
  4091. <a href="http://www.openh264.org">http://www.openh264.org</a>.
  4092. </p>
  4093. <a name="Options-27"></a>
  4094. <h4 class="subsection">9.8.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-27" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-27" aria-hidden="true">TOC</a></span></h4>
  4095. <p>The following FFmpeg global options affect the configurations of the
  4096. libopenh264 encoder.
  4097. </p>
  4098. <dl compact="compact">
  4099. <dt><samp>b</samp></dt>
  4100. <dd><p>Set the bitrate (as a number of bits per second).
  4101. </p>
  4102. </dd>
  4103. <dt><samp>g</samp></dt>
  4104. <dd><p>Set the GOP size.
  4105. </p>
  4106. </dd>
  4107. <dt><samp>maxrate</samp></dt>
  4108. <dd><p>Set the max bitrate (as a number of bits per second).
  4109. </p>
  4110. </dd>
  4111. <dt><samp>flags +global_header</samp></dt>
  4112. <dd><p>Set global header in the bitstream.
  4113. </p>
  4114. </dd>
  4115. <dt><samp>slices</samp></dt>
  4116. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  4117. is 0. This is only used when <samp>slice_mode</samp> is set to
  4118. &lsquo;<samp>fixed</samp>&rsquo;.
  4119. </p>
  4120. </dd>
  4121. <dt><samp>slice_mode</samp></dt>
  4122. <dd><p>Set slice mode. Can assume one of the following possible values:
  4123. </p>
  4124. <dl compact="compact">
  4125. <dt>&lsquo;<samp>fixed</samp>&rsquo;</dt>
  4126. <dd><p>a fixed number of slices
  4127. </p></dd>
  4128. <dt>&lsquo;<samp>rowmb</samp>&rsquo;</dt>
  4129. <dd><p>one slice per row of macroblocks
  4130. </p></dd>
  4131. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  4132. <dd><p>automatic number of slices according to number of threads
  4133. </p></dd>
  4134. <dt>&lsquo;<samp>dyn</samp>&rsquo;</dt>
  4135. <dd><p>dynamic slicing
  4136. </p></dd>
  4137. </dl>
  4138. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  4139. </p>
  4140. </dd>
  4141. <dt><samp>loopfilter</samp></dt>
  4142. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4143. set a value of 0.
  4144. </p>
  4145. </dd>
  4146. <dt><samp>profile</samp></dt>
  4147. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp>main</samp>&rsquo; enable
  4148. CABAC (set the <code>SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4149. </p>
  4150. </dd>
  4151. <dt><samp>max_nal_size</samp></dt>
  4152. <dd><p>Set maximum NAL size in bytes.
  4153. </p>
  4154. </dd>
  4155. <dt><samp>allow_skip_frames</samp></dt>
  4156. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4157. </p></dd>
  4158. </dl>
  4159. <a name="libtheora"></a>
  4160. <h3 class="section">9.9 libtheora<span class="pull-right"><a class="anchor hidden-xs" href="#libtheora" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtheora" aria-hidden="true">TOC</a></span></h3>
  4161. <p>libtheora Theora encoder wrapper.
  4162. </p>
  4163. <p>Requires the presence of the libtheora headers and library during
  4164. configuration. You need to explicitly configure the build with
  4165. <code>--enable-libtheora</code>.
  4166. </p>
  4167. <p>For more information about the libtheora project see
  4168. <a href="http://www.theora.org/">http://www.theora.org/</a>.
  4169. </p>
  4170. <a name="Options-28"></a>
  4171. <h4 class="subsection">9.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-28" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-28" aria-hidden="true">TOC</a></span></h4>
  4172. <p>The following global options are mapped to internal libtheora options
  4173. which affect the quality and the bitrate of the encoded stream.
  4174. </p>
  4175. <dl compact="compact">
  4176. <dt><samp>b</samp></dt>
  4177. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4178. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4179. </p>
  4180. </dd>
  4181. <dt><samp>flags</samp></dt>
  4182. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4183. <samp>qscale</samp> flag, and to enable the <code>pass1</code> and <code>pass2</code>
  4184. modes.
  4185. </p>
  4186. </dd>
  4187. <dt><samp>g</samp></dt>
  4188. <dd><p>Set the GOP size.
  4189. </p>
  4190. </dd>
  4191. <dt><samp>global_quality</samp></dt>
  4192. <dd><p>Set the global quality as an integer in lambda units.
  4193. </p>
  4194. <p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>. The
  4195. value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
  4196. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4197. value in the native libtheora range [0-63]. A higher value corresponds
  4198. to a higher quality.
  4199. </p>
  4200. </dd>
  4201. <dt><samp>q</samp></dt>
  4202. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4203. quality value as a double floating point value in QP units.
  4204. </p>
  4205. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4206. to get a value in the native libtheora range [0-63].
  4207. </p>
  4208. <p>This option is valid only using the <code>ffmpeg</code> command-line
  4209. tool. For library interface users, use <samp>global_quality</samp>.
  4210. </p></dd>
  4211. </dl>
  4212. <a name="Examples-1"></a>
  4213. <h4 class="subsection">9.9.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples-1" aria-hidden="true">TOC</a></span></h4>
  4214. <ul>
  4215. <li> Set maximum constant quality (VBR) encoding with <code>ffmpeg</code>:
  4216. <div class="example">
  4217. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4218. </pre></div>
  4219. </li><li> Use <code>ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4220. <div class="example">
  4221. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4222. </pre></div>
  4223. </li></ul>
  4224. <a name="libvpx"></a>
  4225. <h3 class="section">9.10 libvpx<span class="pull-right"><a class="anchor hidden-xs" href="#libvpx" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvpx" aria-hidden="true">TOC</a></span></h3>
  4226. <p>VP8/VP9 format supported through libvpx.
  4227. </p>
  4228. <p>Requires the presence of the libvpx headers and library during configuration.
  4229. You need to explicitly configure the build with <code>--enable-libvpx</code>.
  4230. </p>
  4231. <a name="Options-29"></a>
  4232. <h4 class="subsection">9.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-29" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-29" aria-hidden="true">TOC</a></span></h4>
  4233. <p>The following options are supported by the libvpx wrapper. The
  4234. <code>vpxenc</code>-equivalent options or values are listed in parentheses
  4235. for easy migration.
  4236. </p>
  4237. <p>To reduce the duplication of documentation, only the private options
  4238. and some others requiring special attention are documented here. For
  4239. the documentation of the undocumented generic options, see
  4240. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4241. </p>
  4242. <p>To get more documentation of the libvpx options, invoke the command
  4243. <code>ffmpeg -h encoder=libvpx</code>, <code>ffmpeg -h encoder=libvpx-vp9</code> or
  4244. <code>vpxenc --help</code>. Further information is available in the libvpx API
  4245. documentation.
  4246. </p>
  4247. <dl compact="compact">
  4248. <dt><samp>b (<em>target-bitrate</em>)</samp></dt>
  4249. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp>b</samp> option is
  4250. expressed in bits/s, while <code>vpxenc</code>&rsquo;s <samp>target-bitrate</samp> is in
  4251. kilobits/s.
  4252. </p>
  4253. </dd>
  4254. <dt><samp>g (<em>kf-max-dist</em>)</samp></dt>
  4255. <dt><samp>keyint_min (<em>kf-min-dist</em>)</samp></dt>
  4256. <dt><samp>qmin (<em>min-q</em>)</samp></dt>
  4257. <dt><samp>qmax (<em>max-q</em>)</samp></dt>
  4258. <dt><samp>bufsize (<em>buf-sz</em>, <em>buf-optimal-sz</em>)</samp></dt>
  4259. <dd><p>Set ratecontrol buffer size (in bits). Note <code>vpxenc</code>&rsquo;s options are
  4260. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4261. <code>buf-sz = bufsize * 1000 / bitrate</code>,
  4262. <code>buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4263. </p>
  4264. </dd>
  4265. <dt><samp>rc_init_occupancy (<em>buf-initial-sz</em>)</samp></dt>
  4266. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4267. starts. Note <code>vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4268. wrapper converts this value as follows:
  4269. <code>rc_init_occupancy * 1000 / bitrate</code>.
  4270. </p>
  4271. </dd>
  4272. <dt><samp>undershoot-pct</samp></dt>
  4273. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4274. </p>
  4275. </dd>
  4276. <dt><samp>overshoot-pct</samp></dt>
  4277. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4278. </p>
  4279. </dd>
  4280. <dt><samp>skip_threshold (<em>drop-frame</em>)</samp></dt>
  4281. <dt><samp>qcomp (<em>bias-pct</em>)</samp></dt>
  4282. <dt><samp>maxrate (<em>maxsection-pct</em>)</samp></dt>
  4283. <dd><p>Set GOP max bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4284. percentage of the target bitrate, the libvpx wrapper converts this value as
  4285. follows: <code>(maxrate * 100 / bitrate)</code>.
  4286. </p>
  4287. </dd>
  4288. <dt><samp>minrate (<em>minsection-pct</em>)</samp></dt>
  4289. <dd><p>Set GOP min bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4290. percentage of the target bitrate, the libvpx wrapper converts this value as
  4291. follows: <code>(minrate * 100 / bitrate)</code>.
  4292. </p>
  4293. </dd>
  4294. <dt><samp>minrate, maxrate, b <em>end-usage=cbr</em></samp></dt>
  4295. <dd><p><code>(minrate == maxrate == bitrate)</code>.
  4296. </p>
  4297. </dd>
  4298. <dt><samp>crf (<em>end-usage=cq</em>, <em>cq-level</em>)</samp></dt>
  4299. <dt><samp>tune (<em>tune</em>)</samp></dt>
  4300. <dd><dl compact="compact">
  4301. <dt>&lsquo;<samp>psnr (<em>psnr</em>)</samp>&rsquo;</dt>
  4302. <dt>&lsquo;<samp>ssim (<em>ssim</em>)</samp>&rsquo;</dt>
  4303. </dl>
  4304. </dd>
  4305. <dt><samp>quality, deadline (<em>deadline</em>)</samp></dt>
  4306. <dd><dl compact="compact">
  4307. <dt>&lsquo;<samp>best</samp>&rsquo;</dt>
  4308. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4309. avoided as it may give worse quality output than good.
  4310. </p></dd>
  4311. <dt>&lsquo;<samp>good</samp>&rsquo;</dt>
  4312. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4313. when used with the <samp>cpu-used</samp> option.
  4314. </p></dd>
  4315. <dt>&lsquo;<samp>realtime</samp>&rsquo;</dt>
  4316. <dd><p>Use realtime quality deadline.
  4317. </p></dd>
  4318. </dl>
  4319. </dd>
  4320. <dt><samp>speed, cpu-used (<em>cpu-used</em>)</samp></dt>
  4321. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4322. of quality.
  4323. </p>
  4324. </dd>
  4325. <dt><samp>nr (<em>noise-sensitivity</em>)</samp></dt>
  4326. <dt><samp>static-thresh</samp></dt>
  4327. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4328. encoder.
  4329. </p>
  4330. </dd>
  4331. <dt><samp>slices (<em>token-parts</em>)</samp></dt>
  4332. <dd><p>Note that FFmpeg&rsquo;s <samp>slices</samp> option gives the total number of partitions,
  4333. while <code>vpxenc</code>&rsquo;s <samp>token-parts</samp> is given as
  4334. <code>log2(partitions)</code>.
  4335. </p>
  4336. </dd>
  4337. <dt><samp>max-intra-rate</samp></dt>
  4338. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4339. means unlimited.
  4340. </p>
  4341. </dd>
  4342. <dt><samp>force_key_frames</samp></dt>
  4343. <dd><p><code>VPX_EFLAG_FORCE_KF</code>
  4344. </p>
  4345. </dd>
  4346. <dt><samp>Alternate reference frame related</samp></dt>
  4347. <dd><dl compact="compact">
  4348. <dt><samp>auto-alt-ref</samp></dt>
  4349. <dd><p>Enable use of alternate reference frames (2-pass only).
  4350. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4351. </p></dd>
  4352. <dt><samp>arnr-maxframes</samp></dt>
  4353. <dd><p>Set altref noise reduction max frame count.
  4354. </p></dd>
  4355. <dt><samp>arnr-type</samp></dt>
  4356. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4357. </p></dd>
  4358. <dt><samp>arnr-strength</samp></dt>
  4359. <dd><p>Set altref noise reduction filter strength.
  4360. </p></dd>
  4361. <dt><samp>rc-lookahead, lag-in-frames (<em>lag-in-frames</em>)</samp></dt>
  4362. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4363. </p></dd>
  4364. </dl>
  4365. </dd>
  4366. <dt><samp>error-resilient</samp></dt>
  4367. <dd><p>Enable error resiliency features.
  4368. </p>
  4369. </dd>
  4370. <dt><samp>sharpness <var>integer</var></samp></dt>
  4371. <dd><p>Increase sharpness at the expense of lower PSNR.
  4372. The valid range is [0, 7].
  4373. </p>
  4374. </dd>
  4375. <dt><samp>ts-parameters</samp></dt>
  4376. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  4377. key=value pairs. For example, to specify temporal scalability parameters
  4378. with <code>ffmpeg</code>:
  4379. </p><div class="example">
  4380. <pre class="example">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  4381. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  4382. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  4383. </pre></div>
  4384. <p>Below is a brief explanation of each of the parameters, please
  4385. refer to <code>struct vpx_codec_enc_cfg</code> in <code>vpx/vpx_encoder.h</code> for more
  4386. details.
  4387. </p><dl compact="compact">
  4388. <dt><samp>ts_number_layers</samp></dt>
  4389. <dd><p>Number of temporal coding layers.
  4390. </p></dd>
  4391. <dt><samp>ts_target_bitrate</samp></dt>
  4392. <dd><p>Target bitrate for each temporal layer (in kbps).
  4393. (bitrate should be inclusive of the lower temporal layer).
  4394. </p></dd>
  4395. <dt><samp>ts_rate_decimator</samp></dt>
  4396. <dd><p>Frame rate decimation factor for each temporal layer.
  4397. </p></dd>
  4398. <dt><samp>ts_periodicity</samp></dt>
  4399. <dd><p>Length of the sequence defining frame temporal layer membership.
  4400. </p></dd>
  4401. <dt><samp>ts_layer_id</samp></dt>
  4402. <dd><p>Template defining the membership of frames to temporal layers.
  4403. </p></dd>
  4404. <dt><samp>ts_layering_mode</samp></dt>
  4405. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  4406. Currently supports the following options.
  4407. </p><dl compact="compact">
  4408. <dt><samp>0</samp></dt>
  4409. <dd><p>No temporal layering flags are provided internally,
  4410. relies on flags being passed in using <code>metadata</code> field in <code>AVFrame</code>
  4411. with following keys.
  4412. </p><dl compact="compact">
  4413. <dt><samp>vp8-flags</samp></dt>
  4414. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  4415. the current frame.
  4416. Refer to function <code>vpx_codec_encode</code> in <code>vpx/vpx_encoder.h</code> for more
  4417. details.
  4418. </p></dd>
  4419. <dt><samp>temporal_id</samp></dt>
  4420. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  4421. </p></dd>
  4422. </dl>
  4423. </dd>
  4424. <dt><samp>2</samp></dt>
  4425. <dd><p>Two temporal layers. 0-1...
  4426. </p></dd>
  4427. <dt><samp>3</samp></dt>
  4428. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  4429. </p></dd>
  4430. <dt><samp>4</samp></dt>
  4431. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  4432. the two temporal layer 2 frames within the temporal period.
  4433. </p></dd>
  4434. </dl>
  4435. </dd>
  4436. </dl>
  4437. </dd>
  4438. <dt><samp>VP9-specific options</samp></dt>
  4439. <dd><dl compact="compact">
  4440. <dt><samp>lossless</samp></dt>
  4441. <dd><p>Enable lossless mode.
  4442. </p></dd>
  4443. <dt><samp>tile-columns</samp></dt>
  4444. <dd><p>Set number of tile columns to use. Note this is given as
  4445. <code>log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  4446. setting the <samp>tile-columns</samp> option to 3.
  4447. </p></dd>
  4448. <dt><samp>tile-rows</samp></dt>
  4449. <dd><p>Set number of tile rows to use. Note this is given as <code>log2(tile_rows)</code>.
  4450. For example, 4 tile rows would be requested by setting the <samp>tile-rows</samp>
  4451. option to 2.
  4452. </p></dd>
  4453. <dt><samp>frame-parallel</samp></dt>
  4454. <dd><p>Enable frame parallel decodability features.
  4455. </p></dd>
  4456. <dt><samp>aq-mode</samp></dt>
  4457. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  4458. cyclic refresh, 4: equator360).
  4459. </p></dd>
  4460. <dt><samp>colorspace <em>color-space</em></samp></dt>
  4461. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  4462. colorspaces:
  4463. </p><dl compact="compact">
  4464. <dt><samp>&lsquo;<samp>rgb</samp>&rsquo; <em>sRGB</em></samp></dt>
  4465. <dt><samp>&lsquo;<samp>bt709</samp>&rsquo; <em>bt709</em></samp></dt>
  4466. <dt><samp>&lsquo;<samp>unspecified</samp>&rsquo; <em>unknown</em></samp></dt>
  4467. <dt><samp>&lsquo;<samp>bt470bg</samp>&rsquo; <em>bt601</em></samp></dt>
  4468. <dt><samp>&lsquo;<samp>smpte170m</samp>&rsquo; <em>smpte170</em></samp></dt>
  4469. <dt><samp>&lsquo;<samp>smpte240m</samp>&rsquo; <em>smpte240</em></samp></dt>
  4470. <dt><samp>&lsquo;<samp>bt2020_ncl</samp>&rsquo; <em>bt2020</em></samp></dt>
  4471. </dl>
  4472. </dd>
  4473. <dt><samp>row-mt <var>boolean</var></samp></dt>
  4474. <dd><p>Enable row based multi-threading.
  4475. </p></dd>
  4476. <dt><samp>tune-content</samp></dt>
  4477. <dd><p>Set content type: default (0), screen (1), film (2).
  4478. </p></dd>
  4479. <dt><samp>corpus-complexity</samp></dt>
  4480. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  4481. midpoint is passed in rather than calculated for a specific clip or chunk.
  4482. </p>
  4483. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  4484. </p></dd>
  4485. <dt><samp>enable-tpl <var>boolean</var></samp></dt>
  4486. <dd><p>Enable temporal dependency model.
  4487. </p></dd>
  4488. <dt><samp>ref-frame-config</samp></dt>
  4489. <dd><p>Using per-frame metadata, set members of the structure <code>vpx_svc_ref_frame_config_t</code> in <code>vpx/vp8cx.h</code> to fine-control referencing schemes and frame buffer management.
  4490. <br>Use a :-separated list of key=value pairs.
  4491. For example,
  4492. </p><div class="example">
  4493. <pre class="example">av_dict_set(&amp;av_frame-&gt;metadata, &quot;ref-frame-config&quot;, \
  4494. &quot;rfc_update_buffer_slot=7:rfc_lst_fb_idx=0:rfc_gld_fb_idx=1:rfc_alt_fb_idx=2:rfc_reference_last=0:rfc_reference_golden=0:rfc_reference_alt_ref=0&quot;);
  4495. </pre></div>
  4496. <dl compact="compact">
  4497. <dt><samp>rfc_update_buffer_slot</samp></dt>
  4498. <dd><p>Indicates the buffer slot number to update
  4499. </p></dd>
  4500. <dt><samp>rfc_update_last</samp></dt>
  4501. <dd><p>Indicates whether to update the LAST frame
  4502. </p></dd>
  4503. <dt><samp>rfc_update_golden</samp></dt>
  4504. <dd><p>Indicates whether to update GOLDEN frame
  4505. </p></dd>
  4506. <dt><samp>rfc_update_alt_ref</samp></dt>
  4507. <dd><p>Indicates whether to update ALT_REF frame
  4508. </p></dd>
  4509. <dt><samp>rfc_lst_fb_idx</samp></dt>
  4510. <dd><p>LAST frame buffer index
  4511. </p></dd>
  4512. <dt><samp>rfc_gld_fb_idx</samp></dt>
  4513. <dd><p>GOLDEN frame buffer index
  4514. </p></dd>
  4515. <dt><samp>rfc_alt_fb_idx</samp></dt>
  4516. <dd><p>ALT_REF frame buffer index
  4517. </p></dd>
  4518. <dt><samp>rfc_reference_last</samp></dt>
  4519. <dd><p>Indicates whether to reference LAST frame
  4520. </p></dd>
  4521. <dt><samp>rfc_reference_golden</samp></dt>
  4522. <dd><p>Indicates whether to reference GOLDEN frame
  4523. </p></dd>
  4524. <dt><samp>rfc_reference_alt_ref</samp></dt>
  4525. <dd><p>Indicates whether to reference ALT_REF frame
  4526. </p></dd>
  4527. <dt><samp>rfc_reference_duration</samp></dt>
  4528. <dd><p>Indicates frame duration
  4529. </p></dd>
  4530. </dl>
  4531. </dd>
  4532. </dl>
  4533. </dd>
  4534. </dl>
  4535. <p>For more information about libvpx see:
  4536. <a href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  4537. </p>
  4538. <a name="libwebp"></a>
  4539. <h3 class="section">9.11 libwebp<span class="pull-right"><a class="anchor hidden-xs" href="#libwebp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libwebp" aria-hidden="true">TOC</a></span></h3>
  4540. <p>libwebp WebP Image encoder wrapper
  4541. </p>
  4542. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  4543. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  4544. frame. Lossless images are a separate codec developed by Google.
  4545. </p>
  4546. <a name="Pixel-Format"></a>
  4547. <h4 class="subsection">9.11.1 Pixel Format<span class="pull-right"><a class="anchor hidden-xs" href="#Pixel-Format" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Pixel-Format" aria-hidden="true">TOC</a></span></h4>
  4548. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  4549. to limitations of the format and libwebp. Alpha is supported for either mode.
  4550. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  4551. passed in for encoding lossless, the pixel format will automatically be
  4552. converted using functions from libwebp. This is not ideal and is done only for
  4553. convenience.
  4554. </p>
  4555. <a name="Options-30"></a>
  4556. <h4 class="subsection">9.11.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-30" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-30" aria-hidden="true">TOC</a></span></h4>
  4557. <dl compact="compact">
  4558. <dt><samp>-lossless <var>boolean</var></samp></dt>
  4559. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  4560. </p>
  4561. </dd>
  4562. <dt><samp>-compression_level <var>integer</var></samp></dt>
  4563. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  4564. for a given size at the cost of increased encoding time. For lossless, this is
  4565. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  4566. encoding time. More specifically, it controls the number of extra algorithms
  4567. and compression tools used, and varies the combination of these tools. This
  4568. maps to the <var>method</var> option in libwebp. The valid range is 0 to 6.
  4569. Default is 4.
  4570. </p>
  4571. </dd>
  4572. <dt><samp>-qscale <var>float</var></samp></dt>
  4573. <dd><p>For lossy encoding, this controls image quality, 0 to 100. For lossless
  4574. encoding, this controls the effort and time spent at compressing more. The
  4575. default value is 75. Note that for usage via libavcodec, this option is called
  4576. <var>global_quality</var> and must be multiplied by <var>FF_QP2LAMBDA</var>.
  4577. </p>
  4578. </dd>
  4579. <dt><samp>-preset <var>type</var></samp></dt>
  4580. <dd><p>Configuration preset. This does some automatic settings based on the general
  4581. type of the image.
  4582. </p><dl compact="compact">
  4583. <dt><samp>none</samp></dt>
  4584. <dd><p>Do not use a preset.
  4585. </p></dd>
  4586. <dt><samp>default</samp></dt>
  4587. <dd><p>Use the encoder default.
  4588. </p></dd>
  4589. <dt><samp>picture</samp></dt>
  4590. <dd><p>Digital picture, like portrait, inner shot
  4591. </p></dd>
  4592. <dt><samp>photo</samp></dt>
  4593. <dd><p>Outdoor photograph, with natural lighting
  4594. </p></dd>
  4595. <dt><samp>drawing</samp></dt>
  4596. <dd><p>Hand or line drawing, with high-contrast details
  4597. </p></dd>
  4598. <dt><samp>icon</samp></dt>
  4599. <dd><p>Small-sized colorful images
  4600. </p></dd>
  4601. <dt><samp>text</samp></dt>
  4602. <dd><p>Text-like
  4603. </p></dd>
  4604. </dl>
  4605. </dd>
  4606. </dl>
  4607. <a name="libx264_002c-libx264rgb"></a>
  4608. <h3 class="section">9.12 libx264, libx264rgb<span class="pull-right"><a class="anchor hidden-xs" href="#libx264_002c-libx264rgb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx264_002c-libx264rgb" aria-hidden="true">TOC</a></span></h3>
  4609. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  4610. </p>
  4611. <p>This encoder requires the presence of the libx264 headers and library
  4612. during configuration. You need to explicitly configure the build with
  4613. <code>--enable-libx264</code>.
  4614. </p>
  4615. <p>libx264 supports an impressive number of features, including 8x8 and
  4616. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  4617. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  4618. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  4619. </p>
  4620. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  4621. options, while unique encoder options are provided through private
  4622. options. Additionally the <samp>x264opts</samp> and <samp>x264-params</samp>
  4623. private options allows one to pass a list of key=value tuples as accepted
  4624. by the libx264 <code>x264_param_parse</code> function.
  4625. </p>
  4626. <p>The x264 project website is at
  4627. <a href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  4628. </p>
  4629. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  4630. pixel formats as input instead of YUV.
  4631. </p>
  4632. <a name="Supported-Pixel-Formats"></a>
  4633. <h4 class="subsection">9.12.1 Supported Pixel Formats<span class="pull-right"><a class="anchor hidden-xs" href="#Supported-Pixel-Formats" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Supported-Pixel-Formats" aria-hidden="true">TOC</a></span></h4>
  4634. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  4635. x264&rsquo;s configure time.
  4636. </p>
  4637. <a name="Options-31"></a>
  4638. <h4 class="subsection">9.12.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-31" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-31" aria-hidden="true">TOC</a></span></h4>
  4639. <p>The following options are supported by the libx264 wrapper. The
  4640. <code>x264</code>-equivalent options or values are listed in parentheses
  4641. for easy migration.
  4642. </p>
  4643. <p>To reduce the duplication of documentation, only the private options
  4644. and some others requiring special attention are documented here. For
  4645. the documentation of the undocumented generic options, see
  4646. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4647. </p>
  4648. <p>To get a more accurate and extensive documentation of the libx264
  4649. options, invoke the command <code>x264 --fullhelp</code> or consult
  4650. the libx264 documentation.
  4651. </p>
  4652. <dl compact="compact">
  4653. <dt><samp>b (<em>bitrate</em>)</samp></dt>
  4654. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp>b</samp> option is
  4655. expressed in bits/s, while <code>x264</code>&rsquo;s <samp>bitrate</samp> is in
  4656. kilobits/s.
  4657. </p>
  4658. </dd>
  4659. <dt><samp>bf (<em>bframes</em>)</samp></dt>
  4660. <dt><samp>g (<em>keyint</em>)</samp></dt>
  4661. <dt><samp>qmin (<em>qpmin</em>)</samp></dt>
  4662. <dd><p>Minimum quantizer scale.
  4663. </p>
  4664. </dd>
  4665. <dt><samp>qmax (<em>qpmax</em>)</samp></dt>
  4666. <dd><p>Maximum quantizer scale.
  4667. </p>
  4668. </dd>
  4669. <dt><samp>qdiff (<em>qpstep</em>)</samp></dt>
  4670. <dd><p>Maximum difference between quantizer scales.
  4671. </p>
  4672. </dd>
  4673. <dt><samp>qblur (<em>qblur</em>)</samp></dt>
  4674. <dd><p>Quantizer curve blur
  4675. </p>
  4676. </dd>
  4677. <dt><samp>qcomp (<em>qcomp</em>)</samp></dt>
  4678. <dd><p>Quantizer curve compression factor
  4679. </p>
  4680. </dd>
  4681. <dt><samp>refs (<em>ref</em>)</samp></dt>
  4682. <dd><p>Number of reference frames each P-frame can use. The range is from <var>0-16</var>.
  4683. </p>
  4684. </dd>
  4685. <dt><samp>sc_threshold (<em>scenecut</em>)</samp></dt>
  4686. <dd><p>Sets the threshold for the scene change detection.
  4687. </p>
  4688. </dd>
  4689. <dt><samp>trellis (<em>trellis</em>)</samp></dt>
  4690. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  4691. </p>
  4692. </dd>
  4693. <dt><samp>nr (<em>nr</em>)</samp></dt>
  4694. <dt><samp>me_range (<em>merange</em>)</samp></dt>
  4695. <dd><p>Maximum range of the motion search in pixels.
  4696. </p>
  4697. </dd>
  4698. <dt><samp>me_method (<em>me</em>)</samp></dt>
  4699. <dd><p>Set motion estimation method. Possible values in the decreasing order
  4700. of speed:
  4701. </p>
  4702. <dl compact="compact">
  4703. <dt>&lsquo;<samp>dia (<em>dia</em>)</samp>&rsquo;</dt>
  4704. <dt>&lsquo;<samp>epzs (<em>dia</em>)</samp>&rsquo;</dt>
  4705. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp>epzs</samp>&rsquo; is an alias for
  4706. &lsquo;<samp>dia</samp>&rsquo;.
  4707. </p></dd>
  4708. <dt>&lsquo;<samp>hex (<em>hex</em>)</samp>&rsquo;</dt>
  4709. <dd><p>Hexagonal search with radius 2.
  4710. </p></dd>
  4711. <dt>&lsquo;<samp>umh (<em>umh</em>)</samp>&rsquo;</dt>
  4712. <dd><p>Uneven multi-hexagon search.
  4713. </p></dd>
  4714. <dt>&lsquo;<samp>esa (<em>esa</em>)</samp>&rsquo;</dt>
  4715. <dd><p>Exhaustive search.
  4716. </p></dd>
  4717. <dt>&lsquo;<samp>tesa (<em>tesa</em>)</samp>&rsquo;</dt>
  4718. <dd><p>Hadamard exhaustive search (slowest).
  4719. </p></dd>
  4720. </dl>
  4721. </dd>
  4722. <dt><samp>forced-idr</samp></dt>
  4723. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  4724. of I-frame. This option forces it to choose an IDR-frame.
  4725. </p>
  4726. </dd>
  4727. <dt><samp>subq (<em>subme</em>)</samp></dt>
  4728. <dd><p>Sub-pixel motion estimation method.
  4729. </p>
  4730. </dd>
  4731. <dt><samp>b_strategy (<em>b-adapt</em>)</samp></dt>
  4732. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  4733. </p>
  4734. </dd>
  4735. <dt><samp>keyint_min (<em>min-keyint</em>)</samp></dt>
  4736. <dd><p>Minimum GOP size.
  4737. </p>
  4738. </dd>
  4739. <dt><samp>coder</samp></dt>
  4740. <dd><p>Set entropy encoder. Possible values:
  4741. </p>
  4742. <dl compact="compact">
  4743. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  4744. <dd><p>Enable CABAC.
  4745. </p>
  4746. </dd>
  4747. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  4748. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  4749. <code>x264</code>&rsquo;s <samp>--no-cabac</samp> option.
  4750. </p></dd>
  4751. </dl>
  4752. </dd>
  4753. <dt><samp>cmp</samp></dt>
  4754. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  4755. </p>
  4756. <dl compact="compact">
  4757. <dt>&lsquo;<samp>chroma</samp>&rsquo;</dt>
  4758. <dd><p>Enable chroma in motion estimation.
  4759. </p>
  4760. </dd>
  4761. <dt>&lsquo;<samp>sad</samp>&rsquo;</dt>
  4762. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  4763. <code>x264</code>&rsquo;s <samp>--no-chroma-me</samp> option.
  4764. </p></dd>
  4765. </dl>
  4766. </dd>
  4767. <dt><samp>threads (<em>threads</em>)</samp></dt>
  4768. <dd><p>Number of encoding threads.
  4769. </p>
  4770. </dd>
  4771. <dt><samp>thread_type</samp></dt>
  4772. <dd><p>Set multithreading technique. Possible values:
  4773. </p>
  4774. <dl compact="compact">
  4775. <dt>&lsquo;<samp>slice</samp>&rsquo;</dt>
  4776. <dd><p>Slice-based multithreading. It generates the same effect as
  4777. <code>x264</code>&rsquo;s <samp>--sliced-threads</samp> option.
  4778. </p></dd>
  4779. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  4780. <dd><p>Frame-based multithreading.
  4781. </p></dd>
  4782. </dl>
  4783. </dd>
  4784. <dt><samp>flags</samp></dt>
  4785. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  4786. open GOP by setting it to <code>-cgop</code>. The result is similar to
  4787. the behavior of <code>x264</code>&rsquo;s <samp>--open-gop</samp> option.
  4788. </p>
  4789. </dd>
  4790. <dt><samp>rc_init_occupancy (<em>vbv-init</em>)</samp></dt>
  4791. <dt><samp>preset (<em>preset</em>)</samp></dt>
  4792. <dd><p>Set the encoding preset.
  4793. </p>
  4794. </dd>
  4795. <dt><samp>tune (<em>tune</em>)</samp></dt>
  4796. <dd><p>Set tuning of the encoding params.
  4797. </p>
  4798. </dd>
  4799. <dt><samp>profile (<em>profile</em>)</samp></dt>
  4800. <dd><p>Set profile restrictions.
  4801. </p>
  4802. </dd>
  4803. <dt><samp>fastfirstpass</samp></dt>
  4804. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  4805. to 0, it has the same effect of <code>x264</code>&rsquo;s
  4806. <samp>--slow-firstpass</samp> option.
  4807. </p>
  4808. </dd>
  4809. <dt><samp>crf (<em>crf</em>)</samp></dt>
  4810. <dd><p>Set the quality for constant quality mode.
  4811. </p>
  4812. </dd>
  4813. <dt><samp>crf_max (<em>crf-max</em>)</samp></dt>
  4814. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  4815. </p>
  4816. </dd>
  4817. <dt><samp>qp (<em>qp</em>)</samp></dt>
  4818. <dd><p>Set constant quantization rate control method parameter.
  4819. </p>
  4820. </dd>
  4821. <dt><samp>aq-mode (<em>aq-mode</em>)</samp></dt>
  4822. <dd><p>Set AQ method. Possible values:
  4823. </p>
  4824. <dl compact="compact">
  4825. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  4826. <dd><p>Disabled.
  4827. </p>
  4828. </dd>
  4829. <dt>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</dt>
  4830. <dd><p>Variance AQ (complexity mask).
  4831. </p>
  4832. </dd>
  4833. <dt>&lsquo;<samp>autovariance (<em>2</em>)</samp>&rsquo;</dt>
  4834. <dd><p>Auto-variance AQ (experimental).
  4835. </p></dd>
  4836. </dl>
  4837. </dd>
  4838. <dt><samp>aq-strength (<em>aq-strength</em>)</samp></dt>
  4839. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  4840. </p>
  4841. </dd>
  4842. <dt><samp>psy</samp></dt>
  4843. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  4844. same effect as <code>x264</code>&rsquo;s <samp>--no-psy</samp> option.
  4845. </p>
  4846. </dd>
  4847. <dt><samp>psy-rd (<em>psy-rd</em>)</samp></dt>
  4848. <dd><p>Set strength of psychovisual optimization, in
  4849. <var>psy-rd</var>:<var>psy-trellis</var> format.
  4850. </p>
  4851. </dd>
  4852. <dt><samp>rc-lookahead (<em>rc-lookahead</em>)</samp></dt>
  4853. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4854. </p>
  4855. </dd>
  4856. <dt><samp>weightb</samp></dt>
  4857. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  4858. it has the same effect as <code>x264</code>&rsquo;s <samp>--no-weightb</samp> option.
  4859. </p>
  4860. </dd>
  4861. <dt><samp>weightp (<em>weightp</em>)</samp></dt>
  4862. <dd><p>Set weighted prediction method for P-frames. Possible values:
  4863. </p>
  4864. <dl compact="compact">
  4865. <dt>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
  4866. <dd><p>Disabled
  4867. </p></dd>
  4868. <dt>&lsquo;<samp>simple (<em>1</em>)</samp>&rsquo;</dt>
  4869. <dd><p>Enable only weighted refs
  4870. </p></dd>
  4871. <dt>&lsquo;<samp>smart (<em>2</em>)</samp>&rsquo;</dt>
  4872. <dd><p>Enable both weighted refs and duplicates
  4873. </p></dd>
  4874. </dl>
  4875. </dd>
  4876. <dt><samp>ssim (<em>ssim</em>)</samp></dt>
  4877. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  4878. </p>
  4879. </dd>
  4880. <dt><samp>intra-refresh (<em>intra-refresh</em>)</samp></dt>
  4881. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  4882. to 1.
  4883. </p>
  4884. </dd>
  4885. <dt><samp>avcintra-class (<em>class</em>)</samp></dt>
  4886. <dd><p>Configure the encoder to generate AVC-Intra.
  4887. Valid values are 50,100 and 200
  4888. </p>
  4889. </dd>
  4890. <dt><samp>bluray-compat (<em>bluray-compat</em>)</samp></dt>
  4891. <dd><p>Configure the encoder to be compatible with the bluray standard.
  4892. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  4893. </p>
  4894. </dd>
  4895. <dt><samp>b-bias (<em>b-bias</em>)</samp></dt>
  4896. <dd><p>Set the influence on how often B-frames are used.
  4897. </p>
  4898. </dd>
  4899. <dt><samp>b-pyramid (<em>b-pyramid</em>)</samp></dt>
  4900. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  4901. </p>
  4902. <dl compact="compact">
  4903. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4904. <dd><p>Disabled.
  4905. </p></dd>
  4906. <dt>&lsquo;<samp>strict (<em>strict</em>)</samp>&rsquo;</dt>
  4907. <dd><p>Strictly hierarchical pyramid.
  4908. </p></dd>
  4909. <dt>&lsquo;<samp>normal (<em>normal</em>)</samp>&rsquo;</dt>
  4910. <dd><p>Non-strict (not Blu-ray compatible).
  4911. </p></dd>
  4912. </dl>
  4913. </dd>
  4914. <dt><samp>mixed-refs</samp></dt>
  4915. <dd><p>Enable the use of one reference per partition, as opposed to one
  4916. reference per macroblock when set to 1. When set to 0, it has the
  4917. same effect as <code>x264</code>&rsquo;s <samp>--no-mixed-refs</samp> option.
  4918. </p>
  4919. </dd>
  4920. <dt><samp>8x8dct</samp></dt>
  4921. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  4922. when set to 1. When set to 0, it has the same effect as
  4923. <code>x264</code>&rsquo;s <samp>--no-8x8dct</samp> option.
  4924. </p>
  4925. </dd>
  4926. <dt><samp>fast-pskip</samp></dt>
  4927. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  4928. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4929. <samp>--no-fast-pskip</samp> option.
  4930. </p>
  4931. </dd>
  4932. <dt><samp>aud (<em>aud</em>)</samp></dt>
  4933. <dd><p>Enable use of access unit delimiters when set to 1.
  4934. </p>
  4935. </dd>
  4936. <dt><samp>mbtree</samp></dt>
  4937. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  4938. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4939. <samp>--no-mbtree</samp> option.
  4940. </p>
  4941. </dd>
  4942. <dt><samp>deblock (<em>deblock</em>)</samp></dt>
  4943. <dd><p>Set loop filter parameters, in <var>alpha</var>:<var>beta</var> form.
  4944. </p>
  4945. </dd>
  4946. <dt><samp>cplxblur (<em>cplxblur</em>)</samp></dt>
  4947. <dd><p>Set fluctuations reduction in QP (before curve compression).
  4948. </p>
  4949. </dd>
  4950. <dt><samp>partitions (<em>partitions</em>)</samp></dt>
  4951. <dd><p>Set partitions to consider as a comma-separated list of. Possible
  4952. values in the list:
  4953. </p>
  4954. <dl compact="compact">
  4955. <dt>&lsquo;<samp>p8x8</samp>&rsquo;</dt>
  4956. <dd><p>8x8 P-frame partition.
  4957. </p></dd>
  4958. <dt>&lsquo;<samp>p4x4</samp>&rsquo;</dt>
  4959. <dd><p>4x4 P-frame partition.
  4960. </p></dd>
  4961. <dt>&lsquo;<samp>b8x8</samp>&rsquo;</dt>
  4962. <dd><p>4x4 B-frame partition.
  4963. </p></dd>
  4964. <dt>&lsquo;<samp>i8x8</samp>&rsquo;</dt>
  4965. <dd><p>8x8 I-frame partition.
  4966. </p></dd>
  4967. <dt>&lsquo;<samp>i4x4</samp>&rsquo;</dt>
  4968. <dd><p>4x4 I-frame partition.
  4969. (Enabling &lsquo;<samp>p4x4</samp>&rsquo; requires &lsquo;<samp>p8x8</samp>&rsquo; to be enabled. Enabling
  4970. &lsquo;<samp>i8x8</samp>&rsquo; requires adaptive spatial transform (<samp>8x8dct</samp>
  4971. option) to be enabled.)
  4972. </p></dd>
  4973. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4974. <dd><p>Do not consider any partitions.
  4975. </p></dd>
  4976. <dt>&lsquo;<samp>all (<em>all</em>)</samp>&rsquo;</dt>
  4977. <dd><p>Consider every partition.
  4978. </p></dd>
  4979. </dl>
  4980. </dd>
  4981. <dt><samp>direct-pred (<em>direct</em>)</samp></dt>
  4982. <dd><p>Set direct MV prediction mode. Possible values:
  4983. </p>
  4984. <dl compact="compact">
  4985. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  4986. <dd><p>Disable MV prediction.
  4987. </p></dd>
  4988. <dt>&lsquo;<samp>spatial (<em>spatial</em>)</samp>&rsquo;</dt>
  4989. <dd><p>Enable spatial predicting.
  4990. </p></dd>
  4991. <dt>&lsquo;<samp>temporal (<em>temporal</em>)</samp>&rsquo;</dt>
  4992. <dd><p>Enable temporal predicting.
  4993. </p></dd>
  4994. <dt>&lsquo;<samp>auto (<em>auto</em>)</samp>&rsquo;</dt>
  4995. <dd><p>Automatically decided.
  4996. </p></dd>
  4997. </dl>
  4998. </dd>
  4999. <dt><samp>slice-max-size (<em>slice-max-size</em>)</samp></dt>
  5000. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  5001. but RTP payload size (<samp>ps</samp>) is specified, that is used.
  5002. </p>
  5003. </dd>
  5004. <dt><samp>stats (<em>stats</em>)</samp></dt>
  5005. <dd><p>Set the file name for multi-pass stats.
  5006. </p>
  5007. </dd>
  5008. <dt><samp>nal-hrd (<em>nal-hrd</em>)</samp></dt>
  5009. <dd><p>Set signal HRD information (requires <samp>vbv-bufsize</samp> to be set).
  5010. Possible values:
  5011. </p>
  5012. <dl compact="compact">
  5013. <dt>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
  5014. <dd><p>Disable HRD information signaling.
  5015. </p></dd>
  5016. <dt>&lsquo;<samp>vbr (<em>vbr</em>)</samp>&rsquo;</dt>
  5017. <dd><p>Variable bit rate.
  5018. </p></dd>
  5019. <dt>&lsquo;<samp>cbr (<em>cbr</em>)</samp>&rsquo;</dt>
  5020. <dd><p>Constant bit rate (not allowed in MP4 container).
  5021. </p></dd>
  5022. </dl>
  5023. </dd>
  5024. <dt><samp>x264opts (N.A.)</samp></dt>
  5025. <dd><p>Set any x264 option, see <code>x264 --fullhelp</code> for a list.
  5026. </p>
  5027. <p>Argument is a list of <var>key</var>=<var>value</var> couples separated by
  5028. &quot;:&quot;. In <var>filter</var> and <var>psy-rd</var> options that use &quot;:&quot; as a separator
  5029. themselves, use &quot;,&quot; instead. They accept it as well since long ago but this
  5030. is kept undocumented for some reason.
  5031. </p>
  5032. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  5033. </p><div class="example">
  5034. <pre class="example">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  5035. </pre></div>
  5036. </dd>
  5037. <dt><samp>a53cc <var>boolean</var></samp></dt>
  5038. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5039. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  5040. </p>
  5041. </dd>
  5042. <dt><samp>x264-params (N.A.)</samp></dt>
  5043. <dd><p>Override the x264 configuration using a :-separated list of key=value
  5044. parameters.
  5045. </p>
  5046. <p>This option is functionally the same as the <samp>x264opts</samp>, but is
  5047. duplicated for compatibility with the Libav fork.
  5048. </p>
  5049. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  5050. </p><div class="example">
  5051. <pre class="example">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
  5052. cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
  5053. no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
  5054. </pre></div>
  5055. </dd>
  5056. </dl>
  5057. <p>Encoding ffpresets for common usages are provided so they can be used with the
  5058. general presets system (e.g. passing the <samp>pre</samp> option).
  5059. </p>
  5060. <a name="libx265"></a>
  5061. <h3 class="section">9.13 libx265<span class="pull-right"><a class="anchor hidden-xs" href="#libx265" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx265" aria-hidden="true">TOC</a></span></h3>
  5062. <p>x265 H.265/HEVC encoder wrapper.
  5063. </p>
  5064. <p>This encoder requires the presence of the libx265 headers and library
  5065. during configuration. You need to explicitly configure the build with
  5066. <samp>--enable-libx265</samp>.
  5067. </p>
  5068. <a name="Options-32"></a>
  5069. <h4 class="subsection">9.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-32" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-32" aria-hidden="true">TOC</a></span></h4>
  5070. <dl compact="compact">
  5071. <dt><samp>b</samp></dt>
  5072. <dd><p>Sets target video bitrate.
  5073. </p>
  5074. </dd>
  5075. <dt><samp>bf</samp></dt>
  5076. <dt><samp>g</samp></dt>
  5077. <dd><p>Set the GOP size.
  5078. </p>
  5079. </dd>
  5080. <dt><samp>keyint_min</samp></dt>
  5081. <dd><p>Minimum GOP size.
  5082. </p>
  5083. </dd>
  5084. <dt><samp>refs</samp></dt>
  5085. <dd><p>Number of reference frames each P-frame can use. The range is from <var>1-16</var>.
  5086. </p>
  5087. </dd>
  5088. <dt><samp>preset</samp></dt>
  5089. <dd><p>Set the x265 preset.
  5090. </p>
  5091. </dd>
  5092. <dt><samp>tune</samp></dt>
  5093. <dd><p>Set the x265 tune parameter.
  5094. </p>
  5095. </dd>
  5096. <dt><samp>profile</samp></dt>
  5097. <dd><p>Set profile restrictions.
  5098. </p>
  5099. </dd>
  5100. <dt><samp>crf</samp></dt>
  5101. <dd><p>Set the quality for constant quality mode.
  5102. </p>
  5103. </dd>
  5104. <dt><samp>qp</samp></dt>
  5105. <dd><p>Set constant quantization rate control method parameter.
  5106. </p>
  5107. </dd>
  5108. <dt><samp>qmin</samp></dt>
  5109. <dd><p>Minimum quantizer scale.
  5110. </p>
  5111. </dd>
  5112. <dt><samp>qmax</samp></dt>
  5113. <dd><p>Maximum quantizer scale.
  5114. </p>
  5115. </dd>
  5116. <dt><samp>qdiff</samp></dt>
  5117. <dd><p>Maximum difference between quantizer scales.
  5118. </p>
  5119. </dd>
  5120. <dt><samp>qblur</samp></dt>
  5121. <dd><p>Quantizer curve blur
  5122. </p>
  5123. </dd>
  5124. <dt><samp>qcomp</samp></dt>
  5125. <dd><p>Quantizer curve compression factor
  5126. </p>
  5127. </dd>
  5128. <dt><samp>i_qfactor</samp></dt>
  5129. <dt><samp>b_qfactor</samp></dt>
  5130. <dt><samp>forced-idr</samp></dt>
  5131. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5132. of I-frame. This option forces it to choose an IDR-frame.
  5133. </p>
  5134. </dd>
  5135. <dt><samp>x265-params</samp></dt>
  5136. <dd><p>Set x265 options using a list of <var>key</var>=<var>value</var> couples separated
  5137. by &quot;:&quot;. See <code>x265 --help</code> for a list of options.
  5138. </p>
  5139. <p>For example to specify libx265 encoding options with <samp>-x265-params</samp>:
  5140. </p>
  5141. <div class="example">
  5142. <pre class="example">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  5143. </pre></div>
  5144. </dd>
  5145. </dl>
  5146. <a name="libxavs2"></a>
  5147. <h3 class="section">9.14 libxavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libxavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxavs2" aria-hidden="true">TOC</a></span></h3>
  5148. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  5149. </p>
  5150. <p>This encoder requires the presence of the libxavs2 headers and library
  5151. during configuration. You need to explicitly configure the build with
  5152. <samp>--enable-libxavs2</samp>.
  5153. </p>
  5154. <p>The following standard libavcodec options are used:
  5155. </p><ul>
  5156. <li> <samp>b</samp> / <samp>bit_rate</samp>
  5157. </li><li> <samp>g</samp> / <samp>gop_size</samp>
  5158. </li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
  5159. </li></ul>
  5160. <p>The encoder also has its own specific options:
  5161. </p><a name="Options-33"></a>
  5162. <h4 class="subsection">9.14.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-33" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-33" aria-hidden="true">TOC</a></span></h4>
  5163. <dl compact="compact">
  5164. <dt><samp>lcu_row_threads</samp></dt>
  5165. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  5166. </p>
  5167. </dd>
  5168. <dt><samp>initial_qp</samp></dt>
  5169. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5170. used to set the initial qp for the first frame.
  5171. </p>
  5172. </dd>
  5173. <dt><samp>qp</samp></dt>
  5174. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5175. used to set the qp value under constant-QP mode.
  5176. </p>
  5177. </dd>
  5178. <dt><samp>max_qp</samp></dt>
  5179. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5180. </p>
  5181. </dd>
  5182. <dt><samp>min_qp</samp></dt>
  5183. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5184. </p>
  5185. </dd>
  5186. <dt><samp>speed_level</samp></dt>
  5187. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5188. </p>
  5189. </dd>
  5190. <dt><samp>log_level</samp></dt>
  5191. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5192. 1: warning, 2: info, 3: debug.
  5193. </p>
  5194. </dd>
  5195. <dt><samp>xavs2-params</samp></dt>
  5196. <dd><p>Set xavs2 options using a list of <var>key</var>=<var>value</var> couples separated
  5197. by &quot;:&quot;.
  5198. </p>
  5199. <p>For example to specify libxavs2 encoding options with <samp>-xavs2-params</samp>:
  5200. </p>
  5201. <div class="example">
  5202. <pre class="example">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5203. </pre></div>
  5204. </dd>
  5205. </dl>
  5206. <a name="libxvid"></a>
  5207. <h3 class="section">9.15 libxvid<span class="pull-right"><a class="anchor hidden-xs" href="#libxvid" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxvid" aria-hidden="true">TOC</a></span></h3>
  5208. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5209. </p>
  5210. <p>This encoder requires the presence of the libxvidcore headers and library
  5211. during configuration. You need to explicitly configure the build with
  5212. <code>--enable-libxvid --enable-gpl</code>.
  5213. </p>
  5214. <p>The native <code>mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5215. users can encode to this format without this library.
  5216. </p>
  5217. <a name="Options-34"></a>
  5218. <h4 class="subsection">9.15.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-34" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-34" aria-hidden="true">TOC</a></span></h4>
  5219. <p>The following options are supported by the libxvid wrapper. Some of
  5220. the following options are listed but are not documented, and
  5221. correspond to shared codec options. See <a href="#codec_002doptions">the Codec
  5222. Options chapter</a> for their documentation. The other shared options
  5223. which are not listed have no effect for the libxvid encoder.
  5224. </p>
  5225. <dl compact="compact">
  5226. <dt><samp>b</samp></dt>
  5227. <dt><samp>g</samp></dt>
  5228. <dt><samp>qmin</samp></dt>
  5229. <dt><samp>qmax</samp></dt>
  5230. <dt><samp>mpeg_quant</samp></dt>
  5231. <dt><samp>threads</samp></dt>
  5232. <dt><samp>bf</samp></dt>
  5233. <dt><samp>b_qfactor</samp></dt>
  5234. <dt><samp>b_qoffset</samp></dt>
  5235. <dt><samp>flags</samp></dt>
  5236. <dd><p>Set specific encoding flags. Possible values:
  5237. </p>
  5238. <dl compact="compact">
  5239. <dt>&lsquo;<samp>mv4</samp>&rsquo;</dt>
  5240. <dd><p>Use four motion vector by macroblock.
  5241. </p>
  5242. </dd>
  5243. <dt>&lsquo;<samp>aic</samp>&rsquo;</dt>
  5244. <dd><p>Enable high quality AC prediction.
  5245. </p>
  5246. </dd>
  5247. <dt>&lsquo;<samp>gray</samp>&rsquo;</dt>
  5248. <dd><p>Only encode grayscale.
  5249. </p>
  5250. </dd>
  5251. <dt>&lsquo;<samp>gmc</samp>&rsquo;</dt>
  5252. <dd><p>Enable the use of global motion compensation (GMC).
  5253. </p>
  5254. </dd>
  5255. <dt>&lsquo;<samp>qpel</samp>&rsquo;</dt>
  5256. <dd><p>Enable quarter-pixel motion compensation.
  5257. </p>
  5258. </dd>
  5259. <dt>&lsquo;<samp>cgop</samp>&rsquo;</dt>
  5260. <dd><p>Enable closed GOP.
  5261. </p>
  5262. </dd>
  5263. <dt>&lsquo;<samp>global_header</samp>&rsquo;</dt>
  5264. <dd><p>Place global headers in extradata instead of every keyframe.
  5265. </p>
  5266. </dd>
  5267. </dl>
  5268. </dd>
  5269. <dt><samp>trellis</samp></dt>
  5270. <dt><samp>me_method</samp></dt>
  5271. <dd><p>Set motion estimation method. Possible values in decreasing order of
  5272. speed and increasing order of quality:
  5273. </p>
  5274. <dl compact="compact">
  5275. <dt>&lsquo;<samp>zero</samp>&rsquo;</dt>
  5276. <dd><p>Use no motion estimation (default).
  5277. </p>
  5278. </dd>
  5279. <dt>&lsquo;<samp>phods</samp>&rsquo;</dt>
  5280. <dt>&lsquo;<samp>x1</samp>&rsquo;</dt>
  5281. <dt>&lsquo;<samp>log</samp>&rsquo;</dt>
  5282. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  5283. refinement for 16x16 blocks. &lsquo;<samp>x1</samp>&rsquo; and &lsquo;<samp>log</samp>&rsquo; are aliases for
  5284. &lsquo;<samp>phods</samp>&rsquo;.
  5285. </p>
  5286. </dd>
  5287. <dt>&lsquo;<samp>epzs</samp>&rsquo;</dt>
  5288. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  5289. search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
  5290. estimation on chroma planes.
  5291. </p>
  5292. </dd>
  5293. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  5294. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  5295. blocks search.
  5296. </p></dd>
  5297. </dl>
  5298. </dd>
  5299. <dt><samp>mbd</samp></dt>
  5300. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  5301. order of quality:
  5302. </p>
  5303. <dl compact="compact">
  5304. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  5305. <dd><p>Use macroblock comparing function algorithm (default).
  5306. </p>
  5307. </dd>
  5308. <dt>&lsquo;<samp>bits</samp>&rsquo;</dt>
  5309. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  5310. 16x16 blocks.
  5311. </p>
  5312. </dd>
  5313. <dt>&lsquo;<samp>rd</samp>&rsquo;</dt>
  5314. <dd><p>Enable all of the things described above, plus rate distortion-based
  5315. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  5316. distortion-based search using square pattern.
  5317. </p></dd>
  5318. </dl>
  5319. </dd>
  5320. <dt><samp>lumi_aq</samp></dt>
  5321. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  5322. (disabled).
  5323. </p>
  5324. </dd>
  5325. <dt><samp>variance_aq</samp></dt>
  5326. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  5327. (disabled).
  5328. </p>
  5329. <p>When combined with <samp>lumi_aq</samp>, the resulting quality will not
  5330. be better than any of the two specified individually. In other
  5331. words, the resulting quality will be the worse one of the two
  5332. effects.
  5333. </p>
  5334. </dd>
  5335. <dt><samp>ssim</samp></dt>
  5336. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  5337. </p>
  5338. <dl compact="compact">
  5339. <dt>&lsquo;<samp>off</samp>&rsquo;</dt>
  5340. <dd><p>Disable displaying of SSIM information.
  5341. </p>
  5342. </dd>
  5343. <dt>&lsquo;<samp>avg</samp>&rsquo;</dt>
  5344. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  5345. showing the average SSIM is:
  5346. </p>
  5347. <div class="example">
  5348. <pre class="example">Average SSIM: %f
  5349. </pre></div>
  5350. <p>For users who are not familiar with C, %f means a float number, or
  5351. a decimal (e.g. 0.939232).
  5352. </p>
  5353. </dd>
  5354. <dt>&lsquo;<samp>frame</samp>&rsquo;</dt>
  5355. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  5356. the end of encoding to stdout. The format of per-frame information
  5357. is:
  5358. </p>
  5359. <div class="example">
  5360. <pre class="example"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  5361. </pre></div>
  5362. <p>For users who are not familiar with C, %1.3f means a float number
  5363. rounded to 3 digits after the dot (e.g. 0.932).
  5364. </p>
  5365. </dd>
  5366. </dl>
  5367. </dd>
  5368. <dt><samp>ssim_acc</samp></dt>
  5369. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  5370. 0-4, while 0 gives the most accurate result and 4 computes the
  5371. fastest.
  5372. </p>
  5373. </dd>
  5374. </dl>
  5375. <a name="MediaFoundation"></a>
  5376. <h3 class="section">9.16 MediaFoundation<span class="pull-right"><a class="anchor hidden-xs" href="#MediaFoundation" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MediaFoundation" aria-hidden="true">TOC</a></span></h3>
  5377. <p>This provides wrappers to encoders (both audio and video) in the
  5378. MediaFoundation framework. It can access both SW and HW encoders.
  5379. Video encoders can take input in either of nv12 or yuv420p form
  5380. (some encoders support both, some support only either - in practice,
  5381. nv12 is the safer choice, especially among HW encoders).
  5382. </p>
  5383. <a name="mpeg2"></a>
  5384. <h3 class="section">9.17 mpeg2<span class="pull-right"><a class="anchor hidden-xs" href="#mpeg2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mpeg2" aria-hidden="true">TOC</a></span></h3>
  5385. <p>MPEG-2 video encoder.
  5386. </p>
  5387. <a name="Options-35"></a>
  5388. <h4 class="subsection">9.17.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-35" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-35" aria-hidden="true">TOC</a></span></h4>
  5389. <dl compact="compact">
  5390. <dt><samp>profile</samp></dt>
  5391. <dd><p>Select the mpeg2 profile to encode:
  5392. </p>
  5393. <dl compact="compact">
  5394. <dt>&lsquo;<samp>422</samp>&rsquo;</dt>
  5395. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  5396. <dt>&lsquo;<samp>ss</samp>&rsquo;</dt>
  5397. <dd><p>Spatially Scalable
  5398. </p></dd>
  5399. <dt>&lsquo;<samp>snr</samp>&rsquo;</dt>
  5400. <dd><p>SNR Scalable
  5401. </p></dd>
  5402. <dt>&lsquo;<samp>main</samp>&rsquo;</dt>
  5403. <dt>&lsquo;<samp>simple</samp>&rsquo;</dt>
  5404. </dl>
  5405. </dd>
  5406. <dt><samp>level</samp></dt>
  5407. <dd><p>Select the mpeg2 level to encode:
  5408. </p>
  5409. <dl compact="compact">
  5410. <dt>&lsquo;<samp>high</samp>&rsquo;</dt>
  5411. <dt>&lsquo;<samp>high1440</samp>&rsquo;</dt>
  5412. <dt>&lsquo;<samp>main</samp>&rsquo;</dt>
  5413. <dt>&lsquo;<samp>low</samp>&rsquo;</dt>
  5414. </dl>
  5415. </dd>
  5416. <dt><samp>seq_disp_ext <var>integer</var></samp></dt>
  5417. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  5418. output.
  5419. </p><dl compact="compact">
  5420. <dt><samp>-1</samp></dt>
  5421. <dt><samp>auto</samp></dt>
  5422. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  5423. the data to be written is different from the default or unspecified values.
  5424. </p></dd>
  5425. <dt><samp>0</samp></dt>
  5426. <dt><samp>never</samp></dt>
  5427. <dd><p>Never write it.
  5428. </p></dd>
  5429. <dt><samp>1</samp></dt>
  5430. <dt><samp>always</samp></dt>
  5431. <dd><p>Always write it.
  5432. </p></dd>
  5433. </dl>
  5434. </dd>
  5435. <dt><samp>video_format <var>integer</var></samp></dt>
  5436. <dd><p>Specifies the video_format written into the sequence display extension
  5437. indicating the source of the video pictures. The default is &lsquo;<samp>unspecified</samp>&rsquo;,
  5438. 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;.
  5439. For maximum compatibility, use &lsquo;<samp>component</samp>&rsquo;.
  5440. </p></dd>
  5441. <dt><samp>a53cc <var>boolean</var></samp></dt>
  5442. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5443. Default is 1 (on).
  5444. </p></dd>
  5445. </dl>
  5446. <a name="png"></a>
  5447. <h3 class="section">9.18 png<span class="pull-right"><a class="anchor hidden-xs" href="#png" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-png" aria-hidden="true">TOC</a></span></h3>
  5448. <p>PNG image encoder.
  5449. </p>
  5450. <a name="Private-options-1"></a>
  5451. <h4 class="subsection">9.18.1 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options-1" aria-hidden="true">TOC</a></span></h4>
  5452. <dl compact="compact">
  5453. <dt><samp>dpi <var>integer</var></samp></dt>
  5454. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  5455. </p></dd>
  5456. <dt><samp>dpm <var>integer</var></samp></dt>
  5457. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  5458. </p></dd>
  5459. </dl>
  5460. <a name="ProRes"></a>
  5461. <h3 class="section">9.19 ProRes<span class="pull-right"><a class="anchor hidden-xs" href="#ProRes" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ProRes" aria-hidden="true">TOC</a></span></h3>
  5462. <p>Apple ProRes encoder.
  5463. </p>
  5464. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  5465. The used encoder can be chosen with the <code>-vcodec</code> option.
  5466. </p>
  5467. <a name="Private-Options-for-prores_002dks"></a>
  5468. <h4 class="subsection">9.19.1 Private Options for prores-ks<span class="pull-right"><a class="anchor hidden-xs" href="#Private-Options-for-prores_002dks" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-Options-for-prores_002dks" aria-hidden="true">TOC</a></span></h4>
  5469. <dl compact="compact">
  5470. <dt><samp>profile <var>integer</var></samp></dt>
  5471. <dd><p>Select the ProRes profile to encode
  5472. </p><dl compact="compact">
  5473. <dt>&lsquo;<samp>proxy</samp>&rsquo;</dt>
  5474. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  5475. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  5476. <dt>&lsquo;<samp>hq</samp>&rsquo;</dt>
  5477. <dt>&lsquo;<samp>4444</samp>&rsquo;</dt>
  5478. <dt>&lsquo;<samp>4444xq</samp>&rsquo;</dt>
  5479. </dl>
  5480. </dd>
  5481. <dt><samp>quant_mat <var>integer</var></samp></dt>
  5482. <dd><p>Select quantization matrix.
  5483. </p><dl compact="compact">
  5484. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  5485. <dt>&lsquo;<samp>default</samp>&rsquo;</dt>
  5486. <dt>&lsquo;<samp>proxy</samp>&rsquo;</dt>
  5487. <dt>&lsquo;<samp>lt</samp>&rsquo;</dt>
  5488. <dt>&lsquo;<samp>standard</samp>&rsquo;</dt>
  5489. <dt>&lsquo;<samp>hq</samp>&rsquo;</dt>
  5490. </dl>
  5491. <p>If set to <var>auto</var>, the matrix matching the profile will be picked.
  5492. If not set, the matrix providing the highest quality, <var>default</var>, will be
  5493. picked.
  5494. </p>
  5495. </dd>
  5496. <dt><samp>bits_per_mb <var>integer</var></samp></dt>
  5497. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  5498. between 200 and 2400 bits per macroblock, the maximum is 8000.
  5499. </p>
  5500. </dd>
  5501. <dt><samp>mbs_per_slice <var>integer</var></samp></dt>
  5502. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  5503. should be good in almost all situations.
  5504. </p>
  5505. </dd>
  5506. <dt><samp>vendor <var>string</var></samp></dt>
  5507. <dd><p>Override the 4-byte vendor ID.
  5508. A custom vendor ID like <var>apl0</var> would claim the stream was produced by
  5509. the Apple encoder.
  5510. </p>
  5511. </dd>
  5512. <dt><samp>alpha_bits <var>integer</var></samp></dt>
  5513. <dd><p>Specify number of bits for alpha component.
  5514. Possible values are <var>0</var>, <var>8</var> and <var>16</var>.
  5515. Use <var>0</var> to disable alpha plane coding.
  5516. </p>
  5517. </dd>
  5518. </dl>
  5519. <a name="Speed-considerations"></a>
  5520. <h4 class="subsection">9.19.2 Speed considerations<span class="pull-right"><a class="anchor hidden-xs" href="#Speed-considerations" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Speed-considerations" aria-hidden="true">TOC</a></span></h4>
  5521. <p>In the default mode of operation the encoder has to honor frame constraints
  5522. (i.e. not produce frames with size bigger than requested) while still making
  5523. output picture as good as possible.
  5524. A frame containing a lot of small details is harder to compress and the encoder
  5525. would spend more time searching for appropriate quantizers for each slice.
  5526. </p>
  5527. <p>Setting a higher <samp>bits_per_mb</samp> limit will improve the speed.
  5528. </p>
  5529. <p>For the fastest encoding speed set the <samp>qscale</samp> parameter (4 is the
  5530. recommended value) and do not set a size constraint.
  5531. </p>
  5532. <a name="QSV-encoders"></a>
  5533. <h3 class="section">9.20 QSV encoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-encoders" aria-hidden="true">TOC</a></span></h3>
  5534. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG and VP9)
  5535. </p>
  5536. <p>The ratecontrol method is selected as follows:
  5537. </p>
  5538. <ul>
  5539. <li> When <samp>global_quality</samp> is specified, a quality-based mode is used.
  5540. Specifically this means either
  5541. <ul class="no-bullet">
  5542. <li>- <var>CQP</var> - constant quantizer scale, when the <samp>qscale</samp> codec flag is
  5543. also set (the <samp>-qscale</samp> ffmpeg option).
  5544. </li><li>- <var>LA_ICQ</var> - intelligent constant quality with lookahead, when the
  5545. <samp>look_ahead</samp> option is also set.
  5546. </li><li>- <var>ICQ</var> &ndash; intelligent constant quality otherwise.
  5547. </li></ul>
  5548. </li><li> Otherwise, a bitrate-based mode is used. For all of those, you should specify at
  5549. least the desired average bitrate with the <samp>b</samp> option.
  5550. <ul class="no-bullet">
  5551. <li>- <var>LA</var> - VBR with lookahead, when the <samp>look_ahead</samp> option is specified.
  5552. </li><li>- <var>VCM</var> - video conferencing mode, when the <samp>vcm</samp> option is set.
  5553. </li><li>- <var>CBR</var> - constant bitrate, when <samp>maxrate</samp> is specified and equal to
  5554. the average bitrate.
  5555. </li><li>- <var>VBR</var> - variable bitrate, when <samp>maxrate</samp> is specified, but is higher
  5556. than the average bitrate.
  5557. </li><li>- <var>AVBR</var> - average VBR mode, when <samp>maxrate</samp> is not specified. This mode
  5558. is further configured by the <samp>avbr_accuracy</samp> and
  5559. <samp>avbr_convergence</samp> options.
  5560. </li></ul>
  5561. </li></ul>
  5562. <p>Note that depending on your system, a different mode than the one you specified
  5563. may be selected by the encoder. Set the verbosity level to <var>verbose</var> or
  5564. higher to see the actual settings used by the QSV runtime.
  5565. </p>
  5566. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  5567. </p>
  5568. <ul>
  5569. <li> <samp>g/gop_size</samp> -&gt; <samp>GopPicSize</samp>
  5570. </li><li> <samp>bf/max_b_frames</samp>+1 -&gt; <samp>GopRefDist</samp>
  5571. </li><li> <samp>rc_init_occupancy/rc_initial_buffer_occupancy</samp> -&gt;
  5572. <samp>InitialDelayInKB</samp>
  5573. </li><li> <samp>slices</samp> -&gt; <samp>NumSlice</samp>
  5574. </li><li> <samp>refs</samp> -&gt; <samp>NumRefFrame</samp>
  5575. </li><li> <samp>b_strategy/b_frame_strategy</samp> -&gt; <samp>BRefType</samp>
  5576. </li><li> <samp>cgop/CLOSED_GOP</samp> codec flag -&gt; <samp>GopOptFlag</samp>
  5577. </li><li> For the <var>CQP</var> mode, the <samp>i_qfactor/i_qoffset</samp> and
  5578. <samp>b_qfactor/b_qoffset</samp> set the difference between <var>QPP</var> and <var>QPI</var>,
  5579. and <var>QPP</var> and <var>QPB</var> respectively.
  5580. </li><li> Setting the <samp>coder</samp> option to the value <var>vlc</var> will make the H.264
  5581. encoder use CAVLC instead of CABAC.
  5582. </li></ul>
  5583. <a name="snow"></a>
  5584. <h3 class="section">9.21 snow<span class="pull-right"><a class="anchor hidden-xs" href="#snow" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-snow" aria-hidden="true">TOC</a></span></h3>
  5585. <a name="Options-36"></a>
  5586. <h4 class="subsection">9.21.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-36" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-36" aria-hidden="true">TOC</a></span></h4>
  5587. <dl compact="compact">
  5588. <dt><samp>iterative_dia_size</samp></dt>
  5589. <dd><p>dia size for the iterative motion estimation
  5590. </p></dd>
  5591. </dl>
  5592. <a name="VAAPI-encoders"></a>
  5593. <h3 class="section">9.22 VAAPI encoders<span class="pull-right"><a class="anchor hidden-xs" href="#VAAPI-encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VAAPI-encoders" aria-hidden="true">TOC</a></span></h3>
  5594. <p>Wrappers for hardware encoders accessible via VAAPI.
  5595. </p>
  5596. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  5597. in software frames, use the <samp>hwupload</samp> filter to upload them to the GPU.
  5598. </p>
  5599. <p>The following standard libavcodec options are used:
  5600. </p><ul>
  5601. <li> <samp>g</samp> / <samp>gop_size</samp>
  5602. </li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
  5603. </li><li> <samp>profile</samp>
  5604. <p>If not set, this will be determined automatically from the format of the input
  5605. frames and the profiles supported by the driver.
  5606. </p></li><li> <samp>level</samp>
  5607. </li><li> <samp>b</samp> / <samp>bit_rate</samp>
  5608. </li><li> <samp>maxrate</samp> / <samp>rc_max_rate</samp>
  5609. </li><li> <samp>bufsize</samp> / <samp>rc_buffer_size</samp>
  5610. </li><li> <samp>rc_init_occupancy</samp> / <samp>rc_initial_buffer_occupancy</samp>
  5611. </li><li> <samp>compression_level</samp>
  5612. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  5613. </p></li><li> <samp>q</samp> / <samp>global_quality</samp>
  5614. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  5615. </p></li><li> <samp>qmin</samp>
  5616. </li><li> <samp>qmax</samp>
  5617. </li><li> <samp>i_qfactor</samp> / <samp>i_quant_factor</samp>
  5618. </li><li> <samp>i_qoffset</samp> / <samp>i_quant_offset</samp>
  5619. </li><li> <samp>b_qfactor</samp> / <samp>b_quant_factor</samp>
  5620. </li><li> <samp>b_qoffset</samp> / <samp>b_quant_offset</samp>
  5621. </li><li> <samp>slices</samp>
  5622. </li></ul>
  5623. <p>All encoders support the following options:
  5624. </p><dl compact="compact">
  5625. <dt><samp>low_power</samp></dt>
  5626. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  5627. less power than the default encoder; setting this option will attempt to use
  5628. that encoder. Note that it may support a reduced feature set, so some other
  5629. options may not be available in this mode.
  5630. </p>
  5631. </dd>
  5632. <dt><samp>idr_interval</samp></dt>
  5633. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  5634. open-GOP mode. The intra frames are still IRAPs, but will not include global
  5635. headers and may have non-decodable leading pictures.
  5636. </p>
  5637. </dd>
  5638. <dt><samp>b_depth</samp></dt>
  5639. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  5640. will refer only to P- or I-frames. When set to greater values multiple layers
  5641. of B-frames will be present, frames in each layer only referring to frames in
  5642. higher layers.
  5643. </p>
  5644. </dd>
  5645. <dt><samp>rc_mode</samp></dt>
  5646. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  5647. modes.
  5648. </p>
  5649. <p>Possible modes:
  5650. </p><dl compact="compact">
  5651. <dt><samp>auto</samp></dt>
  5652. <dd><p>Choose the mode automatically based on driver support and the other options.
  5653. This is the default.
  5654. </p></dd>
  5655. <dt><samp>CQP</samp></dt>
  5656. <dd><p>Constant-quality.
  5657. </p></dd>
  5658. <dt><samp>CBR</samp></dt>
  5659. <dd><p>Constant-bitrate.
  5660. </p></dd>
  5661. <dt><samp>VBR</samp></dt>
  5662. <dd><p>Variable-bitrate.
  5663. </p></dd>
  5664. <dt><samp>ICQ</samp></dt>
  5665. <dd><p>Intelligent constant-quality.
  5666. </p></dd>
  5667. <dt><samp>QVBR</samp></dt>
  5668. <dd><p>Quality-defined variable-bitrate.
  5669. </p></dd>
  5670. <dt><samp>AVBR</samp></dt>
  5671. <dd><p>Average variable bitrate.
  5672. </p></dd>
  5673. </dl>
  5674. </dd>
  5675. </dl>
  5676. <p>Each encoder also has its own specific options:
  5677. </p><dl compact="compact">
  5678. <dt><samp>h264_vaapi</samp></dt>
  5679. <dd><p><samp>profile</samp> sets the value of <em>profile_idc</em> and the <em>constraint_set*_flag</em>s.
  5680. <samp>level</samp> sets the value of <em>level_idc</em>.
  5681. </p>
  5682. <dl compact="compact">
  5683. <dt><samp>coder</samp></dt>
  5684. <dd><p>Set entropy encoder (default is <em>cabac</em>). Possible values:
  5685. </p>
  5686. <dl compact="compact">
  5687. <dt>&lsquo;<samp>ac</samp>&rsquo;</dt>
  5688. <dt>&lsquo;<samp>cabac</samp>&rsquo;</dt>
  5689. <dd><p>Use CABAC.
  5690. </p>
  5691. </dd>
  5692. <dt>&lsquo;<samp>vlc</samp>&rsquo;</dt>
  5693. <dt>&lsquo;<samp>cavlc</samp>&rsquo;</dt>
  5694. <dd><p>Use CAVLC.
  5695. </p></dd>
  5696. </dl>
  5697. </dd>
  5698. <dt><samp>aud</samp></dt>
  5699. <dd><p>Include access unit delimiters in the stream (not included by default).
  5700. </p>
  5701. </dd>
  5702. <dt><samp>sei</samp></dt>
  5703. <dd><p>Set SEI message types to include.
  5704. Some combination of the following values:
  5705. </p><dl compact="compact">
  5706. <dt>&lsquo;<samp>identifier</samp>&rsquo;</dt>
  5707. <dd><p>Include a <em>user_data_unregistered</em> message containing information about
  5708. the encoder.
  5709. </p></dd>
  5710. <dt>&lsquo;<samp>timing</samp>&rsquo;</dt>
  5711. <dd><p>Include picture timing parameters (<em>buffering_period</em> and
  5712. <em>pic_timing</em> messages).
  5713. </p></dd>
  5714. <dt>&lsquo;<samp>recovery_point</samp>&rsquo;</dt>
  5715. <dd><p>Include recovery points where appropriate (<em>recovery_point</em> messages).
  5716. </p></dd>
  5717. </dl>
  5718. </dd>
  5719. </dl>
  5720. </dd>
  5721. <dt><samp>hevc_vaapi</samp></dt>
  5722. <dd><p><samp>profile</samp> and <samp>level</samp> set the values of
  5723. <em>general_profile_idc</em> and <em>general_level_idc</em> respectively.
  5724. </p>
  5725. <dl compact="compact">
  5726. <dt><samp>aud</samp></dt>
  5727. <dd><p>Include access unit delimiters in the stream (not included by default).
  5728. </p>
  5729. </dd>
  5730. <dt><samp>tier</samp></dt>
  5731. <dd><p>Set <em>general_tier_flag</em>. This may affect the level chosen for the stream
  5732. if it is not explicitly specified.
  5733. </p>
  5734. </dd>
  5735. <dt><samp>sei</samp></dt>
  5736. <dd><p>Set SEI message types to include.
  5737. Some combination of the following values:
  5738. </p><dl compact="compact">
  5739. <dt>&lsquo;<samp>hdr</samp>&rsquo;</dt>
  5740. <dd><p>Include HDR metadata if the input frames have it
  5741. (<em>mastering_display_colour_volume</em> and <em>content_light_level</em>
  5742. messages).
  5743. </p></dd>
  5744. </dl>
  5745. </dd>
  5746. <dt><samp>tiles</samp></dt>
  5747. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  5748. Larger numbers allow greater parallelism in both encoding and decoding, but
  5749. may decrease coding efficiency.
  5750. </p>
  5751. </dd>
  5752. </dl>
  5753. </dd>
  5754. <dt><samp>mjpeg_vaapi</samp></dt>
  5755. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  5756. quantisation and huffman tables - <samp>global_quality</samp> scales the standard
  5757. quantisation table (range 1-100).
  5758. </p>
  5759. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  5760. supported, and will create an RGB JPEG.
  5761. </p>
  5762. <dl compact="compact">
  5763. <dt><samp>jfif</samp></dt>
  5764. <dd><p>Include JFIF header in each frame (not included by default).
  5765. </p></dd>
  5766. <dt><samp>huffman</samp></dt>
  5767. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  5768. a few hundred bytes in each output frame, but may lose compatibility with some
  5769. JPEG decoders which don&rsquo;t fully handle MJPEG.
  5770. </p></dd>
  5771. </dl>
  5772. </dd>
  5773. <dt><samp>mpeg2_vaapi</samp></dt>
  5774. <dd><p><samp>profile</samp> and <samp>level</samp> set the value of <em>profile_and_level_indication</em>.
  5775. </p>
  5776. </dd>
  5777. <dt><samp>vp8_vaapi</samp></dt>
  5778. <dd><p>B-frames are not supported.
  5779. </p>
  5780. <p><samp>global_quality</samp> sets the <em>q_idx</em> used for non-key frames (range 0-127).
  5781. </p>
  5782. <dl compact="compact">
  5783. <dt><samp>loop_filter_level</samp></dt>
  5784. <dt><samp>loop_filter_sharpness</samp></dt>
  5785. <dd><p>Manually set the loop filter parameters.
  5786. </p></dd>
  5787. </dl>
  5788. </dd>
  5789. <dt><samp>vp9_vaapi</samp></dt>
  5790. <dd><p><samp>global_quality</samp> sets the <em>q_idx</em> used for P-frames (range 0-255).
  5791. </p>
  5792. <dl compact="compact">
  5793. <dt><samp>loop_filter_level</samp></dt>
  5794. <dt><samp>loop_filter_sharpness</samp></dt>
  5795. <dd><p>Manually set the loop filter parameters.
  5796. </p></dd>
  5797. </dl>
  5798. <p>B-frames are supported, but the output stream is always in encode order rather than display
  5799. order. If B-frames are enabled, it may be necessary to use the <samp>vp9_raw_reorder</samp>
  5800. bitstream filter to modify the output stream to display frames in the correct order.
  5801. </p>
  5802. <p>Only normal frames are produced - the <samp>vp9_superframe</samp> bitstream filter may be
  5803. required to produce a stream usable with all decoders.
  5804. </p>
  5805. </dd>
  5806. </dl>
  5807. <a name="vc2"></a>
  5808. <h3 class="section">9.23 vc2<span class="pull-right"><a class="anchor hidden-xs" href="#vc2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vc2" aria-hidden="true">TOC</a></span></h3>
  5809. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  5810. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  5811. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  5812. other tasks which require low overhead and low compression (like screen
  5813. recording).
  5814. </p>
  5815. <a name="Options-37"></a>
  5816. <h4 class="subsection">9.23.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-37" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-37" aria-hidden="true">TOC</a></span></h4>
  5817. <dl compact="compact">
  5818. <dt><samp>b</samp></dt>
  5819. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  5820. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  5821. values (close to the uncompressed bitrate) turn on lossless compression mode.
  5822. </p>
  5823. </dd>
  5824. <dt><samp>field_order</samp></dt>
  5825. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  5826. inputs. Should increase compression with interlaced content as it splits the
  5827. fields and encodes each separately.
  5828. </p>
  5829. </dd>
  5830. <dt><samp>wavelet_depth</samp></dt>
  5831. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  5832. Lower values reduce compression and quality. Less capable decoders may not be
  5833. able to handle values of <samp>wavelet_depth</samp> over 3.
  5834. </p>
  5835. </dd>
  5836. <dt><samp>wavelet_type</samp></dt>
  5837. <dd><p>Sets the transform type. Currently only <var>5_3</var> (LeGall) and <var>9_7</var>
  5838. (Deslauriers-Dubuc)
  5839. are implemented, with 9_7 being the one with better compression and thus
  5840. is the default.
  5841. </p>
  5842. </dd>
  5843. <dt><samp>slice_width</samp></dt>
  5844. <dt><samp>slice_height</samp></dt>
  5845. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  5846. For compatibility with other more limited decoders use <samp>slice_width</samp> of
  5847. 32 and <samp>slice_height</samp> of 8.
  5848. </p>
  5849. </dd>
  5850. <dt><samp>tolerance</samp></dt>
  5851. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  5852. to prevent an expensive search from being run.
  5853. </p>
  5854. </dd>
  5855. <dt><samp>qm</samp></dt>
  5856. <dd><p>Sets the quantization matrix preset to use by default or when <samp>wavelet_depth</samp>
  5857. is set to 5
  5858. </p><ul class="no-bullet">
  5859. <li>- <var>default</var>
  5860. Uses the default quantization matrix from the specifications, extended with
  5861. values for the fifth level. This provides a good balance between keeping detail
  5862. and omitting artifacts.
  5863. </li><li>- <var>flat</var>
  5864. Use a completely zeroed out quantization matrix. This increases PSNR but might
  5865. reduce perception. Use in bogus benchmarks.
  5866. </li><li>- <var>color</var>
  5867. Reduces detail but attempts to preserve color at extremely low bitrates.
  5868. </li></ul>
  5869. </dd>
  5870. </dl>
  5871. <a name="Subtitles-Encoders"></a>
  5872. <h2 class="chapter">10 Subtitles Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Encoders" aria-hidden="true">TOC</a></span></h2>
  5873. <a name="dvdsub-1"></a>
  5874. <h3 class="section">10.1 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub-1" aria-hidden="true">TOC</a></span></h3>
  5875. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  5876. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  5877. and they can also be used in Matroska files.
  5878. </p>
  5879. <a name="Options-38"></a>
  5880. <h4 class="subsection">10.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-38" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-38" aria-hidden="true">TOC</a></span></h4>
  5881. <dl compact="compact">
  5882. <dt><samp>palette</samp></dt>
  5883. <dd><p>Specify the global palette used by the bitmaps.
  5884. </p>
  5885. <p>The format for this option is a string containing 16 24-bits hexadecimal
  5886. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  5887. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  5888. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  5889. </p>
  5890. </dd>
  5891. <dt><samp>even_rows_fix</samp></dt>
  5892. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  5893. even in all subtitles. This fixes a problem with some players that
  5894. cut off the bottom row if the number is odd. The work-around just adds
  5895. a fully transparent row if needed. The overhead is low, typically
  5896. one byte per subtitle on average.
  5897. </p>
  5898. <p>By default, this work-around is disabled.
  5899. </p></dd>
  5900. </dl>
  5901. <a name="See-Also"></a>
  5902. <h2 class="chapter">11 See Also<span class="pull-right"><a class="anchor hidden-xs" href="#See-Also" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-See-Also" aria-hidden="true">TOC</a></span></h2>
  5903. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  5904. <a href="libavcodec.html">libavcodec</a>
  5905. </p>
  5906. <a name="Authors"></a>
  5907. <h2 class="chapter">12 Authors<span class="pull-right"><a class="anchor hidden-xs" href="#Authors" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Authors" aria-hidden="true">TOC</a></span></h2>
  5908. <p>The FFmpeg developers.
  5909. </p>
  5910. <p>For details about the authorship, see the Git history of the project
  5911. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  5912. <code>git log</code> in the FFmpeg source directory, or browsing the
  5913. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  5914. </p>
  5915. <p>Maintainers for the specific components are listed in the file
  5916. <samp>MAINTAINERS</samp> in the source code tree.
  5917. </p>
  5918. <p style="font-size: small;">
  5919. This document was generated using <a href="http://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
  5920. </p>
  5921. </div>
  5922. </body>
  5923. </html>